@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
package/dist/carbon-vue-3.umd.js
CHANGED
|
@@ -226,6 +226,53 @@ function toSVG(descriptor) {
|
|
|
226
226
|
|
|
227
227
|
|
|
228
228
|
|
|
229
|
+
/***/ }),
|
|
230
|
+
|
|
231
|
+
/***/ 5835:
|
|
232
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
233
|
+
|
|
234
|
+
"use strict";
|
|
235
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
236
|
+
/* harmony export */ "Z": function() { return /* binding */ CheckmarkFilled16; }
|
|
237
|
+
/* harmony export */ });
|
|
238
|
+
/* harmony import */ var _utils_148d018d_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5089);
|
|
239
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7203);
|
|
240
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
241
|
+
/**
|
|
242
|
+
* Copyright IBM Corp. 2019, 2020
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
245
|
+
* LICENSE file in the root directory of this source tree.
|
|
246
|
+
*
|
|
247
|
+
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
248
|
+
*/
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
var CheckmarkFilled16 = (0,_utils_148d018d_js__WEBPACK_IMPORTED_MODULE_1__.c)(CheckmarkFilled16, {
|
|
254
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
255
|
+
"viewBox": "0 0 16 16",
|
|
256
|
+
"fill": "currentColor",
|
|
257
|
+
"width": 16,
|
|
258
|
+
"height": 16
|
|
259
|
+
}, [{
|
|
260
|
+
"elem": "path",
|
|
261
|
+
"attrs": {
|
|
262
|
+
"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"
|
|
263
|
+
}
|
|
264
|
+
}, {
|
|
265
|
+
"elem": "path",
|
|
266
|
+
"attrs": {
|
|
267
|
+
"d": "M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z",
|
|
268
|
+
"data-icon-path": "inner-path",
|
|
269
|
+
"opacity": "0"
|
|
270
|
+
}
|
|
271
|
+
}]);
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
229
276
|
/***/ }),
|
|
230
277
|
|
|
231
278
|
/***/ 4325:
|
|
@@ -386,6 +433,91 @@ var Close20 = (0,_utils_148d018d_js__WEBPACK_IMPORTED_MODULE_1__.c)(Close20, {
|
|
|
386
433
|
|
|
387
434
|
|
|
388
435
|
|
|
436
|
+
/***/ }),
|
|
437
|
+
|
|
438
|
+
/***/ 9048:
|
|
439
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
440
|
+
|
|
441
|
+
"use strict";
|
|
442
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
443
|
+
/* harmony export */ "Z": function() { return /* binding */ Information16; }
|
|
444
|
+
/* harmony export */ });
|
|
445
|
+
/* harmony import */ var _utils_148d018d_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5089);
|
|
446
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7203);
|
|
447
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
448
|
+
/**
|
|
449
|
+
* Copyright IBM Corp. 2019, 2020
|
|
450
|
+
*
|
|
451
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
452
|
+
* LICENSE file in the root directory of this source tree.
|
|
453
|
+
*
|
|
454
|
+
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
455
|
+
*/
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
var Information16 = (0,_utils_148d018d_js__WEBPACK_IMPORTED_MODULE_1__.c)(Information16, {
|
|
461
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
462
|
+
"viewBox": "0 0 16 16",
|
|
463
|
+
"fill": "currentColor",
|
|
464
|
+
"width": 16,
|
|
465
|
+
"height": 16
|
|
466
|
+
}, [{
|
|
467
|
+
"elem": "path",
|
|
468
|
+
"attrs": {
|
|
469
|
+
"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"
|
|
470
|
+
}
|
|
471
|
+
}, {
|
|
472
|
+
"elem": "path",
|
|
473
|
+
"attrs": {
|
|
474
|
+
"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"
|
|
475
|
+
}
|
|
476
|
+
}]);
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
/***/ }),
|
|
482
|
+
|
|
483
|
+
/***/ 7360:
|
|
484
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
485
|
+
|
|
486
|
+
"use strict";
|
|
487
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
488
|
+
/* harmony export */ "Z": function() { return /* binding */ Search16; }
|
|
489
|
+
/* harmony export */ });
|
|
490
|
+
/* harmony import */ var _utils_148d018d_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5089);
|
|
491
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7203);
|
|
492
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
493
|
+
/**
|
|
494
|
+
* Copyright IBM Corp. 2019, 2020
|
|
495
|
+
*
|
|
496
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
497
|
+
* LICENSE file in the root directory of this source tree.
|
|
498
|
+
*
|
|
499
|
+
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
500
|
+
*/
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
var Search16 = (0,_utils_148d018d_js__WEBPACK_IMPORTED_MODULE_1__.c)(Search16, {
|
|
506
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
507
|
+
"viewBox": "0 0 16 16",
|
|
508
|
+
"fill": "currentColor",
|
|
509
|
+
"width": 16,
|
|
510
|
+
"height": 16
|
|
511
|
+
}, [{
|
|
512
|
+
"elem": "path",
|
|
513
|
+
"attrs": {
|
|
514
|
+
"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"
|
|
515
|
+
}
|
|
516
|
+
}]);
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
|
|
389
521
|
/***/ }),
|
|
390
522
|
|
|
391
523
|
/***/ 5089:
|
|
@@ -1163,6 +1295,9 @@ var CvButtonConsts = {
|
|
|
1163
1295
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1164
1296
|
|
|
1165
1297
|
"use strict";
|
|
1298
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1299
|
+
/* harmony export */ "Rz": function() { return /* reexport safe */ _CvButtonSkeleton_vue__WEBPACK_IMPORTED_MODULE_3__["default"]; }
|
|
1300
|
+
/* harmony export */ });
|
|
1166
1301
|
/* harmony import */ var _CvButton_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7820);
|
|
1167
1302
|
/* harmony import */ var _CvIconButton_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(130);
|
|
1168
1303
|
/* harmony import */ var _CvButtonSet_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1544);
|
|
@@ -1183,9 +1318,11 @@ var CvButtonConsts = {
|
|
|
1183
1318
|
|
|
1184
1319
|
"use strict";
|
|
1185
1320
|
/* harmony import */ var _CvCheckbox_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2413);
|
|
1321
|
+
/* harmony import */ var _CvCheckboxSkeleton_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2803);
|
|
1322
|
+
|
|
1186
1323
|
|
|
1187
1324
|
|
|
1188
|
-
/* harmony default export */ __webpack_exports__["
|
|
1325
|
+
/* harmony default export */ __webpack_exports__["ZP"] = (_CvCheckbox_vue__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
1189
1326
|
|
|
1190
1327
|
/***/ }),
|
|
1191
1328
|
|
|
@@ -1961,6 +2098,35 @@ var CvTagConsts = {
|
|
|
1961
2098
|
|
|
1962
2099
|
/***/ }),
|
|
1963
2100
|
|
|
2101
|
+
/***/ 4753:
|
|
2102
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2103
|
+
|
|
2104
|
+
"use strict";
|
|
2105
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2106
|
+
/* harmony export */ "Cf": function() { return /* binding */ TipDirections; },
|
|
2107
|
+
/* harmony export */ "FW": function() { return /* binding */ TipAlignments; },
|
|
2108
|
+
/* harmony export */ "dz": function() { return /* binding */ alignments; },
|
|
2109
|
+
/* harmony export */ "qF": function() { return /* binding */ directions; }
|
|
2110
|
+
/* harmony export */ });
|
|
2111
|
+
/* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2479);
|
|
2112
|
+
/* 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__);
|
|
2113
|
+
|
|
2114
|
+
var TipAlignments = {
|
|
2115
|
+
center: 'center',
|
|
2116
|
+
end: 'end',
|
|
2117
|
+
start: 'start'
|
|
2118
|
+
};
|
|
2119
|
+
var TipDirections = {
|
|
2120
|
+
bottom: 'bottom',
|
|
2121
|
+
left: 'left',
|
|
2122
|
+
top: 'top',
|
|
2123
|
+
right: 'right'
|
|
2124
|
+
};
|
|
2125
|
+
var alignments = Object.values(TipAlignments);
|
|
2126
|
+
var directions = Object.values(TipDirections);
|
|
2127
|
+
|
|
2128
|
+
/***/ }),
|
|
2129
|
+
|
|
1964
2130
|
/***/ 3620:
|
|
1965
2131
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1966
2132
|
|
|
@@ -2136,6 +2302,10 @@ var props = {
|
|
|
2136
2302
|
type: [Array, Boolean],
|
|
2137
2303
|
default: undefined
|
|
2138
2304
|
},
|
|
2305
|
+
|
|
2306
|
+
/**
|
|
2307
|
+
* Specify whether the Checkbox is in an indeterminate state
|
|
2308
|
+
*/
|
|
2139
2309
|
mixed: {
|
|
2140
2310
|
type: Boolean,
|
|
2141
2311
|
default: null
|
|
@@ -2511,6 +2681,102 @@ var useIsLight = function useIsLight(props) {
|
|
|
2511
2681
|
return isLight;
|
|
2512
2682
|
};
|
|
2513
2683
|
|
|
2684
|
+
/***/ }),
|
|
2685
|
+
|
|
2686
|
+
/***/ 8497:
|
|
2687
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2688
|
+
|
|
2689
|
+
"use strict";
|
|
2690
|
+
|
|
2691
|
+
// EXPORTS
|
|
2692
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2693
|
+
"rz": function() { return /* reexport */ cvId/* props */.N; },
|
|
2694
|
+
"lX": function() { return /* reexport */ cvId/* useCvId */.l; },
|
|
2695
|
+
"$1": function() { return /* reexport */ useMethods; },
|
|
2696
|
+
"xL": function() { return /* reexport */ useRadio; }
|
|
2697
|
+
});
|
|
2698
|
+
|
|
2699
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
2700
|
+
var cvId = __webpack_require__(780);
|
|
2701
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
2702
|
+
var createForOfIteratorHelper = __webpack_require__(2757);
|
|
2703
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
2704
|
+
var es_object_keys = __webpack_require__(7941);
|
|
2705
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
2706
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
2707
|
+
;// CONCATENATED MODULE: ./src/use/useMethods.js
|
|
2708
|
+
|
|
2709
|
+
|
|
2710
|
+
|
|
2711
|
+
var useMethods = function useMethods(methodDefs) {
|
|
2712
|
+
var methods = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({});
|
|
2713
|
+
var keys = Object.keys(methodDefs);
|
|
2714
|
+
|
|
2715
|
+
var _loop = function _loop() {
|
|
2716
|
+
var key = _keys[_i];
|
|
2717
|
+
|
|
2718
|
+
var _iterator = (0,createForOfIteratorHelper/* default */.Z)(methodDefs[key]),
|
|
2719
|
+
_step;
|
|
2720
|
+
|
|
2721
|
+
try {
|
|
2722
|
+
var _loop2 = function _loop2() {
|
|
2723
|
+
var method = _step.value;
|
|
2724
|
+
|
|
2725
|
+
methods.value[method] = function () {
|
|
2726
|
+
var _methods$value$$refs$;
|
|
2727
|
+
|
|
2728
|
+
(_methods$value$$refs$ = methods.value.$refs[key])[method].apply(_methods$value$$refs$, arguments);
|
|
2729
|
+
};
|
|
2730
|
+
};
|
|
2731
|
+
|
|
2732
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2733
|
+
_loop2();
|
|
2734
|
+
}
|
|
2735
|
+
} catch (err) {
|
|
2736
|
+
_iterator.e(err);
|
|
2737
|
+
} finally {
|
|
2738
|
+
_iterator.f();
|
|
2739
|
+
}
|
|
2740
|
+
};
|
|
2741
|
+
|
|
2742
|
+
for (var _i = 0, _keys = keys; _i < _keys.length; _i++) {
|
|
2743
|
+
_loop();
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
return {
|
|
2747
|
+
methods: methods
|
|
2748
|
+
};
|
|
2749
|
+
};
|
|
2750
|
+
;// CONCATENATED MODULE: ./src/use/useRadio.js
|
|
2751
|
+
|
|
2752
|
+
var useRadio = function useRadio(props, emit) {
|
|
2753
|
+
var isChecked = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
2754
|
+
if (props.modelValue === undefined) {
|
|
2755
|
+
return props.checked;
|
|
2756
|
+
} else {
|
|
2757
|
+
return props.modelValue === props.value;
|
|
2758
|
+
}
|
|
2759
|
+
});
|
|
2760
|
+
var onRadioItemChange = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('onRadioItemChange', function () {});
|
|
2761
|
+
|
|
2762
|
+
var onChange = function onChange() {
|
|
2763
|
+
onRadioItemChange(props.value); // emit to parent
|
|
2764
|
+
|
|
2765
|
+
emit('update:modelValue', props.value); // emit for v-model
|
|
2766
|
+
|
|
2767
|
+
emit('change', props.value);
|
|
2768
|
+
};
|
|
2769
|
+
|
|
2770
|
+
return {
|
|
2771
|
+
isChecked: isChecked,
|
|
2772
|
+
onChange: onChange
|
|
2773
|
+
};
|
|
2774
|
+
};
|
|
2775
|
+
;// CONCATENATED MODULE: ./src/use/index.js
|
|
2776
|
+
|
|
2777
|
+
|
|
2778
|
+
|
|
2779
|
+
|
|
2514
2780
|
/***/ }),
|
|
2515
2781
|
|
|
2516
2782
|
/***/ 8118:
|
|
@@ -3718,29 +3984,51 @@ var _hoisted_2 = ["for"];
|
|
|
3718
3984
|
/* harmony default export */ var CvCheckboxvue_type_script_setup_true_lang_js = ({
|
|
3719
3985
|
__name: 'CvCheckbox',
|
|
3720
3986
|
props: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
|
|
3987
|
+
/**
|
|
3988
|
+
* Specify whether the label should be hidden, or not
|
|
3989
|
+
*/
|
|
3721
3990
|
hideLabel: {
|
|
3722
3991
|
type: Boolean,
|
|
3723
3992
|
default: null
|
|
3724
3993
|
},
|
|
3994
|
+
|
|
3995
|
+
/**
|
|
3996
|
+
* Provide a label to provide a description of the Checkbox input that you are exposing to the user
|
|
3997
|
+
*/
|
|
3725
3998
|
label: {
|
|
3726
3999
|
type: String,
|
|
3727
4000
|
default: null
|
|
3728
4001
|
},
|
|
4002
|
+
|
|
4003
|
+
/**
|
|
4004
|
+
* Specify whether the "bx--form-item" style should be applied
|
|
4005
|
+
*/
|
|
3729
4006
|
formItem: {
|
|
3730
4007
|
type: Boolean,
|
|
3731
4008
|
default: true
|
|
3732
4009
|
},
|
|
4010
|
+
|
|
4011
|
+
/**
|
|
4012
|
+
* Specify whether the "bx--checkbox--inline" style should be applied
|
|
4013
|
+
*/
|
|
3733
4014
|
inline: {
|
|
3734
4015
|
type: Boolean,
|
|
3735
4016
|
default: false
|
|
4017
|
+
},
|
|
4018
|
+
|
|
4019
|
+
/**
|
|
4020
|
+
* Specify whether the Checkbox should be disabled
|
|
4021
|
+
*/
|
|
4022
|
+
disabled: {
|
|
4023
|
+
type: Boolean,
|
|
4024
|
+
default: false
|
|
3736
4025
|
}
|
|
3737
4026
|
}, cvCheck/* props */.N), use_cvId/* props */.N),
|
|
3738
4027
|
emits: ['update:modelValue', 'change'],
|
|
3739
4028
|
setup: function setup(__props, _ref) {
|
|
3740
|
-
var _this = this;
|
|
3741
|
-
|
|
3742
4029
|
var emit = _ref.emit;
|
|
3743
|
-
var props = __props; //
|
|
4030
|
+
var props = __props; // noinspection ES6PreferShortImport
|
|
4031
|
+
// Track focus
|
|
3744
4032
|
|
|
3745
4033
|
var hasFocus = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
3746
4034
|
|
|
@@ -3779,7 +4067,7 @@ var _hoisted_2 = ["for"];
|
|
|
3779
4067
|
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId)
|
|
3780
4068
|
}), null, 16, _hoisted_1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
3781
4069
|
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
3782
|
-
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"),
|
|
4070
|
+
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)])
|
|
3783
4071
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
3784
4072
|
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)]),
|
|
3785
4073
|
dir: "auto"
|
|
@@ -3799,7 +4087,55 @@ const __exports__ = CvCheckboxvue_type_script_setup_true_lang_js;
|
|
|
3799
4087
|
|
|
3800
4088
|
/***/ }),
|
|
3801
4089
|
|
|
3802
|
-
/***/
|
|
4090
|
+
/***/ 2803:
|
|
4091
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4092
|
+
|
|
4093
|
+
"use strict";
|
|
4094
|
+
// ESM COMPAT FLAG
|
|
4095
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4096
|
+
|
|
4097
|
+
// EXPORTS
|
|
4098
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
4099
|
+
"default": function() { return /* binding */ CvCheckboxSkeleton; }
|
|
4100
|
+
});
|
|
4101
|
+
|
|
4102
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
4103
|
+
var es_array_concat = __webpack_require__(2222);
|
|
4104
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
4105
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
4106
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
4107
|
+
var settings = __webpack_require__(8343);
|
|
4108
|
+
;// 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-82.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
|
|
4109
|
+
|
|
4110
|
+
|
|
4111
|
+
|
|
4112
|
+
/* harmony default export */ var CvCheckboxSkeletonvue_type_script_setup_true_lang_js = ({
|
|
4113
|
+
__name: 'CvCheckboxSkeleton',
|
|
4114
|
+
setup: function setup(__props) {
|
|
4115
|
+
return function (_ctx, _cache) {
|
|
4116
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
4117
|
+
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")])
|
|
4118
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
4119
|
+
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"))
|
|
4120
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
4121
|
+
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"))
|
|
4122
|
+
}, null, 2)], 2)], 2);
|
|
4123
|
+
};
|
|
4124
|
+
}
|
|
4125
|
+
});
|
|
4126
|
+
;// CONCATENATED MODULE: ./src/components/CvCheckbox/CvCheckboxSkeleton.vue?vue&type=script&setup=true&lang=js
|
|
4127
|
+
|
|
4128
|
+
;// CONCATENATED MODULE: ./src/components/CvCheckbox/CvCheckboxSkeleton.vue
|
|
4129
|
+
|
|
4130
|
+
|
|
4131
|
+
|
|
4132
|
+
const __exports__ = CvCheckboxSkeletonvue_type_script_setup_true_lang_js;
|
|
4133
|
+
|
|
4134
|
+
/* harmony default export */ var CvCheckboxSkeleton = (__exports__);
|
|
4135
|
+
|
|
4136
|
+
/***/ }),
|
|
4137
|
+
|
|
4138
|
+
/***/ 1565:
|
|
3803
4139
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3804
4140
|
|
|
3805
4141
|
"use strict";
|
|
@@ -3913,10 +4249,8 @@ function _CviCodeSnippetInlinevue_type_template_id_c4d3e73e_render(_ctx, _cache,
|
|
|
3913
4249
|
|
|
3914
4250
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
3915
4251
|
var defineProperty = __webpack_require__(4186);
|
|
3916
|
-
// EXTERNAL MODULE: ./src/use/
|
|
3917
|
-
var
|
|
3918
|
-
;// CONCATENATED MODULE: ./src/use/index.js
|
|
3919
|
-
|
|
4252
|
+
// EXTERNAL MODULE: ./src/use/index.js + 2 modules
|
|
4253
|
+
var use = __webpack_require__(8497);
|
|
3920
4254
|
// EXTERNAL MODULE: ./src/components/CvCopyButton/_CviCopyButton.vue + 4 modules
|
|
3921
4255
|
var _CviCopyButton = __webpack_require__(5688);
|
|
3922
4256
|
;// 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-82.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
|
|
@@ -3958,7 +4292,7 @@ var _CviCopyButton = __webpack_require__(5688);
|
|
|
3958
4292
|
},
|
|
3959
4293
|
setup: function setup(props, _ref) {
|
|
3960
4294
|
var emit = _ref.emit;
|
|
3961
|
-
var codeId = (0,
|
|
4295
|
+
var codeId = (0,use/* useCvId */.lX)();
|
|
3962
4296
|
var classes = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
3963
4297
|
var _ref2;
|
|
3964
4298
|
|
|
@@ -5813,7 +6147,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(_CviCopyButtonv
|
|
|
5813
6147
|
|
|
5814
6148
|
/***/ }),
|
|
5815
6149
|
|
|
5816
|
-
/***/
|
|
6150
|
+
/***/ 8597:
|
|
5817
6151
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5818
6152
|
|
|
5819
6153
|
"use strict";
|
|
@@ -5873,38 +6207,10 @@ var CvPagination = __webpack_require__(1442);
|
|
|
5873
6207
|
|
|
5874
6208
|
|
|
5875
6209
|
/* harmony default export */ var components_CvPagination = (CvPagination["default"]);
|
|
5876
|
-
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/
|
|
5877
|
-
var
|
|
5878
|
-
;// CONCATENATED MODULE: ./node_modules/@carbon/icons-vue/es/search/16.js
|
|
5879
|
-
/**
|
|
5880
|
-
* Copyright IBM Corp. 2019, 2020
|
|
5881
|
-
*
|
|
5882
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
5883
|
-
* LICENSE file in the root directory of this source tree.
|
|
5884
|
-
*
|
|
5885
|
-
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
5886
|
-
*/
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
var Search16 = (0,utils_148d018d.c)(Search16, {
|
|
5892
|
-
"xmlns": "http://www.w3.org/2000/svg",
|
|
5893
|
-
"viewBox": "0 0 16 16",
|
|
5894
|
-
"fill": "currentColor",
|
|
5895
|
-
"width": 16,
|
|
5896
|
-
"height": 16
|
|
5897
|
-
}, [{
|
|
5898
|
-
"elem": "path",
|
|
5899
|
-
"attrs": {
|
|
5900
|
-
"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"
|
|
5901
|
-
}
|
|
5902
|
-
}]);
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
6210
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/search/16.js
|
|
6211
|
+
var _16 = __webpack_require__(7360);
|
|
5906
6212
|
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/close/16.js
|
|
5907
|
-
var
|
|
6213
|
+
var close_16 = __webpack_require__(2148);
|
|
5908
6214
|
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/chevron--right/16.js
|
|
5909
6215
|
var chevron_right_16 = __webpack_require__(5278);
|
|
5910
6216
|
// EXTERNAL MODULE: ./src/global/component-utils/event-bus.js + 1 modules
|
|
@@ -6543,7 +6849,7 @@ var _hoisted_10 = {
|
|
|
6543
6849
|
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")),
|
|
6544
6850
|
ref_key: "magnifier",
|
|
6545
6851
|
ref: magnifier
|
|
6546
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(
|
|
6852
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(_16/* default */.Z), {
|
|
6547
6853
|
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"))
|
|
6548
6854
|
}, null, 8, ["class"])], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
6549
6855
|
id: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid), "-search"),
|
|
@@ -6580,7 +6886,7 @@ var _hoisted_10 = {
|
|
|
6580
6886
|
"aria-label": __props.searchClearLabel,
|
|
6581
6887
|
onClick: onClearClick,
|
|
6582
6888
|
type: "button"
|
|
6583
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(
|
|
6889
|
+
}, [(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", {
|
|
6584
6890
|
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"))
|
|
6585
6891
|
}, [((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, {
|
|
6586
6892
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
@@ -6603,7 +6909,7 @@ var _hoisted_10 = {
|
|
|
6603
6909
|
}, 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", {
|
|
6604
6910
|
key: 1,
|
|
6605
6911
|
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"))
|
|
6606
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(CvCheckbox/* default */.
|
|
6912
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(CvCheckbox/* default */.ZP), {
|
|
6607
6913
|
"form-item": false,
|
|
6608
6914
|
value: "headingCheck",
|
|
6609
6915
|
modelValue: headingChecked.value,
|
|
@@ -7087,14 +7393,15 @@ var es_object_to_string = __webpack_require__(1539);
|
|
|
7087
7393
|
var es_array_find = __webpack_require__(9826);
|
|
7088
7394
|
// EXTERNAL MODULE: ./src/components/CvCheckbox/index.js
|
|
7089
7395
|
var CvCheckbox = __webpack_require__(521);
|
|
7090
|
-
// EXTERNAL MODULE: ./src/components/CvOverflowMenu/CvOverflowMenu.vue +
|
|
7091
|
-
var CvOverflowMenu = __webpack_require__(
|
|
7396
|
+
// EXTERNAL MODULE: ./src/components/CvOverflowMenu/CvOverflowMenu.vue + 3 modules
|
|
7397
|
+
var CvOverflowMenu = __webpack_require__(824);
|
|
7398
|
+
// EXTERNAL MODULE: ./src/components/CvOverflowMenu/CvOverflowMenuItem.vue + 2 modules
|
|
7399
|
+
var CvOverflowMenuItem = __webpack_require__(8779);
|
|
7092
7400
|
;// CONCATENATED MODULE: ./src/components/CvOverflowMenu/index.js
|
|
7093
7401
|
|
|
7094
7402
|
|
|
7403
|
+
|
|
7095
7404
|
/* harmony default export */ var components_CvOverflowMenu = (CvOverflowMenu["default"]);
|
|
7096
|
-
// EXTERNAL MODULE: ./src/components/CvOverflowMenu/CvOverflowMenuItem.vue + 2 modules
|
|
7097
|
-
var CvOverflowMenuItem = __webpack_require__(8779);
|
|
7098
7405
|
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/chevron--right/16.js
|
|
7099
7406
|
var _16 = __webpack_require__(5278);
|
|
7100
7407
|
// EXTERNAL MODULE: ./src/components/CvDataTable/cvDataTableStore.js
|
|
@@ -7254,7 +7561,7 @@ var _hoisted_3 = {
|
|
|
7254
7561
|
}, 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", {
|
|
7255
7562
|
key: 1,
|
|
7256
7563
|
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"))
|
|
7257
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(CvCheckbox/* default */.
|
|
7564
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(CvCheckbox/* default */.ZP), {
|
|
7258
7565
|
"form-item": false,
|
|
7259
7566
|
value: __props.value,
|
|
7260
7567
|
inline: true,
|
|
@@ -7480,8 +7787,8 @@ var es_array_map = __webpack_require__(1249);
|
|
|
7480
7787
|
var es_array_fill = __webpack_require__(3290);
|
|
7481
7788
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
7482
7789
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
7483
|
-
// EXTERNAL MODULE: ./src/components/CvDataTable/CvDataTable.vue +
|
|
7484
|
-
var CvDataTable = __webpack_require__(
|
|
7790
|
+
// EXTERNAL MODULE: ./src/components/CvDataTable/CvDataTable.vue + 3 modules
|
|
7791
|
+
var CvDataTable = __webpack_require__(8597);
|
|
7485
7792
|
;// 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-82.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
|
|
7486
7793
|
|
|
7487
7794
|
|
|
@@ -11255,8 +11562,6 @@ var _hoisted_7 = ["aria-disabled"];
|
|
|
11255
11562
|
var el = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
11256
11563
|
|
|
11257
11564
|
function onClickOut() {
|
|
11258
|
-
// eslint-disable-next-line no-console
|
|
11259
|
-
console.log('onClickOut');
|
|
11260
11565
|
open.value = false;
|
|
11261
11566
|
}
|
|
11262
11567
|
|
|
@@ -11675,6 +11980,583 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(script, [['rend
|
|
|
11675
11980
|
|
|
11676
11981
|
/***/ }),
|
|
11677
11982
|
|
|
11983
|
+
/***/ 6689:
|
|
11984
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11985
|
+
|
|
11986
|
+
"use strict";
|
|
11987
|
+
// ESM COMPAT FLAG
|
|
11988
|
+
__webpack_require__.r(__webpack_exports__);
|
|
11989
|
+
|
|
11990
|
+
// EXPORTS
|
|
11991
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
11992
|
+
"default": function() { return /* binding */ CvFileUploader; }
|
|
11993
|
+
});
|
|
11994
|
+
|
|
11995
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
11996
|
+
var defineProperty = __webpack_require__(4186);
|
|
11997
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
11998
|
+
var createForOfIteratorHelper = __webpack_require__(2757);
|
|
11999
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
12000
|
+
var objectSpread2 = __webpack_require__(5175);
|
|
12001
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
12002
|
+
var es_object_assign = __webpack_require__(9601);
|
|
12003
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.values.js
|
|
12004
|
+
var es_object_values = __webpack_require__(2479);
|
|
12005
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
12006
|
+
var es_array_includes = __webpack_require__(6699);
|
|
12007
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
12008
|
+
var es_string_includes = __webpack_require__(2023);
|
|
12009
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
12010
|
+
var es_array_map = __webpack_require__(1249);
|
|
12011
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
12012
|
+
var es_regexp_exec = __webpack_require__(4916);
|
|
12013
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
12014
|
+
var es_string_split = __webpack_require__(3123);
|
|
12015
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
12016
|
+
var es_string_trim = __webpack_require__(3210);
|
|
12017
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
12018
|
+
var es_function_name = __webpack_require__(8309);
|
|
12019
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
12020
|
+
var es_array_find = __webpack_require__(9826);
|
|
12021
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
12022
|
+
var es_object_to_string = __webpack_require__(1539);
|
|
12023
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
12024
|
+
var es_array_splice = __webpack_require__(561);
|
|
12025
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
12026
|
+
var es_array_concat = __webpack_require__(2222);
|
|
12027
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
12028
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
12029
|
+
// EXTERNAL MODULE: ./src/components/CvFileUploader/CvFileUploaderItem.vue + 2 modules
|
|
12030
|
+
var CvFileUploaderItem = __webpack_require__(2539);
|
|
12031
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
12032
|
+
var settings = __webpack_require__(8343);
|
|
12033
|
+
// EXTERNAL MODULE: ./src/components/CvForm/CvForm.vue + 2 modules
|
|
12034
|
+
var CvForm = __webpack_require__(9067);
|
|
12035
|
+
// EXTERNAL MODULE: ./src/components/CvForm/CvFormGroup.vue + 2 modules
|
|
12036
|
+
var CvFormGroup = __webpack_require__(6009);
|
|
12037
|
+
// EXTERNAL MODULE: ./src/components/CvForm/CvFormItem.vue + 2 modules
|
|
12038
|
+
var CvFormItem = __webpack_require__(9535);
|
|
12039
|
+
;// CONCATENATED MODULE: ./src/components/CvForm/index.js
|
|
12040
|
+
|
|
12041
|
+
|
|
12042
|
+
|
|
12043
|
+
|
|
12044
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
12045
|
+
var use_cvId = __webpack_require__(780);
|
|
12046
|
+
;// CONCATENATED MODULE: ./src/components/CvFileUploader/const.js
|
|
12047
|
+
var STATES = {
|
|
12048
|
+
NONE: '',
|
|
12049
|
+
UPLOADING: 'uploading',
|
|
12050
|
+
COMPLETE: 'complete'
|
|
12051
|
+
};
|
|
12052
|
+
var KINDS = {
|
|
12053
|
+
DRAG_TARGET: 'drag-target',
|
|
12054
|
+
BUTTON: 'button'
|
|
12055
|
+
};
|
|
12056
|
+
// EXTERNAL MODULE: ./src/components/CvButton/CvButtonCommon.js
|
|
12057
|
+
var CvButtonCommon = __webpack_require__(1795);
|
|
12058
|
+
;// 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-82.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
|
|
12059
|
+
|
|
12060
|
+
|
|
12061
|
+
|
|
12062
|
+
|
|
12063
|
+
|
|
12064
|
+
|
|
12065
|
+
|
|
12066
|
+
|
|
12067
|
+
|
|
12068
|
+
|
|
12069
|
+
|
|
12070
|
+
|
|
12071
|
+
|
|
12072
|
+
|
|
12073
|
+
|
|
12074
|
+
|
|
12075
|
+
|
|
12076
|
+
var _hoisted_1 = ["for", "onKeydown"];
|
|
12077
|
+
var _hoisted_2 = ["id", "accept"];
|
|
12078
|
+
var _hoisted_3 = ["for"];
|
|
12079
|
+
var _hoisted_4 = ["onKeydown"];
|
|
12080
|
+
var _hoisted_5 = ["id", "accept"];
|
|
12081
|
+
|
|
12082
|
+
|
|
12083
|
+
|
|
12084
|
+
|
|
12085
|
+
|
|
12086
|
+
|
|
12087
|
+
|
|
12088
|
+
var __default__ = {
|
|
12089
|
+
inheritAttrs: false
|
|
12090
|
+
};
|
|
12091
|
+
/* harmony default export */ var CvFileUploadervue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
12092
|
+
__name: 'CvFileUploader',
|
|
12093
|
+
props: (0,objectSpread2/* default */.Z)({
|
|
12094
|
+
accept: String,
|
|
12095
|
+
buttonKind: CvButtonCommon/* props.kind */.N.kind,
|
|
12096
|
+
buttonLabel: {
|
|
12097
|
+
type: String,
|
|
12098
|
+
default: undefined,
|
|
12099
|
+
deprecated: true,
|
|
12100
|
+
validator: function validator(val) {
|
|
12101
|
+
if (val !== undefined && "production" === 'development') {}
|
|
12102
|
+
|
|
12103
|
+
return true;
|
|
12104
|
+
}
|
|
12105
|
+
},
|
|
12106
|
+
buttonSize: CvButtonCommon/* props.size */.N.size,
|
|
12107
|
+
clearOnReselect: Boolean,
|
|
12108
|
+
dropTargetLabel: String,
|
|
12109
|
+
helperText: String,
|
|
12110
|
+
kind: {
|
|
12111
|
+
type: String,
|
|
12112
|
+
default: KINDS.DRAG_TARGET,
|
|
12113
|
+
validator: function validator(val) {
|
|
12114
|
+
var validValues = Object.values(KINDS);
|
|
12115
|
+
|
|
12116
|
+
if (!validValues.includes(val)) {
|
|
12117
|
+
console.warn("CvFileUploader: valid values for 'kind' are ".concat(validValues));
|
|
12118
|
+
}
|
|
12119
|
+
|
|
12120
|
+
return true;
|
|
12121
|
+
}
|
|
12122
|
+
},
|
|
12123
|
+
label: String,
|
|
12124
|
+
modelValue: Array,
|
|
12125
|
+
removable: Boolean,
|
|
12126
|
+
removeAriaLabel: String
|
|
12127
|
+
}, use_cvId/* props */.N),
|
|
12128
|
+
emits: ['update:modelValue'],
|
|
12129
|
+
setup: function setup(__props, _ref) {
|
|
12130
|
+
var __expose = _ref.expose,
|
|
12131
|
+
emit = _ref.emit;
|
|
12132
|
+
var props = __props; // DOM Elements
|
|
12133
|
+
|
|
12134
|
+
var fileInput = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null); // Data
|
|
12135
|
+
|
|
12136
|
+
var allowDrop = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
12137
|
+
var internalFiles = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]); // Computed
|
|
12138
|
+
|
|
12139
|
+
var _useCvButtonCommon = (0,CvButtonCommon/* useCvButtonCommon */.y)(props.buttonKind, props.buttonSize),
|
|
12140
|
+
buttonClasses = _useCvButtonCommon.buttonClasses;
|
|
12141
|
+
|
|
12142
|
+
var cvId = (0,use_cvId/* useCvId */.l)(props);
|
|
12143
|
+
var internalDropTargetLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
12144
|
+
return props.dropTargetLabel || props.buttonLabel || 'Drag and drop files here or upload';
|
|
12145
|
+
});
|
|
12146
|
+
var isFileTypeAllowed = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
12147
|
+
var acceptAny = !props.accept;
|
|
12148
|
+
var allowedTypes = props.accept ? props.accept.split(',').map(function (x) {
|
|
12149
|
+
return x.trim();
|
|
12150
|
+
}) : [];
|
|
12151
|
+
|
|
12152
|
+
if (allowedTypes.includes('.jpg')) {
|
|
12153
|
+
allowedTypes.push('.jpeg');
|
|
12154
|
+
}
|
|
12155
|
+
|
|
12156
|
+
return function (file) {
|
|
12157
|
+
if (acceptAny) return true;
|
|
12158
|
+
var extension = '.' + file.name.split('.').pop();
|
|
12159
|
+
return allowedTypes.includes(file.type) || allowedTypes.includes(extension);
|
|
12160
|
+
};
|
|
12161
|
+
}); // Watchers
|
|
12162
|
+
|
|
12163
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(function () {
|
|
12164
|
+
return props.modelValue;
|
|
12165
|
+
}, function (newValue) {
|
|
12166
|
+
internalFiles.value = newValue || [];
|
|
12167
|
+
}); // Methods
|
|
12168
|
+
|
|
12169
|
+
function addFiles(files) {
|
|
12170
|
+
var _iterator = (0,createForOfIteratorHelper/* default */.Z)(files),
|
|
12171
|
+
_step;
|
|
12172
|
+
|
|
12173
|
+
try {
|
|
12174
|
+
var _loop = function _loop() {
|
|
12175
|
+
var file = _step.value;
|
|
12176
|
+
var internalFile = internalFiles.value.find(function (item) {
|
|
12177
|
+
return item.file.name === file.name;
|
|
12178
|
+
});
|
|
12179
|
+
var newFile = createInternalFile((internalFile === null || internalFile === void 0 ? void 0 : internalFile.file) || file);
|
|
12180
|
+
|
|
12181
|
+
if (internalFile) {
|
|
12182
|
+
internalFile.state = newFile.initialState;
|
|
12183
|
+
internalFile.invalidMessageTitle = newFile.invalidMessageTitle;
|
|
12184
|
+
internalFile.invalidMessage = newFile.invalidMessage;
|
|
12185
|
+
} else {
|
|
12186
|
+
internalFiles.value.push(newFile);
|
|
12187
|
+
}
|
|
12188
|
+
};
|
|
12189
|
+
|
|
12190
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
12191
|
+
_loop();
|
|
12192
|
+
} // clear input we do not need to maintain it
|
|
12193
|
+
|
|
12194
|
+
} catch (err) {
|
|
12195
|
+
_iterator.e(err);
|
|
12196
|
+
} finally {
|
|
12197
|
+
_iterator.f();
|
|
12198
|
+
}
|
|
12199
|
+
|
|
12200
|
+
fileInput.value.value = '';
|
|
12201
|
+
emit('update:modelValue', internalFiles.value);
|
|
12202
|
+
}
|
|
12203
|
+
|
|
12204
|
+
function createInternalFile(file) {
|
|
12205
|
+
var initialState = props.initialStateUploading ? STATES.UPLOADING : STATES.NONE;
|
|
12206
|
+
var isTypeNotAllowed = !isFileTypeAllowed.value(file);
|
|
12207
|
+
var invalidMessageTitle = isTypeNotAllowed ? 'Invalid file type' : '';
|
|
12208
|
+
var invalidMessage = isTypeNotAllowed ? "\"".concat(file.name, "\" does not have a valid file type.") : '';
|
|
12209
|
+
return {
|
|
12210
|
+
state: initialState,
|
|
12211
|
+
file: file,
|
|
12212
|
+
invalidMessageTitle: invalidMessageTitle,
|
|
12213
|
+
invalidMessage: invalidMessage
|
|
12214
|
+
};
|
|
12215
|
+
}
|
|
12216
|
+
|
|
12217
|
+
function onChange(ev) {
|
|
12218
|
+
if (ev.target.files.length !== 0 && props.clearOnReselect) {
|
|
12219
|
+
internalFiles.value = [];
|
|
12220
|
+
}
|
|
12221
|
+
|
|
12222
|
+
addFiles(ev.target.files);
|
|
12223
|
+
}
|
|
12224
|
+
|
|
12225
|
+
function onDragEvent(evt) {
|
|
12226
|
+
if (Array.prototype.indexOf.call(evt.dataTransfer.types, 'Files') === -1) {
|
|
12227
|
+
return;
|
|
12228
|
+
}
|
|
12229
|
+
|
|
12230
|
+
if (evt.type === 'dragleave') {
|
|
12231
|
+
allowDrop.value = false;
|
|
12232
|
+
return;
|
|
12233
|
+
}
|
|
12234
|
+
|
|
12235
|
+
if (evt.type === 'dragover') {
|
|
12236
|
+
evt.preventDefault();
|
|
12237
|
+
var dropEffect = 'copy';
|
|
12238
|
+
|
|
12239
|
+
if (Array.isArray(evt.dataTransfer.types)) {
|
|
12240
|
+
try {
|
|
12241
|
+
// IE11 throws a "permission denied" error accessing `.effectAllowed`
|
|
12242
|
+
evt.dataTransfer.effectAllowed = dropEffect;
|
|
12243
|
+
} catch (e) {// ignore
|
|
12244
|
+
}
|
|
12245
|
+
}
|
|
12246
|
+
|
|
12247
|
+
evt.dataTransfer.dropEffect = dropEffect;
|
|
12248
|
+
allowDrop.value = true;
|
|
12249
|
+
}
|
|
12250
|
+
|
|
12251
|
+
if (evt.type === 'drop') {
|
|
12252
|
+
evt.preventDefault();
|
|
12253
|
+
addFiles(evt.dataTransfer.files);
|
|
12254
|
+
allowDrop.value = false;
|
|
12255
|
+
}
|
|
12256
|
+
}
|
|
12257
|
+
|
|
12258
|
+
function onItemRemove(index) {
|
|
12259
|
+
internalFiles.value.splice(index, 1);
|
|
12260
|
+
emit('update:modelValue', this.internalFiles);
|
|
12261
|
+
}
|
|
12262
|
+
|
|
12263
|
+
function onKeyHit() {
|
|
12264
|
+
fileInput.value.click();
|
|
12265
|
+
} // Lifecycle Hooks
|
|
12266
|
+
|
|
12267
|
+
|
|
12268
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(function () {
|
|
12269
|
+
internalFiles.value = props.modelValue || [];
|
|
12270
|
+
}); // exposed methods
|
|
12271
|
+
|
|
12272
|
+
__expose({
|
|
12273
|
+
setState: function setState(index, state) {
|
|
12274
|
+
if ([STATES.COMPLETE, STATES.UPLOADING, STATES.NONE].includes(state)) {
|
|
12275
|
+
internalFiles.value[index].state = state;
|
|
12276
|
+
}
|
|
12277
|
+
},
|
|
12278
|
+
clear: function clear() {
|
|
12279
|
+
internalFiles.value = [];
|
|
12280
|
+
emit('update:modelValue', internalFiles);
|
|
12281
|
+
},
|
|
12282
|
+
setInvalidMessage: function setInvalidMessage(index, message) {
|
|
12283
|
+
internalFiles.value[index].invalidMessage = message;
|
|
12284
|
+
},
|
|
12285
|
+
remove: onItemRemove
|
|
12286
|
+
});
|
|
12287
|
+
|
|
12288
|
+
return function (_ctx, _cache) {
|
|
12289
|
+
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"]), {
|
|
12290
|
+
class: "cv-file-uploader"
|
|
12291
|
+
}, {
|
|
12292
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
12293
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", {
|
|
12294
|
+
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"))
|
|
12295
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.label), 3), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", {
|
|
12296
|
+
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"))
|
|
12297
|
+
}, (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", {
|
|
12298
|
+
key: 0,
|
|
12299
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file")),
|
|
12300
|
+
"data-file": ""
|
|
12301
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
12302
|
+
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
12303
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(buttonClasses)),
|
|
12304
|
+
tabindex: "0",
|
|
12305
|
+
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"])]
|
|
12306
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "drop-target", {}, function () {
|
|
12307
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(internalDropTargetLabel.value), 1)];
|
|
12308
|
+
})], 42, _hoisted_1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
12309
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
12310
|
+
ref_key: "fileInput",
|
|
12311
|
+
ref: fileInput,
|
|
12312
|
+
class: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file-input"),
|
|
12313
|
+
accept: __props.accept,
|
|
12314
|
+
type: "file"
|
|
12315
|
+
}, _ctx.$attrs, {
|
|
12316
|
+
"data-file-uploader": "",
|
|
12317
|
+
"data-target": "[data-file-container]",
|
|
12318
|
+
onChange: onChange
|
|
12319
|
+
}), null, 16, _hoisted_2)], 2)) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
12320
|
+
key: 1,
|
|
12321
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file")),
|
|
12322
|
+
"data-file": ""
|
|
12323
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
12324
|
+
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId)
|
|
12325
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
12326
|
+
role: "button",
|
|
12327
|
+
tabindex: "0",
|
|
12328
|
+
"data-file-drop-container": "",
|
|
12329
|
+
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)]),
|
|
12330
|
+
onDragover: onDragEvent,
|
|
12331
|
+
onDragleave: onDragEvent,
|
|
12332
|
+
onDrop: onDragEvent,
|
|
12333
|
+
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"])]
|
|
12334
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "drop-target", {}, function () {
|
|
12335
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(internalDropTargetLabel.value), 1)];
|
|
12336
|
+
})], 42, _hoisted_4), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
12337
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
12338
|
+
ref_key: "fileInput",
|
|
12339
|
+
ref: fileInput,
|
|
12340
|
+
class: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--file-input"),
|
|
12341
|
+
accept: __props.accept,
|
|
12342
|
+
type: "file"
|
|
12343
|
+
}, _ctx.$attrs, {
|
|
12344
|
+
tabindex: "-1",
|
|
12345
|
+
"data-file-uploader": "",
|
|
12346
|
+
"data-target": "[data-file-container]",
|
|
12347
|
+
onChange: onChange
|
|
12348
|
+
}), null, 16, _hoisted_5)], 8, _hoisted_3)], 2)), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
12349
|
+
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")),
|
|
12350
|
+
"data-file-container": ""
|
|
12351
|
+
}, [((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) {
|
|
12352
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(CvFileUploaderItem["default"], {
|
|
12353
|
+
key: item.file.name,
|
|
12354
|
+
item: item,
|
|
12355
|
+
removable: __props.removable,
|
|
12356
|
+
removeAriaLabel: __props.removeAriaLabel,
|
|
12357
|
+
onRemove: function onRemove($event) {
|
|
12358
|
+
return onItemRemove(index);
|
|
12359
|
+
}
|
|
12360
|
+
}, null, 8, ["item", "removable", "removeAriaLabel", "onRemove"]);
|
|
12361
|
+
}), 128))], 2)];
|
|
12362
|
+
}),
|
|
12363
|
+
_: 3
|
|
12364
|
+
});
|
|
12365
|
+
};
|
|
12366
|
+
}
|
|
12367
|
+
}));
|
|
12368
|
+
;// CONCATENATED MODULE: ./src/components/CvFileUploader/CvFileUploader.vue?vue&type=script&setup=true&lang=js
|
|
12369
|
+
|
|
12370
|
+
;// CONCATENATED MODULE: ./src/components/CvFileUploader/CvFileUploader.vue
|
|
12371
|
+
|
|
12372
|
+
|
|
12373
|
+
|
|
12374
|
+
const __exports__ = CvFileUploadervue_type_script_setup_true_lang_js;
|
|
12375
|
+
|
|
12376
|
+
/* harmony default export */ var CvFileUploader = (__exports__);
|
|
12377
|
+
|
|
12378
|
+
/***/ }),
|
|
12379
|
+
|
|
12380
|
+
/***/ 2539:
|
|
12381
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12382
|
+
|
|
12383
|
+
"use strict";
|
|
12384
|
+
// ESM COMPAT FLAG
|
|
12385
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12386
|
+
|
|
12387
|
+
// EXPORTS
|
|
12388
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
12389
|
+
"default": function() { return /* binding */ CvFileUploaderItem; }
|
|
12390
|
+
});
|
|
12391
|
+
|
|
12392
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
12393
|
+
var defineProperty = __webpack_require__(4186);
|
|
12394
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
12395
|
+
var es_function_name = __webpack_require__(8309);
|
|
12396
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
12397
|
+
var es_array_concat = __webpack_require__(2222);
|
|
12398
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
12399
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
12400
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
12401
|
+
var settings = __webpack_require__(8343);
|
|
12402
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/checkmark--filled/16.js
|
|
12403
|
+
var _16 = __webpack_require__(5835);
|
|
12404
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/warning--filled/16.js
|
|
12405
|
+
var warning_filled_16 = __webpack_require__(8870);
|
|
12406
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/close/16.js
|
|
12407
|
+
var close_16 = __webpack_require__(2148);
|
|
12408
|
+
;// 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-82.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
|
|
12409
|
+
|
|
12410
|
+
|
|
12411
|
+
|
|
12412
|
+
|
|
12413
|
+
var _hoisted_1 = ["title"];
|
|
12414
|
+
var _hoisted_2 = ["alt", "arial-label"];
|
|
12415
|
+
|
|
12416
|
+
|
|
12417
|
+
|
|
12418
|
+
|
|
12419
|
+
|
|
12420
|
+
/* harmony default export */ var CvFileUploaderItemvue_type_script_setup_true_lang_js = ({
|
|
12421
|
+
__name: 'CvFileUploaderItem',
|
|
12422
|
+
props: {
|
|
12423
|
+
item: Object,
|
|
12424
|
+
removable: Boolean,
|
|
12425
|
+
removeAriaLabel: {
|
|
12426
|
+
type: String,
|
|
12427
|
+
default: 'Remove selected file'
|
|
12428
|
+
}
|
|
12429
|
+
},
|
|
12430
|
+
emits: ['remove'],
|
|
12431
|
+
setup: function setup(__props, _ref) {
|
|
12432
|
+
var emit = _ref.emit;
|
|
12433
|
+
var props = __props; // Computed
|
|
12434
|
+
|
|
12435
|
+
var isInvalid = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
12436
|
+
return props.item.invalidMessage && props.item.invalidMessage.length;
|
|
12437
|
+
});
|
|
12438
|
+
return function (_ctx, _cache) {
|
|
12439
|
+
var _props$item$file, _props$item$file2;
|
|
12440
|
+
|
|
12441
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
12442
|
+
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)])
|
|
12443
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", {
|
|
12444
|
+
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")),
|
|
12445
|
+
title: (_props$item$file = __props.item.file) === null || _props$item$file === void 0 ? void 0 : _props$item$file.name
|
|
12446
|
+
}, (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", {
|
|
12447
|
+
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"))
|
|
12448
|
+
}, [__props.item.state === 'uploading' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
12449
|
+
key: 0,
|
|
12450
|
+
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"))
|
|
12451
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
12452
|
+
"data-inline-loading-spinner": "",
|
|
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 ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--loading--small"))
|
|
12454
|
+
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("svg", {
|
|
12455
|
+
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")),
|
|
12456
|
+
viewBox: "-75 -75 150 150"
|
|
12457
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("circle", {
|
|
12458
|
+
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")),
|
|
12459
|
+
cx: "0",
|
|
12460
|
+
cy: "0",
|
|
12461
|
+
r: "37.5"
|
|
12462
|
+
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("circle", {
|
|
12463
|
+
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")),
|
|
12464
|
+
cx: "0",
|
|
12465
|
+
cy: "0",
|
|
12466
|
+
r: "37.5"
|
|
12467
|
+
}, 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), {
|
|
12468
|
+
key: 1,
|
|
12469
|
+
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"))
|
|
12470
|
+
}, 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), {
|
|
12471
|
+
key: 2,
|
|
12472
|
+
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"))
|
|
12473
|
+
}, 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", {
|
|
12474
|
+
key: 3,
|
|
12475
|
+
type: "button",
|
|
12476
|
+
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")),
|
|
12477
|
+
alt: __props.removeAriaLabel,
|
|
12478
|
+
"arial-label": __props.removeAriaLabel,
|
|
12479
|
+
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
12480
|
+
return emit('remove', __props.item);
|
|
12481
|
+
})
|
|
12482
|
+
}, [(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", {
|
|
12483
|
+
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"))
|
|
12484
|
+
}, (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", {
|
|
12485
|
+
key: 0,
|
|
12486
|
+
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"))
|
|
12487
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
12488
|
+
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"))
|
|
12489
|
+
}, (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", {
|
|
12490
|
+
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"))
|
|
12491
|
+
}, (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);
|
|
12492
|
+
};
|
|
12493
|
+
}
|
|
12494
|
+
});
|
|
12495
|
+
;// CONCATENATED MODULE: ./src/components/CvFileUploader/CvFileUploaderItem.vue?vue&type=script&setup=true&lang=js
|
|
12496
|
+
|
|
12497
|
+
;// CONCATENATED MODULE: ./src/components/CvFileUploader/CvFileUploaderItem.vue
|
|
12498
|
+
|
|
12499
|
+
|
|
12500
|
+
|
|
12501
|
+
const __exports__ = CvFileUploaderItemvue_type_script_setup_true_lang_js;
|
|
12502
|
+
|
|
12503
|
+
/* harmony default export */ var CvFileUploaderItem = (__exports__);
|
|
12504
|
+
|
|
12505
|
+
/***/ }),
|
|
12506
|
+
|
|
12507
|
+
/***/ 4975:
|
|
12508
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12509
|
+
|
|
12510
|
+
"use strict";
|
|
12511
|
+
// ESM COMPAT FLAG
|
|
12512
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12513
|
+
|
|
12514
|
+
// EXPORTS
|
|
12515
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
12516
|
+
"default": function() { return /* binding */ CvFileUploaderSkeleton; }
|
|
12517
|
+
});
|
|
12518
|
+
|
|
12519
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
12520
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
12521
|
+
// EXTERNAL MODULE: ./src/components/CvSkeletonText/index.js
|
|
12522
|
+
var CvSkeletonText = __webpack_require__(1512);
|
|
12523
|
+
// EXTERNAL MODULE: ./src/components/CvButton/index.js
|
|
12524
|
+
var CvButton = __webpack_require__(7654);
|
|
12525
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
12526
|
+
var settings = __webpack_require__(8343);
|
|
12527
|
+
;// 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-82.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
|
|
12528
|
+
|
|
12529
|
+
|
|
12530
|
+
|
|
12531
|
+
|
|
12532
|
+
/* harmony default export */ var CvFileUploaderSkeletonvue_type_script_setup_true_lang_js = ({
|
|
12533
|
+
__name: 'CvFileUploaderSkeleton',
|
|
12534
|
+
setup: function setup(__props) {
|
|
12535
|
+
return function (_ctx, _cache) {
|
|
12536
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
12537
|
+
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"))
|
|
12538
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(CvSkeletonText/* default */.Z), {
|
|
12539
|
+
heading: "",
|
|
12540
|
+
width: "100px"
|
|
12541
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(CvSkeletonText/* default */.Z), {
|
|
12542
|
+
width: "225px",
|
|
12543
|
+
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"))
|
|
12544
|
+
}, 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);
|
|
12545
|
+
};
|
|
12546
|
+
}
|
|
12547
|
+
});
|
|
12548
|
+
;// CONCATENATED MODULE: ./src/components/CvFileUploader/CvFileUploaderSkeleton.vue?vue&type=script&setup=true&lang=js
|
|
12549
|
+
|
|
12550
|
+
;// CONCATENATED MODULE: ./src/components/CvFileUploader/CvFileUploaderSkeleton.vue
|
|
12551
|
+
|
|
12552
|
+
|
|
12553
|
+
|
|
12554
|
+
const __exports__ = CvFileUploaderSkeletonvue_type_script_setup_true_lang_js;
|
|
12555
|
+
|
|
12556
|
+
/* harmony default export */ var CvFileUploaderSkeleton = (__exports__);
|
|
12557
|
+
|
|
12558
|
+
/***/ }),
|
|
12559
|
+
|
|
11678
12560
|
/***/ 9067:
|
|
11679
12561
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11680
12562
|
|
|
@@ -14288,7 +15170,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(CvInlineNotific
|
|
|
14288
15170
|
|
|
14289
15171
|
/***/ }),
|
|
14290
15172
|
|
|
14291
|
-
/***/
|
|
15173
|
+
/***/ 9060:
|
|
14292
15174
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
14293
15175
|
|
|
14294
15176
|
"use strict";
|
|
@@ -14306,7 +15188,7 @@ var defineProperty = __webpack_require__(4186);
|
|
|
14306
15188
|
var es_array_concat = __webpack_require__(2222);
|
|
14307
15189
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
14308
15190
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
14309
|
-
;// 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-82.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=
|
|
15191
|
+
;// 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-82.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
|
|
14310
15192
|
|
|
14311
15193
|
|
|
14312
15194
|
|
|
@@ -14325,11 +15207,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14325
15207
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat($setup.carbonPrefix, "--toast-notification__details"))
|
|
14326
15208
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("h3", {
|
|
14327
15209
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat($setup.carbonPrefix, "--toast-notification__title"))
|
|
14328
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
15210
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "title", {}, function () {
|
|
15211
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.title), 1)];
|
|
15212
|
+
})], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
14329
15213
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat($setup.carbonPrefix, "--toast-notification__subtitle"))
|
|
14330
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
15214
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "subtitle", {}, function () {
|
|
15215
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.subTitle), 1)];
|
|
15216
|
+
})], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
14331
15217
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat($setup.carbonPrefix, "--toast-notification__caption"))
|
|
14332
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
15218
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "caption", {}, function () {
|
|
15219
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.caption), 1)];
|
|
15220
|
+
})], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
|
|
14333
15221
|
type: "button",
|
|
14334
15222
|
"aria-label": $props.closeAriaLabel,
|
|
14335
15223
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat($setup.carbonPrefix, "--toast-notification__close-button")),
|
|
@@ -14337,10 +15225,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14337
15225
|
return _ctx.$emit('close');
|
|
14338
15226
|
})
|
|
14339
15227
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_close20, {
|
|
14340
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat($setup.carbonPrefix, "--
|
|
15228
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat($setup.carbonPrefix, "--toast-notification__close-icon"))
|
|
14341
15229
|
}, null, 8, ["class"])], 10, _hoisted_2)], 10, _hoisted_1);
|
|
14342
15230
|
}
|
|
14343
|
-
;// CONCATENATED MODULE: ./src/components/CvNotification/CvToastNotification.vue?vue&type=template&id=
|
|
15231
|
+
;// CONCATENATED MODULE: ./src/components/CvNotification/CvToastNotification.vue?vue&type=template&id=687f6f1c
|
|
14344
15232
|
|
|
14345
15233
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
14346
15234
|
var es_array_includes = __webpack_require__(6699);
|
|
@@ -14862,7 +15750,7 @@ const __exports__ = CvNumberInputSkeletonvue_type_script_setup_true_lang_js;
|
|
|
14862
15750
|
|
|
14863
15751
|
/***/ }),
|
|
14864
15752
|
|
|
14865
|
-
/***/
|
|
15753
|
+
/***/ 824:
|
|
14866
15754
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
14867
15755
|
|
|
14868
15756
|
"use strict";
|
|
@@ -14878,49 +15766,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14878
15766
|
var defineProperty = __webpack_require__(4186);
|
|
14879
15767
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
|
|
14880
15768
|
var createForOfIteratorHelper = __webpack_require__(2757);
|
|
14881
|
-
// EXTERNAL MODULE: ./node_modules/
|
|
14882
|
-
var
|
|
14883
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
14884
|
-
var es_promise = __webpack_require__(8674);
|
|
14885
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
14886
|
-
|
|
14887
|
-
|
|
14888
|
-
|
|
14889
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
14890
|
-
try {
|
|
14891
|
-
var info = gen[key](arg);
|
|
14892
|
-
var value = info.value;
|
|
14893
|
-
} catch (error) {
|
|
14894
|
-
reject(error);
|
|
14895
|
-
return;
|
|
14896
|
-
}
|
|
14897
|
-
|
|
14898
|
-
if (info.done) {
|
|
14899
|
-
resolve(value);
|
|
14900
|
-
} else {
|
|
14901
|
-
Promise.resolve(value).then(_next, _throw);
|
|
14902
|
-
}
|
|
14903
|
-
}
|
|
14904
|
-
|
|
14905
|
-
function _asyncToGenerator(fn) {
|
|
14906
|
-
return function () {
|
|
14907
|
-
var self = this,
|
|
14908
|
-
args = arguments;
|
|
14909
|
-
return new Promise(function (resolve, reject) {
|
|
14910
|
-
var gen = fn.apply(self, args);
|
|
14911
|
-
|
|
14912
|
-
function _next(value) {
|
|
14913
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
14914
|
-
}
|
|
14915
|
-
|
|
14916
|
-
function _throw(err) {
|
|
14917
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
14918
|
-
}
|
|
14919
|
-
|
|
14920
|
-
_next(undefined);
|
|
14921
|
-
});
|
|
14922
|
-
};
|
|
14923
|
-
}
|
|
15769
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
15770
|
+
var asyncToGenerator = __webpack_require__(3933);
|
|
14924
15771
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
14925
15772
|
var objectSpread2 = __webpack_require__(5175);
|
|
14926
15773
|
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
|
@@ -14981,8 +15828,6 @@ var OverflowMenuVertical16 = (0,utils_148d018d.c)(OverflowMenuVertical16, {
|
|
|
14981
15828
|
|
|
14982
15829
|
|
|
14983
15830
|
|
|
14984
|
-
// EXTERNAL MODULE: ./src/global/component-utils/event-bus.js + 1 modules
|
|
14985
|
-
var event_bus = __webpack_require__(3678);
|
|
14986
15831
|
;// 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-82.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
|
|
14987
15832
|
|
|
14988
15833
|
|
|
@@ -14999,7 +15844,6 @@ var _hoisted_3 = ["aria-labelledby", "id", "onMousedown"];
|
|
|
14999
15844
|
|
|
15000
15845
|
|
|
15001
15846
|
|
|
15002
|
-
|
|
15003
15847
|
/* harmony default export */ var CvOverflowMenuvue_type_script_setup_true_lang_js = ({
|
|
15004
15848
|
__name: 'CvOverflowMenu',
|
|
15005
15849
|
props: (0,objectSpread2/* default */.Z)({
|
|
@@ -15072,15 +15916,8 @@ var _hoisted_3 = ["aria-labelledby", "id", "onMousedown"];
|
|
|
15072
15916
|
var offsetTop = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
15073
15917
|
return props.offset ? props.offset.top : 0;
|
|
15074
15918
|
});
|
|
15075
|
-
|
|
15076
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
15077
|
-
bus = (0,event_bus/* getBus */.T)(uid.value);
|
|
15078
|
-
bus.on('cv:close', doClose);
|
|
15079
|
-
bus.on('cv:click', menuItemClick);
|
|
15080
|
-
});
|
|
15081
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(function () {
|
|
15082
|
-
(0,event_bus/* removeBus */.S)(uid.value);
|
|
15083
|
-
});
|
|
15919
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('cv:close', doClose);
|
|
15920
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('cv:click', menuItemClick);
|
|
15084
15921
|
var trigger = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
15085
15922
|
var popup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
15086
15923
|
|
|
@@ -15130,7 +15967,7 @@ var _hoisted_3 = ["aria-labelledby", "id", "onMousedown"];
|
|
|
15130
15967
|
}
|
|
15131
15968
|
|
|
15132
15969
|
function _positionMenu() {
|
|
15133
|
-
_positionMenu =
|
|
15970
|
+
_positionMenu = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
15134
15971
|
var menuPosition;
|
|
15135
15972
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
15136
15973
|
while (1) {
|
|
@@ -15155,7 +15992,7 @@ var _hoisted_3 = ["aria-labelledby", "id", "onMousedown"];
|
|
|
15155
15992
|
if (props.up) {
|
|
15156
15993
|
top.value = menuPosition.top + offsetTop.value - popup.value.offsetHeight + pixelsScrolledY;
|
|
15157
15994
|
} else {
|
|
15158
|
-
top.value = menuPosition.
|
|
15995
|
+
top.value = menuPosition.bottom + offsetTop.value + pixelsScrolledY;
|
|
15159
15996
|
}
|
|
15160
15997
|
}));
|
|
15161
15998
|
|
|
@@ -15210,7 +16047,7 @@ var _hoisted_3 = ["aria-labelledby", "id", "onMousedown"];
|
|
|
15210
16047
|
}
|
|
15211
16048
|
|
|
15212
16049
|
function _doToggle() {
|
|
15213
|
-
_doToggle =
|
|
16050
|
+
_doToggle = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
15214
16051
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
15215
16052
|
while (1) {
|
|
15216
16053
|
switch (_context2.prev = _context2.next) {
|
|
@@ -15291,7 +16128,9 @@ var _hoisted_3 = ["aria-labelledby", "id", "onMousedown"];
|
|
|
15291
16128
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(OverflowMenuVertical16), {
|
|
15292
16129
|
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"))
|
|
15293
16130
|
}, null, 8, ["class"])];
|
|
15294
|
-
})], 42, _hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
16131
|
+
})], 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, {
|
|
16132
|
+
to: "body"
|
|
16133
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
15295
16134
|
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)]),
|
|
15296
16135
|
tabindex: "-1",
|
|
15297
16136
|
ref_key: "popup",
|
|
@@ -15329,7 +16168,7 @@ var _hoisted_3 = ["aria-labelledby", "id", "onMousedown"];
|
|
|
15329
16168
|
"left": "-9999px"
|
|
15330
16169
|
},
|
|
15331
16170
|
onFocus: focusAfterContent
|
|
15332
|
-
}, null, 544)], 46, _hoisted_3)], 10, _hoisted_1);
|
|
16171
|
+
}, null, 544)], 46, _hoisted_3)]))], 10, _hoisted_1);
|
|
15333
16172
|
};
|
|
15334
16173
|
}
|
|
15335
16174
|
});
|
|
@@ -15363,8 +16202,6 @@ var defineProperty = __webpack_require__(4186);
|
|
|
15363
16202
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
15364
16203
|
// EXTERNAL MODULE: ./src/global/settings.js
|
|
15365
16204
|
var settings = __webpack_require__(8343);
|
|
15366
|
-
// EXTERNAL MODULE: ./src/global/component-utils/event-bus.js + 1 modules
|
|
15367
|
-
var event_bus = __webpack_require__(3678);
|
|
15368
16205
|
;// 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-82.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
|
|
15369
16206
|
|
|
15370
16207
|
|
|
@@ -15372,7 +16209,6 @@ var _hoisted_1 = ["onKeydown"];
|
|
|
15372
16209
|
var _hoisted_2 = ["data-floating-menu-primary-focus", "disabled"];
|
|
15373
16210
|
|
|
15374
16211
|
|
|
15375
|
-
|
|
15376
16212
|
/* harmony default export */ var CvOverflowMenuItemvue_type_script_setup_true_lang_js = ({
|
|
15377
16213
|
__name: 'CvOverflowMenuItem',
|
|
15378
16214
|
props: {
|
|
@@ -15381,25 +16217,17 @@ var _hoisted_2 = ["data-floating-menu-primary-focus", "disabled"];
|
|
|
15381
16217
|
danger: Boolean
|
|
15382
16218
|
},
|
|
15383
16219
|
setup: function setup(__props) {
|
|
15384
|
-
var bus = undefined;
|
|
15385
16220
|
var el = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
15386
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
15387
|
-
|
|
15388
|
-
var parent = pe === null || pe === void 0 ? void 0 : pe.getAttribute('id');
|
|
15389
|
-
if (parent) bus = (0,event_bus/* getBus */.T)(parent);else console.warn('overflow menu not found');
|
|
15390
|
-
});
|
|
16221
|
+
var emitClick = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('cv:click');
|
|
16222
|
+
var emitClose = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('cv:close');
|
|
15391
16223
|
var attrs = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useAttrs)();
|
|
15392
16224
|
|
|
15393
16225
|
function onClick() {
|
|
15394
|
-
|
|
15395
|
-
|
|
15396
|
-
(_bus = bus) === null || _bus === void 0 ? void 0 : _bus.emit('cv:click', attrs.value);
|
|
16226
|
+
emitClick(attrs.value);
|
|
15397
16227
|
}
|
|
15398
16228
|
|
|
15399
16229
|
function onEsc() {
|
|
15400
|
-
|
|
15401
|
-
|
|
15402
|
-
(_bus2 = bus) === null || _bus2 === void 0 ? void 0 : _bus2.emit('cv:close');
|
|
16230
|
+
emitClose();
|
|
15403
16231
|
}
|
|
15404
16232
|
|
|
15405
16233
|
return function (_ctx, _cache) {
|
|
@@ -15861,6 +16689,955 @@ const __exports__ = CvPaginationvue_type_script_setup_true_lang_js;
|
|
|
15861
16689
|
|
|
15862
16690
|
/***/ }),
|
|
15863
16691
|
|
|
16692
|
+
/***/ 4813:
|
|
16693
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16694
|
+
|
|
16695
|
+
"use strict";
|
|
16696
|
+
// ESM COMPAT FLAG
|
|
16697
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16698
|
+
|
|
16699
|
+
// EXPORTS
|
|
16700
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
16701
|
+
"default": function() { return /* binding */ CvProgress; }
|
|
16702
|
+
});
|
|
16703
|
+
|
|
16704
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
16705
|
+
var objectSpread2 = __webpack_require__(5175);
|
|
16706
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
16707
|
+
var defineProperty = __webpack_require__(4186);
|
|
16708
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
16709
|
+
var es_number_constructor = __webpack_require__(9653);
|
|
16710
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
16711
|
+
var es_array_iterator = __webpack_require__(6992);
|
|
16712
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
16713
|
+
var es_object_to_string = __webpack_require__(1539);
|
|
16714
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.js
|
|
16715
|
+
var es_set = __webpack_require__(189);
|
|
16716
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
|
|
16717
|
+
var es_string_iterator = __webpack_require__(8783);
|
|
16718
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
|
|
16719
|
+
var web_dom_collections_iterator = __webpack_require__(3948);
|
|
16720
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
16721
|
+
var es_array_concat = __webpack_require__(2222);
|
|
16722
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
16723
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
16724
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
16725
|
+
var settings = __webpack_require__(8343);
|
|
16726
|
+
// EXTERNAL MODULE: ./src/components/CvProgress/CvProgressStep.vue + 6 modules
|
|
16727
|
+
var CvProgressStep = __webpack_require__(9159);
|
|
16728
|
+
;// 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-82.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
|
|
16729
|
+
|
|
16730
|
+
|
|
16731
|
+
|
|
16732
|
+
|
|
16733
|
+
|
|
16734
|
+
|
|
16735
|
+
|
|
16736
|
+
|
|
16737
|
+
|
|
16738
|
+
|
|
16739
|
+
|
|
16740
|
+
|
|
16741
|
+
|
|
16742
|
+
/* harmony default export */ var CvProgressvue_type_script_setup_true_lang_js = ({
|
|
16743
|
+
__name: 'CvProgress',
|
|
16744
|
+
props: {
|
|
16745
|
+
/**
|
|
16746
|
+
* Optionally specify the current step array index
|
|
16747
|
+
*/
|
|
16748
|
+
initialStep: {
|
|
16749
|
+
type: Number,
|
|
16750
|
+
default: 0
|
|
16751
|
+
},
|
|
16752
|
+
|
|
16753
|
+
/**
|
|
16754
|
+
* An array of labels for the steps. Use `cv-progress-step` components for more control over the step logic.
|
|
16755
|
+
*/
|
|
16756
|
+
steps: Array,
|
|
16757
|
+
|
|
16758
|
+
/**
|
|
16759
|
+
* Determines whether the ProgressIndicator should be rendered vertically.
|
|
16760
|
+
*/
|
|
16761
|
+
vertical: {
|
|
16762
|
+
type: Boolean,
|
|
16763
|
+
default: false
|
|
16764
|
+
},
|
|
16765
|
+
|
|
16766
|
+
/**
|
|
16767
|
+
* Specify whether the progress steps should be split equally in size in the div
|
|
16768
|
+
*/
|
|
16769
|
+
spaceEqually: {
|
|
16770
|
+
type: Boolean,
|
|
16771
|
+
default: false
|
|
16772
|
+
}
|
|
16773
|
+
},
|
|
16774
|
+
emits: ['step-clicked'],
|
|
16775
|
+
setup: function setup(__props, _ref) {
|
|
16776
|
+
var emit = _ref.emit;
|
|
16777
|
+
var props = __props; // noinspection ES6PreferShortImport
|
|
16778
|
+
|
|
16779
|
+
var isEqual = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
16780
|
+
return props.spaceEqually && !props.vertical;
|
|
16781
|
+
});
|
|
16782
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('progress-space-equally', isEqual);
|
|
16783
|
+
var completedSteps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(new Set());
|
|
16784
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('progress-completed-steps', completedSteps);
|
|
16785
|
+
/**
|
|
16786
|
+
* @typedef ProgressStepData
|
|
16787
|
+
* @type {string} uid
|
|
16788
|
+
* @type {string} label
|
|
16789
|
+
*/
|
|
16790
|
+
|
|
16791
|
+
/**
|
|
16792
|
+
* @type {Ref<UnwrapRef<Array<ProgressStepData>>>}
|
|
16793
|
+
*/
|
|
16794
|
+
|
|
16795
|
+
var progressSteps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
16796
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('progress-steps', progressSteps);
|
|
16797
|
+
var currentStep = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
|
|
16798
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('progress-current-step', currentStep);
|
|
16799
|
+
|
|
16800
|
+
function updateSteps() {
|
|
16801
|
+
if (props.initialStep > -1 && props.initialStep < progressSteps.value.length) {
|
|
16802
|
+
var step = progressSteps.value[props.initialStep];
|
|
16803
|
+
currentStep.value = step.uid;
|
|
16804
|
+
} else currentStep.value = '';
|
|
16805
|
+
}
|
|
16806
|
+
|
|
16807
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(updateSteps);
|
|
16808
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(function () {
|
|
16809
|
+
return props.initialStep;
|
|
16810
|
+
}, updateSteps);
|
|
16811
|
+
return function (_ctx, _cache) {
|
|
16812
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("ul", {
|
|
16813
|
+
"data-progress": "",
|
|
16814
|
+
"data-progress-current": "",
|
|
16815
|
+
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)])
|
|
16816
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default", {}, function () {
|
|
16817
|
+
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) {
|
|
16818
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(CvProgressStep["default"], {
|
|
16819
|
+
key: "step:".concat(index, ":").concat(__props.initialStep > index),
|
|
16820
|
+
label: step,
|
|
16821
|
+
complete: __props.initialStep > index,
|
|
16822
|
+
onStepClicked: function onStepClicked($event) {
|
|
16823
|
+
return emit('step-clicked', (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, $event), {}, {
|
|
16824
|
+
index: index
|
|
16825
|
+
}));
|
|
16826
|
+
}
|
|
16827
|
+
}, null, 8, ["label", "complete", "onStepClicked"]);
|
|
16828
|
+
}), 128))];
|
|
16829
|
+
})], 2);
|
|
16830
|
+
};
|
|
16831
|
+
}
|
|
16832
|
+
});
|
|
16833
|
+
;// CONCATENATED MODULE: ./src/components/CvProgress/CvProgress.vue?vue&type=script&setup=true&lang=js
|
|
16834
|
+
|
|
16835
|
+
;// CONCATENATED MODULE: ./src/components/CvProgress/CvProgress.vue
|
|
16836
|
+
|
|
16837
|
+
|
|
16838
|
+
|
|
16839
|
+
const __exports__ = CvProgressvue_type_script_setup_true_lang_js;
|
|
16840
|
+
|
|
16841
|
+
/* harmony default export */ var CvProgress = (__exports__);
|
|
16842
|
+
|
|
16843
|
+
/***/ }),
|
|
16844
|
+
|
|
16845
|
+
/***/ 9159:
|
|
16846
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16847
|
+
|
|
16848
|
+
"use strict";
|
|
16849
|
+
// ESM COMPAT FLAG
|
|
16850
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16851
|
+
|
|
16852
|
+
// EXPORTS
|
|
16853
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
16854
|
+
"default": function() { return /* binding */ CvProgressStep; }
|
|
16855
|
+
});
|
|
16856
|
+
|
|
16857
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
16858
|
+
var defineProperty = __webpack_require__(4186);
|
|
16859
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
16860
|
+
var objectSpread2 = __webpack_require__(5175);
|
|
16861
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
|
|
16862
|
+
var es_array_find_index = __webpack_require__(4553);
|
|
16863
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
16864
|
+
var es_array_splice = __webpack_require__(561);
|
|
16865
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
16866
|
+
var es_array_concat = __webpack_require__(2222);
|
|
16867
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
|
|
16868
|
+
var es_symbol = __webpack_require__(2526);
|
|
16869
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
|
|
16870
|
+
var es_symbol_description = __webpack_require__(1817);
|
|
16871
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
16872
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
16873
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/utils-148d018d.js
|
|
16874
|
+
var utils_148d018d = __webpack_require__(5089);
|
|
16875
|
+
;// CONCATENATED MODULE: ./node_modules/@carbon/icons-vue/es/warning/16.js
|
|
16876
|
+
/**
|
|
16877
|
+
* Copyright IBM Corp. 2019, 2020
|
|
16878
|
+
*
|
|
16879
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
16880
|
+
* LICENSE file in the root directory of this source tree.
|
|
16881
|
+
*
|
|
16882
|
+
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
16883
|
+
*/
|
|
16884
|
+
|
|
16885
|
+
|
|
16886
|
+
|
|
16887
|
+
|
|
16888
|
+
var Warning16 = (0,utils_148d018d.c)(Warning16, {
|
|
16889
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
16890
|
+
"viewBox": "0 0 16 16",
|
|
16891
|
+
"fill": "currentColor",
|
|
16892
|
+
"width": 16,
|
|
16893
|
+
"height": 16
|
|
16894
|
+
}, [{
|
|
16895
|
+
"elem": "path",
|
|
16896
|
+
"attrs": {
|
|
16897
|
+
"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"
|
|
16898
|
+
}
|
|
16899
|
+
}, {
|
|
16900
|
+
"elem": "path",
|
|
16901
|
+
"attrs": {
|
|
16902
|
+
"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"
|
|
16903
|
+
}
|
|
16904
|
+
}]);
|
|
16905
|
+
|
|
16906
|
+
|
|
16907
|
+
|
|
16908
|
+
;// CONCATENATED MODULE: ./node_modules/@carbon/icons-vue/es/incomplete/16.js
|
|
16909
|
+
/**
|
|
16910
|
+
* Copyright IBM Corp. 2019, 2020
|
|
16911
|
+
*
|
|
16912
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
16913
|
+
* LICENSE file in the root directory of this source tree.
|
|
16914
|
+
*
|
|
16915
|
+
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
16916
|
+
*/
|
|
16917
|
+
|
|
16918
|
+
|
|
16919
|
+
|
|
16920
|
+
|
|
16921
|
+
var Incomplete16 = (0,utils_148d018d.c)(Incomplete16, {
|
|
16922
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
16923
|
+
"viewBox": "0 0 32 32",
|
|
16924
|
+
"fill": "currentColor",
|
|
16925
|
+
"width": 16,
|
|
16926
|
+
"height": 16
|
|
16927
|
+
}, [{
|
|
16928
|
+
"elem": "path",
|
|
16929
|
+
"attrs": {
|
|
16930
|
+
"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"
|
|
16931
|
+
}
|
|
16932
|
+
}]);
|
|
16933
|
+
|
|
16934
|
+
|
|
16935
|
+
|
|
16936
|
+
;// CONCATENATED MODULE: ./node_modules/@carbon/icons-vue/es/checkmark--outline/16.js
|
|
16937
|
+
/**
|
|
16938
|
+
* Copyright IBM Corp. 2019, 2020
|
|
16939
|
+
*
|
|
16940
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
16941
|
+
* LICENSE file in the root directory of this source tree.
|
|
16942
|
+
*
|
|
16943
|
+
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
16944
|
+
*/
|
|
16945
|
+
|
|
16946
|
+
|
|
16947
|
+
|
|
16948
|
+
|
|
16949
|
+
var CheckmarkOutline16 = (0,utils_148d018d.c)(CheckmarkOutline16, {
|
|
16950
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
16951
|
+
"viewBox": "0 0 32 32",
|
|
16952
|
+
"fill": "currentColor",
|
|
16953
|
+
"width": 16,
|
|
16954
|
+
"height": 16
|
|
16955
|
+
}, [{
|
|
16956
|
+
"elem": "path",
|
|
16957
|
+
"attrs": {
|
|
16958
|
+
"d": "M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"
|
|
16959
|
+
}
|
|
16960
|
+
}, {
|
|
16961
|
+
"elem": "path",
|
|
16962
|
+
"attrs": {
|
|
16963
|
+
"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"
|
|
16964
|
+
}
|
|
16965
|
+
}]);
|
|
16966
|
+
|
|
16967
|
+
|
|
16968
|
+
|
|
16969
|
+
;// CONCATENATED MODULE: ./node_modules/@carbon/icons-vue/es/circle-dash/16.js
|
|
16970
|
+
/**
|
|
16971
|
+
* Copyright IBM Corp. 2019, 2020
|
|
16972
|
+
*
|
|
16973
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
16974
|
+
* LICENSE file in the root directory of this source tree.
|
|
16975
|
+
*
|
|
16976
|
+
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
16977
|
+
*/
|
|
16978
|
+
|
|
16979
|
+
|
|
16980
|
+
|
|
16981
|
+
|
|
16982
|
+
var CircleDash16 = (0,utils_148d018d.c)(CircleDash16, {
|
|
16983
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
16984
|
+
"viewBox": "0 0 32 32",
|
|
16985
|
+
"fill": "currentColor",
|
|
16986
|
+
"width": 16,
|
|
16987
|
+
"height": 16
|
|
16988
|
+
}, [{
|
|
16989
|
+
"elem": "path",
|
|
16990
|
+
"attrs": {
|
|
16991
|
+
"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"
|
|
16992
|
+
}
|
|
16993
|
+
}]);
|
|
16994
|
+
|
|
16995
|
+
|
|
16996
|
+
|
|
16997
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
16998
|
+
var settings = __webpack_require__(8343);
|
|
16999
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
17000
|
+
var cvId = __webpack_require__(780);
|
|
17001
|
+
;// 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-82.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
|
|
17002
|
+
|
|
17003
|
+
|
|
17004
|
+
|
|
17005
|
+
|
|
17006
|
+
|
|
17007
|
+
|
|
17008
|
+
|
|
17009
|
+
|
|
17010
|
+
var _hoisted_1 = ["id", "aria-disabled"];
|
|
17011
|
+
var _hoisted_2 = ["title"];
|
|
17012
|
+
var _hoisted_3 = {
|
|
17013
|
+
key: 0,
|
|
17014
|
+
class: "bx--progress-optional"
|
|
17015
|
+
};
|
|
17016
|
+
// noinspection ES6PreferShortImport
|
|
17017
|
+
|
|
17018
|
+
|
|
17019
|
+
|
|
17020
|
+
|
|
17021
|
+
var STEP_CURRENT = 'current';
|
|
17022
|
+
var STEP_COMPLETE = 'complete';
|
|
17023
|
+
var STEP_INCOMPLETE = 'incomplete';
|
|
17024
|
+
var STEP_DISABLED = 'disabled';
|
|
17025
|
+
/* harmony default export */ var CvProgressStepvue_type_script_setup_true_lang_js = ({
|
|
17026
|
+
__name: 'CvProgressStep',
|
|
17027
|
+
props: (0,objectSpread2/* default */.Z)({
|
|
17028
|
+
additionalInfo: String,
|
|
17029
|
+
description: String,
|
|
17030
|
+
disabled: Boolean,
|
|
17031
|
+
invalid: Boolean,
|
|
17032
|
+
label: String,
|
|
17033
|
+
tipText: String,
|
|
17034
|
+
complete: Boolean
|
|
17035
|
+
}, cvId/* props */.N),
|
|
17036
|
+
emits: ['step-clicked'],
|
|
17037
|
+
setup: function setup(__props, _ref) {
|
|
17038
|
+
var emit = _ref.emit;
|
|
17039
|
+
var props = __props;
|
|
17040
|
+
var uid = (0,cvId/* useCvId */.l)(props, true);
|
|
17041
|
+
var isEqual = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('progress-space-equally');
|
|
17042
|
+
var internalState = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(STEP_INCOMPLETE);
|
|
17043
|
+
/**
|
|
17044
|
+
* @type {Ref<UnwrapRef<string>>}
|
|
17045
|
+
*/
|
|
17046
|
+
|
|
17047
|
+
var currentStep = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('progress-current-step');
|
|
17048
|
+
var isCurrent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
17049
|
+
return uid.value === currentStep.value;
|
|
17050
|
+
});
|
|
17051
|
+
/**
|
|
17052
|
+
* @type {Ref<UnwrapRef<Array<ProgressStepData>>>}
|
|
17053
|
+
*/
|
|
17054
|
+
|
|
17055
|
+
var progressSteps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('progress-steps');
|
|
17056
|
+
/**
|
|
17057
|
+
* @type {Ref<UnwrapRef<Set<string>>>}
|
|
17058
|
+
*/
|
|
17059
|
+
|
|
17060
|
+
var completedSteps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('progress-completed-steps');
|
|
17061
|
+
|
|
17062
|
+
function checkCurrentStep() {
|
|
17063
|
+
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;
|
|
17064
|
+
var stepData = {
|
|
17065
|
+
uid: uid.value,
|
|
17066
|
+
state: internalState.value
|
|
17067
|
+
};
|
|
17068
|
+
var index = progressSteps.value.findIndex(function (step) {
|
|
17069
|
+
return step.uid === uid.value;
|
|
17070
|
+
});
|
|
17071
|
+
if (index > -1) progressSteps.value.splice(index, 1, stepData);else progressSteps.value.push(stepData);
|
|
17072
|
+
}
|
|
17073
|
+
|
|
17074
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(checkCurrentStep);
|
|
17075
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(currentStep, checkCurrentStep);
|
|
17076
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(completedSteps, checkCurrentStep);
|
|
17077
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(function () {
|
|
17078
|
+
var index = progressSteps.value.findIndex(function (step) {
|
|
17079
|
+
return step.uid === uid.value;
|
|
17080
|
+
});
|
|
17081
|
+
if (index > -1) progressSteps.value.splice(index, 1);
|
|
17082
|
+
});
|
|
17083
|
+
var stepClass = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
17084
|
+
return props.invalid ? "".concat(settings/* carbonPrefix */.B, "--progress__warning") : '';
|
|
17085
|
+
});
|
|
17086
|
+
var stepIcon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
17087
|
+
if (props.invalid) return Warning16;else if (internalState.value === STEP_CURRENT) return Incomplete16;else if (internalState.value === STEP_COMPLETE) return CheckmarkOutline16;else return CircleDash16;
|
|
17088
|
+
});
|
|
17089
|
+
return function (_ctx, _cache) {
|
|
17090
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("li", {
|
|
17091
|
+
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)]),
|
|
17092
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid),
|
|
17093
|
+
"aria-disabled": __props.disabled
|
|
17094
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
|
|
17095
|
+
type: "button",
|
|
17096
|
+
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)]),
|
|
17097
|
+
tabindex: "-1",
|
|
17098
|
+
title: __props.label,
|
|
17099
|
+
onClick: _cache[0] || (_cache[0] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(function ($event) {
|
|
17100
|
+
return emit('step-clicked', {
|
|
17101
|
+
uid: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid)
|
|
17102
|
+
});
|
|
17103
|
+
}, ["prevent"]))
|
|
17104
|
+
}, [isCurrent.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", {
|
|
17105
|
+
key: 0,
|
|
17106
|
+
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"))
|
|
17107
|
+
}, "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 () {
|
|
17108
|
+
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), {
|
|
17109
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(stepClass.value)
|
|
17110
|
+
}, {
|
|
17111
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
17112
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("title", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.description), 1)];
|
|
17113
|
+
}),
|
|
17114
|
+
_: 1
|
|
17115
|
+
}, 8, ["class"]))];
|
|
17116
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
17117
|
+
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")),
|
|
17118
|
+
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
17119
|
+
maxWidth: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isEqual) ? 'calc(100% - 1rem)' : undefined
|
|
17120
|
+
})
|
|
17121
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
17122
|
+
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")])
|
|
17123
|
+
}, (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", {
|
|
17124
|
+
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"))
|
|
17125
|
+
}, null, 2)], 10, _hoisted_2)], 10, _hoisted_1);
|
|
17126
|
+
};
|
|
17127
|
+
}
|
|
17128
|
+
});
|
|
17129
|
+
;// CONCATENATED MODULE: ./src/components/CvProgress/CvProgressStep.vue?vue&type=script&setup=true&lang=js
|
|
17130
|
+
|
|
17131
|
+
;// CONCATENATED MODULE: ./src/components/CvProgress/CvProgressStep.vue
|
|
17132
|
+
|
|
17133
|
+
|
|
17134
|
+
|
|
17135
|
+
const __exports__ = CvProgressStepvue_type_script_setup_true_lang_js;
|
|
17136
|
+
|
|
17137
|
+
/* harmony default export */ var CvProgressStep = (__exports__);
|
|
17138
|
+
|
|
17139
|
+
/***/ }),
|
|
17140
|
+
|
|
17141
|
+
/***/ 6814:
|
|
17142
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17143
|
+
|
|
17144
|
+
"use strict";
|
|
17145
|
+
// ESM COMPAT FLAG
|
|
17146
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17147
|
+
|
|
17148
|
+
// EXPORTS
|
|
17149
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
17150
|
+
"default": function() { return /* binding */ CvRadioButton; }
|
|
17151
|
+
});
|
|
17152
|
+
|
|
17153
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
17154
|
+
var defineProperty = __webpack_require__(4186);
|
|
17155
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
17156
|
+
var objectSpread2 = __webpack_require__(5175);
|
|
17157
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
17158
|
+
var es_object_assign = __webpack_require__(9601);
|
|
17159
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
17160
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
17161
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
17162
|
+
var settings = __webpack_require__(8343);
|
|
17163
|
+
// EXTERNAL MODULE: ./src/use/index.js + 2 modules
|
|
17164
|
+
var use = __webpack_require__(8497);
|
|
17165
|
+
;// 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-82.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
|
|
17166
|
+
|
|
17167
|
+
|
|
17168
|
+
|
|
17169
|
+
|
|
17170
|
+
var _hoisted_1 = ["id", "checked", "value"];
|
|
17171
|
+
var _hoisted_2 = ["for"];
|
|
17172
|
+
|
|
17173
|
+
|
|
17174
|
+
var __default__ = {
|
|
17175
|
+
inheritAttrs: false
|
|
17176
|
+
};
|
|
17177
|
+
/* harmony default export */ var CvRadioButtonvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
17178
|
+
__name: 'CvRadioButton',
|
|
17179
|
+
props: (0,objectSpread2/* default */.Z)({
|
|
17180
|
+
modelValue: String,
|
|
17181
|
+
checked: Boolean,
|
|
17182
|
+
label: String,
|
|
17183
|
+
value: {
|
|
17184
|
+
type: String,
|
|
17185
|
+
required: true
|
|
17186
|
+
},
|
|
17187
|
+
hideLabel: Boolean,
|
|
17188
|
+
labelLeft: Boolean
|
|
17189
|
+
}, use/* propsCvId */.rz),
|
|
17190
|
+
emits: ['update:modelValue', 'change'],
|
|
17191
|
+
setup: function setup(__props, _ref) {
|
|
17192
|
+
var emit = _ref.emit;
|
|
17193
|
+
var props = __props;
|
|
17194
|
+
var cvId = (0,use/* useCvId */.lX)(props);
|
|
17195
|
+
(0,use/* useMethods */.$1)({
|
|
17196
|
+
input: ['blur', 'focus']
|
|
17197
|
+
});
|
|
17198
|
+
|
|
17199
|
+
var _useRadio = (0,use/* useRadio */.xL)(props, emit),
|
|
17200
|
+
isChecked = _useRadio.isChecked,
|
|
17201
|
+
onChange = _useRadio.onChange;
|
|
17202
|
+
|
|
17203
|
+
return function (_ctx, _cache) {
|
|
17204
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
17205
|
+
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)])
|
|
17206
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)(_ctx.$attrs, {
|
|
17207
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
17208
|
+
checked: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isChecked),
|
|
17209
|
+
class: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--radio-button"),
|
|
17210
|
+
ref: "input",
|
|
17211
|
+
type: "radio",
|
|
17212
|
+
value: __props.value,
|
|
17213
|
+
onChange: _cache[0] || (_cache[0] = function () {
|
|
17214
|
+
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);
|
|
17215
|
+
})
|
|
17216
|
+
}), null, 16, _hoisted_1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
17217
|
+
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
17218
|
+
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"))
|
|
17219
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
17220
|
+
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"))
|
|
17221
|
+
}, null, 2), __props.label ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", {
|
|
17222
|
+
key: 0,
|
|
17223
|
+
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))
|
|
17224
|
+
}, (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);
|
|
17225
|
+
};
|
|
17226
|
+
}
|
|
17227
|
+
}));
|
|
17228
|
+
;// CONCATENATED MODULE: ./src/components/CvRadioButton/CvRadioButton.vue?vue&type=script&setup=true&lang=js
|
|
17229
|
+
|
|
17230
|
+
;// CONCATENATED MODULE: ./src/components/CvRadioButton/CvRadioButton.vue
|
|
17231
|
+
|
|
17232
|
+
|
|
17233
|
+
|
|
17234
|
+
const __exports__ = CvRadioButtonvue_type_script_setup_true_lang_js;
|
|
17235
|
+
|
|
17236
|
+
/* harmony default export */ var CvRadioButton = (__exports__);
|
|
17237
|
+
|
|
17238
|
+
/***/ }),
|
|
17239
|
+
|
|
17240
|
+
/***/ 4658:
|
|
17241
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17242
|
+
|
|
17243
|
+
"use strict";
|
|
17244
|
+
// ESM COMPAT FLAG
|
|
17245
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17246
|
+
|
|
17247
|
+
// EXPORTS
|
|
17248
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
17249
|
+
"default": function() { return /* binding */ CvRadioGroup; }
|
|
17250
|
+
});
|
|
17251
|
+
|
|
17252
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
17253
|
+
var defineProperty = __webpack_require__(4186);
|
|
17254
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
17255
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
17256
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
17257
|
+
var settings = __webpack_require__(8343);
|
|
17258
|
+
;// 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-82.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
|
|
17259
|
+
|
|
17260
|
+
|
|
17261
|
+
|
|
17262
|
+
|
|
17263
|
+
/* harmony default export */ var CvRadioGroupvue_type_script_setup_true_lang_js = ({
|
|
17264
|
+
__name: 'CvRadioGroup',
|
|
17265
|
+
props: {
|
|
17266
|
+
vertical: Boolean
|
|
17267
|
+
},
|
|
17268
|
+
emits: ['change'],
|
|
17269
|
+
setup: function setup(__props, _ref) {
|
|
17270
|
+
var emit = _ref.emit;
|
|
17271
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('onRadioItemChange', function (clickedItemCvId) {
|
|
17272
|
+
emit('change', clickedItemCvId);
|
|
17273
|
+
});
|
|
17274
|
+
return function (_ctx, _cache) {
|
|
17275
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
17276
|
+
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"))
|
|
17277
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
17278
|
+
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)])
|
|
17279
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2)], 2);
|
|
17280
|
+
};
|
|
17281
|
+
}
|
|
17282
|
+
});
|
|
17283
|
+
;// CONCATENATED MODULE: ./src/components/CvRadioButton/CvRadioGroup.vue?vue&type=script&setup=true&lang=js
|
|
17284
|
+
|
|
17285
|
+
;// CONCATENATED MODULE: ./src/components/CvRadioButton/CvRadioGroup.vue
|
|
17286
|
+
|
|
17287
|
+
|
|
17288
|
+
|
|
17289
|
+
const __exports__ = CvRadioGroupvue_type_script_setup_true_lang_js;
|
|
17290
|
+
|
|
17291
|
+
/* harmony default export */ var CvRadioGroup = (__exports__);
|
|
17292
|
+
|
|
17293
|
+
/***/ }),
|
|
17294
|
+
|
|
17295
|
+
/***/ 742:
|
|
17296
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17297
|
+
|
|
17298
|
+
"use strict";
|
|
17299
|
+
// ESM COMPAT FLAG
|
|
17300
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17301
|
+
|
|
17302
|
+
// EXPORTS
|
|
17303
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
17304
|
+
"default": function() { return /* binding */ CvSearch; }
|
|
17305
|
+
});
|
|
17306
|
+
|
|
17307
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
17308
|
+
var defineProperty = __webpack_require__(4186);
|
|
17309
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
17310
|
+
var objectSpread2 = __webpack_require__(5175);
|
|
17311
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
17312
|
+
var es_object_assign = __webpack_require__(9601);
|
|
17313
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
17314
|
+
var es_array_includes = __webpack_require__(6699);
|
|
17315
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
17316
|
+
var es_string_includes = __webpack_require__(2023);
|
|
17317
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
17318
|
+
var es_array_concat = __webpack_require__(2222);
|
|
17319
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
17320
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
17321
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
17322
|
+
var settings = __webpack_require__(8343);
|
|
17323
|
+
// EXTERNAL MODULE: ./src/use/cvTheme.js
|
|
17324
|
+
var cvTheme = __webpack_require__(6432);
|
|
17325
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
17326
|
+
var cvId = __webpack_require__(780);
|
|
17327
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/search/16.js
|
|
17328
|
+
var _16 = __webpack_require__(7360);
|
|
17329
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/close/16.js
|
|
17330
|
+
var close_16 = __webpack_require__(2148);
|
|
17331
|
+
;// CONCATENATED MODULE: ./src/components/CvSearch/index.js
|
|
17332
|
+
|
|
17333
|
+
var SEARCH_SIZES = ['sm', 'lg', 'xl'];
|
|
17334
|
+
|
|
17335
|
+
// EXTERNAL MODULE: ./src/components/CvEmpty/_CvEmpty.vue + 2 modules
|
|
17336
|
+
var _CvEmpty = __webpack_require__(5746);
|
|
17337
|
+
;// 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-82.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
|
|
17338
|
+
|
|
17339
|
+
|
|
17340
|
+
|
|
17341
|
+
|
|
17342
|
+
|
|
17343
|
+
|
|
17344
|
+
|
|
17345
|
+
var _hoisted_1 = ["aria-label", "aria-labelledby"];
|
|
17346
|
+
var _hoisted_2 = ["for"];
|
|
17347
|
+
var _hoisted_3 = ["id", "placeholder", "aria-labelledby", "onKeydown", "disabled"];
|
|
17348
|
+
var _hoisted_4 = ["title", "aria-label"];
|
|
17349
|
+
|
|
17350
|
+
|
|
17351
|
+
|
|
17352
|
+
|
|
17353
|
+
|
|
17354
|
+
|
|
17355
|
+
|
|
17356
|
+
|
|
17357
|
+
/* harmony default export */ var CvSearchvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign({
|
|
17358
|
+
inheritAttrs: false
|
|
17359
|
+
}, {
|
|
17360
|
+
__name: 'CvSearch',
|
|
17361
|
+
props: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
|
|
17362
|
+
ariaLabel: {
|
|
17363
|
+
type: String,
|
|
17364
|
+
default: 'search input'
|
|
17365
|
+
},
|
|
17366
|
+
|
|
17367
|
+
/**
|
|
17368
|
+
* Specify a label to be read by screen readers on the "close" button
|
|
17369
|
+
*/
|
|
17370
|
+
clearAriaLabel: {
|
|
17371
|
+
type: String,
|
|
17372
|
+
default: 'Clear search input'
|
|
17373
|
+
},
|
|
17374
|
+
|
|
17375
|
+
/**
|
|
17376
|
+
* Specify whether the `<input>` should be disabled
|
|
17377
|
+
*/
|
|
17378
|
+
disabled: {
|
|
17379
|
+
type: Boolean,
|
|
17380
|
+
default: false
|
|
17381
|
+
},
|
|
17382
|
+
|
|
17383
|
+
/**
|
|
17384
|
+
* Do no show full control until it has focus. Similar to deprecated toolbar search.
|
|
17385
|
+
*/
|
|
17386
|
+
expandable: {
|
|
17387
|
+
type: Boolean,
|
|
17388
|
+
default: false
|
|
17389
|
+
},
|
|
17390
|
+
|
|
17391
|
+
/**
|
|
17392
|
+
* Wrap search in `<div>` if part of a form
|
|
17393
|
+
*/
|
|
17394
|
+
formItem: {
|
|
17395
|
+
type: Boolean,
|
|
17396
|
+
default: true
|
|
17397
|
+
},
|
|
17398
|
+
|
|
17399
|
+
/**
|
|
17400
|
+
* @deprecated use expandable
|
|
17401
|
+
*/
|
|
17402
|
+
kind: {
|
|
17403
|
+
type: String,
|
|
17404
|
+
default: undefined,
|
|
17405
|
+
validator: function validator() {
|
|
17406
|
+
console.warn('Deprecated: probably you want expandable=true');
|
|
17407
|
+
return true;
|
|
17408
|
+
}
|
|
17409
|
+
},
|
|
17410
|
+
|
|
17411
|
+
/**
|
|
17412
|
+
* Provide the label text for the Search icon
|
|
17413
|
+
*/
|
|
17414
|
+
label: String,
|
|
17415
|
+
|
|
17416
|
+
/**
|
|
17417
|
+
* Specify the search size ('sm', 'md', 'lg', 'xl')
|
|
17418
|
+
*/
|
|
17419
|
+
size: {
|
|
17420
|
+
type: String,
|
|
17421
|
+
default: 'xl',
|
|
17422
|
+
validator: function validator(val) {
|
|
17423
|
+
return SEARCH_SIZES.includes(val);
|
|
17424
|
+
}
|
|
17425
|
+
},
|
|
17426
|
+
|
|
17427
|
+
/**
|
|
17428
|
+
* @deprecated use size
|
|
17429
|
+
*/
|
|
17430
|
+
small: {
|
|
17431
|
+
type: Boolean,
|
|
17432
|
+
default: undefined,
|
|
17433
|
+
validator: function validator(val) {
|
|
17434
|
+
if (val !== undefined) {
|
|
17435
|
+
console.error('Error: Use size property: sm, lg or xl (default)');
|
|
17436
|
+
return false;
|
|
17437
|
+
}
|
|
17438
|
+
|
|
17439
|
+
return true;
|
|
17440
|
+
}
|
|
17441
|
+
},
|
|
17442
|
+
|
|
17443
|
+
/**
|
|
17444
|
+
* @deprecated use size
|
|
17445
|
+
*/
|
|
17446
|
+
large: {
|
|
17447
|
+
type: Boolean,
|
|
17448
|
+
default: undefined,
|
|
17449
|
+
validator: function validator(val) {
|
|
17450
|
+
if (val !== undefined) {
|
|
17451
|
+
console.error('Error: Use size property: sm, lg or xl (default)');
|
|
17452
|
+
return false;
|
|
17453
|
+
}
|
|
17454
|
+
|
|
17455
|
+
return true;
|
|
17456
|
+
}
|
|
17457
|
+
},
|
|
17458
|
+
|
|
17459
|
+
/**
|
|
17460
|
+
* Optionally provide the default value of the `<input>`
|
|
17461
|
+
*/
|
|
17462
|
+
value: String,
|
|
17463
|
+
|
|
17464
|
+
/**
|
|
17465
|
+
* @deprecated use value
|
|
17466
|
+
*/
|
|
17467
|
+
modelValue: {
|
|
17468
|
+
type: String,
|
|
17469
|
+
default: undefined,
|
|
17470
|
+
validator: function validator() {
|
|
17471
|
+
console.warn('Deprecated: use v-model:value instead');
|
|
17472
|
+
return true;
|
|
17473
|
+
}
|
|
17474
|
+
},
|
|
17475
|
+
|
|
17476
|
+
/**
|
|
17477
|
+
* Provide an optional placeholder text for the Search. Note: if the label and placeholder differ, VoiceOver on Mac will read both
|
|
17478
|
+
*/
|
|
17479
|
+
placeholder: {
|
|
17480
|
+
type: String,
|
|
17481
|
+
default: 'Search'
|
|
17482
|
+
},
|
|
17483
|
+
|
|
17484
|
+
/**
|
|
17485
|
+
* @deprecated
|
|
17486
|
+
*/
|
|
17487
|
+
toolbarAriaLabel: {
|
|
17488
|
+
type: String,
|
|
17489
|
+
validator: function validator() {
|
|
17490
|
+
console.warn('Deprecated: probably you want expandable=true');
|
|
17491
|
+
return true;
|
|
17492
|
+
}
|
|
17493
|
+
}
|
|
17494
|
+
}, cvTheme/* props */.N), cvId/* props */.N),
|
|
17495
|
+
emits: ['input', 'update:value', 'update:modelValue'],
|
|
17496
|
+
setup: function setup(__props, _ref) {
|
|
17497
|
+
var emit = _ref.emit;
|
|
17498
|
+
var props = __props;
|
|
17499
|
+
var uid = (0,cvId/* useCvId */.l)(props, true);
|
|
17500
|
+
var isLight = (0,cvTheme/* useIsLight */.h)(props);
|
|
17501
|
+
var clearVisible = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(props.value ? props.value.length : false);
|
|
17502
|
+
var internalSearchText = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(props.value || props.modelValue);
|
|
17503
|
+
var searchActive = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
17504
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(function () {
|
|
17505
|
+
return props.value;
|
|
17506
|
+
}, function () {
|
|
17507
|
+
clearVisible.value = props.value ? props.value.length : false;
|
|
17508
|
+
internalSearchText.value = props.value;
|
|
17509
|
+
});
|
|
17510
|
+
var internalAriaLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
17511
|
+
if (!props.label) return props.ariaLabel;else return undefined;
|
|
17512
|
+
});
|
|
17513
|
+
var internalAriaLabelBy = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
17514
|
+
if (props.label) return uid.value;else return undefined;
|
|
17515
|
+
});
|
|
17516
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(internalSearchText, function () {
|
|
17517
|
+
emit('input', internalSearchText.value);
|
|
17518
|
+
emit('update:value', internalSearchText.value);
|
|
17519
|
+
|
|
17520
|
+
if (props.modelValue) {
|
|
17521
|
+
console.warn('Deprecated: use v-model:value instead');
|
|
17522
|
+
emit('update:modelValue', internalSearchText.value);
|
|
17523
|
+
}
|
|
17524
|
+
});
|
|
17525
|
+
|
|
17526
|
+
function onClearClick() {
|
|
17527
|
+
internalSearchText.value = '';
|
|
17528
|
+
clearVisible.value = false;
|
|
17529
|
+
|
|
17530
|
+
if (props.expandable) {
|
|
17531
|
+
var _elInput$value;
|
|
17532
|
+
|
|
17533
|
+
(_elInput$value = elInput.value) === null || _elInput$value === void 0 ? void 0 : _elInput$value.focus();
|
|
17534
|
+
}
|
|
17535
|
+
|
|
17536
|
+
checkFocus();
|
|
17537
|
+
}
|
|
17538
|
+
|
|
17539
|
+
function onInput() {
|
|
17540
|
+
clearVisible.value = internalSearchText.value.length > 0;
|
|
17541
|
+
}
|
|
17542
|
+
|
|
17543
|
+
var elInput = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
17544
|
+
var isExpanded = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
17545
|
+
return props.expandable && searchActive.value;
|
|
17546
|
+
});
|
|
17547
|
+
|
|
17548
|
+
function toggleActive(force) {
|
|
17549
|
+
var _internalSearchText$v;
|
|
17550
|
+
|
|
17551
|
+
if (props.disabled) return;
|
|
17552
|
+
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;
|
|
17553
|
+
|
|
17554
|
+
if (searchActive.value) {
|
|
17555
|
+
var _elInput$value2;
|
|
17556
|
+
|
|
17557
|
+
(_elInput$value2 = elInput.value) === null || _elInput$value2 === void 0 ? void 0 : _elInput$value2.focus();
|
|
17558
|
+
}
|
|
17559
|
+
}
|
|
17560
|
+
|
|
17561
|
+
var elSearch = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
17562
|
+
|
|
17563
|
+
function checkFocus() {
|
|
17564
|
+
if (props.disabled) return;
|
|
17565
|
+
|
|
17566
|
+
if (props.expandable) {
|
|
17567
|
+
var _internalSearchText$v2;
|
|
17568
|
+
|
|
17569
|
+
if (elInput.value !== document.activeElement) searchActive.value = ((_internalSearchText$v2 = internalSearchText.value) === null || _internalSearchText$v2 === void 0 ? void 0 : _internalSearchText$v2.length) > 0;
|
|
17570
|
+
}
|
|
17571
|
+
}
|
|
17572
|
+
|
|
17573
|
+
return function (_ctx, _cache) {
|
|
17574
|
+
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), {
|
|
17575
|
+
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"))
|
|
17576
|
+
}, {
|
|
17577
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
17578
|
+
var _ref2;
|
|
17579
|
+
|
|
17580
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
17581
|
+
"aria-label": internalAriaLabel.value,
|
|
17582
|
+
"aria-labelledby": internalAriaLabelBy.value,
|
|
17583
|
+
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)]),
|
|
17584
|
+
role: "search",
|
|
17585
|
+
ref_key: "elSearch",
|
|
17586
|
+
ref: elSearch
|
|
17587
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
17588
|
+
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")),
|
|
17589
|
+
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
17590
|
+
return toggleActive(true);
|
|
17591
|
+
}),
|
|
17592
|
+
onBlur: checkFocus
|
|
17593
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(_16/* default */.Z), {
|
|
17594
|
+
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"))
|
|
17595
|
+
}, null, 8, ["class"])], 34), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
17596
|
+
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid),
|
|
17597
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--label"))
|
|
17598
|
+
}, (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)({
|
|
17599
|
+
role: "searchbox",
|
|
17600
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid),
|
|
17601
|
+
class: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--search-input")
|
|
17602
|
+
}, _ctx.$attrs, {
|
|
17603
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
|
|
17604
|
+
return internalSearchText.value = $event;
|
|
17605
|
+
}),
|
|
17606
|
+
onInput: onInput,
|
|
17607
|
+
type: "text",
|
|
17608
|
+
ref_key: "elInput",
|
|
17609
|
+
ref: elInput,
|
|
17610
|
+
placeholder: __props.placeholder,
|
|
17611
|
+
"aria-labelledby": (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid),
|
|
17612
|
+
onBlur: checkFocus,
|
|
17613
|
+
onClick: toggleActive,
|
|
17614
|
+
onKeydown: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withKeys)(onClearClick, ["esc"]),
|
|
17615
|
+
disabled: __props.disabled ? 'true' : undefined
|
|
17616
|
+
}), null, 16, _hoisted_3), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vModelText, internalSearchText.value]]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
|
|
17617
|
+
type: "button",
|
|
17618
|
+
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)]),
|
|
17619
|
+
title: __props.clearAriaLabel,
|
|
17620
|
+
"aria-label": __props.clearAriaLabel,
|
|
17621
|
+
onClick: onClearClick
|
|
17622
|
+
}, [(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)];
|
|
17623
|
+
}),
|
|
17624
|
+
_: 1
|
|
17625
|
+
}, 8, ["class"]);
|
|
17626
|
+
};
|
|
17627
|
+
}
|
|
17628
|
+
}));
|
|
17629
|
+
;// CONCATENATED MODULE: ./src/components/CvSearch/CvSearch.vue?vue&type=script&setup=true&lang=js
|
|
17630
|
+
|
|
17631
|
+
;// CONCATENATED MODULE: ./src/components/CvSearch/CvSearch.vue
|
|
17632
|
+
|
|
17633
|
+
|
|
17634
|
+
|
|
17635
|
+
const __exports__ = CvSearchvue_type_script_setup_true_lang_js;
|
|
17636
|
+
|
|
17637
|
+
/* harmony default export */ var CvSearch = (__exports__);
|
|
17638
|
+
|
|
17639
|
+
/***/ }),
|
|
17640
|
+
|
|
15864
17641
|
/***/ 2425:
|
|
15865
17642
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
15866
17643
|
|
|
@@ -15879,6 +17656,18 @@ var defineProperty = __webpack_require__(4186);
|
|
|
15879
17656
|
var objectSpread2 = __webpack_require__(5175);
|
|
15880
17657
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
15881
17658
|
var es_array_includes = __webpack_require__(6699);
|
|
17659
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
17660
|
+
var es_array_join = __webpack_require__(9600);
|
|
17661
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
17662
|
+
var es_array_filter = __webpack_require__(7327);
|
|
17663
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
17664
|
+
var es_object_to_string = __webpack_require__(1539);
|
|
17665
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
17666
|
+
var es_regexp_exec = __webpack_require__(4916);
|
|
17667
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
17668
|
+
var es_string_split = __webpack_require__(3123);
|
|
17669
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.starts-with.js
|
|
17670
|
+
var es_string_starts_with = __webpack_require__(6755);
|
|
15882
17671
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
15883
17672
|
var es_array_concat = __webpack_require__(2222);
|
|
15884
17673
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
@@ -15903,6 +17692,12 @@ var cvTheme = __webpack_require__(6432);
|
|
|
15903
17692
|
|
|
15904
17693
|
|
|
15905
17694
|
|
|
17695
|
+
|
|
17696
|
+
|
|
17697
|
+
|
|
17698
|
+
|
|
17699
|
+
|
|
17700
|
+
|
|
15906
17701
|
var _hoisted_1 = ["data-test"];
|
|
15907
17702
|
var _hoisted_2 = ["for"];
|
|
15908
17703
|
var _hoisted_3 = ["data-invalid"];
|
|
@@ -15950,6 +17745,7 @@ var _hoisted_4 = ["id", "value"];
|
|
|
15950
17745
|
// multiple does not work with styling from carbon-components 9.20
|
|
15951
17746
|
multiple: {
|
|
15952
17747
|
type: String,
|
|
17748
|
+
default: undefined,
|
|
15953
17749
|
validator: function validator() {
|
|
15954
17750
|
console.warn('property multiple not supported in CvSelect');
|
|
15955
17751
|
return false;
|
|
@@ -15967,7 +17763,8 @@ var _hoisted_4 = ["id", "value"];
|
|
|
15967
17763
|
}
|
|
15968
17764
|
},
|
|
15969
17765
|
modelValue: {
|
|
15970
|
-
type: String
|
|
17766
|
+
type: String,
|
|
17767
|
+
default: undefined
|
|
15971
17768
|
}
|
|
15972
17769
|
}, cvTheme/* props */.N), use_cvId/* props */.N),
|
|
15973
17770
|
emits: ['change', 'update:modelValue'],
|
|
@@ -16066,20 +17863,33 @@ var _hoisted_4 = ["id", "value"];
|
|
|
16066
17863
|
}
|
|
16067
17864
|
|
|
16068
17865
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(updateWarning);
|
|
16069
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUpdated)(updateWarning);
|
|
17866
|
+
(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
|
|
17867
|
+
// is wrapped in a div or not. Either way the class attributes are applied in Vue2. In Vue3 the attributes are
|
|
17868
|
+
// not applied. The CvTimePicker consumes this component and needs to apply styles in both the wrapped and
|
|
17869
|
+
// unwrapped case. Here we apply any carbon styles to the outer div.
|
|
17870
|
+
|
|
17871
|
+
var attrs = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useAttrs)();
|
|
17872
|
+
var carbonClasses = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
17873
|
+
var _attrs$class;
|
|
17874
|
+
|
|
17875
|
+
if (props.formItem || !attrs.class) return '';
|
|
17876
|
+
return (_attrs$class = attrs.class) === null || _attrs$class === void 0 ? void 0 : _attrs$class.split(' ').filter(function (c) {
|
|
17877
|
+
return c.startsWith("".concat(settings/* carbonPrefix */.B, "--"));
|
|
17878
|
+
}).join(' ');
|
|
17879
|
+
});
|
|
16070
17880
|
return function (_ctx, _cache) {
|
|
16071
17881
|
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), {
|
|
16072
|
-
"tag-type": __props.formItem ? 'div' : '',
|
|
16073
|
-
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")),
|
|
16074
17882
|
ref_key: "el",
|
|
16075
|
-
ref: el
|
|
17883
|
+
ref: el,
|
|
17884
|
+
"tag-type": __props.formItem ? 'div' : '',
|
|
17885
|
+
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"))
|
|
16076
17886
|
}, {
|
|
16077
17887
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
16078
17888
|
var _ref2, _ref3;
|
|
16079
17889
|
|
|
16080
17890
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
16081
17891
|
"data-test": __props.value,
|
|
16082
|
-
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 = {
|
|
17892
|
+
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 = {
|
|
16083
17893
|
'cv-select': !__props.formItem
|
|
16084
17894
|
}, (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)])
|
|
16085
17895
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
@@ -16096,9 +17906,8 @@ var _hoisted_4 = ["id", "value"];
|
|
|
16096
17906
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("select", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)(_ctx.$attrs, {
|
|
16097
17907
|
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
16098
17908
|
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')],
|
|
16099
|
-
|
|
16100
|
-
|
|
16101
|
-
value: internalValue.value
|
|
17909
|
+
value: internalValue.value,
|
|
17910
|
+
onChange: onChange
|
|
16102
17911
|
}), [(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), {
|
|
16103
17912
|
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"))
|
|
16104
17913
|
}, 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), {
|
|
@@ -16349,6 +18158,776 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(CvSkeletonTextv
|
|
|
16349
18158
|
|
|
16350
18159
|
/***/ }),
|
|
16351
18160
|
|
|
18161
|
+
/***/ 1456:
|
|
18162
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18163
|
+
|
|
18164
|
+
"use strict";
|
|
18165
|
+
// ESM COMPAT FLAG
|
|
18166
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18167
|
+
|
|
18168
|
+
// EXPORTS
|
|
18169
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18170
|
+
"default": function() { return /* binding */ CvSlider; }
|
|
18171
|
+
});
|
|
18172
|
+
|
|
18173
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
18174
|
+
var defineProperty = __webpack_require__(4186);
|
|
18175
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
18176
|
+
var objectSpread2 = __webpack_require__(5175);
|
|
18177
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
18178
|
+
var es_array_concat = __webpack_require__(2222);
|
|
18179
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18180
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
18181
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
18182
|
+
var settings = __webpack_require__(8343);
|
|
18183
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
18184
|
+
var use_cvId = __webpack_require__(780);
|
|
18185
|
+
// EXTERNAL MODULE: ./src/use/cvTheme.js
|
|
18186
|
+
var cvTheme = __webpack_require__(6432);
|
|
18187
|
+
;// 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-82.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
|
|
18188
|
+
|
|
18189
|
+
|
|
18190
|
+
|
|
18191
|
+
|
|
18192
|
+
var _hoisted_1 = ["for", "id"];
|
|
18193
|
+
var _hoisted_2 = ["aria-labelledby", "onKeydown"];
|
|
18194
|
+
var _hoisted_3 = ["id", "step", "min", "max"];
|
|
18195
|
+
var _hoisted_4 = ["placeholder", "onKeydown", "disabled"];
|
|
18196
|
+
|
|
18197
|
+
|
|
18198
|
+
|
|
18199
|
+
|
|
18200
|
+
var DefaultRangeMin = 0;
|
|
18201
|
+
var DefaultRangeMax = 100;
|
|
18202
|
+
var DefaultValue = 0;
|
|
18203
|
+
var StepNaNReplacement = 0;
|
|
18204
|
+
var StepDefaultValue = 1;
|
|
18205
|
+
var DefaultMultiplier = 4;
|
|
18206
|
+
/* harmony default export */ var CvSlidervue_type_script_setup_true_lang_js = ({
|
|
18207
|
+
__name: 'CvSlider',
|
|
18208
|
+
props: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
|
|
18209
|
+
modelValue: {
|
|
18210
|
+
type: String,
|
|
18211
|
+
default: undefined
|
|
18212
|
+
},
|
|
18213
|
+
value: {
|
|
18214
|
+
type: String,
|
|
18215
|
+
default: undefined
|
|
18216
|
+
},
|
|
18217
|
+
disabled: Boolean,
|
|
18218
|
+
label: {
|
|
18219
|
+
type: String,
|
|
18220
|
+
default: undefined
|
|
18221
|
+
},
|
|
18222
|
+
// NOTE: It is not safe to rely on Numbers for non-integer steps
|
|
18223
|
+
min: {
|
|
18224
|
+
type: String,
|
|
18225
|
+
default: '0'
|
|
18226
|
+
},
|
|
18227
|
+
max: {
|
|
18228
|
+
type: String,
|
|
18229
|
+
default: '100'
|
|
18230
|
+
},
|
|
18231
|
+
minLabel: {
|
|
18232
|
+
type: String,
|
|
18233
|
+
default: undefined
|
|
18234
|
+
},
|
|
18235
|
+
maxLabel: {
|
|
18236
|
+
type: String,
|
|
18237
|
+
default: undefined
|
|
18238
|
+
},
|
|
18239
|
+
step: {
|
|
18240
|
+
type: String,
|
|
18241
|
+
default: '1'
|
|
18242
|
+
},
|
|
18243
|
+
stepMultiplier: {
|
|
18244
|
+
type: String,
|
|
18245
|
+
default: '4',
|
|
18246
|
+
validator: function validator(val) {
|
|
18247
|
+
if (val.length) {
|
|
18248
|
+
var intMultiplier = parseInt(val);
|
|
18249
|
+
|
|
18250
|
+
if (isNaN(intMultiplier) || intMultiplier < 1) {
|
|
18251
|
+
console.warn('cv-slider: multiplier must be >= 1');
|
|
18252
|
+
return false;
|
|
18253
|
+
}
|
|
18254
|
+
}
|
|
18255
|
+
|
|
18256
|
+
return true;
|
|
18257
|
+
}
|
|
18258
|
+
}
|
|
18259
|
+
}, cvTheme/* props */.N), use_cvId/* props */.N),
|
|
18260
|
+
emits: ['update:modelValue', 'change', 'update:value'],
|
|
18261
|
+
setup: function setup(__props, _ref) {
|
|
18262
|
+
var emit = _ref.emit;
|
|
18263
|
+
var props = __props;
|
|
18264
|
+
var range = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
18265
|
+
var thumb = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
18266
|
+
var track = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
18267
|
+
var cvId = (0,use_cvId/* useCvId */.l)(props, true);
|
|
18268
|
+
var isLight = (0,cvTheme/* useIsLight */.h)(props);
|
|
18269
|
+
var internalValue = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
|
|
18270
|
+
var animateClick = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
18271
|
+
var isDragging = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
18272
|
+
var dragStartX = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
18273
|
+
var dragStartValue = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
18274
|
+
var percentage = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('0%');
|
|
18275
|
+
var labelId = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
18276
|
+
return "".concat(cvId.value, "-label");
|
|
18277
|
+
});
|
|
18278
|
+
var internalMinLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
18279
|
+
var _props$minLabel;
|
|
18280
|
+
|
|
18281
|
+
return (_props$minLabel = props.minLabel) !== null && _props$minLabel !== void 0 ? _props$minLabel : getMin();
|
|
18282
|
+
});
|
|
18283
|
+
var internalMaxLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
18284
|
+
var _props$maxLabel;
|
|
18285
|
+
|
|
18286
|
+
return (_props$maxLabel = props.maxLabel) !== null && _props$maxLabel !== void 0 ? _props$maxLabel : getMax();
|
|
18287
|
+
});
|
|
18288
|
+
var rangePropsObserver = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
18289
|
+
return {
|
|
18290
|
+
min: props.min,
|
|
18291
|
+
max: props.max,
|
|
18292
|
+
step: props.step
|
|
18293
|
+
};
|
|
18294
|
+
});
|
|
18295
|
+
var internalMultiplier = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
18296
|
+
var intMultiplier = parseInt(props.stepMultiplier); // default to 4 fro multiplier
|
|
18297
|
+
|
|
18298
|
+
return isNaN(intMultiplier) ? DefaultMultiplier : Math.max(intMultiplier, 1);
|
|
18299
|
+
});
|
|
18300
|
+
|
|
18301
|
+
var getRangeAttributeValue = function getRangeAttributeValue(attributeName, defaultForNaN, defaultReturnValue) {
|
|
18302
|
+
if (range !== null && range !== void 0 && range.value) {
|
|
18303
|
+
var val = parseFloat(range.value[attributeName]);
|
|
18304
|
+
return isNaN(val) ? defaultForNaN : val;
|
|
18305
|
+
}
|
|
18306
|
+
|
|
18307
|
+
return defaultReturnValue !== null && defaultReturnValue !== void 0 ? defaultReturnValue : defaultForNaN;
|
|
18308
|
+
};
|
|
18309
|
+
|
|
18310
|
+
var getMin = function getMin() {
|
|
18311
|
+
return getRangeAttributeValue('min', DefaultRangeMin);
|
|
18312
|
+
};
|
|
18313
|
+
|
|
18314
|
+
var getMax = function getMax() {
|
|
18315
|
+
return getRangeAttributeValue('max', DefaultRangeMax);
|
|
18316
|
+
};
|
|
18317
|
+
|
|
18318
|
+
var getValue = function getValue() {
|
|
18319
|
+
var middleValue = (getMax() + getMin()) / 2;
|
|
18320
|
+
return getRangeAttributeValue('value', DefaultValue, middleValue);
|
|
18321
|
+
};
|
|
18322
|
+
|
|
18323
|
+
var getStep = function getStep() {
|
|
18324
|
+
return getRangeAttributeValue('step', StepNaNReplacement, StepDefaultValue);
|
|
18325
|
+
};
|
|
18326
|
+
|
|
18327
|
+
var setValue = function setValue(newValue) {
|
|
18328
|
+
if (props.disabled) return;
|
|
18329
|
+
range.value.value = newValue;
|
|
18330
|
+
internalValue.value = range.value.value;
|
|
18331
|
+
percentage.value = "".concat((internalValue.value - getMin()) * 100 / (getMax() - getMin()), "%");
|
|
18332
|
+
var rangeValue = range.value.value;
|
|
18333
|
+
emit('update:modelValue', rangeValue);
|
|
18334
|
+
emit('update:value', rangeValue);
|
|
18335
|
+
emit('change', rangeValue);
|
|
18336
|
+
};
|
|
18337
|
+
|
|
18338
|
+
var onChange = function onChange() {
|
|
18339
|
+
var newValue = internalValue.value.length ? parseFloat(internalValue.value) : getMin();
|
|
18340
|
+
setValue(newValue);
|
|
18341
|
+
};
|
|
18342
|
+
|
|
18343
|
+
var onStartDrag = function onStartDrag(ev) {
|
|
18344
|
+
document.body.addEventListener('mousemove', onDrag);
|
|
18345
|
+
document.body.addEventListener('mouseup', onStopDrag);
|
|
18346
|
+
dragStartX.value = ev.clientX;
|
|
18347
|
+
dragStartValue.value = getValue();
|
|
18348
|
+
isDragging.value = true;
|
|
18349
|
+
};
|
|
18350
|
+
|
|
18351
|
+
var onDrag = function onDrag(ev) {
|
|
18352
|
+
if (isDragging.value) {
|
|
18353
|
+
// percentage change
|
|
18354
|
+
var newValue = (ev.clientX - dragStartX.value) / track.value.offsetWidth; // uncapped new value
|
|
18355
|
+
|
|
18356
|
+
newValue = dragStartValue.value + (getMax() - getMin()) * newValue;
|
|
18357
|
+
setValue(newValue);
|
|
18358
|
+
}
|
|
18359
|
+
};
|
|
18360
|
+
|
|
18361
|
+
var onStopDrag = function onStopDrag() {
|
|
18362
|
+
isDragging.value = false;
|
|
18363
|
+
document.body.removeEventListener('mousemove', onDrag);
|
|
18364
|
+
document.body.removeEventListener('mouseup', onStopDrag);
|
|
18365
|
+
};
|
|
18366
|
+
|
|
18367
|
+
var onTrackClick = function onTrackClick(ev) {
|
|
18368
|
+
var afterAnimate = function afterAnimate(ev) {
|
|
18369
|
+
if (ev.propertyName === 'left') {
|
|
18370
|
+
animateClick.value = false;
|
|
18371
|
+
thumb.value.removeEventListener('transitionend', afterAnimate);
|
|
18372
|
+
}
|
|
18373
|
+
};
|
|
18374
|
+
|
|
18375
|
+
var newValue = ev.offsetX / track.value.offsetWidth;
|
|
18376
|
+
var min = getMin();
|
|
18377
|
+
newValue = (getMax() - min) * newValue + min;
|
|
18378
|
+
thumb.value.addEventListener('transitionend', afterAnimate);
|
|
18379
|
+
animateClick.value = true;
|
|
18380
|
+
setValue(newValue);
|
|
18381
|
+
};
|
|
18382
|
+
|
|
18383
|
+
var onUpDown = function onUpDown(ev) {
|
|
18384
|
+
var isUp = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
18385
|
+
var curValue = ev.target.type === 'number' ? parseFloat(ev.target.value) : getValue();
|
|
18386
|
+
var step = getStep();
|
|
18387
|
+
var progressValue = ev.shiftKey ? internalMultiplier.value * step : step;
|
|
18388
|
+
var direction = isUp ? 1 : -1;
|
|
18389
|
+
var newValue = curValue + progressValue * direction;
|
|
18390
|
+
setValue(newValue);
|
|
18391
|
+
};
|
|
18392
|
+
|
|
18393
|
+
var onUp = function onUp(ev) {
|
|
18394
|
+
onUpDown(ev);
|
|
18395
|
+
};
|
|
18396
|
+
|
|
18397
|
+
var onDown = function onDown(ev) {
|
|
18398
|
+
onUpDown(ev, false);
|
|
18399
|
+
};
|
|
18400
|
+
|
|
18401
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(function () {
|
|
18402
|
+
var _props$value;
|
|
18403
|
+
|
|
18404
|
+
range.value.value = (_props$value = props.value) !== null && _props$value !== void 0 ? _props$value : props.modelValue;
|
|
18405
|
+
internalValue.value = range.value.value;
|
|
18406
|
+
percentage.value = "".concat((internalValue.value - getMin()) * 100 / (getMax() - getMin()), "%");
|
|
18407
|
+
});
|
|
18408
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(function () {
|
|
18409
|
+
return props.modelValue;
|
|
18410
|
+
}, function (modelValue) {
|
|
18411
|
+
setValue(modelValue);
|
|
18412
|
+
});
|
|
18413
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(function () {
|
|
18414
|
+
return props.value;
|
|
18415
|
+
}, function (value) {
|
|
18416
|
+
setValue(value);
|
|
18417
|
+
});
|
|
18418
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(rangePropsObserver, function () {
|
|
18419
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(function () {
|
|
18420
|
+
setValue(internalValue.value);
|
|
18421
|
+
});
|
|
18422
|
+
});
|
|
18423
|
+
return function (_ctx, _cache) {
|
|
18424
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18425
|
+
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"))
|
|
18426
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
18427
|
+
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
18428
|
+
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)]),
|
|
18429
|
+
id: labelId.value
|
|
18430
|
+
}, (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", {
|
|
18431
|
+
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"))
|
|
18432
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
18433
|
+
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"))
|
|
18434
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(internalMinLabel.value), 3), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18435
|
+
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)]),
|
|
18436
|
+
"data-slider": "",
|
|
18437
|
+
"data-slider-input-box": "#slider-input-box"
|
|
18438
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18439
|
+
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")),
|
|
18440
|
+
onClick: onTrackClick,
|
|
18441
|
+
ref_key: "track",
|
|
18442
|
+
ref: track
|
|
18443
|
+
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18444
|
+
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")),
|
|
18445
|
+
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)("width: ".concat(percentage.value, ";"))
|
|
18446
|
+
}, null, 6), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
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__thumb"), (0,defineProperty/* default */.Z)({}, "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider__thumb--clicked"), animateClick.value)]),
|
|
18448
|
+
tabindex: "0",
|
|
18449
|
+
"aria-labelledby": labelId.value,
|
|
18450
|
+
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)("left: ".concat(percentage.value, ";")),
|
|
18451
|
+
ref_key: "thumb",
|
|
18452
|
+
ref: thumb,
|
|
18453
|
+
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"])],
|
|
18454
|
+
onMousedown: onStartDrag
|
|
18455
|
+
}, null, 46, _hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", {
|
|
18456
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
18457
|
+
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")),
|
|
18458
|
+
type: "range",
|
|
18459
|
+
step: __props.step,
|
|
18460
|
+
min: __props.min,
|
|
18461
|
+
max: __props.max,
|
|
18462
|
+
ref_key: "range",
|
|
18463
|
+
ref: range
|
|
18464
|
+
}, null, 10, _hoisted_3)], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
18465
|
+
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"))
|
|
18466
|
+
}, (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", {
|
|
18467
|
+
type: "string",
|
|
18468
|
+
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))]),
|
|
18469
|
+
placeholder: __props.min,
|
|
18470
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
|
|
18471
|
+
return internalValue.value = $event;
|
|
18472
|
+
}),
|
|
18473
|
+
onChange: onChange,
|
|
18474
|
+
ref: "inputBox",
|
|
18475
|
+
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"])],
|
|
18476
|
+
disabled: __props.disabled
|
|
18477
|
+
}, null, 42, _hoisted_4), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vModelText, internalValue.value]])], 2)], 2);
|
|
18478
|
+
};
|
|
18479
|
+
}
|
|
18480
|
+
});
|
|
18481
|
+
;// CONCATENATED MODULE: ./src/components/CvSlider/CvSlider.vue?vue&type=script&setup=true&lang=js
|
|
18482
|
+
|
|
18483
|
+
;// CONCATENATED MODULE: ./src/components/CvSlider/CvSlider.vue
|
|
18484
|
+
|
|
18485
|
+
|
|
18486
|
+
|
|
18487
|
+
const __exports__ = CvSlidervue_type_script_setup_true_lang_js;
|
|
18488
|
+
|
|
18489
|
+
/* harmony default export */ var CvSlider = (__exports__);
|
|
18490
|
+
|
|
18491
|
+
/***/ }),
|
|
18492
|
+
|
|
18493
|
+
/***/ 3937:
|
|
18494
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18495
|
+
|
|
18496
|
+
"use strict";
|
|
18497
|
+
// ESM COMPAT FLAG
|
|
18498
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18499
|
+
|
|
18500
|
+
// EXPORTS
|
|
18501
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18502
|
+
"default": function() { return /* binding */ CvSliderSkeleton; }
|
|
18503
|
+
});
|
|
18504
|
+
|
|
18505
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
18506
|
+
var es_array_concat = __webpack_require__(2222);
|
|
18507
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18508
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
18509
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
18510
|
+
var settings = __webpack_require__(8343);
|
|
18511
|
+
;// 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-82.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
|
|
18512
|
+
|
|
18513
|
+
|
|
18514
|
+
|
|
18515
|
+
/* harmony default export */ var CvSliderSkeletonvue_type_script_setup_true_lang_js = ({
|
|
18516
|
+
__name: 'CvSliderSkeleton',
|
|
18517
|
+
setup: function setup(__props) {
|
|
18518
|
+
return function (_ctx, _cache) {
|
|
18519
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18520
|
+
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"))
|
|
18521
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
18522
|
+
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"))
|
|
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-container ").concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--skeleton"))
|
|
18525
|
+
}, [(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), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18528
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--slider"))
|
|
18529
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18530
|
+
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"))
|
|
18531
|
+
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18532
|
+
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"))
|
|
18533
|
+
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18534
|
+
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"))
|
|
18535
|
+
}, null, 2)], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
18536
|
+
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"))
|
|
18537
|
+
}, null, 2)], 2)], 2);
|
|
18538
|
+
};
|
|
18539
|
+
}
|
|
18540
|
+
});
|
|
18541
|
+
;// CONCATENATED MODULE: ./src/components/CvSlider/CvSliderSkeleton.vue?vue&type=script&setup=true&lang=js
|
|
18542
|
+
|
|
18543
|
+
;// CONCATENATED MODULE: ./src/components/CvSlider/CvSliderSkeleton.vue
|
|
18544
|
+
|
|
18545
|
+
|
|
18546
|
+
|
|
18547
|
+
const __exports__ = CvSliderSkeletonvue_type_script_setup_true_lang_js;
|
|
18548
|
+
|
|
18549
|
+
/* harmony default export */ var CvSliderSkeleton = (__exports__);
|
|
18550
|
+
|
|
18551
|
+
/***/ }),
|
|
18552
|
+
|
|
18553
|
+
/***/ 5959:
|
|
18554
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18555
|
+
|
|
18556
|
+
"use strict";
|
|
18557
|
+
// ESM COMPAT FLAG
|
|
18558
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18559
|
+
|
|
18560
|
+
// EXPORTS
|
|
18561
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18562
|
+
"default": function() { return /* binding */ CvStructuredList; }
|
|
18563
|
+
});
|
|
18564
|
+
|
|
18565
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
18566
|
+
var defineProperty = __webpack_require__(4186);
|
|
18567
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
18568
|
+
var es_array_concat = __webpack_require__(2222);
|
|
18569
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18570
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
18571
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
18572
|
+
var settings = __webpack_require__(8343);
|
|
18573
|
+
;// 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-82.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
|
|
18574
|
+
|
|
18575
|
+
|
|
18576
|
+
|
|
18577
|
+
var _hoisted_1 = ["data-structured-list"];
|
|
18578
|
+
|
|
18579
|
+
|
|
18580
|
+
/* harmony default export */ var CvStructuredListvue_type_script_setup_true_lang_js = ({
|
|
18581
|
+
__name: 'CvStructuredList',
|
|
18582
|
+
props: {
|
|
18583
|
+
selectable: Boolean,
|
|
18584
|
+
condensed: Boolean
|
|
18585
|
+
},
|
|
18586
|
+
emits: ['change'],
|
|
18587
|
+
setup: function setup(__props, _ref) {
|
|
18588
|
+
var emit = _ref.emit;
|
|
18589
|
+
var props = __props;
|
|
18590
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('change', function (val) {
|
|
18591
|
+
emit('change', val);
|
|
18592
|
+
});
|
|
18593
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('selectable', props.selectable);
|
|
18594
|
+
return function (_ctx, _cache) {
|
|
18595
|
+
var _ref2;
|
|
18596
|
+
|
|
18597
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("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"), (_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)]),
|
|
18599
|
+
"data-structured-list": __props.selectable
|
|
18600
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18601
|
+
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"))
|
|
18602
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18603
|
+
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"))
|
|
18604
|
+
}, [(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", {
|
|
18605
|
+
key: 0,
|
|
18606
|
+
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"))
|
|
18607
|
+
}, null, 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18608
|
+
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"))
|
|
18609
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "items")], 2)], 10, _hoisted_1);
|
|
18610
|
+
};
|
|
18611
|
+
}
|
|
18612
|
+
});
|
|
18613
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredList.vue?vue&type=script&setup=true&lang=js
|
|
18614
|
+
|
|
18615
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredList.vue
|
|
18616
|
+
|
|
18617
|
+
|
|
18618
|
+
|
|
18619
|
+
const __exports__ = CvStructuredListvue_type_script_setup_true_lang_js;
|
|
18620
|
+
|
|
18621
|
+
/* harmony default export */ var CvStructuredList = (__exports__);
|
|
18622
|
+
|
|
18623
|
+
/***/ }),
|
|
18624
|
+
|
|
18625
|
+
/***/ 4830:
|
|
18626
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18627
|
+
|
|
18628
|
+
"use strict";
|
|
18629
|
+
// ESM COMPAT FLAG
|
|
18630
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18631
|
+
|
|
18632
|
+
// EXPORTS
|
|
18633
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18634
|
+
"default": function() { return /* binding */ CvStructuredListData; }
|
|
18635
|
+
});
|
|
18636
|
+
|
|
18637
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
18638
|
+
var defineProperty = __webpack_require__(4186);
|
|
18639
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18640
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
18641
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
18642
|
+
var settings = __webpack_require__(8343);
|
|
18643
|
+
;// 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-82.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
|
|
18644
|
+
|
|
18645
|
+
|
|
18646
|
+
|
|
18647
|
+
/* harmony default export */ var CvStructuredListDatavue_type_script_setup_true_lang_js = ({
|
|
18648
|
+
__name: 'CvStructuredListData',
|
|
18649
|
+
props: {
|
|
18650
|
+
noWrap: Boolean
|
|
18651
|
+
},
|
|
18652
|
+
setup: function setup(__props) {
|
|
18653
|
+
return function (_ctx, _cache) {
|
|
18654
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18655
|
+
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)])
|
|
18656
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2);
|
|
18657
|
+
};
|
|
18658
|
+
}
|
|
18659
|
+
});
|
|
18660
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListData.vue?vue&type=script&setup=true&lang=js
|
|
18661
|
+
|
|
18662
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListData.vue
|
|
18663
|
+
|
|
18664
|
+
|
|
18665
|
+
|
|
18666
|
+
const __exports__ = CvStructuredListDatavue_type_script_setup_true_lang_js;
|
|
18667
|
+
|
|
18668
|
+
/* harmony default export */ var CvStructuredListData = (__exports__);
|
|
18669
|
+
|
|
18670
|
+
/***/ }),
|
|
18671
|
+
|
|
18672
|
+
/***/ 2400:
|
|
18673
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18674
|
+
|
|
18675
|
+
"use strict";
|
|
18676
|
+
// ESM COMPAT FLAG
|
|
18677
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18678
|
+
|
|
18679
|
+
// EXPORTS
|
|
18680
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18681
|
+
"default": function() { return /* binding */ CvStructuredListHeading; }
|
|
18682
|
+
});
|
|
18683
|
+
|
|
18684
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18685
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
18686
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
18687
|
+
var settings = __webpack_require__(8343);
|
|
18688
|
+
;// 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-82.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
|
|
18689
|
+
|
|
18690
|
+
|
|
18691
|
+
/* harmony default export */ var CvStructuredListHeadingvue_type_script_setup_true_lang_js = ({
|
|
18692
|
+
__name: 'CvStructuredListHeading',
|
|
18693
|
+
setup: function setup(__props) {
|
|
18694
|
+
return function (_ctx, _cache) {
|
|
18695
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18696
|
+
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"))
|
|
18697
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2);
|
|
18698
|
+
};
|
|
18699
|
+
}
|
|
18700
|
+
});
|
|
18701
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListHeading.vue?vue&type=script&setup=true&lang=js
|
|
18702
|
+
|
|
18703
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListHeading.vue
|
|
18704
|
+
|
|
18705
|
+
|
|
18706
|
+
|
|
18707
|
+
const __exports__ = CvStructuredListHeadingvue_type_script_setup_true_lang_js;
|
|
18708
|
+
|
|
18709
|
+
/* harmony default export */ var CvStructuredListHeading = (__exports__);
|
|
18710
|
+
|
|
18711
|
+
/***/ }),
|
|
18712
|
+
|
|
18713
|
+
/***/ 6169:
|
|
18714
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18715
|
+
|
|
18716
|
+
"use strict";
|
|
18717
|
+
// ESM COMPAT FLAG
|
|
18718
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18719
|
+
|
|
18720
|
+
// EXPORTS
|
|
18721
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18722
|
+
"default": function() { return /* binding */ CvStructuredListItem; }
|
|
18723
|
+
});
|
|
18724
|
+
|
|
18725
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
18726
|
+
var es_object_assign = __webpack_require__(9601);
|
|
18727
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18728
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
18729
|
+
// EXTERNAL MODULE: ./src/components/CvStructuredList/CvStructuredListItemStandard.vue + 2 modules
|
|
18730
|
+
var CvStructuredListItemStandard = __webpack_require__(9651);
|
|
18731
|
+
// EXTERNAL MODULE: ./src/components/CvStructuredList/CvStructuredListItemSelectable.vue + 2 modules
|
|
18732
|
+
var CvStructuredListItemSelectable = __webpack_require__(8377);
|
|
18733
|
+
;// 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-82.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
|
|
18734
|
+
|
|
18735
|
+
|
|
18736
|
+
|
|
18737
|
+
|
|
18738
|
+
|
|
18739
|
+
/* harmony default export */ var CvStructuredListItemvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign({
|
|
18740
|
+
inheritAttrs: false
|
|
18741
|
+
}, {
|
|
18742
|
+
__name: 'CvStructuredListItem',
|
|
18743
|
+
props: {
|
|
18744
|
+
modelValue: {
|
|
18745
|
+
type: String,
|
|
18746
|
+
default: undefined
|
|
18747
|
+
},
|
|
18748
|
+
value: {
|
|
18749
|
+
type: String,
|
|
18750
|
+
default: undefined
|
|
18751
|
+
}
|
|
18752
|
+
},
|
|
18753
|
+
emits: ['change'],
|
|
18754
|
+
setup: function setup(__props, _ref) {
|
|
18755
|
+
var emit = _ref.emit;
|
|
18756
|
+
var selectable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('selectable');
|
|
18757
|
+
var change = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('change');
|
|
18758
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('onRadioItemChange', function (clickedItemCvId) {
|
|
18759
|
+
emit('change', clickedItemCvId);
|
|
18760
|
+
change(clickedItemCvId); //emit to parent
|
|
18761
|
+
});
|
|
18762
|
+
var tagType = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
18763
|
+
return selectable ? CvStructuredListItemSelectable["default"] : CvStructuredListItemStandard["default"];
|
|
18764
|
+
});
|
|
18765
|
+
return function (_ctx, _cache) {
|
|
18766
|
+
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, {
|
|
18767
|
+
class: "cv-structured-list-item",
|
|
18768
|
+
value: __props.value,
|
|
18769
|
+
modelValue: __props.modelValue
|
|
18770
|
+
}), {
|
|
18771
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
18772
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")];
|
|
18773
|
+
}),
|
|
18774
|
+
_: 3
|
|
18775
|
+
}, 16, ["value", "modelValue"]);
|
|
18776
|
+
};
|
|
18777
|
+
}
|
|
18778
|
+
}));
|
|
18779
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListItem.vue?vue&type=script&setup=true&lang=js
|
|
18780
|
+
|
|
18781
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListItem.vue
|
|
18782
|
+
|
|
18783
|
+
|
|
18784
|
+
|
|
18785
|
+
const __exports__ = CvStructuredListItemvue_type_script_setup_true_lang_js;
|
|
18786
|
+
|
|
18787
|
+
/* harmony default export */ var CvStructuredListItem = (__exports__);
|
|
18788
|
+
|
|
18789
|
+
/***/ }),
|
|
18790
|
+
|
|
18791
|
+
/***/ 8377:
|
|
18792
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18793
|
+
|
|
18794
|
+
"use strict";
|
|
18795
|
+
// ESM COMPAT FLAG
|
|
18796
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18797
|
+
|
|
18798
|
+
// EXPORTS
|
|
18799
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18800
|
+
"default": function() { return /* binding */ CvStructuredListItemSelectable; }
|
|
18801
|
+
});
|
|
18802
|
+
|
|
18803
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
18804
|
+
var objectSpread2 = __webpack_require__(5175);
|
|
18805
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
18806
|
+
var es_object_assign = __webpack_require__(9601);
|
|
18807
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18808
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
18809
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
18810
|
+
var settings = __webpack_require__(8343);
|
|
18811
|
+
// EXTERNAL MODULE: ./src/use/index.js + 2 modules
|
|
18812
|
+
var use = __webpack_require__(8497);
|
|
18813
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/checkmark--filled/16.js
|
|
18814
|
+
var _16 = __webpack_require__(5835);
|
|
18815
|
+
;// 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-82.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
|
|
18816
|
+
|
|
18817
|
+
|
|
18818
|
+
|
|
18819
|
+
var _hoisted_1 = ["for", "aria-label"];
|
|
18820
|
+
var _hoisted_2 = ["id", "checked", "value"];
|
|
18821
|
+
|
|
18822
|
+
|
|
18823
|
+
|
|
18824
|
+
/* harmony default export */ var CvStructuredListItemSelectablevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign({
|
|
18825
|
+
inheritAttrs: false
|
|
18826
|
+
}, {
|
|
18827
|
+
__name: 'CvStructuredListItemSelectable',
|
|
18828
|
+
props: (0,objectSpread2/* default */.Z)({
|
|
18829
|
+
label: {
|
|
18830
|
+
type: String,
|
|
18831
|
+
default: undefined
|
|
18832
|
+
},
|
|
18833
|
+
modelValue: {
|
|
18834
|
+
type: String,
|
|
18835
|
+
default: undefined
|
|
18836
|
+
},
|
|
18837
|
+
value: {
|
|
18838
|
+
type: String,
|
|
18839
|
+
default: undefined
|
|
18840
|
+
}
|
|
18841
|
+
}, use/* propsCvId */.rz),
|
|
18842
|
+
emits: ['update:modelValue', 'change'],
|
|
18843
|
+
setup: function setup(__props, _ref) {
|
|
18844
|
+
var emit = _ref.emit;
|
|
18845
|
+
var props = __props;
|
|
18846
|
+
var cvId = (0,use/* useCvId */.lX)(props);
|
|
18847
|
+
|
|
18848
|
+
var _useRadio = (0,use/* useRadio */.xL)(props, emit),
|
|
18849
|
+
isChecked = _useRadio.isChecked,
|
|
18850
|
+
onChange = _useRadio.onChange;
|
|
18851
|
+
|
|
18852
|
+
return function (_ctx, _cache) {
|
|
18853
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("label", {
|
|
18854
|
+
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
18855
|
+
"aria-label": __props.label,
|
|
18856
|
+
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"), {
|
|
18857
|
+
' ${carbonPrefix}--structured-list-row--selected': (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isChecked)
|
|
18858
|
+
}]),
|
|
18859
|
+
tabindex: "0"
|
|
18860
|
+
}, [(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, {
|
|
18861
|
+
tabindex: "-1",
|
|
18862
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
18863
|
+
class: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--structured-list-input"),
|
|
18864
|
+
checked: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isChecked),
|
|
18865
|
+
value: __props.value,
|
|
18866
|
+
type: "radio",
|
|
18867
|
+
onChange: _cache[0] || (_cache[0] = function () {
|
|
18868
|
+
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);
|
|
18869
|
+
})
|
|
18870
|
+
}), null, 16, _hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18871
|
+
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"))
|
|
18872
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(_16/* default */.Z), {
|
|
18873
|
+
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"))
|
|
18874
|
+
}, null, 8, ["class"])], 2)], 10, _hoisted_1);
|
|
18875
|
+
};
|
|
18876
|
+
}
|
|
18877
|
+
}));
|
|
18878
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListItemSelectable.vue?vue&type=script&setup=true&lang=js
|
|
18879
|
+
|
|
18880
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListItemSelectable.vue
|
|
18881
|
+
|
|
18882
|
+
|
|
18883
|
+
|
|
18884
|
+
const __exports__ = CvStructuredListItemSelectablevue_type_script_setup_true_lang_js;
|
|
18885
|
+
|
|
18886
|
+
/* harmony default export */ var CvStructuredListItemSelectable = (__exports__);
|
|
18887
|
+
|
|
18888
|
+
/***/ }),
|
|
18889
|
+
|
|
18890
|
+
/***/ 9651:
|
|
18891
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18892
|
+
|
|
18893
|
+
"use strict";
|
|
18894
|
+
// ESM COMPAT FLAG
|
|
18895
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18896
|
+
|
|
18897
|
+
// EXPORTS
|
|
18898
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
18899
|
+
"default": function() { return /* binding */ CvStructuredListItemStandard; }
|
|
18900
|
+
});
|
|
18901
|
+
|
|
18902
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18903
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
18904
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
18905
|
+
var settings = __webpack_require__(8343);
|
|
18906
|
+
;// 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-82.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
|
|
18907
|
+
|
|
18908
|
+
|
|
18909
|
+
/* harmony default export */ var CvStructuredListItemStandardvue_type_script_setup_true_lang_js = ({
|
|
18910
|
+
__name: 'CvStructuredListItemStandard',
|
|
18911
|
+
setup: function setup(__props) {
|
|
18912
|
+
return function (_ctx, _cache) {
|
|
18913
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18914
|
+
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"))
|
|
18915
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2);
|
|
18916
|
+
};
|
|
18917
|
+
}
|
|
18918
|
+
});
|
|
18919
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListItemStandard.vue?vue&type=script&setup=true&lang=js
|
|
18920
|
+
|
|
18921
|
+
;// CONCATENATED MODULE: ./src/components/CvStructuredList/CvStructuredListItemStandard.vue
|
|
18922
|
+
|
|
18923
|
+
|
|
18924
|
+
|
|
18925
|
+
const __exports__ = CvStructuredListItemStandardvue_type_script_setup_true_lang_js;
|
|
18926
|
+
|
|
18927
|
+
/* harmony default export */ var CvStructuredListItemStandard = (__exports__);
|
|
18928
|
+
|
|
18929
|
+
/***/ }),
|
|
18930
|
+
|
|
16352
18931
|
/***/ 6751:
|
|
16353
18932
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16354
18933
|
|
|
@@ -17497,6 +20076,54 @@ const __exports__ = CvTextAreavue_type_script_setup_true_lang_js;
|
|
|
17497
20076
|
|
|
17498
20077
|
/***/ }),
|
|
17499
20078
|
|
|
20079
|
+
/***/ 7543:
|
|
20080
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20081
|
+
|
|
20082
|
+
"use strict";
|
|
20083
|
+
// ESM COMPAT FLAG
|
|
20084
|
+
__webpack_require__.r(__webpack_exports__);
|
|
20085
|
+
|
|
20086
|
+
// EXPORTS
|
|
20087
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
20088
|
+
"default": function() { return /* binding */ CvTextAreaSkeleton; }
|
|
20089
|
+
});
|
|
20090
|
+
|
|
20091
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
20092
|
+
var es_array_concat = __webpack_require__(2222);
|
|
20093
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
20094
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
20095
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
20096
|
+
var settings = __webpack_require__(8343);
|
|
20097
|
+
;// 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-82.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
|
|
20098
|
+
|
|
20099
|
+
|
|
20100
|
+
|
|
20101
|
+
/* harmony default export */ var CvTextAreaSkeletonvue_type_script_setup_true_lang_js = ({
|
|
20102
|
+
__name: 'CvTextAreaSkeleton',
|
|
20103
|
+
setup: function setup(__props) {
|
|
20104
|
+
return function (_ctx, _cache) {
|
|
20105
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
20106
|
+
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"))
|
|
20107
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
20108
|
+
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"))
|
|
20109
|
+
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
20110
|
+
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"))
|
|
20111
|
+
}, null, 2)], 2);
|
|
20112
|
+
};
|
|
20113
|
+
}
|
|
20114
|
+
});
|
|
20115
|
+
;// CONCATENATED MODULE: ./src/components/CvTextArea/CvTextAreaSkeleton.vue?vue&type=script&setup=true&lang=js
|
|
20116
|
+
|
|
20117
|
+
;// CONCATENATED MODULE: ./src/components/CvTextArea/CvTextAreaSkeleton.vue
|
|
20118
|
+
|
|
20119
|
+
|
|
20120
|
+
|
|
20121
|
+
const __exports__ = CvTextAreaSkeletonvue_type_script_setup_true_lang_js;
|
|
20122
|
+
|
|
20123
|
+
/* harmony default export */ var CvTextAreaSkeleton = (__exports__);
|
|
20124
|
+
|
|
20125
|
+
/***/ }),
|
|
20126
|
+
|
|
17500
20127
|
/***/ 254:
|
|
17501
20128
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17502
20129
|
|
|
@@ -17842,8 +20469,8 @@ var cvTheme = __webpack_require__(6432);
|
|
|
17842
20469
|
var CvTileStandard = __webpack_require__(8891);
|
|
17843
20470
|
// EXTERNAL MODULE: ./src/components/CvTile/CvTileClickable.vue + 2 modules
|
|
17844
20471
|
var CvTileClickable = __webpack_require__(3382);
|
|
17845
|
-
// EXTERNAL MODULE: ./src/components/CvTile/CvTileSelectable.vue +
|
|
17846
|
-
var CvTileSelectable = __webpack_require__(
|
|
20472
|
+
// EXTERNAL MODULE: ./src/components/CvTile/CvTileSelectable.vue + 2 modules
|
|
20473
|
+
var CvTileSelectable = __webpack_require__(8135);
|
|
17847
20474
|
// EXTERNAL MODULE: ./src/components/CvTile/CvTileExpandable.vue + 2 modules
|
|
17848
20475
|
var CvTileExpandable = __webpack_require__(4349);
|
|
17849
20476
|
;// 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-82.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
|
|
@@ -18125,7 +20752,7 @@ const __exports__ = CvTileExpandablevue_type_script_setup_true_lang_js;
|
|
|
18125
20752
|
|
|
18126
20753
|
/***/ }),
|
|
18127
20754
|
|
|
18128
|
-
/***/
|
|
20755
|
+
/***/ 8135:
|
|
18129
20756
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18130
20757
|
|
|
18131
20758
|
"use strict";
|
|
@@ -18149,43 +20776,8 @@ var settings = __webpack_require__(8343);
|
|
|
18149
20776
|
var cvCheck = __webpack_require__(7839);
|
|
18150
20777
|
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
18151
20778
|
var cvId = __webpack_require__(780);
|
|
18152
|
-
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/
|
|
18153
|
-
var
|
|
18154
|
-
;// CONCATENATED MODULE: ./node_modules/@carbon/icons-vue/es/checkmark--filled/16.js
|
|
18155
|
-
/**
|
|
18156
|
-
* Copyright IBM Corp. 2019, 2020
|
|
18157
|
-
*
|
|
18158
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
18159
|
-
* LICENSE file in the root directory of this source tree.
|
|
18160
|
-
*
|
|
18161
|
-
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
|
|
18162
|
-
*/
|
|
18163
|
-
|
|
18164
|
-
|
|
18165
|
-
|
|
18166
|
-
|
|
18167
|
-
var CheckmarkFilled16 = (0,utils_148d018d.c)(CheckmarkFilled16, {
|
|
18168
|
-
"xmlns": "http://www.w3.org/2000/svg",
|
|
18169
|
-
"viewBox": "0 0 16 16",
|
|
18170
|
-
"fill": "currentColor",
|
|
18171
|
-
"width": 16,
|
|
18172
|
-
"height": 16
|
|
18173
|
-
}, [{
|
|
18174
|
-
"elem": "path",
|
|
18175
|
-
"attrs": {
|
|
18176
|
-
"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"
|
|
18177
|
-
}
|
|
18178
|
-
}, {
|
|
18179
|
-
"elem": "path",
|
|
18180
|
-
"attrs": {
|
|
18181
|
-
"d": "M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z",
|
|
18182
|
-
"data-icon-path": "inner-path",
|
|
18183
|
-
"opacity": "0"
|
|
18184
|
-
}
|
|
18185
|
-
}]);
|
|
18186
|
-
|
|
18187
|
-
|
|
18188
|
-
|
|
20779
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/checkmark--filled/16.js
|
|
20780
|
+
var _16 = __webpack_require__(5835);
|
|
18189
20781
|
;// 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-82.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
|
|
18190
20782
|
|
|
18191
20783
|
|
|
@@ -18237,7 +20829,7 @@ var _hoisted_2 = ["id", "checked", "aria-checked"];
|
|
|
18237
20829
|
})
|
|
18238
20830
|
}), null, 16, _hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
18239
20831
|
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"))
|
|
18240
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(
|
|
20832
|
+
}, [(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", {
|
|
18241
20833
|
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"))
|
|
18242
20834
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2)], 10, _hoisted_1);
|
|
18243
20835
|
};
|
|
@@ -18292,6 +20884,353 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(script, [['rend
|
|
|
18292
20884
|
|
|
18293
20885
|
/***/ }),
|
|
18294
20886
|
|
|
20887
|
+
/***/ 4858:
|
|
20888
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20889
|
+
|
|
20890
|
+
"use strict";
|
|
20891
|
+
// ESM COMPAT FLAG
|
|
20892
|
+
__webpack_require__.r(__webpack_exports__);
|
|
20893
|
+
|
|
20894
|
+
// EXPORTS
|
|
20895
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
20896
|
+
"default": function() { return /* binding */ CvTimePicker; }
|
|
20897
|
+
});
|
|
20898
|
+
|
|
20899
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
20900
|
+
var defineProperty = __webpack_require__(4186);
|
|
20901
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
20902
|
+
var objectSpread2 = __webpack_require__(5175);
|
|
20903
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
20904
|
+
var es_object_assign = __webpack_require__(9601);
|
|
20905
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
20906
|
+
var es_array_includes = __webpack_require__(6699);
|
|
20907
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
20908
|
+
var es_string_includes = __webpack_require__(2023);
|
|
20909
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
20910
|
+
var es_array_find = __webpack_require__(9826);
|
|
20911
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
20912
|
+
var es_object_to_string = __webpack_require__(1539);
|
|
20913
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
20914
|
+
var es_array_concat = __webpack_require__(2222);
|
|
20915
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
20916
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
20917
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
20918
|
+
var settings = __webpack_require__(8343);
|
|
20919
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
20920
|
+
var cvId = __webpack_require__(780);
|
|
20921
|
+
// EXTERNAL MODULE: ./src/use/cvTheme.js
|
|
20922
|
+
var cvTheme = __webpack_require__(6432);
|
|
20923
|
+
// EXTERNAL MODULE: ./src/components/CvSelect/CvSelect.vue + 2 modules
|
|
20924
|
+
var CvSelect = __webpack_require__(2425);
|
|
20925
|
+
// EXTERNAL MODULE: ./src/components/CvSelect/CvSelectOption.vue + 2 modules
|
|
20926
|
+
var CvSelectOption = __webpack_require__(6144);
|
|
20927
|
+
;// CONCATENATED MODULE: ./src/components/CvTimePicker/index.js
|
|
20928
|
+
|
|
20929
|
+
var FIELD_SMALL = 'sm';
|
|
20930
|
+
var FIELD_MEDIUM = 'md';
|
|
20931
|
+
var FIELD_LARGE = 'lg';
|
|
20932
|
+
var TIME_PICKER_SIZES = [FIELD_SMALL, FIELD_MEDIUM, FIELD_LARGE];
|
|
20933
|
+
var TIME_PICKER_AM = 'AM';
|
|
20934
|
+
var TIME_PICKER_PM = 'PM';
|
|
20935
|
+
var TIME_PICKER_24 = '24';
|
|
20936
|
+
var TIME_PICKER_HOURS = [TIME_PICKER_AM, TIME_PICKER_PM, TIME_PICKER_24];
|
|
20937
|
+
|
|
20938
|
+
;// 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-82.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
|
|
20939
|
+
|
|
20940
|
+
|
|
20941
|
+
|
|
20942
|
+
|
|
20943
|
+
|
|
20944
|
+
|
|
20945
|
+
|
|
20946
|
+
|
|
20947
|
+
|
|
20948
|
+
var _hoisted_1 = ["data-invalid"];
|
|
20949
|
+
var _hoisted_2 = ["for"];
|
|
20950
|
+
var _hoisted_3 = ["id", "pattern", "placeholder", "maxlength", "value", "disabled"];
|
|
20951
|
+
var _hoisted_4 = {
|
|
20952
|
+
key: 1
|
|
20953
|
+
};
|
|
20954
|
+
|
|
20955
|
+
|
|
20956
|
+
|
|
20957
|
+
|
|
20958
|
+
|
|
20959
|
+
|
|
20960
|
+
|
|
20961
|
+
/* harmony default export */ var CvTimePickervue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign({
|
|
20962
|
+
inheritAttrs: false
|
|
20963
|
+
}, {
|
|
20964
|
+
__name: 'CvTimePicker',
|
|
20965
|
+
props: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
|
|
20966
|
+
/**
|
|
20967
|
+
* Initial value for the AM/PM `<cv-select>`. If set to `24` the `<cv-select>` is not included.
|
|
20968
|
+
*/
|
|
20969
|
+
ampm: {
|
|
20970
|
+
type: String,
|
|
20971
|
+
default: TIME_PICKER_AM,
|
|
20972
|
+
validator: function validator(value) {
|
|
20973
|
+
return TIME_PICKER_HOURS.includes(value);
|
|
20974
|
+
}
|
|
20975
|
+
},
|
|
20976
|
+
|
|
20977
|
+
/**
|
|
20978
|
+
* Label for the AM/PM `<cv-select>`
|
|
20979
|
+
*/
|
|
20980
|
+
ampmSelectLabel: {
|
|
20981
|
+
type: String,
|
|
20982
|
+
default: 'Select AM/PM'
|
|
20983
|
+
},
|
|
20984
|
+
|
|
20985
|
+
/**
|
|
20986
|
+
* Specify whether the `<input>` should be disabled
|
|
20987
|
+
*/
|
|
20988
|
+
disabled: {
|
|
20989
|
+
type: Boolean,
|
|
20990
|
+
default: false
|
|
20991
|
+
},
|
|
20992
|
+
|
|
20993
|
+
/**
|
|
20994
|
+
* Provide the text that is displayed when the control is in an invalid state
|
|
20995
|
+
*/
|
|
20996
|
+
invalidMessage: {
|
|
20997
|
+
type: String,
|
|
20998
|
+
default: undefined
|
|
20999
|
+
},
|
|
21000
|
+
|
|
21001
|
+
/**
|
|
21002
|
+
* Label for the time `<input>`
|
|
21003
|
+
*/
|
|
21004
|
+
label: {
|
|
21005
|
+
type: String,
|
|
21006
|
+
default: 'Select a time'
|
|
21007
|
+
},
|
|
21008
|
+
|
|
21009
|
+
/**
|
|
21010
|
+
* Specify the regular expression working as the [pattern](https://www.w3schools.com/tags/att_input_pattern.asp) of the time string in `<input>`.
|
|
21011
|
+
*/
|
|
21012
|
+
pattern: {
|
|
21013
|
+
type: String,
|
|
21014
|
+
default: '([01][0-9]:[0-6][0-9])'
|
|
21015
|
+
},
|
|
21016
|
+
|
|
21017
|
+
/**
|
|
21018
|
+
* Specify the placeholder attribute for the <input>
|
|
21019
|
+
*/
|
|
21020
|
+
placeholder: {
|
|
21021
|
+
type: String,
|
|
21022
|
+
default: 'hh:mm'
|
|
21023
|
+
},
|
|
21024
|
+
|
|
21025
|
+
/**
|
|
21026
|
+
* Specify the initial value of the `<input>`
|
|
21027
|
+
*/
|
|
21028
|
+
time: {
|
|
21029
|
+
type: String,
|
|
21030
|
+
default: undefined
|
|
21031
|
+
},
|
|
21032
|
+
|
|
21033
|
+
/**
|
|
21034
|
+
* Specify the initial value of the `<cv-select>` for the timezone
|
|
21035
|
+
*/
|
|
21036
|
+
timezone: {
|
|
21037
|
+
type: String,
|
|
21038
|
+
default: undefined
|
|
21039
|
+
},
|
|
21040
|
+
|
|
21041
|
+
/**
|
|
21042
|
+
* List of timezones to display
|
|
21043
|
+
* @type {Array<{value: string, label:string}>}
|
|
21044
|
+
*/
|
|
21045
|
+
timezones: {
|
|
21046
|
+
type: Array,
|
|
21047
|
+
default: function _default() {
|
|
21048
|
+
return [];
|
|
21049
|
+
}
|
|
21050
|
+
},
|
|
21051
|
+
|
|
21052
|
+
/**
|
|
21053
|
+
* 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.
|
|
21054
|
+
*/
|
|
21055
|
+
timezonesSelectLabel: {
|
|
21056
|
+
type: String,
|
|
21057
|
+
default: 'Select time zone'
|
|
21058
|
+
},
|
|
21059
|
+
|
|
21060
|
+
/**
|
|
21061
|
+
* Specify the size of the Time Picker.
|
|
21062
|
+
*/
|
|
21063
|
+
fieldSize: {
|
|
21064
|
+
type: String,
|
|
21065
|
+
default: FIELD_MEDIUM,
|
|
21066
|
+
validator: function validator(value) {
|
|
21067
|
+
return TIME_PICKER_SIZES.includes(value);
|
|
21068
|
+
}
|
|
21069
|
+
}
|
|
21070
|
+
}, cvId/* props */.N), cvTheme/* props */.N),
|
|
21071
|
+
emits: ['change', 'update:ampm', 'update:timezone', 'update:time'],
|
|
21072
|
+
setup: function setup(__props, _ref) {
|
|
21073
|
+
var emit = _ref.emit;
|
|
21074
|
+
var props = __props;
|
|
21075
|
+
var uid = (0,cvId/* useCvId */.l)(props, true);
|
|
21076
|
+
var isLight = (0,cvTheme/* useIsLight */.h)(props);
|
|
21077
|
+
var isInvalid = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
21078
|
+
var slots = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useSlots)();
|
|
21079
|
+
|
|
21080
|
+
function checkSlots() {
|
|
21081
|
+
// NOTE: slots is not reactive so needs to be managed on updated
|
|
21082
|
+
isInvalid.value = !!(slots['invalid-message'] || props.invalidMessage && props.invalidMessage.length);
|
|
21083
|
+
}
|
|
21084
|
+
|
|
21085
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(checkSlots);
|
|
21086
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUpdated)(checkSlots);
|
|
21087
|
+
var validTimezone = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
21088
|
+
// Validate timezone setting
|
|
21089
|
+
var result = props.timezone;
|
|
21090
|
+
|
|
21091
|
+
if (props.timezones && props.timezones.length) {
|
|
21092
|
+
if (!props.timezones.find(function (item) {
|
|
21093
|
+
return item.value === props.timezone;
|
|
21094
|
+
})) {
|
|
21095
|
+
if (props.timezone !== undefined) console.error("CvTimePicker: invalid value '".concat(props.timezone, "' supplied for prop timezone. Default applied.")); // set to first valid value
|
|
21096
|
+
|
|
21097
|
+
result = props.timezones[0].value;
|
|
21098
|
+
emit('update:timezone', result);
|
|
21099
|
+
}
|
|
21100
|
+
}
|
|
21101
|
+
|
|
21102
|
+
return result;
|
|
21103
|
+
});
|
|
21104
|
+
var isDisabled = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
21105
|
+
return props.disabled ? true : undefined;
|
|
21106
|
+
});
|
|
21107
|
+
|
|
21108
|
+
function onInput(e) {
|
|
21109
|
+
var _e$target, _e$target2;
|
|
21110
|
+
|
|
21111
|
+
emit('change', {
|
|
21112
|
+
type: 'time',
|
|
21113
|
+
value: e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value
|
|
21114
|
+
});
|
|
21115
|
+
emit('update:time', e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value);
|
|
21116
|
+
}
|
|
21117
|
+
|
|
21118
|
+
function onChangeAMPM(value) {
|
|
21119
|
+
emit('change', {
|
|
21120
|
+
type: 'ampm',
|
|
21121
|
+
value: value
|
|
21122
|
+
});
|
|
21123
|
+
emit('update:ampm', value);
|
|
21124
|
+
}
|
|
21125
|
+
|
|
21126
|
+
function onChangeTimeZone(value) {
|
|
21127
|
+
emit('change', {
|
|
21128
|
+
type: 'timezone',
|
|
21129
|
+
value: value
|
|
21130
|
+
});
|
|
21131
|
+
emit('update:timezone', value);
|
|
21132
|
+
}
|
|
21133
|
+
|
|
21134
|
+
return function (_ctx, _cache) {
|
|
21135
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
21136
|
+
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"))
|
|
21137
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21138
|
+
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))]),
|
|
21139
|
+
"data-invalid": isInvalid.value
|
|
21140
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21141
|
+
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"))
|
|
21142
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
21143
|
+
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid),
|
|
21144
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)("".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--label"))
|
|
21145
|
+
}, (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)({
|
|
21146
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(uid),
|
|
21147
|
+
type: "text",
|
|
21148
|
+
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))],
|
|
21149
|
+
pattern: __props.pattern
|
|
21150
|
+
}, _ctx.$attrs, {
|
|
21151
|
+
placeholder: __props.placeholder,
|
|
21152
|
+
maxlength: __props.placeholder.length,
|
|
21153
|
+
value: __props.time,
|
|
21154
|
+
disabled: isDisabled.value,
|
|
21155
|
+
onInput: onInput
|
|
21156
|
+
}), 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"], {
|
|
21157
|
+
key: 0,
|
|
21158
|
+
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")),
|
|
21159
|
+
"form-item": false,
|
|
21160
|
+
"hide-label": "",
|
|
21161
|
+
label: __props.ampmSelectLabel,
|
|
21162
|
+
value: __props.ampm,
|
|
21163
|
+
disabled: isDisabled.value,
|
|
21164
|
+
size: __props.fieldSize,
|
|
21165
|
+
onChange: onChangeAMPM
|
|
21166
|
+
}, {
|
|
21167
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
21168
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(CvSelectOption["default"], {
|
|
21169
|
+
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")),
|
|
21170
|
+
value: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(TIME_PICKER_AM)
|
|
21171
|
+
}, {
|
|
21172
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
21173
|
+
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)];
|
|
21174
|
+
}),
|
|
21175
|
+
_: 1
|
|
21176
|
+
}, 8, ["class", "value"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(CvSelectOption["default"], {
|
|
21177
|
+
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")),
|
|
21178
|
+
value: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(TIME_PICKER_PM)
|
|
21179
|
+
}, {
|
|
21180
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
21181
|
+
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)];
|
|
21182
|
+
}),
|
|
21183
|
+
_: 1
|
|
21184
|
+
}, 8, ["class", "value"])];
|
|
21185
|
+
}),
|
|
21186
|
+
_: 1
|
|
21187
|
+
}, 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"], {
|
|
21188
|
+
key: 2,
|
|
21189
|
+
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")),
|
|
21190
|
+
"form-item": false,
|
|
21191
|
+
"hide-label": "",
|
|
21192
|
+
label: __props.timezonesSelectLabel,
|
|
21193
|
+
value: validTimezone.value,
|
|
21194
|
+
disabled: isDisabled.value,
|
|
21195
|
+
size: __props.fieldSize,
|
|
21196
|
+
onChange: onChangeTimeZone
|
|
21197
|
+
}, {
|
|
21198
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
21199
|
+
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) {
|
|
21200
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(CvSelectOption["default"], {
|
|
21201
|
+
key: item.value,
|
|
21202
|
+
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")),
|
|
21203
|
+
value: item.value
|
|
21204
|
+
}, {
|
|
21205
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
21206
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.label), 1)];
|
|
21207
|
+
}),
|
|
21208
|
+
_: 2
|
|
21209
|
+
}, 1032, ["class", "value"]);
|
|
21210
|
+
}), 128))];
|
|
21211
|
+
}),
|
|
21212
|
+
_: 1
|
|
21213
|
+
}, 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", {
|
|
21214
|
+
key: 0,
|
|
21215
|
+
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"))
|
|
21216
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "invalid-message", {}, function () {
|
|
21217
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.invalidMessage), 1)];
|
|
21218
|
+
})], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2);
|
|
21219
|
+
};
|
|
21220
|
+
}
|
|
21221
|
+
}));
|
|
21222
|
+
;// CONCATENATED MODULE: ./src/components/CvTimePicker/CvTimePicker.vue?vue&type=script&setup=true&lang=js
|
|
21223
|
+
|
|
21224
|
+
;// CONCATENATED MODULE: ./src/components/CvTimePicker/CvTimePicker.vue
|
|
21225
|
+
|
|
21226
|
+
|
|
21227
|
+
|
|
21228
|
+
const __exports__ = CvTimePickervue_type_script_setup_true_lang_js;
|
|
21229
|
+
|
|
21230
|
+
/* harmony default export */ var CvTimePicker = (__exports__);
|
|
21231
|
+
|
|
21232
|
+
/***/ }),
|
|
21233
|
+
|
|
18295
21234
|
/***/ 9975:
|
|
18296
21235
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18297
21236
|
|
|
@@ -18304,10 +21243,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
18304
21243
|
"default": function() { return /* binding */ CvToggle_Skeleton; }
|
|
18305
21244
|
});
|
|
18306
21245
|
|
|
21246
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
21247
|
+
var defineProperty = __webpack_require__(4186);
|
|
18307
21248
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
18308
21249
|
var objectSpread2 = __webpack_require__(5175);
|
|
18309
21250
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
18310
21251
|
var es_array_concat = __webpack_require__(2222);
|
|
21252
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.small.js
|
|
21253
|
+
var es_string_small = __webpack_require__(7268);
|
|
18311
21254
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
18312
21255
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
18313
21256
|
// EXTERNAL MODULE: ./src/global/settings.js
|
|
@@ -18318,38 +21261,58 @@ var use_cvId = __webpack_require__(780);
|
|
|
18318
21261
|
|
|
18319
21262
|
|
|
18320
21263
|
|
|
18321
|
-
|
|
18322
|
-
|
|
21264
|
+
|
|
21265
|
+
|
|
21266
|
+
var _hoisted_1 = ["aria-label"];
|
|
21267
|
+
var _hoisted_2 = ["id"];
|
|
21268
|
+
var _hoisted_3 = ["for"];
|
|
21269
|
+
|
|
21270
|
+
var _hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, null, -1);
|
|
21271
|
+
|
|
18323
21272
|
|
|
18324
21273
|
|
|
18325
21274
|
/* harmony default export */ var CvToggle_Skeletonvue_type_script_setup_true_lang_js = ({
|
|
18326
21275
|
__name: 'CvToggle-Skeleton',
|
|
18327
|
-
props: {
|
|
18328
|
-
|
|
21276
|
+
props: (0,objectSpread2/* default */.Z)({
|
|
21277
|
+
/**
|
|
21278
|
+
* Label and aria-label for the toggle
|
|
21279
|
+
*/
|
|
21280
|
+
label: {
|
|
18329
21281
|
type: String,
|
|
18330
21282
|
default: 'Toggle is loading'
|
|
18331
|
-
},
|
|
18332
|
-
|
|
21283
|
+
},
|
|
21284
|
+
|
|
21285
|
+
/**
|
|
21286
|
+
* Specify the size of the Toggle. Default is medium. Set to `true` for small.
|
|
21287
|
+
*/
|
|
21288
|
+
small: {
|
|
21289
|
+
type: Boolean,
|
|
21290
|
+
default: false
|
|
21291
|
+
}
|
|
21292
|
+
}, use_cvId/* props */.N),
|
|
18333
21293
|
setup: function setup(__props) {
|
|
18334
21294
|
var props = __props;
|
|
18335
|
-
var cvId = (0,use_cvId/* useCvId */.l)(props);
|
|
21295
|
+
var cvId = (0,use_cvId/* useCvId */.l)(props, true);
|
|
18336
21296
|
return function (_ctx, _cache) {
|
|
18337
21297
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18338
21298
|
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")),
|
|
18339
|
-
|
|
18340
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("
|
|
18341
|
-
|
|
18342
|
-
|
|
18343
|
-
"
|
|
21299
|
+
"aria-label": __props.label
|
|
21300
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", {
|
|
21301
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
21302
|
+
type: "checkbox",
|
|
21303
|
+
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)])
|
|
21304
|
+
}, null, 10, _hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
21305
|
+
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")),
|
|
21306
|
+
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId)
|
|
21307
|
+
}, [_hoisted_4, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
21308
|
+
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"))
|
|
18344
21309
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
18345
|
-
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"))
|
|
18346
|
-
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
18347
21310
|
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"))
|
|
18348
21311
|
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
18349
21312
|
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"))
|
|
18350
21313
|
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
18351
21314
|
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"))
|
|
18352
|
-
}, null, 2)], 10,
|
|
21315
|
+
}, null, 2)], 2)], 10, _hoisted_3)], 10, _hoisted_1);
|
|
18353
21316
|
};
|
|
18354
21317
|
}
|
|
18355
21318
|
});
|
|
@@ -18411,12 +21374,30 @@ var _hoisted_4 = [_hoisted_3];
|
|
|
18411
21374
|
/* harmony default export */ var CvTogglevue_type_script_setup_true_lang_js = ({
|
|
18412
21375
|
__name: 'CvToggle',
|
|
18413
21376
|
props: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
|
|
21377
|
+
/**
|
|
21378
|
+
* Specify the size of the Toggle. Default is medium. Set to `true` for small.
|
|
21379
|
+
*/
|
|
18414
21380
|
small: Boolean,
|
|
18415
|
-
|
|
21381
|
+
|
|
21382
|
+
/**
|
|
21383
|
+
* Label and aria-label for the toggle
|
|
21384
|
+
*/
|
|
21385
|
+
label: {
|
|
21386
|
+
type: String,
|
|
21387
|
+
default: 'Toggle element'
|
|
21388
|
+
},
|
|
21389
|
+
|
|
21390
|
+
/**
|
|
21391
|
+
* Set the carbon form-item class
|
|
21392
|
+
*/
|
|
18416
21393
|
formItem: {
|
|
18417
21394
|
type: Boolean,
|
|
18418
21395
|
default: true
|
|
18419
21396
|
},
|
|
21397
|
+
|
|
21398
|
+
/**
|
|
21399
|
+
* Visibly hide the toggle label
|
|
21400
|
+
*/
|
|
18420
21401
|
hideLabel: Boolean
|
|
18421
21402
|
}, use_cvId/* props */.N), cvCheck/* props */.N),
|
|
18422
21403
|
emits: ['update:modelValue', 'change'],
|
|
@@ -18439,19 +21420,17 @@ var _hoisted_4 = [_hoisted_3];
|
|
|
18439
21420
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
18440
21421
|
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))
|
|
18441
21422
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
21423
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
21424
|
+
ref: "input",
|
|
18442
21425
|
role: "toggle"
|
|
18443
21426
|
}, _ctx.$attrs, {
|
|
18444
|
-
class: ["".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(settings/* carbonPrefix */.B), "--toggle-input"), {
|
|
18445
|
-
'bx--toggle-input--small': __props.small
|
|
18446
|
-
}],
|
|
21427
|
+
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)],
|
|
18447
21428
|
type: "checkbox",
|
|
18448
|
-
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
18449
21429
|
checked: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isChecked),
|
|
21430
|
+
value: _ctx.value,
|
|
18450
21431
|
onChange: _cache[0] || (_cache[0] = function () {
|
|
18451
21432
|
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);
|
|
18452
|
-
})
|
|
18453
|
-
value: _ctx.value,
|
|
18454
|
-
ref: "input"
|
|
21433
|
+
})
|
|
18455
21434
|
}), null, 16, _hoisted_1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
18456
21435
|
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")),
|
|
18457
21436
|
for: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
@@ -18489,6 +21468,519 @@ const __exports__ = CvTogglevue_type_script_setup_true_lang_js;
|
|
|
18489
21468
|
|
|
18490
21469
|
/***/ }),
|
|
18491
21470
|
|
|
21471
|
+
/***/ 5365:
|
|
21472
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21473
|
+
|
|
21474
|
+
"use strict";
|
|
21475
|
+
// ESM COMPAT FLAG
|
|
21476
|
+
__webpack_require__.r(__webpack_exports__);
|
|
21477
|
+
|
|
21478
|
+
// EXPORTS
|
|
21479
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
21480
|
+
"default": function() { return /* binding */ CvDefinitionTooltip; }
|
|
21481
|
+
});
|
|
21482
|
+
|
|
21483
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
21484
|
+
var objectSpread2 = __webpack_require__(5175);
|
|
21485
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
21486
|
+
var es_array_includes = __webpack_require__(6699);
|
|
21487
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
21488
|
+
var es_string_includes = __webpack_require__(2023);
|
|
21489
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
21490
|
+
var es_array_concat = __webpack_require__(2222);
|
|
21491
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
21492
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
21493
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
21494
|
+
var settings = __webpack_require__(8343);
|
|
21495
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
21496
|
+
var use_cvId = __webpack_require__(780);
|
|
21497
|
+
// EXTERNAL MODULE: ./src/components/CvTooltip/consts.js
|
|
21498
|
+
var consts = __webpack_require__(4753);
|
|
21499
|
+
;// 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-82.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
|
|
21500
|
+
|
|
21501
|
+
|
|
21502
|
+
|
|
21503
|
+
|
|
21504
|
+
|
|
21505
|
+
var _hoisted_1 = ["id"];
|
|
21506
|
+
var _hoisted_2 = ["aria-describedby"];
|
|
21507
|
+
var _hoisted_3 = ["id"];
|
|
21508
|
+
|
|
21509
|
+
|
|
21510
|
+
|
|
21511
|
+
/* harmony default export */ var CvDefinitionTooltipvue_type_script_setup_true_lang_js = ({
|
|
21512
|
+
__name: 'CvDefinitionTooltip',
|
|
21513
|
+
props: (0,objectSpread2/* default */.Z)({
|
|
21514
|
+
alignment: {
|
|
21515
|
+
type: String,
|
|
21516
|
+
default: consts/* TipAlignments.center */.FW.center,
|
|
21517
|
+
validator: function validator(val) {
|
|
21518
|
+
return consts/* alignments.includes */.dz.includes(val);
|
|
21519
|
+
}
|
|
21520
|
+
},
|
|
21521
|
+
direction: {
|
|
21522
|
+
type: String,
|
|
21523
|
+
default: consts/* TipDirections.top */.Cf.top,
|
|
21524
|
+
validator: function validator(val) {
|
|
21525
|
+
return consts/* directions.includes */.qF.includes(val);
|
|
21526
|
+
}
|
|
21527
|
+
},
|
|
21528
|
+
definition: {
|
|
21529
|
+
type: String,
|
|
21530
|
+
default: ''
|
|
21531
|
+
},
|
|
21532
|
+
term: {
|
|
21533
|
+
type: String,
|
|
21534
|
+
default: ''
|
|
21535
|
+
}
|
|
21536
|
+
}, use_cvId/* props */.N),
|
|
21537
|
+
setup: function setup(__props) {
|
|
21538
|
+
var props = __props;
|
|
21539
|
+
var cvId = (0,use_cvId/* useCvId */.l)(props);
|
|
21540
|
+
return function (_ctx, _cache) {
|
|
21541
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
21542
|
+
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")),
|
|
21543
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId)
|
|
21544
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
|
|
21545
|
+
"aria-describedby": "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId), "-label"),
|
|
21546
|
+
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)]),
|
|
21547
|
+
type: "button"
|
|
21548
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "term", {}, function () {
|
|
21549
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.term), 1)];
|
|
21550
|
+
})], 10, _hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21551
|
+
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")),
|
|
21552
|
+
id: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId), "-label"),
|
|
21553
|
+
role: "tooltip"
|
|
21554
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "definition", {}, function () {
|
|
21555
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.definition), 1)];
|
|
21556
|
+
})], 10, _hoisted_3)], 10, _hoisted_1);
|
|
21557
|
+
};
|
|
21558
|
+
}
|
|
21559
|
+
});
|
|
21560
|
+
;// CONCATENATED MODULE: ./src/components/CvTooltip/CvDefinitionTooltip.vue?vue&type=script&setup=true&lang=js
|
|
21561
|
+
|
|
21562
|
+
;// CONCATENATED MODULE: ./src/components/CvTooltip/CvDefinitionTooltip.vue
|
|
21563
|
+
|
|
21564
|
+
|
|
21565
|
+
|
|
21566
|
+
const __exports__ = CvDefinitionTooltipvue_type_script_setup_true_lang_js;
|
|
21567
|
+
|
|
21568
|
+
/* harmony default export */ var CvDefinitionTooltip = (__exports__);
|
|
21569
|
+
|
|
21570
|
+
/***/ }),
|
|
21571
|
+
|
|
21572
|
+
/***/ 3268:
|
|
21573
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21574
|
+
|
|
21575
|
+
"use strict";
|
|
21576
|
+
// ESM COMPAT FLAG
|
|
21577
|
+
__webpack_require__.r(__webpack_exports__);
|
|
21578
|
+
|
|
21579
|
+
// EXPORTS
|
|
21580
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
21581
|
+
"default": function() { return /* binding */ CvInteractiveTooltip; }
|
|
21582
|
+
});
|
|
21583
|
+
|
|
21584
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
21585
|
+
var defineProperty = __webpack_require__(4186);
|
|
21586
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
21587
|
+
var asyncToGenerator = __webpack_require__(3933);
|
|
21588
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
21589
|
+
var objectSpread2 = __webpack_require__(5175);
|
|
21590
|
+
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
|
21591
|
+
var runtime = __webpack_require__(5666);
|
|
21592
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
21593
|
+
var es_array_includes = __webpack_require__(6699);
|
|
21594
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
21595
|
+
var es_string_includes = __webpack_require__(2023);
|
|
21596
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
21597
|
+
var es_array_concat = __webpack_require__(2222);
|
|
21598
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
21599
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
21600
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/information/16.js
|
|
21601
|
+
var _16 = __webpack_require__(9048);
|
|
21602
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
21603
|
+
var settings = __webpack_require__(8343);
|
|
21604
|
+
// EXTERNAL MODULE: ./src/use/cvId.js
|
|
21605
|
+
var use_cvId = __webpack_require__(780);
|
|
21606
|
+
// EXTERNAL MODULE: ./src/components/CvTooltip/consts.js
|
|
21607
|
+
var consts = __webpack_require__(4753);
|
|
21608
|
+
;// 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-82.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
|
|
21609
|
+
|
|
21610
|
+
|
|
21611
|
+
|
|
21612
|
+
|
|
21613
|
+
|
|
21614
|
+
|
|
21615
|
+
|
|
21616
|
+
|
|
21617
|
+
var _hoisted_1 = ["id"];
|
|
21618
|
+
var _hoisted_2 = ["aria-expanded", "aria-labelledby", "aria-controls", "onKeydown"];
|
|
21619
|
+
var _hoisted_3 = ["id", "aria-hidden", "data-floating-menu-direction", "aria-describedby", "aria-labelledby", "onMousedown"];
|
|
21620
|
+
|
|
21621
|
+
|
|
21622
|
+
|
|
21623
|
+
|
|
21624
|
+
|
|
21625
|
+
/* harmony default export */ var CvInteractiveTooltipvue_type_script_setup_true_lang_js = ({
|
|
21626
|
+
__name: 'CvInteractiveTooltip',
|
|
21627
|
+
props: (0,objectSpread2/* default */.Z)({
|
|
21628
|
+
alignment: {
|
|
21629
|
+
type: String,
|
|
21630
|
+
default: consts/* TipAlignments.center */.FW.center,
|
|
21631
|
+
validator: function validator(val) {
|
|
21632
|
+
return consts/* alignments.includes */.dz.includes(val);
|
|
21633
|
+
}
|
|
21634
|
+
},
|
|
21635
|
+
direction: {
|
|
21636
|
+
type: String,
|
|
21637
|
+
default: consts/* TipDirections.top */.Cf.top,
|
|
21638
|
+
validator: function validator(val) {
|
|
21639
|
+
return consts/* directions.includes */.qF.includes(val);
|
|
21640
|
+
}
|
|
21641
|
+
},
|
|
21642
|
+
visible: {
|
|
21643
|
+
type: Boolean,
|
|
21644
|
+
default: false
|
|
21645
|
+
}
|
|
21646
|
+
}, use_cvId/* props */.N),
|
|
21647
|
+
setup: function setup(__props) {
|
|
21648
|
+
var props = __props;
|
|
21649
|
+
|
|
21650
|
+
var _toRefs = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toRefs)(props),
|
|
21651
|
+
direction = _toRefs.direction,
|
|
21652
|
+
visible = _toRefs.visible;
|
|
21653
|
+
|
|
21654
|
+
var cvId = (0,use_cvId/* useCvId */.l)(props);
|
|
21655
|
+
var dataVisible = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
21656
|
+
var left = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(-9999); // position offscreen
|
|
21657
|
+
|
|
21658
|
+
var top = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
21659
|
+
var root = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
21660
|
+
var popupEl = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
21661
|
+
var popup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
21662
|
+
var trigger = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
21663
|
+
var beforeContent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
21664
|
+
var afterContent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
21665
|
+
var contentAfter = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
21666
|
+
return [consts/* TipDirections.right */.Cf.right, consts/* TipDirections.bottom */.Cf.bottom].includes(direction.value);
|
|
21667
|
+
});
|
|
21668
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(function () {
|
|
21669
|
+
// move popup out to body to ensure it appears above other elements
|
|
21670
|
+
popupEl = document.body.appendChild(popup.value);
|
|
21671
|
+
toggle(!visible.value);
|
|
21672
|
+
});
|
|
21673
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(visible, function (newValue) {
|
|
21674
|
+
toggle(!newValue);
|
|
21675
|
+
});
|
|
21676
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(direction, function () {
|
|
21677
|
+
if (!visible.value) return;
|
|
21678
|
+
position();
|
|
21679
|
+
});
|
|
21680
|
+
|
|
21681
|
+
function positionListen(on) {
|
|
21682
|
+
if (on) {
|
|
21683
|
+
window.addEventListener('scroll', position);
|
|
21684
|
+
window.addEventListener('resize', position);
|
|
21685
|
+
return;
|
|
21686
|
+
}
|
|
21687
|
+
|
|
21688
|
+
window.removeEventListener('scroll', position);
|
|
21689
|
+
window.removeEventListener('resize', position);
|
|
21690
|
+
}
|
|
21691
|
+
|
|
21692
|
+
function position() {
|
|
21693
|
+
var menuPosition = trigger.value.getBoundingClientRect();
|
|
21694
|
+
var pixelsScrolledX = window.scrollX || window.pageXOffset;
|
|
21695
|
+
var pixelsScrolledY = window.scrollY || window.pageYOffset;
|
|
21696
|
+
var positioningMethod = [consts/* TipDirections.top */.Cf.top, consts/* TipDirections.bottom */.Cf.bottom].includes(direction.value) ? positionForTopBottomDirections : positionForLeftRightDirections;
|
|
21697
|
+
positioningMethod({
|
|
21698
|
+
menuPosition: menuPosition,
|
|
21699
|
+
pixelsScrolledX: pixelsScrolledX,
|
|
21700
|
+
pixelsScrolledY: pixelsScrolledY
|
|
21701
|
+
});
|
|
21702
|
+
}
|
|
21703
|
+
|
|
21704
|
+
function positionForTopBottomDirections(_ref) {
|
|
21705
|
+
var menuPosition = _ref.menuPosition,
|
|
21706
|
+
pixelsScrolledX = _ref.pixelsScrolledX,
|
|
21707
|
+
pixelsScrolledY = _ref.pixelsScrolledY;
|
|
21708
|
+
top.value = direction.value === consts/* TipDirections.bottom */.Cf.bottom ? menuPosition.bottom + 10 + pixelsScrolledY : menuPosition.top - 15 - popup.value.offsetHeight + pixelsScrolledY;
|
|
21709
|
+
left.value = menuPosition.left + 0.5 + (trigger.value.offsetWidth - popup.value.offsetWidth) / 2 + pixelsScrolledX;
|
|
21710
|
+
}
|
|
21711
|
+
|
|
21712
|
+
function positionForLeftRightDirections(_ref2) {
|
|
21713
|
+
var menuPosition = _ref2.menuPosition,
|
|
21714
|
+
pixelsScrolledX = _ref2.pixelsScrolledX,
|
|
21715
|
+
pixelsScrolledY = _ref2.pixelsScrolledY;
|
|
21716
|
+
top.value = menuPosition.top + (trigger.value.offsetHeight - 0.5 - popup.value.offsetHeight) / 2 + pixelsScrolledY;
|
|
21717
|
+
left.value = direction.value === consts/* TipDirections.left */.Cf.left ? menuPosition.left - 10 - popup.value.offsetWidth + pixelsScrolledX : menuPosition.right + 15 + pixelsScrolledX;
|
|
21718
|
+
}
|
|
21719
|
+
|
|
21720
|
+
function show() {
|
|
21721
|
+
return _show.apply(this, arguments);
|
|
21722
|
+
}
|
|
21723
|
+
|
|
21724
|
+
function _show() {
|
|
21725
|
+
_show = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
21726
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
21727
|
+
while (1) {
|
|
21728
|
+
switch (_context.prev = _context.next) {
|
|
21729
|
+
case 0:
|
|
21730
|
+
dataVisible.value = true;
|
|
21731
|
+
positionListen(true);
|
|
21732
|
+
_context.next = 4;
|
|
21733
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(function () {
|
|
21734
|
+
position();
|
|
21735
|
+
trigger.value.focus();
|
|
21736
|
+
});
|
|
21737
|
+
|
|
21738
|
+
case 4:
|
|
21739
|
+
case "end":
|
|
21740
|
+
return _context.stop();
|
|
21741
|
+
}
|
|
21742
|
+
}
|
|
21743
|
+
}, _callee);
|
|
21744
|
+
}));
|
|
21745
|
+
return _show.apply(this, arguments);
|
|
21746
|
+
}
|
|
21747
|
+
|
|
21748
|
+
function hide() {
|
|
21749
|
+
dataVisible.value = false;
|
|
21750
|
+
positionListen(true);
|
|
21751
|
+
}
|
|
21752
|
+
|
|
21753
|
+
function toggle(isVisible) {
|
|
21754
|
+
if (isVisible) {
|
|
21755
|
+
hide();
|
|
21756
|
+
return;
|
|
21757
|
+
}
|
|
21758
|
+
|
|
21759
|
+
show();
|
|
21760
|
+
}
|
|
21761
|
+
|
|
21762
|
+
function onTriggerTab(ev) {
|
|
21763
|
+
if (!ev.shiftKey) {
|
|
21764
|
+
if (contentAfter.value) {
|
|
21765
|
+
// move focus before content before tab press
|
|
21766
|
+
beforeContent.value.focus();
|
|
21767
|
+
}
|
|
21768
|
+
|
|
21769
|
+
return;
|
|
21770
|
+
}
|
|
21771
|
+
|
|
21772
|
+
if (contentAfter.value) return; // move focus after content before tab press
|
|
21773
|
+
|
|
21774
|
+
afterContent.value.focus();
|
|
21775
|
+
}
|
|
21776
|
+
|
|
21777
|
+
function checkFocusOut(ev) {
|
|
21778
|
+
dataVisible.value = ev.relatedTarget === trigger.value || popup.value.contains(ev.relatedTarget);
|
|
21779
|
+
}
|
|
21780
|
+
|
|
21781
|
+
function focusBeforeContent(ev) {
|
|
21782
|
+
if (contentAfter.value) {
|
|
21783
|
+
if (popup.value.contains(ev.relatedTarget)) {
|
|
21784
|
+
trigger.value.focus();
|
|
21785
|
+
}
|
|
21786
|
+
|
|
21787
|
+
return;
|
|
21788
|
+
}
|
|
21789
|
+
|
|
21790
|
+
trigger.value.focus();
|
|
21791
|
+
dataVisible.value = contentAfter.value;
|
|
21792
|
+
}
|
|
21793
|
+
|
|
21794
|
+
function focusAfterContent(ev) {
|
|
21795
|
+
if (!contentAfter.value) {
|
|
21796
|
+
if (popup.value.contains(ev.relatedTarget)) {
|
|
21797
|
+
trigger.value.focus();
|
|
21798
|
+
}
|
|
21799
|
+
} else {
|
|
21800
|
+
trigger.value.focus();
|
|
21801
|
+
dataVisible.value = !contentAfter.value;
|
|
21802
|
+
}
|
|
21803
|
+
}
|
|
21804
|
+
|
|
21805
|
+
function preventFocusOut() {// This is here to prevent focus being lost if the user clicks on the contents of the interactive tooltip
|
|
21806
|
+
}
|
|
21807
|
+
|
|
21808
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(function () {
|
|
21809
|
+
positionListen(false);
|
|
21810
|
+
if (!popupEl.value) return; // move back to where it came from
|
|
21811
|
+
|
|
21812
|
+
root.value.appendChild(popupEl.value);
|
|
21813
|
+
});
|
|
21814
|
+
return function (_ctx, _cache) {
|
|
21815
|
+
var _ref3;
|
|
21816
|
+
|
|
21817
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
21818
|
+
class: "cv-interactive-tooltip",
|
|
21819
|
+
ref_key: "root",
|
|
21820
|
+
ref: root
|
|
21821
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21822
|
+
id: "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId), "-label"),
|
|
21823
|
+
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"))
|
|
21824
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "label"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
|
|
21825
|
+
"aria-expanded": dataVisible.value ? 'true' : 'false',
|
|
21826
|
+
"aria-labelledby": "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId), "-label"),
|
|
21827
|
+
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")),
|
|
21828
|
+
"aria-controls": "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId)),
|
|
21829
|
+
"aria-haspopup": "true",
|
|
21830
|
+
ref_key: "trigger",
|
|
21831
|
+
ref: trigger,
|
|
21832
|
+
type: "button",
|
|
21833
|
+
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
21834
|
+
return toggle(dataVisible.value);
|
|
21835
|
+
}),
|
|
21836
|
+
onKeydown: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withKeys)(onTriggerTab, ["tab"]),
|
|
21837
|
+
onFocusout: checkFocusOut
|
|
21838
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "trigger", {}, function () {
|
|
21839
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(_16/* default */.Z))];
|
|
21840
|
+
})], 42, _hoisted_2)], 10, _hoisted_1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21841
|
+
id: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId),
|
|
21842
|
+
"aria-hidden": !dataVisible.value,
|
|
21843
|
+
"data-floating-menu-direction": (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(direction),
|
|
21844
|
+
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)]),
|
|
21845
|
+
ref_key: "popup",
|
|
21846
|
+
ref: popup,
|
|
21847
|
+
role: "dialog",
|
|
21848
|
+
"aria-describedby": "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId), "-body"),
|
|
21849
|
+
"aria-labelledby": "".concat((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cvId), "-label"),
|
|
21850
|
+
onFocusout: checkFocusOut,
|
|
21851
|
+
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
21852
|
+
left: left.value + 'px',
|
|
21853
|
+
top: top.value + 'px'
|
|
21854
|
+
}),
|
|
21855
|
+
tabindex: "-1",
|
|
21856
|
+
onMousedown: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(preventFocusOut, ["prevent"])
|
|
21857
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21858
|
+
class: "cv-interactive-tooltip__before-content",
|
|
21859
|
+
ref_key: "beforeContent",
|
|
21860
|
+
ref: beforeContent,
|
|
21861
|
+
tabindex: "0",
|
|
21862
|
+
style: {
|
|
21863
|
+
"position": "absolute",
|
|
21864
|
+
"left": "-9999px",
|
|
21865
|
+
"width": "1px",
|
|
21866
|
+
"height": "1px"
|
|
21867
|
+
},
|
|
21868
|
+
onFocus: focusBeforeContent
|
|
21869
|
+
}, null, 544), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
21870
|
+
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"))
|
|
21871
|
+
}, null, 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21872
|
+
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"))
|
|
21873
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "content")], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21874
|
+
class: "cv-interactive-tooltip__after-content",
|
|
21875
|
+
ref_key: "afterContent",
|
|
21876
|
+
ref: afterContent,
|
|
21877
|
+
tabindex: "0",
|
|
21878
|
+
style: {
|
|
21879
|
+
"position": "absolute",
|
|
21880
|
+
"left": "-9999px",
|
|
21881
|
+
"width": "1px",
|
|
21882
|
+
"height": "1px"
|
|
21883
|
+
},
|
|
21884
|
+
onFocus: focusAfterContent
|
|
21885
|
+
}, null, 544)], 46, _hoisted_3)], 512);
|
|
21886
|
+
};
|
|
21887
|
+
}
|
|
21888
|
+
});
|
|
21889
|
+
;// CONCATENATED MODULE: ./src/components/CvTooltip/CvInteractiveTooltip.vue?vue&type=script&setup=true&lang=js
|
|
21890
|
+
|
|
21891
|
+
;// CONCATENATED MODULE: ./src/components/CvTooltip/CvInteractiveTooltip.vue
|
|
21892
|
+
|
|
21893
|
+
|
|
21894
|
+
|
|
21895
|
+
const __exports__ = CvInteractiveTooltipvue_type_script_setup_true_lang_js;
|
|
21896
|
+
|
|
21897
|
+
/* harmony default export */ var CvInteractiveTooltip = (__exports__);
|
|
21898
|
+
|
|
21899
|
+
/***/ }),
|
|
21900
|
+
|
|
21901
|
+
/***/ 715:
|
|
21902
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21903
|
+
|
|
21904
|
+
"use strict";
|
|
21905
|
+
// ESM COMPAT FLAG
|
|
21906
|
+
__webpack_require__.r(__webpack_exports__);
|
|
21907
|
+
|
|
21908
|
+
// EXPORTS
|
|
21909
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
21910
|
+
"default": function() { return /* binding */ CvTooltip; }
|
|
21911
|
+
});
|
|
21912
|
+
|
|
21913
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
21914
|
+
var es_array_includes = __webpack_require__(6699);
|
|
21915
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
21916
|
+
var es_string_includes = __webpack_require__(2023);
|
|
21917
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
21918
|
+
var es_array_concat = __webpack_require__(2222);
|
|
21919
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
21920
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
21921
|
+
// EXTERNAL MODULE: ./node_modules/@carbon/icons-vue/es/information/16.js
|
|
21922
|
+
var _16 = __webpack_require__(9048);
|
|
21923
|
+
// EXTERNAL MODULE: ./src/global/settings.js
|
|
21924
|
+
var settings = __webpack_require__(8343);
|
|
21925
|
+
// EXTERNAL MODULE: ./src/components/CvTooltip/consts.js
|
|
21926
|
+
var consts = __webpack_require__(4753);
|
|
21927
|
+
;// 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-82.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
|
|
21928
|
+
|
|
21929
|
+
|
|
21930
|
+
|
|
21931
|
+
|
|
21932
|
+
|
|
21933
|
+
|
|
21934
|
+
|
|
21935
|
+
/* harmony default export */ var CvTooltipvue_type_script_setup_true_lang_js = ({
|
|
21936
|
+
__name: 'CvTooltip',
|
|
21937
|
+
props: {
|
|
21938
|
+
alignment: {
|
|
21939
|
+
type: String,
|
|
21940
|
+
default: consts/* TipAlignments.center */.FW.center,
|
|
21941
|
+
validator: function validator(val) {
|
|
21942
|
+
return consts/* alignments.includes */.dz.includes(val);
|
|
21943
|
+
}
|
|
21944
|
+
},
|
|
21945
|
+
direction: {
|
|
21946
|
+
type: String,
|
|
21947
|
+
default: consts/* TipDirections.top */.Cf.top,
|
|
21948
|
+
validator: function validator(val) {
|
|
21949
|
+
return consts/* directions.includes */.qF.includes(val);
|
|
21950
|
+
}
|
|
21951
|
+
},
|
|
21952
|
+
tip: {
|
|
21953
|
+
type: String,
|
|
21954
|
+
default: ''
|
|
21955
|
+
}
|
|
21956
|
+
},
|
|
21957
|
+
setup: function setup(__props) {
|
|
21958
|
+
return function (_ctx, _cache) {
|
|
21959
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("button", {
|
|
21960
|
+
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)]),
|
|
21961
|
+
type: "button"
|
|
21962
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
21963
|
+
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"))
|
|
21964
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "content", {}, function () {
|
|
21965
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.tip), 1)];
|
|
21966
|
+
})], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default", {}, function () {
|
|
21967
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(_16/* default */.Z))];
|
|
21968
|
+
})], 2);
|
|
21969
|
+
};
|
|
21970
|
+
}
|
|
21971
|
+
});
|
|
21972
|
+
;// CONCATENATED MODULE: ./src/components/CvTooltip/CvTooltip.vue?vue&type=script&setup=true&lang=js
|
|
21973
|
+
|
|
21974
|
+
;// CONCATENATED MODULE: ./src/components/CvTooltip/CvTooltip.vue
|
|
21975
|
+
|
|
21976
|
+
|
|
21977
|
+
|
|
21978
|
+
const __exports__ = CvTooltipvue_type_script_setup_true_lang_js;
|
|
21979
|
+
|
|
21980
|
+
/* harmony default export */ var CvTooltip = (__exports__);
|
|
21981
|
+
|
|
21982
|
+
/***/ }),
|
|
21983
|
+
|
|
18492
21984
|
/***/ 4561:
|
|
18493
21985
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18494
21986
|
|
|
@@ -19698,6 +23190,7 @@ var CvSideNavvue_type_script_setup_true_lang_js_hoisted_1 = ["aria-hidden", "id"
|
|
|
19698
23190
|
var emit = _ref.emit;
|
|
19699
23191
|
var props = __props;
|
|
19700
23192
|
var el = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
23193
|
+
var expandedViaHoverState = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
19701
23194
|
var panelExpanded = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)({
|
|
19702
23195
|
get: function get() {
|
|
19703
23196
|
return data.dataExpanded;
|
|
@@ -19743,7 +23236,10 @@ var CvSideNavvue_type_script_setup_true_lang_js_hoisted_1 = ["aria-hidden", "id"
|
|
|
19743
23236
|
}, function () {
|
|
19744
23237
|
panelExpanded.value = props.expanded;
|
|
19745
23238
|
});
|
|
19746
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
23239
|
+
var isPanelExpanded = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
23240
|
+
return panelExpanded.value || expandedViaHoverState.value;
|
|
23241
|
+
});
|
|
23242
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(isPanelExpanded, function (current) {
|
|
19747
23243
|
emit('update:expanded', current);
|
|
19748
23244
|
emit('panel-resize', {
|
|
19749
23245
|
id: props.id,
|
|
@@ -19772,6 +23268,10 @@ var CvSideNavvue_type_script_setup_true_lang_js_hoisted_1 = ["aria-hidden", "id"
|
|
|
19772
23268
|
}
|
|
19773
23269
|
}
|
|
19774
23270
|
|
|
23271
|
+
function onHoverToggle(value) {
|
|
23272
|
+
if (props.rail) expandedViaHoverState.value = value;
|
|
23273
|
+
}
|
|
23274
|
+
|
|
19775
23275
|
function toggleExpand() {
|
|
19776
23276
|
panelExpanded.value = data.dataExpanded;
|
|
19777
23277
|
}
|
|
@@ -19785,6 +23285,12 @@ var CvSideNavvue_type_script_setup_true_lang_js_hoisted_1 = ["aria-hidden", "id"
|
|
|
19785
23285
|
id: __props.id,
|
|
19786
23286
|
onFocusout: onFocusout,
|
|
19787
23287
|
onMousedown: onMouseDown,
|
|
23288
|
+
onMouseenter: _cache[0] || (_cache[0] = function ($event) {
|
|
23289
|
+
return onHoverToggle(true);
|
|
23290
|
+
}),
|
|
23291
|
+
onMouseleave: _cache[1] || (_cache[1] = function ($event) {
|
|
23292
|
+
return onHoverToggle(false);
|
|
23293
|
+
}),
|
|
19788
23294
|
ref_key: "el",
|
|
19789
23295
|
ref: el
|
|
19790
23296
|
}, [(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, {
|
|
@@ -33479,6 +36985,50 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
|
|
|
33479
36985
|
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
|
33480
36986
|
|
|
33481
36987
|
|
|
36988
|
+
/***/ }),
|
|
36989
|
+
|
|
36990
|
+
/***/ 6755:
|
|
36991
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
36992
|
+
|
|
36993
|
+
"use strict";
|
|
36994
|
+
|
|
36995
|
+
var $ = __webpack_require__(2109);
|
|
36996
|
+
var uncurryThis = __webpack_require__(1702);
|
|
36997
|
+
var getOwnPropertyDescriptor = (__webpack_require__(1236).f);
|
|
36998
|
+
var toLength = __webpack_require__(7466);
|
|
36999
|
+
var toString = __webpack_require__(1340);
|
|
37000
|
+
var notARegExp = __webpack_require__(3929);
|
|
37001
|
+
var requireObjectCoercible = __webpack_require__(4488);
|
|
37002
|
+
var correctIsRegExpLogic = __webpack_require__(4964);
|
|
37003
|
+
var IS_PURE = __webpack_require__(1913);
|
|
37004
|
+
|
|
37005
|
+
// eslint-disable-next-line es-x/no-string-prototype-startswith -- safe
|
|
37006
|
+
var un$StartsWith = uncurryThis(''.startsWith);
|
|
37007
|
+
var stringSlice = uncurryThis(''.slice);
|
|
37008
|
+
var min = Math.min;
|
|
37009
|
+
|
|
37010
|
+
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
|
|
37011
|
+
// https://github.com/zloirock/core-js/pull/702
|
|
37012
|
+
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {
|
|
37013
|
+
var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');
|
|
37014
|
+
return descriptor && !descriptor.writable;
|
|
37015
|
+
}();
|
|
37016
|
+
|
|
37017
|
+
// `String.prototype.startsWith` method
|
|
37018
|
+
// https://tc39.es/ecma262/#sec-string.prototype.startswith
|
|
37019
|
+
$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
|
|
37020
|
+
startsWith: function startsWith(searchString /* , position = 0 */) {
|
|
37021
|
+
var that = toString(requireObjectCoercible(this));
|
|
37022
|
+
notARegExp(searchString);
|
|
37023
|
+
var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
|
|
37024
|
+
var search = toString(searchString);
|
|
37025
|
+
return un$StartsWith
|
|
37026
|
+
? un$StartsWith(that, search, index)
|
|
37027
|
+
: stringSlice(that, index, index + search.length) === search;
|
|
37028
|
+
}
|
|
37029
|
+
});
|
|
37030
|
+
|
|
37031
|
+
|
|
33482
37032
|
/***/ }),
|
|
33483
37033
|
|
|
33484
37034
|
/***/ 3210:
|
|
@@ -39495,14 +43045,15 @@ var map = {
|
|
|
39495
43045
|
"./CvButton/CvButtonSkeleton.vue": 8440,
|
|
39496
43046
|
"./CvButton/CvIconButton.vue": 130,
|
|
39497
43047
|
"./CvCheckbox/CvCheckbox.vue": 2413,
|
|
39498
|
-
"./
|
|
43048
|
+
"./CvCheckbox/CvCheckboxSkeleton.vue": 2803,
|
|
43049
|
+
"./CvCodeSnippet/CvCodeSnippet.vue": 1565,
|
|
39499
43050
|
"./CvCodeSnippet/CvCodeSnippetSkeleton.vue": 7074,
|
|
39500
43051
|
"./CvComboBox/CvComboBox.vue": 5519,
|
|
39501
43052
|
"./CvContentSwitcher/CvContentSwitcher.vue": 6508,
|
|
39502
43053
|
"./CvContentSwitcher/CvContentSwitcherButton.vue": 3035,
|
|
39503
43054
|
"./CvContentSwitcher/CvContentSwitcherContent.vue": 6112,
|
|
39504
43055
|
"./CvCopyButton/CvCopyButton.vue": 6868,
|
|
39505
|
-
"./CvDataTable/CvDataTable.vue":
|
|
43056
|
+
"./CvDataTable/CvDataTable.vue": 8597,
|
|
39506
43057
|
"./CvDataTable/CvDataTableAction.vue": 1900,
|
|
39507
43058
|
"./CvDataTable/CvDataTableCell.vue": 9248,
|
|
39508
43059
|
"./CvDataTable/CvDataTableHeading.vue": 4470,
|
|
@@ -39513,6 +43064,9 @@ var map = {
|
|
|
39513
43064
|
"./CvDropdown/CvDropdown.vue": 3960,
|
|
39514
43065
|
"./CvDropdown/CvDropdownItem.vue": 27,
|
|
39515
43066
|
"./CvDropdown/CvDropdownSkeleton.vue": 3134,
|
|
43067
|
+
"./CvFileUploader/CvFileUploader.vue": 6689,
|
|
43068
|
+
"./CvFileUploader/CvFileUploaderItem.vue": 2539,
|
|
43069
|
+
"./CvFileUploader/CvFileUploaderSkeleton.vue": 4975,
|
|
39516
43070
|
"./CvForm/CvForm.vue": 9067,
|
|
39517
43071
|
"./CvForm/CvFormGroup.vue": 6009,
|
|
39518
43072
|
"./CvForm/CvFormItem.vue": 9535,
|
|
@@ -39527,29 +43081,47 @@ var map = {
|
|
|
39527
43081
|
"./CvModal/CvModal.vue": 1419,
|
|
39528
43082
|
"./CvMultiSelect/CvMultiSelect.vue": 6965,
|
|
39529
43083
|
"./CvNotification/CvInlineNotification.vue": 4337,
|
|
39530
|
-
"./CvNotification/CvToastNotification.vue":
|
|
43084
|
+
"./CvNotification/CvToastNotification.vue": 9060,
|
|
39531
43085
|
"./CvNumberInput/CvNumberInput.vue": 6574,
|
|
39532
43086
|
"./CvNumberInput/CvNumberInputSkeleton.vue": 3779,
|
|
39533
|
-
"./CvOverflowMenu/CvOverflowMenu.vue":
|
|
43087
|
+
"./CvOverflowMenu/CvOverflowMenu.vue": 824,
|
|
39534
43088
|
"./CvOverflowMenu/CvOverflowMenuItem.vue": 8779,
|
|
39535
43089
|
"./CvPagination/CvPagination.vue": 1442,
|
|
43090
|
+
"./CvProgress/CvProgress.vue": 4813,
|
|
43091
|
+
"./CvProgress/CvProgressStep.vue": 9159,
|
|
43092
|
+
"./CvRadioButton/CvRadioButton.vue": 6814,
|
|
43093
|
+
"./CvRadioButton/CvRadioGroup.vue": 4658,
|
|
43094
|
+
"./CvSearch/CvSearch.vue": 742,
|
|
39536
43095
|
"./CvSelect/CvSelect.vue": 2425,
|
|
39537
43096
|
"./CvSelect/CvSelectOptgroup.vue": 135,
|
|
39538
43097
|
"./CvSelect/CvSelectOption.vue": 6144,
|
|
39539
43098
|
"./CvSkeletonText/CvSkeletonText.vue": 632,
|
|
43099
|
+
"./CvSlider/CvSlider.vue": 1456,
|
|
43100
|
+
"./CvSlider/CvSliderSkeleton.vue": 3937,
|
|
43101
|
+
"./CvStructuredList/CvStructuredList.vue": 5959,
|
|
43102
|
+
"./CvStructuredList/CvStructuredListData.vue": 4830,
|
|
43103
|
+
"./CvStructuredList/CvStructuredListHeading.vue": 2400,
|
|
43104
|
+
"./CvStructuredList/CvStructuredListItem.vue": 6169,
|
|
43105
|
+
"./CvStructuredList/CvStructuredListItemSelectable.vue": 8377,
|
|
43106
|
+
"./CvStructuredList/CvStructuredListItemStandard.vue": 9651,
|
|
39540
43107
|
"./CvTabs/CvTab.vue": 9960,
|
|
39541
43108
|
"./CvTabs/CvTabs.vue": 5560,
|
|
39542
43109
|
"./CvTabs/CvTabsSkeleton.vue": 5491,
|
|
39543
43110
|
"./CvTag/CvTag.vue": 3354,
|
|
39544
43111
|
"./CvTextArea/CvTextArea.vue": 3440,
|
|
43112
|
+
"./CvTextArea/CvTextAreaSkeleton.vue": 7543,
|
|
39545
43113
|
"./CvTextInput/CvTextInput.vue": 254,
|
|
39546
43114
|
"./CvTile/CvTile.vue": 9785,
|
|
39547
43115
|
"./CvTile/CvTileClickable.vue": 3382,
|
|
39548
43116
|
"./CvTile/CvTileExpandable.vue": 4349,
|
|
39549
|
-
"./CvTile/CvTileSelectable.vue":
|
|
43117
|
+
"./CvTile/CvTileSelectable.vue": 8135,
|
|
39550
43118
|
"./CvTile/CvTileStandard.vue": 8891,
|
|
43119
|
+
"./CvTimePicker/CvTimePicker.vue": 4858,
|
|
39551
43120
|
"./CvToggle/CvToggle-Skeleton.vue": 9975,
|
|
39552
43121
|
"./CvToggle/CvToggle.vue": 5291,
|
|
43122
|
+
"./CvTooltip/CvDefinitionTooltip.vue": 5365,
|
|
43123
|
+
"./CvTooltip/CvInteractiveTooltip.vue": 3268,
|
|
43124
|
+
"./CvTooltip/CvTooltip.vue": 715,
|
|
39553
43125
|
"./CvUIShell/CvHeader.vue": 4561,
|
|
39554
43126
|
"./CvUIShell/CvHeaderGlobalAction.vue": 1029,
|
|
39555
43127
|
"./CvUIShell/CvHeaderMenu.vue": 9056,
|
|
@@ -39656,6 +43228,56 @@ function _arrayLikeToArray(arr, len) {
|
|
|
39656
43228
|
|
|
39657
43229
|
/***/ }),
|
|
39658
43230
|
|
|
43231
|
+
/***/ 3933:
|
|
43232
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
43233
|
+
|
|
43234
|
+
"use strict";
|
|
43235
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43236
|
+
/* harmony export */ "Z": function() { return /* binding */ _asyncToGenerator; }
|
|
43237
|
+
/* harmony export */ });
|
|
43238
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1539);
|
|
43239
|
+
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8674);
|
|
43240
|
+
|
|
43241
|
+
|
|
43242
|
+
|
|
43243
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
43244
|
+
try {
|
|
43245
|
+
var info = gen[key](arg);
|
|
43246
|
+
var value = info.value;
|
|
43247
|
+
} catch (error) {
|
|
43248
|
+
reject(error);
|
|
43249
|
+
return;
|
|
43250
|
+
}
|
|
43251
|
+
|
|
43252
|
+
if (info.done) {
|
|
43253
|
+
resolve(value);
|
|
43254
|
+
} else {
|
|
43255
|
+
Promise.resolve(value).then(_next, _throw);
|
|
43256
|
+
}
|
|
43257
|
+
}
|
|
43258
|
+
|
|
43259
|
+
function _asyncToGenerator(fn) {
|
|
43260
|
+
return function () {
|
|
43261
|
+
var self = this,
|
|
43262
|
+
args = arguments;
|
|
43263
|
+
return new Promise(function (resolve, reject) {
|
|
43264
|
+
var gen = fn.apply(self, args);
|
|
43265
|
+
|
|
43266
|
+
function _next(value) {
|
|
43267
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
43268
|
+
}
|
|
43269
|
+
|
|
43270
|
+
function _throw(err) {
|
|
43271
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
43272
|
+
}
|
|
43273
|
+
|
|
43274
|
+
_next(undefined);
|
|
43275
|
+
});
|
|
43276
|
+
};
|
|
43277
|
+
}
|
|
43278
|
+
|
|
43279
|
+
/***/ }),
|
|
43280
|
+
|
|
39659
43281
|
/***/ 2757:
|
|
39660
43282
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
39661
43283
|
|
|
@@ -40153,6 +43775,7 @@ var es_string_includes = __webpack_require__(2023);
|
|
|
40153
43775
|
|
|
40154
43776
|
|
|
40155
43777
|
|
|
43778
|
+
/// <reference path="index.d.ts" />
|
|
40156
43779
|
var ctx = __webpack_require__(2584);
|
|
40157
43780
|
|
|
40158
43781
|
var components = ctx.keys().map(function (k) {
|
|
@@ -40167,6 +43790,16 @@ var components = ctx.keys().map(function (k) {
|
|
|
40167
43790
|
/* harmony default export */ var src_0 = ({
|
|
40168
43791
|
// options is an array of components to be registered
|
|
40169
43792
|
// e.g. ['c-button', 'c-modal']
|
|
43793
|
+
|
|
43794
|
+
/**
|
|
43795
|
+
* @typedef {import("vue").App} App
|
|
43796
|
+
*/
|
|
43797
|
+
|
|
43798
|
+
/**
|
|
43799
|
+
* Install plugin in Vue
|
|
43800
|
+
* @param {App} Vue
|
|
43801
|
+
* @param {Array<string>} options
|
|
43802
|
+
*/
|
|
40170
43803
|
install: function install(Vue, options) {
|
|
40171
43804
|
if (typeof options === 'undefined') {
|
|
40172
43805
|
var _iterator = (0,createForOfIteratorHelper/* default */.Z)(components),
|