@carbon/vue 2.33.0 → 2.34.1
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/CHANGELOG.md +25 -0
- package/dist/carbon-vue.common.js +1676 -1457
- package/dist/carbon-vue.common.js.map +1 -1
- package/dist/carbon-vue.umd.js +1676 -1457
- package/dist/carbon-vue.umd.js.map +1 -1
- package/dist/carbon-vue.umd.min.js +3 -3
- package/dist/carbon-vue.umd.min.js.map +1 -1
- package/package.json +4 -4
- package/src/components/cv-accordion/_cv-accordion-item-skeleton.vue +1 -1
- package/src/components/cv-accordion/cv-accordion-item.vue +1 -4
- package/src/components/cv-accordion/cv-accordion-skeleton.vue +1 -1
- package/src/components/cv-accordion/cv-accordion.vue +1 -1
- package/src/components/cv-breadcrumb/_cv-breadcrumb-item-skeleton.vue +1 -1
- package/src/components/cv-breadcrumb/cv-breadcrumb-item.vue +1 -1
- package/src/components/cv-breadcrumb/cv-breadcrumb-skeleton.vue +1 -1
- package/src/components/cv-breadcrumb/cv-breadcrumb.vue +1 -1
- package/src/components/cv-button/cv-button-set.vue +1 -1
- package/src/components/cv-button/cv-button.vue +1 -1
- package/src/components/cv-button/cv-icon-button.vue +1 -1
- package/src/components/cv-checkbox/cv-checkbox-skeleton.vue +1 -1
- package/src/components/cv-checkbox/cv-checkbox.vue +1 -4
- package/src/components/cv-code-snippet/_cv-code-snippet-inline.vue +1 -2
- package/src/components/cv-code-snippet/_cv-code-snippet-multiline.vue +1 -2
- package/src/components/cv-code-snippet/_cv-code-snippet-oneline.vue +1 -2
- package/src/components/cv-code-snippet/cv-code-snippet-skeleton.vue +1 -1
- package/src/components/cv-combo-box/cv-combo-box.vue +3 -6
- package/src/components/cv-content-switcher/cv-content-switcher-button.vue +1 -2
- package/src/components/cv-content-switcher/cv-content-switcher.vue +1 -1
- package/src/components/cv-data-table/_cv-data-table-row-inner.vue +3 -3
- package/src/components/cv-data-table/cv-data-table-action.vue +1 -1
- package/src/components/cv-data-table/cv-data-table-heading.vue +1 -2
- package/src/components/cv-data-table/cv-data-table-row.vue +2 -3
- package/src/components/cv-data-table/cv-data-table-skeleton.vue +2 -2
- package/src/components/cv-data-table/cv-data-table.vue +3 -5
- package/src/components/cv-date-picker/cv-date-picker.vue +37 -15
- package/src/components/cv-date-picker/plugins/appendToPlugin.js +52 -0
- package/src/components/cv-date-picker/plugins/fixEventsPlugin.js +75 -0
- package/src/components/cv-date-picker/plugins/monthSelectPlugin.js +66 -0
- package/src/components/cv-date-picker/plugins/rangePlugin.js +45 -0
- package/src/components/cv-dropdown/cv-dropdown-item.vue +1 -1
- package/src/components/cv-dropdown/cv-dropdown-skeleton.vue +1 -1
- package/src/components/cv-dropdown/cv-dropdown.vue +10 -8
- package/src/components/cv-feedback-button/_cv-feedback-button.vue +1 -1
- package/src/components/cv-file-uploader/cv-file-uploader-skeleton.vue +1 -1
- package/src/components/cv-file-uploader/cv-file-uploader.vue +1 -3
- package/src/components/cv-form/cv-form-group.vue +1 -1
- package/src/components/cv-form/cv-form-item.vue +1 -1
- package/src/components/cv-form/cv-form.vue +1 -1
- package/src/components/cv-grid/cv-column.vue +77 -0
- package/src/components/cv-grid/cv-grid.vue +32 -0
- package/src/components/cv-grid/cv-row.vue +30 -0
- package/src/components/cv-grid/index.js +5 -0
- package/src/components/cv-inline-loading/cv-inline-loading.vue +1 -1
- package/src/components/cv-inline-notification/cv-inline-notification.vue +2 -3
- package/src/components/cv-link/cv-link.vue +2 -3
- package/src/components/cv-list/cv-list-item.vue +1 -1
- package/src/components/cv-list/cv-list.vue +1 -1
- package/src/components/cv-loading/cv-loading.vue +1 -1
- package/src/components/cv-modal/cv-modal.vue +3 -4
- package/src/components/cv-multi-select/cv-multi-select.vue +3 -6
- package/src/components/cv-number-input/cv-number-input-skeleton.vue +1 -1
- package/src/components/cv-number-input/cv-number-input.vue +3 -6
- package/src/components/cv-overflow-menu/cv-overflow-menu-item.vue +1 -1
- package/src/components/cv-overflow-menu/cv-overflow-menu.vue +1 -3
- package/src/components/cv-pagination/cv-pagination.vue +1 -1
- package/src/components/cv-progress/cv-progress-step.vue +1 -1
- package/src/components/cv-progress/cv-progress.vue +1 -1
- package/src/components/cv-radio-button/cv-radio-button.vue +1 -4
- package/src/components/cv-radio-button/cv-radio-group.vue +1 -1
- package/src/components/cv-search/cv-search.vue +1 -4
- package/src/components/cv-select/cv-select-optgroup.vue +1 -1
- package/src/components/cv-select/cv-select-option.vue +1 -1
- package/src/components/cv-select/cv-select.vue +3 -6
- package/src/components/cv-skeleton-text/cv-skeleton-text.vue +1 -1
- package/src/components/cv-slider/cv-slider-skeleton.vue +1 -1
- package/src/components/cv-slider/cv-slider.vue +1 -4
- package/src/components/cv-structured-list/_cv-structured-list-item-selectable.vue +1 -4
- package/src/components/cv-structured-list/_cv-structured-list-item-standard.vue +1 -1
- package/src/components/cv-structured-list/cv-structured-list-data.vue +1 -1
- package/src/components/cv-structured-list/cv-structured-list-heading.vue +1 -1
- package/src/components/cv-structured-list/cv-structured-list.vue +1 -1
- package/src/components/cv-tabs/cv-tab.vue +1 -1
- package/src/components/cv-tabs/cv-tabs-skeleton.vue +1 -1
- package/src/components/cv-tabs/cv-tabs.vue +1 -1
- package/src/components/cv-tag/cv-tag-skeleton.vue +1 -1
- package/src/components/cv-tag/cv-tag.vue +1 -2
- package/src/components/cv-text-area/cv-text-area.vue +3 -6
- package/src/components/cv-text-input/cv-text-input.vue +3 -6
- package/src/components/cv-tile/_cv-tile-clickable.vue +2 -4
- package/src/components/cv-tile/_cv-tile-expandable.vue +1 -2
- package/src/components/cv-tile/_cv-tile-selectable.vue +1 -4
- package/src/components/cv-tile/cv-tile.vue +1 -3
- package/src/components/cv-time-picker/cv-time-picker.vue +3 -6
- package/src/components/cv-toast-notification/cv-toast-notification.vue +3 -4
- package/src/components/cv-toggle/cv-toggle-skeleton.vue +1 -2
- package/src/components/cv-toggle/cv-toggle.vue +1 -4
- package/src/components/cv-toolbar/cv-toolbar-divider.vue +1 -1
- package/src/components/cv-toolbar/cv-toolbar-option.vue +1 -1
- package/src/components/cv-toolbar/cv-toolbar-search.vue +1 -1
- package/src/components/cv-toolbar/cv-toolbar-title.vue +1 -1
- package/src/components/cv-toolbar/cv-toolbar.vue +1 -1
- package/src/components/cv-tooltip/cv-definition-tooltip.vue +1 -2
- package/src/components/cv-tooltip/cv-interactive-tooltip.vue +1 -2
- package/src/components/cv-tooltip/cv-tooltip.vue +1 -1
- package/src/components/cv-ui-shell/_cv-side-nav-footer.vue +1 -1
- package/src/components/cv-ui-shell/_cv-side-nav-link-text.vue +1 -1
- package/src/components/cv-ui-shell/cv-content.vue +1 -1
- package/src/components/cv-ui-shell/cv-header-global-action.vue +1 -2
- package/src/components/cv-ui-shell/cv-header-menu-button.vue +1 -2
- package/src/components/cv-ui-shell/cv-header-menu-item.vue +2 -3
- package/src/components/cv-ui-shell/cv-header-menu.vue +1 -1
- package/src/components/cv-ui-shell/cv-header-name.vue +2 -3
- package/src/components/cv-ui-shell/cv-header-nav.vue +1 -1
- package/src/components/cv-ui-shell/cv-header-panel.vue +2 -2
- package/src/components/cv-ui-shell/cv-header-side-nav-items.vue +1 -1
- package/src/components/cv-ui-shell/cv-header.vue +3 -3
- package/src/components/cv-ui-shell/cv-side-nav-icon.vue +1 -1
- package/src/components/cv-ui-shell/cv-side-nav-items.vue +1 -1
- package/src/components/cv-ui-shell/cv-side-nav-link.vue +3 -4
- package/src/components/cv-ui-shell/cv-side-nav-menu-item.vue +2 -3
- package/src/components/cv-ui-shell/cv-side-nav-menu.vue +3 -3
- package/src/components/cv-ui-shell/cv-side-nav.vue +2 -2
- package/src/components/cv-ui-shell/cv-skip-to-content.vue +2 -3
- package/src/components/cv-ui-shell/cv-switcher-item-link.vue +2 -3
- package/src/components/cv-ui-shell/cv-switcher-item.vue +1 -1
- package/src/components/cv-ui-shell/cv-switcher.vue +1 -1
- package/src/index.js +2 -0
- package/src/mixins/index.js +12 -0
|
@@ -24,10 +24,7 @@
|
|
|
24
24
|
</template>
|
|
25
25
|
|
|
26
26
|
<script>
|
|
27
|
-
import uidMixin from '../../mixins
|
|
28
|
-
import radioMixin from '../../mixins/radio-mixin';
|
|
29
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
30
|
-
import methodsMixin from '../../mixins/methods-mixin';
|
|
27
|
+
import { uidMixin, radioMixin, carbonPrefixMixin, methodsMixin } from '../../mixins';
|
|
31
28
|
|
|
32
29
|
export default {
|
|
33
30
|
name: 'CvRadioButton',
|
|
@@ -55,14 +55,11 @@
|
|
|
55
55
|
</template>
|
|
56
56
|
|
|
57
57
|
<script>
|
|
58
|
-
import uidMixin from '../../mixins
|
|
59
|
-
import themeMixin from '../../mixins/theme-mixin';
|
|
58
|
+
import { uidMixin, themeMixin, carbonPrefixMixin, methodsMixin } from '../../mixins';
|
|
60
59
|
import Search16 from '@carbon/icons-vue/es/search/16';
|
|
61
60
|
import Search20 from '@carbon/icons-vue/es/search/20';
|
|
62
61
|
import Close16 from '@carbon/icons-vue/es/close/16';
|
|
63
62
|
import CvWrapper from '../cv-wrapper/_cv-wrapper';
|
|
64
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
65
|
-
import methodsMixin from '../../mixins/methods-mixin';
|
|
66
63
|
|
|
67
64
|
export default {
|
|
68
65
|
name: 'CvSearch',
|
|
@@ -56,13 +56,10 @@
|
|
|
56
56
|
</template>
|
|
57
57
|
|
|
58
58
|
<script>
|
|
59
|
-
import uidMixin from '../../mixins
|
|
60
|
-
import themeMixin from '../../mixins/theme-mixin';
|
|
59
|
+
import { uidMixin, themeMixin, carbonPrefixMixin, methodsMixin } from '../../mixins';
|
|
61
60
|
import CvWrapper from '../cv-wrapper/_cv-wrapper';
|
|
62
61
|
import ChevronDownGlyph from '@carbon/icons-vue/es/chevron--down';
|
|
63
62
|
import WarningFilled16 from '@carbon/icons-vue/es/warning--filled/16';
|
|
64
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
65
|
-
import methodsMixin from '../../mixins/methods-mixin';
|
|
66
63
|
|
|
67
64
|
export default {
|
|
68
65
|
name: 'CvSelect',
|
|
@@ -115,7 +112,7 @@ export default {
|
|
|
115
112
|
}
|
|
116
113
|
this.checkSlots();
|
|
117
114
|
},
|
|
118
|
-
|
|
115
|
+
updated() {
|
|
119
116
|
this.checkSlots();
|
|
120
117
|
},
|
|
121
118
|
watch: {
|
|
@@ -152,7 +149,7 @@ export default {
|
|
|
152
149
|
},
|
|
153
150
|
methods: {
|
|
154
151
|
checkSlots() {
|
|
155
|
-
// NOTE: this.$slots is not reactive so needs to be managed on
|
|
152
|
+
// NOTE: this.$slots is not reactive so needs to be managed on updated
|
|
156
153
|
this.isInvalid = !!(this.$slots['invalid-message'] || (this.invalidMessage && this.invalidMessage.length));
|
|
157
154
|
this.isHelper = !!(this.$slots['helper-text'] || (this.helperText && this.helperText.length));
|
|
158
155
|
},
|
|
@@ -56,10 +56,7 @@
|
|
|
56
56
|
</template>
|
|
57
57
|
|
|
58
58
|
<script>
|
|
59
|
-
import uidMixin from '../../mixins
|
|
60
|
-
import themeMixin from '../../mixins/theme-mixin';
|
|
61
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
62
|
-
import methodsMixin from '../../mixins/methods-mixin';
|
|
59
|
+
import { uidMixin, themeMixin, carbonPrefixMixin, methodsMixin } from '../../mixins';
|
|
63
60
|
|
|
64
61
|
export default {
|
|
65
62
|
name: 'CvSlider',
|
|
@@ -26,11 +26,8 @@
|
|
|
26
26
|
</template>
|
|
27
27
|
|
|
28
28
|
<script>
|
|
29
|
-
import uidMixin from '../../mixins
|
|
30
|
-
import radioMixin from '../../mixins/radio-mixin';
|
|
29
|
+
import { uidMixin, radioMixin, carbonPrefixMixin } from '../../mixins';
|
|
31
30
|
import CheckmarkFilled16 from '@carbon/icons-vue/es/checkmark--filled/16';
|
|
32
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
33
|
-
|
|
34
31
|
export default {
|
|
35
32
|
name: 'CvStructuredListItemSelectable',
|
|
36
33
|
components: { CheckmarkFilled16 },
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
[`${carbonPrefix}--tag--disabled`]: disabled,
|
|
9
9
|
},
|
|
10
10
|
]"
|
|
11
|
-
:tabindex="!disabled ? 0 : undefined"
|
|
12
11
|
role="listitem"
|
|
13
12
|
:title="title"
|
|
14
13
|
@keydown.enter.stop.prevent="$emit('remove')"
|
|
@@ -30,7 +29,7 @@
|
|
|
30
29
|
|
|
31
30
|
<script>
|
|
32
31
|
import Close16 from '@carbon/icons-vue/es/close/16';
|
|
33
|
-
import carbonPrefixMixin from '../../mixins
|
|
32
|
+
import { carbonPrefixMixin } from '../../mixins';
|
|
34
33
|
|
|
35
34
|
const tagKinds = [
|
|
36
35
|
'red',
|
|
@@ -43,11 +43,8 @@
|
|
|
43
43
|
</template>
|
|
44
44
|
|
|
45
45
|
<script>
|
|
46
|
-
import uidMixin from '../../mixins
|
|
47
|
-
import themeMixin from '../../mixins/theme-mixin';
|
|
48
|
-
import methodsMixin from '../../mixins/methods-mixin';
|
|
46
|
+
import { uidMixin, themeMixin, methodsMixin, carbonPrefixMixin } from '../../mixins';
|
|
49
47
|
import WarningFilled16 from '@carbon/icons-vue/es/warning--filled/16';
|
|
50
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
51
48
|
|
|
52
49
|
export default {
|
|
53
50
|
name: 'CvTextArea',
|
|
@@ -69,7 +66,7 @@ export default {
|
|
|
69
66
|
mounted() {
|
|
70
67
|
this.checkSlots();
|
|
71
68
|
},
|
|
72
|
-
|
|
69
|
+
updated() {
|
|
73
70
|
this.checkSlots();
|
|
74
71
|
},
|
|
75
72
|
computed: {
|
|
@@ -85,7 +82,7 @@ export default {
|
|
|
85
82
|
},
|
|
86
83
|
methods: {
|
|
87
84
|
checkSlots() {
|
|
88
|
-
// NOTE: this.$slots is not reactive so needs to be managed on
|
|
85
|
+
// NOTE: this.$slots is not reactive so needs to be managed on updated
|
|
89
86
|
this.isInvalid = !!(this.$slots['invalid-message'] || (this.invalidMessage && this.invalidMessage.length));
|
|
90
87
|
this.isHelper = !!(this.$slots['helper-text'] || (this.helperText && this.helperText.length));
|
|
91
88
|
},
|
|
@@ -61,13 +61,10 @@
|
|
|
61
61
|
</template>
|
|
62
62
|
|
|
63
63
|
<script>
|
|
64
|
-
import uidMixin from '../../mixins
|
|
65
|
-
import themeMixin from '../../mixins/theme-mixin';
|
|
66
|
-
import methodsMixin from '../../mixins/methods-mixin';
|
|
64
|
+
import { uidMixin, themeMixin, methodsMixin, carbonPrefixMixin } from '../../mixins';
|
|
67
65
|
import WarningFilled16 from '@carbon/icons-vue/es/warning--filled/16';
|
|
68
66
|
import View16 from '@carbon/icons-vue/es/view/16';
|
|
69
67
|
import ViewOff16 from '@carbon/icons-vue/es/view--off/16';
|
|
70
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
71
68
|
|
|
72
69
|
export default {
|
|
73
70
|
name: 'CvTextInput',
|
|
@@ -96,7 +93,7 @@ export default {
|
|
|
96
93
|
mounted() {
|
|
97
94
|
this.checkSlots();
|
|
98
95
|
},
|
|
99
|
-
|
|
96
|
+
updated() {
|
|
100
97
|
this.checkSlots();
|
|
101
98
|
},
|
|
102
99
|
watch: {
|
|
@@ -131,7 +128,7 @@ export default {
|
|
|
131
128
|
},
|
|
132
129
|
methods: {
|
|
133
130
|
checkSlots() {
|
|
134
|
-
// NOTE: this.$slots is not reactive so needs to be managed on
|
|
131
|
+
// NOTE: this.$slots is not reactive so needs to be managed on updated
|
|
135
132
|
this.isInvalid = !!(this.$slots['invalid-message'] || (this.invalidMessage && this.invalidMessage.length));
|
|
136
133
|
this.isHelper = !!(this.$slots['helper-text'] || (this.helperText && this.helperText.length));
|
|
137
134
|
},
|
|
@@ -13,12 +13,10 @@
|
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
15
|
<script>
|
|
16
|
-
import
|
|
17
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
18
|
-
import methodsMixin from '../../mixins/methods-mixin';
|
|
16
|
+
import { linkMixin, carbonPrefixMixin, methodsMixin } from '../../mixins';
|
|
19
17
|
|
|
20
18
|
export default {
|
|
21
19
|
name: 'CvTileClickable',
|
|
22
|
-
mixins: [
|
|
20
|
+
mixins: [linkMixin, carbonPrefixMixin, methodsMixin({ target: ['blur', 'focus'] })],
|
|
23
21
|
};
|
|
24
22
|
</script>
|
|
@@ -37,8 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
<script>
|
|
39
39
|
import ChevronDown16 from '@carbon/icons-vue/es/chevron--down/16';
|
|
40
|
-
import carbonPrefixMixin from '../../mixins
|
|
41
|
-
import methodsMixin from '../../mixins/methods-mixin';
|
|
40
|
+
import { carbonPrefixMixin, methodsMixin } from '../../mixins';
|
|
42
41
|
|
|
43
42
|
export default {
|
|
44
43
|
name: 'CvTileExpandable',
|
|
@@ -34,11 +34,8 @@
|
|
|
34
34
|
</template>
|
|
35
35
|
|
|
36
36
|
<script>
|
|
37
|
-
import uidMixin from '../../mixins
|
|
38
|
-
import checkMixin from '../../mixins/check-mixin';
|
|
37
|
+
import { uidMixin, checkMixin, carbonPrefixMixin, methodsMixin } from '../../mixins';
|
|
39
38
|
import CheckmarkFilled16 from '@carbon/icons-vue/es/checkmark--filled/16';
|
|
40
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
41
|
-
import methodsMixin from '../../mixins/methods-mixin';
|
|
42
39
|
|
|
43
40
|
export default {
|
|
44
41
|
name: 'CvTileSelectable',
|
|
@@ -19,13 +19,11 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script>
|
|
22
|
-
import themeMixin from '../../mixins
|
|
22
|
+
import { themeMixin, carbonPrefixMixin, methodsMixin } from '../../mixins';
|
|
23
23
|
import CvTileClickable from './_cv-tile-clickable';
|
|
24
24
|
import CvTileExpandable from './_cv-tile-expandable';
|
|
25
25
|
import CvTileSelectable from './_cv-tile-selectable';
|
|
26
26
|
import CvTileStandard from './_cv-tile-standard';
|
|
27
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
28
|
-
import methodsMixin from '../../mixins/methods-mixin';
|
|
29
27
|
|
|
30
28
|
export default {
|
|
31
29
|
name: 'CvTile',
|
|
@@ -64,12 +64,9 @@
|
|
|
64
64
|
</template>
|
|
65
65
|
|
|
66
66
|
<script>
|
|
67
|
-
import uidMixin from '../../mixins
|
|
68
|
-
import themeMixin from '../../mixins/theme-mixin';
|
|
67
|
+
import { uidMixin, themeMixin, carbonPrefixMixin, methodsMixin } from '../../mixins';
|
|
69
68
|
import CvSelect from '../cv-select/cv-select';
|
|
70
69
|
import CvSelectOption from '../cv-select/cv-select-option';
|
|
71
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
72
|
-
import methodsMixin from '../../mixins/methods-mixin';
|
|
73
70
|
|
|
74
71
|
export default {
|
|
75
72
|
name: 'CvTimePicker',
|
|
@@ -103,7 +100,7 @@ export default {
|
|
|
103
100
|
mounted() {
|
|
104
101
|
this.checkSlots();
|
|
105
102
|
},
|
|
106
|
-
|
|
103
|
+
updated() {
|
|
107
104
|
this.checkSlots();
|
|
108
105
|
},
|
|
109
106
|
computed: {
|
|
@@ -133,7 +130,7 @@ export default {
|
|
|
133
130
|
},
|
|
134
131
|
methods: {
|
|
135
132
|
checkSlots() {
|
|
136
|
-
// NOTE: this.$slots is not reactive so needs to be managed on
|
|
133
|
+
// NOTE: this.$slots is not reactive so needs to be managed on updated
|
|
137
134
|
this.isInvalid = !!(this.$slots['invalid-message'] || (this.invalidMessage && this.invalidMessage.length));
|
|
138
135
|
},
|
|
139
136
|
},
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
<component :is="icon" :class="`${carbonPrefix}--toast-notification__icon`" />
|
|
14
14
|
<div :class="`${carbonPrefix}--toast-notification__details`">
|
|
15
15
|
<h3 :class="`${carbonPrefix}--toast-notification__title`">{{ title }}</h3>
|
|
16
|
-
<p :class="`${carbonPrefix}--toast-notification__subtitle`"
|
|
17
|
-
<p :class="`${carbonPrefix}--toast-notification__caption`"
|
|
16
|
+
<p :class="`${carbonPrefix}--toast-notification__subtitle`" v-html="subTitle"></p>
|
|
17
|
+
<p :class="`${carbonPrefix}--toast-notification__caption`" v-html="caption"></p>
|
|
18
18
|
</div>
|
|
19
19
|
<button
|
|
20
20
|
:aria-label="closeAriaLabel"
|
|
@@ -29,13 +29,12 @@
|
|
|
29
29
|
</template>
|
|
30
30
|
|
|
31
31
|
<script>
|
|
32
|
-
import notificationMixin from '../../mixins
|
|
32
|
+
import { notificationMixin, carbonPrefixMixin } from '../../mixins';
|
|
33
33
|
import ErrorFilled20 from '@carbon/icons-vue/es/error--filled/20';
|
|
34
34
|
import CheckmarkFilled20 from '@carbon/icons-vue/es/checkmark--filled/20';
|
|
35
35
|
import WarningFilled20 from '@carbon/icons-vue/es/warning--filled/20';
|
|
36
36
|
import Close20 from '@carbon/icons-vue/es/close/20';
|
|
37
37
|
import InformationFilled20 from '@carbon/icons-vue/es/information--filled/20';
|
|
38
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
39
38
|
|
|
40
39
|
export default {
|
|
41
40
|
name: 'CvToastNotification',
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
</template>
|
|
15
15
|
|
|
16
16
|
<script>
|
|
17
|
-
import uidMixin from '../../mixins
|
|
18
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
17
|
+
import { uidMixin, carbonPrefixMixin } from '../../mixins';
|
|
19
18
|
export default {
|
|
20
19
|
name: 'CvToggleSkeleton',
|
|
21
20
|
mixins: [uidMixin, carbonPrefixMixin],
|
|
@@ -29,10 +29,7 @@
|
|
|
29
29
|
</template>
|
|
30
30
|
|
|
31
31
|
<script>
|
|
32
|
-
import uidMixin from '../../mixins
|
|
33
|
-
import checkMixin from '../../mixins/check-mixin';
|
|
34
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
35
|
-
import methodsMixin from '../../mixins/methods-mixin';
|
|
32
|
+
import { uidMixin, checkMixin, carbonPrefixMixin, methodsMixin } from '../../mixins';
|
|
36
33
|
|
|
37
34
|
export default {
|
|
38
35
|
name: 'CvToggle',
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<script>
|
|
21
|
-
import uidMixin from '../../mixins
|
|
22
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
21
|
+
import { uidMixin, carbonPrefixMixin } from '../../mixins';
|
|
23
22
|
|
|
24
23
|
export default {
|
|
25
24
|
name: 'CvDefinitionTooltip',
|
|
@@ -58,9 +58,8 @@
|
|
|
58
58
|
</template>
|
|
59
59
|
|
|
60
60
|
<script>
|
|
61
|
-
import uidMixin from '../../mixins
|
|
61
|
+
import { uidMixin, carbonPrefixMixin } from '../../mixins';
|
|
62
62
|
import Information16 from '@carbon/icons-vue/es/information/16';
|
|
63
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
64
63
|
|
|
65
64
|
export default {
|
|
66
65
|
name: 'CvInteractiveTooltip',
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<script>
|
|
26
26
|
import Close20 from '@carbon/icons-vue/es/close/20';
|
|
27
27
|
import ChevronRight20 from '@carbon/icons-vue/es/chevron--right/20';
|
|
28
|
-
import carbonPrefixMixin from '../../mixins
|
|
28
|
+
import { carbonPrefixMixin } from '../../mixins';
|
|
29
29
|
|
|
30
30
|
export default {
|
|
31
31
|
name: 'CvSideNavFooter',
|
|
@@ -19,8 +19,7 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script>
|
|
22
|
-
import uidMixin from '../../mixins
|
|
23
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
22
|
+
import { uidMixin, carbonPrefixMixin } from '../../mixins';
|
|
24
23
|
|
|
25
24
|
export default {
|
|
26
25
|
name: 'CvHeaderGlobalAction',
|
|
@@ -25,10 +25,9 @@
|
|
|
25
25
|
</template>
|
|
26
26
|
|
|
27
27
|
<script>
|
|
28
|
-
import uidMixin from '../../mixins
|
|
28
|
+
import { uidMixin, carbonPrefixMixin } from '../../mixins';
|
|
29
29
|
import Close20 from '@carbon/icons-vue/es/close/20';
|
|
30
30
|
import Menu20 from '@carbon/icons-vue/es/menu/20';
|
|
31
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
32
31
|
|
|
33
32
|
export default {
|
|
34
33
|
name: 'CvHeaderMenuButton',
|
|
@@ -16,12 +16,11 @@
|
|
|
16
16
|
</template>
|
|
17
17
|
|
|
18
18
|
<script>
|
|
19
|
-
import
|
|
20
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
19
|
+
import { linkMixin, carbonPrefixMixin } from '../../mixins';
|
|
21
20
|
|
|
22
21
|
export default {
|
|
23
22
|
name: 'CvHeaderMenuItem',
|
|
24
|
-
mixins: [
|
|
23
|
+
mixins: [linkMixin, carbonPrefixMixin],
|
|
25
24
|
inheritAttrs: false,
|
|
26
25
|
props: {
|
|
27
26
|
active: Boolean,
|
|
@@ -6,12 +6,11 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script>
|
|
9
|
-
import
|
|
10
|
-
import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
|
|
9
|
+
import { linkMixin, carbonPrefixMixin } from '../../mixins';
|
|
11
10
|
|
|
12
11
|
export default {
|
|
13
12
|
name: 'CvHeaderName',
|
|
14
|
-
mixins: [
|
|
13
|
+
mixins: [linkMixin, carbonPrefixMixin],
|
|
15
14
|
props: {
|
|
16
15
|
prefix: String,
|
|
17
16
|
},
|