@carbon/vue 3.0.7-alpha.0 → 3.0.9-alpha.0
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 +7 -0
- package/dist/carbon-vue-3.common.js +3850 -217
- package/dist/carbon-vue-3.common.js.map +1 -1
- package/dist/carbon-vue-3.umd.js +3850 -217
- 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 +7 -4
- package/src/components/CvCheckbox/CvCheckbox.stories.js +18 -7
- package/src/components/CvCheckbox/CvCheckbox.vue +19 -3
- package/src/components/CvCheckbox/CvCheckboxSkeleton.vue +16 -0
- package/src/components/CvCheckbox/__tests__/__snapshots__/CvCheckboxSkeleton.spec.js.snap +3 -0
- package/src/components/CvCheckbox/index.js +2 -1
- package/src/components/CvDropdown/CvDropdown.vue +0 -2
- package/src/components/CvFileUploader/CvFileUploader.stories.mdx +333 -0
- package/src/components/CvFileUploader/CvFileUploader.vue +286 -0
- package/src/components/CvFileUploader/CvFileUploaderItem.vue +92 -0
- package/src/components/CvFileUploader/CvFileUploaderSkeleton.vue +16 -0
- package/src/components/CvFileUploader/const.js +10 -0
- package/src/components/CvFileUploader/index.js +5 -0
- package/src/components/CvMultiSelect/CvMultiSelect.stories.mdx +1 -1
- package/src/components/CvNotification/CvToastNotification.stories.js +71 -1
- package/src/components/CvNotification/CvToastNotification.vue +6 -4
- package/src/components/CvOverflowMenu/CvOverflowMenu.stories.mdx +68 -12
- package/src/components/CvOverflowMenu/CvOverflowMenu.vue +39 -45
- package/src/components/CvOverflowMenu/CvOverflowMenuItem.vue +6 -11
- package/src/components/CvOverflowMenu/index.js +2 -1
- package/src/components/CvProgress/CvProgress.stories.mdx +202 -0
- package/src/components/CvProgress/CvProgress.vue +78 -0
- package/src/components/CvProgress/CvProgressStep.vue +124 -0
- package/src/components/CvProgress/index.js +4 -0
- package/src/components/CvRadioButton/CvRadioButton.stories.js +166 -0
- package/src/components/CvRadioButton/CvRadioButton.vue +57 -0
- package/src/components/CvRadioButton/CvRadioGroup.vue +27 -0
- package/src/components/CvRadioButton/__tests__/__snapshots__/CvRadioButton.spec.js.snap +27 -0
- package/src/components/CvRadioButton/index.js +6 -0
- package/src/components/CvSearch/CvSearch.stories.mdx +168 -0
- package/src/components/CvSearch/CvSearch.vue +250 -0
- package/src/components/CvSearch/index.js +3 -0
- package/src/components/CvSelect/CvSelect.vue +27 -6
- package/src/components/CvSlider/CvSlider.stories.js +166 -0
- package/src/components/CvSlider/CvSlider.vue +324 -0
- package/src/components/CvSlider/CvSliderSkeleton.stories.js +26 -0
- package/src/components/CvSlider/CvSliderSkeleton.vue +18 -0
- package/src/components/CvSlider/__tests__/__snapshots__/CvSlider.spec.js.snap +13 -0
- package/src/components/CvSlider/__tests__/__snapshots__/CvSliderSkeleton.spec.js.snap +13 -0
- package/src/components/CvSlider/index.js +5 -0
- package/src/components/CvSlider/sbSliderPrefix.js +2 -0
- package/src/components/CvStructuredList/CvStructuredList.stories.js +141 -0
- package/src/components/CvStructuredList/CvStructuredList.vue +44 -0
- package/src/components/CvStructuredList/CvStructuredListData.vue +19 -0
- package/src/components/CvStructuredList/CvStructuredListHeading.vue +11 -0
- package/src/components/CvStructuredList/CvStructuredListItem.vue +47 -0
- package/src/components/CvStructuredList/CvStructuredListItemSelectable.vue +56 -0
- package/src/components/CvStructuredList/CvStructuredListItemStandard.vue +11 -0
- package/src/components/CvStructuredList/__tests__/__snapshots__/CvStructuredList.spec.js.snap +73 -0
- package/src/components/CvStructuredList/__tests__/__snapshots__/CvStructuredListData.spec.js.snap +5 -0
- package/src/components/CvStructuredList/__tests__/__snapshots__/CvStructuredListHeading.spec.js.snap +9 -0
- package/src/components/CvStructuredList/__tests__/__snapshots__/CvStructuredListItem.spec.js.snap +7 -0
- package/src/components/CvStructuredList/index.js +12 -0
- package/src/components/CvTextArea/CvTextArea.stories.js +2 -2
- package/src/components/CvTextArea/CvTextAreaSkeleton.stories.js +29 -0
- package/src/components/CvTextArea/CvTextAreaSkeleton.vue +10 -0
- package/src/components/CvTextArea/StorybookGroupConst.js +1 -0
- package/src/components/CvTextArea/__tests__/__snapshots__/CvTextAreaSkeleton.spec.js.snap +7 -0
- package/src/components/CvTextArea/index.js +2 -1
- package/src/components/CvTimePicker/CvTimePicker.stories.mdx +325 -0
- package/src/components/CvTimePicker/CvTimePicker.vue +217 -0
- package/src/components/CvTimePicker/index.js +21 -0
- package/src/components/CvToggle/CvToggle-Skeleton.vue +27 -12
- package/src/components/CvToggle/CvToggle.stories.js +20 -3
- package/src/components/CvToggle/CvToggle.vue +22 -5
- package/src/components/CvToggle/__tests__/__snapshots__/CvToggle.spec.js.snap +3 -3
- package/src/components/CvTooltip/CvDefinitionTooltip.stories.js +80 -0
- package/src/components/CvTooltip/CvDefinitionTooltip.vue +61 -0
- package/src/components/CvTooltip/CvInteractiveTooltip.stories.js +90 -0
- package/src/components/CvTooltip/CvInteractiveTooltip.vue +267 -0
- package/src/components/CvTooltip/CvTooltip.stories.js +128 -0
- package/src/components/CvTooltip/CvTooltip.vue +44 -0
- package/src/components/CvTooltip/__tests__/__snapshots__/CvTooltip.spec.js.snap +525 -0
- package/src/components/CvTooltip/consts.js +15 -0
- package/src/components/CvTooltip/index.js +6 -0
- package/src/components/CvTooltip/sbTooltipPrefix.js +2 -0
- package/src/components/CvUIShell/CvSideNav.vue +10 -1
- package/src/components/CvUIShell/CvUIShell.stories.mdx +116 -50
- package/src/index.d.ts +6 -0
- package/src/index.js +11 -0
- package/src/use/cvCheck.js +3 -0
- package/src/use/index.js +2 -0
- package/src/use/useMethods.js +18 -0
- package/src/use/useRadio.js +24 -0
|
@@ -216,6 +216,53 @@ function toSVG(descriptor) {
|
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
|
|
219
|
+
/***/ }),
|
|
220
|
+
|
|
221
|
+
/***/ 5835:
|
|
222
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
223
|
+
|
|
224
|
+
"use strict";
|
|
225
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
226
|
+
/* harmony export */ "Z": function() { return /* binding */ CheckmarkFilled16; }
|
|
227
|
+
/* harmony export */ });
|
|
228
|
+
/* harmony import */ var _utils_148d018d_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5089);
|
|
229
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3797);
|
|
230
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
231
|
+
/**
|
|
232
|
+
* Copyright IBM Corp. 2019, 2020
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
235
|
+
* LICENSE file in the root directory of this source tree.
|
|
236
|
+
*
|
|
237
|
+
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
238
|
+
*/
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
var CheckmarkFilled16 = (0,_utils_148d018d_js__WEBPACK_IMPORTED_MODULE_1__.c)(CheckmarkFilled16, {
|
|
244
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
245
|
+
"viewBox": "0 0 16 16",
|
|
246
|
+
"fill": "currentColor",
|
|
247
|
+
"width": 16,
|
|
248
|
+
"height": 16
|
|
249
|
+
}, [{
|
|
250
|
+
"elem": "path",
|
|
251
|
+
"attrs": {
|
|
252
|
+
"d": "M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"
|
|
253
|
+
}
|
|
254
|
+
}, {
|
|
255
|
+
"elem": "path",
|
|
256
|
+
"attrs": {
|
|
257
|
+
"d": "M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z",
|
|
258
|
+
"data-icon-path": "inner-path",
|
|
259
|
+
"opacity": "0"
|
|
260
|
+
}
|
|
261
|
+
}]);
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
219
266
|
/***/ }),
|
|
220
267
|
|
|
221
268
|
/***/ 4325:
|
|
@@ -376,6 +423,91 @@ var Close20 = (0,_utils_148d018d_js__WEBPACK_IMPORTED_MODULE_1__.c)(Close20, {
|
|
|
376
423
|
|
|
377
424
|
|
|
378
425
|
|
|
426
|
+
/***/ }),
|
|
427
|
+
|
|
428
|
+
/***/ 9048:
|
|
429
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
430
|
+
|
|
431
|
+
"use strict";
|
|
432
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
433
|
+
/* harmony export */ "Z": function() { return /* binding */ Information16; }
|
|
434
|
+
/* harmony export */ });
|
|
435
|
+
/* harmony import */ var _utils_148d018d_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5089);
|
|
436
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3797);
|
|
437
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
438
|
+
/**
|
|
439
|
+
* Copyright IBM Corp. 2019, 2020
|
|
440
|
+
*
|
|
441
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
442
|
+
* LICENSE file in the root directory of this source tree.
|
|
443
|
+
*
|
|
444
|
+
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
445
|
+
*/
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
var Information16 = (0,_utils_148d018d_js__WEBPACK_IMPORTED_MODULE_1__.c)(Information16, {
|
|
451
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
452
|
+
"viewBox": "0 0 16 16",
|
|
453
|
+
"fill": "currentColor",
|
|
454
|
+
"width": 16,
|
|
455
|
+
"height": 16
|
|
456
|
+
}, [{
|
|
457
|
+
"elem": "path",
|
|
458
|
+
"attrs": {
|
|
459
|
+
"d": "M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"
|
|
460
|
+
}
|
|
461
|
+
}, {
|
|
462
|
+
"elem": "path",
|
|
463
|
+
"attrs": {
|
|
464
|
+
"d": "M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"
|
|
465
|
+
}
|
|
466
|
+
}]);
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
/***/ }),
|
|
472
|
+
|
|
473
|
+
/***/ 7360:
|
|
474
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
475
|
+
|
|
476
|
+
"use strict";
|
|
477
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
478
|
+
/* harmony export */ "Z": function() { return /* binding */ Search16; }
|
|
479
|
+
/* harmony export */ });
|
|
480
|
+
/* harmony import */ var _utils_148d018d_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5089);
|
|
481
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3797);
|
|
482
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
483
|
+
/**
|
|
484
|
+
* Copyright IBM Corp. 2019, 2020
|
|
485
|
+
*
|
|
486
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
487
|
+
* LICENSE file in the root directory of this source tree.
|
|
488
|
+
*
|
|
489
|
+
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
490
|
+
*/
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
var Search16 = (0,_utils_148d018d_js__WEBPACK_IMPORTED_MODULE_1__.c)(Search16, {
|
|
496
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
497
|
+
"viewBox": "0 0 16 16",
|
|
498
|
+
"fill": "currentColor",
|
|
499
|
+
"width": 16,
|
|
500
|
+
"height": 16
|
|
501
|
+
}, [{
|
|
502
|
+
"elem": "path",
|
|
503
|
+
"attrs": {
|
|
504
|
+
"d": "M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5\tC2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z"
|
|
505
|
+
}
|
|
506
|
+
}]);
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
|
|
379
511
|
/***/ }),
|
|
380
512
|
|
|
381
513
|
/***/ 5089:
|
|
@@ -1153,6 +1285,9 @@ var CvButtonConsts = {
|
|
|
1153
1285
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1154
1286
|
|
|
1155
1287
|
"use strict";
|
|
1288
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1289
|
+
/* harmony export */ "Rz": function() { return /* reexport safe */ _CvButtonSkeleton_vue__WEBPACK_IMPORTED_MODULE_3__["default"]; }
|
|
1290
|
+
/* harmony export */ });
|
|
1156
1291
|
/* harmony import */ var _CvButton_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7013);
|
|
1157
1292
|
/* harmony import */ var _CvIconButton_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4080);
|
|
1158
1293
|
/* harmony import */ var _CvButtonSet_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3466);
|
|
@@ -1173,9 +1308,11 @@ var CvButtonConsts = {
|
|
|
1173
1308
|
|
|
1174
1309
|
"use strict";
|
|
1175
1310
|
/* harmony import */ var _CvCheckbox_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5478);
|
|
1311
|
+
/* harmony import */ var _CvCheckboxSkeleton_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7914);
|
|
1312
|
+
|
|
1176
1313
|
|
|
1177
1314
|
|
|
1178
|
-
/* harmony default export */ __webpack_exports__["
|
|
1315
|
+
/* harmony default export */ __webpack_exports__["ZP"] = (_CvCheckbox_vue__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
1179
1316
|
|
|
1180
1317
|
/***/ }),
|
|
1181
1318
|
|
|
@@ -1951,6 +2088,35 @@ var CvTagConsts = {
|
|
|
1951
2088
|
|
|
1952
2089
|
/***/ }),
|
|
1953
2090
|
|
|
2091
|
+
/***/ 5562:
|
|
2092
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2093
|
+
|
|
2094
|
+
"use strict";
|
|
2095
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2096
|
+
/* harmony export */ "Cf": function() { return /* binding */ TipDirections; },
|
|
2097
|
+
/* harmony export */ "FW": function() { return /* binding */ TipAlignments; },
|
|
2098
|
+
/* harmony export */ "dz": function() { return /* binding */ alignments; },
|
|
2099
|
+
/* harmony export */ "qF": function() { return /* binding */ directions; }
|
|
2100
|
+
/* harmony export */ });
|
|
2101
|
+
/* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2479);
|
|
2102
|
+
/* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
2103
|
+
|
|
2104
|
+
var TipAlignments = {
|
|
2105
|
+
center: 'center',
|
|
2106
|
+
end: 'end',
|
|
2107
|
+
start: 'start'
|
|
2108
|
+
};
|
|
2109
|
+
var TipDirections = {
|
|
2110
|
+
bottom: 'bottom',
|
|
2111
|
+
left: 'left',
|
|
2112
|
+
top: 'top',
|
|
2113
|
+
right: 'right'
|
|
2114
|
+
};
|
|
2115
|
+
var alignments = Object.values(TipAlignments);
|
|
2116
|
+
var directions = Object.values(TipDirections);
|
|
2117
|
+
|
|
2118
|
+
/***/ }),
|
|
2119
|
+
|
|
1954
2120
|
/***/ 5733:
|
|
1955
2121
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1956
2122
|
|
|
@@ -2126,6 +2292,10 @@ var props = {
|
|
|
2126
2292
|
type: [Array, Boolean],
|
|
2127
2293
|
default: undefined
|
|
2128
2294
|
},
|
|
2295
|
+
|
|
2296
|
+
/**
|
|
2297
|
+
* Specify whether the Checkbox is in an indeterminate state
|
|
2298
|
+
*/
|
|
2129
2299
|
mixed: {
|
|
2130
2300
|
type: Boolean,
|
|
2131
2301
|
default: null
|
|
@@ -2501,6 +2671,102 @@ var useIsLight = function useIsLight(props) {
|
|
|
2501
2671
|
return isLight;
|
|
2502
2672
|
};
|
|
2503
2673
|
|
|
2674
|
+
/***/ }),
|
|
2675
|
+
|
|
2676
|
+
/***/ 2442:
|
|
2677
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2678
|
+
|
|
2679
|
+
"use strict";
|
|
2680
|
+
|
|
2681
|
+
// EXPORTS
|
|
2682
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2683
|
+
"rz": function() { return /* reexport */ cvId/* props */.N; },
|
|
2684
|
+
"lX": function() { return /* reexport */ cvId/* useCvId */.l; },
|
|
2685
|
+
"$1": function() { return /* reexport */ useMethods; },
|
|
2686
|
+
"xL": function() { return /* reexport */ useRadio; }
|
|
2687
|
+
});
|
|
2688
|
+
|
|
2689
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
2690
|
+
var cvId = __webpack_require__(1853);
|
|
2691
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
2692
|
+
var createForOfIteratorHelper = __webpack_require__(106);
|
|
2693
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
2694
|
+
var es_object_keys = __webpack_require__(7941);
|
|
2695
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
2696
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
2697
|
+
;// CONCATENATED MODULE: ./src/use/useMethods.js
|
|
2698
|
+
|
|
2699
|
+
|
|
2700
|
+
|
|
2701
|
+
var useMethods = function useMethods(methodDefs) {
|
|
2702
|
+
var methods = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({});
|
|
2703
|
+
var keys = Object.keys(methodDefs);
|
|
2704
|
+
|
|
2705
|
+
var _loop = function _loop() {
|
|
2706
|
+
var key = _keys[_i];
|
|
2707
|
+
|
|
2708
|
+
var _iterator = (0,createForOfIteratorHelper/* default */.Z)(methodDefs[key]),
|
|
2709
|
+
_step;
|
|
2710
|
+
|
|
2711
|
+
try {
|
|
2712
|
+
var _loop2 = function _loop2() {
|
|
2713
|
+
var method = _step.value;
|
|
2714
|
+
|
|
2715
|
+
methods.value[method] = function () {
|
|
2716
|
+
var _methods$value$$refs$;
|
|
2717
|
+
|
|
2718
|
+
(_methods$value$$refs$ = methods.value.$refs[key])[method].apply(_methods$value$$refs$, arguments);
|
|
2719
|
+
};
|
|
2720
|
+
};
|
|
2721
|
+
|
|
2722
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2723
|
+
_loop2();
|
|
2724
|
+
}
|
|
2725
|
+
} catch (err) {
|
|
2726
|
+
_iterator.e(err);
|
|
2727
|
+
} finally {
|
|
2728
|
+
_iterator.f();
|
|
2729
|
+
}
|
|
2730
|
+
};
|
|
2731
|
+
|
|
2732
|
+
for (var _i = 0, _keys = keys; _i < _keys.length; _i++) {
|
|
2733
|
+
_loop();
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
return {
|
|
2737
|
+
methods: methods
|
|
2738
|
+
};
|
|
2739
|
+
};
|
|
2740
|
+
;// CONCATENATED MODULE: ./src/use/useRadio.js
|
|
2741
|
+
|
|
2742
|
+
var useRadio = function useRadio(props, emit) {
|
|
2743
|
+
var isChecked = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
2744
|
+
if (props.modelValue === undefined) {
|
|
2745
|
+
return props.checked;
|
|
2746
|
+
} else {
|
|
2747
|
+
return props.modelValue === props.value;
|
|
2748
|
+
}
|
|
2749
|
+
});
|
|
2750
|
+
var onRadioItemChange = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('onRadioItemChange', function () {});
|
|
2751
|
+
|
|
2752
|
+
var onChange = function onChange() {
|
|
2753
|
+
onRadioItemChange(props.value); // emit to parent
|
|
2754
|
+
|
|
2755
|
+
emit('update:modelValue', props.value); // emit for v-model
|
|
2756
|
+
|
|
2757
|
+
emit('change', props.value);
|
|
2758
|
+
};
|
|
2759
|
+
|
|
2760
|
+
return {
|
|
2761
|
+
isChecked: isChecked,
|
|
2762
|
+
onChange: onChange
|
|
2763
|
+
};
|
|
2764
|
+
};
|
|
2765
|
+
;// CONCATENATED MODULE: ./src/use/index.js
|
|
2766
|
+
|
|
2767
|
+
|
|
2768
|
+
|
|
2769
|
+
|
|
2504
2770
|
/***/ }),
|
|
2505
2771
|
|
|
2506
2772
|
/***/ 8118:
|
|
@@ -3708,29 +3974,51 @@ var _hoisted_2 = ["for"];
|
|
|
3708
3974
|
/* harmony default export */ var CvCheckboxvue_type_script_setup_true_lang_js = ({
|
|
3709
3975
|
__name: 'CvCheckbox',
|
|
3710
3976
|
props: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
|
|
3977
|
+
/**
|
|
3978
|
+
* Specify whether the label should be hidden, or not
|
|
3979
|
+
*/
|
|
3711
3980
|
hideLabel: {
|
|
3712
3981
|
type: Boolean,
|
|
3713
3982
|
default: null
|
|
3714
3983
|
},
|
|
3984
|
+
|
|
3985
|
+
/**
|
|
3986
|
+
* Provide a label to provide a description of the Checkbox input that you are exposing to the user
|
|
3987
|
+
*/
|
|
3715
3988
|
label: {
|
|
3716
3989
|
type: String,
|
|
3717
3990
|
default: null
|
|
3718
3991
|
},
|
|
3992
|
+
|
|
3993
|
+
/**
|
|
3994
|
+
* Specify whether the "bx--form-item" style should be applied
|
|
3995
|
+
*/
|
|
3719
3996
|
formItem: {
|
|
3720
3997
|
type: Boolean,
|
|
3721
3998
|
default: true
|
|
3722
3999
|
},
|
|
4000
|
+
|
|
4001
|
+
/**
|
|
4002
|
+
* Specify whether the "bx--checkbox--inline" style should be applied
|
|
4003
|
+
*/
|
|
3723
4004
|
inline: {
|
|
3724
4005
|
type: Boolean,
|
|
3725
4006
|
default: false
|
|
4007
|
+
},
|
|
4008
|
+
|
|
4009
|
+
/**
|
|
4010
|
+
* Specify whether the Checkbox should be disabled
|
|
4011
|
+
*/
|
|
4012
|
+
disabled: {
|
|
4013
|
+
type: Boolean,
|
|
4014
|
+
default: false
|
|
3726
4015
|
}
|
|
3727
4016
|
}, cvCheck/* props */.N), use_cvId/* props */.N),
|
|
3728
4017
|
emits: ['update:modelValue', 'change'],
|
|
3729
4018
|
setup: function setup(__props, _ref) {
|
|
3730
|
-
var _this = this;
|
|
3731
|
-
|
|
3732
4019
|
var emit = _ref.emit;
|
|
3733
|
-
var props = __props; //
|
|
4020
|
+
var props = __props; // noinspection ES6PreferShortImport
|
|
4021
|
+
// Track focus
|
|
3734
4022
|
|
|
3735
4023
|
var hasFocus = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
3736
4024
|
|
|
@@ -3769,7 +4057,7 @@ var _hoisted_2 = ["for"];
|
|
|
3769
4057
|
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId)
|
|
3770
4058
|
}), null, 16, _hoisted_1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
3771
4059
|
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
3772
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--checkbox-label"), (_ref3 = {}, (0,defineProperty/* default */.Z)(_ref3, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--label--disabled"),
|
|
4060
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--checkbox-label"), (_ref3 = {}, (0,defineProperty/* default */.Z)(_ref3, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--label--disabled"), __props.disabled), (0,defineProperty/* default */.Z)(_ref3, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--checkbox-label__focus"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(hasFocus)), _ref3)])
|
|
3773
4061
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
3774
4062
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--checkbox-label-text"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--visually-hidden"), __props.hideLabel)]),
|
|
3775
4063
|
dir: "auto"
|
|
@@ -3789,7 +4077,55 @@ const __exports__ = CvCheckboxvue_type_script_setup_true_lang_js;
|
|
|
3789
4077
|
|
|
3790
4078
|
/***/ }),
|
|
3791
4079
|
|
|
3792
|
-
/***/
|
|
4080
|
+
/***/ 7914:
|
|
4081
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4082
|
+
|
|
4083
|
+
"use strict";
|
|
4084
|
+
// ESM COMPAT FLAG
|
|
4085
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4086
|
+
|
|
4087
|
+
// EXPORTS
|
|
4088
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
4089
|
+
"default": function() { return /* binding */ CvCheckboxSkeleton; }
|
|
4090
|
+
});
|
|
4091
|
+
|
|
4092
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
4093
|
+
var es_array_concat = __webpack_require__(2222);
|
|
4094
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
4095
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
4096
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
4097
|
+
var settings = __webpack_require__(606);
|
|
4098
|
+
;// 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/CvCheckbox/CvCheckboxSkeleton.vue?vue&type=script&setup=true&lang=js
|
|
4099
|
+
|
|
4100
|
+
|
|
4101
|
+
|
|
4102
|
+
/* harmony default export */ var CvCheckboxSkeletonvue_type_script_setup_true_lang_js = ({
|
|
4103
|
+
__name: 'CvCheckboxSkeleton',
|
|
4104
|
+
setup: function setup(__props) {
|
|
4105
|
+
return function (_ctx, _cache) {
|
|
4106
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
4107
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["cv-checkbox", "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-item ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--checkbox-wrapper")])
|
|
4108
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
4109
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--checkbox-label ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--skeleton"))
|
|
4110
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
4111
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--checkbox-label-text ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--skeleton"))
|
|
4112
|
+
}, null, 2)], 2)], 2);
|
|
4113
|
+
};
|
|
4114
|
+
}
|
|
4115
|
+
});
|
|
4116
|
+
;// CONCATENATED MODULE: ./src/components/CvCheckbox/CvCheckboxSkeleton.vue?vue&type=script&setup=true&lang=js
|
|
4117
|
+
|
|
4118
|
+
;// CONCATENATED MODULE: ./src/components/CvCheckbox/CvCheckboxSkeleton.vue
|
|
4119
|
+
|
|
4120
|
+
|
|
4121
|
+
|
|
4122
|
+
const __exports__ = CvCheckboxSkeletonvue_type_script_setup_true_lang_js;
|
|
4123
|
+
|
|
4124
|
+
/* harmony default export */ var CvCheckboxSkeleton = (__exports__);
|
|
4125
|
+
|
|
4126
|
+
/***/ }),
|
|
4127
|
+
|
|
4128
|
+
/***/ 7956:
|
|
3793
4129
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3794
4130
|
|
|
3795
4131
|
"use strict";
|
|
@@ -3903,10 +4239,8 @@ function _CviCodeSnippetInlinevue_type_template_id_c4d3e73e_render(_ctx, _cache,
|
|
|
3903
4239
|
|
|
3904
4240
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
3905
4241
|
var defineProperty = __webpack_require__(9130);
|
|
3906
|
-
// EXTERNAL MODULE: ./src/use/
|
|
3907
|
-
var
|
|
3908
|
-
;// CONCATENATED MODULE: ./src/use/index.js
|
|
3909
|
-
|
|
4242
|
+
// EXTERNAL MODULE: ./src/use/index.js + 2 modules
|
|
4243
|
+
var use = __webpack_require__(2442);
|
|
3910
4244
|
// EXTERNAL MODULE: ./src/components/CvCopyButton/_CviCopyButton.vue + 4 modules
|
|
3911
4245
|
var _CviCopyButton = __webpack_require__(6602);
|
|
3912
4246
|
;// 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/CvCodeSnippet/_CviCodeSnippetInline.vue?vue&type=script&lang=js
|
|
@@ -3948,7 +4282,7 @@ var _CviCopyButton = __webpack_require__(6602);
|
|
|
3948
4282
|
},
|
|
3949
4283
|
setup: function setup(props, _ref) {
|
|
3950
4284
|
var emit = _ref.emit;
|
|
3951
|
-
var codeId = (0,
|
|
4285
|
+
var codeId = (0,use/* useCvId */.lX)();
|
|
3952
4286
|
var classes = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
3953
4287
|
var _ref2;
|
|
3954
4288
|
|
|
@@ -5803,7 +6137,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(_CviCopyButtonv
|
|
|
5803
6137
|
|
|
5804
6138
|
/***/ }),
|
|
5805
6139
|
|
|
5806
|
-
/***/
|
|
6140
|
+
/***/ 4513:
|
|
5807
6141
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5808
6142
|
|
|
5809
6143
|
"use strict";
|
|
@@ -5863,38 +6197,10 @@ var CvPagination = __webpack_require__(5740);
|
|
|
5863
6197
|
|
|
5864
6198
|
|
|
5865
6199
|
/* harmony default export */ var components_CvPagination = (CvPagination["default"]);
|
|
5866
|
-
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/
|
|
5867
|
-
var
|
|
5868
|
-
;// CONCATENATED MODULE: ./node_modules/@carbon/icons-vue/es/search/16.js
|
|
5869
|
-
/**
|
|
5870
|
-
* Copyright IBM Corp. 2019, 2020
|
|
5871
|
-
*
|
|
5872
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
5873
|
-
* LICENSE file in the root directory of this source tree.
|
|
5874
|
-
*
|
|
5875
|
-
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
5876
|
-
*/
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
var Search16 = (0,utils_148d018d.c)(Search16, {
|
|
5882
|
-
"xmlns": "http://www.w3.org/2000/svg",
|
|
5883
|
-
"viewBox": "0 0 16 16",
|
|
5884
|
-
"fill": "currentColor",
|
|
5885
|
-
"width": 16,
|
|
5886
|
-
"height": 16
|
|
5887
|
-
}, [{
|
|
5888
|
-
"elem": "path",
|
|
5889
|
-
"attrs": {
|
|
5890
|
-
"d": "M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5\tC2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z"
|
|
5891
|
-
}
|
|
5892
|
-
}]);
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
6200
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/search/16.js
|
|
6201
|
+
var _16 = __webpack_require__(7360);
|
|
5896
6202
|
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/close/16.js
|
|
5897
|
-
var
|
|
6203
|
+
var close_16 = __webpack_require__(2148);
|
|
5898
6204
|
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/chevron--right/16.js
|
|
5899
6205
|
var chevron_right_16 = __webpack_require__(5278);
|
|
5900
6206
|
// EXTERNAL MODULE: ./src/global/component-utils/event-bus.js + 1 modules
|
|
@@ -6533,7 +6839,7 @@ var _hoisted_10 = {
|
|
|
6533
6839
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--search-magnifier")),
|
|
6534
6840
|
ref_key: "magnifier",
|
|
6535
6841
|
ref: magnifier
|
|
6536
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(
|
|
6842
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(_16/* default */.Z), {
|
|
6537
6843
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--search-magnifier-icon"))
|
|
6538
6844
|
}, null, 8, ["class"])], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
6539
6845
|
id: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid), "-search"),
|
|
@@ -6570,7 +6876,7 @@ var _hoisted_10 = {
|
|
|
6570
6876
|
"aria-label": __props.searchClearLabel,
|
|
6571
6877
|
onClick: onClearClick,
|
|
6572
6878
|
type: "button"
|
|
6573
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(
|
|
6879
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(close_16/* default */.Z))], 10, _hoisted_7)], 10, _hoisted_4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "actions")], 2)], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
6574
6880
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--data-table-content"))
|
|
6575
6881
|
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveDynamicComponent)(__props.stickyHeader ? 'section' : 'div'), null, {
|
|
6576
6882
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
@@ -6593,7 +6899,7 @@ var _hoisted_10 = {
|
|
|
6593
6899
|
}, null, 8, ["class"])], 10, _hoisted_9)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 10, _hoisted_8)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), hasBatchActions.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("th", {
|
|
6594
6900
|
key: 1,
|
|
6595
6901
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--table-column-checkbox"))
|
|
6596
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(CvCheckbox/* default */.
|
|
6902
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(CvCheckbox/* default */.ZP), {
|
|
6597
6903
|
"form-item": false,
|
|
6598
6904
|
value: "headingCheck",
|
|
6599
6905
|
modelValue: headingChecked.value,
|
|
@@ -7077,14 +7383,15 @@ var es_object_to_string = __webpack_require__(1539);
|
|
|
7077
7383
|
var es_array_find = __webpack_require__(9826);
|
|
7078
7384
|
// EXTERNAL MODULE: ./src/components/CvCheckbox/index.js
|
|
7079
7385
|
var CvCheckbox = __webpack_require__(9985);
|
|
7080
|
-
// EXTERNAL MODULE: ./src/components/CvOverflowMenu/CvOverflowMenu.vue +
|
|
7081
|
-
var CvOverflowMenu = __webpack_require__(
|
|
7386
|
+
// EXTERNAL MODULE: ./src/components/CvOverflowMenu/CvOverflowMenu.vue + 3 modules
|
|
7387
|
+
var CvOverflowMenu = __webpack_require__(1948);
|
|
7388
|
+
// EXTERNAL MODULE: ./src/components/CvOverflowMenu/CvOverflowMenuItem.vue + 2 modules
|
|
7389
|
+
var CvOverflowMenuItem = __webpack_require__(2012);
|
|
7082
7390
|
;// CONCATENATED MODULE: ./src/components/CvOverflowMenu/index.js
|
|
7083
7391
|
|
|
7084
7392
|
|
|
7393
|
+
|
|
7085
7394
|
/* harmony default export */ var components_CvOverflowMenu = (CvOverflowMenu["default"]);
|
|
7086
|
-
// EXTERNAL MODULE: ./src/components/CvOverflowMenu/CvOverflowMenuItem.vue + 2 modules
|
|
7087
|
-
var CvOverflowMenuItem = __webpack_require__(2012);
|
|
7088
7395
|
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/chevron--right/16.js
|
|
7089
7396
|
var _16 = __webpack_require__(5278);
|
|
7090
7397
|
// EXTERNAL MODULE: ./src/components/CvDataTable/cvDataTableStore.js
|
|
@@ -7244,7 +7551,7 @@ var _hoisted_3 = {
|
|
|
7244
7551
|
}, null, 8, ["class"])], 10, _hoisted_2)) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_3, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.expandingRow), 1))], 10, _hoisted_1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), hasBatchActions.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("td", {
|
|
7245
7552
|
key: 1,
|
|
7246
7553
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--table-column-checkbox"))
|
|
7247
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(CvCheckbox/* default */.
|
|
7554
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(CvCheckbox/* default */.ZP), {
|
|
7248
7555
|
"form-item": false,
|
|
7249
7556
|
value: __props.value,
|
|
7250
7557
|
inline: true,
|
|
@@ -7470,8 +7777,8 @@ var es_array_map = __webpack_require__(1249);
|
|
|
7470
7777
|
var es_array_fill = __webpack_require__(3290);
|
|
7471
7778
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
7472
7779
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
7473
|
-
// EXTERNAL MODULE: ./src/components/CvDataTable/CvDataTable.vue +
|
|
7474
|
-
var CvDataTable = __webpack_require__(
|
|
7780
|
+
// EXTERNAL MODULE: ./src/components/CvDataTable/CvDataTable.vue + 3 modules
|
|
7781
|
+
var CvDataTable = __webpack_require__(4513);
|
|
7475
7782
|
;// 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/CvDataTable/CvDataTableSkeleton.vue?vue&type=script&setup=true&lang=js
|
|
7476
7783
|
|
|
7477
7784
|
|
|
@@ -11245,8 +11552,6 @@ var _hoisted_7 = ["aria-disabled"];
|
|
|
11245
11552
|
var el = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
11246
11553
|
|
|
11247
11554
|
function onClickOut() {
|
|
11248
|
-
// eslint-disable-next-line no-console
|
|
11249
|
-
console.log('onClickOut');
|
|
11250
11555
|
open.value = false;
|
|
11251
11556
|
}
|
|
11252
11557
|
|
|
@@ -11665,6 +11970,583 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(script, [['rend
|
|
|
11665
11970
|
|
|
11666
11971
|
/***/ }),
|
|
11667
11972
|
|
|
11973
|
+
/***/ 5727:
|
|
11974
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11975
|
+
|
|
11976
|
+
"use strict";
|
|
11977
|
+
// ESM COMPAT FLAG
|
|
11978
|
+
__webpack_require__.r(__webpack_exports__);
|
|
11979
|
+
|
|
11980
|
+
// EXPORTS
|
|
11981
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
11982
|
+
"default": function() { return /* binding */ CvFileUploader; }
|
|
11983
|
+
});
|
|
11984
|
+
|
|
11985
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
11986
|
+
var defineProperty = __webpack_require__(9130);
|
|
11987
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
11988
|
+
var createForOfIteratorHelper = __webpack_require__(106);
|
|
11989
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
11990
|
+
var objectSpread2 = __webpack_require__(5145);
|
|
11991
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
11992
|
+
var es_object_assign = __webpack_require__(9601);
|
|
11993
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.values.js
|
|
11994
|
+
var es_object_values = __webpack_require__(2479);
|
|
11995
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
11996
|
+
var es_array_includes = __webpack_require__(6699);
|
|
11997
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
11998
|
+
var es_string_includes = __webpack_require__(2023);
|
|
11999
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
12000
|
+
var es_array_map = __webpack_require__(1249);
|
|
12001
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
12002
|
+
var es_regexp_exec = __webpack_require__(4916);
|
|
12003
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
12004
|
+
var es_string_split = __webpack_require__(3123);
|
|
12005
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
12006
|
+
var es_string_trim = __webpack_require__(3210);
|
|
12007
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
12008
|
+
var es_function_name = __webpack_require__(8309);
|
|
12009
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
12010
|
+
var es_array_find = __webpack_require__(9826);
|
|
12011
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
12012
|
+
var es_object_to_string = __webpack_require__(1539);
|
|
12013
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
12014
|
+
var es_array_splice = __webpack_require__(561);
|
|
12015
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
12016
|
+
var es_array_concat = __webpack_require__(2222);
|
|
12017
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
12018
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
12019
|
+
// EXTERNAL MODULE: ./src/components/CvFileUploader/CvFileUploaderItem.vue + 2 modules
|
|
12020
|
+
var CvFileUploaderItem = __webpack_require__(3265);
|
|
12021
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
12022
|
+
var settings = __webpack_require__(606);
|
|
12023
|
+
// EXTERNAL MODULE: ./src/components/CvForm/CvForm.vue + 2 modules
|
|
12024
|
+
var CvForm = __webpack_require__(2573);
|
|
12025
|
+
// EXTERNAL MODULE: ./src/components/CvForm/CvFormGroup.vue + 2 modules
|
|
12026
|
+
var CvFormGroup = __webpack_require__(5600);
|
|
12027
|
+
// EXTERNAL MODULE: ./src/components/CvForm/CvFormItem.vue + 2 modules
|
|
12028
|
+
var CvFormItem = __webpack_require__(8341);
|
|
12029
|
+
;// CONCATENATED MODULE: ./src/components/CvForm/index.js
|
|
12030
|
+
|
|
12031
|
+
|
|
12032
|
+
|
|
12033
|
+
|
|
12034
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
12035
|
+
var use_cvId = __webpack_require__(1853);
|
|
12036
|
+
;// CONCATENATED MODULE: ./src/components/CvFileUploader/const.js
|
|
12037
|
+
var STATES = {
|
|
12038
|
+
NONE: '',
|
|
12039
|
+
UPLOADING: 'uploading',
|
|
12040
|
+
COMPLETE: 'complete'
|
|
12041
|
+
};
|
|
12042
|
+
var KINDS = {
|
|
12043
|
+
DRAG_TARGET: 'drag-target',
|
|
12044
|
+
BUTTON: 'button'
|
|
12045
|
+
};
|
|
12046
|
+
// EXTERNAL MODULE: ./src/components/CvButton/CvButtonCommon.js
|
|
12047
|
+
var CvButtonCommon = __webpack_require__(7779);
|
|
12048
|
+
;// 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/CvFileUploader/CvFileUploader.vue?vue&type=script&setup=true&lang=js
|
|
12049
|
+
|
|
12050
|
+
|
|
12051
|
+
|
|
12052
|
+
|
|
12053
|
+
|
|
12054
|
+
|
|
12055
|
+
|
|
12056
|
+
|
|
12057
|
+
|
|
12058
|
+
|
|
12059
|
+
|
|
12060
|
+
|
|
12061
|
+
|
|
12062
|
+
|
|
12063
|
+
|
|
12064
|
+
|
|
12065
|
+
|
|
12066
|
+
var _hoisted_1 = ["for", "onKeydown"];
|
|
12067
|
+
var _hoisted_2 = ["id", "accept"];
|
|
12068
|
+
var _hoisted_3 = ["for"];
|
|
12069
|
+
var _hoisted_4 = ["onKeydown"];
|
|
12070
|
+
var _hoisted_5 = ["id", "accept"];
|
|
12071
|
+
|
|
12072
|
+
|
|
12073
|
+
|
|
12074
|
+
|
|
12075
|
+
|
|
12076
|
+
|
|
12077
|
+
|
|
12078
|
+
var __default__ = {
|
|
12079
|
+
inheritAttrs: false
|
|
12080
|
+
};
|
|
12081
|
+
/* harmony default export */ var CvFileUploadervue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
12082
|
+
__name: 'CvFileUploader',
|
|
12083
|
+
props: (0,objectSpread2/* default */.Z)({
|
|
12084
|
+
accept: String,
|
|
12085
|
+
buttonKind: CvButtonCommon/* props.kind */.N.kind,
|
|
12086
|
+
buttonLabel: {
|
|
12087
|
+
type: String,
|
|
12088
|
+
default: undefined,
|
|
12089
|
+
deprecated: true,
|
|
12090
|
+
validator: function validator(val) {
|
|
12091
|
+
if (val !== undefined && "production" === 'development') {}
|
|
12092
|
+
|
|
12093
|
+
return true;
|
|
12094
|
+
}
|
|
12095
|
+
},
|
|
12096
|
+
buttonSize: CvButtonCommon/* props.size */.N.size,
|
|
12097
|
+
clearOnReselect: Boolean,
|
|
12098
|
+
dropTargetLabel: String,
|
|
12099
|
+
helperText: String,
|
|
12100
|
+
kind: {
|
|
12101
|
+
type: String,
|
|
12102
|
+
default: KINDS.DRAG_TARGET,
|
|
12103
|
+
validator: function validator(val) {
|
|
12104
|
+
var validValues = Object.values(KINDS);
|
|
12105
|
+
|
|
12106
|
+
if (!validValues.includes(val)) {
|
|
12107
|
+
console.warn("CvFileUploader: valid values for 'kind' are ".concat(validValues));
|
|
12108
|
+
}
|
|
12109
|
+
|
|
12110
|
+
return true;
|
|
12111
|
+
}
|
|
12112
|
+
},
|
|
12113
|
+
label: String,
|
|
12114
|
+
modelValue: Array,
|
|
12115
|
+
removable: Boolean,
|
|
12116
|
+
removeAriaLabel: String
|
|
12117
|
+
}, use_cvId/* props */.N),
|
|
12118
|
+
emits: ['update:modelValue'],
|
|
12119
|
+
setup: function setup(__props, _ref) {
|
|
12120
|
+
var __expose = _ref.expose,
|
|
12121
|
+
emit = _ref.emit;
|
|
12122
|
+
var props = __props; // DOM Elements
|
|
12123
|
+
|
|
12124
|
+
var fileInput = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null); // Data
|
|
12125
|
+
|
|
12126
|
+
var allowDrop = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
12127
|
+
var internalFiles = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]); // Computed
|
|
12128
|
+
|
|
12129
|
+
var _useCvButtonCommon = (0,CvButtonCommon/* useCvButtonCommon */.y)(props.buttonKind, props.buttonSize),
|
|
12130
|
+
buttonClasses = _useCvButtonCommon.buttonClasses;
|
|
12131
|
+
|
|
12132
|
+
var cvId = (0,use_cvId/* useCvId */.l)(props);
|
|
12133
|
+
var internalDropTargetLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
12134
|
+
return props.dropTargetLabel || props.buttonLabel || 'Drag and drop files here or upload';
|
|
12135
|
+
});
|
|
12136
|
+
var isFileTypeAllowed = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
12137
|
+
var acceptAny = !props.accept;
|
|
12138
|
+
var allowedTypes = props.accept ? props.accept.split(',').map(function (x) {
|
|
12139
|
+
return x.trim();
|
|
12140
|
+
}) : [];
|
|
12141
|
+
|
|
12142
|
+
if (allowedTypes.includes('.jpg')) {
|
|
12143
|
+
allowedTypes.push('.jpeg');
|
|
12144
|
+
}
|
|
12145
|
+
|
|
12146
|
+
return function (file) {
|
|
12147
|
+
if (acceptAny) return true;
|
|
12148
|
+
var extension = '.' + file.name.split('.').pop();
|
|
12149
|
+
return allowedTypes.includes(file.type) || allowedTypes.includes(extension);
|
|
12150
|
+
};
|
|
12151
|
+
}); // Watchers
|
|
12152
|
+
|
|
12153
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(function () {
|
|
12154
|
+
return props.modelValue;
|
|
12155
|
+
}, function (newValue) {
|
|
12156
|
+
internalFiles.value = newValue || [];
|
|
12157
|
+
}); // Methods
|
|
12158
|
+
|
|
12159
|
+
function addFiles(files) {
|
|
12160
|
+
var _iterator = (0,createForOfIteratorHelper/* default */.Z)(files),
|
|
12161
|
+
_step;
|
|
12162
|
+
|
|
12163
|
+
try {
|
|
12164
|
+
var _loop = function _loop() {
|
|
12165
|
+
var file = _step.value;
|
|
12166
|
+
var internalFile = internalFiles.value.find(function (item) {
|
|
12167
|
+
return item.file.name === file.name;
|
|
12168
|
+
});
|
|
12169
|
+
var newFile = createInternalFile((internalFile === null || internalFile === void 0 ? void 0 : internalFile.file) || file);
|
|
12170
|
+
|
|
12171
|
+
if (internalFile) {
|
|
12172
|
+
internalFile.state = newFile.initialState;
|
|
12173
|
+
internalFile.invalidMessageTitle = newFile.invalidMessageTitle;
|
|
12174
|
+
internalFile.invalidMessage = newFile.invalidMessage;
|
|
12175
|
+
} else {
|
|
12176
|
+
internalFiles.value.push(newFile);
|
|
12177
|
+
}
|
|
12178
|
+
};
|
|
12179
|
+
|
|
12180
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
12181
|
+
_loop();
|
|
12182
|
+
} // clear input we do not need to maintain it
|
|
12183
|
+
|
|
12184
|
+
} catch (err) {
|
|
12185
|
+
_iterator.e(err);
|
|
12186
|
+
} finally {
|
|
12187
|
+
_iterator.f();
|
|
12188
|
+
}
|
|
12189
|
+
|
|
12190
|
+
fileInput.value.value = '';
|
|
12191
|
+
emit('update:modelValue', internalFiles.value);
|
|
12192
|
+
}
|
|
12193
|
+
|
|
12194
|
+
function createInternalFile(file) {
|
|
12195
|
+
var initialState = props.initialStateUploading ? STATES.UPLOADING : STATES.NONE;
|
|
12196
|
+
var isTypeNotAllowed = !isFileTypeAllowed.value(file);
|
|
12197
|
+
var invalidMessageTitle = isTypeNotAllowed ? 'Invalid file type' : '';
|
|
12198
|
+
var invalidMessage = isTypeNotAllowed ? "\"".concat(file.name, "\" does not have a valid file type.") : '';
|
|
12199
|
+
return {
|
|
12200
|
+
state: initialState,
|
|
12201
|
+
file: file,
|
|
12202
|
+
invalidMessageTitle: invalidMessageTitle,
|
|
12203
|
+
invalidMessage: invalidMessage
|
|
12204
|
+
};
|
|
12205
|
+
}
|
|
12206
|
+
|
|
12207
|
+
function onChange(ev) {
|
|
12208
|
+
if (ev.target.files.length !== 0 && props.clearOnReselect) {
|
|
12209
|
+
internalFiles.value = [];
|
|
12210
|
+
}
|
|
12211
|
+
|
|
12212
|
+
addFiles(ev.target.files);
|
|
12213
|
+
}
|
|
12214
|
+
|
|
12215
|
+
function onDragEvent(evt) {
|
|
12216
|
+
if (Array.prototype.indexOf.call(evt.dataTransfer.types, 'Files') === -1) {
|
|
12217
|
+
return;
|
|
12218
|
+
}
|
|
12219
|
+
|
|
12220
|
+
if (evt.type === 'dragleave') {
|
|
12221
|
+
allowDrop.value = false;
|
|
12222
|
+
return;
|
|
12223
|
+
}
|
|
12224
|
+
|
|
12225
|
+
if (evt.type === 'dragover') {
|
|
12226
|
+
evt.preventDefault();
|
|
12227
|
+
var dropEffect = 'copy';
|
|
12228
|
+
|
|
12229
|
+
if (Array.isArray(evt.dataTransfer.types)) {
|
|
12230
|
+
try {
|
|
12231
|
+
// IE11 throws a "permission denied" error accessing `.effectAllowed`
|
|
12232
|
+
evt.dataTransfer.effectAllowed = dropEffect;
|
|
12233
|
+
} catch (e) {// ignore
|
|
12234
|
+
}
|
|
12235
|
+
}
|
|
12236
|
+
|
|
12237
|
+
evt.dataTransfer.dropEffect = dropEffect;
|
|
12238
|
+
allowDrop.value = true;
|
|
12239
|
+
}
|
|
12240
|
+
|
|
12241
|
+
if (evt.type === 'drop') {
|
|
12242
|
+
evt.preventDefault();
|
|
12243
|
+
addFiles(evt.dataTransfer.files);
|
|
12244
|
+
allowDrop.value = false;
|
|
12245
|
+
}
|
|
12246
|
+
}
|
|
12247
|
+
|
|
12248
|
+
function onItemRemove(index) {
|
|
12249
|
+
internalFiles.value.splice(index, 1);
|
|
12250
|
+
emit('update:modelValue', this.internalFiles);
|
|
12251
|
+
}
|
|
12252
|
+
|
|
12253
|
+
function onKeyHit() {
|
|
12254
|
+
fileInput.value.click();
|
|
12255
|
+
} // Lifecycle Hooks
|
|
12256
|
+
|
|
12257
|
+
|
|
12258
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(function () {
|
|
12259
|
+
internalFiles.value = props.modelValue || [];
|
|
12260
|
+
}); // exposed methods
|
|
12261
|
+
|
|
12262
|
+
__expose({
|
|
12263
|
+
setState: function setState(index, state) {
|
|
12264
|
+
if ([STATES.COMPLETE, STATES.UPLOADING, STATES.NONE].includes(state)) {
|
|
12265
|
+
internalFiles.value[index].state = state;
|
|
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
|
|
12276
|
+
});
|
|
12277
|
+
|
|
12278
|
+
return function (_ctx, _cache) {
|
|
12279
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(CvFormItem["default"]), {
|
|
12280
|
+
class: "cv-file-uploader"
|
|
12281
|
+
}, {
|
|
12282
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
12283
|
+
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"))
|
|
12285
|
+
}, (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"))
|
|
12287
|
+
}, (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
|
+
key: 0,
|
|
12289
|
+
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
|
+
"data-file": ""
|
|
12291
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
12292
|
+
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)),
|
|
12294
|
+
tabindex: "0",
|
|
12295
|
+
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
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "drop-target", {}, function () {
|
|
12297
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(internalDropTargetLabel.value), 1)];
|
|
12298
|
+
})], 42, _hoisted_1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
12299
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
12300
|
+
ref_key: "fileInput",
|
|
12301
|
+
ref: fileInput,
|
|
12302
|
+
class: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file-input"),
|
|
12303
|
+
accept: __props.accept,
|
|
12304
|
+
type: "file"
|
|
12305
|
+
}, _ctx.$attrs, {
|
|
12306
|
+
"data-file-uploader": "",
|
|
12307
|
+
"data-target": "[data-file-container]",
|
|
12308
|
+
onChange: onChange
|
|
12309
|
+
}), null, 16, _hoisted_2)], 2)) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
12310
|
+
key: 1,
|
|
12311
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file")),
|
|
12312
|
+
"data-file": ""
|
|
12313
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
12314
|
+
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId)
|
|
12315
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
12316
|
+
role: "button",
|
|
12317
|
+
tabindex: "0",
|
|
12318
|
+
"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)]),
|
|
12320
|
+
onDragover: onDragEvent,
|
|
12321
|
+
onDragleave: onDragEvent,
|
|
12322
|
+
onDrop: onDragEvent,
|
|
12323
|
+
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"])]
|
|
12324
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "drop-target", {}, function () {
|
|
12325
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(internalDropTargetLabel.value), 1)];
|
|
12326
|
+
})], 42, _hoisted_4), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
12327
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
12328
|
+
ref_key: "fileInput",
|
|
12329
|
+
ref: fileInput,
|
|
12330
|
+
class: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file-input"),
|
|
12331
|
+
accept: __props.accept,
|
|
12332
|
+
type: "file"
|
|
12333
|
+
}, _ctx.$attrs, {
|
|
12334
|
+
tabindex: "-1",
|
|
12335
|
+
"data-file-uploader": "",
|
|
12336
|
+
"data-target": "[data-file-container]",
|
|
12337
|
+
onChange: onChange
|
|
12338
|
+
}), null, 16, _hoisted_5)], 8, _hoisted_3)], 2)), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
12339
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file-container")),
|
|
12340
|
+
"data-file-container": ""
|
|
12341
|
+
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(internalFiles.value, function (item, index) {
|
|
12342
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(CvFileUploaderItem["default"], {
|
|
12343
|
+
key: item.file.name,
|
|
12344
|
+
item: item,
|
|
12345
|
+
removable: __props.removable,
|
|
12346
|
+
removeAriaLabel: __props.removeAriaLabel,
|
|
12347
|
+
onRemove: function onRemove($event) {
|
|
12348
|
+
return onItemRemove(index);
|
|
12349
|
+
}
|
|
12350
|
+
}, null, 8, ["item", "removable", "removeAriaLabel", "onRemove"]);
|
|
12351
|
+
}), 128))], 2)];
|
|
12352
|
+
}),
|
|
12353
|
+
_: 3
|
|
12354
|
+
});
|
|
12355
|
+
};
|
|
12356
|
+
}
|
|
12357
|
+
}));
|
|
12358
|
+
;// CONCATENATED MODULE: ./src/components/CvFileUploader/CvFileUploader.vue?vue&type=script&setup=true&lang=js
|
|
12359
|
+
|
|
12360
|
+
;// CONCATENATED MODULE: ./src/components/CvFileUploader/CvFileUploader.vue
|
|
12361
|
+
|
|
12362
|
+
|
|
12363
|
+
|
|
12364
|
+
const __exports__ = CvFileUploadervue_type_script_setup_true_lang_js;
|
|
12365
|
+
|
|
12366
|
+
/* harmony default export */ var CvFileUploader = (__exports__);
|
|
12367
|
+
|
|
12368
|
+
/***/ }),
|
|
12369
|
+
|
|
12370
|
+
/***/ 3265:
|
|
12371
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12372
|
+
|
|
12373
|
+
"use strict";
|
|
12374
|
+
// ESM COMPAT FLAG
|
|
12375
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12376
|
+
|
|
12377
|
+
// EXPORTS
|
|
12378
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
12379
|
+
"default": function() { return /* binding */ CvFileUploaderItem; }
|
|
12380
|
+
});
|
|
12381
|
+
|
|
12382
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
12383
|
+
var defineProperty = __webpack_require__(9130);
|
|
12384
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
12385
|
+
var es_function_name = __webpack_require__(8309);
|
|
12386
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
12387
|
+
var es_array_concat = __webpack_require__(2222);
|
|
12388
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
12389
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
12390
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
12391
|
+
var settings = __webpack_require__(606);
|
|
12392
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/checkmark--filled/16.js
|
|
12393
|
+
var _16 = __webpack_require__(5835);
|
|
12394
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/warning--filled/16.js
|
|
12395
|
+
var warning_filled_16 = __webpack_require__(8870);
|
|
12396
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/close/16.js
|
|
12397
|
+
var close_16 = __webpack_require__(2148);
|
|
12398
|
+
;// 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/CvFileUploader/CvFileUploaderItem.vue?vue&type=script&setup=true&lang=js
|
|
12399
|
+
|
|
12400
|
+
|
|
12401
|
+
|
|
12402
|
+
|
|
12403
|
+
var _hoisted_1 = ["title"];
|
|
12404
|
+
var _hoisted_2 = ["alt", "arial-label"];
|
|
12405
|
+
|
|
12406
|
+
|
|
12407
|
+
|
|
12408
|
+
|
|
12409
|
+
|
|
12410
|
+
/* harmony default export */ var CvFileUploaderItemvue_type_script_setup_true_lang_js = ({
|
|
12411
|
+
__name: 'CvFileUploaderItem',
|
|
12412
|
+
props: {
|
|
12413
|
+
item: Object,
|
|
12414
|
+
removable: Boolean,
|
|
12415
|
+
removeAriaLabel: {
|
|
12416
|
+
type: String,
|
|
12417
|
+
default: 'Remove selected file'
|
|
12418
|
+
}
|
|
12419
|
+
},
|
|
12420
|
+
emits: ['remove'],
|
|
12421
|
+
setup: function setup(__props, _ref) {
|
|
12422
|
+
var emit = _ref.emit;
|
|
12423
|
+
var props = __props; // Computed
|
|
12424
|
+
|
|
12425
|
+
var isInvalid = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
12426
|
+
return props.item.invalidMessage && props.item.invalidMessage.length;
|
|
12427
|
+
});
|
|
12428
|
+
return function (_ctx, _cache) {
|
|
12429
|
+
var _props$item$file, _props$item$file2;
|
|
12430
|
+
|
|
12431
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
12432
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file__selected-file"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file__selected-file--invalid"), isInvalid.value)])
|
|
12433
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", {
|
|
12434
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file-filename")),
|
|
12435
|
+
title: (_props$item$file = __props.item.file) === null || _props$item$file === void 0 ? void 0 : _props$item$file.name
|
|
12436
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)((_props$item$file2 = __props.item.file) === null || _props$item$file2 === void 0 ? void 0 : _props$item$file2.name), 11, _hoisted_1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
12437
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file__state-container"))
|
|
12438
|
+
}, [__props.item.state === 'uploading' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
12439
|
+
key: 0,
|
|
12440
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--inline-loading__animation"))
|
|
12441
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
12442
|
+
"data-inline-loading-spinner": "",
|
|
12443
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--loading ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--loading--small"))
|
|
12444
|
+
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("svg", {
|
|
12445
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--loading__svg")),
|
|
12446
|
+
viewBox: "-75 -75 150 150"
|
|
12447
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("circle", {
|
|
12448
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--loading__background")),
|
|
12449
|
+
cx: "0",
|
|
12450
|
+
cy: "0",
|
|
12451
|
+
r: "37.5"
|
|
12452
|
+
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("circle", {
|
|
12453
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--loading__stroke")),
|
|
12454
|
+
cx: "0",
|
|
12455
|
+
cy: "0",
|
|
12456
|
+
r: "37.5"
|
|
12457
|
+
}, null, 2)], 2))], 2)], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), __props.item.state === 'complete' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(_16/* default */.Z), {
|
|
12458
|
+
key: 1,
|
|
12459
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file-complete"))
|
|
12460
|
+
}, null, 8, ["class"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), isInvalid.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(warning_filled_16/* default */.Z), {
|
|
12461
|
+
key: 2,
|
|
12462
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file--invalid"))
|
|
12463
|
+
}, null, 8, ["class"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), __props.removable ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("button", {
|
|
12464
|
+
key: 3,
|
|
12465
|
+
type: "button",
|
|
12466
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file-close")),
|
|
12467
|
+
alt: __props.removeAriaLabel,
|
|
12468
|
+
"arial-label": __props.removeAriaLabel,
|
|
12469
|
+
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
12470
|
+
return emit('remove', __props.item);
|
|
12471
|
+
})
|
|
12472
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(close_16/* default */.Z)), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
12473
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--visually-hidden"))
|
|
12474
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.removeAriaLabel), 3)], 10, _hoisted_2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2), isInvalid.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
12475
|
+
key: 0,
|
|
12476
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-requirement"))
|
|
12477
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
12478
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-requirement__title"))
|
|
12479
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.item.invalidMessageTitle || 'Invalid file'), 3), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", {
|
|
12480
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-requirement__supplement"))
|
|
12481
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.item.invalidMessage), 3)], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2);
|
|
12482
|
+
};
|
|
12483
|
+
}
|
|
12484
|
+
});
|
|
12485
|
+
;// CONCATENATED MODULE: ./src/components/CvFileUploader/CvFileUploaderItem.vue?vue&type=script&setup=true&lang=js
|
|
12486
|
+
|
|
12487
|
+
;// CONCATENATED MODULE: ./src/components/CvFileUploader/CvFileUploaderItem.vue
|
|
12488
|
+
|
|
12489
|
+
|
|
12490
|
+
|
|
12491
|
+
const __exports__ = CvFileUploaderItemvue_type_script_setup_true_lang_js;
|
|
12492
|
+
|
|
12493
|
+
/* harmony default export */ var CvFileUploaderItem = (__exports__);
|
|
12494
|
+
|
|
12495
|
+
/***/ }),
|
|
12496
|
+
|
|
12497
|
+
/***/ 59:
|
|
12498
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12499
|
+
|
|
12500
|
+
"use strict";
|
|
12501
|
+
// ESM COMPAT FLAG
|
|
12502
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12503
|
+
|
|
12504
|
+
// EXPORTS
|
|
12505
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
12506
|
+
"default": function() { return /* binding */ CvFileUploaderSkeleton; }
|
|
12507
|
+
});
|
|
12508
|
+
|
|
12509
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
12510
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
12511
|
+
// EXTERNAL MODULE: ./src/components/CvSkeletonText/index.js
|
|
12512
|
+
var CvSkeletonText = __webpack_require__(3778);
|
|
12513
|
+
// EXTERNAL MODULE: ./src/components/CvButton/index.js
|
|
12514
|
+
var CvButton = __webpack_require__(8052);
|
|
12515
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
12516
|
+
var settings = __webpack_require__(606);
|
|
12517
|
+
;// 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/CvFileUploader/CvFileUploaderSkeleton.vue?vue&type=script&setup=true&lang=js
|
|
12518
|
+
|
|
12519
|
+
|
|
12520
|
+
|
|
12521
|
+
|
|
12522
|
+
/* harmony default export */ var CvFileUploaderSkeletonvue_type_script_setup_true_lang_js = ({
|
|
12523
|
+
__name: 'CvFileUploaderSkeleton',
|
|
12524
|
+
setup: function setup(__props) {
|
|
12525
|
+
return function (_ctx, _cache) {
|
|
12526
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
12527
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-item"))
|
|
12528
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(CvSkeletonText/* default */.Z), {
|
|
12529
|
+
heading: "",
|
|
12530
|
+
width: "100px"
|
|
12531
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(CvSkeletonText/* default */.Z), {
|
|
12532
|
+
width: "225px",
|
|
12533
|
+
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"))
|
|
12534
|
+
}, null, 8, ["class"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(CvButton/* CvButtonSkeleton */.Rz))], 2);
|
|
12535
|
+
};
|
|
12536
|
+
}
|
|
12537
|
+
});
|
|
12538
|
+
;// CONCATENATED MODULE: ./src/components/CvFileUploader/CvFileUploaderSkeleton.vue?vue&type=script&setup=true&lang=js
|
|
12539
|
+
|
|
12540
|
+
;// CONCATENATED MODULE: ./src/components/CvFileUploader/CvFileUploaderSkeleton.vue
|
|
12541
|
+
|
|
12542
|
+
|
|
12543
|
+
|
|
12544
|
+
const __exports__ = CvFileUploaderSkeletonvue_type_script_setup_true_lang_js;
|
|
12545
|
+
|
|
12546
|
+
/* harmony default export */ var CvFileUploaderSkeleton = (__exports__);
|
|
12547
|
+
|
|
12548
|
+
/***/ }),
|
|
12549
|
+
|
|
11668
12550
|
/***/ 2573:
|
|
11669
12551
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11670
12552
|
|
|
@@ -14278,7 +15160,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(CvInlineNotific
|
|
|
14278
15160
|
|
|
14279
15161
|
/***/ }),
|
|
14280
15162
|
|
|
14281
|
-
/***/
|
|
15163
|
+
/***/ 2162:
|
|
14282
15164
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
14283
15165
|
|
|
14284
15166
|
"use strict";
|
|
@@ -14296,7 +15178,7 @@ var defineProperty = __webpack_require__(9130);
|
|
|
14296
15178
|
var es_array_concat = __webpack_require__(2222);
|
|
14297
15179
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
14298
15180
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
14299
|
-
;// 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/CvNotification/CvToastNotification.vue?vue&type=template&id=
|
|
15181
|
+
;// 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/CvNotification/CvToastNotification.vue?vue&type=template&id=687f6f1c
|
|
14300
15182
|
|
|
14301
15183
|
|
|
14302
15184
|
|
|
@@ -14315,11 +15197,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14315
15197
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat($setup.carbonPrefix, "--toast-notification__details"))
|
|
14316
15198
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("h3", {
|
|
14317
15199
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat($setup.carbonPrefix, "--toast-notification__title"))
|
|
14318
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
15200
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "title", {}, function () {
|
|
15201
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.title), 1)];
|
|
15202
|
+
})], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
14319
15203
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat($setup.carbonPrefix, "--toast-notification__subtitle"))
|
|
14320
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
15204
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "subtitle", {}, function () {
|
|
15205
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.subTitle), 1)];
|
|
15206
|
+
})], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
14321
15207
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat($setup.carbonPrefix, "--toast-notification__caption"))
|
|
14322
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
15208
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "caption", {}, function () {
|
|
15209
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.caption), 1)];
|
|
15210
|
+
})], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
|
|
14323
15211
|
type: "button",
|
|
14324
15212
|
"aria-label": $props.closeAriaLabel,
|
|
14325
15213
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat($setup.carbonPrefix, "--toast-notification__close-button")),
|
|
@@ -14327,10 +15215,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14327
15215
|
return _ctx.$emit('close');
|
|
14328
15216
|
})
|
|
14329
15217
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_close20, {
|
|
14330
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat($setup.carbonPrefix, "--
|
|
15218
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat($setup.carbonPrefix, "--toast-notification__close-icon"))
|
|
14331
15219
|
}, null, 8, ["class"])], 10, _hoisted_2)], 10, _hoisted_1);
|
|
14332
15220
|
}
|
|
14333
|
-
;// CONCATENATED MODULE: ./src/components/CvNotification/CvToastNotification.vue?vue&type=template&id=
|
|
15221
|
+
;// CONCATENATED MODULE: ./src/components/CvNotification/CvToastNotification.vue?vue&type=template&id=687f6f1c
|
|
14334
15222
|
|
|
14335
15223
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
14336
15224
|
var es_array_includes = __webpack_require__(6699);
|
|
@@ -14852,7 +15740,7 @@ const __exports__ = CvNumberInputSkeletonvue_type_script_setup_true_lang_js;
|
|
|
14852
15740
|
|
|
14853
15741
|
/***/ }),
|
|
14854
15742
|
|
|
14855
|
-
/***/
|
|
15743
|
+
/***/ 1948:
|
|
14856
15744
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
14857
15745
|
|
|
14858
15746
|
"use strict";
|
|
@@ -14868,49 +15756,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14868
15756
|
var defineProperty = __webpack_require__(9130);
|
|
14869
15757
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
14870
15758
|
var createForOfIteratorHelper = __webpack_require__(106);
|
|
14871
|
-
// EXTERNAL MODULE: ./node_modules/
|
|
14872
|
-
var
|
|
14873
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
14874
|
-
var es_promise = __webpack_require__(8674);
|
|
14875
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
14876
|
-
|
|
14877
|
-
|
|
14878
|
-
|
|
14879
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
14880
|
-
try {
|
|
14881
|
-
var info = gen[key](arg);
|
|
14882
|
-
var value = info.value;
|
|
14883
|
-
} catch (error) {
|
|
14884
|
-
reject(error);
|
|
14885
|
-
return;
|
|
14886
|
-
}
|
|
14887
|
-
|
|
14888
|
-
if (info.done) {
|
|
14889
|
-
resolve(value);
|
|
14890
|
-
} else {
|
|
14891
|
-
Promise.resolve(value).then(_next, _throw);
|
|
14892
|
-
}
|
|
14893
|
-
}
|
|
14894
|
-
|
|
14895
|
-
function _asyncToGenerator(fn) {
|
|
14896
|
-
return function () {
|
|
14897
|
-
var self = this,
|
|
14898
|
-
args = arguments;
|
|
14899
|
-
return new Promise(function (resolve, reject) {
|
|
14900
|
-
var gen = fn.apply(self, args);
|
|
14901
|
-
|
|
14902
|
-
function _next(value) {
|
|
14903
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
14904
|
-
}
|
|
14905
|
-
|
|
14906
|
-
function _throw(err) {
|
|
14907
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
14908
|
-
}
|
|
14909
|
-
|
|
14910
|
-
_next(undefined);
|
|
14911
|
-
});
|
|
14912
|
-
};
|
|
14913
|
-
}
|
|
15759
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
15760
|
+
var asyncToGenerator = __webpack_require__(3540);
|
|
14914
15761
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
14915
15762
|
var objectSpread2 = __webpack_require__(5145);
|
|
14916
15763
|
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
|
@@ -14971,8 +15818,6 @@ var OverflowMenuVertical16 = (0,utils_148d018d.c)(OverflowMenuVertical16, {
|
|
|
14971
15818
|
|
|
14972
15819
|
|
|
14973
15820
|
|
|
14974
|
-
// EXTERNAL MODULE: ./src/global/component-utils/event-bus.js + 1 modules
|
|
14975
|
-
var event_bus = __webpack_require__(6692);
|
|
14976
15821
|
;// 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/CvOverflowMenu/CvOverflowMenu.vue?vue&type=script&setup=true&lang=js
|
|
14977
15822
|
|
|
14978
15823
|
|
|
@@ -14989,7 +15834,6 @@ var _hoisted_3 = ["aria-labelledby", "id", "onMousedown"];
|
|
|
14989
15834
|
|
|
14990
15835
|
|
|
14991
15836
|
|
|
14992
|
-
|
|
14993
15837
|
/* harmony default export */ var CvOverflowMenuvue_type_script_setup_true_lang_js = ({
|
|
14994
15838
|
__name: 'CvOverflowMenu',
|
|
14995
15839
|
props: (0,objectSpread2/* default */.Z)({
|
|
@@ -15062,15 +15906,8 @@ var _hoisted_3 = ["aria-labelledby", "id", "onMousedown"];
|
|
|
15062
15906
|
var offsetTop = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
15063
15907
|
return props.offset ? props.offset.top : 0;
|
|
15064
15908
|
});
|
|
15065
|
-
|
|
15066
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
15067
|
-
bus = (0,event_bus/* getBus */.T)(uid.value);
|
|
15068
|
-
bus.on('cv:close', doClose);
|
|
15069
|
-
bus.on('cv:click', menuItemClick);
|
|
15070
|
-
});
|
|
15071
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(function () {
|
|
15072
|
-
(0,event_bus/* removeBus */.S)(uid.value);
|
|
15073
|
-
});
|
|
15909
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('cv:close', doClose);
|
|
15910
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('cv:click', menuItemClick);
|
|
15074
15911
|
var trigger = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
15075
15912
|
var popup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
15076
15913
|
|
|
@@ -15120,7 +15957,7 @@ var _hoisted_3 = ["aria-labelledby", "id", "onMousedown"];
|
|
|
15120
15957
|
}
|
|
15121
15958
|
|
|
15122
15959
|
function _positionMenu() {
|
|
15123
|
-
_positionMenu =
|
|
15960
|
+
_positionMenu = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
15124
15961
|
var menuPosition;
|
|
15125
15962
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
15126
15963
|
while (1) {
|
|
@@ -15145,7 +15982,7 @@ var _hoisted_3 = ["aria-labelledby", "id", "onMousedown"];
|
|
|
15145
15982
|
if (props.up) {
|
|
15146
15983
|
top.value = menuPosition.top + offsetTop.value - popup.value.offsetHeight + pixelsScrolledY;
|
|
15147
15984
|
} else {
|
|
15148
|
-
top.value = menuPosition.
|
|
15985
|
+
top.value = menuPosition.bottom + offsetTop.value + pixelsScrolledY;
|
|
15149
15986
|
}
|
|
15150
15987
|
}));
|
|
15151
15988
|
|
|
@@ -15200,7 +16037,7 @@ var _hoisted_3 = ["aria-labelledby", "id", "onMousedown"];
|
|
|
15200
16037
|
}
|
|
15201
16038
|
|
|
15202
16039
|
function _doToggle() {
|
|
15203
|
-
_doToggle =
|
|
16040
|
+
_doToggle = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
15204
16041
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
15205
16042
|
while (1) {
|
|
15206
16043
|
switch (_context2.prev = _context2.next) {
|
|
@@ -15281,7 +16118,9 @@ var _hoisted_3 = ["aria-labelledby", "id", "onMousedown"];
|
|
|
15281
16118
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(OverflowMenuVertical16), {
|
|
15282
16119
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--overflow-menu__icon"))
|
|
15283
16120
|
}, null, 8, ["class"])];
|
|
15284
|
-
})], 42, _hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
16121
|
+
})], 42, _hoisted_2), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Teleport, {
|
|
16122
|
+
to: "body"
|
|
16123
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
15285
16124
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--overflow-menu-options"), (_ref3 = {}, (0,defineProperty/* default */.Z)(_ref3, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--overflow-menu--flip"), __props.flipMenu), (0,defineProperty/* default */.Z)(_ref3, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--overflow-menu-options--open"), open.value), _ref3)]),
|
|
15286
16125
|
tabindex: "-1",
|
|
15287
16126
|
ref_key: "popup",
|
|
@@ -15319,7 +16158,7 @@ var _hoisted_3 = ["aria-labelledby", "id", "onMousedown"];
|
|
|
15319
16158
|
"left": "-9999px"
|
|
15320
16159
|
},
|
|
15321
16160
|
onFocus: focusAfterContent
|
|
15322
|
-
}, null, 544)], 46, _hoisted_3)], 10, _hoisted_1);
|
|
16161
|
+
}, null, 544)], 46, _hoisted_3)]))], 10, _hoisted_1);
|
|
15323
16162
|
};
|
|
15324
16163
|
}
|
|
15325
16164
|
});
|
|
@@ -15353,8 +16192,6 @@ var defineProperty = __webpack_require__(9130);
|
|
|
15353
16192
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
15354
16193
|
// EXTERNAL MODULE: ./src/global/settings.js
|
|
15355
16194
|
var settings = __webpack_require__(606);
|
|
15356
|
-
// EXTERNAL MODULE: ./src/global/component-utils/event-bus.js + 1 modules
|
|
15357
|
-
var event_bus = __webpack_require__(6692);
|
|
15358
16195
|
;// 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/CvOverflowMenu/CvOverflowMenuItem.vue?vue&type=script&setup=true&lang=js
|
|
15359
16196
|
|
|
15360
16197
|
|
|
@@ -15362,7 +16199,6 @@ var _hoisted_1 = ["onKeydown"];
|
|
|
15362
16199
|
var _hoisted_2 = ["data-floating-menu-primary-focus", "disabled"];
|
|
15363
16200
|
|
|
15364
16201
|
|
|
15365
|
-
|
|
15366
16202
|
/* harmony default export */ var CvOverflowMenuItemvue_type_script_setup_true_lang_js = ({
|
|
15367
16203
|
__name: 'CvOverflowMenuItem',
|
|
15368
16204
|
props: {
|
|
@@ -15371,25 +16207,17 @@ var _hoisted_2 = ["data-floating-menu-primary-focus", "disabled"];
|
|
|
15371
16207
|
danger: Boolean
|
|
15372
16208
|
},
|
|
15373
16209
|
setup: function setup(__props) {
|
|
15374
|
-
var bus = undefined;
|
|
15375
16210
|
var el = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
15376
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
15377
|
-
|
|
15378
|
-
var parent = pe === null || pe === void 0 ? void 0 : pe.getAttribute('id');
|
|
15379
|
-
if (parent) bus = (0,event_bus/* getBus */.T)(parent);else console.warn('overflow menu not found');
|
|
15380
|
-
});
|
|
16211
|
+
var emitClick = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('cv:click');
|
|
16212
|
+
var emitClose = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('cv:close');
|
|
15381
16213
|
var attrs = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useAttrs)();
|
|
15382
16214
|
|
|
15383
16215
|
function onClick() {
|
|
15384
|
-
|
|
15385
|
-
|
|
15386
|
-
(_bus = bus) === null || _bus === void 0 ? void 0 : _bus.emit('cv:click', attrs.value);
|
|
16216
|
+
emitClick(attrs.value);
|
|
15387
16217
|
}
|
|
15388
16218
|
|
|
15389
16219
|
function onEsc() {
|
|
15390
|
-
|
|
15391
|
-
|
|
15392
|
-
(_bus2 = bus) === null || _bus2 === void 0 ? void 0 : _bus2.emit('cv:close');
|
|
16220
|
+
emitClose();
|
|
15393
16221
|
}
|
|
15394
16222
|
|
|
15395
16223
|
return function (_ctx, _cache) {
|
|
@@ -15851,6 +16679,955 @@ const __exports__ = CvPaginationvue_type_script_setup_true_lang_js;
|
|
|
15851
16679
|
|
|
15852
16680
|
/***/ }),
|
|
15853
16681
|
|
|
16682
|
+
/***/ 7495:
|
|
16683
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16684
|
+
|
|
16685
|
+
"use strict";
|
|
16686
|
+
// ESM COMPAT FLAG
|
|
16687
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16688
|
+
|
|
16689
|
+
// EXPORTS
|
|
16690
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
16691
|
+
"default": function() { return /* binding */ CvProgress; }
|
|
16692
|
+
});
|
|
16693
|
+
|
|
16694
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
16695
|
+
var objectSpread2 = __webpack_require__(5145);
|
|
16696
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
16697
|
+
var defineProperty = __webpack_require__(9130);
|
|
16698
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
16699
|
+
var es_number_constructor = __webpack_require__(9653);
|
|
16700
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
16701
|
+
var es_array_iterator = __webpack_require__(6992);
|
|
16702
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
16703
|
+
var es_object_to_string = __webpack_require__(1539);
|
|
16704
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.js
|
|
16705
|
+
var es_set = __webpack_require__(189);
|
|
16706
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
|
|
16707
|
+
var es_string_iterator = __webpack_require__(8783);
|
|
16708
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
|
|
16709
|
+
var web_dom_collections_iterator = __webpack_require__(3948);
|
|
16710
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
16711
|
+
var es_array_concat = __webpack_require__(2222);
|
|
16712
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
16713
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
16714
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
16715
|
+
var settings = __webpack_require__(606);
|
|
16716
|
+
// EXTERNAL MODULE: ./src/components/CvProgress/CvProgressStep.vue + 6 modules
|
|
16717
|
+
var CvProgressStep = __webpack_require__(2782);
|
|
16718
|
+
;// 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/CvProgress/CvProgress.vue?vue&type=script&setup=true&lang=js
|
|
16719
|
+
|
|
16720
|
+
|
|
16721
|
+
|
|
16722
|
+
|
|
16723
|
+
|
|
16724
|
+
|
|
16725
|
+
|
|
16726
|
+
|
|
16727
|
+
|
|
16728
|
+
|
|
16729
|
+
|
|
16730
|
+
|
|
16731
|
+
|
|
16732
|
+
/* harmony default export */ var CvProgressvue_type_script_setup_true_lang_js = ({
|
|
16733
|
+
__name: 'CvProgress',
|
|
16734
|
+
props: {
|
|
16735
|
+
/**
|
|
16736
|
+
* Optionally specify the current step array index
|
|
16737
|
+
*/
|
|
16738
|
+
initialStep: {
|
|
16739
|
+
type: Number,
|
|
16740
|
+
default: 0
|
|
16741
|
+
},
|
|
16742
|
+
|
|
16743
|
+
/**
|
|
16744
|
+
* An array of labels for the steps. Use `cv-progress-step` components for more control over the step logic.
|
|
16745
|
+
*/
|
|
16746
|
+
steps: Array,
|
|
16747
|
+
|
|
16748
|
+
/**
|
|
16749
|
+
* Determines whether the ProgressIndicator should be rendered vertically.
|
|
16750
|
+
*/
|
|
16751
|
+
vertical: {
|
|
16752
|
+
type: Boolean,
|
|
16753
|
+
default: false
|
|
16754
|
+
},
|
|
16755
|
+
|
|
16756
|
+
/**
|
|
16757
|
+
* Specify whether the progress steps should be split equally in size in the div
|
|
16758
|
+
*/
|
|
16759
|
+
spaceEqually: {
|
|
16760
|
+
type: Boolean,
|
|
16761
|
+
default: false
|
|
16762
|
+
}
|
|
16763
|
+
},
|
|
16764
|
+
emits: ['step-clicked'],
|
|
16765
|
+
setup: function setup(__props, _ref) {
|
|
16766
|
+
var emit = _ref.emit;
|
|
16767
|
+
var props = __props; // noinspection ES6PreferShortImport
|
|
16768
|
+
|
|
16769
|
+
var isEqual = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
16770
|
+
return props.spaceEqually && !props.vertical;
|
|
16771
|
+
});
|
|
16772
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('progress-space-equally', isEqual);
|
|
16773
|
+
var completedSteps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(new Set());
|
|
16774
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('progress-completed-steps', completedSteps);
|
|
16775
|
+
/**
|
|
16776
|
+
* @typedef ProgressStepData
|
|
16777
|
+
* @type {string} uid
|
|
16778
|
+
* @type {string} label
|
|
16779
|
+
*/
|
|
16780
|
+
|
|
16781
|
+
/**
|
|
16782
|
+
* @type {Ref<UnwrapRef<Array<ProgressStepData>>>}
|
|
16783
|
+
*/
|
|
16784
|
+
|
|
16785
|
+
var progressSteps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
16786
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('progress-steps', progressSteps);
|
|
16787
|
+
var currentStep = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
|
|
16788
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('progress-current-step', currentStep);
|
|
16789
|
+
|
|
16790
|
+
function updateSteps() {
|
|
16791
|
+
if (props.initialStep > -1 && props.initialStep < progressSteps.value.length) {
|
|
16792
|
+
var step = progressSteps.value[props.initialStep];
|
|
16793
|
+
currentStep.value = step.uid;
|
|
16794
|
+
} else currentStep.value = '';
|
|
16795
|
+
}
|
|
16796
|
+
|
|
16797
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(updateSteps);
|
|
16798
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(function () {
|
|
16799
|
+
return props.initialStep;
|
|
16800
|
+
}, updateSteps);
|
|
16801
|
+
return function (_ctx, _cache) {
|
|
16802
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("ul", {
|
|
16803
|
+
"data-progress": "",
|
|
16804
|
+
"data-progress-current": "",
|
|
16805
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["cv-progress ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--progress"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--progress--space-equal"), isEqual.value), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--progress--vertical"), __props.vertical)])
|
|
16806
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default", {}, function () {
|
|
16807
|
+
return [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(__props.steps, function (step, index) {
|
|
16808
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(CvProgressStep["default"], {
|
|
16809
|
+
key: "step:".concat(index, ":").concat(__props.initialStep > index),
|
|
16810
|
+
label: step,
|
|
16811
|
+
complete: __props.initialStep > index,
|
|
16812
|
+
onStepClicked: function onStepClicked($event) {
|
|
16813
|
+
return emit('step-clicked', (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, $event), {}, {
|
|
16814
|
+
index: index
|
|
16815
|
+
}));
|
|
16816
|
+
}
|
|
16817
|
+
}, null, 8, ["label", "complete", "onStepClicked"]);
|
|
16818
|
+
}), 128))];
|
|
16819
|
+
})], 2);
|
|
16820
|
+
};
|
|
16821
|
+
}
|
|
16822
|
+
});
|
|
16823
|
+
;// CONCATENATED MODULE: ./src/components/CvProgress/CvProgress.vue?vue&type=script&setup=true&lang=js
|
|
16824
|
+
|
|
16825
|
+
;// CONCATENATED MODULE: ./src/components/CvProgress/CvProgress.vue
|
|
16826
|
+
|
|
16827
|
+
|
|
16828
|
+
|
|
16829
|
+
const __exports__ = CvProgressvue_type_script_setup_true_lang_js;
|
|
16830
|
+
|
|
16831
|
+
/* harmony default export */ var CvProgress = (__exports__);
|
|
16832
|
+
|
|
16833
|
+
/***/ }),
|
|
16834
|
+
|
|
16835
|
+
/***/ 2782:
|
|
16836
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16837
|
+
|
|
16838
|
+
"use strict";
|
|
16839
|
+
// ESM COMPAT FLAG
|
|
16840
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16841
|
+
|
|
16842
|
+
// EXPORTS
|
|
16843
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
16844
|
+
"default": function() { return /* binding */ CvProgressStep; }
|
|
16845
|
+
});
|
|
16846
|
+
|
|
16847
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
16848
|
+
var defineProperty = __webpack_require__(9130);
|
|
16849
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
16850
|
+
var objectSpread2 = __webpack_require__(5145);
|
|
16851
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
|
|
16852
|
+
var es_array_find_index = __webpack_require__(4553);
|
|
16853
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
16854
|
+
var es_array_splice = __webpack_require__(561);
|
|
16855
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
16856
|
+
var es_array_concat = __webpack_require__(2222);
|
|
16857
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
|
|
16858
|
+
var es_symbol = __webpack_require__(2526);
|
|
16859
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
|
|
16860
|
+
var es_symbol_description = __webpack_require__(1817);
|
|
16861
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
16862
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
16863
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/utils-148d018d.js
|
|
16864
|
+
var utils_148d018d = __webpack_require__(5089);
|
|
16865
|
+
;// CONCATENATED MODULE: ./node_modules/@carbon/icons-vue/es/warning/16.js
|
|
16866
|
+
/**
|
|
16867
|
+
* Copyright IBM Corp. 2019, 2020
|
|
16868
|
+
*
|
|
16869
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
16870
|
+
* LICENSE file in the root directory of this source tree.
|
|
16871
|
+
*
|
|
16872
|
+
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
16873
|
+
*/
|
|
16874
|
+
|
|
16875
|
+
|
|
16876
|
+
|
|
16877
|
+
|
|
16878
|
+
var Warning16 = (0,utils_148d018d.c)(Warning16, {
|
|
16879
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
16880
|
+
"viewBox": "0 0 16 16",
|
|
16881
|
+
"fill": "currentColor",
|
|
16882
|
+
"width": 16,
|
|
16883
|
+
"height": 16
|
|
16884
|
+
}, [{
|
|
16885
|
+
"elem": "path",
|
|
16886
|
+
"attrs": {
|
|
16887
|
+
"d": "M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"
|
|
16888
|
+
}
|
|
16889
|
+
}, {
|
|
16890
|
+
"elem": "path",
|
|
16891
|
+
"attrs": {
|
|
16892
|
+
"d": "M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"
|
|
16893
|
+
}
|
|
16894
|
+
}]);
|
|
16895
|
+
|
|
16896
|
+
|
|
16897
|
+
|
|
16898
|
+
;// CONCATENATED MODULE: ./node_modules/@carbon/icons-vue/es/incomplete/16.js
|
|
16899
|
+
/**
|
|
16900
|
+
* Copyright IBM Corp. 2019, 2020
|
|
16901
|
+
*
|
|
16902
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
16903
|
+
* LICENSE file in the root directory of this source tree.
|
|
16904
|
+
*
|
|
16905
|
+
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
16906
|
+
*/
|
|
16907
|
+
|
|
16908
|
+
|
|
16909
|
+
|
|
16910
|
+
|
|
16911
|
+
var Incomplete16 = (0,utils_148d018d.c)(Incomplete16, {
|
|
16912
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
16913
|
+
"viewBox": "0 0 32 32",
|
|
16914
|
+
"fill": "currentColor",
|
|
16915
|
+
"width": 16,
|
|
16916
|
+
"height": 16
|
|
16917
|
+
}, [{
|
|
16918
|
+
"elem": "path",
|
|
16919
|
+
"attrs": {
|
|
16920
|
+
"d": "M23.7642 6.8593l1.2851-1.5315A13.976 13.976 0 0020.8672 2.887l-.6836 1.8776A11.9729 11.9729 0 0123.7642 6.8593zM27.81 14l1.9677-.4128A13.8888 13.8888 0 0028.14 9.0457L26.4087 10A12.52 12.52 0 0127.81 14zM20.1836 27.2354l.6836 1.8776a13.976 13.976 0 004.1821-2.4408l-1.2851-1.5315A11.9729 11.9729 0 0120.1836 27.2354zM26.4087 22L28.14 23a14.14 14.14 0 001.6382-4.5872L27.81 18.0659A12.1519 12.1519 0 0126.4087 22zM16 30V2a14 14 0 000 28z"
|
|
16921
|
+
}
|
|
16922
|
+
}]);
|
|
16923
|
+
|
|
16924
|
+
|
|
16925
|
+
|
|
16926
|
+
;// CONCATENATED MODULE: ./node_modules/@carbon/icons-vue/es/checkmark--outline/16.js
|
|
16927
|
+
/**
|
|
16928
|
+
* Copyright IBM Corp. 2019, 2020
|
|
16929
|
+
*
|
|
16930
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
16931
|
+
* LICENSE file in the root directory of this source tree.
|
|
16932
|
+
*
|
|
16933
|
+
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
16934
|
+
*/
|
|
16935
|
+
|
|
16936
|
+
|
|
16937
|
+
|
|
16938
|
+
|
|
16939
|
+
var CheckmarkOutline16 = (0,utils_148d018d.c)(CheckmarkOutline16, {
|
|
16940
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
16941
|
+
"viewBox": "0 0 32 32",
|
|
16942
|
+
"fill": "currentColor",
|
|
16943
|
+
"width": 16,
|
|
16944
|
+
"height": 16
|
|
16945
|
+
}, [{
|
|
16946
|
+
"elem": "path",
|
|
16947
|
+
"attrs": {
|
|
16948
|
+
"d": "M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"
|
|
16949
|
+
}
|
|
16950
|
+
}, {
|
|
16951
|
+
"elem": "path",
|
|
16952
|
+
"attrs": {
|
|
16953
|
+
"d": "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"
|
|
16954
|
+
}
|
|
16955
|
+
}]);
|
|
16956
|
+
|
|
16957
|
+
|
|
16958
|
+
|
|
16959
|
+
;// CONCATENATED MODULE: ./node_modules/@carbon/icons-vue/es/circle-dash/16.js
|
|
16960
|
+
/**
|
|
16961
|
+
* Copyright IBM Corp. 2019, 2020
|
|
16962
|
+
*
|
|
16963
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
16964
|
+
* LICENSE file in the root directory of this source tree.
|
|
16965
|
+
*
|
|
16966
|
+
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
16967
|
+
*/
|
|
16968
|
+
|
|
16969
|
+
|
|
16970
|
+
|
|
16971
|
+
|
|
16972
|
+
var CircleDash16 = (0,utils_148d018d.c)(CircleDash16, {
|
|
16973
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
16974
|
+
"viewBox": "0 0 32 32",
|
|
16975
|
+
"fill": "currentColor",
|
|
16976
|
+
"width": 16,
|
|
16977
|
+
"height": 16
|
|
16978
|
+
}, [{
|
|
16979
|
+
"elem": "path",
|
|
16980
|
+
"attrs": {
|
|
16981
|
+
"d": "M7.7 4.7a14.7 14.7 0 00-3 3.1L6.3 9A13.26 13.26 0 018.9 6.3zM4.6 12.3l-1.9-.6A12.51 12.51 0 002 16H4A11.48 11.48 0 014.6 12.3zM2.7 20.4a14.4 14.4 0 002 3.9l1.6-1.2a12.89 12.89 0 01-1.7-3.3zM7.8 27.3a14.4 14.4 0 003.9 2l.6-1.9A12.89 12.89 0 019 25.7zM11.7 2.7l.6 1.9A11.48 11.48 0 0116 4V2A12.51 12.51 0 0011.7 2.7zM24.2 27.3a15.18 15.18 0 003.1-3.1L25.7 23A11.53 11.53 0 0123 25.7zM27.4 19.7l1.9.6A15.47 15.47 0 0030 16H28A11.48 11.48 0 0127.4 19.7zM29.2 11.6a14.4 14.4 0 00-2-3.9L25.6 8.9a12.89 12.89 0 011.7 3.3zM24.1 4.6a14.4 14.4 0 00-3.9-2l-.6 1.9a12.89 12.89 0 013.3 1.7zM20.3 29.3l-.6-1.9A11.48 11.48 0 0116 28v2A21.42 21.42 0 0020.3 29.3z"
|
|
16982
|
+
}
|
|
16983
|
+
}]);
|
|
16984
|
+
|
|
16985
|
+
|
|
16986
|
+
|
|
16987
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
16988
|
+
var settings = __webpack_require__(606);
|
|
16989
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
16990
|
+
var cvId = __webpack_require__(1853);
|
|
16991
|
+
;// 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/CvProgress/CvProgressStep.vue?vue&type=script&setup=true&lang=js
|
|
16992
|
+
|
|
16993
|
+
|
|
16994
|
+
|
|
16995
|
+
|
|
16996
|
+
|
|
16997
|
+
|
|
16998
|
+
|
|
16999
|
+
|
|
17000
|
+
var _hoisted_1 = ["id", "aria-disabled"];
|
|
17001
|
+
var _hoisted_2 = ["title"];
|
|
17002
|
+
var _hoisted_3 = {
|
|
17003
|
+
key: 0,
|
|
17004
|
+
class: "bx--progress-optional"
|
|
17005
|
+
};
|
|
17006
|
+
// noinspection ES6PreferShortImport
|
|
17007
|
+
|
|
17008
|
+
|
|
17009
|
+
|
|
17010
|
+
|
|
17011
|
+
var STEP_CURRENT = 'current';
|
|
17012
|
+
var STEP_COMPLETE = 'complete';
|
|
17013
|
+
var STEP_INCOMPLETE = 'incomplete';
|
|
17014
|
+
var STEP_DISABLED = 'disabled';
|
|
17015
|
+
/* harmony default export */ var CvProgressStepvue_type_script_setup_true_lang_js = ({
|
|
17016
|
+
__name: 'CvProgressStep',
|
|
17017
|
+
props: (0,objectSpread2/* default */.Z)({
|
|
17018
|
+
additionalInfo: String,
|
|
17019
|
+
description: String,
|
|
17020
|
+
disabled: Boolean,
|
|
17021
|
+
invalid: Boolean,
|
|
17022
|
+
label: String,
|
|
17023
|
+
tipText: String,
|
|
17024
|
+
complete: Boolean
|
|
17025
|
+
}, cvId/* props */.N),
|
|
17026
|
+
emits: ['step-clicked'],
|
|
17027
|
+
setup: function setup(__props, _ref) {
|
|
17028
|
+
var emit = _ref.emit;
|
|
17029
|
+
var props = __props;
|
|
17030
|
+
var uid = (0,cvId/* useCvId */.l)(props, true);
|
|
17031
|
+
var isEqual = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('progress-space-equally');
|
|
17032
|
+
var internalState = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(STEP_INCOMPLETE);
|
|
17033
|
+
/**
|
|
17034
|
+
* @type {Ref<UnwrapRef<string>>}
|
|
17035
|
+
*/
|
|
17036
|
+
|
|
17037
|
+
var currentStep = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('progress-current-step');
|
|
17038
|
+
var isCurrent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
17039
|
+
return uid.value === currentStep.value;
|
|
17040
|
+
});
|
|
17041
|
+
/**
|
|
17042
|
+
* @type {Ref<UnwrapRef<Array<ProgressStepData>>>}
|
|
17043
|
+
*/
|
|
17044
|
+
|
|
17045
|
+
var progressSteps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('progress-steps');
|
|
17046
|
+
/**
|
|
17047
|
+
* @type {Ref<UnwrapRef<Set<string>>>}
|
|
17048
|
+
*/
|
|
17049
|
+
|
|
17050
|
+
var completedSteps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('progress-completed-steps');
|
|
17051
|
+
|
|
17052
|
+
function checkCurrentStep() {
|
|
17053
|
+
if (props.disabled) internalState.value = STEP_DISABLED;else if (isCurrent.value) internalState.value = STEP_CURRENT;else if (props.complete) internalState.value = STEP_COMPLETE;else internalState.value = STEP_INCOMPLETE;
|
|
17054
|
+
var stepData = {
|
|
17055
|
+
uid: uid.value,
|
|
17056
|
+
state: internalState.value
|
|
17057
|
+
};
|
|
17058
|
+
var index = progressSteps.value.findIndex(function (step) {
|
|
17059
|
+
return step.uid === uid.value;
|
|
17060
|
+
});
|
|
17061
|
+
if (index > -1) progressSteps.value.splice(index, 1, stepData);else progressSteps.value.push(stepData);
|
|
17062
|
+
}
|
|
17063
|
+
|
|
17064
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(checkCurrentStep);
|
|
17065
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(currentStep, checkCurrentStep);
|
|
17066
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(completedSteps, checkCurrentStep);
|
|
17067
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(function () {
|
|
17068
|
+
var index = progressSteps.value.findIndex(function (step) {
|
|
17069
|
+
return step.uid === uid.value;
|
|
17070
|
+
});
|
|
17071
|
+
if (index > -1) progressSteps.value.splice(index, 1);
|
|
17072
|
+
});
|
|
17073
|
+
var stepClass = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
17074
|
+
return props.invalid ? "".concat(settings/* carbonPrefix */.B, "--progress__warning") : '';
|
|
17075
|
+
});
|
|
17076
|
+
var stepIcon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
17077
|
+
if (props.invalid) return Warning16;else if (internalState.value === STEP_CURRENT) return Incomplete16;else if (internalState.value === STEP_COMPLETE) return CheckmarkOutline16;else return CircleDash16;
|
|
17078
|
+
});
|
|
17079
|
+
return function (_ctx, _cache) {
|
|
17080
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("li", {
|
|
17081
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["cv-progress-step ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--progress-step"), "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--progress-step--").concat(internalState.value)]),
|
|
17082
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid),
|
|
17083
|
+
"aria-disabled": __props.disabled
|
|
17084
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
|
|
17085
|
+
type: "button",
|
|
17086
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--progress-step-button"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--progress-step-button--unclickable"), isCurrent.value)]),
|
|
17087
|
+
tabindex: "-1",
|
|
17088
|
+
title: __props.label,
|
|
17089
|
+
onClick: _cache[0] || (_cache[0] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(function ($event) {
|
|
17090
|
+
return emit('step-clicked', {
|
|
17091
|
+
uid: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid)
|
|
17092
|
+
});
|
|
17093
|
+
}, ["prevent"]))
|
|
17094
|
+
}, [isCurrent.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", {
|
|
17095
|
+
key: 0,
|
|
17096
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--assistive-text"))
|
|
17097
|
+
}, "Current", 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "step-icon", {}, function () {
|
|
17098
|
+
return [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveDynamicComponent)(stepIcon.value), {
|
|
17099
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(stepClass.value)
|
|
17100
|
+
}, {
|
|
17101
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
17102
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("title", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.description), 1)];
|
|
17103
|
+
}),
|
|
17104
|
+
_: 1
|
|
17105
|
+
}, 8, ["class"]))];
|
|
17106
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
17107
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--progress-text")),
|
|
17108
|
+
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
17109
|
+
maxWidth: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isEqual) ? 'calc(100% - 1rem)' : undefined
|
|
17110
|
+
})
|
|
17111
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
17112
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--progress-label")])
|
|
17113
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.label), 3), __props.additionalInfo ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("p", _hoisted_3, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.additionalInfo), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 6), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
17114
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--progress-line"))
|
|
17115
|
+
}, null, 2)], 10, _hoisted_2)], 10, _hoisted_1);
|
|
17116
|
+
};
|
|
17117
|
+
}
|
|
17118
|
+
});
|
|
17119
|
+
;// CONCATENATED MODULE: ./src/components/CvProgress/CvProgressStep.vue?vue&type=script&setup=true&lang=js
|
|
17120
|
+
|
|
17121
|
+
;// CONCATENATED MODULE: ./src/components/CvProgress/CvProgressStep.vue
|
|
17122
|
+
|
|
17123
|
+
|
|
17124
|
+
|
|
17125
|
+
const __exports__ = CvProgressStepvue_type_script_setup_true_lang_js;
|
|
17126
|
+
|
|
17127
|
+
/* harmony default export */ var CvProgressStep = (__exports__);
|
|
17128
|
+
|
|
17129
|
+
/***/ }),
|
|
17130
|
+
|
|
17131
|
+
/***/ 1676:
|
|
17132
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17133
|
+
|
|
17134
|
+
"use strict";
|
|
17135
|
+
// ESM COMPAT FLAG
|
|
17136
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17137
|
+
|
|
17138
|
+
// EXPORTS
|
|
17139
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
17140
|
+
"default": function() { return /* binding */ CvRadioButton; }
|
|
17141
|
+
});
|
|
17142
|
+
|
|
17143
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
17144
|
+
var defineProperty = __webpack_require__(9130);
|
|
17145
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
17146
|
+
var objectSpread2 = __webpack_require__(5145);
|
|
17147
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
17148
|
+
var es_object_assign = __webpack_require__(9601);
|
|
17149
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
17150
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
17151
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
17152
|
+
var settings = __webpack_require__(606);
|
|
17153
|
+
// EXTERNAL MODULE: ./src/use/index.js + 2 modules
|
|
17154
|
+
var use = __webpack_require__(2442);
|
|
17155
|
+
;// 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/CvRadioButton/CvRadioButton.vue?vue&type=script&setup=true&lang=js
|
|
17156
|
+
|
|
17157
|
+
|
|
17158
|
+
|
|
17159
|
+
|
|
17160
|
+
var _hoisted_1 = ["id", "checked", "value"];
|
|
17161
|
+
var _hoisted_2 = ["for"];
|
|
17162
|
+
|
|
17163
|
+
|
|
17164
|
+
var __default__ = {
|
|
17165
|
+
inheritAttrs: false
|
|
17166
|
+
};
|
|
17167
|
+
/* harmony default export */ var CvRadioButtonvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
17168
|
+
__name: 'CvRadioButton',
|
|
17169
|
+
props: (0,objectSpread2/* default */.Z)({
|
|
17170
|
+
modelValue: String,
|
|
17171
|
+
checked: Boolean,
|
|
17172
|
+
label: String,
|
|
17173
|
+
value: {
|
|
17174
|
+
type: String,
|
|
17175
|
+
required: true
|
|
17176
|
+
},
|
|
17177
|
+
hideLabel: Boolean,
|
|
17178
|
+
labelLeft: Boolean
|
|
17179
|
+
}, use/* propsCvId */.rz),
|
|
17180
|
+
emits: ['update:modelValue', 'change'],
|
|
17181
|
+
setup: function setup(__props, _ref) {
|
|
17182
|
+
var emit = _ref.emit;
|
|
17183
|
+
var props = __props;
|
|
17184
|
+
var cvId = (0,use/* useCvId */.lX)(props);
|
|
17185
|
+
(0,use/* useMethods */.$1)({
|
|
17186
|
+
input: ['blur', 'focus']
|
|
17187
|
+
});
|
|
17188
|
+
|
|
17189
|
+
var _useRadio = (0,use/* useRadio */.xL)(props, emit),
|
|
17190
|
+
isChecked = _useRadio.isChecked,
|
|
17191
|
+
onChange = _useRadio.onChange;
|
|
17192
|
+
|
|
17193
|
+
return function (_ctx, _cache) {
|
|
17194
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
17195
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["cv-radio-button ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--radio-button-wrapper"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--radio-button-wrapper--label-left"), __props.labelLeft)])
|
|
17196
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)(_ctx.$attrs, {
|
|
17197
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
17198
|
+
checked: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isChecked),
|
|
17199
|
+
class: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--radio-button"),
|
|
17200
|
+
ref: "input",
|
|
17201
|
+
type: "radio",
|
|
17202
|
+
value: __props.value,
|
|
17203
|
+
onChange: _cache[0] || (_cache[0] = function () {
|
|
17204
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(onChange) && (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(onChange).apply(void 0, arguments);
|
|
17205
|
+
})
|
|
17206
|
+
}), null, 16, _hoisted_1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
17207
|
+
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
17208
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--radio-button__label"))
|
|
17209
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
17210
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--radio-button__appearance"))
|
|
17211
|
+
}, null, 2), __props.label ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", {
|
|
17212
|
+
key: 0,
|
|
17213
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)((0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--visually-hidden"), __props.hideLabel))
|
|
17214
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.label), 3)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 10, _hoisted_2)], 2);
|
|
17215
|
+
};
|
|
17216
|
+
}
|
|
17217
|
+
}));
|
|
17218
|
+
;// CONCATENATED MODULE: ./src/components/CvRadioButton/CvRadioButton.vue?vue&type=script&setup=true&lang=js
|
|
17219
|
+
|
|
17220
|
+
;// CONCATENATED MODULE: ./src/components/CvRadioButton/CvRadioButton.vue
|
|
17221
|
+
|
|
17222
|
+
|
|
17223
|
+
|
|
17224
|
+
const __exports__ = CvRadioButtonvue_type_script_setup_true_lang_js;
|
|
17225
|
+
|
|
17226
|
+
/* harmony default export */ var CvRadioButton = (__exports__);
|
|
17227
|
+
|
|
17228
|
+
/***/ }),
|
|
17229
|
+
|
|
17230
|
+
/***/ 4183:
|
|
17231
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17232
|
+
|
|
17233
|
+
"use strict";
|
|
17234
|
+
// ESM COMPAT FLAG
|
|
17235
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17236
|
+
|
|
17237
|
+
// EXPORTS
|
|
17238
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
17239
|
+
"default": function() { return /* binding */ CvRadioGroup; }
|
|
17240
|
+
});
|
|
17241
|
+
|
|
17242
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
17243
|
+
var defineProperty = __webpack_require__(9130);
|
|
17244
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
17245
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
17246
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
17247
|
+
var settings = __webpack_require__(606);
|
|
17248
|
+
;// 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/CvRadioButton/CvRadioGroup.vue?vue&type=script&setup=true&lang=js
|
|
17249
|
+
|
|
17250
|
+
|
|
17251
|
+
|
|
17252
|
+
|
|
17253
|
+
/* harmony default export */ var CvRadioGroupvue_type_script_setup_true_lang_js = ({
|
|
17254
|
+
__name: 'CvRadioGroup',
|
|
17255
|
+
props: {
|
|
17256
|
+
vertical: Boolean
|
|
17257
|
+
},
|
|
17258
|
+
emits: ['change'],
|
|
17259
|
+
setup: function setup(__props, _ref) {
|
|
17260
|
+
var emit = _ref.emit;
|
|
17261
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('onRadioItemChange', function (clickedItemCvId) {
|
|
17262
|
+
emit('change', clickedItemCvId);
|
|
17263
|
+
});
|
|
17264
|
+
return function (_ctx, _cache) {
|
|
17265
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
17266
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("cv-radio-group ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-item"))
|
|
17267
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
17268
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--radio-button-group"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--radio-button-group--vertical"), __props.vertical)])
|
|
17269
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2)], 2);
|
|
17270
|
+
};
|
|
17271
|
+
}
|
|
17272
|
+
});
|
|
17273
|
+
;// CONCATENATED MODULE: ./src/components/CvRadioButton/CvRadioGroup.vue?vue&type=script&setup=true&lang=js
|
|
17274
|
+
|
|
17275
|
+
;// CONCATENATED MODULE: ./src/components/CvRadioButton/CvRadioGroup.vue
|
|
17276
|
+
|
|
17277
|
+
|
|
17278
|
+
|
|
17279
|
+
const __exports__ = CvRadioGroupvue_type_script_setup_true_lang_js;
|
|
17280
|
+
|
|
17281
|
+
/* harmony default export */ var CvRadioGroup = (__exports__);
|
|
17282
|
+
|
|
17283
|
+
/***/ }),
|
|
17284
|
+
|
|
17285
|
+
/***/ 430:
|
|
17286
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17287
|
+
|
|
17288
|
+
"use strict";
|
|
17289
|
+
// ESM COMPAT FLAG
|
|
17290
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17291
|
+
|
|
17292
|
+
// EXPORTS
|
|
17293
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
17294
|
+
"default": function() { return /* binding */ CvSearch; }
|
|
17295
|
+
});
|
|
17296
|
+
|
|
17297
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
17298
|
+
var defineProperty = __webpack_require__(9130);
|
|
17299
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
17300
|
+
var objectSpread2 = __webpack_require__(5145);
|
|
17301
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
17302
|
+
var es_object_assign = __webpack_require__(9601);
|
|
17303
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
17304
|
+
var es_array_includes = __webpack_require__(6699);
|
|
17305
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
17306
|
+
var es_string_includes = __webpack_require__(2023);
|
|
17307
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
17308
|
+
var es_array_concat = __webpack_require__(2222);
|
|
17309
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
17310
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
17311
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
17312
|
+
var settings = __webpack_require__(606);
|
|
17313
|
+
// EXTERNAL MODULE: ./src/use/cvTheme.js
|
|
17314
|
+
var cvTheme = __webpack_require__(3610);
|
|
17315
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
17316
|
+
var cvId = __webpack_require__(1853);
|
|
17317
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/search/16.js
|
|
17318
|
+
var _16 = __webpack_require__(7360);
|
|
17319
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/close/16.js
|
|
17320
|
+
var close_16 = __webpack_require__(2148);
|
|
17321
|
+
;// CONCATENATED MODULE: ./src/components/CvSearch/index.js
|
|
17322
|
+
|
|
17323
|
+
var SEARCH_SIZES = ['sm', 'lg', 'xl'];
|
|
17324
|
+
|
|
17325
|
+
// EXTERNAL MODULE: ./src/components/CvEmpty/_CvEmpty.vue + 2 modules
|
|
17326
|
+
var _CvEmpty = __webpack_require__(3282);
|
|
17327
|
+
;// 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/CvSearch/CvSearch.vue?vue&type=script&setup=true&lang=js
|
|
17328
|
+
|
|
17329
|
+
|
|
17330
|
+
|
|
17331
|
+
|
|
17332
|
+
|
|
17333
|
+
|
|
17334
|
+
|
|
17335
|
+
var _hoisted_1 = ["aria-label", "aria-labelledby"];
|
|
17336
|
+
var _hoisted_2 = ["for"];
|
|
17337
|
+
var _hoisted_3 = ["id", "placeholder", "aria-labelledby", "onKeydown", "disabled"];
|
|
17338
|
+
var _hoisted_4 = ["title", "aria-label"];
|
|
17339
|
+
|
|
17340
|
+
|
|
17341
|
+
|
|
17342
|
+
|
|
17343
|
+
|
|
17344
|
+
|
|
17345
|
+
|
|
17346
|
+
|
|
17347
|
+
/* harmony default export */ var CvSearchvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign({
|
|
17348
|
+
inheritAttrs: false
|
|
17349
|
+
}, {
|
|
17350
|
+
__name: 'CvSearch',
|
|
17351
|
+
props: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
|
|
17352
|
+
ariaLabel: {
|
|
17353
|
+
type: String,
|
|
17354
|
+
default: 'search input'
|
|
17355
|
+
},
|
|
17356
|
+
|
|
17357
|
+
/**
|
|
17358
|
+
* Specify a label to be read by screen readers on the "close" button
|
|
17359
|
+
*/
|
|
17360
|
+
clearAriaLabel: {
|
|
17361
|
+
type: String,
|
|
17362
|
+
default: 'Clear search input'
|
|
17363
|
+
},
|
|
17364
|
+
|
|
17365
|
+
/**
|
|
17366
|
+
* Specify whether the `<input>` should be disabled
|
|
17367
|
+
*/
|
|
17368
|
+
disabled: {
|
|
17369
|
+
type: Boolean,
|
|
17370
|
+
default: false
|
|
17371
|
+
},
|
|
17372
|
+
|
|
17373
|
+
/**
|
|
17374
|
+
* Do no show full control until it has focus. Similar to deprecated toolbar search.
|
|
17375
|
+
*/
|
|
17376
|
+
expandable: {
|
|
17377
|
+
type: Boolean,
|
|
17378
|
+
default: false
|
|
17379
|
+
},
|
|
17380
|
+
|
|
17381
|
+
/**
|
|
17382
|
+
* Wrap search in `<div>` if part of a form
|
|
17383
|
+
*/
|
|
17384
|
+
formItem: {
|
|
17385
|
+
type: Boolean,
|
|
17386
|
+
default: true
|
|
17387
|
+
},
|
|
17388
|
+
|
|
17389
|
+
/**
|
|
17390
|
+
* @deprecated use expandable
|
|
17391
|
+
*/
|
|
17392
|
+
kind: {
|
|
17393
|
+
type: String,
|
|
17394
|
+
default: undefined,
|
|
17395
|
+
validator: function validator() {
|
|
17396
|
+
console.warn('Deprecated: probably you want expandable=true');
|
|
17397
|
+
return true;
|
|
17398
|
+
}
|
|
17399
|
+
},
|
|
17400
|
+
|
|
17401
|
+
/**
|
|
17402
|
+
* Provide the label text for the Search icon
|
|
17403
|
+
*/
|
|
17404
|
+
label: String,
|
|
17405
|
+
|
|
17406
|
+
/**
|
|
17407
|
+
* Specify the search size ('sm', 'md', 'lg', 'xl')
|
|
17408
|
+
*/
|
|
17409
|
+
size: {
|
|
17410
|
+
type: String,
|
|
17411
|
+
default: 'xl',
|
|
17412
|
+
validator: function validator(val) {
|
|
17413
|
+
return SEARCH_SIZES.includes(val);
|
|
17414
|
+
}
|
|
17415
|
+
},
|
|
17416
|
+
|
|
17417
|
+
/**
|
|
17418
|
+
* @deprecated use size
|
|
17419
|
+
*/
|
|
17420
|
+
small: {
|
|
17421
|
+
type: Boolean,
|
|
17422
|
+
default: undefined,
|
|
17423
|
+
validator: function validator(val) {
|
|
17424
|
+
if (val !== undefined) {
|
|
17425
|
+
console.error('Error: Use size property: sm, lg or xl (default)');
|
|
17426
|
+
return false;
|
|
17427
|
+
}
|
|
17428
|
+
|
|
17429
|
+
return true;
|
|
17430
|
+
}
|
|
17431
|
+
},
|
|
17432
|
+
|
|
17433
|
+
/**
|
|
17434
|
+
* @deprecated use size
|
|
17435
|
+
*/
|
|
17436
|
+
large: {
|
|
17437
|
+
type: Boolean,
|
|
17438
|
+
default: undefined,
|
|
17439
|
+
validator: function validator(val) {
|
|
17440
|
+
if (val !== undefined) {
|
|
17441
|
+
console.error('Error: Use size property: sm, lg or xl (default)');
|
|
17442
|
+
return false;
|
|
17443
|
+
}
|
|
17444
|
+
|
|
17445
|
+
return true;
|
|
17446
|
+
}
|
|
17447
|
+
},
|
|
17448
|
+
|
|
17449
|
+
/**
|
|
17450
|
+
* Optionally provide the default value of the `<input>`
|
|
17451
|
+
*/
|
|
17452
|
+
value: String,
|
|
17453
|
+
|
|
17454
|
+
/**
|
|
17455
|
+
* @deprecated use value
|
|
17456
|
+
*/
|
|
17457
|
+
modelValue: {
|
|
17458
|
+
type: String,
|
|
17459
|
+
default: undefined,
|
|
17460
|
+
validator: function validator() {
|
|
17461
|
+
console.warn('Deprecated: use v-model:value instead');
|
|
17462
|
+
return true;
|
|
17463
|
+
}
|
|
17464
|
+
},
|
|
17465
|
+
|
|
17466
|
+
/**
|
|
17467
|
+
* Provide an optional placeholder text for the Search. Note: if the label and placeholder differ, VoiceOver on Mac will read both
|
|
17468
|
+
*/
|
|
17469
|
+
placeholder: {
|
|
17470
|
+
type: String,
|
|
17471
|
+
default: 'Search'
|
|
17472
|
+
},
|
|
17473
|
+
|
|
17474
|
+
/**
|
|
17475
|
+
* @deprecated
|
|
17476
|
+
*/
|
|
17477
|
+
toolbarAriaLabel: {
|
|
17478
|
+
type: String,
|
|
17479
|
+
validator: function validator() {
|
|
17480
|
+
console.warn('Deprecated: probably you want expandable=true');
|
|
17481
|
+
return true;
|
|
17482
|
+
}
|
|
17483
|
+
}
|
|
17484
|
+
}, cvTheme/* props */.N), cvId/* props */.N),
|
|
17485
|
+
emits: ['input', 'update:value', 'update:modelValue'],
|
|
17486
|
+
setup: function setup(__props, _ref) {
|
|
17487
|
+
var emit = _ref.emit;
|
|
17488
|
+
var props = __props;
|
|
17489
|
+
var uid = (0,cvId/* useCvId */.l)(props, true);
|
|
17490
|
+
var isLight = (0,cvTheme/* useIsLight */.h)(props);
|
|
17491
|
+
var clearVisible = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(props.value ? props.value.length : false);
|
|
17492
|
+
var internalSearchText = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(props.value || props.modelValue);
|
|
17493
|
+
var searchActive = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
17494
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(function () {
|
|
17495
|
+
return props.value;
|
|
17496
|
+
}, function () {
|
|
17497
|
+
clearVisible.value = props.value ? props.value.length : false;
|
|
17498
|
+
internalSearchText.value = props.value;
|
|
17499
|
+
});
|
|
17500
|
+
var internalAriaLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
17501
|
+
if (!props.label) return props.ariaLabel;else return undefined;
|
|
17502
|
+
});
|
|
17503
|
+
var internalAriaLabelBy = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
17504
|
+
if (props.label) return uid.value;else return undefined;
|
|
17505
|
+
});
|
|
17506
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(internalSearchText, function () {
|
|
17507
|
+
emit('input', internalSearchText.value);
|
|
17508
|
+
emit('update:value', internalSearchText.value);
|
|
17509
|
+
|
|
17510
|
+
if (props.modelValue) {
|
|
17511
|
+
console.warn('Deprecated: use v-model:value instead');
|
|
17512
|
+
emit('update:modelValue', internalSearchText.value);
|
|
17513
|
+
}
|
|
17514
|
+
});
|
|
17515
|
+
|
|
17516
|
+
function onClearClick() {
|
|
17517
|
+
internalSearchText.value = '';
|
|
17518
|
+
clearVisible.value = false;
|
|
17519
|
+
|
|
17520
|
+
if (props.expandable) {
|
|
17521
|
+
var _elInput$value;
|
|
17522
|
+
|
|
17523
|
+
(_elInput$value = elInput.value) === null || _elInput$value === void 0 ? void 0 : _elInput$value.focus();
|
|
17524
|
+
}
|
|
17525
|
+
|
|
17526
|
+
checkFocus();
|
|
17527
|
+
}
|
|
17528
|
+
|
|
17529
|
+
function onInput() {
|
|
17530
|
+
clearVisible.value = internalSearchText.value.length > 0;
|
|
17531
|
+
}
|
|
17532
|
+
|
|
17533
|
+
var elInput = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
17534
|
+
var isExpanded = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
17535
|
+
return props.expandable && searchActive.value;
|
|
17536
|
+
});
|
|
17537
|
+
|
|
17538
|
+
function toggleActive(force) {
|
|
17539
|
+
var _internalSearchText$v;
|
|
17540
|
+
|
|
17541
|
+
if (props.disabled) return;
|
|
17542
|
+
if (typeof force === 'boolean') searchActive.value = force;else if (((_internalSearchText$v = internalSearchText.value) === null || _internalSearchText$v === void 0 ? void 0 : _internalSearchText$v.length) > 0) searchActive.value = true;else searchActive.value = !searchActive.value;
|
|
17543
|
+
|
|
17544
|
+
if (searchActive.value) {
|
|
17545
|
+
var _elInput$value2;
|
|
17546
|
+
|
|
17547
|
+
(_elInput$value2 = elInput.value) === null || _elInput$value2 === void 0 ? void 0 : _elInput$value2.focus();
|
|
17548
|
+
}
|
|
17549
|
+
}
|
|
17550
|
+
|
|
17551
|
+
var elSearch = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
17552
|
+
|
|
17553
|
+
function checkFocus() {
|
|
17554
|
+
if (props.disabled) return;
|
|
17555
|
+
|
|
17556
|
+
if (props.expandable) {
|
|
17557
|
+
var _internalSearchText$v2;
|
|
17558
|
+
|
|
17559
|
+
if (elInput.value !== document.activeElement) searchActive.value = ((_internalSearchText$v2 = internalSearchText.value) === null || _internalSearchText$v2 === void 0 ? void 0 : _internalSearchText$v2.length) > 0;
|
|
17560
|
+
}
|
|
17561
|
+
}
|
|
17562
|
+
|
|
17563
|
+
return function (_ctx, _cache) {
|
|
17564
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveDynamicComponent)(__props.formItem ? 'div' : _CvEmpty/* default */.Z), {
|
|
17565
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("cv-search ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-item"))
|
|
17566
|
+
}, {
|
|
17567
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
17568
|
+
var _ref2;
|
|
17569
|
+
|
|
17570
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
17571
|
+
"aria-label": internalAriaLabel.value,
|
|
17572
|
+
"aria-labelledby": internalAriaLabelBy.value,
|
|
17573
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--search"), "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--search--").concat(__props.size), (_ref2 = {}, (0,defineProperty/* default */.Z)(_ref2, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--search--expandable"), __props.expandable), (0,defineProperty/* default */.Z)(_ref2, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--search--expanded"), isExpanded.value), (0,defineProperty/* default */.Z)(_ref2, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--search--disabled"), __props.disabled), (0,defineProperty/* default */.Z)(_ref2, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--search--light"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isLight)), (0,defineProperty/* default */.Z)(_ref2, 'cv-search', !__props.formItem), _ref2)]),
|
|
17574
|
+
role: "search",
|
|
17575
|
+
ref_key: "elSearch",
|
|
17576
|
+
ref: elSearch
|
|
17577
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
17578
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--search-magnifier")),
|
|
17579
|
+
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
17580
|
+
return toggleActive(true);
|
|
17581
|
+
}),
|
|
17582
|
+
onBlur: checkFocus
|
|
17583
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(_16/* default */.Z), {
|
|
17584
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--search-magnifier-icon"))
|
|
17585
|
+
}, null, 8, ["class"])], 34), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
17586
|
+
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid),
|
|
17587
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--label"))
|
|
17588
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.label), 11, _hoisted_2), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vShow, __props.label]]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
17589
|
+
role: "searchbox",
|
|
17590
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid),
|
|
17591
|
+
class: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--search-input")
|
|
17592
|
+
}, _ctx.$attrs, {
|
|
17593
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
|
|
17594
|
+
return internalSearchText.value = $event;
|
|
17595
|
+
}),
|
|
17596
|
+
onInput: onInput,
|
|
17597
|
+
type: "text",
|
|
17598
|
+
ref_key: "elInput",
|
|
17599
|
+
ref: elInput,
|
|
17600
|
+
placeholder: __props.placeholder,
|
|
17601
|
+
"aria-labelledby": (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid),
|
|
17602
|
+
onBlur: checkFocus,
|
|
17603
|
+
onClick: toggleActive,
|
|
17604
|
+
onKeydown: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withKeys)(onClearClick, ["esc"]),
|
|
17605
|
+
disabled: __props.disabled ? 'true' : undefined
|
|
17606
|
+
}), null, 16, _hoisted_3), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vModelText, internalSearchText.value]]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
|
|
17607
|
+
type: "button",
|
|
17608
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--search-close"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--search-close--hidden"), !clearVisible.value)]),
|
|
17609
|
+
title: __props.clearAriaLabel,
|
|
17610
|
+
"aria-label": __props.clearAriaLabel,
|
|
17611
|
+
onClick: onClearClick
|
|
17612
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(close_16/* default */.Z))], 10, _hoisted_4)], 10, _hoisted_1)];
|
|
17613
|
+
}),
|
|
17614
|
+
_: 1
|
|
17615
|
+
}, 8, ["class"]);
|
|
17616
|
+
};
|
|
17617
|
+
}
|
|
17618
|
+
}));
|
|
17619
|
+
;// CONCATENATED MODULE: ./src/components/CvSearch/CvSearch.vue?vue&type=script&setup=true&lang=js
|
|
17620
|
+
|
|
17621
|
+
;// CONCATENATED MODULE: ./src/components/CvSearch/CvSearch.vue
|
|
17622
|
+
|
|
17623
|
+
|
|
17624
|
+
|
|
17625
|
+
const __exports__ = CvSearchvue_type_script_setup_true_lang_js;
|
|
17626
|
+
|
|
17627
|
+
/* harmony default export */ var CvSearch = (__exports__);
|
|
17628
|
+
|
|
17629
|
+
/***/ }),
|
|
17630
|
+
|
|
15854
17631
|
/***/ 6661:
|
|
15855
17632
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
15856
17633
|
|
|
@@ -15869,6 +17646,18 @@ var defineProperty = __webpack_require__(9130);
|
|
|
15869
17646
|
var objectSpread2 = __webpack_require__(5145);
|
|
15870
17647
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
15871
17648
|
var es_array_includes = __webpack_require__(6699);
|
|
17649
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
17650
|
+
var es_array_join = __webpack_require__(9600);
|
|
17651
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
17652
|
+
var es_array_filter = __webpack_require__(7327);
|
|
17653
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
17654
|
+
var es_object_to_string = __webpack_require__(1539);
|
|
17655
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
17656
|
+
var es_regexp_exec = __webpack_require__(4916);
|
|
17657
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
17658
|
+
var es_string_split = __webpack_require__(3123);
|
|
17659
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.starts-with.js
|
|
17660
|
+
var es_string_starts_with = __webpack_require__(6755);
|
|
15872
17661
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
15873
17662
|
var es_array_concat = __webpack_require__(2222);
|
|
15874
17663
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
@@ -15893,6 +17682,12 @@ var cvTheme = __webpack_require__(3610);
|
|
|
15893
17682
|
|
|
15894
17683
|
|
|
15895
17684
|
|
|
17685
|
+
|
|
17686
|
+
|
|
17687
|
+
|
|
17688
|
+
|
|
17689
|
+
|
|
17690
|
+
|
|
15896
17691
|
var _hoisted_1 = ["data-test"];
|
|
15897
17692
|
var _hoisted_2 = ["for"];
|
|
15898
17693
|
var _hoisted_3 = ["data-invalid"];
|
|
@@ -15940,6 +17735,7 @@ var _hoisted_4 = ["id", "value"];
|
|
|
15940
17735
|
// multiple does not work with styling from carbon-components 9.20
|
|
15941
17736
|
multiple: {
|
|
15942
17737
|
type: String,
|
|
17738
|
+
default: undefined,
|
|
15943
17739
|
validator: function validator() {
|
|
15944
17740
|
console.warn('property multiple not supported in CvSelect');
|
|
15945
17741
|
return false;
|
|
@@ -15957,7 +17753,8 @@ var _hoisted_4 = ["id", "value"];
|
|
|
15957
17753
|
}
|
|
15958
17754
|
},
|
|
15959
17755
|
modelValue: {
|
|
15960
|
-
type: String
|
|
17756
|
+
type: String,
|
|
17757
|
+
default: undefined
|
|
15961
17758
|
}
|
|
15962
17759
|
}, cvTheme/* props */.N), use_cvId/* props */.N),
|
|
15963
17760
|
emits: ['change', 'update:modelValue'],
|
|
@@ -16056,20 +17853,33 @@ var _hoisted_4 = ["id", "value"];
|
|
|
16056
17853
|
}
|
|
16057
17854
|
|
|
16058
17855
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(updateWarning);
|
|
16059
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUpdated)(updateWarning);
|
|
17856
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUpdated)(updateWarning); // There is an oddity here with Vue2 vs Vue3. The Vue2 component uses CvWrapper to determine if this component
|
|
17857
|
+
// is wrapped in a div or not. Either way the class attributes are applied in Vue2. In Vue3 the attributes are
|
|
17858
|
+
// not applied. The CvTimePicker consumes this component and needs to apply styles in both the wrapped and
|
|
17859
|
+
// unwrapped case. Here we apply any carbon styles to the outer div.
|
|
17860
|
+
|
|
17861
|
+
var attrs = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useAttrs)();
|
|
17862
|
+
var carbonClasses = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
17863
|
+
var _attrs$class;
|
|
17864
|
+
|
|
17865
|
+
if (props.formItem || !attrs.class) return '';
|
|
17866
|
+
return (_attrs$class = attrs.class) === null || _attrs$class === void 0 ? void 0 : _attrs$class.split(' ').filter(function (c) {
|
|
17867
|
+
return c.startsWith("".concat(settings/* carbonPrefix */.B, "--"));
|
|
17868
|
+
}).join(' ');
|
|
17869
|
+
});
|
|
16060
17870
|
return function (_ctx, _cache) {
|
|
16061
17871
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(CvWrapper/* default */.Z), {
|
|
16062
|
-
"tag-type": __props.formItem ? 'div' : '',
|
|
16063
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("cv-select ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-item")),
|
|
16064
17872
|
ref_key: "el",
|
|
16065
|
-
ref: el
|
|
17873
|
+
ref: el,
|
|
17874
|
+
"tag-type": __props.formItem ? 'div' : '',
|
|
17875
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("cv-select ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-item"))
|
|
16066
17876
|
}, {
|
|
16067
17877
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
16068
17878
|
var _ref2, _ref3;
|
|
16069
17879
|
|
|
16070
17880
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16071
17881
|
"data-test": __props.value,
|
|
16072
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--select"), (_ref2 = {
|
|
17882
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--select"), "".concat(carbonClasses.value), (_ref2 = {
|
|
16073
17883
|
'cv-select': !__props.formItem
|
|
16074
17884
|
}, (0,defineProperty/* default */.Z)(_ref2, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--select--inline"), __props.inline), (0,defineProperty/* default */.Z)(_ref2, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--select--light"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isLight)), (0,defineProperty/* default */.Z)(_ref2, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--select--invalid"), isInvalid.value), (0,defineProperty/* default */.Z)(_ref2, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--select--disabled"), _ctx.$attrs.disabled), (0,defineProperty/* default */.Z)(_ref2, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--select--warning"), !isInvalid.value && isWarning.value), _ref2)])
|
|
16075
17885
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
@@ -16086,9 +17896,8 @@ var _hoisted_4 = ["id", "value"];
|
|
|
16086
17896
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("select", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)(_ctx.$attrs, {
|
|
16087
17897
|
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
16088
17898
|
class: ["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--select-input"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--select-input--").concat(__props.size || 'md'), __props.size || 'md')],
|
|
16089
|
-
|
|
16090
|
-
|
|
16091
|
-
value: internalValue.value
|
|
17899
|
+
value: internalValue.value,
|
|
17900
|
+
onChange: onChange
|
|
16092
17901
|
}), [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 16, _hoisted_4), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(_16/* default */.Z), {
|
|
16093
17902
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--select__arrow"))
|
|
16094
17903
|
}, null, 8, ["class"]), isInvalid.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(warning_filled_16/* default */.Z), {
|
|
@@ -16339,6 +18148,776 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(CvSkeletonTextv
|
|
|
16339
18148
|
|
|
16340
18149
|
/***/ }),
|
|
16341
18150
|
|
|
18151
|
+
/***/ 5124:
|
|
18152
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18153
|
+
|
|
18154
|
+
"use strict";
|
|
18155
|
+
// ESM COMPAT FLAG
|
|
18156
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18157
|
+
|
|
18158
|
+
// EXPORTS
|
|
18159
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18160
|
+
"default": function() { return /* binding */ CvSlider; }
|
|
18161
|
+
});
|
|
18162
|
+
|
|
18163
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
18164
|
+
var defineProperty = __webpack_require__(9130);
|
|
18165
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
18166
|
+
var objectSpread2 = __webpack_require__(5145);
|
|
18167
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
18168
|
+
var es_array_concat = __webpack_require__(2222);
|
|
18169
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18170
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
18171
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
18172
|
+
var settings = __webpack_require__(606);
|
|
18173
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
18174
|
+
var use_cvId = __webpack_require__(1853);
|
|
18175
|
+
// EXTERNAL MODULE: ./src/use/cvTheme.js
|
|
18176
|
+
var cvTheme = __webpack_require__(3610);
|
|
18177
|
+
;// 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/CvSlider/CvSlider.vue?vue&type=script&setup=true&lang=js
|
|
18178
|
+
|
|
18179
|
+
|
|
18180
|
+
|
|
18181
|
+
|
|
18182
|
+
var _hoisted_1 = ["for", "id"];
|
|
18183
|
+
var _hoisted_2 = ["aria-labelledby", "onKeydown"];
|
|
18184
|
+
var _hoisted_3 = ["id", "step", "min", "max"];
|
|
18185
|
+
var _hoisted_4 = ["placeholder", "onKeydown", "disabled"];
|
|
18186
|
+
|
|
18187
|
+
|
|
18188
|
+
|
|
18189
|
+
|
|
18190
|
+
var DefaultRangeMin = 0;
|
|
18191
|
+
var DefaultRangeMax = 100;
|
|
18192
|
+
var DefaultValue = 0;
|
|
18193
|
+
var StepNaNReplacement = 0;
|
|
18194
|
+
var StepDefaultValue = 1;
|
|
18195
|
+
var DefaultMultiplier = 4;
|
|
18196
|
+
/* harmony default export */ var CvSlidervue_type_script_setup_true_lang_js = ({
|
|
18197
|
+
__name: 'CvSlider',
|
|
18198
|
+
props: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
|
|
18199
|
+
modelValue: {
|
|
18200
|
+
type: String,
|
|
18201
|
+
default: undefined
|
|
18202
|
+
},
|
|
18203
|
+
value: {
|
|
18204
|
+
type: String,
|
|
18205
|
+
default: undefined
|
|
18206
|
+
},
|
|
18207
|
+
disabled: Boolean,
|
|
18208
|
+
label: {
|
|
18209
|
+
type: String,
|
|
18210
|
+
default: undefined
|
|
18211
|
+
},
|
|
18212
|
+
// NOTE: It is not safe to rely on Numbers for non-integer steps
|
|
18213
|
+
min: {
|
|
18214
|
+
type: String,
|
|
18215
|
+
default: '0'
|
|
18216
|
+
},
|
|
18217
|
+
max: {
|
|
18218
|
+
type: String,
|
|
18219
|
+
default: '100'
|
|
18220
|
+
},
|
|
18221
|
+
minLabel: {
|
|
18222
|
+
type: String,
|
|
18223
|
+
default: undefined
|
|
18224
|
+
},
|
|
18225
|
+
maxLabel: {
|
|
18226
|
+
type: String,
|
|
18227
|
+
default: undefined
|
|
18228
|
+
},
|
|
18229
|
+
step: {
|
|
18230
|
+
type: String,
|
|
18231
|
+
default: '1'
|
|
18232
|
+
},
|
|
18233
|
+
stepMultiplier: {
|
|
18234
|
+
type: String,
|
|
18235
|
+
default: '4',
|
|
18236
|
+
validator: function validator(val) {
|
|
18237
|
+
if (val.length) {
|
|
18238
|
+
var intMultiplier = parseInt(val);
|
|
18239
|
+
|
|
18240
|
+
if (isNaN(intMultiplier) || intMultiplier < 1) {
|
|
18241
|
+
console.warn('cv-slider: multiplier must be >= 1');
|
|
18242
|
+
return false;
|
|
18243
|
+
}
|
|
18244
|
+
}
|
|
18245
|
+
|
|
18246
|
+
return true;
|
|
18247
|
+
}
|
|
18248
|
+
}
|
|
18249
|
+
}, cvTheme/* props */.N), use_cvId/* props */.N),
|
|
18250
|
+
emits: ['update:modelValue', 'change', 'update:value'],
|
|
18251
|
+
setup: function setup(__props, _ref) {
|
|
18252
|
+
var emit = _ref.emit;
|
|
18253
|
+
var props = __props;
|
|
18254
|
+
var range = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
18255
|
+
var thumb = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
18256
|
+
var track = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
18257
|
+
var cvId = (0,use_cvId/* useCvId */.l)(props, true);
|
|
18258
|
+
var isLight = (0,cvTheme/* useIsLight */.h)(props);
|
|
18259
|
+
var internalValue = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
|
|
18260
|
+
var animateClick = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
18261
|
+
var isDragging = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
18262
|
+
var dragStartX = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
18263
|
+
var dragStartValue = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
18264
|
+
var percentage = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('0%');
|
|
18265
|
+
var labelId = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
18266
|
+
return "".concat(cvId.value, "-label");
|
|
18267
|
+
});
|
|
18268
|
+
var internalMinLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
18269
|
+
var _props$minLabel;
|
|
18270
|
+
|
|
18271
|
+
return (_props$minLabel = props.minLabel) !== null && _props$minLabel !== void 0 ? _props$minLabel : getMin();
|
|
18272
|
+
});
|
|
18273
|
+
var internalMaxLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
18274
|
+
var _props$maxLabel;
|
|
18275
|
+
|
|
18276
|
+
return (_props$maxLabel = props.maxLabel) !== null && _props$maxLabel !== void 0 ? _props$maxLabel : getMax();
|
|
18277
|
+
});
|
|
18278
|
+
var rangePropsObserver = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
18279
|
+
return {
|
|
18280
|
+
min: props.min,
|
|
18281
|
+
max: props.max,
|
|
18282
|
+
step: props.step
|
|
18283
|
+
};
|
|
18284
|
+
});
|
|
18285
|
+
var internalMultiplier = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
18286
|
+
var intMultiplier = parseInt(props.stepMultiplier); // default to 4 fro multiplier
|
|
18287
|
+
|
|
18288
|
+
return isNaN(intMultiplier) ? DefaultMultiplier : Math.max(intMultiplier, 1);
|
|
18289
|
+
});
|
|
18290
|
+
|
|
18291
|
+
var getRangeAttributeValue = function getRangeAttributeValue(attributeName, defaultForNaN, defaultReturnValue) {
|
|
18292
|
+
if (range !== null && range !== void 0 && range.value) {
|
|
18293
|
+
var val = parseFloat(range.value[attributeName]);
|
|
18294
|
+
return isNaN(val) ? defaultForNaN : val;
|
|
18295
|
+
}
|
|
18296
|
+
|
|
18297
|
+
return defaultReturnValue !== null && defaultReturnValue !== void 0 ? defaultReturnValue : defaultForNaN;
|
|
18298
|
+
};
|
|
18299
|
+
|
|
18300
|
+
var getMin = function getMin() {
|
|
18301
|
+
return getRangeAttributeValue('min', DefaultRangeMin);
|
|
18302
|
+
};
|
|
18303
|
+
|
|
18304
|
+
var getMax = function getMax() {
|
|
18305
|
+
return getRangeAttributeValue('max', DefaultRangeMax);
|
|
18306
|
+
};
|
|
18307
|
+
|
|
18308
|
+
var getValue = function getValue() {
|
|
18309
|
+
var middleValue = (getMax() + getMin()) / 2;
|
|
18310
|
+
return getRangeAttributeValue('value', DefaultValue, middleValue);
|
|
18311
|
+
};
|
|
18312
|
+
|
|
18313
|
+
var getStep = function getStep() {
|
|
18314
|
+
return getRangeAttributeValue('step', StepNaNReplacement, StepDefaultValue);
|
|
18315
|
+
};
|
|
18316
|
+
|
|
18317
|
+
var setValue = function setValue(newValue) {
|
|
18318
|
+
if (props.disabled) return;
|
|
18319
|
+
range.value.value = newValue;
|
|
18320
|
+
internalValue.value = range.value.value;
|
|
18321
|
+
percentage.value = "".concat((internalValue.value - getMin()) * 100 / (getMax() - getMin()), "%");
|
|
18322
|
+
var rangeValue = range.value.value;
|
|
18323
|
+
emit('update:modelValue', rangeValue);
|
|
18324
|
+
emit('update:value', rangeValue);
|
|
18325
|
+
emit('change', rangeValue);
|
|
18326
|
+
};
|
|
18327
|
+
|
|
18328
|
+
var onChange = function onChange() {
|
|
18329
|
+
var newValue = internalValue.value.length ? parseFloat(internalValue.value) : getMin();
|
|
18330
|
+
setValue(newValue);
|
|
18331
|
+
};
|
|
18332
|
+
|
|
18333
|
+
var onStartDrag = function onStartDrag(ev) {
|
|
18334
|
+
document.body.addEventListener('mousemove', onDrag);
|
|
18335
|
+
document.body.addEventListener('mouseup', onStopDrag);
|
|
18336
|
+
dragStartX.value = ev.clientX;
|
|
18337
|
+
dragStartValue.value = getValue();
|
|
18338
|
+
isDragging.value = true;
|
|
18339
|
+
};
|
|
18340
|
+
|
|
18341
|
+
var onDrag = function onDrag(ev) {
|
|
18342
|
+
if (isDragging.value) {
|
|
18343
|
+
// percentage change
|
|
18344
|
+
var newValue = (ev.clientX - dragStartX.value) / track.value.offsetWidth; // uncapped new value
|
|
18345
|
+
|
|
18346
|
+
newValue = dragStartValue.value + (getMax() - getMin()) * newValue;
|
|
18347
|
+
setValue(newValue);
|
|
18348
|
+
}
|
|
18349
|
+
};
|
|
18350
|
+
|
|
18351
|
+
var onStopDrag = function onStopDrag() {
|
|
18352
|
+
isDragging.value = false;
|
|
18353
|
+
document.body.removeEventListener('mousemove', onDrag);
|
|
18354
|
+
document.body.removeEventListener('mouseup', onStopDrag);
|
|
18355
|
+
};
|
|
18356
|
+
|
|
18357
|
+
var onTrackClick = function onTrackClick(ev) {
|
|
18358
|
+
var afterAnimate = function afterAnimate(ev) {
|
|
18359
|
+
if (ev.propertyName === 'left') {
|
|
18360
|
+
animateClick.value = false;
|
|
18361
|
+
thumb.value.removeEventListener('transitionend', afterAnimate);
|
|
18362
|
+
}
|
|
18363
|
+
};
|
|
18364
|
+
|
|
18365
|
+
var newValue = ev.offsetX / track.value.offsetWidth;
|
|
18366
|
+
var min = getMin();
|
|
18367
|
+
newValue = (getMax() - min) * newValue + min;
|
|
18368
|
+
thumb.value.addEventListener('transitionend', afterAnimate);
|
|
18369
|
+
animateClick.value = true;
|
|
18370
|
+
setValue(newValue);
|
|
18371
|
+
};
|
|
18372
|
+
|
|
18373
|
+
var onUpDown = function onUpDown(ev) {
|
|
18374
|
+
var isUp = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
18375
|
+
var curValue = ev.target.type === 'number' ? parseFloat(ev.target.value) : getValue();
|
|
18376
|
+
var step = getStep();
|
|
18377
|
+
var progressValue = ev.shiftKey ? internalMultiplier.value * step : step;
|
|
18378
|
+
var direction = isUp ? 1 : -1;
|
|
18379
|
+
var newValue = curValue + progressValue * direction;
|
|
18380
|
+
setValue(newValue);
|
|
18381
|
+
};
|
|
18382
|
+
|
|
18383
|
+
var onUp = function onUp(ev) {
|
|
18384
|
+
onUpDown(ev);
|
|
18385
|
+
};
|
|
18386
|
+
|
|
18387
|
+
var onDown = function onDown(ev) {
|
|
18388
|
+
onUpDown(ev, false);
|
|
18389
|
+
};
|
|
18390
|
+
|
|
18391
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(function () {
|
|
18392
|
+
var _props$value;
|
|
18393
|
+
|
|
18394
|
+
range.value.value = (_props$value = props.value) !== null && _props$value !== void 0 ? _props$value : props.modelValue;
|
|
18395
|
+
internalValue.value = range.value.value;
|
|
18396
|
+
percentage.value = "".concat((internalValue.value - getMin()) * 100 / (getMax() - getMin()), "%");
|
|
18397
|
+
});
|
|
18398
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(function () {
|
|
18399
|
+
return props.modelValue;
|
|
18400
|
+
}, function (modelValue) {
|
|
18401
|
+
setValue(modelValue);
|
|
18402
|
+
});
|
|
18403
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(function () {
|
|
18404
|
+
return props.value;
|
|
18405
|
+
}, function (value) {
|
|
18406
|
+
setValue(value);
|
|
18407
|
+
});
|
|
18408
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(rangePropsObserver, function () {
|
|
18409
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(function () {
|
|
18410
|
+
setValue(internalValue.value);
|
|
18411
|
+
});
|
|
18412
|
+
});
|
|
18413
|
+
return function (_ctx, _cache) {
|
|
18414
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18415
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("cv-slider ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-item"))
|
|
18416
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
18417
|
+
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
18418
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--label"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--label--disabled"), __props.disabled)]),
|
|
18419
|
+
id: labelId.value
|
|
18420
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.label), 11, _hoisted_1), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vShow, __props.label]]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18421
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider-container"))
|
|
18422
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
18423
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider__range-label"))
|
|
18424
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(internalMinLabel.value), 3), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18425
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider--disabled"), __props.disabled)]),
|
|
18426
|
+
"data-slider": "",
|
|
18427
|
+
"data-slider-input-box": "#slider-input-box"
|
|
18428
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18429
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider__track")),
|
|
18430
|
+
onClick: onTrackClick,
|
|
18431
|
+
ref_key: "track",
|
|
18432
|
+
ref: track
|
|
18433
|
+
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18434
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider__filled-track")),
|
|
18435
|
+
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)("width: ".concat(percentage.value, ";"))
|
|
18436
|
+
}, null, 6), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18437
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider__thumb"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider__thumb--clicked"), animateClick.value)]),
|
|
18438
|
+
tabindex: "0",
|
|
18439
|
+
"aria-labelledby": labelId.value,
|
|
18440
|
+
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)("left: ".concat(percentage.value, ";")),
|
|
18441
|
+
ref_key: "thumb",
|
|
18442
|
+
ref: thumb,
|
|
18443
|
+
onKeydown: [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(onUp, ["prevent"]), ["up", "right"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(onDown, ["prevent"]), ["down", "left"])],
|
|
18444
|
+
onMousedown: onStartDrag
|
|
18445
|
+
}, null, 46, _hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", {
|
|
18446
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
18447
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider__input")),
|
|
18448
|
+
type: "range",
|
|
18449
|
+
step: __props.step,
|
|
18450
|
+
min: __props.min,
|
|
18451
|
+
max: __props.max,
|
|
18452
|
+
ref_key: "range",
|
|
18453
|
+
ref: range
|
|
18454
|
+
}, null, 10, _hoisted_3)], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
18455
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider__range-label"))
|
|
18456
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(internalMaxLabel.value), 3), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", {
|
|
18457
|
+
type: "string",
|
|
18458
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--text-input ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider-text-input"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--text-input--light"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isLight))]),
|
|
18459
|
+
placeholder: __props.min,
|
|
18460
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
|
|
18461
|
+
return internalValue.value = $event;
|
|
18462
|
+
}),
|
|
18463
|
+
onChange: onChange,
|
|
18464
|
+
ref: "inputBox",
|
|
18465
|
+
onKeydown: [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(onUp, ["prevent"]), ["up"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(onDown, ["prevent"]), ["down"])],
|
|
18466
|
+
disabled: __props.disabled
|
|
18467
|
+
}, null, 42, _hoisted_4), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vModelText, internalValue.value]])], 2)], 2);
|
|
18468
|
+
};
|
|
18469
|
+
}
|
|
18470
|
+
});
|
|
18471
|
+
;// CONCATENATED MODULE: ./src/components/CvSlider/CvSlider.vue?vue&type=script&setup=true&lang=js
|
|
18472
|
+
|
|
18473
|
+
;// CONCATENATED MODULE: ./src/components/CvSlider/CvSlider.vue
|
|
18474
|
+
|
|
18475
|
+
|
|
18476
|
+
|
|
18477
|
+
const __exports__ = CvSlidervue_type_script_setup_true_lang_js;
|
|
18478
|
+
|
|
18479
|
+
/* harmony default export */ var CvSlider = (__exports__);
|
|
18480
|
+
|
|
18481
|
+
/***/ }),
|
|
18482
|
+
|
|
18483
|
+
/***/ 1789:
|
|
18484
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18485
|
+
|
|
18486
|
+
"use strict";
|
|
18487
|
+
// ESM COMPAT FLAG
|
|
18488
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18489
|
+
|
|
18490
|
+
// EXPORTS
|
|
18491
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18492
|
+
"default": function() { return /* binding */ CvSliderSkeleton; }
|
|
18493
|
+
});
|
|
18494
|
+
|
|
18495
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
18496
|
+
var es_array_concat = __webpack_require__(2222);
|
|
18497
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18498
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
18499
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
18500
|
+
var settings = __webpack_require__(606);
|
|
18501
|
+
;// 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/CvSlider/CvSliderSkeleton.vue?vue&type=script&setup=true&lang=js
|
|
18502
|
+
|
|
18503
|
+
|
|
18504
|
+
|
|
18505
|
+
/* harmony default export */ var CvSliderSkeletonvue_type_script_setup_true_lang_js = ({
|
|
18506
|
+
__name: 'CvSliderSkeleton',
|
|
18507
|
+
setup: function setup(__props) {
|
|
18508
|
+
return function (_ctx, _cache) {
|
|
18509
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18510
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("cv-slider ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-item"))
|
|
18511
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
18512
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--label ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--skeleton"))
|
|
18513
|
+
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18514
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider-container ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--skeleton"))
|
|
18515
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
18516
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider__range-label"))
|
|
18517
|
+
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18518
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider"))
|
|
18519
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18520
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider__track"))
|
|
18521
|
+
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18522
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider__filled-track"))
|
|
18523
|
+
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18524
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider__thumb"))
|
|
18525
|
+
}, null, 2)], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
18526
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider__range-label"))
|
|
18527
|
+
}, null, 2)], 2)], 2);
|
|
18528
|
+
};
|
|
18529
|
+
}
|
|
18530
|
+
});
|
|
18531
|
+
;// CONCATENATED MODULE: ./src/components/CvSlider/CvSliderSkeleton.vue?vue&type=script&setup=true&lang=js
|
|
18532
|
+
|
|
18533
|
+
;// CONCATENATED MODULE: ./src/components/CvSlider/CvSliderSkeleton.vue
|
|
18534
|
+
|
|
18535
|
+
|
|
18536
|
+
|
|
18537
|
+
const __exports__ = CvSliderSkeletonvue_type_script_setup_true_lang_js;
|
|
18538
|
+
|
|
18539
|
+
/* harmony default export */ var CvSliderSkeleton = (__exports__);
|
|
18540
|
+
|
|
18541
|
+
/***/ }),
|
|
18542
|
+
|
|
18543
|
+
/***/ 5462:
|
|
18544
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18545
|
+
|
|
18546
|
+
"use strict";
|
|
18547
|
+
// ESM COMPAT FLAG
|
|
18548
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18549
|
+
|
|
18550
|
+
// EXPORTS
|
|
18551
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18552
|
+
"default": function() { return /* binding */ CvStructuredList; }
|
|
18553
|
+
});
|
|
18554
|
+
|
|
18555
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
18556
|
+
var defineProperty = __webpack_require__(9130);
|
|
18557
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
18558
|
+
var es_array_concat = __webpack_require__(2222);
|
|
18559
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18560
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
18561
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
18562
|
+
var settings = __webpack_require__(606);
|
|
18563
|
+
;// 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/CvStructuredList/CvStructuredList.vue?vue&type=script&setup=true&lang=js
|
|
18564
|
+
|
|
18565
|
+
|
|
18566
|
+
|
|
18567
|
+
var _hoisted_1 = ["data-structured-list"];
|
|
18568
|
+
|
|
18569
|
+
|
|
18570
|
+
/* harmony default export */ var CvStructuredListvue_type_script_setup_true_lang_js = ({
|
|
18571
|
+
__name: 'CvStructuredList',
|
|
18572
|
+
props: {
|
|
18573
|
+
selectable: Boolean,
|
|
18574
|
+
condensed: Boolean
|
|
18575
|
+
},
|
|
18576
|
+
emits: ['change'],
|
|
18577
|
+
setup: function setup(__props, _ref) {
|
|
18578
|
+
var emit = _ref.emit;
|
|
18579
|
+
var props = __props;
|
|
18580
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('change', function (val) {
|
|
18581
|
+
emit('change', val);
|
|
18582
|
+
});
|
|
18583
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('selectable', props.selectable);
|
|
18584
|
+
return function (_ctx, _cache) {
|
|
18585
|
+
var _ref2;
|
|
18586
|
+
|
|
18587
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18588
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list"), (_ref2 = {}, (0,defineProperty/* default */.Z)(_ref2, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list--selection"), __props.selectable), (0,defineProperty/* default */.Z)(_ref2, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list--condensed"), __props.condensed), _ref2)]),
|
|
18589
|
+
"data-structured-list": __props.selectable
|
|
18590
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18591
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list-thead"))
|
|
18592
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18593
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list-row ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list-row--header-row"))
|
|
18594
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "headings"), __props.selectable ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18595
|
+
key: 0,
|
|
18596
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list-th"))
|
|
18597
|
+
}, null, 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18598
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list-tbody"))
|
|
18599
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "items")], 2)], 10, _hoisted_1);
|
|
18600
|
+
};
|
|
18601
|
+
}
|
|
18602
|
+
});
|
|
18603
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredList.vue?vue&type=script&setup=true&lang=js
|
|
18604
|
+
|
|
18605
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredList.vue
|
|
18606
|
+
|
|
18607
|
+
|
|
18608
|
+
|
|
18609
|
+
const __exports__ = CvStructuredListvue_type_script_setup_true_lang_js;
|
|
18610
|
+
|
|
18611
|
+
/* harmony default export */ var CvStructuredList = (__exports__);
|
|
18612
|
+
|
|
18613
|
+
/***/ }),
|
|
18614
|
+
|
|
18615
|
+
/***/ 3989:
|
|
18616
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18617
|
+
|
|
18618
|
+
"use strict";
|
|
18619
|
+
// ESM COMPAT FLAG
|
|
18620
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18621
|
+
|
|
18622
|
+
// EXPORTS
|
|
18623
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18624
|
+
"default": function() { return /* binding */ CvStructuredListData; }
|
|
18625
|
+
});
|
|
18626
|
+
|
|
18627
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
18628
|
+
var defineProperty = __webpack_require__(9130);
|
|
18629
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18630
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
18631
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
18632
|
+
var settings = __webpack_require__(606);
|
|
18633
|
+
;// 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/CvStructuredList/CvStructuredListData.vue?vue&type=script&setup=true&lang=js
|
|
18634
|
+
|
|
18635
|
+
|
|
18636
|
+
|
|
18637
|
+
/* harmony default export */ var CvStructuredListDatavue_type_script_setup_true_lang_js = ({
|
|
18638
|
+
__name: 'CvStructuredListData',
|
|
18639
|
+
props: {
|
|
18640
|
+
noWrap: Boolean
|
|
18641
|
+
},
|
|
18642
|
+
setup: function setup(__props) {
|
|
18643
|
+
return function (_ctx, _cache) {
|
|
18644
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18645
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["cv-structured-list-data ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list-td"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list-content--nowrap"), __props.noWrap)])
|
|
18646
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2);
|
|
18647
|
+
};
|
|
18648
|
+
}
|
|
18649
|
+
});
|
|
18650
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListData.vue?vue&type=script&setup=true&lang=js
|
|
18651
|
+
|
|
18652
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListData.vue
|
|
18653
|
+
|
|
18654
|
+
|
|
18655
|
+
|
|
18656
|
+
const __exports__ = CvStructuredListDatavue_type_script_setup_true_lang_js;
|
|
18657
|
+
|
|
18658
|
+
/* harmony default export */ var CvStructuredListData = (__exports__);
|
|
18659
|
+
|
|
18660
|
+
/***/ }),
|
|
18661
|
+
|
|
18662
|
+
/***/ 1377:
|
|
18663
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18664
|
+
|
|
18665
|
+
"use strict";
|
|
18666
|
+
// ESM COMPAT FLAG
|
|
18667
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18668
|
+
|
|
18669
|
+
// EXPORTS
|
|
18670
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18671
|
+
"default": function() { return /* binding */ CvStructuredListHeading; }
|
|
18672
|
+
});
|
|
18673
|
+
|
|
18674
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18675
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
18676
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
18677
|
+
var settings = __webpack_require__(606);
|
|
18678
|
+
;// 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/CvStructuredList/CvStructuredListHeading.vue?vue&type=script&setup=true&lang=js
|
|
18679
|
+
|
|
18680
|
+
|
|
18681
|
+
/* harmony default export */ var CvStructuredListHeadingvue_type_script_setup_true_lang_js = ({
|
|
18682
|
+
__name: 'CvStructuredListHeading',
|
|
18683
|
+
setup: function setup(__props) {
|
|
18684
|
+
return function (_ctx, _cache) {
|
|
18685
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18686
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("cv-structured-list-heading ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list-th"))
|
|
18687
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2);
|
|
18688
|
+
};
|
|
18689
|
+
}
|
|
18690
|
+
});
|
|
18691
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListHeading.vue?vue&type=script&setup=true&lang=js
|
|
18692
|
+
|
|
18693
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListHeading.vue
|
|
18694
|
+
|
|
18695
|
+
|
|
18696
|
+
|
|
18697
|
+
const __exports__ = CvStructuredListHeadingvue_type_script_setup_true_lang_js;
|
|
18698
|
+
|
|
18699
|
+
/* harmony default export */ var CvStructuredListHeading = (__exports__);
|
|
18700
|
+
|
|
18701
|
+
/***/ }),
|
|
18702
|
+
|
|
18703
|
+
/***/ 6675:
|
|
18704
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18705
|
+
|
|
18706
|
+
"use strict";
|
|
18707
|
+
// ESM COMPAT FLAG
|
|
18708
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18709
|
+
|
|
18710
|
+
// EXPORTS
|
|
18711
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18712
|
+
"default": function() { return /* binding */ CvStructuredListItem; }
|
|
18713
|
+
});
|
|
18714
|
+
|
|
18715
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
18716
|
+
var es_object_assign = __webpack_require__(9601);
|
|
18717
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18718
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
18719
|
+
// EXTERNAL MODULE: ./src/components/CvStructuredList/CvStructuredListItemStandard.vue + 2 modules
|
|
18720
|
+
var CvStructuredListItemStandard = __webpack_require__(7690);
|
|
18721
|
+
// EXTERNAL MODULE: ./src/components/CvStructuredList/CvStructuredListItemSelectable.vue + 2 modules
|
|
18722
|
+
var CvStructuredListItemSelectable = __webpack_require__(5572);
|
|
18723
|
+
;// 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/CvStructuredList/CvStructuredListItem.vue?vue&type=script&setup=true&lang=js
|
|
18724
|
+
|
|
18725
|
+
|
|
18726
|
+
|
|
18727
|
+
|
|
18728
|
+
|
|
18729
|
+
/* harmony default export */ var CvStructuredListItemvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign({
|
|
18730
|
+
inheritAttrs: false
|
|
18731
|
+
}, {
|
|
18732
|
+
__name: 'CvStructuredListItem',
|
|
18733
|
+
props: {
|
|
18734
|
+
modelValue: {
|
|
18735
|
+
type: String,
|
|
18736
|
+
default: undefined
|
|
18737
|
+
},
|
|
18738
|
+
value: {
|
|
18739
|
+
type: String,
|
|
18740
|
+
default: undefined
|
|
18741
|
+
}
|
|
18742
|
+
},
|
|
18743
|
+
emits: ['change'],
|
|
18744
|
+
setup: function setup(__props, _ref) {
|
|
18745
|
+
var emit = _ref.emit;
|
|
18746
|
+
var selectable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('selectable');
|
|
18747
|
+
var change = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('change');
|
|
18748
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('onRadioItemChange', function (clickedItemCvId) {
|
|
18749
|
+
emit('change', clickedItemCvId);
|
|
18750
|
+
change(clickedItemCvId); //emit to parent
|
|
18751
|
+
});
|
|
18752
|
+
var tagType = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
18753
|
+
return selectable ? CvStructuredListItemSelectable["default"] : CvStructuredListItemStandard["default"];
|
|
18754
|
+
});
|
|
18755
|
+
return function (_ctx, _cache) {
|
|
18756
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveDynamicComponent)(tagType.value), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)(_ctx.$attrs, {
|
|
18757
|
+
class: "cv-structured-list-item",
|
|
18758
|
+
value: __props.value,
|
|
18759
|
+
modelValue: __props.modelValue
|
|
18760
|
+
}), {
|
|
18761
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
18762
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")];
|
|
18763
|
+
}),
|
|
18764
|
+
_: 3
|
|
18765
|
+
}, 16, ["value", "modelValue"]);
|
|
18766
|
+
};
|
|
18767
|
+
}
|
|
18768
|
+
}));
|
|
18769
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListItem.vue?vue&type=script&setup=true&lang=js
|
|
18770
|
+
|
|
18771
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListItem.vue
|
|
18772
|
+
|
|
18773
|
+
|
|
18774
|
+
|
|
18775
|
+
const __exports__ = CvStructuredListItemvue_type_script_setup_true_lang_js;
|
|
18776
|
+
|
|
18777
|
+
/* harmony default export */ var CvStructuredListItem = (__exports__);
|
|
18778
|
+
|
|
18779
|
+
/***/ }),
|
|
18780
|
+
|
|
18781
|
+
/***/ 5572:
|
|
18782
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18783
|
+
|
|
18784
|
+
"use strict";
|
|
18785
|
+
// ESM COMPAT FLAG
|
|
18786
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18787
|
+
|
|
18788
|
+
// EXPORTS
|
|
18789
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18790
|
+
"default": function() { return /* binding */ CvStructuredListItemSelectable; }
|
|
18791
|
+
});
|
|
18792
|
+
|
|
18793
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
18794
|
+
var objectSpread2 = __webpack_require__(5145);
|
|
18795
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
18796
|
+
var es_object_assign = __webpack_require__(9601);
|
|
18797
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18798
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
18799
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
18800
|
+
var settings = __webpack_require__(606);
|
|
18801
|
+
// EXTERNAL MODULE: ./src/use/index.js + 2 modules
|
|
18802
|
+
var use = __webpack_require__(2442);
|
|
18803
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/checkmark--filled/16.js
|
|
18804
|
+
var _16 = __webpack_require__(5835);
|
|
18805
|
+
;// 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/CvStructuredList/CvStructuredListItemSelectable.vue?vue&type=script&setup=true&lang=js
|
|
18806
|
+
|
|
18807
|
+
|
|
18808
|
+
|
|
18809
|
+
var _hoisted_1 = ["for", "aria-label"];
|
|
18810
|
+
var _hoisted_2 = ["id", "checked", "value"];
|
|
18811
|
+
|
|
18812
|
+
|
|
18813
|
+
|
|
18814
|
+
/* harmony default export */ var CvStructuredListItemSelectablevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign({
|
|
18815
|
+
inheritAttrs: false
|
|
18816
|
+
}, {
|
|
18817
|
+
__name: 'CvStructuredListItemSelectable',
|
|
18818
|
+
props: (0,objectSpread2/* default */.Z)({
|
|
18819
|
+
label: {
|
|
18820
|
+
type: String,
|
|
18821
|
+
default: undefined
|
|
18822
|
+
},
|
|
18823
|
+
modelValue: {
|
|
18824
|
+
type: String,
|
|
18825
|
+
default: undefined
|
|
18826
|
+
},
|
|
18827
|
+
value: {
|
|
18828
|
+
type: String,
|
|
18829
|
+
default: undefined
|
|
18830
|
+
}
|
|
18831
|
+
}, use/* propsCvId */.rz),
|
|
18832
|
+
emits: ['update:modelValue', 'change'],
|
|
18833
|
+
setup: function setup(__props, _ref) {
|
|
18834
|
+
var emit = _ref.emit;
|
|
18835
|
+
var props = __props;
|
|
18836
|
+
var cvId = (0,use/* useCvId */.lX)(props);
|
|
18837
|
+
|
|
18838
|
+
var _useRadio = (0,use/* useRadio */.xL)(props, emit),
|
|
18839
|
+
isChecked = _useRadio.isChecked,
|
|
18840
|
+
onChange = _useRadio.onChange;
|
|
18841
|
+
|
|
18842
|
+
return function (_ctx, _cache) {
|
|
18843
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("label", {
|
|
18844
|
+
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
18845
|
+
"aria-label": __props.label,
|
|
18846
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["cv-structured-list-item--selectable ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list-row"), {
|
|
18847
|
+
' ${carbonPrefix}--structured-list-row--selected': (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isChecked)
|
|
18848
|
+
}]),
|
|
18849
|
+
tabindex: "0"
|
|
18850
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)(_ctx.$attrs, {
|
|
18851
|
+
tabindex: "-1",
|
|
18852
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
18853
|
+
class: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list-input"),
|
|
18854
|
+
checked: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isChecked),
|
|
18855
|
+
value: __props.value,
|
|
18856
|
+
type: "radio",
|
|
18857
|
+
onChange: _cache[0] || (_cache[0] = function () {
|
|
18858
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(onChange) && (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(onChange).apply(void 0, arguments);
|
|
18859
|
+
})
|
|
18860
|
+
}), null, 16, _hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18861
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list-td"))
|
|
18862
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(_16/* default */.Z), {
|
|
18863
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list-svg"))
|
|
18864
|
+
}, null, 8, ["class"])], 2)], 10, _hoisted_1);
|
|
18865
|
+
};
|
|
18866
|
+
}
|
|
18867
|
+
}));
|
|
18868
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListItemSelectable.vue?vue&type=script&setup=true&lang=js
|
|
18869
|
+
|
|
18870
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListItemSelectable.vue
|
|
18871
|
+
|
|
18872
|
+
|
|
18873
|
+
|
|
18874
|
+
const __exports__ = CvStructuredListItemSelectablevue_type_script_setup_true_lang_js;
|
|
18875
|
+
|
|
18876
|
+
/* harmony default export */ var CvStructuredListItemSelectable = (__exports__);
|
|
18877
|
+
|
|
18878
|
+
/***/ }),
|
|
18879
|
+
|
|
18880
|
+
/***/ 7690:
|
|
18881
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18882
|
+
|
|
18883
|
+
"use strict";
|
|
18884
|
+
// ESM COMPAT FLAG
|
|
18885
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18886
|
+
|
|
18887
|
+
// EXPORTS
|
|
18888
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18889
|
+
"default": function() { return /* binding */ CvStructuredListItemStandard; }
|
|
18890
|
+
});
|
|
18891
|
+
|
|
18892
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18893
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
18894
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
18895
|
+
var settings = __webpack_require__(606);
|
|
18896
|
+
;// 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/CvStructuredList/CvStructuredListItemStandard.vue?vue&type=script&setup=true&lang=js
|
|
18897
|
+
|
|
18898
|
+
|
|
18899
|
+
/* harmony default export */ var CvStructuredListItemStandardvue_type_script_setup_true_lang_js = ({
|
|
18900
|
+
__name: 'CvStructuredListItemStandard',
|
|
18901
|
+
setup: function setup(__props) {
|
|
18902
|
+
return function (_ctx, _cache) {
|
|
18903
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18904
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("cv-structured-list-item--standard ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list-row"))
|
|
18905
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2);
|
|
18906
|
+
};
|
|
18907
|
+
}
|
|
18908
|
+
});
|
|
18909
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListItemStandard.vue?vue&type=script&setup=true&lang=js
|
|
18910
|
+
|
|
18911
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListItemStandard.vue
|
|
18912
|
+
|
|
18913
|
+
|
|
18914
|
+
|
|
18915
|
+
const __exports__ = CvStructuredListItemStandardvue_type_script_setup_true_lang_js;
|
|
18916
|
+
|
|
18917
|
+
/* harmony default export */ var CvStructuredListItemStandard = (__exports__);
|
|
18918
|
+
|
|
18919
|
+
/***/ }),
|
|
18920
|
+
|
|
16342
18921
|
/***/ 9735:
|
|
16343
18922
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16344
18923
|
|
|
@@ -17487,6 +20066,54 @@ const __exports__ = CvTextAreavue_type_script_setup_true_lang_js;
|
|
|
17487
20066
|
|
|
17488
20067
|
/***/ }),
|
|
17489
20068
|
|
|
20069
|
+
/***/ 5136:
|
|
20070
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20071
|
+
|
|
20072
|
+
"use strict";
|
|
20073
|
+
// ESM COMPAT FLAG
|
|
20074
|
+
__webpack_require__.r(__webpack_exports__);
|
|
20075
|
+
|
|
20076
|
+
// EXPORTS
|
|
20077
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
20078
|
+
"default": function() { return /* binding */ CvTextAreaSkeleton; }
|
|
20079
|
+
});
|
|
20080
|
+
|
|
20081
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
20082
|
+
var es_array_concat = __webpack_require__(2222);
|
|
20083
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
20084
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
20085
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
20086
|
+
var settings = __webpack_require__(606);
|
|
20087
|
+
;// 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/CvTextArea/CvTextAreaSkeleton.vue?vue&type=script&setup=true&lang=js
|
|
20088
|
+
|
|
20089
|
+
|
|
20090
|
+
|
|
20091
|
+
/* harmony default export */ var CvTextAreaSkeletonvue_type_script_setup_true_lang_js = ({
|
|
20092
|
+
__name: 'CvTextAreaSkeleton',
|
|
20093
|
+
setup: function setup(__props) {
|
|
20094
|
+
return function (_ctx, _cache) {
|
|
20095
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
20096
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-item"))
|
|
20097
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
20098
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--label ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--skeleton"))
|
|
20099
|
+
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
20100
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--text-area ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--skeleton"))
|
|
20101
|
+
}, null, 2)], 2);
|
|
20102
|
+
};
|
|
20103
|
+
}
|
|
20104
|
+
});
|
|
20105
|
+
;// CONCATENATED MODULE: ./src/components/CvTextArea/CvTextAreaSkeleton.vue?vue&type=script&setup=true&lang=js
|
|
20106
|
+
|
|
20107
|
+
;// CONCATENATED MODULE: ./src/components/CvTextArea/CvTextAreaSkeleton.vue
|
|
20108
|
+
|
|
20109
|
+
|
|
20110
|
+
|
|
20111
|
+
const __exports__ = CvTextAreaSkeletonvue_type_script_setup_true_lang_js;
|
|
20112
|
+
|
|
20113
|
+
/* harmony default export */ var CvTextAreaSkeleton = (__exports__);
|
|
20114
|
+
|
|
20115
|
+
/***/ }),
|
|
20116
|
+
|
|
17490
20117
|
/***/ 6123:
|
|
17491
20118
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17492
20119
|
|
|
@@ -17832,8 +20459,8 @@ var cvTheme = __webpack_require__(3610);
|
|
|
17832
20459
|
var CvTileStandard = __webpack_require__(2245);
|
|
17833
20460
|
// EXTERNAL MODULE: ./src/components/CvTile/CvTileClickable.vue + 2 modules
|
|
17834
20461
|
var CvTileClickable = __webpack_require__(8930);
|
|
17835
|
-
// EXTERNAL MODULE: ./src/components/CvTile/CvTileSelectable.vue +
|
|
17836
|
-
var CvTileSelectable = __webpack_require__(
|
|
20462
|
+
// EXTERNAL MODULE: ./src/components/CvTile/CvTileSelectable.vue + 2 modules
|
|
20463
|
+
var CvTileSelectable = __webpack_require__(327);
|
|
17837
20464
|
// EXTERNAL MODULE: ./src/components/CvTile/CvTileExpandable.vue + 2 modules
|
|
17838
20465
|
var CvTileExpandable = __webpack_require__(5248);
|
|
17839
20466
|
;// 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/CvTile/CvTile.vue?vue&type=script&setup=true&lang=js
|
|
@@ -18115,7 +20742,7 @@ const __exports__ = CvTileExpandablevue_type_script_setup_true_lang_js;
|
|
|
18115
20742
|
|
|
18116
20743
|
/***/ }),
|
|
18117
20744
|
|
|
18118
|
-
/***/
|
|
20745
|
+
/***/ 327:
|
|
18119
20746
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18120
20747
|
|
|
18121
20748
|
"use strict";
|
|
@@ -18139,43 +20766,8 @@ var settings = __webpack_require__(606);
|
|
|
18139
20766
|
var cvCheck = __webpack_require__(9019);
|
|
18140
20767
|
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
18141
20768
|
var cvId = __webpack_require__(1853);
|
|
18142
|
-
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/
|
|
18143
|
-
var
|
|
18144
|
-
;// CONCATENATED MODULE: ./node_modules/@carbon/icons-vue/es/checkmark--filled/16.js
|
|
18145
|
-
/**
|
|
18146
|
-
* Copyright IBM Corp. 2019, 2020
|
|
18147
|
-
*
|
|
18148
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
18149
|
-
* LICENSE file in the root directory of this source tree.
|
|
18150
|
-
*
|
|
18151
|
-
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
18152
|
-
*/
|
|
18153
|
-
|
|
18154
|
-
|
|
18155
|
-
|
|
18156
|
-
|
|
18157
|
-
var CheckmarkFilled16 = (0,utils_148d018d.c)(CheckmarkFilled16, {
|
|
18158
|
-
"xmlns": "http://www.w3.org/2000/svg",
|
|
18159
|
-
"viewBox": "0 0 16 16",
|
|
18160
|
-
"fill": "currentColor",
|
|
18161
|
-
"width": 16,
|
|
18162
|
-
"height": 16
|
|
18163
|
-
}, [{
|
|
18164
|
-
"elem": "path",
|
|
18165
|
-
"attrs": {
|
|
18166
|
-
"d": "M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"
|
|
18167
|
-
}
|
|
18168
|
-
}, {
|
|
18169
|
-
"elem": "path",
|
|
18170
|
-
"attrs": {
|
|
18171
|
-
"d": "M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z",
|
|
18172
|
-
"data-icon-path": "inner-path",
|
|
18173
|
-
"opacity": "0"
|
|
18174
|
-
}
|
|
18175
|
-
}]);
|
|
18176
|
-
|
|
18177
|
-
|
|
18178
|
-
|
|
20769
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/checkmark--filled/16.js
|
|
20770
|
+
var _16 = __webpack_require__(5835);
|
|
18179
20771
|
;// 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/CvTile/CvTileSelectable.vue?vue&type=script&setup=true&lang=js
|
|
18180
20772
|
|
|
18181
20773
|
|
|
@@ -18227,7 +20819,7 @@ var _hoisted_2 = ["id", "checked", "aria-checked"];
|
|
|
18227
20819
|
})
|
|
18228
20820
|
}), null, 16, _hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18229
20821
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tile__checkmark"))
|
|
18230
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(
|
|
20822
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(_16/* default */.Z))], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18231
20823
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tile-content"))
|
|
18232
20824
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2)], 10, _hoisted_1);
|
|
18233
20825
|
};
|
|
@@ -18282,6 +20874,353 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(script, [['rend
|
|
|
18282
20874
|
|
|
18283
20875
|
/***/ }),
|
|
18284
20876
|
|
|
20877
|
+
/***/ 761:
|
|
20878
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20879
|
+
|
|
20880
|
+
"use strict";
|
|
20881
|
+
// ESM COMPAT FLAG
|
|
20882
|
+
__webpack_require__.r(__webpack_exports__);
|
|
20883
|
+
|
|
20884
|
+
// EXPORTS
|
|
20885
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
20886
|
+
"default": function() { return /* binding */ CvTimePicker; }
|
|
20887
|
+
});
|
|
20888
|
+
|
|
20889
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
20890
|
+
var defineProperty = __webpack_require__(9130);
|
|
20891
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
20892
|
+
var objectSpread2 = __webpack_require__(5145);
|
|
20893
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
20894
|
+
var es_object_assign = __webpack_require__(9601);
|
|
20895
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
20896
|
+
var es_array_includes = __webpack_require__(6699);
|
|
20897
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
20898
|
+
var es_string_includes = __webpack_require__(2023);
|
|
20899
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
20900
|
+
var es_array_find = __webpack_require__(9826);
|
|
20901
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
20902
|
+
var es_object_to_string = __webpack_require__(1539);
|
|
20903
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
20904
|
+
var es_array_concat = __webpack_require__(2222);
|
|
20905
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
20906
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
20907
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
20908
|
+
var settings = __webpack_require__(606);
|
|
20909
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
20910
|
+
var cvId = __webpack_require__(1853);
|
|
20911
|
+
// EXTERNAL MODULE: ./src/use/cvTheme.js
|
|
20912
|
+
var cvTheme = __webpack_require__(3610);
|
|
20913
|
+
// EXTERNAL MODULE: ./src/components/CvSelect/CvSelect.vue + 2 modules
|
|
20914
|
+
var CvSelect = __webpack_require__(6661);
|
|
20915
|
+
// EXTERNAL MODULE: ./src/components/CvSelect/CvSelectOption.vue + 2 modules
|
|
20916
|
+
var CvSelectOption = __webpack_require__(6585);
|
|
20917
|
+
;// CONCATENATED MODULE: ./src/components/CvTimePicker/index.js
|
|
20918
|
+
|
|
20919
|
+
var FIELD_SMALL = 'sm';
|
|
20920
|
+
var FIELD_MEDIUM = 'md';
|
|
20921
|
+
var FIELD_LARGE = 'lg';
|
|
20922
|
+
var TIME_PICKER_SIZES = [FIELD_SMALL, FIELD_MEDIUM, FIELD_LARGE];
|
|
20923
|
+
var TIME_PICKER_AM = 'AM';
|
|
20924
|
+
var TIME_PICKER_PM = 'PM';
|
|
20925
|
+
var TIME_PICKER_24 = '24';
|
|
20926
|
+
var TIME_PICKER_HOURS = [TIME_PICKER_AM, TIME_PICKER_PM, TIME_PICKER_24];
|
|
20927
|
+
|
|
20928
|
+
;// 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/CvTimePicker/CvTimePicker.vue?vue&type=script&setup=true&lang=js
|
|
20929
|
+
|
|
20930
|
+
|
|
20931
|
+
|
|
20932
|
+
|
|
20933
|
+
|
|
20934
|
+
|
|
20935
|
+
|
|
20936
|
+
|
|
20937
|
+
|
|
20938
|
+
var _hoisted_1 = ["data-invalid"];
|
|
20939
|
+
var _hoisted_2 = ["for"];
|
|
20940
|
+
var _hoisted_3 = ["id", "pattern", "placeholder", "maxlength", "value", "disabled"];
|
|
20941
|
+
var _hoisted_4 = {
|
|
20942
|
+
key: 1
|
|
20943
|
+
};
|
|
20944
|
+
|
|
20945
|
+
|
|
20946
|
+
|
|
20947
|
+
|
|
20948
|
+
|
|
20949
|
+
|
|
20950
|
+
|
|
20951
|
+
/* harmony default export */ var CvTimePickervue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign({
|
|
20952
|
+
inheritAttrs: false
|
|
20953
|
+
}, {
|
|
20954
|
+
__name: 'CvTimePicker',
|
|
20955
|
+
props: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
|
|
20956
|
+
/**
|
|
20957
|
+
* Initial value for the AM/PM `<cv-select>`. If set to `24` the `<cv-select>` is not included.
|
|
20958
|
+
*/
|
|
20959
|
+
ampm: {
|
|
20960
|
+
type: String,
|
|
20961
|
+
default: TIME_PICKER_AM,
|
|
20962
|
+
validator: function validator(value) {
|
|
20963
|
+
return TIME_PICKER_HOURS.includes(value);
|
|
20964
|
+
}
|
|
20965
|
+
},
|
|
20966
|
+
|
|
20967
|
+
/**
|
|
20968
|
+
* Label for the AM/PM `<cv-select>`
|
|
20969
|
+
*/
|
|
20970
|
+
ampmSelectLabel: {
|
|
20971
|
+
type: String,
|
|
20972
|
+
default: 'Select AM/PM'
|
|
20973
|
+
},
|
|
20974
|
+
|
|
20975
|
+
/**
|
|
20976
|
+
* Specify whether the `<input>` should be disabled
|
|
20977
|
+
*/
|
|
20978
|
+
disabled: {
|
|
20979
|
+
type: Boolean,
|
|
20980
|
+
default: false
|
|
20981
|
+
},
|
|
20982
|
+
|
|
20983
|
+
/**
|
|
20984
|
+
* Provide the text that is displayed when the control is in an invalid state
|
|
20985
|
+
*/
|
|
20986
|
+
invalidMessage: {
|
|
20987
|
+
type: String,
|
|
20988
|
+
default: undefined
|
|
20989
|
+
},
|
|
20990
|
+
|
|
20991
|
+
/**
|
|
20992
|
+
* Label for the time `<input>`
|
|
20993
|
+
*/
|
|
20994
|
+
label: {
|
|
20995
|
+
type: String,
|
|
20996
|
+
default: 'Select a time'
|
|
20997
|
+
},
|
|
20998
|
+
|
|
20999
|
+
/**
|
|
21000
|
+
* Specify the regular expression working as the [pattern](https://www.w3schools.com/tags/att_input_pattern.asp) of the time string in `<input>`.
|
|
21001
|
+
*/
|
|
21002
|
+
pattern: {
|
|
21003
|
+
type: String,
|
|
21004
|
+
default: '([01][0-9]:[0-6][0-9])'
|
|
21005
|
+
},
|
|
21006
|
+
|
|
21007
|
+
/**
|
|
21008
|
+
* Specify the placeholder attribute for the <input>
|
|
21009
|
+
*/
|
|
21010
|
+
placeholder: {
|
|
21011
|
+
type: String,
|
|
21012
|
+
default: 'hh:mm'
|
|
21013
|
+
},
|
|
21014
|
+
|
|
21015
|
+
/**
|
|
21016
|
+
* Specify the initial value of the `<input>`
|
|
21017
|
+
*/
|
|
21018
|
+
time: {
|
|
21019
|
+
type: String,
|
|
21020
|
+
default: undefined
|
|
21021
|
+
},
|
|
21022
|
+
|
|
21023
|
+
/**
|
|
21024
|
+
* Specify the initial value of the `<cv-select>` for the timezone
|
|
21025
|
+
*/
|
|
21026
|
+
timezone: {
|
|
21027
|
+
type: String,
|
|
21028
|
+
default: undefined
|
|
21029
|
+
},
|
|
21030
|
+
|
|
21031
|
+
/**
|
|
21032
|
+
* List of timezones to display
|
|
21033
|
+
* @type {Array<{value: string, label:string}>}
|
|
21034
|
+
*/
|
|
21035
|
+
timezones: {
|
|
21036
|
+
type: Array,
|
|
21037
|
+
default: function _default() {
|
|
21038
|
+
return [];
|
|
21039
|
+
}
|
|
21040
|
+
},
|
|
21041
|
+
|
|
21042
|
+
/**
|
|
21043
|
+
* Specify the label of the `<cv-select>` for the timezone. Label is hidden but text will be read by a screen reader when visiting this control.
|
|
21044
|
+
*/
|
|
21045
|
+
timezonesSelectLabel: {
|
|
21046
|
+
type: String,
|
|
21047
|
+
default: 'Select time zone'
|
|
21048
|
+
},
|
|
21049
|
+
|
|
21050
|
+
/**
|
|
21051
|
+
* Specify the size of the Time Picker.
|
|
21052
|
+
*/
|
|
21053
|
+
fieldSize: {
|
|
21054
|
+
type: String,
|
|
21055
|
+
default: FIELD_MEDIUM,
|
|
21056
|
+
validator: function validator(value) {
|
|
21057
|
+
return TIME_PICKER_SIZES.includes(value);
|
|
21058
|
+
}
|
|
21059
|
+
}
|
|
21060
|
+
}, cvId/* props */.N), cvTheme/* props */.N),
|
|
21061
|
+
emits: ['change', 'update:ampm', 'update:timezone', 'update:time'],
|
|
21062
|
+
setup: function setup(__props, _ref) {
|
|
21063
|
+
var emit = _ref.emit;
|
|
21064
|
+
var props = __props;
|
|
21065
|
+
var uid = (0,cvId/* useCvId */.l)(props, true);
|
|
21066
|
+
var isLight = (0,cvTheme/* useIsLight */.h)(props);
|
|
21067
|
+
var isInvalid = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
21068
|
+
var slots = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useSlots)();
|
|
21069
|
+
|
|
21070
|
+
function checkSlots() {
|
|
21071
|
+
// NOTE: slots is not reactive so needs to be managed on updated
|
|
21072
|
+
isInvalid.value = !!(slots['invalid-message'] || props.invalidMessage && props.invalidMessage.length);
|
|
21073
|
+
}
|
|
21074
|
+
|
|
21075
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(checkSlots);
|
|
21076
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUpdated)(checkSlots);
|
|
21077
|
+
var validTimezone = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
21078
|
+
// Validate timezone setting
|
|
21079
|
+
var result = props.timezone;
|
|
21080
|
+
|
|
21081
|
+
if (props.timezones && props.timezones.length) {
|
|
21082
|
+
if (!props.timezones.find(function (item) {
|
|
21083
|
+
return item.value === props.timezone;
|
|
21084
|
+
})) {
|
|
21085
|
+
if (props.timezone !== undefined) console.error("CvTimePicker: invalid value '".concat(props.timezone, "' supplied for prop timezone. Default applied.")); // set to first valid value
|
|
21086
|
+
|
|
21087
|
+
result = props.timezones[0].value;
|
|
21088
|
+
emit('update:timezone', result);
|
|
21089
|
+
}
|
|
21090
|
+
}
|
|
21091
|
+
|
|
21092
|
+
return result;
|
|
21093
|
+
});
|
|
21094
|
+
var isDisabled = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
21095
|
+
return props.disabled ? true : undefined;
|
|
21096
|
+
});
|
|
21097
|
+
|
|
21098
|
+
function onInput(e) {
|
|
21099
|
+
var _e$target, _e$target2;
|
|
21100
|
+
|
|
21101
|
+
emit('change', {
|
|
21102
|
+
type: 'time',
|
|
21103
|
+
value: e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value
|
|
21104
|
+
});
|
|
21105
|
+
emit('update:time', e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value);
|
|
21106
|
+
}
|
|
21107
|
+
|
|
21108
|
+
function onChangeAMPM(value) {
|
|
21109
|
+
emit('change', {
|
|
21110
|
+
type: 'ampm',
|
|
21111
|
+
value: value
|
|
21112
|
+
});
|
|
21113
|
+
emit('update:ampm', value);
|
|
21114
|
+
}
|
|
21115
|
+
|
|
21116
|
+
function onChangeTimeZone(value) {
|
|
21117
|
+
emit('change', {
|
|
21118
|
+
type: 'timezone',
|
|
21119
|
+
value: value
|
|
21120
|
+
});
|
|
21121
|
+
emit('update:timezone', value);
|
|
21122
|
+
}
|
|
21123
|
+
|
|
21124
|
+
return function (_ctx, _cache) {
|
|
21125
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
21126
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("cv-time-picker ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-item"))
|
|
21127
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21128
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--time-picker"), "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--time-picker--").concat(__props.fieldSize), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--time-picker--light"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isLight))]),
|
|
21129
|
+
"data-invalid": isInvalid.value
|
|
21130
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21131
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--time-picker__input"))
|
|
21132
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
21133
|
+
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid),
|
|
21134
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--label"))
|
|
21135
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.label), 11, _hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
21136
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid),
|
|
21137
|
+
type: "text",
|
|
21138
|
+
class: ["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--time-picker__input-field ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--text-input"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--text-input--light"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isLight))],
|
|
21139
|
+
pattern: __props.pattern
|
|
21140
|
+
}, _ctx.$attrs, {
|
|
21141
|
+
placeholder: __props.placeholder,
|
|
21142
|
+
maxlength: __props.placeholder.length,
|
|
21143
|
+
value: __props.time,
|
|
21144
|
+
disabled: isDisabled.value,
|
|
21145
|
+
onInput: onInput
|
|
21146
|
+
}), null, 16, _hoisted_3)], 2), __props.ampm !== (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(TIME_PICKER_24) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(CvSelect["default"], {
|
|
21147
|
+
key: 0,
|
|
21148
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--time-picker__select")),
|
|
21149
|
+
"form-item": false,
|
|
21150
|
+
"hide-label": "",
|
|
21151
|
+
label: __props.ampmSelectLabel,
|
|
21152
|
+
value: __props.ampm,
|
|
21153
|
+
disabled: isDisabled.value,
|
|
21154
|
+
size: __props.fieldSize,
|
|
21155
|
+
onChange: onChangeAMPM
|
|
21156
|
+
}, {
|
|
21157
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
21158
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(CvSelectOption["default"], {
|
|
21159
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--select-option")),
|
|
21160
|
+
value: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(TIME_PICKER_AM)
|
|
21161
|
+
}, {
|
|
21162
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
21163
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(TIME_PICKER_AM)), 1)];
|
|
21164
|
+
}),
|
|
21165
|
+
_: 1
|
|
21166
|
+
}, 8, ["class", "value"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(CvSelectOption["default"], {
|
|
21167
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--select-option")),
|
|
21168
|
+
value: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(TIME_PICKER_PM)
|
|
21169
|
+
}, {
|
|
21170
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
21171
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(TIME_PICKER_PM)), 1)];
|
|
21172
|
+
}),
|
|
21173
|
+
_: 1
|
|
21174
|
+
}, 8, ["class", "value"])];
|
|
21175
|
+
}),
|
|
21176
|
+
_: 1
|
|
21177
|
+
}, 8, ["class", "label", "value", "disabled", "size"])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_4, " ")), __props.timezones.length > 0 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(CvSelect["default"], {
|
|
21178
|
+
key: 2,
|
|
21179
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--time-picker__select")),
|
|
21180
|
+
"form-item": false,
|
|
21181
|
+
"hide-label": "",
|
|
21182
|
+
label: __props.timezonesSelectLabel,
|
|
21183
|
+
value: validTimezone.value,
|
|
21184
|
+
disabled: isDisabled.value,
|
|
21185
|
+
size: __props.fieldSize,
|
|
21186
|
+
onChange: onChangeTimeZone
|
|
21187
|
+
}, {
|
|
21188
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
21189
|
+
return [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(__props.timezones, function (item) {
|
|
21190
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(CvSelectOption["default"], {
|
|
21191
|
+
key: item.value,
|
|
21192
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--select-option")),
|
|
21193
|
+
value: item.value
|
|
21194
|
+
}, {
|
|
21195
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
21196
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.label), 1)];
|
|
21197
|
+
}),
|
|
21198
|
+
_: 2
|
|
21199
|
+
}, 1032, ["class", "value"]);
|
|
21200
|
+
}), 128))];
|
|
21201
|
+
}),
|
|
21202
|
+
_: 1
|
|
21203
|
+
}, 8, ["class", "label", "value", "disabled", "size"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 10, _hoisted_1), isInvalid.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
21204
|
+
key: 0,
|
|
21205
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-requirement"))
|
|
21206
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "invalid-message", {}, function () {
|
|
21207
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.invalidMessage), 1)];
|
|
21208
|
+
})], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2);
|
|
21209
|
+
};
|
|
21210
|
+
}
|
|
21211
|
+
}));
|
|
21212
|
+
;// CONCATENATED MODULE: ./src/components/CvTimePicker/CvTimePicker.vue?vue&type=script&setup=true&lang=js
|
|
21213
|
+
|
|
21214
|
+
;// CONCATENATED MODULE: ./src/components/CvTimePicker/CvTimePicker.vue
|
|
21215
|
+
|
|
21216
|
+
|
|
21217
|
+
|
|
21218
|
+
const __exports__ = CvTimePickervue_type_script_setup_true_lang_js;
|
|
21219
|
+
|
|
21220
|
+
/* harmony default export */ var CvTimePicker = (__exports__);
|
|
21221
|
+
|
|
21222
|
+
/***/ }),
|
|
21223
|
+
|
|
18285
21224
|
/***/ 5287:
|
|
18286
21225
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18287
21226
|
|
|
@@ -18294,10 +21233,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
18294
21233
|
"default": function() { return /* binding */ CvToggle_Skeleton; }
|
|
18295
21234
|
});
|
|
18296
21235
|
|
|
21236
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
21237
|
+
var defineProperty = __webpack_require__(9130);
|
|
18297
21238
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
18298
21239
|
var objectSpread2 = __webpack_require__(5145);
|
|
18299
21240
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
18300
21241
|
var es_array_concat = __webpack_require__(2222);
|
|
21242
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.small.js
|
|
21243
|
+
var es_string_small = __webpack_require__(7268);
|
|
18301
21244
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18302
21245
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
18303
21246
|
// EXTERNAL MODULE: ./src/global/settings.js
|
|
@@ -18308,38 +21251,58 @@ var use_cvId = __webpack_require__(1853);
|
|
|
18308
21251
|
|
|
18309
21252
|
|
|
18310
21253
|
|
|
18311
|
-
|
|
18312
|
-
|
|
21254
|
+
|
|
21255
|
+
|
|
21256
|
+
var _hoisted_1 = ["aria-label"];
|
|
21257
|
+
var _hoisted_2 = ["id"];
|
|
21258
|
+
var _hoisted_3 = ["for"];
|
|
21259
|
+
|
|
21260
|
+
var _hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, null, -1);
|
|
21261
|
+
|
|
18313
21262
|
|
|
18314
21263
|
|
|
18315
21264
|
/* harmony default export */ var CvToggle_Skeletonvue_type_script_setup_true_lang_js = ({
|
|
18316
21265
|
__name: 'CvToggle-Skeleton',
|
|
18317
|
-
props: {
|
|
18318
|
-
|
|
21266
|
+
props: (0,objectSpread2/* default */.Z)({
|
|
21267
|
+
/**
|
|
21268
|
+
* Label and aria-label for the toggle
|
|
21269
|
+
*/
|
|
21270
|
+
label: {
|
|
18319
21271
|
type: String,
|
|
18320
21272
|
default: 'Toggle is loading'
|
|
18321
|
-
},
|
|
18322
|
-
|
|
21273
|
+
},
|
|
21274
|
+
|
|
21275
|
+
/**
|
|
21276
|
+
* Specify the size of the Toggle. Default is medium. Set to `true` for small.
|
|
21277
|
+
*/
|
|
21278
|
+
small: {
|
|
21279
|
+
type: Boolean,
|
|
21280
|
+
default: false
|
|
21281
|
+
}
|
|
21282
|
+
}, use_cvId/* props */.N),
|
|
18323
21283
|
setup: function setup(__props) {
|
|
18324
21284
|
var props = __props;
|
|
18325
|
-
var cvId = (0,use_cvId/* useCvId */.l)(props);
|
|
21285
|
+
var cvId = (0,use_cvId/* useCvId */.l)(props, true);
|
|
18326
21286
|
return function (_ctx, _cache) {
|
|
18327
21287
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18328
21288
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("cv-toggle ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-item")),
|
|
18329
|
-
|
|
18330
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("
|
|
18331
|
-
|
|
18332
|
-
|
|
18333
|
-
"
|
|
21289
|
+
"aria-label": __props.label
|
|
21290
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", {
|
|
21291
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
21292
|
+
type: "checkbox",
|
|
21293
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--toggle ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--skeleton"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--toggle-input--small"), __props.small)])
|
|
21294
|
+
}, null, 10, _hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
21295
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--toggle-input__label")),
|
|
21296
|
+
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId)
|
|
21297
|
+
}, [_hoisted_4, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
21298
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--toggle__switch"))
|
|
18334
21299
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
18335
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--toggle__label-text"))
|
|
18336
|
-
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
18337
21300
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--toggle__text--left"))
|
|
18338
21301
|
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
18339
21302
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--toggle__appearance"))
|
|
18340
21303
|
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
18341
21304
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--toggle__text--right"))
|
|
18342
|
-
}, null, 2)], 10,
|
|
21305
|
+
}, null, 2)], 2)], 10, _hoisted_3)], 10, _hoisted_1);
|
|
18343
21306
|
};
|
|
18344
21307
|
}
|
|
18345
21308
|
});
|
|
@@ -18401,12 +21364,30 @@ var _hoisted_4 = [_hoisted_3];
|
|
|
18401
21364
|
/* harmony default export */ var CvTogglevue_type_script_setup_true_lang_js = ({
|
|
18402
21365
|
__name: 'CvToggle',
|
|
18403
21366
|
props: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
|
|
21367
|
+
/**
|
|
21368
|
+
* Specify the size of the Toggle. Default is medium. Set to `true` for small.
|
|
21369
|
+
*/
|
|
18404
21370
|
small: Boolean,
|
|
18405
|
-
|
|
21371
|
+
|
|
21372
|
+
/**
|
|
21373
|
+
* Label and aria-label for the toggle
|
|
21374
|
+
*/
|
|
21375
|
+
label: {
|
|
21376
|
+
type: String,
|
|
21377
|
+
default: 'Toggle element'
|
|
21378
|
+
},
|
|
21379
|
+
|
|
21380
|
+
/**
|
|
21381
|
+
* Set the carbon form-item class
|
|
21382
|
+
*/
|
|
18406
21383
|
formItem: {
|
|
18407
21384
|
type: Boolean,
|
|
18408
21385
|
default: true
|
|
18409
21386
|
},
|
|
21387
|
+
|
|
21388
|
+
/**
|
|
21389
|
+
* Visibly hide the toggle label
|
|
21390
|
+
*/
|
|
18410
21391
|
hideLabel: Boolean
|
|
18411
21392
|
}, use_cvId/* props */.N), cvCheck/* props */.N),
|
|
18412
21393
|
emits: ['update:modelValue', 'change'],
|
|
@@ -18429,19 +21410,17 @@ var _hoisted_4 = [_hoisted_3];
|
|
|
18429
21410
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18430
21411
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)((0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--form-item"), __props.formItem))
|
|
18431
21412
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
21413
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
21414
|
+
ref: "input",
|
|
18432
21415
|
role: "toggle"
|
|
18433
21416
|
}, _ctx.$attrs, {
|
|
18434
|
-
class: ["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--toggle-input"), {
|
|
18435
|
-
'bx--toggle-input--small': __props.small
|
|
18436
|
-
}],
|
|
21417
|
+
class: ["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--toggle-input"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--toggle-input--small"), __props.small)],
|
|
18437
21418
|
type: "checkbox",
|
|
18438
|
-
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
18439
21419
|
checked: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isChecked),
|
|
21420
|
+
value: _ctx.value,
|
|
18440
21421
|
onChange: _cache[0] || (_cache[0] = function () {
|
|
18441
21422
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(onChange) && (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(onChange).apply(void 0, arguments);
|
|
18442
|
-
})
|
|
18443
|
-
value: _ctx.value,
|
|
18444
|
-
ref: "input"
|
|
21423
|
+
})
|
|
18445
21424
|
}), null, 16, _hoisted_1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
18446
21425
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--toggle-input__label")),
|
|
18447
21426
|
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
@@ -18479,6 +21458,519 @@ const __exports__ = CvTogglevue_type_script_setup_true_lang_js;
|
|
|
18479
21458
|
|
|
18480
21459
|
/***/ }),
|
|
18481
21460
|
|
|
21461
|
+
/***/ 9111:
|
|
21462
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21463
|
+
|
|
21464
|
+
"use strict";
|
|
21465
|
+
// ESM COMPAT FLAG
|
|
21466
|
+
__webpack_require__.r(__webpack_exports__);
|
|
21467
|
+
|
|
21468
|
+
// EXPORTS
|
|
21469
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
21470
|
+
"default": function() { return /* binding */ CvDefinitionTooltip; }
|
|
21471
|
+
});
|
|
21472
|
+
|
|
21473
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
21474
|
+
var objectSpread2 = __webpack_require__(5145);
|
|
21475
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
21476
|
+
var es_array_includes = __webpack_require__(6699);
|
|
21477
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
21478
|
+
var es_string_includes = __webpack_require__(2023);
|
|
21479
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
21480
|
+
var es_array_concat = __webpack_require__(2222);
|
|
21481
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
21482
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
21483
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
21484
|
+
var settings = __webpack_require__(606);
|
|
21485
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
21486
|
+
var use_cvId = __webpack_require__(1853);
|
|
21487
|
+
// EXTERNAL MODULE: ./src/components/CvTooltip/consts.js
|
|
21488
|
+
var consts = __webpack_require__(5562);
|
|
21489
|
+
;// 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/CvTooltip/CvDefinitionTooltip.vue?vue&type=script&setup=true&lang=js
|
|
21490
|
+
|
|
21491
|
+
|
|
21492
|
+
|
|
21493
|
+
|
|
21494
|
+
|
|
21495
|
+
var _hoisted_1 = ["id"];
|
|
21496
|
+
var _hoisted_2 = ["aria-describedby"];
|
|
21497
|
+
var _hoisted_3 = ["id"];
|
|
21498
|
+
|
|
21499
|
+
|
|
21500
|
+
|
|
21501
|
+
/* harmony default export */ var CvDefinitionTooltipvue_type_script_setup_true_lang_js = ({
|
|
21502
|
+
__name: 'CvDefinitionTooltip',
|
|
21503
|
+
props: (0,objectSpread2/* default */.Z)({
|
|
21504
|
+
alignment: {
|
|
21505
|
+
type: String,
|
|
21506
|
+
default: consts/* TipAlignments.center */.FW.center,
|
|
21507
|
+
validator: function validator(val) {
|
|
21508
|
+
return consts/* alignments.includes */.dz.includes(val);
|
|
21509
|
+
}
|
|
21510
|
+
},
|
|
21511
|
+
direction: {
|
|
21512
|
+
type: String,
|
|
21513
|
+
default: consts/* TipDirections.top */.Cf.top,
|
|
21514
|
+
validator: function validator(val) {
|
|
21515
|
+
return consts/* directions.includes */.qF.includes(val);
|
|
21516
|
+
}
|
|
21517
|
+
},
|
|
21518
|
+
definition: {
|
|
21519
|
+
type: String,
|
|
21520
|
+
default: ''
|
|
21521
|
+
},
|
|
21522
|
+
term: {
|
|
21523
|
+
type: String,
|
|
21524
|
+
default: ''
|
|
21525
|
+
}
|
|
21526
|
+
}, use_cvId/* props */.N),
|
|
21527
|
+
setup: function setup(__props) {
|
|
21528
|
+
var props = __props;
|
|
21529
|
+
var cvId = (0,use_cvId/* useCvId */.l)(props);
|
|
21530
|
+
return function (_ctx, _cache) {
|
|
21531
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
21532
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("cv-definition-tooltip ".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip--definition ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip--a11y")),
|
|
21533
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId)
|
|
21534
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
|
|
21535
|
+
"aria-describedby": "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId), "-label"),
|
|
21536
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip__trigger"), "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip--a11y"), "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip__trigger--definition"), "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip--").concat(__props.direction), "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip--align-").concat(__props.alignment)]),
|
|
21537
|
+
type: "button"
|
|
21538
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "term", {}, function () {
|
|
21539
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.term), 1)];
|
|
21540
|
+
})], 10, _hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21541
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--assistive-text")),
|
|
21542
|
+
id: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId), "-label"),
|
|
21543
|
+
role: "tooltip"
|
|
21544
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "definition", {}, function () {
|
|
21545
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.definition), 1)];
|
|
21546
|
+
})], 10, _hoisted_3)], 10, _hoisted_1);
|
|
21547
|
+
};
|
|
21548
|
+
}
|
|
21549
|
+
});
|
|
21550
|
+
;// CONCATENATED MODULE: ./src/components/CvTooltip/CvDefinitionTooltip.vue?vue&type=script&setup=true&lang=js
|
|
21551
|
+
|
|
21552
|
+
;// CONCATENATED MODULE: ./src/components/CvTooltip/CvDefinitionTooltip.vue
|
|
21553
|
+
|
|
21554
|
+
|
|
21555
|
+
|
|
21556
|
+
const __exports__ = CvDefinitionTooltipvue_type_script_setup_true_lang_js;
|
|
21557
|
+
|
|
21558
|
+
/* harmony default export */ var CvDefinitionTooltip = (__exports__);
|
|
21559
|
+
|
|
21560
|
+
/***/ }),
|
|
21561
|
+
|
|
21562
|
+
/***/ 2680:
|
|
21563
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21564
|
+
|
|
21565
|
+
"use strict";
|
|
21566
|
+
// ESM COMPAT FLAG
|
|
21567
|
+
__webpack_require__.r(__webpack_exports__);
|
|
21568
|
+
|
|
21569
|
+
// EXPORTS
|
|
21570
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
21571
|
+
"default": function() { return /* binding */ CvInteractiveTooltip; }
|
|
21572
|
+
});
|
|
21573
|
+
|
|
21574
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
21575
|
+
var defineProperty = __webpack_require__(9130);
|
|
21576
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
21577
|
+
var asyncToGenerator = __webpack_require__(3540);
|
|
21578
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
21579
|
+
var objectSpread2 = __webpack_require__(5145);
|
|
21580
|
+
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
|
21581
|
+
var runtime = __webpack_require__(5666);
|
|
21582
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
21583
|
+
var es_array_includes = __webpack_require__(6699);
|
|
21584
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
21585
|
+
var es_string_includes = __webpack_require__(2023);
|
|
21586
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
21587
|
+
var es_array_concat = __webpack_require__(2222);
|
|
21588
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
21589
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
21590
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/information/16.js
|
|
21591
|
+
var _16 = __webpack_require__(9048);
|
|
21592
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
21593
|
+
var settings = __webpack_require__(606);
|
|
21594
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
21595
|
+
var use_cvId = __webpack_require__(1853);
|
|
21596
|
+
// EXTERNAL MODULE: ./src/components/CvTooltip/consts.js
|
|
21597
|
+
var consts = __webpack_require__(5562);
|
|
21598
|
+
;// 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/CvTooltip/CvInteractiveTooltip.vue?vue&type=script&setup=true&lang=js
|
|
21599
|
+
|
|
21600
|
+
|
|
21601
|
+
|
|
21602
|
+
|
|
21603
|
+
|
|
21604
|
+
|
|
21605
|
+
|
|
21606
|
+
|
|
21607
|
+
var _hoisted_1 = ["id"];
|
|
21608
|
+
var _hoisted_2 = ["aria-expanded", "aria-labelledby", "aria-controls", "onKeydown"];
|
|
21609
|
+
var _hoisted_3 = ["id", "aria-hidden", "data-floating-menu-direction", "aria-describedby", "aria-labelledby", "onMousedown"];
|
|
21610
|
+
|
|
21611
|
+
|
|
21612
|
+
|
|
21613
|
+
|
|
21614
|
+
|
|
21615
|
+
/* harmony default export */ var CvInteractiveTooltipvue_type_script_setup_true_lang_js = ({
|
|
21616
|
+
__name: 'CvInteractiveTooltip',
|
|
21617
|
+
props: (0,objectSpread2/* default */.Z)({
|
|
21618
|
+
alignment: {
|
|
21619
|
+
type: String,
|
|
21620
|
+
default: consts/* TipAlignments.center */.FW.center,
|
|
21621
|
+
validator: function validator(val) {
|
|
21622
|
+
return consts/* alignments.includes */.dz.includes(val);
|
|
21623
|
+
}
|
|
21624
|
+
},
|
|
21625
|
+
direction: {
|
|
21626
|
+
type: String,
|
|
21627
|
+
default: consts/* TipDirections.top */.Cf.top,
|
|
21628
|
+
validator: function validator(val) {
|
|
21629
|
+
return consts/* directions.includes */.qF.includes(val);
|
|
21630
|
+
}
|
|
21631
|
+
},
|
|
21632
|
+
visible: {
|
|
21633
|
+
type: Boolean,
|
|
21634
|
+
default: false
|
|
21635
|
+
}
|
|
21636
|
+
}, use_cvId/* props */.N),
|
|
21637
|
+
setup: function setup(__props) {
|
|
21638
|
+
var props = __props;
|
|
21639
|
+
|
|
21640
|
+
var _toRefs = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toRefs)(props),
|
|
21641
|
+
direction = _toRefs.direction,
|
|
21642
|
+
visible = _toRefs.visible;
|
|
21643
|
+
|
|
21644
|
+
var cvId = (0,use_cvId/* useCvId */.l)(props);
|
|
21645
|
+
var dataVisible = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
21646
|
+
var left = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(-9999); // position offscreen
|
|
21647
|
+
|
|
21648
|
+
var top = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
21649
|
+
var root = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
21650
|
+
var popupEl = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
21651
|
+
var popup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
21652
|
+
var trigger = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
21653
|
+
var beforeContent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
21654
|
+
var afterContent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
21655
|
+
var contentAfter = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
21656
|
+
return [consts/* TipDirections.right */.Cf.right, consts/* TipDirections.bottom */.Cf.bottom].includes(direction.value);
|
|
21657
|
+
});
|
|
21658
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(function () {
|
|
21659
|
+
// move popup out to body to ensure it appears above other elements
|
|
21660
|
+
popupEl = document.body.appendChild(popup.value);
|
|
21661
|
+
toggle(!visible.value);
|
|
21662
|
+
});
|
|
21663
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(visible, function (newValue) {
|
|
21664
|
+
toggle(!newValue);
|
|
21665
|
+
});
|
|
21666
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(direction, function () {
|
|
21667
|
+
if (!visible.value) return;
|
|
21668
|
+
position();
|
|
21669
|
+
});
|
|
21670
|
+
|
|
21671
|
+
function positionListen(on) {
|
|
21672
|
+
if (on) {
|
|
21673
|
+
window.addEventListener('scroll', position);
|
|
21674
|
+
window.addEventListener('resize', position);
|
|
21675
|
+
return;
|
|
21676
|
+
}
|
|
21677
|
+
|
|
21678
|
+
window.removeEventListener('scroll', position);
|
|
21679
|
+
window.removeEventListener('resize', position);
|
|
21680
|
+
}
|
|
21681
|
+
|
|
21682
|
+
function position() {
|
|
21683
|
+
var menuPosition = trigger.value.getBoundingClientRect();
|
|
21684
|
+
var pixelsScrolledX = window.scrollX || window.pageXOffset;
|
|
21685
|
+
var pixelsScrolledY = window.scrollY || window.pageYOffset;
|
|
21686
|
+
var positioningMethod = [consts/* TipDirections.top */.Cf.top, consts/* TipDirections.bottom */.Cf.bottom].includes(direction.value) ? positionForTopBottomDirections : positionForLeftRightDirections;
|
|
21687
|
+
positioningMethod({
|
|
21688
|
+
menuPosition: menuPosition,
|
|
21689
|
+
pixelsScrolledX: pixelsScrolledX,
|
|
21690
|
+
pixelsScrolledY: pixelsScrolledY
|
|
21691
|
+
});
|
|
21692
|
+
}
|
|
21693
|
+
|
|
21694
|
+
function positionForTopBottomDirections(_ref) {
|
|
21695
|
+
var menuPosition = _ref.menuPosition,
|
|
21696
|
+
pixelsScrolledX = _ref.pixelsScrolledX,
|
|
21697
|
+
pixelsScrolledY = _ref.pixelsScrolledY;
|
|
21698
|
+
top.value = direction.value === consts/* TipDirections.bottom */.Cf.bottom ? menuPosition.bottom + 10 + pixelsScrolledY : menuPosition.top - 15 - popup.value.offsetHeight + pixelsScrolledY;
|
|
21699
|
+
left.value = menuPosition.left + 0.5 + (trigger.value.offsetWidth - popup.value.offsetWidth) / 2 + pixelsScrolledX;
|
|
21700
|
+
}
|
|
21701
|
+
|
|
21702
|
+
function positionForLeftRightDirections(_ref2) {
|
|
21703
|
+
var menuPosition = _ref2.menuPosition,
|
|
21704
|
+
pixelsScrolledX = _ref2.pixelsScrolledX,
|
|
21705
|
+
pixelsScrolledY = _ref2.pixelsScrolledY;
|
|
21706
|
+
top.value = menuPosition.top + (trigger.value.offsetHeight - 0.5 - popup.value.offsetHeight) / 2 + pixelsScrolledY;
|
|
21707
|
+
left.value = direction.value === consts/* TipDirections.left */.Cf.left ? menuPosition.left - 10 - popup.value.offsetWidth + pixelsScrolledX : menuPosition.right + 15 + pixelsScrolledX;
|
|
21708
|
+
}
|
|
21709
|
+
|
|
21710
|
+
function show() {
|
|
21711
|
+
return _show.apply(this, arguments);
|
|
21712
|
+
}
|
|
21713
|
+
|
|
21714
|
+
function _show() {
|
|
21715
|
+
_show = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
21716
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
21717
|
+
while (1) {
|
|
21718
|
+
switch (_context.prev = _context.next) {
|
|
21719
|
+
case 0:
|
|
21720
|
+
dataVisible.value = true;
|
|
21721
|
+
positionListen(true);
|
|
21722
|
+
_context.next = 4;
|
|
21723
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(function () {
|
|
21724
|
+
position();
|
|
21725
|
+
trigger.value.focus();
|
|
21726
|
+
});
|
|
21727
|
+
|
|
21728
|
+
case 4:
|
|
21729
|
+
case "end":
|
|
21730
|
+
return _context.stop();
|
|
21731
|
+
}
|
|
21732
|
+
}
|
|
21733
|
+
}, _callee);
|
|
21734
|
+
}));
|
|
21735
|
+
return _show.apply(this, arguments);
|
|
21736
|
+
}
|
|
21737
|
+
|
|
21738
|
+
function hide() {
|
|
21739
|
+
dataVisible.value = false;
|
|
21740
|
+
positionListen(true);
|
|
21741
|
+
}
|
|
21742
|
+
|
|
21743
|
+
function toggle(isVisible) {
|
|
21744
|
+
if (isVisible) {
|
|
21745
|
+
hide();
|
|
21746
|
+
return;
|
|
21747
|
+
}
|
|
21748
|
+
|
|
21749
|
+
show();
|
|
21750
|
+
}
|
|
21751
|
+
|
|
21752
|
+
function onTriggerTab(ev) {
|
|
21753
|
+
if (!ev.shiftKey) {
|
|
21754
|
+
if (contentAfter.value) {
|
|
21755
|
+
// move focus before content before tab press
|
|
21756
|
+
beforeContent.value.focus();
|
|
21757
|
+
}
|
|
21758
|
+
|
|
21759
|
+
return;
|
|
21760
|
+
}
|
|
21761
|
+
|
|
21762
|
+
if (contentAfter.value) return; // move focus after content before tab press
|
|
21763
|
+
|
|
21764
|
+
afterContent.value.focus();
|
|
21765
|
+
}
|
|
21766
|
+
|
|
21767
|
+
function checkFocusOut(ev) {
|
|
21768
|
+
dataVisible.value = ev.relatedTarget === trigger.value || popup.value.contains(ev.relatedTarget);
|
|
21769
|
+
}
|
|
21770
|
+
|
|
21771
|
+
function focusBeforeContent(ev) {
|
|
21772
|
+
if (contentAfter.value) {
|
|
21773
|
+
if (popup.value.contains(ev.relatedTarget)) {
|
|
21774
|
+
trigger.value.focus();
|
|
21775
|
+
}
|
|
21776
|
+
|
|
21777
|
+
return;
|
|
21778
|
+
}
|
|
21779
|
+
|
|
21780
|
+
trigger.value.focus();
|
|
21781
|
+
dataVisible.value = contentAfter.value;
|
|
21782
|
+
}
|
|
21783
|
+
|
|
21784
|
+
function focusAfterContent(ev) {
|
|
21785
|
+
if (!contentAfter.value) {
|
|
21786
|
+
if (popup.value.contains(ev.relatedTarget)) {
|
|
21787
|
+
trigger.value.focus();
|
|
21788
|
+
}
|
|
21789
|
+
} else {
|
|
21790
|
+
trigger.value.focus();
|
|
21791
|
+
dataVisible.value = !contentAfter.value;
|
|
21792
|
+
}
|
|
21793
|
+
}
|
|
21794
|
+
|
|
21795
|
+
function preventFocusOut() {// This is here to prevent focus being lost if the user clicks on the contents of the interactive tooltip
|
|
21796
|
+
}
|
|
21797
|
+
|
|
21798
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(function () {
|
|
21799
|
+
positionListen(false);
|
|
21800
|
+
if (!popupEl.value) return; // move back to where it came from
|
|
21801
|
+
|
|
21802
|
+
root.value.appendChild(popupEl.value);
|
|
21803
|
+
});
|
|
21804
|
+
return function (_ctx, _cache) {
|
|
21805
|
+
var _ref3;
|
|
21806
|
+
|
|
21807
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
21808
|
+
class: "cv-interactive-tooltip",
|
|
21809
|
+
ref_key: "root",
|
|
21810
|
+
ref: root
|
|
21811
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21812
|
+
id: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId), "-label"),
|
|
21813
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip__label"))
|
|
21814
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "label"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
|
|
21815
|
+
"aria-expanded": dataVisible.value ? 'true' : 'false',
|
|
21816
|
+
"aria-labelledby": "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId), "-label"),
|
|
21817
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip__trigger")),
|
|
21818
|
+
"aria-controls": "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId)),
|
|
21819
|
+
"aria-haspopup": "true",
|
|
21820
|
+
ref_key: "trigger",
|
|
21821
|
+
ref: trigger,
|
|
21822
|
+
type: "button",
|
|
21823
|
+
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
21824
|
+
return toggle(dataVisible.value);
|
|
21825
|
+
}),
|
|
21826
|
+
onKeydown: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withKeys)(onTriggerTab, ["tab"]),
|
|
21827
|
+
onFocusout: checkFocusOut
|
|
21828
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "trigger", {}, function () {
|
|
21829
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(_16/* default */.Z))];
|
|
21830
|
+
})], 42, _hoisted_2)], 10, _hoisted_1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21831
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
21832
|
+
"aria-hidden": !dataVisible.value,
|
|
21833
|
+
"data-floating-menu-direction": (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(direction),
|
|
21834
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip"), (_ref3 = {}, (0,defineProperty/* default */.Z)(_ref3, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip--shown"), dataVisible.value), (0,defineProperty/* default */.Z)(_ref3, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip--").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(direction)), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(direction)), (0,defineProperty/* default */.Z)(_ref3, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip--align-").concat(__props.alignment), __props.alignment), _ref3)]),
|
|
21835
|
+
ref_key: "popup",
|
|
21836
|
+
ref: popup,
|
|
21837
|
+
role: "dialog",
|
|
21838
|
+
"aria-describedby": "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId), "-body"),
|
|
21839
|
+
"aria-labelledby": "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId), "-label"),
|
|
21840
|
+
onFocusout: checkFocusOut,
|
|
21841
|
+
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
21842
|
+
left: left.value + 'px',
|
|
21843
|
+
top: top.value + 'px'
|
|
21844
|
+
}),
|
|
21845
|
+
tabindex: "-1",
|
|
21846
|
+
onMousedown: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(preventFocusOut, ["prevent"])
|
|
21847
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21848
|
+
class: "cv-interactive-tooltip__before-content",
|
|
21849
|
+
ref_key: "beforeContent",
|
|
21850
|
+
ref: beforeContent,
|
|
21851
|
+
tabindex: "0",
|
|
21852
|
+
style: {
|
|
21853
|
+
"position": "absolute",
|
|
21854
|
+
"left": "-9999px",
|
|
21855
|
+
"width": "1px",
|
|
21856
|
+
"height": "1px"
|
|
21857
|
+
},
|
|
21858
|
+
onFocus: focusBeforeContent
|
|
21859
|
+
}, null, 544), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
21860
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip__caret"))
|
|
21861
|
+
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21862
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip__content"))
|
|
21863
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "content")], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21864
|
+
class: "cv-interactive-tooltip__after-content",
|
|
21865
|
+
ref_key: "afterContent",
|
|
21866
|
+
ref: afterContent,
|
|
21867
|
+
tabindex: "0",
|
|
21868
|
+
style: {
|
|
21869
|
+
"position": "absolute",
|
|
21870
|
+
"left": "-9999px",
|
|
21871
|
+
"width": "1px",
|
|
21872
|
+
"height": "1px"
|
|
21873
|
+
},
|
|
21874
|
+
onFocus: focusAfterContent
|
|
21875
|
+
}, null, 544)], 46, _hoisted_3)], 512);
|
|
21876
|
+
};
|
|
21877
|
+
}
|
|
21878
|
+
});
|
|
21879
|
+
;// CONCATENATED MODULE: ./src/components/CvTooltip/CvInteractiveTooltip.vue?vue&type=script&setup=true&lang=js
|
|
21880
|
+
|
|
21881
|
+
;// CONCATENATED MODULE: ./src/components/CvTooltip/CvInteractiveTooltip.vue
|
|
21882
|
+
|
|
21883
|
+
|
|
21884
|
+
|
|
21885
|
+
const __exports__ = CvInteractiveTooltipvue_type_script_setup_true_lang_js;
|
|
21886
|
+
|
|
21887
|
+
/* harmony default export */ var CvInteractiveTooltip = (__exports__);
|
|
21888
|
+
|
|
21889
|
+
/***/ }),
|
|
21890
|
+
|
|
21891
|
+
/***/ 7355:
|
|
21892
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21893
|
+
|
|
21894
|
+
"use strict";
|
|
21895
|
+
// ESM COMPAT FLAG
|
|
21896
|
+
__webpack_require__.r(__webpack_exports__);
|
|
21897
|
+
|
|
21898
|
+
// EXPORTS
|
|
21899
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
21900
|
+
"default": function() { return /* binding */ CvTooltip; }
|
|
21901
|
+
});
|
|
21902
|
+
|
|
21903
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
21904
|
+
var es_array_includes = __webpack_require__(6699);
|
|
21905
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
21906
|
+
var es_string_includes = __webpack_require__(2023);
|
|
21907
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
21908
|
+
var es_array_concat = __webpack_require__(2222);
|
|
21909
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
21910
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
21911
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/information/16.js
|
|
21912
|
+
var _16 = __webpack_require__(9048);
|
|
21913
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
21914
|
+
var settings = __webpack_require__(606);
|
|
21915
|
+
// EXTERNAL MODULE: ./src/components/CvTooltip/consts.js
|
|
21916
|
+
var consts = __webpack_require__(5562);
|
|
21917
|
+
;// 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/CvTooltip/CvTooltip.vue?vue&type=script&setup=true&lang=js
|
|
21918
|
+
|
|
21919
|
+
|
|
21920
|
+
|
|
21921
|
+
|
|
21922
|
+
|
|
21923
|
+
|
|
21924
|
+
|
|
21925
|
+
/* harmony default export */ var CvTooltipvue_type_script_setup_true_lang_js = ({
|
|
21926
|
+
__name: 'CvTooltip',
|
|
21927
|
+
props: {
|
|
21928
|
+
alignment: {
|
|
21929
|
+
type: String,
|
|
21930
|
+
default: consts/* TipAlignments.center */.FW.center,
|
|
21931
|
+
validator: function validator(val) {
|
|
21932
|
+
return consts/* alignments.includes */.dz.includes(val);
|
|
21933
|
+
}
|
|
21934
|
+
},
|
|
21935
|
+
direction: {
|
|
21936
|
+
type: String,
|
|
21937
|
+
default: consts/* TipDirections.top */.Cf.top,
|
|
21938
|
+
validator: function validator(val) {
|
|
21939
|
+
return consts/* directions.includes */.qF.includes(val);
|
|
21940
|
+
}
|
|
21941
|
+
},
|
|
21942
|
+
tip: {
|
|
21943
|
+
type: String,
|
|
21944
|
+
default: ''
|
|
21945
|
+
}
|
|
21946
|
+
},
|
|
21947
|
+
setup: function setup(__props) {
|
|
21948
|
+
return function (_ctx, _cache) {
|
|
21949
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("button", {
|
|
21950
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["cv-tooltip", "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip__trigger"), "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip--a11y"), "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip--").concat(__props.direction), "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--tooltip--align-").concat(__props.alignment)]),
|
|
21951
|
+
type: "button"
|
|
21952
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
21953
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--assistive-text"))
|
|
21954
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "content", {}, function () {
|
|
21955
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.tip), 1)];
|
|
21956
|
+
})], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default", {}, function () {
|
|
21957
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(_16/* default */.Z))];
|
|
21958
|
+
})], 2);
|
|
21959
|
+
};
|
|
21960
|
+
}
|
|
21961
|
+
});
|
|
21962
|
+
;// CONCATENATED MODULE: ./src/components/CvTooltip/CvTooltip.vue?vue&type=script&setup=true&lang=js
|
|
21963
|
+
|
|
21964
|
+
;// CONCATENATED MODULE: ./src/components/CvTooltip/CvTooltip.vue
|
|
21965
|
+
|
|
21966
|
+
|
|
21967
|
+
|
|
21968
|
+
const __exports__ = CvTooltipvue_type_script_setup_true_lang_js;
|
|
21969
|
+
|
|
21970
|
+
/* harmony default export */ var CvTooltip = (__exports__);
|
|
21971
|
+
|
|
21972
|
+
/***/ }),
|
|
21973
|
+
|
|
18482
21974
|
/***/ 5957:
|
|
18483
21975
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18484
21976
|
|
|
@@ -19688,6 +23180,7 @@ var CvSideNavvue_type_script_setup_true_lang_js_hoisted_1 = ["aria-hidden", "id"
|
|
|
19688
23180
|
var emit = _ref.emit;
|
|
19689
23181
|
var props = __props;
|
|
19690
23182
|
var el = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
23183
|
+
var expandedViaHoverState = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
19691
23184
|
var panelExpanded = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)({
|
|
19692
23185
|
get: function get() {
|
|
19693
23186
|
return data.dataExpanded;
|
|
@@ -19733,7 +23226,10 @@ var CvSideNavvue_type_script_setup_true_lang_js_hoisted_1 = ["aria-hidden", "id"
|
|
|
19733
23226
|
}, function () {
|
|
19734
23227
|
panelExpanded.value = props.expanded;
|
|
19735
23228
|
});
|
|
19736
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
23229
|
+
var isPanelExpanded = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
23230
|
+
return panelExpanded.value || expandedViaHoverState.value;
|
|
23231
|
+
});
|
|
23232
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(isPanelExpanded, function (current) {
|
|
19737
23233
|
emit('update:expanded', current);
|
|
19738
23234
|
emit('panel-resize', {
|
|
19739
23235
|
id: props.id,
|
|
@@ -19762,6 +23258,10 @@ var CvSideNavvue_type_script_setup_true_lang_js_hoisted_1 = ["aria-hidden", "id"
|
|
|
19762
23258
|
}
|
|
19763
23259
|
}
|
|
19764
23260
|
|
|
23261
|
+
function onHoverToggle(value) {
|
|
23262
|
+
if (props.rail) expandedViaHoverState.value = value;
|
|
23263
|
+
}
|
|
23264
|
+
|
|
19765
23265
|
function toggleExpand() {
|
|
19766
23266
|
panelExpanded.value = data.dataExpanded;
|
|
19767
23267
|
}
|
|
@@ -19775,6 +23275,12 @@ var CvSideNavvue_type_script_setup_true_lang_js_hoisted_1 = ["aria-hidden", "id"
|
|
|
19775
23275
|
id: __props.id,
|
|
19776
23276
|
onFocusout: onFocusout,
|
|
19777
23277
|
onMousedown: onMouseDown,
|
|
23278
|
+
onMouseenter: _cache[0] || (_cache[0] = function ($event) {
|
|
23279
|
+
return onHoverToggle(true);
|
|
23280
|
+
}),
|
|
23281
|
+
onMouseleave: _cache[1] || (_cache[1] = function ($event) {
|
|
23282
|
+
return onHoverToggle(false);
|
|
23283
|
+
}),
|
|
19778
23284
|
ref_key: "el",
|
|
19779
23285
|
ref: el
|
|
19780
23286
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default"), !__props.fixed && !__props.rail && !panelData.headerEmbedded ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_CvSideNavFooter, {
|
|
@@ -33469,6 +36975,50 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
|
|
|
33469
36975
|
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
|
33470
36976
|
|
|
33471
36977
|
|
|
36978
|
+
/***/ }),
|
|
36979
|
+
|
|
36980
|
+
/***/ 6755:
|
|
36981
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
36982
|
+
|
|
36983
|
+
"use strict";
|
|
36984
|
+
|
|
36985
|
+
var $ = __webpack_require__(2109);
|
|
36986
|
+
var uncurryThis = __webpack_require__(1702);
|
|
36987
|
+
var getOwnPropertyDescriptor = (__webpack_require__(1236).f);
|
|
36988
|
+
var toLength = __webpack_require__(7466);
|
|
36989
|
+
var toString = __webpack_require__(1340);
|
|
36990
|
+
var notARegExp = __webpack_require__(3929);
|
|
36991
|
+
var requireObjectCoercible = __webpack_require__(4488);
|
|
36992
|
+
var correctIsRegExpLogic = __webpack_require__(4964);
|
|
36993
|
+
var IS_PURE = __webpack_require__(1913);
|
|
36994
|
+
|
|
36995
|
+
// eslint-disable-next-line es-x/no-string-prototype-startswith -- safe
|
|
36996
|
+
var un$StartsWith = uncurryThis(''.startsWith);
|
|
36997
|
+
var stringSlice = uncurryThis(''.slice);
|
|
36998
|
+
var min = Math.min;
|
|
36999
|
+
|
|
37000
|
+
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
|
|
37001
|
+
// https://github.com/zloirock/core-js/pull/702
|
|
37002
|
+
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {
|
|
37003
|
+
var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');
|
|
37004
|
+
return descriptor && !descriptor.writable;
|
|
37005
|
+
}();
|
|
37006
|
+
|
|
37007
|
+
// `String.prototype.startsWith` method
|
|
37008
|
+
// https://tc39.es/ecma262/#sec-string.prototype.startswith
|
|
37009
|
+
$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
|
|
37010
|
+
startsWith: function startsWith(searchString /* , position = 0 */) {
|
|
37011
|
+
var that = toString(requireObjectCoercible(this));
|
|
37012
|
+
notARegExp(searchString);
|
|
37013
|
+
var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
|
|
37014
|
+
var search = toString(searchString);
|
|
37015
|
+
return un$StartsWith
|
|
37016
|
+
? un$StartsWith(that, search, index)
|
|
37017
|
+
: stringSlice(that, index, index + search.length) === search;
|
|
37018
|
+
}
|
|
37019
|
+
});
|
|
37020
|
+
|
|
37021
|
+
|
|
33472
37022
|
/***/ }),
|
|
33473
37023
|
|
|
33474
37024
|
/***/ 3210:
|
|
@@ -39485,14 +43035,15 @@ var map = {
|
|
|
39485
43035
|
"./CvButton/CvButtonSkeleton.vue": 1950,
|
|
39486
43036
|
"./CvButton/CvIconButton.vue": 4080,
|
|
39487
43037
|
"./CvCheckbox/CvCheckbox.vue": 5478,
|
|
39488
|
-
"./
|
|
43038
|
+
"./CvCheckbox/CvCheckboxSkeleton.vue": 7914,
|
|
43039
|
+
"./CvCodeSnippet/CvCodeSnippet.vue": 7956,
|
|
39489
43040
|
"./CvCodeSnippet/CvCodeSnippetSkeleton.vue": 1823,
|
|
39490
43041
|
"./CvComboBox/CvComboBox.vue": 357,
|
|
39491
43042
|
"./CvContentSwitcher/CvContentSwitcher.vue": 1248,
|
|
39492
43043
|
"./CvContentSwitcher/CvContentSwitcherButton.vue": 580,
|
|
39493
43044
|
"./CvContentSwitcher/CvContentSwitcherContent.vue": 1773,
|
|
39494
43045
|
"./CvCopyButton/CvCopyButton.vue": 5276,
|
|
39495
|
-
"./CvDataTable/CvDataTable.vue":
|
|
43046
|
+
"./CvDataTable/CvDataTable.vue": 4513,
|
|
39496
43047
|
"./CvDataTable/CvDataTableAction.vue": 2364,
|
|
39497
43048
|
"./CvDataTable/CvDataTableCell.vue": 6920,
|
|
39498
43049
|
"./CvDataTable/CvDataTableHeading.vue": 697,
|
|
@@ -39503,6 +43054,9 @@ var map = {
|
|
|
39503
43054
|
"./CvDropdown/CvDropdown.vue": 9806,
|
|
39504
43055
|
"./CvDropdown/CvDropdownItem.vue": 8369,
|
|
39505
43056
|
"./CvDropdown/CvDropdownSkeleton.vue": 1387,
|
|
43057
|
+
"./CvFileUploader/CvFileUploader.vue": 5727,
|
|
43058
|
+
"./CvFileUploader/CvFileUploaderItem.vue": 3265,
|
|
43059
|
+
"./CvFileUploader/CvFileUploaderSkeleton.vue": 59,
|
|
39506
43060
|
"./CvForm/CvForm.vue": 2573,
|
|
39507
43061
|
"./CvForm/CvFormGroup.vue": 5600,
|
|
39508
43062
|
"./CvForm/CvFormItem.vue": 8341,
|
|
@@ -39517,29 +43071,47 @@ var map = {
|
|
|
39517
43071
|
"./CvModal/CvModal.vue": 3480,
|
|
39518
43072
|
"./CvMultiSelect/CvMultiSelect.vue": 8852,
|
|
39519
43073
|
"./CvNotification/CvInlineNotification.vue": 2435,
|
|
39520
|
-
"./CvNotification/CvToastNotification.vue":
|
|
43074
|
+
"./CvNotification/CvToastNotification.vue": 2162,
|
|
39521
43075
|
"./CvNumberInput/CvNumberInput.vue": 1545,
|
|
39522
43076
|
"./CvNumberInput/CvNumberInputSkeleton.vue": 9325,
|
|
39523
|
-
"./CvOverflowMenu/CvOverflowMenu.vue":
|
|
43077
|
+
"./CvOverflowMenu/CvOverflowMenu.vue": 1948,
|
|
39524
43078
|
"./CvOverflowMenu/CvOverflowMenuItem.vue": 2012,
|
|
39525
43079
|
"./CvPagination/CvPagination.vue": 5740,
|
|
43080
|
+
"./CvProgress/CvProgress.vue": 7495,
|
|
43081
|
+
"./CvProgress/CvProgressStep.vue": 2782,
|
|
43082
|
+
"./CvRadioButton/CvRadioButton.vue": 1676,
|
|
43083
|
+
"./CvRadioButton/CvRadioGroup.vue": 4183,
|
|
43084
|
+
"./CvSearch/CvSearch.vue": 430,
|
|
39526
43085
|
"./CvSelect/CvSelect.vue": 6661,
|
|
39527
43086
|
"./CvSelect/CvSelectOptgroup.vue": 2620,
|
|
39528
43087
|
"./CvSelect/CvSelectOption.vue": 6585,
|
|
39529
43088
|
"./CvSkeletonText/CvSkeletonText.vue": 2244,
|
|
43089
|
+
"./CvSlider/CvSlider.vue": 5124,
|
|
43090
|
+
"./CvSlider/CvSliderSkeleton.vue": 1789,
|
|
43091
|
+
"./CvStructuredList/CvStructuredList.vue": 5462,
|
|
43092
|
+
"./CvStructuredList/CvStructuredListData.vue": 3989,
|
|
43093
|
+
"./CvStructuredList/CvStructuredListHeading.vue": 1377,
|
|
43094
|
+
"./CvStructuredList/CvStructuredListItem.vue": 6675,
|
|
43095
|
+
"./CvStructuredList/CvStructuredListItemSelectable.vue": 5572,
|
|
43096
|
+
"./CvStructuredList/CvStructuredListItemStandard.vue": 7690,
|
|
39530
43097
|
"./CvTabs/CvTab.vue": 1758,
|
|
39531
43098
|
"./CvTabs/CvTabs.vue": 7763,
|
|
39532
43099
|
"./CvTabs/CvTabsSkeleton.vue": 6104,
|
|
39533
43100
|
"./CvTag/CvTag.vue": 4175,
|
|
39534
43101
|
"./CvTextArea/CvTextArea.vue": 4722,
|
|
43102
|
+
"./CvTextArea/CvTextAreaSkeleton.vue": 5136,
|
|
39535
43103
|
"./CvTextInput/CvTextInput.vue": 6123,
|
|
39536
43104
|
"./CvTile/CvTile.vue": 3637,
|
|
39537
43105
|
"./CvTile/CvTileClickable.vue": 8930,
|
|
39538
43106
|
"./CvTile/CvTileExpandable.vue": 5248,
|
|
39539
|
-
"./CvTile/CvTileSelectable.vue":
|
|
43107
|
+
"./CvTile/CvTileSelectable.vue": 327,
|
|
39540
43108
|
"./CvTile/CvTileStandard.vue": 2245,
|
|
43109
|
+
"./CvTimePicker/CvTimePicker.vue": 761,
|
|
39541
43110
|
"./CvToggle/CvToggle-Skeleton.vue": 5287,
|
|
39542
43111
|
"./CvToggle/CvToggle.vue": 7897,
|
|
43112
|
+
"./CvTooltip/CvDefinitionTooltip.vue": 9111,
|
|
43113
|
+
"./CvTooltip/CvInteractiveTooltip.vue": 2680,
|
|
43114
|
+
"./CvTooltip/CvTooltip.vue": 7355,
|
|
39543
43115
|
"./CvUIShell/CvHeader.vue": 5957,
|
|
39544
43116
|
"./CvUIShell/CvHeaderGlobalAction.vue": 5625,
|
|
39545
43117
|
"./CvUIShell/CvHeaderMenu.vue": 1367,
|
|
@@ -39646,6 +43218,56 @@ function _arrayLikeToArray(arr, len) {
|
|
|
39646
43218
|
|
|
39647
43219
|
/***/ }),
|
|
39648
43220
|
|
|
43221
|
+
/***/ 3540:
|
|
43222
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
43223
|
+
|
|
43224
|
+
"use strict";
|
|
43225
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43226
|
+
/* harmony export */ "Z": function() { return /* binding */ _asyncToGenerator; }
|
|
43227
|
+
/* harmony export */ });
|
|
43228
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1539);
|
|
43229
|
+
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8674);
|
|
43230
|
+
|
|
43231
|
+
|
|
43232
|
+
|
|
43233
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
43234
|
+
try {
|
|
43235
|
+
var info = gen[key](arg);
|
|
43236
|
+
var value = info.value;
|
|
43237
|
+
} catch (error) {
|
|
43238
|
+
reject(error);
|
|
43239
|
+
return;
|
|
43240
|
+
}
|
|
43241
|
+
|
|
43242
|
+
if (info.done) {
|
|
43243
|
+
resolve(value);
|
|
43244
|
+
} else {
|
|
43245
|
+
Promise.resolve(value).then(_next, _throw);
|
|
43246
|
+
}
|
|
43247
|
+
}
|
|
43248
|
+
|
|
43249
|
+
function _asyncToGenerator(fn) {
|
|
43250
|
+
return function () {
|
|
43251
|
+
var self = this,
|
|
43252
|
+
args = arguments;
|
|
43253
|
+
return new Promise(function (resolve, reject) {
|
|
43254
|
+
var gen = fn.apply(self, args);
|
|
43255
|
+
|
|
43256
|
+
function _next(value) {
|
|
43257
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
43258
|
+
}
|
|
43259
|
+
|
|
43260
|
+
function _throw(err) {
|
|
43261
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
43262
|
+
}
|
|
43263
|
+
|
|
43264
|
+
_next(undefined);
|
|
43265
|
+
});
|
|
43266
|
+
};
|
|
43267
|
+
}
|
|
43268
|
+
|
|
43269
|
+
/***/ }),
|
|
43270
|
+
|
|
39649
43271
|
/***/ 106:
|
|
39650
43272
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
39651
43273
|
|
|
@@ -40143,6 +43765,7 @@ var es_string_includes = __webpack_require__(2023);
|
|
|
40143
43765
|
|
|
40144
43766
|
|
|
40145
43767
|
|
|
43768
|
+
/// <reference path="index.d.ts" />
|
|
40146
43769
|
var ctx = __webpack_require__(2584);
|
|
40147
43770
|
|
|
40148
43771
|
var components = ctx.keys().map(function (k) {
|
|
@@ -40157,6 +43780,16 @@ var components = ctx.keys().map(function (k) {
|
|
|
40157
43780
|
/* harmony default export */ var src_0 = ({
|
|
40158
43781
|
// options is an array of components to be registered
|
|
40159
43782
|
// e.g. ['c-button', 'c-modal']
|
|
43783
|
+
|
|
43784
|
+
/**
|
|
43785
|
+
* @typedef {import("vue").App} App
|
|
43786
|
+
*/
|
|
43787
|
+
|
|
43788
|
+
/**
|
|
43789
|
+
* Install plugin in Vue
|
|
43790
|
+
* @param {App} Vue
|
|
43791
|
+
* @param {Array<string>} options
|
|
43792
|
+
*/
|
|
40160
43793
|
install: function install(Vue, options) {
|
|
40161
43794
|
if (typeof options === 'undefined') {
|
|
40162
43795
|
var _iterator = (0,createForOfIteratorHelper/* default */.Z)(components),
|