@carbon/vue 3.0.9-alpha.0 → 3.0.9
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 +60 -21
- package/dist/carbon-vue-3.common.js +127 -29
- package/dist/carbon-vue-3.common.js.map +1 -1
- package/dist/carbon-vue-3.umd.js +127 -29
- package/dist/carbon-vue-3.umd.js.map +1 -1
- package/dist/carbon-vue-3.umd.min.js +4 -4
- package/dist/carbon-vue-3.umd.min.js.map +1 -1
- package/package.json +2 -2
- package/src/components/CvFileUploader/CvFileUploader.stories.mdx +24 -6
- package/src/components/CvFileUploader/CvFileUploader.vue +58 -19
- package/src/components/CvTabs/CvTabs.stories.mdx +84 -3
- package/src/components/CvTabs/CvTabs.vue +3 -1
- package/src/components/CvTabs/__tests__/__snapshots__/CvTabs.spec.js.snap +24 -0
- package/src/components/CvTag/CvTag.stories.js +2 -1
- package/src/components/CvTag/CvTag.vue +10 -5
- package/src/components/CvTag/CvTagSkeleton.stories.js +39 -0
- package/src/components/CvTag/CvTagSkeleton.vue +20 -0
- package/src/components/CvTag/index.js +2 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @carbon/vue-3
|
|
2
2
|
|
|
3
|
-
<p
|
|
3
|
+
<p>
|
|
4
4
|
<a href="https://github.com/carbon-design-system/carbon/blob/master/LICENSE">
|
|
5
5
|
<img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg" alt="Carbon is released under the Apache-2.0 license" />
|
|
6
6
|
</a>
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
<a href="https://github.com/carbon-design-system/carbon/blob/master/.github/CONTRIBUTING.md">
|
|
14
14
|
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs welcome" />
|
|
15
15
|
</a>
|
|
16
|
+
<a href="https://discord.gg/J7JEUEkTRX">
|
|
17
|
+
<img src="https://img.shields.io/discord/689212587170201628?color=5865F2" alt="Chat with us on Discord">
|
|
18
|
+
</a>
|
|
16
19
|
</p>
|
|
17
20
|
|
|
18
21
|
> Vue implementation of the Carbon Design System
|
|
@@ -26,34 +29,70 @@ The [library](http://vue.carbondesignsystem.com/) provides front-end developers
|
|
|
26
29
|
|
|
27
30
|
As a community project contributions are not only welcome, but essential for the maintenance and growth of this project.
|
|
28
31
|
|
|
29
|
-
|
|
32
|
+
## Install
|
|
33
|
+
|
|
34
|
+
```shell
|
|
35
|
+
npm add @carbon/vue
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
or
|
|
39
|
+
|
|
40
|
+
```shell
|
|
41
|
+
$ yarn add @carbon/vue
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Add to Vue project
|
|
45
|
+
|
|
46
|
+
`src/main.js`
|
|
47
|
+
|
|
48
|
+
```js
|
|
49
|
+
import CarbonVue3 from '@carbon/vue';
|
|
50
|
+
import App from './App.vue';
|
|
51
|
+
const app = createApp(App);
|
|
52
|
+
app.use(CarbonVue3);
|
|
53
|
+
app.mount('#app');
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
See [Hello Carbon Vue](https://github.com/IBM/hello-carbon-vue3) for an example Vue project with Carbon.
|
|
57
|
+
|
|
58
|
+
### Add to Nuxt project
|
|
59
|
+
|
|
60
|
+
`plugins/carbon-vue.js`
|
|
61
|
+
|
|
62
|
+
```js
|
|
63
|
+
import CarbonVue from '@carbon/vue'
|
|
64
|
+
|
|
65
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
66
|
+
nuxtApp.vueApp.use(CarbonVue)
|
|
67
|
+
}
|
|
68
|
+
```
|
|
30
69
|
|
|
31
|
-
|
|
70
|
+
See [Hello Carbon Nuxt](#add-to-nuxt-project) **coming soon**
|
|
32
71
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
72
|
+
### Vue 3
|
|
73
|
+
|
|
74
|
+
- Vue 2 support will end on Dec 31, 2023. Learn [more](https://vuejs.org/guide/introduction.html).
|
|
75
|
+
- Upgrading from Vue 2? Check out the [Migration Guide](https://v3-migration.vuejs.org/).
|
|
76
|
+
- Vue 2 components can be found on the `vue2` [branch](https://github.com/carbon-design-system/carbon-components-vue/tree/vue2)
|
|
77
|
+
|
|
78
|
+
Vue 3 components for Carbon 10 have reached parity with the Vue 2 components.
|
|
79
|
+
More work is needed especially around accessibility. If you want to improve Vue 3 components follow these guidelines.
|
|
80
|
+
|
|
81
|
+
1. Fork this repo and checkout the `main` branch
|
|
82
|
+
2. Look to see which components are currently being improved. You can do this by looking in the [issues list](https://github.com/carbon-design-system/carbon-components-vue/issues).
|
|
83
|
+
3. If you want to improve a component, look in the open issue list to see if someone else might already be working on it. Look for issues with a "V3 - Vue3" label and the name of the component. For example "**CvDatePicker - improving accessibility**".
|
|
84
|
+
4. If no one else is already working on it, create an issue using the "🍪 Vue 3 - improve component" and label it as above.
|
|
37
85
|
- Work on the component and create a PR when you are ready.
|
|
38
86
|
- Components are expected to be implemented as [single file components](https://vuejs.org/guide/scaling-up/sfc.html) using the Vue [composition api](https://vuejs.org/guide/extras/composition-api-faq.html). See `CvCheckbox` as an example. The Vue 2 components use the options API.
|
|
39
|
-
- You should reference the
|
|
40
|
-
|
|
41
|
-
- You should
|
|
42
|
-
|
|
43
|
-
src/components/CvCheckbox/CvCheckbox.stories.js
|
|
44
|
-
src/components/CvCheckbox/CvCheckbox.vue
|
|
45
|
-
src/components/CvCheckbox/__tests__/CvCheckbox.spec.js
|
|
46
|
-
src/components/CvCheckbox/index.js
|
|
47
|
-
```
|
|
87
|
+
- You should reference the DOM in the React components storybook and be sure to include any accessibility
|
|
88
|
+
improvements that might be there.
|
|
89
|
+
- You should update the story and test cases for the component if applicable. Sometimes the story might need updating
|
|
90
|
+
almost always the test cases for the component will need updates.
|
|
48
91
|
- If you have question tag @davidnixon in your issue and let me know how I can help.
|
|
49
92
|
|
|
50
93
|
### Changelog
|
|
51
94
|
|
|
52
|
-
[CHANGELOG.md](./
|
|
53
|
-
|
|
54
|
-
## Getting started
|
|
55
|
-
|
|
56
|
-
[Usage and getting started instructions](./packages/core/README.md#getting-started) for @carbon/vue.
|
|
95
|
+
[CHANGELOG.md](./CHANGELOG.md)
|
|
57
96
|
|
|
58
97
|
### List of available components
|
|
59
98
|
|
|
@@ -12064,10 +12064,10 @@ var CvButtonCommon = __webpack_require__(7779);
|
|
|
12064
12064
|
|
|
12065
12065
|
|
|
12066
12066
|
var _hoisted_1 = ["for", "onKeydown"];
|
|
12067
|
-
var _hoisted_2 = ["id", "accept"];
|
|
12067
|
+
var _hoisted_2 = ["id", "accept", "disabled"];
|
|
12068
12068
|
var _hoisted_3 = ["for"];
|
|
12069
12069
|
var _hoisted_4 = ["onKeydown"];
|
|
12070
|
-
var _hoisted_5 = ["id", "accept"];
|
|
12070
|
+
var _hoisted_5 = ["id", "accept", "disabled"];
|
|
12071
12071
|
|
|
12072
12072
|
|
|
12073
12073
|
|
|
@@ -12095,8 +12095,10 @@ var __default__ = {
|
|
|
12095
12095
|
},
|
|
12096
12096
|
buttonSize: CvButtonCommon/* props.size */.N.size,
|
|
12097
12097
|
clearOnReselect: Boolean,
|
|
12098
|
+
disabled: Boolean,
|
|
12098
12099
|
dropTargetLabel: String,
|
|
12099
12100
|
helperText: String,
|
|
12101
|
+
initialStateUploading: Boolean,
|
|
12100
12102
|
kind: {
|
|
12101
12103
|
type: String,
|
|
12102
12104
|
default: KINDS.DRAG_TARGET,
|
|
@@ -12169,7 +12171,7 @@ var __default__ = {
|
|
|
12169
12171
|
var newFile = createInternalFile((internalFile === null || internalFile === void 0 ? void 0 : internalFile.file) || file);
|
|
12170
12172
|
|
|
12171
12173
|
if (internalFile) {
|
|
12172
|
-
internalFile.state = newFile.
|
|
12174
|
+
internalFile.state = newFile.state;
|
|
12173
12175
|
internalFile.invalidMessageTitle = newFile.invalidMessageTitle;
|
|
12174
12176
|
internalFile.invalidMessage = newFile.invalidMessage;
|
|
12175
12177
|
} else {
|
|
@@ -12213,6 +12215,11 @@ var __default__ = {
|
|
|
12213
12215
|
}
|
|
12214
12216
|
|
|
12215
12217
|
function onDragEvent(evt) {
|
|
12218
|
+
if (props.disabled) {
|
|
12219
|
+
evt.preventDefault();
|
|
12220
|
+
return;
|
|
12221
|
+
}
|
|
12222
|
+
|
|
12216
12223
|
if (Array.prototype.indexOf.call(evt.dataTransfer.types, 'Files') === -1) {
|
|
12217
12224
|
return;
|
|
12218
12225
|
}
|
|
@@ -12247,7 +12254,7 @@ var __default__ = {
|
|
|
12247
12254
|
|
|
12248
12255
|
function onItemRemove(index) {
|
|
12249
12256
|
internalFiles.value.splice(index, 1);
|
|
12250
|
-
emit('update:modelValue',
|
|
12257
|
+
emit('update:modelValue', internalFiles.value);
|
|
12251
12258
|
}
|
|
12252
12259
|
|
|
12253
12260
|
function onKeyHit() {
|
|
@@ -12259,20 +12266,31 @@ var __default__ = {
|
|
|
12259
12266
|
internalFiles.value = props.modelValue || [];
|
|
12260
12267
|
}); // exposed methods
|
|
12261
12268
|
|
|
12269
|
+
function clear() {
|
|
12270
|
+
internalFiles.value = [];
|
|
12271
|
+
emit('update:modelValue', internalFiles.value);
|
|
12272
|
+
}
|
|
12273
|
+
|
|
12274
|
+
function remove(index) {
|
|
12275
|
+
onItemRemove(index);
|
|
12276
|
+
}
|
|
12277
|
+
|
|
12278
|
+
function setInvalidMessage(index, message) {
|
|
12279
|
+
internalFiles.value[index].invalidMessage = message;
|
|
12280
|
+
}
|
|
12281
|
+
|
|
12282
|
+
function setState(index, state) {
|
|
12283
|
+
if ([STATES.COMPLETE, STATES.UPLOADING, STATES.NONE].includes(state)) {
|
|
12284
|
+
internalFiles.value[index].state = state;
|
|
12285
|
+
}
|
|
12286
|
+
} // exposing methods
|
|
12287
|
+
|
|
12288
|
+
|
|
12262
12289
|
__expose({
|
|
12263
|
-
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
|
|
12267
|
-
},
|
|
12268
|
-
clear: function clear() {
|
|
12269
|
-
internalFiles.value = [];
|
|
12270
|
-
emit('update:modelValue', internalFiles);
|
|
12271
|
-
},
|
|
12272
|
-
setInvalidMessage: function setInvalidMessage(index, message) {
|
|
12273
|
-
internalFiles.value[index].invalidMessage = message;
|
|
12274
|
-
},
|
|
12275
|
-
remove: onItemRemove
|
|
12290
|
+
clear: clear,
|
|
12291
|
+
remove: remove,
|
|
12292
|
+
setInvalidMessage: setInvalidMessage,
|
|
12293
|
+
setState: setState
|
|
12276
12294
|
});
|
|
12277
12295
|
|
|
12278
12296
|
return function (_ctx, _cache) {
|
|
@@ -12281,16 +12299,16 @@ var __default__ = {
|
|
|
12281
12299
|
}, {
|
|
12282
12300
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
12283
12301
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", {
|
|
12284
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file--label"))
|
|
12302
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file--label"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file--label--disabled"), __props.disabled)])
|
|
12285
12303
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.label), 3), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", {
|
|
12286
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--label-description"))
|
|
12304
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--label-description"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--label-description--disabled"), __props.disabled)])
|
|
12287
12305
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.helperText), 3), __props.kind === 'button' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
12288
12306
|
key: 0,
|
|
12289
12307
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file")),
|
|
12290
12308
|
"data-file": ""
|
|
12291
12309
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
12292
12310
|
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
12293
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(buttonClasses)),
|
|
12311
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)([(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(buttonClasses), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--btn--disabled"), __props.disabled)]),
|
|
12294
12312
|
tabindex: "0",
|
|
12295
12313
|
onKeydown: [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(onKeyHit, ["prevent"]), ["enter"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(onKeyHit, ["prevent"]), ["space"])]
|
|
12296
12314
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "drop-target", {}, function () {
|
|
@@ -12301,6 +12319,7 @@ var __default__ = {
|
|
|
12301
12319
|
ref: fileInput,
|
|
12302
12320
|
class: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file-input"),
|
|
12303
12321
|
accept: __props.accept,
|
|
12322
|
+
disabled: __props.disabled,
|
|
12304
12323
|
type: "file"
|
|
12305
12324
|
}, _ctx.$attrs, {
|
|
12306
12325
|
"data-file-uploader": "",
|
|
@@ -12316,7 +12335,7 @@ var __default__ = {
|
|
|
12316
12335
|
role: "button",
|
|
12317
12336
|
tabindex: "0",
|
|
12318
12337
|
"data-file-drop-container": "",
|
|
12319
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file-browse-btn"), "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file__drop-container"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file__drop-container--drag-over"), allowDrop.value)]),
|
|
12338
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file-browse-btn"), "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file__drop-container"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file__drop-container--drag-over"), allowDrop.value && !__props.disabled), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file-browse-btn--disabled"), __props.disabled)]),
|
|
12320
12339
|
onDragover: onDragEvent,
|
|
12321
12340
|
onDragleave: onDragEvent,
|
|
12322
12341
|
onDrop: onDragEvent,
|
|
@@ -12329,6 +12348,7 @@ var __default__ = {
|
|
|
12329
12348
|
ref: fileInput,
|
|
12330
12349
|
class: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file-input"),
|
|
12331
12350
|
accept: __props.accept,
|
|
12351
|
+
disabled: __props.disabled,
|
|
12332
12352
|
type: "file"
|
|
12333
12353
|
}, _ctx.$attrs, {
|
|
12334
12354
|
tabindex: "-1",
|
|
@@ -14236,7 +14256,7 @@ var close_16 = __webpack_require__(2148);
|
|
|
14236
14256
|
// EXTERNAL MODULE: ./src/components/CvCheckbox/CvCheckbox.vue + 2 modules
|
|
14237
14257
|
var CvCheckbox = __webpack_require__(5478);
|
|
14238
14258
|
// EXTERNAL MODULE: ./src/components/CvTag/CvTag.vue + 4 modules
|
|
14239
|
-
var CvTag = __webpack_require__(
|
|
14259
|
+
var CvTag = __webpack_require__(1017);
|
|
14240
14260
|
;// CONCATENATED MODULE: ./src/components/CvMultiSelect/consts.js
|
|
14241
14261
|
var TOP_AFTER_REOPEN = 0;
|
|
14242
14262
|
var TOP = 1;
|
|
@@ -19645,7 +19665,9 @@ var OVERFLOW_BUTTON_OFFSET = 40;
|
|
|
19645
19665
|
ref: elLink,
|
|
19646
19666
|
tabindex: selectedId.value === tab.uid ? 0 : -1,
|
|
19647
19667
|
type: "button"
|
|
19648
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
19668
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, tab.uid, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.guardReactiveProps)(tab)), function () {
|
|
19669
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(tab.label), 1)];
|
|
19670
|
+
})], 10, _hoisted_4)], 2);
|
|
19649
19671
|
}), 128))], 2), !rightOverflowNavButtonHidden.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
19650
19672
|
key: 1,
|
|
19651
19673
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tabs__overflow-indicator--right"))
|
|
@@ -19750,7 +19772,7 @@ const __exports__ = CvTabsSkeletonvue_type_script_setup_true_lang_js;
|
|
|
19750
19772
|
|
|
19751
19773
|
/***/ }),
|
|
19752
19774
|
|
|
19753
|
-
/***/
|
|
19775
|
+
/***/ 1017:
|
|
19754
19776
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
19755
19777
|
|
|
19756
19778
|
"use strict";
|
|
@@ -19768,7 +19790,7 @@ var es_array_filter = __webpack_require__(7327);
|
|
|
19768
19790
|
var es_object_to_string = __webpack_require__(1539);
|
|
19769
19791
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
19770
19792
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
19771
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/CvTag/CvTag.vue?vue&type=template&id=
|
|
19793
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/CvTag/CvTag.vue?vue&type=template&id=3d67de34
|
|
19772
19794
|
|
|
19773
19795
|
|
|
19774
19796
|
|
|
@@ -19797,12 +19819,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19797
19819
|
disabled: $props.disabled
|
|
19798
19820
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_Close16)], 10, _hoisted_2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 10, _hoisted_1));
|
|
19799
19821
|
}
|
|
19800
|
-
;// CONCATENATED MODULE: ./src/components/CvTag/CvTag.vue?vue&type=template&id=
|
|
19822
|
+
;// CONCATENATED MODULE: ./src/components/CvTag/CvTag.vue?vue&type=template&id=3d67de34
|
|
19801
19823
|
|
|
19802
19824
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
19803
19825
|
var es_array_includes = __webpack_require__(6699);
|
|
19804
19826
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
19805
19827
|
var es_string_includes = __webpack_require__(2023);
|
|
19828
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.small.js
|
|
19829
|
+
var es_string_small = __webpack_require__(7268);
|
|
19806
19830
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
19807
19831
|
var es_array_concat = __webpack_require__(2222);
|
|
19808
19832
|
// EXTERNAL MODULE: ./src/global/settings.js
|
|
@@ -19821,6 +19845,7 @@ var _16 = __webpack_require__(2148);
|
|
|
19821
19845
|
|
|
19822
19846
|
|
|
19823
19847
|
|
|
19848
|
+
|
|
19824
19849
|
/* harmony default export */ var CvTagvue_type_script_lang_js = ({
|
|
19825
19850
|
name: 'CvTag',
|
|
19826
19851
|
components: {
|
|
@@ -19867,7 +19892,12 @@ var _16 = __webpack_require__(2148);
|
|
|
19867
19892
|
/**
|
|
19868
19893
|
* skeleton used when loading
|
|
19869
19894
|
*/
|
|
19870
|
-
skeleton: Boolean
|
|
19895
|
+
skeleton: Boolean,
|
|
19896
|
+
|
|
19897
|
+
/**
|
|
19898
|
+
* tag size small
|
|
19899
|
+
*/
|
|
19900
|
+
small: Boolean
|
|
19871
19901
|
},
|
|
19872
19902
|
emits: [
|
|
19873
19903
|
/**
|
|
@@ -19880,11 +19910,14 @@ var _16 = __webpack_require__(2148);
|
|
|
19880
19910
|
return props.filter ? props.clearAriaLabel : null;
|
|
19881
19911
|
});
|
|
19882
19912
|
var tagClasses = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
19883
|
-
var classes = ["".concat(settings/* carbonPrefix */.B, "--tag")
|
|
19913
|
+
var classes = ["".concat(settings/* carbonPrefix */.B, "--tag")];
|
|
19914
|
+
if (props.small) classes.push("".concat(settings/* carbonPrefix */.B, "--tag--sm"));
|
|
19884
19915
|
|
|
19885
19916
|
if (props.skeleton) {
|
|
19886
19917
|
classes.push("".concat(settings/* carbonPrefix */.B, "--skeleton"));
|
|
19887
19918
|
} else {
|
|
19919
|
+
classes.push("".concat(settings/* carbonPrefix */.B, "--tag--").concat(props.kind));
|
|
19920
|
+
|
|
19888
19921
|
if (props.filter) {
|
|
19889
19922
|
classes.push("".concat(settings/* carbonPrefix */.B, "--tag--filter"));
|
|
19890
19923
|
}
|
|
@@ -19927,6 +19960,70 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(CvTagvue_type_s
|
|
|
19927
19960
|
|
|
19928
19961
|
/***/ }),
|
|
19929
19962
|
|
|
19963
|
+
/***/ 6518:
|
|
19964
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
19965
|
+
|
|
19966
|
+
"use strict";
|
|
19967
|
+
// ESM COMPAT FLAG
|
|
19968
|
+
__webpack_require__.r(__webpack_exports__);
|
|
19969
|
+
|
|
19970
|
+
// EXPORTS
|
|
19971
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
19972
|
+
"default": function() { return /* binding */ CvTagSkeleton; }
|
|
19973
|
+
});
|
|
19974
|
+
|
|
19975
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.small.js
|
|
19976
|
+
var es_string_small = __webpack_require__(7268);
|
|
19977
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
19978
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
19979
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/CvTag/CvTagSkeleton.vue?vue&type=template&id=75495299
|
|
19980
|
+
|
|
19981
|
+
|
|
19982
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19983
|
+
var _component_CvTag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("CvTag");
|
|
19984
|
+
|
|
19985
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_CvTag, {
|
|
19986
|
+
skeleton: "",
|
|
19987
|
+
small: $props.small,
|
|
19988
|
+
label: ''
|
|
19989
|
+
}, null, 8, ["small"]);
|
|
19990
|
+
}
|
|
19991
|
+
;// CONCATENATED MODULE: ./src/components/CvTag/CvTagSkeleton.vue?vue&type=template&id=75495299
|
|
19992
|
+
|
|
19993
|
+
// EXTERNAL MODULE: ./src/components/CvTag/CvTag.vue + 4 modules
|
|
19994
|
+
var CvTag = __webpack_require__(1017);
|
|
19995
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/CvTag/CvTagSkeleton.vue?vue&type=script&lang=js
|
|
19996
|
+
|
|
19997
|
+
/* harmony default export */ var CvTagSkeletonvue_type_script_lang_js = ({
|
|
19998
|
+
name: 'CvTagSkeleton',
|
|
19999
|
+
components: {
|
|
20000
|
+
CvTag: CvTag["default"]
|
|
20001
|
+
},
|
|
20002
|
+
props: {
|
|
20003
|
+
/**
|
|
20004
|
+
* tag size small
|
|
20005
|
+
*/
|
|
20006
|
+
small: {
|
|
20007
|
+
type: Boolean
|
|
20008
|
+
}
|
|
20009
|
+
}
|
|
20010
|
+
});
|
|
20011
|
+
;// CONCATENATED MODULE: ./src/components/CvTag/CvTagSkeleton.vue?vue&type=script&lang=js
|
|
20012
|
+
|
|
20013
|
+
// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/dist/exportHelper.js
|
|
20014
|
+
var exportHelper = __webpack_require__(8118);
|
|
20015
|
+
;// CONCATENATED MODULE: ./src/components/CvTag/CvTagSkeleton.vue
|
|
20016
|
+
|
|
20017
|
+
|
|
20018
|
+
|
|
20019
|
+
|
|
20020
|
+
;
|
|
20021
|
+
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(CvTagSkeletonvue_type_script_lang_js, [['render',render]])
|
|
20022
|
+
|
|
20023
|
+
/* harmony default export */ var CvTagSkeleton = (__exports__);
|
|
20024
|
+
|
|
20025
|
+
/***/ }),
|
|
20026
|
+
|
|
19930
20027
|
/***/ 4722:
|
|
19931
20028
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
19932
20029
|
|
|
@@ -43097,7 +43194,8 @@ var map = {
|
|
|
43097
43194
|
"./CvTabs/CvTab.vue": 1758,
|
|
43098
43195
|
"./CvTabs/CvTabs.vue": 7763,
|
|
43099
43196
|
"./CvTabs/CvTabsSkeleton.vue": 6104,
|
|
43100
|
-
"./CvTag/CvTag.vue":
|
|
43197
|
+
"./CvTag/CvTag.vue": 1017,
|
|
43198
|
+
"./CvTag/CvTagSkeleton.vue": 6518,
|
|
43101
43199
|
"./CvTextArea/CvTextArea.vue": 4722,
|
|
43102
43200
|
"./CvTextArea/CvTextAreaSkeleton.vue": 5136,
|
|
43103
43201
|
"./CvTextInput/CvTextInput.vue": 6123,
|