@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.
Files changed (128) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/carbon-vue.common.js +1676 -1457
  3. package/dist/carbon-vue.common.js.map +1 -1
  4. package/dist/carbon-vue.umd.js +1676 -1457
  5. package/dist/carbon-vue.umd.js.map +1 -1
  6. package/dist/carbon-vue.umd.min.js +3 -3
  7. package/dist/carbon-vue.umd.min.js.map +1 -1
  8. package/package.json +4 -4
  9. package/src/components/cv-accordion/_cv-accordion-item-skeleton.vue +1 -1
  10. package/src/components/cv-accordion/cv-accordion-item.vue +1 -4
  11. package/src/components/cv-accordion/cv-accordion-skeleton.vue +1 -1
  12. package/src/components/cv-accordion/cv-accordion.vue +1 -1
  13. package/src/components/cv-breadcrumb/_cv-breadcrumb-item-skeleton.vue +1 -1
  14. package/src/components/cv-breadcrumb/cv-breadcrumb-item.vue +1 -1
  15. package/src/components/cv-breadcrumb/cv-breadcrumb-skeleton.vue +1 -1
  16. package/src/components/cv-breadcrumb/cv-breadcrumb.vue +1 -1
  17. package/src/components/cv-button/cv-button-set.vue +1 -1
  18. package/src/components/cv-button/cv-button.vue +1 -1
  19. package/src/components/cv-button/cv-icon-button.vue +1 -1
  20. package/src/components/cv-checkbox/cv-checkbox-skeleton.vue +1 -1
  21. package/src/components/cv-checkbox/cv-checkbox.vue +1 -4
  22. package/src/components/cv-code-snippet/_cv-code-snippet-inline.vue +1 -2
  23. package/src/components/cv-code-snippet/_cv-code-snippet-multiline.vue +1 -2
  24. package/src/components/cv-code-snippet/_cv-code-snippet-oneline.vue +1 -2
  25. package/src/components/cv-code-snippet/cv-code-snippet-skeleton.vue +1 -1
  26. package/src/components/cv-combo-box/cv-combo-box.vue +3 -6
  27. package/src/components/cv-content-switcher/cv-content-switcher-button.vue +1 -2
  28. package/src/components/cv-content-switcher/cv-content-switcher.vue +1 -1
  29. package/src/components/cv-data-table/_cv-data-table-row-inner.vue +3 -3
  30. package/src/components/cv-data-table/cv-data-table-action.vue +1 -1
  31. package/src/components/cv-data-table/cv-data-table-heading.vue +1 -2
  32. package/src/components/cv-data-table/cv-data-table-row.vue +2 -3
  33. package/src/components/cv-data-table/cv-data-table-skeleton.vue +2 -2
  34. package/src/components/cv-data-table/cv-data-table.vue +3 -5
  35. package/src/components/cv-date-picker/cv-date-picker.vue +37 -15
  36. package/src/components/cv-date-picker/plugins/appendToPlugin.js +52 -0
  37. package/src/components/cv-date-picker/plugins/fixEventsPlugin.js +75 -0
  38. package/src/components/cv-date-picker/plugins/monthSelectPlugin.js +66 -0
  39. package/src/components/cv-date-picker/plugins/rangePlugin.js +45 -0
  40. package/src/components/cv-dropdown/cv-dropdown-item.vue +1 -1
  41. package/src/components/cv-dropdown/cv-dropdown-skeleton.vue +1 -1
  42. package/src/components/cv-dropdown/cv-dropdown.vue +10 -8
  43. package/src/components/cv-feedback-button/_cv-feedback-button.vue +1 -1
  44. package/src/components/cv-file-uploader/cv-file-uploader-skeleton.vue +1 -1
  45. package/src/components/cv-file-uploader/cv-file-uploader.vue +1 -3
  46. package/src/components/cv-form/cv-form-group.vue +1 -1
  47. package/src/components/cv-form/cv-form-item.vue +1 -1
  48. package/src/components/cv-form/cv-form.vue +1 -1
  49. package/src/components/cv-grid/cv-column.vue +77 -0
  50. package/src/components/cv-grid/cv-grid.vue +32 -0
  51. package/src/components/cv-grid/cv-row.vue +30 -0
  52. package/src/components/cv-grid/index.js +5 -0
  53. package/src/components/cv-inline-loading/cv-inline-loading.vue +1 -1
  54. package/src/components/cv-inline-notification/cv-inline-notification.vue +2 -3
  55. package/src/components/cv-link/cv-link.vue +2 -3
  56. package/src/components/cv-list/cv-list-item.vue +1 -1
  57. package/src/components/cv-list/cv-list.vue +1 -1
  58. package/src/components/cv-loading/cv-loading.vue +1 -1
  59. package/src/components/cv-modal/cv-modal.vue +3 -4
  60. package/src/components/cv-multi-select/cv-multi-select.vue +3 -6
  61. package/src/components/cv-number-input/cv-number-input-skeleton.vue +1 -1
  62. package/src/components/cv-number-input/cv-number-input.vue +3 -6
  63. package/src/components/cv-overflow-menu/cv-overflow-menu-item.vue +1 -1
  64. package/src/components/cv-overflow-menu/cv-overflow-menu.vue +1 -3
  65. package/src/components/cv-pagination/cv-pagination.vue +1 -1
  66. package/src/components/cv-progress/cv-progress-step.vue +1 -1
  67. package/src/components/cv-progress/cv-progress.vue +1 -1
  68. package/src/components/cv-radio-button/cv-radio-button.vue +1 -4
  69. package/src/components/cv-radio-button/cv-radio-group.vue +1 -1
  70. package/src/components/cv-search/cv-search.vue +1 -4
  71. package/src/components/cv-select/cv-select-optgroup.vue +1 -1
  72. package/src/components/cv-select/cv-select-option.vue +1 -1
  73. package/src/components/cv-select/cv-select.vue +3 -6
  74. package/src/components/cv-skeleton-text/cv-skeleton-text.vue +1 -1
  75. package/src/components/cv-slider/cv-slider-skeleton.vue +1 -1
  76. package/src/components/cv-slider/cv-slider.vue +1 -4
  77. package/src/components/cv-structured-list/_cv-structured-list-item-selectable.vue +1 -4
  78. package/src/components/cv-structured-list/_cv-structured-list-item-standard.vue +1 -1
  79. package/src/components/cv-structured-list/cv-structured-list-data.vue +1 -1
  80. package/src/components/cv-structured-list/cv-structured-list-heading.vue +1 -1
  81. package/src/components/cv-structured-list/cv-structured-list.vue +1 -1
  82. package/src/components/cv-tabs/cv-tab.vue +1 -1
  83. package/src/components/cv-tabs/cv-tabs-skeleton.vue +1 -1
  84. package/src/components/cv-tabs/cv-tabs.vue +1 -1
  85. package/src/components/cv-tag/cv-tag-skeleton.vue +1 -1
  86. package/src/components/cv-tag/cv-tag.vue +1 -2
  87. package/src/components/cv-text-area/cv-text-area.vue +3 -6
  88. package/src/components/cv-text-input/cv-text-input.vue +3 -6
  89. package/src/components/cv-tile/_cv-tile-clickable.vue +2 -4
  90. package/src/components/cv-tile/_cv-tile-expandable.vue +1 -2
  91. package/src/components/cv-tile/_cv-tile-selectable.vue +1 -4
  92. package/src/components/cv-tile/cv-tile.vue +1 -3
  93. package/src/components/cv-time-picker/cv-time-picker.vue +3 -6
  94. package/src/components/cv-toast-notification/cv-toast-notification.vue +3 -4
  95. package/src/components/cv-toggle/cv-toggle-skeleton.vue +1 -2
  96. package/src/components/cv-toggle/cv-toggle.vue +1 -4
  97. package/src/components/cv-toolbar/cv-toolbar-divider.vue +1 -1
  98. package/src/components/cv-toolbar/cv-toolbar-option.vue +1 -1
  99. package/src/components/cv-toolbar/cv-toolbar-search.vue +1 -1
  100. package/src/components/cv-toolbar/cv-toolbar-title.vue +1 -1
  101. package/src/components/cv-toolbar/cv-toolbar.vue +1 -1
  102. package/src/components/cv-tooltip/cv-definition-tooltip.vue +1 -2
  103. package/src/components/cv-tooltip/cv-interactive-tooltip.vue +1 -2
  104. package/src/components/cv-tooltip/cv-tooltip.vue +1 -1
  105. package/src/components/cv-ui-shell/_cv-side-nav-footer.vue +1 -1
  106. package/src/components/cv-ui-shell/_cv-side-nav-link-text.vue +1 -1
  107. package/src/components/cv-ui-shell/cv-content.vue +1 -1
  108. package/src/components/cv-ui-shell/cv-header-global-action.vue +1 -2
  109. package/src/components/cv-ui-shell/cv-header-menu-button.vue +1 -2
  110. package/src/components/cv-ui-shell/cv-header-menu-item.vue +2 -3
  111. package/src/components/cv-ui-shell/cv-header-menu.vue +1 -1
  112. package/src/components/cv-ui-shell/cv-header-name.vue +2 -3
  113. package/src/components/cv-ui-shell/cv-header-nav.vue +1 -1
  114. package/src/components/cv-ui-shell/cv-header-panel.vue +2 -2
  115. package/src/components/cv-ui-shell/cv-header-side-nav-items.vue +1 -1
  116. package/src/components/cv-ui-shell/cv-header.vue +3 -3
  117. package/src/components/cv-ui-shell/cv-side-nav-icon.vue +1 -1
  118. package/src/components/cv-ui-shell/cv-side-nav-items.vue +1 -1
  119. package/src/components/cv-ui-shell/cv-side-nav-link.vue +3 -4
  120. package/src/components/cv-ui-shell/cv-side-nav-menu-item.vue +2 -3
  121. package/src/components/cv-ui-shell/cv-side-nav-menu.vue +3 -3
  122. package/src/components/cv-ui-shell/cv-side-nav.vue +2 -2
  123. package/src/components/cv-ui-shell/cv-skip-to-content.vue +2 -3
  124. package/src/components/cv-ui-shell/cv-switcher-item-link.vue +2 -3
  125. package/src/components/cv-ui-shell/cv-switcher-item.vue +1 -1
  126. package/src/components/cv-ui-shell/cv-switcher.vue +1 -1
  127. package/src/index.js +2 -0
  128. package/src/mixins/index.js +12 -0
