|
+ >
+
+ {{ name }}
+
+ required
+
+
+
+
@@ -46,8 +56,23 @@
>
- {{ type }}
+ Type: {{ type }}
+
+ Values:
+
+ {{ value }}
+
+
|
{
const sortedTableDataByName = computed(() => {
if (!props.tableData) return null;
- return sortDataByKey([...props.tableData], 'name');
+ return sortDataByKey([...props.tableData], 'name', 'required');
});
-const sortDataByKey = (data, key) => {
+const sortDataByKey = (data, nameKey, requiredKey) => {
+ // eslint-disable-next-line complexity
return data.sort((a, b) => {
- if (a[key] < b[key]) {
+ const aIsRequired = !!a[requiredKey];
+ const bIsRequired = !!b[requiredKey];
+
+ // always have required at top
+ if (aIsRequired && !bIsRequired) {
return -1;
- }
- if (a[key] > b[key]) {
+ } else if (!aIsRequired && bIsRequired) {
return 1;
+ } else {
+ if (a[nameKey] < b[nameKey]) return -1;
+ if (a[nameKey] > b[nameKey]) return 1;
}
return 0;
});
diff --git a/docs/components/stack.md b/docs/components/stack.md
index 68ead57c16..0a1d3ab5ff 100644
--- a/docs/components/stack.md
+++ b/docs/components/stack.md
@@ -94,7 +94,7 @@ storybook: https://vue.dialpad.design/?path=/story/components-stack--default
```html
- Stack item 1
+ Stack item 1
Stack item 2
@@ -105,6 +105,10 @@ storybook: https://vue.dialpad.design/?path=/story/components-stack--default
```
+## Vue API
+
+
+
## Classes
diff --git a/docs/components/tabs.md b/docs/components/tabs.md
index f2e0ce9a44..bf180238f7 100644
--- a/docs/components/tabs.md
+++ b/docs/components/tabs.md
@@ -76,6 +76,20 @@ Add `d-tablist--inverted` when you want to display tabs on a darker background.
…
```
+## Vue API
+
+### Tab Group
+
+
+
+### Tab Panel
+
+
+
+### Tab
+
+
+
## Classes
diff --git a/docs/components/tooltip.md b/docs/components/tooltip.md
index 23b92c4878..d86cc11dde 100644
--- a/docs/components/tooltip.md
+++ b/docs/components/tooltip.md
@@ -60,6 +60,10 @@ No arrow direction is assigned by default. You must select a direction. Twelve d
+## Vue API
+
+
+
## Classes
diff --git a/docs/components/validation-messages.md b/docs/components/validation-messages.md
index 1a08303830..79b7d69f53 100644
--- a/docs/components/validation-messages.md
+++ b/docs/components/validation-messages.md
@@ -64,3 +64,7 @@ figma_url: https://www.figma.com/file/2adf7JhZOncRyjYiy2joil/DT-Core%3A-Componen
:validationMessages='[{"message":"Critical validation message","type":"warning"}]'
/>
```
+
+## Vue API
+
+
diff --git a/package-lock.json b/package-lock.json
index f66097a91a..04f695d932 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -21,7 +21,7 @@
"@dialpad/conventional-changelog-angular": "^1.1.1",
"@dialpad/dialtone-combinator": "^0.3.1",
"@dialpad/dialtone-icons": "vue3",
- "@dialpad/dialtone-vue": "^3.43.0",
+ "@dialpad/dialtone-vue": "^3.46.1",
"@dialpad/postcss-responsive-variations": "^1.1.3",
"@dialpad/semantic-release-changelog-json": "^1.0.0",
"@docsearch/js": "^3.3.2",
@@ -1103,9 +1103,9 @@
}
},
"node_modules/@dialpad/dialtone": {
- "version": "7.16.0",
- "resolved": "https://registry.npmjs.org/@dialpad/dialtone/-/dialtone-7.16.0.tgz",
- "integrity": "sha512-NcWH1jH27XKMkHgOFb4r0jeKmXUOJ6NhRR1LaWN/uKw1vW0/ml/C3onTTdwPzpw+hhM0dAEx8N9dOx0WaZUtrA==",
+ "version": "7.17.0",
+ "resolved": "https://registry.npmjs.org/@dialpad/dialtone/-/dialtone-7.17.0.tgz",
+ "integrity": "sha512-ymhqIFwbBFEvRPGKrKxCuzafztxWL4raZ4howPN4eg01FaHb2qtBU1Muv+dAf7sn/gHPHZlXP/KCzFDDoFUivQ==",
"dev": true,
"peer": true,
"dependencies": {
@@ -1132,9 +1132,9 @@
}
},
"node_modules/@dialpad/dialtone-vue": {
- "version": "3.44.1",
- "resolved": "https://registry.npmjs.org/@dialpad/dialtone-vue/-/dialtone-vue-3.44.1.tgz",
- "integrity": "sha512-e97IVYeLqeGm21Mfta3apMp3hKOLqGPBnAwBFUgJ7Wffq8r7Q3sP/TD5xmsaB9EXh2Z/JOsZlyhl5TUk00PtJg==",
+ "version": "3.46.1",
+ "resolved": "https://registry.npmjs.org/@dialpad/dialtone-vue/-/dialtone-vue-3.46.1.tgz",
+ "integrity": "sha512-WtpQmRKa8wgjBea4QxhxWFyw9Vn4n2IDuqx2Gp1wEmp4NT1udDpPCJJOp7qYvRJjtbT2WrCobJaDW/kY71uvaA==",
"dev": true,
"dependencies": {
"@dialpad/dialtone-icons": "vue3",
@@ -1147,7 +1147,7 @@
"node": ">= 16"
},
"peerDependencies": {
- "@dialpad/dialtone": ">=7.16",
+ "@dialpad/dialtone": ">=7.17",
"vue": ">=3.2"
}
},
@@ -30374,9 +30374,9 @@
}
},
"@dialpad/dialtone": {
- "version": "7.16.0",
- "resolved": "https://registry.npmjs.org/@dialpad/dialtone/-/dialtone-7.16.0.tgz",
- "integrity": "sha512-NcWH1jH27XKMkHgOFb4r0jeKmXUOJ6NhRR1LaWN/uKw1vW0/ml/C3onTTdwPzpw+hhM0dAEx8N9dOx0WaZUtrA==",
+ "version": "7.17.0",
+ "resolved": "https://registry.npmjs.org/@dialpad/dialtone/-/dialtone-7.17.0.tgz",
+ "integrity": "sha512-ymhqIFwbBFEvRPGKrKxCuzafztxWL4raZ4howPN4eg01FaHb2qtBU1Muv+dAf7sn/gHPHZlXP/KCzFDDoFUivQ==",
"dev": true,
"peer": true,
"requires": {
@@ -30398,9 +30398,9 @@
"requires": {}
},
"@dialpad/dialtone-vue": {
- "version": "3.44.1",
- "resolved": "https://registry.npmjs.org/@dialpad/dialtone-vue/-/dialtone-vue-3.44.1.tgz",
- "integrity": "sha512-e97IVYeLqeGm21Mfta3apMp3hKOLqGPBnAwBFUgJ7Wffq8r7Q3sP/TD5xmsaB9EXh2Z/JOsZlyhl5TUk00PtJg==",
+ "version": "3.46.1",
+ "resolved": "https://registry.npmjs.org/@dialpad/dialtone-vue/-/dialtone-vue-3.46.1.tgz",
+ "integrity": "sha512-WtpQmRKa8wgjBea4QxhxWFyw9Vn4n2IDuqx2Gp1wEmp4NT1udDpPCJJOp7qYvRJjtbT2WrCobJaDW/kY71uvaA==",
"dev": true,
"requires": {
"@dialpad/dialtone-icons": "vue3",
diff --git a/package.json b/package.json
index ac1d6e4fdc..657a916bc5 100644
--- a/package.json
+++ b/package.json
@@ -83,7 +83,7 @@
"@dialpad/conventional-changelog-angular": "^1.1.1",
"@dialpad/dialtone-combinator": "^0.3.1",
"@dialpad/dialtone-icons": "vue3",
- "@dialpad/dialtone-vue": "^3.43.0",
+ "@dialpad/dialtone-vue": "^3.46.1",
"@dialpad/postcss-responsive-variations": "^1.1.3",
"@dialpad/semantic-release-changelog-json": "^1.0.0",
"@docsearch/js": "^3.3.2",
|