@carbon/vue 3.0.13 → 3.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/carbon-vue-3.common.js +114 -65
- package/dist/carbon-vue-3.common.js.map +1 -1
- package/dist/carbon-vue-3.umd.js +114 -65
- package/dist/carbon-vue-3.umd.js.map +1 -1
- package/dist/carbon-vue-3.umd.min.js +2 -2
- package/dist/carbon-vue-3.umd.min.js.map +1 -1
- package/dist/web-types.json +10 -1
- package/package.json +6 -4
- package/src/components/CvAccordion/CvAccordion.stories.mdx +11 -2
- package/src/components/CvAccordion/CvAccordionItem.vue +1 -1
- package/src/components/CvButton/CvIconButton.vue +1 -1
- package/src/components/CvCheckbox/CvCheckbox.vue +2 -1
- package/src/components/CvComboBox/CvComboBox.vue +1 -1
- package/src/components/CvDataTable/CvDataTable.vue +26 -7
- package/src/components/CvDataTable/CvDataTableRow.vue +11 -3
- package/src/components/CvDataTable/_CvDataTableRowInner.vue +12 -3
- package/src/components/CvDataTable/cvDataTableStore.js +1 -0
- package/src/components/CvDatePicker/CvDatePicker.vue +9 -11
- package/src/components/CvDropdown/CvDropdown.stories.mdx +6 -2
- package/src/components/CvDropdown/CvDropdown.vue +3 -3
- package/src/components/CvFileUploader/CvFileUploader.vue +2 -2
- package/src/components/CvNotification/CvToastNotification.stories.js +65 -5
- package/src/components/CvNotification/CvToastNotificationTemplate.mdx +17 -0
- package/src/components/CvNumberInput/CvNumberInput.vue +3 -3
- package/src/components/CvOverflowMenu/CvOverflowMenuItem.vue +2 -2
- package/src/components/CvProgress/CvProgress.stories.mdx +29 -7
- package/src/components/CvProgress/CvProgress.vue +1 -0
- package/src/components/CvProgress/CvProgressStep.vue +2 -0
- package/src/components/CvSlider/CvSlider.vue +1 -1
- package/src/components/CvTag/CvTag.vue +1 -1
- package/telemetry.yml +8 -0
|
@@ -4,6 +4,19 @@ import { Time20 as TimeIcon } from '@carbon/icons-vue';
|
|
|
4
4
|
// noinspection ES6PreferShortImport
|
|
5
5
|
import { sbCompPrefix } from '../../global/storybook-utils';
|
|
6
6
|
import { action } from '@storybook/addon-actions';
|
|
7
|
+
import {ref } from "vue";
|
|
8
|
+
const step3Invalid = ref(false)
|
|
9
|
+
const step4Disable = ref(false)
|
|
10
|
+
const step5Complete = ref(false)
|
|
11
|
+
function onStep4Disable() {
|
|
12
|
+
step4Disable.value = !step4Disable.value
|
|
13
|
+
}
|
|
14
|
+
function onStep3Invalid() {
|
|
15
|
+
step3Invalid.value = !step3Invalid.value
|
|
16
|
+
}
|
|
17
|
+
function onStep5Complete() {
|
|
18
|
+
step5Complete.value = !step5Complete.value
|
|
19
|
+
}
|
|
7
20
|
|
|
8
21
|
<Meta title={`${sbCompPrefix}/CvProgress`} component={CvProgress} />
|
|
9
22
|
|
|
@@ -31,6 +44,12 @@ export const Template = args => ({
|
|
|
31
44
|
invalidIds: args.invalidIds,
|
|
32
45
|
disabledIds: args.disabledIds,
|
|
33
46
|
onStepClicked: action('step-clicked'),
|
|
47
|
+
step3Invalid,
|
|
48
|
+
onStep3Invalid,
|
|
49
|
+
step4Disable,
|
|
50
|
+
onStep4Disable,
|
|
51
|
+
step5Complete,
|
|
52
|
+
onStep5Complete,
|
|
34
53
|
};
|
|
35
54
|
},
|
|
36
55
|
// And then the `args` are bound to your component with `v-bind="args"`
|
|
@@ -79,7 +98,7 @@ const slotTemplate = `
|
|
|
79
98
|
id="step-3"
|
|
80
99
|
:label="step3"
|
|
81
100
|
:complete="completeIds.includes('step-3')"
|
|
82
|
-
:invalid="
|
|
101
|
+
:invalid="step3Invalid"
|
|
83
102
|
:disabled="disabledIds.includes('step-3')"
|
|
84
103
|
additionalInfo="save the world"
|
|
85
104
|
@step-clicked="onStepClicked"
|
|
@@ -90,7 +109,7 @@ const slotTemplate = `
|
|
|
90
109
|
:label="step4"
|
|
91
110
|
:complete="completeIds.includes('step-4')"
|
|
92
111
|
:invalid="invalidIds.includes('step-4')"
|
|
93
|
-
:disabled="
|
|
112
|
+
:disabled="step4Disable"
|
|
94
113
|
additionalInfo="Twins Dennys and Sandy"
|
|
95
114
|
@step-clicked="onStepClicked"
|
|
96
115
|
>
|
|
@@ -98,7 +117,7 @@ const slotTemplate = `
|
|
|
98
117
|
<cv-progress-step
|
|
99
118
|
id="step-5"
|
|
100
119
|
:label="step5"
|
|
101
|
-
:complete="
|
|
120
|
+
:complete="step5Complete"
|
|
102
121
|
:invalid="invalidIds.includes('step-5')"
|
|
103
122
|
:disabled="disabledIds.includes('step-5')"
|
|
104
123
|
additionalInfo="with Polyhymnia O'Keefe"
|
|
@@ -106,6 +125,9 @@ const slotTemplate = `
|
|
|
106
125
|
>
|
|
107
126
|
</cv-progress-step>
|
|
108
127
|
</cv-progress>
|
|
128
|
+
<div><button @click=onStep3Invalid>Toggle step 3 invalid</button></div>
|
|
129
|
+
<div><button @click=onStep4Disable>Toggle step 4 disabled</button></div>
|
|
130
|
+
<div><button @click=onStep5Complete>Toggle step 5 complete</button></div>
|
|
109
131
|
`;
|
|
110
132
|
const skeletonTemplate = `<cv-progress-skeleton :vertical="vertical" />`;
|
|
111
133
|
|
|
@@ -187,15 +209,15 @@ Use `cv-progress-step` for more control over the display.
|
|
|
187
209
|
},
|
|
188
210
|
disabledIds: {
|
|
189
211
|
control: 'multi-select',
|
|
190
|
-
options: ['step-1', 'step-2', 'step-3', 'step-
|
|
212
|
+
options: ['step-1', 'step-2', 'step-3', 'step-5'],
|
|
191
213
|
},
|
|
192
214
|
completeIds: {
|
|
193
215
|
control: 'multi-select',
|
|
194
|
-
options: ['step-1', 'step-2', 'step-3', 'step-4'
|
|
216
|
+
options: ['step-1', 'step-2', 'step-3', 'step-4'],
|
|
195
217
|
},
|
|
196
218
|
invalidIds: {
|
|
197
219
|
control: 'multi-select',
|
|
198
|
-
options: ['step-1', 'step-2', 'step-
|
|
220
|
+
options: ['step-1', 'step-2', 'step-4', 'step-5'],
|
|
199
221
|
},
|
|
200
222
|
}}
|
|
201
223
|
>
|
|
@@ -221,4 +243,4 @@ Use `cv-progress-step` for more control over the display.
|
|
|
221
243
|
>
|
|
222
244
|
{Template.bind({})}
|
|
223
245
|
</Story>
|
|
224
|
-
</Canvas>
|
|
246
|
+
</Canvas>
|
|
@@ -106,6 +106,8 @@ function checkCurrentStep() {
|
|
|
106
106
|
onMounted(checkCurrentStep);
|
|
107
107
|
watch(currentStep, checkCurrentStep);
|
|
108
108
|
watch(completedSteps, checkCurrentStep);
|
|
109
|
+
watch(() => props.complete, checkCurrentStep);
|
|
110
|
+
watch(() => props.disabled, checkCurrentStep);
|
|
109
111
|
|
|
110
112
|
onBeforeUnmount(() => {
|
|
111
113
|
const index = progressSteps.value.findIndex(step => step.uid === uid.value);
|
package/telemetry.yml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://unpkg.com/@ibm/telemetry-config-schema@v1/dist/config.schema.json
|
|
2
|
+
|
|
3
|
+
version: 1
|
|
4
|
+
projectId: 084968c7-d247-4ddb-bc07-cbdbe57fdd43
|
|
5
|
+
endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.cloud/v1/metrics
|
|
6
|
+
collect:
|
|
7
|
+
npm:
|
|
8
|
+
dependencies: null
|