@@ -15,7 +15,7 @@
15
15
  </template>
16
16
 
17
17
  <script>
18
- import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
18
+ import { carbonPrefixMixin } from '../../mixins';
19
19
  export default {
20
20
  name: 'CvHeaderPanel',
21
21
  mixins: [carbonPrefixMixin],
@@ -62,7 +62,7 @@ export default {
62
62
  this.$parent.$emit('cv:panel-focusout', this, ev);
63
63
  },
64
64
  onMouseDown(ev) {
65
- if (this.$el === ev.target) {
65
+ if (this.$el == ev.target || this.$el.contains(ev.target)) {
66
66
  // ignore mousedown on panel can cause focus event
67
67
  ev.preventDefault();
68
68
  }
@@ -10,7 +10,7 @@
10
10
  </template>
11
11
 
12
12
  <script>
13
- import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
13
+ import { carbonPrefixMixin } from '../../mixins';
14
14
  export default {
15
15
  name: 'CvHeaderSideNavItems',
16
16
  mixins: [carbonPrefixMixin],
@@ -10,7 +10,7 @@
10
10
  </template>
11
11
 
12
12
  <script>
13
- import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
13
+ import { carbonPrefixMixin } from '../../mixins';
14
14
  export default {
15
15
  name: 'CvHeader',
16
16
  mixins: [carbonPrefixMixin],
@@ -32,10 +32,10 @@ export default {
32
32
  };
33
33
  },
34
34
  mounted() {
35
- // NOTE: this.$slots is not reactive so needs to be managed on beforeUpdate
35
+ // NOTE: this.$slots is not reactive so needs to be managed on updated
36
36
  this.hasGlobalHeader = !!this.$slots['header-global'];
37
37
  },
38
- beforeUpdate() {
38
+ updated() {
39
39
  this.hasGlobalHeader = !!this.$slots['header-global'];
40
40
  },
41
41
  computed: {
@@ -5,7 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
- import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
8
+ import { carbonPrefixMixin } from '../../mixins';
9
9
  export default {
10
10
  name: 'CvSideNavIcon',
11
11
  mixins: [carbonPrefixMixin],
@@ -5,7 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
- import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
8
+ import { carbonPrefixMixin } from '../../mixins';
9
9
  export default {
10
10
  name: 'CvSideNavItems',
11
11
  mixins: [carbonPrefixMixin],
@@ -21,15 +21,14 @@
21
21
  </template>
22
22
 
23
23
  <script>
24
- import LinkMixin from '../../mixins/link-mixin';
24
+ import { linkMixin, carbonPrefixMixin } from '../../mixins';
25
25
  import CvSideNavIcon from './cv-side-nav-icon';
26
26
  import CvSideNavLinkText from './_cv-side-nav-link-text';
27
- import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
28
27
 
29
28
  export default {
30
29
  name: 'CvSideNavLink',
31
30
  inheritAttrs: false,
32
- mixins: [LinkMixin, carbonPrefixMixin],
31
+ mixins: [linkMixin, carbonPrefixMixin],
33
32
  components: { CvSideNavIcon, CvSideNavLinkText },
34
33
  props: {
35
34
  active: Boolean,
@@ -40,7 +39,7 @@ export default {
40
39
  hasNavIcon: this.$slots['nav-icon'],
41
40
  };
42
41
  },
43
- beforeUpdate() {
42
+ updated() {
44
43
  this.hasNavIcon = !!this.$slots['nav-icon'];
45
44
  },
46
45
  };
@@ -15,14 +15,13 @@
15
15
  </template>
16
16
 
17
17
  <script>
18
- import LinkMixin from '../../mixins/link-mixin';
18
+ import { linkMixin, carbonPrefixMixin } from '../../mixins';
19
19
  import CvSideNavLinkText from './_cv-side-nav-link-text';
20
- import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
21
20
 
22
21
  export default {
23
22
  name: 'CvSideNavMenuItem',
24
23
  inheritAttrs: false,
25
- mixins: [LinkMixin, carbonPrefixMixin],
24
+ mixins: [linkMixin, carbonPrefixMixin],
26
25
  components: { CvSideNavLinkText },
27
26
  props: {
28
27
  active: Boolean,
@@ -38,7 +38,7 @@
38
38
  <script>
39
39
  import ChevronDown20 from '@carbon/icons-vue/es/chevron--down/20';
40
40
  import CvSideNavIcon from './cv-side-nav-icon';
41
- import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
41
+ import { carbonPrefixMixin } from '../../mixins';
42
42
 
43
43
  export default {
44
44
  name: 'CvSideNavMenu',
@@ -56,10 +56,10 @@ export default {
56
56
  };
57
57
  },
58
58
  mounted() {
59
- // NOTE: this.$slots is not reactive so needs to be managed on beforeUpdate
59
+ // NOTE: this.$slots is not reactive so needs to be managed on updated
60
60
  this.hasNavIcon = !!this.$slots['nav-icon'];
61
61
  },
62
- beforeUpdate() {
62
+ updated() {
63
63
  this.hasNavIcon = !!this.$slots['nav-icon'];
64
64
  },
65
65
  computed: {
@@ -28,7 +28,7 @@
28
28
 
29
29
  <script>
30
30
  import CvSideNavFooter from './_cv-side-nav-footer';
31
- import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
31
+ import { carbonPrefixMixin } from '../../mixins';
32
32
 
33
33
  export default {
34
34
  name: 'CvSideNav',
@@ -80,7 +80,7 @@ export default {
80
80
  this.$parent.$emit('cv:panel-focusout', this, ev);
81
81
  },
82
82
  onMouseDown(ev) {
83
- if (this.$el === ev.target) {
83
+ if (this.$el == ev.target || this.$el.contains(ev.target)) {
84
84
  // ignore mousedown on panel can cause focus event
85
85
  ev.preventDefault();
86
86
  }
@@ -10,11 +10,10 @@
10
10
  </template>
11
11
 
12
12
  <script>
13
- import LinkMixin from '../../mixins/link-mixin';
14
- import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
13
+ import { linkMixin, carbonPrefixMixin } from '../../mixins';
15
14
 
16
15
  export default {
17
16
  name: 'CvSkipToContent',
18
- mixins: [LinkMixin, carbonPrefixMixin],
17
+ mixins: [linkMixin, carbonPrefixMixin],
19
18
  };
20
19
  </script>
@@ -14,12 +14,11 @@
14
14
  </template>
15
15
 
16
16
  <script>
17
- import LinkMixin from '../../mixins/link-mixin';
18
- import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
17
+ import { linkMixin, carbonPrefixMixin } from '../../mixins';
19
18
 
20
19
  export default {
21
20
  name: 'CvSwitcherItemLink',
22
- mixins: [LinkMixin, carbonPrefixMixin],
21
+ mixins: [linkMixin, carbonPrefixMixin],
23
22
  props: {
24
23
  selected: Boolean,
25
24
  },
@@ -5,7 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
- import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
8
+ import { carbonPrefixMixin } from '../../mixins';
9
9
  export default {
10
10
  name: 'CvSwitcherItem',
11
11
  mixins: [carbonPrefixMixin],
@@ -5,7 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
- import carbonPrefixMixin from '../../mixins/carbon-prefix-mixin';
8
+ import { carbonPrefixMixin } from '../../mixins';
9
9
  export default {
10
10
  name: 'CvSwitcher',
11
11
  mixins: [carbonPrefixMixin],
package/src/index.js CHANGED
@@ -45,6 +45,7 @@ import { CvDatePicker } from './components/cv-date-picker';
45
45
  import { CvDropdown, CvDropdownItem, CvDropdownSkeleton } from './components/cv-dropdown';
46
46
  import { CvFileUploader, CvFileUploaderSkeleton } from './components/cv-file-uploader';
47
47
  import { CvForm, CvFormItem, CvFormGroup } from './components/cv-form';
48
+ import { CvGrid, CvRow, CvColumn } from './components/cv-grid';
48
49
  import { CvInlineLoading } from './components/cv-inline-loading';
49
50
  import { CvInlineNotification } from './components/cv-inline-notification';
50
51
  import { CvLink } from './components/cv-link';
@@ -113,6 +114,7 @@ export { CvDatePicker };
113
114
  export { CvDropdown, CvDropdownItem, CvDropdownSkeleton };
114
115
  export { CvFileUploader, CvFileUploaderSkeleton };
115
116
  export { CvForm, CvFormItem, CvFormGroup };
117
+ export { CvGrid, CvRow, CvColumn };
116
118
  export { CvInlineLoading };
117
119
  export { CvInlineNotification };
118
120
  export { CvLink };
@@ -0,0 +1,12 @@
1
+ // import mixins
2
+ import carbonPrefixMixin from './carbon-prefix-mixin';
3
+ import checkMixin from './check-mixin';
4
+ import linkMixin from './link-mixin';
5
+ import methodsMixin from './methods-mixin';
6
+ import notificationMixin from './notification-mixin';
7
+ import radioMixin from './radio-mixin';
8
+ import themeMixin from './theme-mixin';
9
+ import uidMixin from './uid-mixin';
10
+
11
+ // export all the mixins
12
+ export { carbonPrefixMixin, checkMixin, linkMixin, methodsMixin, notificationMixin, radioMixin, themeMixin, uidMixin };