fds-vue-core 6.2.6 → 6.2.7
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/dist/fds-vue-core.cjs.js +71 -36
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.css +1 -1
- package/dist/fds-vue-core.es.js +71 -36
- package/dist/fds-vue-core.es.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +21 -40
- package/src/components/FdsSearchSelectPro/FdsSearchSelectPro.vue +22 -8
- package/src/components/FdsSearchSelectPro/useSearchSelectProItems.ts +9 -2
- package/src/components/Form/FdsCheckbox/FdsCheckbox.vue +9 -5
- package/src/components/Form/FdsCheckbox/types.ts +2 -2
- package/src/components/Form/FdsRadio/FdsRadio.vue +9 -5
- package/src/components/Form/FdsRadio/types.ts +2 -2
package/dist/fds-vue-core.cjs.js
CHANGED
|
@@ -1015,7 +1015,7 @@ const _hoisted_9$4 = { key: 1 };
|
|
|
1015
1015
|
const _hoisted_10$3 = { class: "flex items-start justify-between gap-4" };
|
|
1016
1016
|
const _hoisted_11$3 = { class: "flex items-center gap-3" };
|
|
1017
1017
|
const _hoisted_12$2 = { class: "m-0 text-base font-main font-bold tracking-wide" };
|
|
1018
|
-
const _hoisted_13$
|
|
1018
|
+
const _hoisted_13$2 = { class: "flex items-start gap-3" };
|
|
1019
1019
|
const _hoisted_14$1 = { class: "mb-0-last-child" };
|
|
1020
1020
|
const smallIconSize = 24;
|
|
1021
1021
|
const largeIconSize = 48;
|
|
@@ -1085,7 +1085,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
1085
1085
|
}, null, 8, ["name"])) : vue.createCommentVNode("", true),
|
|
1086
1086
|
vue.createElementVNode("h3", _hoisted_12$2, vue.toDisplayString(__props.heading), 1)
|
|
1087
1087
|
]),
|
|
1088
|
-
vue.createElementVNode("div", _hoisted_13$
|
|
1088
|
+
vue.createElementVNode("div", _hoisted_13$2, [
|
|
1089
1089
|
vue.renderSlot(_ctx.$slots, "headerInfo")
|
|
1090
1090
|
])
|
|
1091
1091
|
])
|
|
@@ -3002,7 +3002,13 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
3002
3002
|
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
3003
3003
|
function mergeConfig$1(config1, config2) {
|
|
3004
3004
|
config2 = config2 || {};
|
|
3005
|
-
const config =
|
|
3005
|
+
const config = /* @__PURE__ */ Object.create(null);
|
|
3006
|
+
Object.defineProperty(config, "hasOwnProperty", {
|
|
3007
|
+
value: Object.prototype.hasOwnProperty,
|
|
3008
|
+
enumerable: false,
|
|
3009
|
+
writable: true,
|
|
3010
|
+
configurable: true
|
|
3011
|
+
});
|
|
3006
3012
|
function getMergedValue(target, source, prop, caseless) {
|
|
3007
3013
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
3008
3014
|
return utils$1.merge.call({ caseless }, target, source);
|
|
@@ -3066,6 +3072,7 @@ function mergeConfig$1(config1, config2) {
|
|
|
3066
3072
|
httpsAgent: defaultToConfig2,
|
|
3067
3073
|
cancelToken: defaultToConfig2,
|
|
3068
3074
|
socketPath: defaultToConfig2,
|
|
3075
|
+
allowedSocketPaths: defaultToConfig2,
|
|
3069
3076
|
responseEncoding: defaultToConfig2,
|
|
3070
3077
|
validateStatus: mergeDirectKeys,
|
|
3071
3078
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
@@ -3082,10 +3089,19 @@ function mergeConfig$1(config1, config2) {
|
|
|
3082
3089
|
}
|
|
3083
3090
|
const resolveConfig = (config) => {
|
|
3084
3091
|
const newConfig = mergeConfig$1({}, config);
|
|
3085
|
-
|
|
3092
|
+
const own2 = (key) => utils$1.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
3093
|
+
const data = own2("data");
|
|
3094
|
+
let withXSRFToken = own2("withXSRFToken");
|
|
3095
|
+
const xsrfHeaderName = own2("xsrfHeaderName");
|
|
3096
|
+
const xsrfCookieName = own2("xsrfCookieName");
|
|
3097
|
+
let headers = own2("headers");
|
|
3098
|
+
const auth = own2("auth");
|
|
3099
|
+
const baseURL = own2("baseURL");
|
|
3100
|
+
const allowAbsoluteUrls = own2("allowAbsoluteUrls");
|
|
3101
|
+
const url = own2("url");
|
|
3086
3102
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
3087
3103
|
newConfig.url = buildURL(
|
|
3088
|
-
buildFullPath(
|
|
3104
|
+
buildFullPath(baseURL, url, allowAbsoluteUrls),
|
|
3089
3105
|
config.params,
|
|
3090
3106
|
config.paramsSerializer
|
|
3091
3107
|
);
|
|
@@ -3709,7 +3725,7 @@ function dispatchRequest(config) {
|
|
|
3709
3725
|
}
|
|
3710
3726
|
);
|
|
3711
3727
|
}
|
|
3712
|
-
const VERSION$1 = "1.15.
|
|
3728
|
+
const VERSION$1 = "1.15.2";
|
|
3713
3729
|
const validators$1 = {};
|
|
3714
3730
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
3715
3731
|
validators$1[type] = function validator2(thing) {
|
|
@@ -3754,7 +3770,7 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
3754
3770
|
let i = keys.length;
|
|
3755
3771
|
while (i-- > 0) {
|
|
3756
3772
|
const opt = keys[i];
|
|
3757
|
-
const validator2 = schema[opt];
|
|
3773
|
+
const validator2 = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
|
|
3758
3774
|
if (validator2) {
|
|
3759
3775
|
const value = options[opt];
|
|
3760
3776
|
const result = value === void 0 || validator2(value, opt, options);
|
|
@@ -8982,7 +8998,7 @@ const _hoisted_12$1 = {
|
|
|
8982
8998
|
key: 0,
|
|
8983
8999
|
class: "text-sm text-gray-600"
|
|
8984
9000
|
};
|
|
8985
|
-
const _hoisted_13 = {
|
|
9001
|
+
const _hoisted_13$1 = {
|
|
8986
9002
|
key: 1,
|
|
8987
9003
|
class: "max-h-72 overflow-auto border border-gray-200 rounded-md"
|
|
8988
9004
|
};
|
|
@@ -9327,7 +9343,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
9327
9343
|
iconSize: "small"
|
|
9328
9344
|
}, {
|
|
9329
9345
|
default: vue.withCtx(() => [
|
|
9330
|
-
!sessionStorageEntries.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$1, "Inga värden i sessionStorage.")) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
|
|
9346
|
+
!sessionStorageEntries.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$1, "Inga värden i sessionStorage.")) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_13$1, [
|
|
9331
9347
|
vue.createElementVNode("table", _hoisted_14, [
|
|
9332
9348
|
_cache[15] || (_cache[15] = vue.createElementVNode("thead", { class: "bg-gray-50" }, [
|
|
9333
9349
|
vue.createElementVNode("tr", null, [
|
|
@@ -10624,7 +10640,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
10624
10640
|
name: {},
|
|
10625
10641
|
dataTestid: { default: void 0 },
|
|
10626
10642
|
inputClass: { default: void 0 },
|
|
10627
|
-
|
|
10643
|
+
disablePseudoStates: { type: Boolean, default: false },
|
|
10628
10644
|
onInput: {},
|
|
10629
10645
|
onChange: {},
|
|
10630
10646
|
onFocus: {},
|
|
@@ -10675,13 +10691,14 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
10675
10691
|
const wrapperClasses = vue.computed(() => ["block relative flex items-center mb-2 last:mb-0"]);
|
|
10676
10692
|
const innerWrapperClasses = vue.computed(() => [
|
|
10677
10693
|
"flex p-0.5 items-start rounded-md",
|
|
10678
|
-
"hover:bg-blue_t-100 active:bg-blue_t-200",
|
|
10679
|
-
|
|
10694
|
+
!props.disablePseudoStates && "hover:bg-blue_t-100 active:bg-blue_t-200",
|
|
10695
|
+
props.disablePseudoStates ? "[&:has(:focus)]:outline-none [&:has(:focus-visible)]:outline-none" : "[&:has(:focus-visible)]:outline-2 [&:has(:focus-visible)]:outline-dashed [&:has(:focus-visible)]:-outline-offset-2 [&:has(:focus-visible)]:outline-blue-500",
|
|
10680
10696
|
props.disabled && "hover:bg-transparent active:bg-transparent"
|
|
10681
10697
|
]);
|
|
10682
10698
|
const inputClasses = vue.computed(() => [
|
|
10683
10699
|
"rounded-md transition-colors duration-200 accent-blue-500 m-[3px]",
|
|
10684
|
-
"peer z-2 bg-white min-w-[18px] min-h-[18px]
|
|
10700
|
+
"peer z-2 bg-white min-w-[18px] min-h-[18px]",
|
|
10701
|
+
props.disablePseudoStates ? "focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0" : "focus-visible:outline-none",
|
|
10685
10702
|
props.disabled && "cursor-not-allowed",
|
|
10686
10703
|
props.inputClass
|
|
10687
10704
|
]);
|
|
@@ -10800,7 +10817,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
10800
10817
|
tabindex: {},
|
|
10801
10818
|
autofocus: { type: Boolean },
|
|
10802
10819
|
inputClass: { default: void 0 },
|
|
10803
|
-
|
|
10820
|
+
disablePseudoStates: { type: Boolean, default: false },
|
|
10804
10821
|
onInput: {},
|
|
10805
10822
|
onChange: {},
|
|
10806
10823
|
onFocus: {},
|
|
@@ -10876,12 +10893,13 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
10876
10893
|
const wrapperClasses = vue.computed(() => ["block relative flex items-center mb-2 last:mb-0"]);
|
|
10877
10894
|
const innerWrapperClasses = vue.computed(() => [
|
|
10878
10895
|
"flex p-0.5 items-start rounded-l-xl rounded-r-md",
|
|
10879
|
-
"hover:bg-blue_t-100 active:bg-blue_t-200",
|
|
10880
|
-
|
|
10896
|
+
!props.disablePseudoStates && "hover:bg-blue_t-100 active:bg-blue_t-200",
|
|
10897
|
+
props.disablePseudoStates ? "[&:has(:focus)]:outline-none [&:has(:focus-visible)]:outline-none" : "[&:has(:focus-visible)]:outline-2 [&:has(:focus-visible)]:outline-dashed [&:has(:focus-visible)]:-outline-offset-2 [&:has(:focus-visible)]:outline-blue-500",
|
|
10881
10898
|
props.disabled && "hover:bg-transparent active:bg-transparent"
|
|
10882
10899
|
]);
|
|
10883
10900
|
const inputClasses = vue.computed(() => [
|
|
10884
|
-
"peer z-2 bg-white min-w-[20px] min-h-[20px]
|
|
10901
|
+
"peer z-2 bg-white min-w-[20px] min-h-[20px] rounded-full accent-blue-500",
|
|
10902
|
+
props.disablePseudoStates ? "focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0" : "focus-visible:outline-none",
|
|
10885
10903
|
props.disabled && "cursor-not-allowed",
|
|
10886
10904
|
props.inputClass
|
|
10887
10905
|
]);
|
|
@@ -10919,6 +10937,7 @@ const useSearchSelectProItems = ({
|
|
|
10919
10937
|
props,
|
|
10920
10938
|
searchFields,
|
|
10921
10939
|
searchTerm,
|
|
10940
|
+
bypassSearchFilter,
|
|
10922
10941
|
showSelectedOnly,
|
|
10923
10942
|
selectedItems,
|
|
10924
10943
|
isMultiple,
|
|
@@ -11114,6 +11133,7 @@ const useSearchSelectProItems = ({
|
|
|
11114
11133
|
});
|
|
11115
11134
|
};
|
|
11116
11135
|
const matchesSearchTerm = (item) => {
|
|
11136
|
+
if (bypassSearchFilter.value) return true;
|
|
11117
11137
|
if (!searchTerm.value) return true;
|
|
11118
11138
|
const searchValue = isPid.value ? searchTerm.value.replace(/\D/g, "") : searchTerm.value;
|
|
11119
11139
|
const searchLower = searchValue.toLowerCase();
|
|
@@ -11129,6 +11149,7 @@ const useSearchSelectProItems = ({
|
|
|
11129
11149
|
});
|
|
11130
11150
|
};
|
|
11131
11151
|
const matchesDividerSearchTerm = (item) => {
|
|
11152
|
+
if (bypassSearchFilter.value) return false;
|
|
11132
11153
|
if (!isDividerItem(item) || !searchTerm.value) return false;
|
|
11133
11154
|
const searchValue = isPid.value ? searchTerm.value.replace(/\D/g, "") : searchTerm.value;
|
|
11134
11155
|
const searchLower = searchValue.toLowerCase();
|
|
@@ -11140,7 +11161,7 @@ const useSearchSelectProItems = ({
|
|
|
11140
11161
|
});
|
|
11141
11162
|
};
|
|
11142
11163
|
const filterWithDividerGroups = (sourceData) => {
|
|
11143
|
-
if (!searchTerm.value) return sourceData;
|
|
11164
|
+
if (bypassSearchFilter.value || !searchTerm.value) return sourceData;
|
|
11144
11165
|
const matched = [];
|
|
11145
11166
|
let currentDivider = null;
|
|
11146
11167
|
let currentChildren = [];
|
|
@@ -11196,7 +11217,10 @@ const useSearchSelectProItems = ({
|
|
|
11196
11217
|
} else {
|
|
11197
11218
|
displayedItems.value = effectiveLimit !== null ? matchedArray.slice(0, effectiveLimit) : matchedArray;
|
|
11198
11219
|
}
|
|
11199
|
-
|
|
11220
|
+
const totalMatchingCount = matchingItems.value.filter(
|
|
11221
|
+
(item) => props.dividerSelectable || !isDividerItem(item)
|
|
11222
|
+
).length;
|
|
11223
|
+
onTotal(totalMatchingCount);
|
|
11200
11224
|
};
|
|
11201
11225
|
const resetVisibleItemsLimit = () => {
|
|
11202
11226
|
visibleItemsLimit.value = props.maxItems && props.maxItems > 0 ? props.maxItems : null;
|
|
@@ -11248,18 +11272,19 @@ const _hoisted_4$6 = {
|
|
|
11248
11272
|
};
|
|
11249
11273
|
const _hoisted_5$6 = ["id", "role", "onMouseup"];
|
|
11250
11274
|
const _hoisted_6$4 = ["innerHTML"];
|
|
11251
|
-
const _hoisted_7$4 = ["
|
|
11275
|
+
const _hoisted_7$4 = ["onClick"];
|
|
11252
11276
|
const _hoisted_8$3 = ["innerHTML"];
|
|
11253
|
-
const _hoisted_9$1 =
|
|
11277
|
+
const _hoisted_9$1 = ["innerHTML"];
|
|
11278
|
+
const _hoisted_10 = {
|
|
11254
11279
|
key: 0,
|
|
11255
11280
|
class: "border-b border-blue_t-200 p-3"
|
|
11256
11281
|
};
|
|
11257
|
-
const
|
|
11258
|
-
const
|
|
11282
|
+
const _hoisted_11 = ["aria-disabled"];
|
|
11283
|
+
const _hoisted_12 = {
|
|
11259
11284
|
key: 2,
|
|
11260
11285
|
class: "block m-0 list-none p-0"
|
|
11261
11286
|
};
|
|
11262
|
-
const
|
|
11287
|
+
const _hoisted_13 = { class: "p-3" };
|
|
11263
11288
|
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
11264
11289
|
__name: "FdsSearchSelectPro",
|
|
11265
11290
|
props: {
|
|
@@ -11321,6 +11346,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
11321
11346
|
const emit = __emit;
|
|
11322
11347
|
const dropdownVisible = vue.ref(false);
|
|
11323
11348
|
const searchTerm = vue.ref("");
|
|
11349
|
+
const bypassSearchFilter = vue.ref(false);
|
|
11324
11350
|
const selectedItem = vue.ref(null);
|
|
11325
11351
|
const selectedItems = vue.ref([...props.initialSelectedItems ?? []]);
|
|
11326
11352
|
const showSelectedOnly = vue.ref(false);
|
|
@@ -11351,6 +11377,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
11351
11377
|
props,
|
|
11352
11378
|
searchFields,
|
|
11353
11379
|
searchTerm,
|
|
11380
|
+
bypassSearchFilter,
|
|
11354
11381
|
showSelectedOnly,
|
|
11355
11382
|
selectedItems,
|
|
11356
11383
|
isMultiple,
|
|
@@ -11458,6 +11485,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
11458
11485
|
return { maxHeight: `${maxHeight}px` };
|
|
11459
11486
|
});
|
|
11460
11487
|
const handleClear = () => {
|
|
11488
|
+
bypassSearchFilter.value = false;
|
|
11461
11489
|
searchTerm.value = "";
|
|
11462
11490
|
selectedItem.value = null;
|
|
11463
11491
|
selectedItems.value = [];
|
|
@@ -11548,6 +11576,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
11548
11576
|
const handleInput = (e) => {
|
|
11549
11577
|
const target = e.target;
|
|
11550
11578
|
const { value } = target;
|
|
11579
|
+
bypassSearchFilter.value = false;
|
|
11551
11580
|
searchTerm.value = value;
|
|
11552
11581
|
dropdownVisible.value = true;
|
|
11553
11582
|
if (!isMultiple.value) {
|
|
@@ -11696,7 +11725,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
11696
11725
|
selectItem(item);
|
|
11697
11726
|
dropdownVisible.value = false;
|
|
11698
11727
|
setTimeout(() => {
|
|
11699
|
-
|
|
11728
|
+
handleBlurInput();
|
|
11700
11729
|
}, 100);
|
|
11701
11730
|
};
|
|
11702
11731
|
const handleClick = (e, item) => {
|
|
@@ -11742,12 +11771,17 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
11742
11771
|
};
|
|
11743
11772
|
const handleInputFocus = () => {
|
|
11744
11773
|
inputHasFocus.value = true;
|
|
11745
|
-
if (
|
|
11774
|
+
if (!isMultiple.value && !!selectedItem.value) {
|
|
11775
|
+
bypassSearchFilter.value = true;
|
|
11776
|
+
filterAndPaginate();
|
|
11777
|
+
}
|
|
11778
|
+
if (displayedItems.value.length > 0) {
|
|
11746
11779
|
dropdownVisible.value = true;
|
|
11747
11780
|
}
|
|
11748
11781
|
};
|
|
11749
11782
|
const handleInputBlur = () => {
|
|
11750
11783
|
inputHasFocus.value = false;
|
|
11784
|
+
bypassSearchFilter.value = false;
|
|
11751
11785
|
};
|
|
11752
11786
|
const handleListKeyDown = (e) => {
|
|
11753
11787
|
const target = e.target;
|
|
@@ -11943,7 +11977,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
11943
11977
|
key: 0,
|
|
11944
11978
|
label: `${__props.selectedToggleLabel} (${selectedItems.value.length})`,
|
|
11945
11979
|
checked: showSelectedOnly.value,
|
|
11946
|
-
|
|
11980
|
+
disablePseudoStates: true,
|
|
11947
11981
|
onChange: handleToggleSelectedOnly
|
|
11948
11982
|
}, null, 8, ["label", "checked"])) : vue.createCommentVNode("", true)
|
|
11949
11983
|
], 2),
|
|
@@ -11971,6 +12005,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
11971
12005
|
innerHTML: handleMatchingString(item)
|
|
11972
12006
|
}, null, 14, _hoisted_6$4)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
11973
12007
|
key: 1,
|
|
12008
|
+
onClick: () => handleMultipleSelectionChange(item),
|
|
11974
12009
|
class: vue.normalizeClass([labelClasses.value, listItemClasses.value]),
|
|
11975
12010
|
style: vue.normalizeStyle(vue.unref(optionPaddingStyle)(item))
|
|
11976
12011
|
}, [
|
|
@@ -11980,7 +12015,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
11980
12015
|
name: `search-select-checkbox-group-${inputId}`,
|
|
11981
12016
|
checked: vue.unref(isItemSelected)(item),
|
|
11982
12017
|
tabindex: -1,
|
|
11983
|
-
|
|
12018
|
+
disablePseudoStates: true,
|
|
11984
12019
|
class: "mb-0!",
|
|
11985
12020
|
onChange: () => handleMultipleSelectionChange(item)
|
|
11986
12021
|
}, {
|
|
@@ -11988,7 +12023,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
11988
12023
|
vue.createElementVNode("span", {
|
|
11989
12024
|
class: "min-w-0 flex-1",
|
|
11990
12025
|
innerHTML: handleMatchingString(item)
|
|
11991
|
-
}, null, 8,
|
|
12026
|
+
}, null, 8, _hoisted_8$3)
|
|
11992
12027
|
]),
|
|
11993
12028
|
_: 2
|
|
11994
12029
|
}, 1032, ["id", "name", "checked", "onChange"])) : (vue.openBlock(), vue.createBlock(_sfc_main$i, {
|
|
@@ -11998,7 +12033,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
11998
12033
|
value: index,
|
|
11999
12034
|
checked: !!selectedItem.value && vue.unref(getItemIdentifier)(selectedItem.value) === vue.unref(getItemIdentifier)(item),
|
|
12000
12035
|
tabindex: -1,
|
|
12001
|
-
|
|
12036
|
+
disablePseudoStates: true,
|
|
12002
12037
|
class: "mb-0!",
|
|
12003
12038
|
onChange: () => handleSingleSelection(item),
|
|
12004
12039
|
onKeydown: vue.withKeys((e) => handleClick(e, item), ["enter"])
|
|
@@ -12007,14 +12042,14 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
12007
12042
|
vue.createElementVNode("span", {
|
|
12008
12043
|
class: "min-w-0 flex-1",
|
|
12009
12044
|
innerHTML: handleMatchingString(item)
|
|
12010
|
-
}, null, 8,
|
|
12045
|
+
}, null, 8, _hoisted_9$1)
|
|
12011
12046
|
]),
|
|
12012
12047
|
_: 2
|
|
12013
12048
|
}, 1032, ["id", "value", "checked", "onChange", "onKeydown"]))
|
|
12014
|
-
],
|
|
12049
|
+
], 14, _hoisted_7$4))
|
|
12015
12050
|
], 42, _hoisted_5$6);
|
|
12016
12051
|
}), 128)),
|
|
12017
|
-
vue.unref(shouldShowLoadMore) ? (vue.openBlock(), vue.createElementBlock("li",
|
|
12052
|
+
vue.unref(shouldShowLoadMore) ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_10, [
|
|
12018
12053
|
vue.createElementVNode("div", {
|
|
12019
12054
|
class: vue.normalizeClass(["flex items-center gap-2 text-blue-600", { "cursor-pointer": !__props.loadingMore, "cursor-not-allowed opacity-70": __props.loadingMore }]),
|
|
12020
12055
|
role: "button",
|
|
@@ -12034,11 +12069,11 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
12034
12069
|
class: "w-6 h-6 pointer-events-none"
|
|
12035
12070
|
}, null, 8, ["loading", "aria-label"]),
|
|
12036
12071
|
vue.createElementVNode("span", null, vue.toDisplayString(__props.loadingMore ? resolvedLoadingMoreLabel.value : resolvedLoadMoreLabel.value), 1)
|
|
12037
|
-
], 42,
|
|
12072
|
+
], 42, _hoisted_11)
|
|
12038
12073
|
])) : vue.createCommentVNode("", true)
|
|
12039
12074
|
], 32)
|
|
12040
|
-
], 64)) : !__props.loading ? (vue.openBlock(), vue.createElementBlock("ul",
|
|
12041
|
-
vue.createElementVNode("li",
|
|
12075
|
+
], 64)) : !__props.loading ? (vue.openBlock(), vue.createElementBlock("ul", _hoisted_12, [
|
|
12076
|
+
vue.createElementVNode("li", _hoisted_13, vue.toDisplayString(__props.noResultPrompt), 1)
|
|
12042
12077
|
])) : vue.createCommentVNode("", true)
|
|
12043
12078
|
], 38)) : vue.createCommentVNode("", true)
|
|
12044
12079
|
])
|