vue3-extended-multiselect 2.0.6 → 2.2.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 +5 -2
- package/dist/Vue3ExtendedMultiselect.cjs.js +417 -157
- package/dist/Vue3ExtendedMultiselect.cjs.js.map +1 -1
- package/dist/Vue3ExtendedMultiselect.esm.js +418 -157
- package/dist/Vue3ExtendedMultiselect.esm.js.map +1 -1
- package/package.json +2 -3
- package/dist/assets/images/base-arrow.svg +0 -70
- package/dist/assets/images/cancel.svg +0 -35
- package/dist/assets/images/circle-arrow.svg +0 -7
- package/dist/assets/images/double-arrow.svg +0 -39
- package/dist/assets/images/inner-arrow.svg +0 -8
- package/dist/assets/images/loader.svg +0 -6
- package/dist/assets/images/triangle-arrow.svg +0 -72
- package/dist/assets/images/triangle-circle-arrow.svg +0 -38
- package/dist/assets/images/wide-arrow.svg +0 -72
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, readonly, reactive, ref, getCurrentInstance,
|
|
1
|
+
import { computed, readonly, reactive, ref, getCurrentInstance, openBlock, createElementBlock, createElementVNode, inject, toRefs, createBlock, normalizeClass, unref, createCommentVNode, createStaticVNode, withModifiers, watch, onBeforeMount, toDisplayString, renderSlot, Fragment, renderList, createTextVNode, toRef, useAttrs, onMounted, nextTick, withDirectives, vModelText, vShow, createVNode, normalizeStyle, createSlots, withCtx, resolveDynamicComponent, provide, useSlots, toRaw, withKeys, Transition } from 'vue';
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import ExtendedClickOutside from 'extended-click-outside';
|
|
4
4
|
|
|
@@ -271,24 +271,6 @@ function usePreselectedOptions(label, emptyObjectsPlaceholder, showInsertWarning
|
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
function useImagePath() {
|
|
275
|
-
const createImagePath = image => {
|
|
276
|
-
const hasRequire = typeof require !== "undefined";
|
|
277
|
-
if (hasRequire) {
|
|
278
|
-
return require(`./assets/images/${image}`);
|
|
279
|
-
} else {
|
|
280
|
-
try {
|
|
281
|
-
return new URL(`./assets/images/${image}`, import.meta.url).href;
|
|
282
|
-
} catch (error) {
|
|
283
|
-
throw new ReferenceError("import.meta.url is available in «esnext» libtype only");
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
|
-
return {
|
|
288
|
-
createImagePath
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
|
|
292
274
|
function useSizes(iconSize) {
|
|
293
275
|
/**
|
|
294
276
|
* Defines classes for each kind of icon
|
|
@@ -328,9 +310,35 @@ function useSizes(iconSize) {
|
|
|
328
310
|
};
|
|
329
311
|
}
|
|
330
312
|
|
|
331
|
-
const _hoisted_1$
|
|
332
|
-
|
|
333
|
-
|
|
313
|
+
const _hoisted_1$f = {
|
|
314
|
+
id: "Layer_1",
|
|
315
|
+
style: {"enable-background":"new 0 0 128 128"},
|
|
316
|
+
version: "1.1",
|
|
317
|
+
viewBox: "0 0 128 128",
|
|
318
|
+
"xml:space": "preserve",
|
|
319
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
320
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
321
|
+
};
|
|
322
|
+
const _hoisted_2$e = /*#__PURE__*/createElementVNode("g", null, [
|
|
323
|
+
/*#__PURE__*/createElementVNode("path", { d: "M96.1,103.6c-10.4,8.4-23.5,12.4-36.8,11.1c-10.5-1-20.3-5.1-28.2-11.8H44v-8H18v26h8v-11.9c9.1,7.7,20.4,12.5,32.6,13.6 c1.9,0.2,3.7,0.3,5.5,0.3c13.5,0,26.5-4.6,37-13.2c19.1-15.4,26.6-40.5,19.1-63.9l-7.6,2.4C119,68.6,112.6,90.3,96.1,103.6z" }),
|
|
324
|
+
/*#__PURE__*/createElementVNode("path", { d: "M103,19.7c-21.2-18.7-53.5-20-76.1-1.6C7.9,33.5,0.4,58.4,7.7,81.7l7.6-2.4C9,59.2,15.5,37.6,31.9,24.4 C51.6,8.4,79.7,9.6,98,26H85v8h26V8h-8V19.7z" })
|
|
325
|
+
], -1 /* HOISTED */);
|
|
326
|
+
const _hoisted_3$7 = [
|
|
327
|
+
_hoisted_2$e
|
|
328
|
+
];
|
|
329
|
+
|
|
330
|
+
function render$8(_ctx, _cache) {
|
|
331
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$f, [..._hoisted_3$7]))
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
const script$f = {};
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
script$f.render = render$8;
|
|
338
|
+
script$f.__file = "src/icons/LoaderIcon.vue";
|
|
339
|
+
|
|
340
|
+
const _hoisted_1$e = { class: "extended__multiselect-loader" };
|
|
341
|
+
const _hoisted_2$d = /*#__PURE__*/createElementVNode("svg", {
|
|
334
342
|
version: "1.1",
|
|
335
343
|
xmlns: "http://www.w3.org/2000/svg",
|
|
336
344
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
@@ -426,7 +434,7 @@ const _hoisted_3$5 = /*#__PURE__*/createElementVNode("svg", {
|
|
|
426
434
|
], -1 /* HOISTED */);
|
|
427
435
|
|
|
428
436
|
|
|
429
|
-
var script$
|
|
437
|
+
var script$e = {
|
|
430
438
|
__name: 'ExtendedMultiselectLoader',
|
|
431
439
|
props: {
|
|
432
440
|
/**
|
|
@@ -456,10 +464,6 @@ const loaderIconFilter = inject("loaderIconFilter");
|
|
|
456
464
|
|
|
457
465
|
const { iconSize } = toRefs(props);
|
|
458
466
|
|
|
459
|
-
const { createImagePath } = useImagePath();
|
|
460
|
-
|
|
461
|
-
const loaderIcon = ref(createImagePath("loader.svg"));
|
|
462
|
-
|
|
463
467
|
const { iconSizeClass } = useSizes(iconSize);
|
|
464
468
|
|
|
465
469
|
/**
|
|
@@ -498,26 +502,49 @@ const iconFilterClass = computed(() => {
|
|
|
498
502
|
});
|
|
499
503
|
|
|
500
504
|
return (_ctx, _cache) => {
|
|
501
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
505
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
506
|
+
(!_ctx.loading)
|
|
507
|
+
? (openBlock(), createBlock(script$f, {
|
|
508
|
+
key: 0,
|
|
509
|
+
class: normalizeClass([iconFilterClass.value, unref(iconSizeClass), 'extended__multiselect-loader-animate'])
|
|
510
|
+
}, null, 8 /* PROPS */, ["class"]))
|
|
511
|
+
: createCommentVNode("v-if", true),
|
|
512
|
+
_hoisted_2$d
|
|
508
513
|
]))
|
|
509
514
|
}
|
|
510
515
|
}
|
|
511
516
|
|
|
512
517
|
};
|
|
513
518
|
|
|
514
|
-
script$
|
|
519
|
+
script$e.__file = "src/components/ExtendedMultiselectLoader.vue";
|
|
515
520
|
|
|
516
|
-
const _hoisted_1$
|
|
517
|
-
|
|
521
|
+
const _hoisted_1$d = {
|
|
522
|
+
style: {"enable-background":"new 0 0 35.999 36.005"},
|
|
523
|
+
version: "1.1",
|
|
524
|
+
viewBox: "0 0 35.505 36.005",
|
|
525
|
+
"xml:space": "preserve",
|
|
526
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
527
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
528
|
+
};
|
|
529
|
+
const _hoisted_2$c = /*#__PURE__*/createStaticVNode("<g id=\"Close\"><g id=\"Layer_10\"><g id=\"ClipView_7\"><path d=\"M0,0v36.005h35.999V0H0z\" marker-end=\"none\" marker-start=\"none\" style=\"fill:none;\"></path><g><defs><rect height=\"36.005\" id=\"SVGID_1_\" width=\"35.999\" y=\"0\"></rect></defs><clipPath id=\"SVGID_2_\"><use style=\"overflow:visible;\" xlink:href=\"#SVGID_1_\"></use></clipPath><g style=\"clip-path:url(#SVGID_2_);\"><g id=\"Group_18\"><path d=\"M2.995,4.799v26.403c0,0.995,0.805,1.8,1.799,1.8 h26.405c0.995,0,1.8-0.805,1.8-1.8V4.799c0-0.994-0.805-1.799-1.8-1.799H4.794C3.8,3,2.995,3.805,2.995,4.799z\" marker-end=\"none\" marker-start=\"none\" style=\"fill:#990E0D;\"></path><linearGradient gradientTransform=\"matrix(1 0 0 1 167.998 491.77)\" gradientUnits=\"userSpaceOnUse\" id=\"SVGID_3_\" x1=\"-150.3105\" x2=\"-149.2125\" y1=\"-461.7169\" y2=\"-504.473\"><stop offset=\"0\" style=\"stop-color:#DF1413;\"></stop><stop offset=\"1\" style=\"stop-color:#990E0D;\"></stop></linearGradient><path d=\"M3.745,31.202V4.799 c0-0.579,0.469-1.049,1.049-1.049h26.405c0.581,0,1.05,0.47,1.05,1.049v26.403c0,0.581-0.47,1.05-1.05,1.05H4.794 C4.214,32.252,3.745,31.784,3.745,31.202z\" marker-end=\"none\" marker-start=\"none\" style=\"fill:url(#SVGID_3_);\"></path></g><g id=\"Group_19\"><path d=\"M9.961,8.892 l16.073,16.072\" style=\"fill:none;stroke:#990E0D;stroke-width:4.287;stroke-linejoin:round;stroke-miterlimit:79.8403;\"></path><path d=\" M26.034,8.892L9.961,24.964\" style=\"fill:none;stroke:#990E0D;stroke-width:4.287;stroke-linejoin:round;stroke-miterlimit:79.8403;\"></path></g><g id=\"Group_20\"><path d=\"M9.961,9.964 l16.073,16.073\" style=\"fill:none;stroke:#FFFFFF;stroke-width:4.287;stroke-linejoin:round;stroke-miterlimit:79.8403;\"></path><path d=\" M26.034,9.964L9.961,26.037\" style=\"fill:none;stroke:#FFFFFF;stroke-width:4.287;stroke-linejoin:round;stroke-miterlimit:79.8403;\"></path></g></g></g></g></g></g><g id=\"Layer_1\"></g>", 2);
|
|
530
|
+
const _hoisted_4$4 = [
|
|
531
|
+
_hoisted_2$c
|
|
532
|
+
];
|
|
518
533
|
|
|
534
|
+
function render$7(_ctx, _cache) {
|
|
535
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$d, [..._hoisted_4$4]))
|
|
536
|
+
}
|
|
519
537
|
|
|
520
|
-
|
|
538
|
+
const script$d = {};
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
script$d.render = render$7;
|
|
542
|
+
script$d.__file = "src/icons/CancelIcon.vue";
|
|
543
|
+
|
|
544
|
+
const _hoisted_1$c = ["tabindex"];
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
var script$c = {
|
|
521
548
|
__name: 'ExtendedMultiselectCancel',
|
|
522
549
|
props: {
|
|
523
550
|
/**
|
|
@@ -530,10 +557,10 @@ var script$5 = {
|
|
|
530
557
|
},
|
|
531
558
|
|
|
532
559
|
/**
|
|
533
|
-
* Defines a svg-filter for icons
|
|
534
|
-
* @property {string}
|
|
560
|
+
* Defines a svg-filter for loader icons
|
|
561
|
+
* @property {string} loaderIconFilter
|
|
535
562
|
*/
|
|
536
|
-
|
|
563
|
+
loaderIconFilter: {
|
|
537
564
|
type: String,
|
|
538
565
|
required: true,
|
|
539
566
|
},
|
|
@@ -604,7 +631,7 @@ const setSearchPattern = inject("setSearchPattern");
|
|
|
604
631
|
const {
|
|
605
632
|
disabled,
|
|
606
633
|
emitter,
|
|
607
|
-
|
|
634
|
+
loaderIconFilter,
|
|
608
635
|
iconSize,
|
|
609
636
|
loading,
|
|
610
637
|
selectedOptions,
|
|
@@ -612,10 +639,6 @@ const {
|
|
|
612
639
|
tabindex,
|
|
613
640
|
} = toRefs(props);
|
|
614
641
|
|
|
615
|
-
const { createImagePath } = useImagePath();
|
|
616
|
-
|
|
617
|
-
const cancelIcon = ref(createImagePath("cancel.svg"));
|
|
618
|
-
|
|
619
642
|
const { cancel } = useCancel(
|
|
620
643
|
disabled,
|
|
621
644
|
showSearchField,
|
|
@@ -659,28 +682,25 @@ return (_ctx, _cache) => {
|
|
|
659
682
|
onKeypress: _cache[1] || (_cache[1] = withModifiers((...args) => (unref(cancel) && unref(cancel)(...args)), ["stop"]))
|
|
660
683
|
}, [
|
|
661
684
|
(!unref(loading))
|
|
662
|
-
? (openBlock(),
|
|
685
|
+
? (openBlock(), createBlock(script$d, {
|
|
663
686
|
key: 0,
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_2$5))
|
|
668
|
-
: (openBlock(), createBlock(script$6, {
|
|
687
|
+
class: normalizeClass(unref(iconSizeClass))
|
|
688
|
+
}, null, 8 /* PROPS */, ["class"]))
|
|
689
|
+
: (openBlock(), createBlock(script$e, {
|
|
669
690
|
key: 1,
|
|
670
|
-
"icon-filter": unref(
|
|
691
|
+
"icon-filter": unref(loaderIconFilter),
|
|
671
692
|
"icon-size": unref(iconSize)
|
|
672
693
|
}, null, 8 /* PROPS */, ["icon-filter", "icon-size"]))
|
|
673
|
-
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_1$
|
|
694
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_1$c))
|
|
674
695
|
}
|
|
675
696
|
}
|
|
676
697
|
|
|
677
698
|
};
|
|
678
699
|
|
|
679
|
-
script$
|
|
700
|
+
script$c.__file = "src/components/ExtendedMultiselectCancel.vue";
|
|
680
701
|
|
|
681
702
|
class Debounce {
|
|
682
703
|
constructor(callback, timer) {
|
|
683
|
-
_defineProperty(this, "_localTimer", null);
|
|
684
704
|
_defineProperty(this, "_localTimeout", null);
|
|
685
705
|
_defineProperty(this, "_callback", null);
|
|
686
706
|
_defineProperty(this, "_timer", 0);
|
|
@@ -688,7 +708,6 @@ class Debounce {
|
|
|
688
708
|
this._timer = timer;
|
|
689
709
|
}
|
|
690
710
|
start() {
|
|
691
|
-
this._localTimer = performance.now();
|
|
692
711
|
if (this._localTimeout) {
|
|
693
712
|
clearTimeout(this._localTimeout);
|
|
694
713
|
}
|
|
@@ -705,15 +724,14 @@ function useDebounce() {
|
|
|
705
724
|
};
|
|
706
725
|
}
|
|
707
726
|
|
|
708
|
-
const _hoisted_1$
|
|
709
|
-
const _hoisted_2$
|
|
727
|
+
const _hoisted_1$b = { class: "extended__multiselect-block extended__multiselect-block--multiple" };
|
|
728
|
+
const _hoisted_2$b = {
|
|
710
729
|
key: 0,
|
|
711
730
|
class: "extended__multiselect-placeholder"
|
|
712
731
|
};
|
|
713
|
-
const _hoisted_3$4 = ["src", "onClick"];
|
|
714
732
|
|
|
715
733
|
|
|
716
|
-
var script$
|
|
734
|
+
var script$b = {
|
|
717
735
|
__name: 'ExtendedMultiselectMultiple',
|
|
718
736
|
props: {
|
|
719
737
|
/**
|
|
@@ -886,11 +904,8 @@ const {
|
|
|
886
904
|
toggleMultipleBlocksLimit,
|
|
887
905
|
} = toRefs(props);
|
|
888
906
|
|
|
889
|
-
const { createImagePath } = useImagePath();
|
|
890
|
-
|
|
891
907
|
const optionsLimitIncreaser = ref(null);
|
|
892
908
|
const increaserClass = ref("extended__multiselect-increaser");
|
|
893
|
-
const deselectImage = ref(createImagePath("cancel.svg"));
|
|
894
909
|
|
|
895
910
|
const { optionCreateLabel } = useLabels(
|
|
896
911
|
label,
|
|
@@ -1038,9 +1053,9 @@ onBeforeMount(() => {
|
|
|
1038
1053
|
});
|
|
1039
1054
|
|
|
1040
1055
|
return (_ctx, _cache) => {
|
|
1041
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1056
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
1042
1057
|
(__props.placeholderBlockShown)
|
|
1043
|
-
? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1058
|
+
? (openBlock(), createElementBlock("span", _hoisted_2$b, toDisplayString(__props.appropriatePlaceholder), 1 /* TEXT */))
|
|
1044
1059
|
: createCommentVNode("v-if", true),
|
|
1045
1060
|
createElementVNode("div", null, [
|
|
1046
1061
|
renderSlot(_ctx.$slots, "multipleBlocks", {
|
|
@@ -1062,14 +1077,12 @@ return (_ctx, _cache) => {
|
|
|
1062
1077
|
class: normalizeClass(deselectClasses.value)
|
|
1063
1078
|
}, [
|
|
1064
1079
|
(!showLoaderIcon.value)
|
|
1065
|
-
? (openBlock(),
|
|
1080
|
+
? (openBlock(), createBlock(script$d, {
|
|
1066
1081
|
key: 0,
|
|
1067
|
-
alt: "",
|
|
1068
1082
|
class: "extended__multiselect_deselect-block-icon",
|
|
1069
|
-
src: deselectImage.value,
|
|
1070
1083
|
onClick: withModifiers($event => (deselectBlock(index)), ["stop"])
|
|
1071
|
-
}, null, 8 /* PROPS */,
|
|
1072
|
-
: (openBlock(), createBlock(script$
|
|
1084
|
+
}, null, 8 /* PROPS */, ["onClick"]))
|
|
1085
|
+
: (openBlock(), createBlock(script$e, {
|
|
1073
1086
|
key: 1,
|
|
1074
1087
|
"icon-filter": __props.iconFilter,
|
|
1075
1088
|
"icon-size": "deselect"
|
|
@@ -1103,26 +1116,26 @@ return (_ctx, _cache) => {
|
|
|
1103
1116
|
|
|
1104
1117
|
};
|
|
1105
1118
|
|
|
1106
|
-
script$
|
|
1119
|
+
script$b.__file = "src/components/ExtendedMultiselectMultiple.vue";
|
|
1107
1120
|
|
|
1108
|
-
const _hoisted_1$
|
|
1109
|
-
const _hoisted_2$
|
|
1110
|
-
const _hoisted_3$
|
|
1121
|
+
const _hoisted_1$a = { key: 0 };
|
|
1122
|
+
const _hoisted_2$a = ["accesskey", "autocomplete", "disabled", "id", "name", "placeholder", "spellcheck", "tabindex", "translate"];
|
|
1123
|
+
const _hoisted_3$6 = {
|
|
1111
1124
|
key: 0,
|
|
1112
1125
|
class: "extended__multiselect-placeholder"
|
|
1113
1126
|
};
|
|
1114
|
-
const _hoisted_4$
|
|
1115
|
-
const _hoisted_5$
|
|
1127
|
+
const _hoisted_4$3 = { key: 1 };
|
|
1128
|
+
const _hoisted_5$3 = {
|
|
1116
1129
|
key: 2,
|
|
1117
1130
|
class: "extended__multiselect-block"
|
|
1118
1131
|
};
|
|
1119
|
-
const _hoisted_6$
|
|
1132
|
+
const _hoisted_6$3 = {
|
|
1120
1133
|
key: 0,
|
|
1121
1134
|
class: "extended__multiselect-placeholder"
|
|
1122
1135
|
};
|
|
1123
1136
|
|
|
1124
1137
|
|
|
1125
|
-
var script$
|
|
1138
|
+
var script$a = {
|
|
1126
1139
|
__name: 'ExtendedMultiselectInput',
|
|
1127
1140
|
props: {
|
|
1128
1141
|
/**
|
|
@@ -1254,10 +1267,10 @@ var script$3 = {
|
|
|
1254
1267
|
},
|
|
1255
1268
|
|
|
1256
1269
|
/**
|
|
1257
|
-
* Defines a svg-filter for icons
|
|
1258
|
-
* @property {string}
|
|
1270
|
+
* Defines a svg-filter for loader icons
|
|
1271
|
+
* @property {string} loaderIconFilter
|
|
1259
1272
|
*/
|
|
1260
|
-
|
|
1273
|
+
loaderIconFilter: {
|
|
1261
1274
|
type: String,
|
|
1262
1275
|
required: true,
|
|
1263
1276
|
},
|
|
@@ -1683,7 +1696,7 @@ onMounted(() => {
|
|
|
1683
1696
|
|
|
1684
1697
|
return (_ctx, _cache) => {
|
|
1685
1698
|
return (unref(showSearchField))
|
|
1686
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1699
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
1687
1700
|
withDirectives(createElementVNode("input", {
|
|
1688
1701
|
"aria-controls": "extended-search-field",
|
|
1689
1702
|
ref_key: "extendedInput",
|
|
@@ -1703,7 +1716,7 @@ return (_ctx, _cache) => {
|
|
|
1703
1716
|
onBlur: withModifiers(rollUp, ["prevent"]),
|
|
1704
1717
|
onFocus: withModifiers(expand, ["prevent"]),
|
|
1705
1718
|
onInput: search
|
|
1706
|
-
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_2$
|
|
1719
|
+
}, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_2$a), [
|
|
1707
1720
|
[vModelText, searchValue.value]
|
|
1708
1721
|
]),
|
|
1709
1722
|
withDirectives(createElementVNode("div", {
|
|
@@ -1717,13 +1730,13 @@ return (_ctx, _cache) => {
|
|
|
1717
1730
|
[vShow, !searchFieldForwarding.value && !unref(multiple) && !placeholderBlockShown.value]
|
|
1718
1731
|
]),
|
|
1719
1732
|
(placeholderBlockShown.value)
|
|
1720
|
-
? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1733
|
+
? (openBlock(), createElementBlock("span", _hoisted_3$6, toDisplayString(appropriatePlaceholder.value), 1 /* TEXT */))
|
|
1721
1734
|
: createCommentVNode("v-if", true),
|
|
1722
|
-
withDirectives(createVNode(script$
|
|
1735
|
+
withDirectives(createVNode(script$b, {
|
|
1723
1736
|
style: normalizeStyle(multipleBlocksMargin.value),
|
|
1724
1737
|
disabled: unref(disabled),
|
|
1725
1738
|
loading: __props.loading,
|
|
1726
|
-
"icon-filter": __props.
|
|
1739
|
+
"icon-filter": __props.loaderIconFilter,
|
|
1727
1740
|
"show-deselect-icon-loader": __props.showDeselectIconLoader,
|
|
1728
1741
|
"toggle-multiple-blocks-limit": __props.toggleMultipleBlocksLimit,
|
|
1729
1742
|
"empty-objects-placeholder": __props.emptyObjectsPlaceholder,
|
|
@@ -1768,11 +1781,11 @@ return (_ctx, _cache) => {
|
|
|
1768
1781
|
])
|
|
1769
1782
|
]))
|
|
1770
1783
|
: (!unref(showSearchField) && unref(multiple))
|
|
1771
|
-
? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
1772
|
-
createVNode(script$
|
|
1784
|
+
? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
1785
|
+
createVNode(script$b, {
|
|
1773
1786
|
disabled: unref(disabled),
|
|
1774
1787
|
loading: __props.loading,
|
|
1775
|
-
"icon-filter": __props.
|
|
1788
|
+
"icon-filter": __props.loaderIconFilter,
|
|
1776
1789
|
"placeholder-block-shown": !unref(selectedOptions).length,
|
|
1777
1790
|
"show-deselect-icon-loader": __props.showDeselectIconLoader,
|
|
1778
1791
|
"toggle-multiple-blocks-limit": __props.toggleMultipleBlocksLimit,
|
|
@@ -1821,9 +1834,9 @@ return (_ctx, _cache) => {
|
|
|
1821
1834
|
onFocus: withModifiers(expand, ["prevent"])
|
|
1822
1835
|
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */)
|
|
1823
1836
|
]))
|
|
1824
|
-
: (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1837
|
+
: (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
1825
1838
|
(placeholderBlockShown.value)
|
|
1826
|
-
? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
1839
|
+
? (openBlock(), createElementBlock("span", _hoisted_6$3, toDisplayString(appropriatePlaceholder.value), 1 /* TEXT */))
|
|
1827
1840
|
: createCommentVNode("v-if", true),
|
|
1828
1841
|
renderSlot(_ctx.$slots, "labelBlock", { labelBlockValue: singleLabel.value }, () => [
|
|
1829
1842
|
createElementVNode("span", null, toDisplayString(singleLabel.value), 1 /* TEXT */)
|
|
@@ -1842,23 +1855,23 @@ return (_ctx, _cache) => {
|
|
|
1842
1855
|
|
|
1843
1856
|
};
|
|
1844
1857
|
|
|
1845
|
-
script$
|
|
1858
|
+
script$a.__file = "src/components/ExtendedMultiselectInput.vue";
|
|
1846
1859
|
|
|
1847
|
-
const _hoisted_1$
|
|
1848
|
-
const _hoisted_2$
|
|
1849
|
-
const _hoisted_3$
|
|
1850
|
-
const _hoisted_4 = ["aria-setsize", "aria-posinset", "aria-labelledby", "aria-disabled", "enter-locator", "role", "onClick", "onKeypress"];
|
|
1851
|
-
const _hoisted_5 = { class: "extended__multiselect-marker" };
|
|
1852
|
-
const _hoisted_6 = {
|
|
1860
|
+
const _hoisted_1$9 = /*#__PURE__*/createElementVNode("span", null, "Maximum limit of selected options was achieved", -1 /* HOISTED */);
|
|
1861
|
+
const _hoisted_2$9 = /*#__PURE__*/createElementVNode("span", null, "Minimum amount of selected options was not achieved", -1 /* HOISTED */);
|
|
1862
|
+
const _hoisted_3$5 = { class: "extended__multiselect-options_container" };
|
|
1863
|
+
const _hoisted_4$2 = ["aria-setsize", "aria-posinset", "aria-labelledby", "aria-disabled", "enter-locator", "role", "onClick", "onKeypress"];
|
|
1864
|
+
const _hoisted_5$2 = { class: "extended__multiselect-marker" };
|
|
1865
|
+
const _hoisted_6$2 = {
|
|
1853
1866
|
key: 1,
|
|
1854
1867
|
class: "extended__multiselect-marker-shape-only"
|
|
1855
1868
|
};
|
|
1856
|
-
const _hoisted_7 = ["id"];
|
|
1857
|
-
const _hoisted_8 = /*#__PURE__*/createElementVNode("span", null, "No results were found by search", -1 /* HOISTED */);
|
|
1858
|
-
const _hoisted_9 = /*#__PURE__*/createElementVNode("span", null, "Options list is empty", -1 /* HOISTED */);
|
|
1869
|
+
const _hoisted_7$2 = ["id"];
|
|
1870
|
+
const _hoisted_8$2 = /*#__PURE__*/createElementVNode("span", null, "No results were found by search", -1 /* HOISTED */);
|
|
1871
|
+
const _hoisted_9$2 = /*#__PURE__*/createElementVNode("span", null, "Options list is empty", -1 /* HOISTED */);
|
|
1859
1872
|
|
|
1860
1873
|
|
|
1861
|
-
var script$
|
|
1874
|
+
var script$9 = {
|
|
1862
1875
|
__name: 'ExtendedMultiselectOptions',
|
|
1863
1876
|
props: {
|
|
1864
1877
|
/**
|
|
@@ -2806,7 +2819,7 @@ const selectOption = (option, clickEvent) => {
|
|
|
2806
2819
|
if (option[disableByField.value] || defineDisabledOption(option)) return;
|
|
2807
2820
|
if (
|
|
2808
2821
|
clickEvent.target.id === "extended__multiselect-toggle"
|
|
2809
|
-
|
|
2822
|
+
|| clickEvent.target.id === "extended__multiselect-cancel"
|
|
2810
2823
|
) return;
|
|
2811
2824
|
|
|
2812
2825
|
if (selectedOptionsShown.value || externalOptionsLoader.value) {
|
|
@@ -2959,15 +2972,15 @@ return (_ctx, _cache) => {
|
|
|
2959
2972
|
: createCommentVNode("v-if", true),
|
|
2960
2973
|
(maxOptionsWereSelected.value)
|
|
2961
2974
|
? renderSlot(_ctx.$slots, "moreThanLimit", { key: 1 }, () => [
|
|
2962
|
-
_hoisted_1$
|
|
2975
|
+
_hoisted_1$9
|
|
2963
2976
|
])
|
|
2964
2977
|
: createCommentVNode("v-if", true),
|
|
2965
2978
|
(minOptionsWereNotSelected.value)
|
|
2966
2979
|
? renderSlot(_ctx.$slots, "lessThanLimit", { key: 2 }, () => [
|
|
2967
|
-
_hoisted_2$
|
|
2980
|
+
_hoisted_2$9
|
|
2968
2981
|
])
|
|
2969
2982
|
: createCommentVNode("v-if", true),
|
|
2970
|
-
createElementVNode("div", _hoisted_3$
|
|
2983
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
2971
2984
|
(openBlock(true), createElementBlock(Fragment, null, renderList(availableOptions.value, (option, index) => {
|
|
2972
2985
|
return (openBlock(), createElementBlock("div", {
|
|
2973
2986
|
role: "listbox",
|
|
@@ -2993,7 +3006,7 @@ return (_ctx, _cache) => {
|
|
|
2993
3006
|
option: option,
|
|
2994
3007
|
createCustomOptionLabel: unref(createCustomOptionLabel)
|
|
2995
3008
|
}, () => [
|
|
2996
|
-
createElementVNode("div", _hoisted_5, [
|
|
3009
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
2997
3010
|
renderSlot(_ctx.$slots, "marker", {
|
|
2998
3011
|
selected: showCurrentMarker(option)
|
|
2999
3012
|
}, () => [
|
|
@@ -3004,27 +3017,27 @@ return (_ctx, _cache) => {
|
|
|
3004
3017
|
style: normalizeStyle(markerShapeMargin.value)
|
|
3005
3018
|
}, null, 6 /* CLASS, STYLE */))
|
|
3006
3019
|
: (unref(showMarker))
|
|
3007
|
-
? (openBlock(), createElementBlock("div", _hoisted_6))
|
|
3020
|
+
? (openBlock(), createElementBlock("div", _hoisted_6$2))
|
|
3008
3021
|
: createCommentVNode("v-if", true)
|
|
3009
3022
|
])
|
|
3010
3023
|
]),
|
|
3011
3024
|
createElementVNode("span", {
|
|
3012
3025
|
id: `option-label-${index}`
|
|
3013
|
-
}, toDisplayString(unref(optionCreateLabel)(option)), 9 /* TEXT, PROPS */, _hoisted_7)
|
|
3026
|
+
}, toDisplayString(unref(optionCreateLabel)(option)), 9 /* TEXT, PROPS */, _hoisted_7$2)
|
|
3014
3027
|
])
|
|
3015
|
-
], 46 /* CLASS, STYLE, PROPS, NEED_HYDRATION */, _hoisted_4))
|
|
3028
|
+
], 46 /* CLASS, STYLE, PROPS, NEED_HYDRATION */, _hoisted_4$2))
|
|
3016
3029
|
: createCommentVNode("v-if", true)
|
|
3017
3030
|
]))
|
|
3018
3031
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3019
3032
|
]),
|
|
3020
3033
|
(emptySearchResult.value)
|
|
3021
3034
|
? renderSlot(_ctx.$slots, "noResults", { key: 3 }, () => [
|
|
3022
|
-
_hoisted_8
|
|
3035
|
+
_hoisted_8$2
|
|
3023
3036
|
])
|
|
3024
3037
|
: createCommentVNode("v-if", true),
|
|
3025
3038
|
(emptyOptionsList.value)
|
|
3026
3039
|
? renderSlot(_ctx.$slots, "noOptions", { key: 4 }, () => [
|
|
3027
|
-
_hoisted_9
|
|
3040
|
+
_hoisted_9$2
|
|
3028
3041
|
])
|
|
3029
3042
|
: createCommentVNode("v-if", true),
|
|
3030
3043
|
renderSlot(_ctx.$slots, "listFooter")
|
|
@@ -3034,11 +3047,256 @@ return (_ctx, _cache) => {
|
|
|
3034
3047
|
|
|
3035
3048
|
};
|
|
3036
3049
|
|
|
3037
|
-
script$
|
|
3050
|
+
script$9.__file = "src/components/ExtendedMultiselectOptions.vue";
|
|
3051
|
+
|
|
3052
|
+
const _hoisted_1$8 = {
|
|
3053
|
+
version: "1.1",
|
|
3054
|
+
id: "Capa_1",
|
|
3055
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3056
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
3057
|
+
x: "0px",
|
|
3058
|
+
y: "0px",
|
|
3059
|
+
viewBox: "0 0 490 490",
|
|
3060
|
+
style: {"enable-background":"new 0 0 490 490"},
|
|
3061
|
+
"xml:space": "preserve"
|
|
3062
|
+
};
|
|
3063
|
+
const _hoisted_2$8 = /*#__PURE__*/createStaticVNode("<g><g><polygon points=\"0,332.668 245.004,82.631 490,332.668 413.507,407.369 245.004,235.402 76.493,407.369 \t\t\"></polygon></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g>", 16);
|
|
3064
|
+
const _hoisted_18$4 = [
|
|
3065
|
+
_hoisted_2$8
|
|
3066
|
+
];
|
|
3067
|
+
|
|
3068
|
+
function render$6(_ctx, _cache) {
|
|
3069
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$8, [..._hoisted_18$4]))
|
|
3070
|
+
}
|
|
3071
|
+
|
|
3072
|
+
const script$8 = {};
|
|
3073
|
+
|
|
3074
|
+
|
|
3075
|
+
script$8.render = render$6;
|
|
3076
|
+
script$8.__file = "src/icons/BaseArrowIcon.vue";
|
|
3077
|
+
|
|
3078
|
+
const _hoisted_1$7 = {
|
|
3079
|
+
version: "1.1",
|
|
3080
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3081
|
+
viewBox: "0 0 26 26",
|
|
3082
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
3083
|
+
"enable-background": "new 0 0 26 26"
|
|
3084
|
+
};
|
|
3085
|
+
const _hoisted_2$7 = /*#__PURE__*/createElementVNode("g", null, [
|
|
3086
|
+
/*#__PURE__*/createElementVNode("path", { d: "m13,0c-7.2,0-13,5.8-13,13s5.8,13 13,13 13-5.8 13-13-5.8-13-13-13zm0,22c-5,0-9-4-9-9s4-9 9-9 9,4 9,9-4,9-9,9z" }),
|
|
3087
|
+
/*#__PURE__*/createElementVNode("path", { d: "M18.8,14.4l-5-6C13.6,8.2,13.3,8,13,8s-0.6,0.1-0.8,0.4l-5,6l-0.1,0.1C7,14.7,7,14.8,7,15c0,0.3,0.2,0.7,0.5,0.9l1.7,1 C9.3,17,9.5,17,9.7,17c0.3,0,0.5-0.1,0.7-0.3l1.8-2.1c0.4-0.5,1.1-0.5,1.5,0l1.8,2.1c0.2,0.2,0.4,0.3,0.7,0.3c0.2,0,0.4,0,0.5-0.1 l1.7-1c0.3-0.2,0.5-0.5,0.5-0.9c0-0.2,0-0.3-0.1-0.5C18.8,14.4,18.8,14.4,18.8,14.4z" })
|
|
3088
|
+
], -1 /* HOISTED */);
|
|
3089
|
+
const _hoisted_3$4 = [
|
|
3090
|
+
_hoisted_2$7
|
|
3091
|
+
];
|
|
3092
|
+
|
|
3093
|
+
function render$5(_ctx, _cache) {
|
|
3094
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$7, [..._hoisted_3$4]))
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
const script$7 = {};
|
|
3098
|
+
|
|
3099
|
+
|
|
3100
|
+
script$7.render = render$5;
|
|
3101
|
+
script$7.__file = "src/icons/CircleArrowIcon.vue";
|
|
3102
|
+
|
|
3103
|
+
const _hoisted_1$6 = {
|
|
3104
|
+
version: "1.1",
|
|
3105
|
+
id: "Capa_1",
|
|
3106
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3107
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
3108
|
+
x: "0px",
|
|
3109
|
+
y: "0px",
|
|
3110
|
+
viewBox: "0 0 490.037 490.037",
|
|
3111
|
+
style: {"enable-background":"new 0 0 490.037 490.037"},
|
|
3112
|
+
"xml:space": "preserve"
|
|
3113
|
+
};
|
|
3114
|
+
const _hoisted_2$6 = /*#__PURE__*/createElementVNode("path", { d: "M91.483,490.019l153.535-160.332l153.535,160.332l91.483-91.439l-69.81-72.906l69.81-69.775L245.019,0.019L0,255.898\r\n l69.81,69.775L0,398.58L91.483,490.019z M42.905,255.434L245.019,44.346l202.114,211.089l-48.1,48.07L245.019,142.678\r\n L91.004,303.504L42.905,255.434z M245.019,187.02l202.114,211.081l-48.1,48.085L245.019,285.345L91.004,446.186l-48.1-48.085\r\n L245.019,187.02z" }, null, -1 /* HOISTED */);
|
|
3115
|
+
const _hoisted_3$3 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3116
|
+
const _hoisted_4$1 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3117
|
+
const _hoisted_5$1 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3118
|
+
const _hoisted_6$1 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3119
|
+
const _hoisted_7$1 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3120
|
+
const _hoisted_8$1 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3121
|
+
const _hoisted_9$1 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3122
|
+
const _hoisted_10$1 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3123
|
+
const _hoisted_11$1 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3124
|
+
const _hoisted_12$1 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3125
|
+
const _hoisted_13$1 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3126
|
+
const _hoisted_14$1 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3127
|
+
const _hoisted_15$1 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3128
|
+
const _hoisted_16$1 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3129
|
+
const _hoisted_17$1 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3130
|
+
const _hoisted_18$3 = [
|
|
3131
|
+
_hoisted_2$6,
|
|
3132
|
+
_hoisted_3$3,
|
|
3133
|
+
_hoisted_4$1,
|
|
3134
|
+
_hoisted_5$1,
|
|
3135
|
+
_hoisted_6$1,
|
|
3136
|
+
_hoisted_7$1,
|
|
3137
|
+
_hoisted_8$1,
|
|
3138
|
+
_hoisted_9$1,
|
|
3139
|
+
_hoisted_10$1,
|
|
3140
|
+
_hoisted_11$1,
|
|
3141
|
+
_hoisted_12$1,
|
|
3142
|
+
_hoisted_13$1,
|
|
3143
|
+
_hoisted_14$1,
|
|
3144
|
+
_hoisted_15$1,
|
|
3145
|
+
_hoisted_16$1,
|
|
3146
|
+
_hoisted_17$1
|
|
3147
|
+
];
|
|
3148
|
+
|
|
3149
|
+
function render$4(_ctx, _cache) {
|
|
3150
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$6, [..._hoisted_18$3]))
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3153
|
+
const script$6 = {};
|
|
3154
|
+
|
|
3155
|
+
|
|
3156
|
+
script$6.render = render$4;
|
|
3157
|
+
script$6.__file = "src/icons/DoubleArrowIcon.vue";
|
|
3158
|
+
|
|
3159
|
+
const _hoisted_1$5 = {
|
|
3160
|
+
version: "1.1",
|
|
3161
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3162
|
+
viewBox: "0 0 137.145 137.145",
|
|
3163
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
3164
|
+
"enable-background": "new 0 0 137.145 137.145"
|
|
3165
|
+
};
|
|
3166
|
+
const _hoisted_2$5 = /*#__PURE__*/createElementVNode("g", null, [
|
|
3167
|
+
/*#__PURE__*/createElementVNode("g", null, [
|
|
3168
|
+
/*#__PURE__*/createElementVNode("path", { d: "m37.711,89.198l30.861-28.835-10.287-9.612-30.861,28.835 10.287,9.612zm72.004-89.198h-82.286c-15.149,0-27.429,12.281-27.429,27.429v82.287c0,15.148 12.28,27.429 27.429,27.429h82.286c15.149,0 27.429-12.28 27.429-27.429v-82.287c0-15.148-12.28-27.429-27.429-27.429zm13.715,102.858c0,11.361-9.21,20.572-20.572,20.572h-68.572c-11.361,0-20.571-9.211-20.571-20.572v-68.572c0-11.361 9.21-20.572 20.571-20.572h68.572c11.361,0 20.572,9.211 20.572,20.572v68.572zm-65.145-52.107l41.148,38.447 10.287-9.612-41.148-38.446-10.287,9.611z" })
|
|
3169
|
+
])
|
|
3170
|
+
], -1 /* HOISTED */);
|
|
3171
|
+
const _hoisted_3$2 = [
|
|
3172
|
+
_hoisted_2$5
|
|
3173
|
+
];
|
|
3174
|
+
|
|
3175
|
+
function render$3(_ctx, _cache) {
|
|
3176
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$5, [..._hoisted_3$2]))
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3179
|
+
const script$5 = {};
|
|
3180
|
+
|
|
3181
|
+
|
|
3182
|
+
script$5.render = render$3;
|
|
3183
|
+
script$5.__file = "src/icons/InnerArrowIcon.vue";
|
|
3184
|
+
|
|
3185
|
+
const _hoisted_1$4 = {
|
|
3186
|
+
version: "1.1",
|
|
3187
|
+
id: "Capa_1",
|
|
3188
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3189
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
3190
|
+
x: "0px",
|
|
3191
|
+
y: "0px",
|
|
3192
|
+
viewBox: "0 0 16 16",
|
|
3193
|
+
style: {"enable-background":"new 0 0 16 16"},
|
|
3194
|
+
"xml:space": "preserve"
|
|
3195
|
+
};
|
|
3196
|
+
const _hoisted_2$4 = /*#__PURE__*/createElementVNode("g", null, [
|
|
3197
|
+
/*#__PURE__*/createElementVNode("path", {
|
|
3198
|
+
style: {"fill":"#030104"},
|
|
3199
|
+
d: "M8,0C3.582,0,0,3.582,0,8s3.582,8,8,8s8-3.582,8-8S12.418,0,8,0z M4,11l4-7l4,7H4z"
|
|
3200
|
+
})
|
|
3201
|
+
], -1 /* HOISTED */);
|
|
3202
|
+
const _hoisted_3$1 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3203
|
+
const _hoisted_4 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3204
|
+
const _hoisted_5 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3205
|
+
const _hoisted_6 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3206
|
+
const _hoisted_7 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3207
|
+
const _hoisted_8 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3208
|
+
const _hoisted_9 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3209
|
+
const _hoisted_10 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3210
|
+
const _hoisted_11 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3211
|
+
const _hoisted_12 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3212
|
+
const _hoisted_13 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3213
|
+
const _hoisted_14 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3214
|
+
const _hoisted_15 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3215
|
+
const _hoisted_16 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3216
|
+
const _hoisted_17 = /*#__PURE__*/createElementVNode("g", null, null, -1 /* HOISTED */);
|
|
3217
|
+
const _hoisted_18$2 = [
|
|
3218
|
+
_hoisted_2$4,
|
|
3219
|
+
_hoisted_3$1,
|
|
3220
|
+
_hoisted_4,
|
|
3221
|
+
_hoisted_5,
|
|
3222
|
+
_hoisted_6,
|
|
3223
|
+
_hoisted_7,
|
|
3224
|
+
_hoisted_8,
|
|
3225
|
+
_hoisted_9,
|
|
3226
|
+
_hoisted_10,
|
|
3227
|
+
_hoisted_11,
|
|
3228
|
+
_hoisted_12,
|
|
3229
|
+
_hoisted_13,
|
|
3230
|
+
_hoisted_14,
|
|
3231
|
+
_hoisted_15,
|
|
3232
|
+
_hoisted_16,
|
|
3233
|
+
_hoisted_17
|
|
3234
|
+
];
|
|
3235
|
+
|
|
3236
|
+
function render$2(_ctx, _cache) {
|
|
3237
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$4, [..._hoisted_18$2]))
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
const script$4 = {};
|
|
3241
|
+
|
|
3242
|
+
|
|
3243
|
+
script$4.render = render$2;
|
|
3244
|
+
script$4.__file = "src/icons/TriangleCircleArrowIcon.vue";
|
|
3245
|
+
|
|
3246
|
+
const _hoisted_1$3 = {
|
|
3247
|
+
version: "1.1",
|
|
3248
|
+
id: "Capa_1",
|
|
3249
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3250
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
3251
|
+
x: "0px",
|
|
3252
|
+
y: "0px",
|
|
3253
|
+
viewBox: "0 0 490 490",
|
|
3254
|
+
style: {"enable-background":"new 0 0 490 490"},
|
|
3255
|
+
"xml:space": "preserve"
|
|
3256
|
+
};
|
|
3257
|
+
const _hoisted_2$3 = /*#__PURE__*/createStaticVNode("<g><g><g><polygon points=\"0,249.888 245.004,8.139 490,249.888 490,481.861 245.004,239.71 0,481.861 \t\t\t\"></polygon></g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g>", 16);
|
|
3258
|
+
const _hoisted_18$1 = [
|
|
3259
|
+
_hoisted_2$3
|
|
3260
|
+
];
|
|
3261
|
+
|
|
3262
|
+
function render$1(_ctx, _cache) {
|
|
3263
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$3, [..._hoisted_18$1]))
|
|
3264
|
+
}
|
|
3265
|
+
|
|
3266
|
+
const script$3 = {};
|
|
3267
|
+
|
|
3268
|
+
|
|
3269
|
+
script$3.render = render$1;
|
|
3270
|
+
script$3.__file = "src/icons/WideArrowIcon.vue";
|
|
3271
|
+
|
|
3272
|
+
const _hoisted_1$2 = {
|
|
3273
|
+
version: "1.1",
|
|
3274
|
+
id: "Capa_1",
|
|
3275
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3276
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
3277
|
+
x: "0px",
|
|
3278
|
+
y: "0px",
|
|
3279
|
+
viewBox: "0 0 491.858 491.858",
|
|
3280
|
+
style: {"enable-background":"new 0 0 491.858 491.858"},
|
|
3281
|
+
"xml:space": "preserve"
|
|
3282
|
+
};
|
|
3283
|
+
const _hoisted_2$2 = /*#__PURE__*/createStaticVNode("<g><g><path d=\"M491.858,442.461c0,13.931-11.293,25.224-25.224,25.224L245.93,373.097L25.224,467.686\r\n C11.292,467.686,0,456.392,0,442.461L227.011,32.58c0,0,18.918-18.918,37.834,0C283.764,51.499,491.858,442.461,491.858,442.461z\"></path></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g>", 16);
|
|
3284
|
+
const _hoisted_18 = [
|
|
3285
|
+
_hoisted_2$2
|
|
3286
|
+
];
|
|
3287
|
+
|
|
3288
|
+
function render(_ctx, _cache) {
|
|
3289
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$2, [..._hoisted_18]))
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
const script$2 = {};
|
|
3293
|
+
|
|
3294
|
+
|
|
3295
|
+
script$2.render = render;
|
|
3296
|
+
script$2.__file = "src/icons/TriangleArrowIcon.vue";
|
|
3038
3297
|
|
|
3039
3298
|
const _hoisted_1$1 = ["aria-checked", "tabindex"];
|
|
3040
|
-
const _hoisted_2$1 =
|
|
3041
|
-
const _hoisted_3$1 = /*#__PURE__*/createElementVNode("svg", {
|
|
3299
|
+
const _hoisted_2$1 = /*#__PURE__*/createElementVNode("svg", {
|
|
3042
3300
|
version: "1.1",
|
|
3043
3301
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3044
3302
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
@@ -3122,6 +3380,15 @@ var script$1 = {
|
|
|
3122
3380
|
type: String,
|
|
3123
3381
|
required: true,
|
|
3124
3382
|
},
|
|
3383
|
+
|
|
3384
|
+
/**
|
|
3385
|
+
* Defines a svg-filter for loader icons
|
|
3386
|
+
* @property {string} loaderIconFilter
|
|
3387
|
+
*/
|
|
3388
|
+
loaderIconFilter: {
|
|
3389
|
+
type: String,
|
|
3390
|
+
required: true,
|
|
3391
|
+
},
|
|
3125
3392
|
|
|
3126
3393
|
/**
|
|
3127
3394
|
* Provides size to create special size-class
|
|
@@ -3179,14 +3446,13 @@ const {
|
|
|
3179
3446
|
dropdownActive,
|
|
3180
3447
|
emitter,
|
|
3181
3448
|
iconFilter,
|
|
3449
|
+
loaderIconFilter,
|
|
3182
3450
|
iconSize,
|
|
3183
3451
|
loading,
|
|
3184
3452
|
tabindex,
|
|
3185
3453
|
toggleIcon,
|
|
3186
3454
|
} = toRefs(props);
|
|
3187
3455
|
|
|
3188
|
-
const { createImagePath } = useImagePath();
|
|
3189
|
-
|
|
3190
3456
|
const { toggleSlotClass, toggleOptionsList } = useToggle(
|
|
3191
3457
|
loading,
|
|
3192
3458
|
disabled,
|
|
@@ -3214,25 +3480,23 @@ const classesSummary = computed(() => {
|
|
|
3214
3480
|
* @returns {string} icon
|
|
3215
3481
|
*/
|
|
3216
3482
|
const icon = computed(() => {
|
|
3217
|
-
const baseArrow = createImagePath("base-arrow.svg");
|
|
3218
|
-
|
|
3219
3483
|
switch(toggleIcon.value) {
|
|
3220
3484
|
case "base-arrow":
|
|
3221
|
-
return
|
|
3485
|
+
return script$8;
|
|
3222
3486
|
case "double-arrow":
|
|
3223
|
-
return
|
|
3487
|
+
return script$6;
|
|
3224
3488
|
case "wide-arrow":
|
|
3225
|
-
return
|
|
3489
|
+
return script$3;
|
|
3226
3490
|
case "circle-arrow":
|
|
3227
|
-
return
|
|
3491
|
+
return script$7;
|
|
3228
3492
|
case "inner-arrow":
|
|
3229
|
-
return
|
|
3493
|
+
return script$5;
|
|
3230
3494
|
case "triangle-arrow":
|
|
3231
|
-
return
|
|
3495
|
+
return script$2;
|
|
3232
3496
|
case "triangle-circle-arrow":
|
|
3233
|
-
return
|
|
3497
|
+
return script$4;
|
|
3234
3498
|
default:
|
|
3235
|
-
return
|
|
3499
|
+
return script$8;
|
|
3236
3500
|
}
|
|
3237
3501
|
});
|
|
3238
3502
|
|
|
@@ -3243,8 +3507,8 @@ const icon = computed(() => {
|
|
|
3243
3507
|
*/
|
|
3244
3508
|
const iconFilterClass = computed(() => {
|
|
3245
3509
|
const basicFilter = "extended__multiselect-filter";
|
|
3246
|
-
|
|
3247
|
-
switch(iconFilter) {
|
|
3510
|
+
|
|
3511
|
+
switch(iconFilter.value) {
|
|
3248
3512
|
case "basic":
|
|
3249
3513
|
return `${basicFilter}_basic`;
|
|
3250
3514
|
case "black":
|
|
@@ -3291,18 +3555,16 @@ return (_ctx, _cache) => {
|
|
|
3291
3555
|
onKeypress: _cache[2] || (_cache[2] = withModifiers($event => (unref(toggleOptionsList)($event)), ["stop"]))
|
|
3292
3556
|
}, [
|
|
3293
3557
|
(!unref(loading))
|
|
3294
|
-
? (openBlock(),
|
|
3295
|
-
key: 0,
|
|
3296
|
-
alt: "",
|
|
3558
|
+
? (openBlock(), createBlock(resolveDynamicComponent(icon.value), {
|
|
3297
3559
|
class: normalizeClass(classesSummary.value),
|
|
3298
|
-
|
|
3299
|
-
}, null,
|
|
3300
|
-
: (openBlock(), createBlock(script$
|
|
3560
|
+
key: icon.value
|
|
3561
|
+
}, null, 8 /* PROPS */, ["class"]))
|
|
3562
|
+
: (openBlock(), createBlock(script$e, {
|
|
3301
3563
|
key: 1,
|
|
3302
|
-
"icon-filter": unref(
|
|
3564
|
+
"icon-filter": unref(loaderIconFilter),
|
|
3303
3565
|
"icon-size": unref(iconSize)
|
|
3304
3566
|
}, null, 8 /* PROPS */, ["icon-filter", "icon-size"])),
|
|
3305
|
-
|
|
3567
|
+
_hoisted_2$1
|
|
3306
3568
|
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_1$1))
|
|
3307
3569
|
}
|
|
3308
3570
|
}
|
|
@@ -3321,7 +3583,7 @@ const _hoisted_3 = { class: "extended__multiselect-cancel_wrapper" };
|
|
|
3321
3583
|
|
|
3322
3584
|
/**
|
|
3323
3585
|
* @author Ridiger Daniil Dmitrievich, 2022
|
|
3324
|
-
* @version 2.0
|
|
3586
|
+
* @version 2.2.0
|
|
3325
3587
|
*/
|
|
3326
3588
|
|
|
3327
3589
|
var script = {
|
|
@@ -3837,9 +4099,9 @@ var script = {
|
|
|
3837
4099
|
default: () => [],
|
|
3838
4100
|
validator(value) {
|
|
3839
4101
|
return value.every((option) => {
|
|
3840
|
-
return typeof option === "string" ||
|
|
3841
|
-
|
|
3842
|
-
|
|
4102
|
+
return typeof option === "string" || typeof option === "number"
|
|
4103
|
+
|| typeof option === "boolean"
|
|
4104
|
+
|| typeof option === "function";
|
|
3843
4105
|
});
|
|
3844
4106
|
},
|
|
3845
4107
|
},
|
|
@@ -4103,7 +4365,7 @@ const classes = computed(() => {
|
|
|
4103
4365
|
});
|
|
4104
4366
|
|
|
4105
4367
|
/**
|
|
4106
|
-
* Defines a list of disabled options
|
|
4368
|
+
* Defines a list of disabled primitive options given in "disabledPrimitiveOptions" prop
|
|
4107
4369
|
* @function
|
|
4108
4370
|
* @returns {Array} options
|
|
4109
4371
|
*/
|
|
@@ -4111,10 +4373,8 @@ const disabledPrimitiveOptionsConverted = computed(() => {
|
|
|
4111
4373
|
if (!disabledPrimitiveOptions.value) return null;
|
|
4112
4374
|
|
|
4113
4375
|
return disabledPrimitiveOptions.value.map((disabledOption) => {
|
|
4114
|
-
if (Array.isArray(disabledOption)) {
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
return disabledOption.join(", ");
|
|
4376
|
+
if (Array.isArray(disabledOption) || typeof disabledOption === "object") {
|
|
4377
|
+
return null;
|
|
4118
4378
|
}
|
|
4119
4379
|
|
|
4120
4380
|
return disabledOption;
|
|
@@ -4236,7 +4496,7 @@ watch(dropdownActive, (value) => {
|
|
|
4236
4496
|
watch(modelValue, (value, prevValue) => {
|
|
4237
4497
|
if (
|
|
4238
4498
|
JSON.stringify(toRaw(value)) === JSON.stringify(toRaw(prevValue))
|
|
4239
|
-
|
|
4499
|
+
|| skipNextRemoval.value
|
|
4240
4500
|
) {
|
|
4241
4501
|
skipNextRemoval.value = false;
|
|
4242
4502
|
|
|
@@ -4458,7 +4718,7 @@ const setPreselectedOptions = async (preselectedOptions, restriction = true) =>
|
|
|
4458
4718
|
|
|
4459
4719
|
if (
|
|
4460
4720
|
(mappedOptions.value.includes(JSON.stringify(preselectedOption)) || !restriction)
|
|
4461
|
-
|
|
4721
|
+
&& !mappedSelectedOptions.includes(JSON.stringify(preselectedOption))
|
|
4462
4722
|
) {
|
|
4463
4723
|
const isObjectOrArray = typeof option === "object";
|
|
4464
4724
|
const label = createLabel(isObjectOrArray, preselectedOption);
|
|
@@ -5005,7 +5265,7 @@ return (_ctx, _cache) => {
|
|
|
5005
5265
|
style: normalizeStyle([displayWrongValue.value, expanded.value])
|
|
5006
5266
|
}, [
|
|
5007
5267
|
createElementVNode("div", null, [
|
|
5008
|
-
createVNode(script$
|
|
5268
|
+
createVNode(script$a, {
|
|
5009
5269
|
accesskey: unref(attrs).accesskey,
|
|
5010
5270
|
autocomplete: unref(attrs).autocomplete,
|
|
5011
5271
|
name: unref(attrs).name,
|
|
@@ -5016,7 +5276,7 @@ return (_ctx, _cache) => {
|
|
|
5016
5276
|
"create-on-the-go": __props.createOnTheGo,
|
|
5017
5277
|
disabled: unref(disabled),
|
|
5018
5278
|
loading: internalLoading.value,
|
|
5019
|
-
"icon-filter":
|
|
5279
|
+
"loader-icon-filter": unref(loaderIconFilter),
|
|
5020
5280
|
multiple: unref(multiple),
|
|
5021
5281
|
"search-filter-active": __props.searchFilterActive,
|
|
5022
5282
|
"show-deselect-icon-loader": __props.showDeselectIconLoader,
|
|
@@ -5090,7 +5350,7 @@ return (_ctx, _cache) => {
|
|
|
5090
5350
|
key: "4"
|
|
5091
5351
|
}
|
|
5092
5352
|
: undefined
|
|
5093
|
-
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["accesskey", "autocomplete", "name", "spellcheck", "tabindex", "translate", "auto-select-search-value", "create-on-the-go", "disabled", "loading", "icon-filter", "multiple", "search-filter-active", "show-deselect-icon-loader", "toggling-saves-search-value", "toggle-options-by-select", "placeholder", "show-search-field", "empty-objects-placeholder", "label", "multiple-blocks-limit-message", "theme-type", "increase-display-by", "multipleBlocksLimit", "toggle-multiple-blocks-limit", "selected-options", "emitter", "create-custom-option-label", "create-option-placeholder", "external-options-loader", "input-id"])
|
|
5353
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["accesskey", "autocomplete", "name", "spellcheck", "tabindex", "translate", "auto-select-search-value", "create-on-the-go", "disabled", "loading", "loader-icon-filter", "multiple", "search-filter-active", "show-deselect-icon-loader", "toggling-saves-search-value", "toggle-options-by-select", "placeholder", "show-search-field", "empty-objects-placeholder", "label", "multiple-blocks-limit-message", "theme-type", "increase-display-by", "multipleBlocksLimit", "toggle-multiple-blocks-limit", "selected-options", "emitter", "create-custom-option-label", "create-option-placeholder", "external-options-loader", "input-id"])
|
|
5094
5354
|
]),
|
|
5095
5355
|
createElementVNode("div", _hoisted_2, [
|
|
5096
5356
|
renderSlot(_ctx.$slots, "toggle", { toggleOptionsList: unref(toggleOptionsList) }, () => [
|
|
@@ -5102,26 +5362,27 @@ return (_ctx, _cache) => {
|
|
|
5102
5362
|
"dropdown-active": dropdownActive.value,
|
|
5103
5363
|
loading: internalLoading.value,
|
|
5104
5364
|
"icon-filter": __props.iconFilter,
|
|
5365
|
+
"loader-icon-filter": unref(loaderIconFilter),
|
|
5105
5366
|
"icon-size": __props.iconSize,
|
|
5106
5367
|
"toggle-icon": __props.toggleIcon,
|
|
5107
5368
|
emitter: unref(emitter)
|
|
5108
|
-
}, null, 8 /* PROPS */, ["tabindex", "disabled", "dropdown-active", "loading", "icon-filter", "icon-size", "toggle-icon", "emitter"])
|
|
5369
|
+
}, null, 8 /* PROPS */, ["tabindex", "disabled", "dropdown-active", "loading", "icon-filter", "loader-icon-filter", "icon-size", "toggle-icon", "emitter"])
|
|
5109
5370
|
])
|
|
5110
5371
|
]),
|
|
5111
5372
|
createElementVNode("div", _hoisted_3, [
|
|
5112
5373
|
renderSlot(_ctx.$slots, "cancel", { cancel: unref(cancel) }, () => [
|
|
5113
5374
|
(unref(showClearIcon))
|
|
5114
|
-
? (openBlock(), createBlock(script$
|
|
5375
|
+
? (openBlock(), createBlock(script$c, {
|
|
5115
5376
|
key: 0,
|
|
5116
5377
|
tabindex: unref(attrs).tabindex,
|
|
5117
5378
|
disabled: unref(disabled),
|
|
5118
5379
|
"show-search-field": unref(showSearchField),
|
|
5119
5380
|
loading: internalLoading.value,
|
|
5120
|
-
"icon-filter":
|
|
5381
|
+
"loader-icon-filter": unref(loaderIconFilter),
|
|
5121
5382
|
"icon-size": __props.iconSize,
|
|
5122
5383
|
"selected-options": selectedOptions.value,
|
|
5123
5384
|
emitter: unref(emitter)
|
|
5124
|
-
}, null, 8 /* PROPS */, ["tabindex", "disabled", "show-search-field", "loading", "icon-filter", "icon-size", "selected-options", "emitter"]))
|
|
5385
|
+
}, null, 8 /* PROPS */, ["tabindex", "disabled", "show-search-field", "loading", "loader-icon-filter", "icon-size", "selected-options", "emitter"]))
|
|
5125
5386
|
: createCommentVNode("v-if", true)
|
|
5126
5387
|
])
|
|
5127
5388
|
])
|
|
@@ -5132,7 +5393,7 @@ return (_ctx, _cache) => {
|
|
|
5132
5393
|
}, {
|
|
5133
5394
|
default: withCtx(() => [
|
|
5134
5395
|
(dropdownActive.value)
|
|
5135
|
-
? (openBlock(), createBlock(script$
|
|
5396
|
+
? (openBlock(), createBlock(script$9, {
|
|
5136
5397
|
key: 0,
|
|
5137
5398
|
"auto-select-created-option": __props.autoSelectCreatedOption,
|
|
5138
5399
|
"clear-by-select-when-multiple": __props.clearBySelectWhenMultiple,
|