@jblehm/super-list 1.0.44 → 1.0.46
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 +1 -1
- package/dist/index.css +1 -1
- package/dist/super-list.js +135 -129
- package/dist/super-list.js.map +1 -1
- package/dist/super-list.umd.cjs +2 -2
- package/dist/super-list.umd.cjs.map +1 -1
- package/dist/super-list.vue.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.list-filter-text-input[data-v-edeb41fa]{color:var(--superlist-text-colour, rgb(17, 24, 39));text-align:center;padding:.125rem 2rem .125rem .5rem;width:100%;height:100%;margin:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background-color:transparent;border:0 none;pointer-events:auto;cursor:text}.list-filter-text-input[data-v-edeb41fa]:focus,.list-filter-text-input[data-v-edeb41fa]:focus-visible,.list-filter-text-input[data-v-edeb41fa]:active{text-align:left}.click-through[data-v-edeb41fa]{pointer-events:none}.dark-placeholder-text[data-v-edeb41fa]::placeholder{color:var(--superlist-text-colour, rgb(17, 24, 39))}.light-placeholder-text[data-v-edeb41fa]::placeholder{color:var(--superlist-disabled-text-colour, rgb(120, 125, 130))}.text-filter-disabled[data-v-edeb41fa]{background-color:transparent;border:none;outline:none;box-shadow:none;filter:none}@media (min-width: 640px){.list-filter-text-input[data-v-edeb41fa]{font-size:.875rem;line-height:1.5rem}}.list-option[data-v-e4eeb2f7]{text-transform:capitalize;display:inline-flex;width:100%;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:transparent;color:var(--superlist-text-colour, rgb(55, 60, 65));transition-property:font-weight,background-color,color,text-shadow;transition-duration:.5s;transition-timing-function:ease;font-weight:400;text-shadow:1px 1px 3px var(--superlist-background-colour, white)}.list-option[data-v-e4eeb2f7]:focus-visible,.list-option>span[data-v-e4eeb2f7]:focus-visible{outline:none}.list-option-selected[data-v-e4eeb2f7]{font-weight:600}.list-option-message[data-v-e4eeb2f7]{text-shadow:1px 1px 3px var(--superlist-background-colour, white);text-transform:capitalize;display:inline-flex;width:100%;position:relative;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:transparent;color:var(--superlist-disabled-text-colour, rgb(120, 125, 130))}.list-option-active[data-v-e4eeb2f7]:hover,.list-option-active[data-v-e4eeb2f7],.list-option-selected[data-v-e4eeb2f7]:hover,.list-option[data-v-e4eeb2f7]:hover{font-weight:600;background-color:var(--superlist-theme-colour, rgb(77, 168, 11, .8));color:var(--superlist-background-colour, white);text-shadow:1px 1px 3px var(--superlist-theme-colour, rgb(77, 168, 11, .8));transition-duration:0s!important}.list-item-icon[data-v-e4eeb2f7]{display:flex;height:1rem;width:1rem;position:absolute;right:.7rem;margin-top:-.1rem;align-self:center}.list-item-span[data-v-e4eeb2f7]{padding:.5rem 1.75rem .5rem .75rem;width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-normal[data-v-bb412ce9]{top:var(--parent-y)}.list-reverse[data-v-bb412ce9]{bottom:var(--parent-y)}.select-list[data-v-bb412ce9]{--parent-width: var(--v15890c8c);--parent-x: var(--v4338b9be);--parent-y: var(--v4338bd7f);--duration: var(--v6e74f140);--border-radius: var(--superlist-list-border-radius, 0);border-radius:var(--border-radius);width:var(--parent-width);min-width:var(--parent-width);left:var(--parent-x);display:block;transition-property:max-height,opacity,visibility,box-shadow;transition-duration:var(--duration, .3s);transition-timing-function:cubic-bezier(.1,.9,.35,.98);position:absolute;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);background-color:#ffffffb3;align-items:baseline;opacity:.25;z-index:999;visibility:collapse;overflow:auto;max-height:0;border:none!important}.select-list[data-v-bb412ce9]:focus-visible,.select-list>ul[data-v-bb412ce9]:focus-visible,.super-list-button-container[data-v-bb412ce9]:focus-visible{outline:none}.super-list-button-container[data-v-bb412ce9]{height:100%;width:100%}.select-list.select-list-open[data-v-bb412ce9]{z-index:999999;--max-height: var(--v4db56ff9);max-height:var(--max-height, 0)}.select-list.no-scroll[data-v-bb412ce9]{overflow:hidden}.select-list-fixed[data-v-bb412ce9]{position:fixed;opacity:1;visibility:visible}.list-content[data-v-bb412ce9]{--duration: var(--v6e74f140);overflow:visible;margin:0;padding:0;border-style:none;color:var(--superlist-text-colour, rgb(55, 60, 65));list-style:none;max-width:100%}.select-list.select-list-scrollable[data-v-bb412ce9]{border-radius:var(--border-radius)}.select-list[data-v-bb412ce9]:not(.select-list-fixed){transition:none;box-shadow:none!important}@media (min-width: 640px){.select-list.select-list-scrollable[data-v-bb412ce9]{border-radius:var(--border-radius) 0 0 var(--border-radius)}.list-content[data-v-bb412ce9]{font-size:.875rem;line-height:1.25rem}}.list-button-icon[data-v-01ef8e37]{display:flex;transition-timing-function:ease-in-out;transition-duration:.2s;transition-property:transform;width:.6rem;transform:rotate(0);color:var(--superlist-text-colour, rgb(17, 24, 39));justify-content:center;max-height:18%}.list-button-icon.custom-icon[data-v-01ef8e37]{max-height:100%;width:1.25rem}.list-button-icon.rotate-180[data-v-01ef8e37]{transform:rotate(180deg)}.list-button[data-v-01ef8e37]{position:relative;padding:0;margin:0;width:100%;max-height:100%;height:100%;background-color:var(--superlist-background-colour, white);align-items:center;pointer-events:auto;cursor:pointer}.list-button[data-v-01ef8e37]:focus,.list-button[data-v-01ef8e37]:focus-visible,.list-button[data-v-01ef8e37]:active{text-align:left}.list-button-icon-div[data-v-01ef8e37]{pointer-events:none;position:absolute;top:0;bottom:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-right:.75rem;max-height:100%;height:100%;gap:max(.15rem,calc(6.25% + .075rem));transition:gap .2s}.list-button-icon-div.bigger-gap[data-v-01ef8e37]{gap:calc(40% - .25rem)}.click-through[data-v-01ef8e37]{pointer-events:none}[data-v-
|
|
1
|
+
.list-filter-text-input[data-v-edeb41fa]{color:var(--superlist-text-colour, rgb(17, 24, 39));text-align:center;padding:.125rem 2rem .125rem .5rem;width:100%;height:100%;margin:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background-color:transparent;border:0 none;pointer-events:auto;cursor:text}.list-filter-text-input[data-v-edeb41fa]:focus,.list-filter-text-input[data-v-edeb41fa]:focus-visible,.list-filter-text-input[data-v-edeb41fa]:active{text-align:left}.click-through[data-v-edeb41fa]{pointer-events:none}.dark-placeholder-text[data-v-edeb41fa]::placeholder{color:var(--superlist-text-colour, rgb(17, 24, 39))}.light-placeholder-text[data-v-edeb41fa]::placeholder{color:var(--superlist-disabled-text-colour, rgb(120, 125, 130))}.text-filter-disabled[data-v-edeb41fa]{background-color:transparent;border:none;outline:none;box-shadow:none;filter:none}@media (min-width: 640px){.list-filter-text-input[data-v-edeb41fa]{font-size:.875rem;line-height:1.5rem}}.list-option[data-v-e4eeb2f7]{text-transform:capitalize;display:inline-flex;width:100%;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:transparent;color:var(--superlist-text-colour, rgb(55, 60, 65));transition-property:font-weight,background-color,color,text-shadow;transition-duration:.5s;transition-timing-function:ease;font-weight:400;text-shadow:1px 1px 3px var(--superlist-background-colour, white)}.list-option[data-v-e4eeb2f7]:focus-visible,.list-option>span[data-v-e4eeb2f7]:focus-visible{outline:none}.list-option-selected[data-v-e4eeb2f7]{font-weight:600}.list-option-message[data-v-e4eeb2f7]{text-shadow:1px 1px 3px var(--superlist-background-colour, white);text-transform:capitalize;display:inline-flex;width:100%;position:relative;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:transparent;color:var(--superlist-disabled-text-colour, rgb(120, 125, 130))}.list-option-active[data-v-e4eeb2f7]:hover,.list-option-active[data-v-e4eeb2f7],.list-option-selected[data-v-e4eeb2f7]:hover,.list-option[data-v-e4eeb2f7]:hover{font-weight:600;background-color:var(--superlist-theme-colour, rgb(77, 168, 11, .8));color:var(--superlist-background-colour, white);text-shadow:1px 1px 3px var(--superlist-theme-colour, rgb(77, 168, 11, .8));transition-duration:0s!important}.list-item-icon[data-v-e4eeb2f7]{display:flex;height:1rem;width:1rem;position:absolute;right:.7rem;margin-top:-.1rem;align-self:center}.list-item-span[data-v-e4eeb2f7]{padding:.5rem 1.75rem .5rem .75rem;width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-normal[data-v-bb412ce9]{top:var(--parent-y)}.list-reverse[data-v-bb412ce9]{bottom:var(--parent-y)}.select-list[data-v-bb412ce9]{--parent-width: var(--v15890c8c);--parent-x: var(--v4338b9be);--parent-y: var(--v4338bd7f);--duration: var(--v6e74f140);--border-radius: var(--superlist-list-border-radius, 0);border-radius:var(--border-radius);width:var(--parent-width);min-width:var(--parent-width);left:var(--parent-x);display:block;transition-property:max-height,opacity,visibility,box-shadow;transition-duration:var(--duration, .3s);transition-timing-function:cubic-bezier(.1,.9,.35,.98);position:absolute;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);background-color:#ffffffb3;align-items:baseline;opacity:.25;z-index:999;visibility:collapse;overflow:auto;max-height:0;border:none!important}.select-list[data-v-bb412ce9]:focus-visible,.select-list>ul[data-v-bb412ce9]:focus-visible,.super-list-button-container[data-v-bb412ce9]:focus-visible{outline:none}.super-list-button-container[data-v-bb412ce9]{height:100%;width:100%}.select-list.select-list-open[data-v-bb412ce9]{z-index:999999;--max-height: var(--v4db56ff9);max-height:var(--max-height, 0)}.select-list.no-scroll[data-v-bb412ce9]{overflow:hidden}.select-list-fixed[data-v-bb412ce9]{position:fixed;opacity:1;visibility:visible}.list-content[data-v-bb412ce9]{--duration: var(--v6e74f140);overflow:visible;margin:0;padding:0;border-style:none;color:var(--superlist-text-colour, rgb(55, 60, 65));list-style:none;max-width:100%}.select-list.select-list-scrollable[data-v-bb412ce9]{border-radius:var(--border-radius)}.select-list[data-v-bb412ce9]:not(.select-list-fixed){transition:none;box-shadow:none!important}@media (min-width: 640px){.select-list.select-list-scrollable[data-v-bb412ce9]{border-radius:var(--border-radius) 0 0 var(--border-radius)}.list-content[data-v-bb412ce9]{font-size:.875rem;line-height:1.25rem}}.list-button-icon[data-v-01ef8e37]{display:flex;transition-timing-function:ease-in-out;transition-duration:.2s;transition-property:transform;width:.6rem;transform:rotate(0);color:var(--superlist-text-colour, rgb(17, 24, 39));justify-content:center;max-height:18%}.list-button-icon.custom-icon[data-v-01ef8e37]{max-height:100%;width:1.25rem}.list-button-icon.rotate-180[data-v-01ef8e37]{transform:rotate(180deg)}.list-button[data-v-01ef8e37]{position:relative;padding:0;margin:0;width:100%;max-height:100%;height:100%;background-color:var(--superlist-background-colour, white);align-items:center;pointer-events:auto;cursor:pointer}.list-button[data-v-01ef8e37]:focus,.list-button[data-v-01ef8e37]:focus-visible,.list-button[data-v-01ef8e37]:active{text-align:left}.list-button-icon-div[data-v-01ef8e37]{pointer-events:none;position:absolute;top:0;bottom:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-right:.75rem;max-height:100%;height:100%;gap:max(.15rem,calc(6.25% + .075rem));transition:gap .2s}.list-button-icon-div.bigger-gap[data-v-01ef8e37]{gap:calc(40% - .25rem)}.click-through[data-v-01ef8e37]{pointer-events:none}[data-v-e02552d0]{box-sizing:border-box}
|
package/dist/super-list.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as Y, ref as v, computed as M, openBlock as T, createElementBlock as C, withModifiers as Q, createElementVNode as B, normalizeClass as R, withKeys as h, useTemplateRef as
|
|
2
|
-
class
|
|
1
|
+
import { defineComponent as Y, ref as v, computed as M, openBlock as T, createElementBlock as C, withModifiers as Q, createElementVNode as B, normalizeClass as R, withKeys as h, useTemplateRef as Fe, watch as F, Fragment as fe, renderList as Be, toDisplayString as be, createBlock as pe, createCommentVNode as K, useCssVars as He, onMounted as xe, onUnmounted as Re, renderSlot as Ie, createVNode as Z, nextTick as Pe, resolveDynamicComponent as qe, withCtx as he } from "vue";
|
|
2
|
+
class je {
|
|
3
3
|
eventsTypes = ["resize", "load", "scroll", "wheel", "touchmove"];
|
|
4
4
|
config = {
|
|
5
5
|
attributes: !0,
|
|
@@ -46,13 +46,13 @@ class Pe {
|
|
|
46
46
|
window.removeEventListener("resize", this.callbackFunction);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return i != null ? i(e) : e == null ? "" : typeof e == "object" ? e[d] : b ?
|
|
49
|
+
function $e(e, i, d, b) {
|
|
50
|
+
return i != null ? i(e) : e == null ? "" : typeof e == "object" ? e[d] : b ? Ke(e, b) : "" + e;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Ke(e, i) {
|
|
53
53
|
return i.find((d) => d.type === e)?.label ?? "";
|
|
54
54
|
}
|
|
55
|
-
class
|
|
55
|
+
class Ve {
|
|
56
56
|
constructor() {
|
|
57
57
|
this.abortController = new AbortController(), this.func = () => {
|
|
58
58
|
}, this.then = () => {
|
|
@@ -79,7 +79,7 @@ class $e {
|
|
|
79
79
|
return this.abort("New Request From Controller."), this.setFunc(i), this.setThen(d), this.execute();
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const ze = ["tabindex", "placeholder", "size"], Xe = /* @__PURE__ */ Y({
|
|
83
83
|
__name: "ListTextInput",
|
|
84
84
|
props: {
|
|
85
85
|
enableTextFilter: {
|
|
@@ -165,7 +165,7 @@ const Ke = ["tabindex", "placeholder", "size"], Ve = /* @__PURE__ */ Y({
|
|
|
165
165
|
A.value,
|
|
166
166
|
{ "text-filter-disabled": !e.enableTextFilter }
|
|
167
167
|
], "list-filter-text-input"])
|
|
168
|
-
}, null, 42,
|
|
168
|
+
}, null, 42, ze)
|
|
169
169
|
], 32));
|
|
170
170
|
}
|
|
171
171
|
}), V = (e, i) => {
|
|
@@ -173,22 +173,22 @@ const Ke = ["tabindex", "placeholder", "size"], Ve = /* @__PURE__ */ Y({
|
|
|
173
173
|
for (const [b, o] of i)
|
|
174
174
|
d[b] = o;
|
|
175
175
|
return d;
|
|
176
|
-
},
|
|
176
|
+
}, ge = /* @__PURE__ */ V(Xe, [["__scopeId", "data-v-edeb41fa"]]), Ue = {}, Je = {
|
|
177
177
|
xmlns: "http://www.w3.org/2000/svg",
|
|
178
178
|
fill: "currentColor",
|
|
179
179
|
"aria-hidden": "true",
|
|
180
180
|
"data-slot": "icon",
|
|
181
181
|
viewBox: "0 -16 16 17"
|
|
182
182
|
};
|
|
183
|
-
function
|
|
184
|
-
return T(), C("svg",
|
|
183
|
+
function We(e, i) {
|
|
184
|
+
return T(), C("svg", Je, [...i[0] || (i[0] = [
|
|
185
185
|
B("path", {
|
|
186
186
|
"shape-rendering": "geometricPrecision",
|
|
187
187
|
d: "M 6 -2.25 L 13.75 -14 A 0.5 0.5 90 0 1 15 -13 L 6.5 -0.5 A 2 1 90 0 1 5.5 -0.5 L 1 -6 A 0.5 0.5 90 0 1 2.25 -7 Z"
|
|
188
188
|
}, null, -1)
|
|
189
189
|
])]);
|
|
190
190
|
}
|
|
191
|
-
const
|
|
191
|
+
const Qe = /* @__PURE__ */ V(Ue, [["render", We]]), Ze = ["onMousedown"], Ye = { class: "list-item-span" }, Ge = { class: "list-item-span" }, _e = /* @__PURE__ */ Y({
|
|
192
192
|
__name: "ListItem",
|
|
193
193
|
props: {
|
|
194
194
|
mouseHoveringOnList: {
|
|
@@ -225,7 +225,7 @@ const Je = /* @__PURE__ */ V(ze, [["render", Ue]]), We = ["onMousedown"], Qe = {
|
|
|
225
225
|
}
|
|
226
226
|
},
|
|
227
227
|
setup(e) {
|
|
228
|
-
const i = e, d =
|
|
228
|
+
const i = e, d = Fe("items"), b = M(() => {
|
|
229
229
|
if (!d?.value) return null;
|
|
230
230
|
const t = (Array.isArray(d.value) ? d.value : [d.value])[i.focusedIndex];
|
|
231
231
|
return t && typeof t == "object" && "scrollIntoView" in t && typeof t.scrollIntoView == "function" ? t : null;
|
|
@@ -250,7 +250,7 @@ const Je = /* @__PURE__ */ V(ze, [["render", Ue]]), We = ["onMousedown"], Qe = {
|
|
|
250
250
|
s && (t.scrollTop = L.offsetTop), c && (t.scrollTop = L.offsetTop + L.clientHeight - t.clientHeight);
|
|
251
251
|
}
|
|
252
252
|
return (L, t) => (T(), C(fe, null, [
|
|
253
|
-
(T(!0), C(fe, null,
|
|
253
|
+
(T(!0), C(fe, null, Be(e.filteredListItems, (s, c) => (T(), C("li", {
|
|
254
254
|
key: c,
|
|
255
255
|
ref_for: !0,
|
|
256
256
|
ref: "items",
|
|
@@ -274,13 +274,13 @@ const Je = /* @__PURE__ */ V(ze, [["render", Ue]]), We = ["onMousedown"], Qe = {
|
|
|
274
274
|
"list-option"
|
|
275
275
|
])
|
|
276
276
|
}, [
|
|
277
|
-
B("span",
|
|
278
|
-
e.selectedIndex === c ? (T(), pe(
|
|
277
|
+
B("span", Ye, be(e.parentMethods.getLabel(s)), 1),
|
|
278
|
+
e.selectedIndex === c ? (T(), pe(Qe, {
|
|
279
279
|
key: 0,
|
|
280
280
|
class: "list-item-icon",
|
|
281
281
|
"aria-hidden": "true"
|
|
282
282
|
})) : K("", !0)
|
|
283
|
-
], 42,
|
|
283
|
+
], 42, Ze))), 128)),
|
|
284
284
|
e.filteredListItems.length === 0 ? (T(), C("li", {
|
|
285
285
|
key: 0,
|
|
286
286
|
onKeyup: [
|
|
@@ -315,11 +315,11 @@ const Je = /* @__PURE__ */ V(ze, [["render", Ue]]), We = ["onMousedown"], Qe = {
|
|
|
315
315
|
tabindex: "-1",
|
|
316
316
|
class: "list-option-message"
|
|
317
317
|
}, [
|
|
318
|
-
B("span",
|
|
318
|
+
B("span", Ge, " +" + be(e.totalOptionsCount - e.filteredListItems?.length || 0) + " More Items...", 1)
|
|
319
319
|
], 32)) : K("", !0)
|
|
320
320
|
], 64));
|
|
321
321
|
}
|
|
322
|
-
}),
|
|
322
|
+
}), et = /* @__PURE__ */ V(_e, [["__scopeId", "data-v-e4eeb2f7"]]), tt = /* @__PURE__ */ Y({
|
|
323
323
|
__name: "ItemList",
|
|
324
324
|
props: {
|
|
325
325
|
mouseHoveringOnList: {
|
|
@@ -369,7 +369,7 @@ const Je = /* @__PURE__ */ V(ze, [["render", Ue]]), We = ["onMousedown"], Qe = {
|
|
|
369
369
|
},
|
|
370
370
|
emits: ["reverseDropDownList"],
|
|
371
371
|
setup(e, { expose: i, emit: d }) {
|
|
372
|
-
|
|
372
|
+
He((l) => ({
|
|
373
373
|
v15890c8c: A.value,
|
|
374
374
|
v4338b9be: S.value,
|
|
375
375
|
v4338bd7f: se.value,
|
|
@@ -379,17 +379,17 @@ const Je = /* @__PURE__ */ V(ze, [["render", Ue]]), We = ["onMousedown"], Qe = {
|
|
|
379
379
|
const b = d, o = e, p = v(null), L = v(null), t = v(null), s = v(0), c = v(0), u = v(0), w = v(0), A = v("0px"), I = v(!1), N = v([]), g = v(0), a = M(() => !I.value || window?.innerHeight == null ? !1 : le() && G()), m = M(() => o.maxListHeightPX >= g.value);
|
|
380
380
|
F(
|
|
381
381
|
() => a.value,
|
|
382
|
-
(
|
|
382
|
+
(l) => b("reverseDropDownList", l),
|
|
383
383
|
{ immediate: !0 }
|
|
384
384
|
);
|
|
385
385
|
const S = M(() => s.value + "px"), se = M(() => w.value + "px");
|
|
386
386
|
i({ listContainerRef: t });
|
|
387
|
-
const P = (
|
|
388
|
-
|
|
389
|
-
}, ie = (
|
|
390
|
-
o.parentMethods.unfocus(
|
|
391
|
-
},
|
|
392
|
-
const y = t?.value, x =
|
|
387
|
+
const P = (l) => {
|
|
388
|
+
l?.key && l.key === " " && l.preventDefault();
|
|
389
|
+
}, ie = (l) => {
|
|
390
|
+
o.parentMethods.unfocus(l);
|
|
391
|
+
}, J = (l) => {
|
|
392
|
+
const y = t?.value, x = l.target;
|
|
393
393
|
(!(y && x && y.contains(x)) || y.isEqualNode(x)) && o.parentMethods.focusInput();
|
|
394
394
|
};
|
|
395
395
|
function k() {
|
|
@@ -397,8 +397,8 @@ const Je = /* @__PURE__ */ V(ze, [["render", Ue]]), We = ["onMousedown"], Qe = {
|
|
|
397
397
|
}
|
|
398
398
|
function z() {
|
|
399
399
|
if (!I.value || k() === 0) return o.maxListHeightPX;
|
|
400
|
-
const
|
|
401
|
-
return o.maxListHeightPX && o.maxListHeightPX >
|
|
400
|
+
const l = k() === 0 ? o.maxListHeightPX : +k();
|
|
401
|
+
return o.maxListHeightPX && o.maxListHeightPX > l ? l : o.maxListHeightPX;
|
|
402
402
|
}
|
|
403
403
|
function le() {
|
|
404
404
|
return c.value > z();
|
|
@@ -409,8 +409,8 @@ const Je = /* @__PURE__ */ V(ze, [["render", Ue]]), We = ["onMousedown"], Qe = {
|
|
|
409
409
|
const q = M(() => (o.maxListHeightPX || 0) + "px"), _ = M(() => (o.listAnimationDurationMs || 0) + "ms"), E = M(() => o.blockListChange ? N.value : o.filteredListItems);
|
|
410
410
|
F(
|
|
411
411
|
() => E,
|
|
412
|
-
(
|
|
413
|
-
|
|
412
|
+
(l) => {
|
|
413
|
+
l && (N.value = l.value);
|
|
414
414
|
},
|
|
415
415
|
{ immediate: !1, deep: !0 }
|
|
416
416
|
);
|
|
@@ -426,35 +426,35 @@ const Je = /* @__PURE__ */ V(ze, [["render", Ue]]), We = ["onMousedown"], Qe = {
|
|
|
426
426
|
}
|
|
427
427
|
F(
|
|
428
428
|
() => o.showDropDown,
|
|
429
|
-
(
|
|
430
|
-
|
|
429
|
+
(l, y) => {
|
|
430
|
+
l !== y && ($(), l ? re() : ee());
|
|
431
431
|
},
|
|
432
432
|
{ immediate: !0 }
|
|
433
433
|
);
|
|
434
|
-
function X(
|
|
435
|
-
$(),
|
|
434
|
+
function X(l) {
|
|
435
|
+
$(), Pe(() => $()), te(l);
|
|
436
436
|
}
|
|
437
|
-
function te(
|
|
438
|
-
if (!o.enableScrollClose || !o.showDropDown || typeof t?.value?.contains != "function" ||
|
|
439
|
-
const x = ["scroll", "wheel", "touchmove"].includes(
|
|
437
|
+
function te(l) {
|
|
438
|
+
if (!o.enableScrollClose || !o.showDropDown || typeof t?.value?.contains != "function" || l?.target?.nodeType == null || ue(l)) return;
|
|
439
|
+
const x = ["scroll", "wheel", "touchmove"].includes(l?.type);
|
|
440
440
|
o.showDropDown && x && o.parentMethods.closeList();
|
|
441
441
|
}
|
|
442
|
-
function ue(
|
|
443
|
-
const y = !!p.value?.contains(
|
|
444
|
-
return y || x ||
|
|
442
|
+
function ue(l) {
|
|
443
|
+
const y = !!p.value?.contains(l?.target), x = !!t.value?.contains(l.target), U = [l?.srcElement?.id, l?.target?.id].includes("super-list-select-list");
|
|
444
|
+
return y || x || U;
|
|
445
445
|
}
|
|
446
446
|
function $() {
|
|
447
|
-
|
|
447
|
+
W(), ae();
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function W() {
|
|
450
450
|
if (p?.value == null) return;
|
|
451
|
-
const
|
|
452
|
-
c.value =
|
|
451
|
+
const l = p.value.getBoundingClientRect();
|
|
452
|
+
c.value = l.top, u.value = window.innerHeight - l.bottom, A.value = l.width + "px";
|
|
453
453
|
}
|
|
454
454
|
function ae() {
|
|
455
455
|
if (p?.value == null || t?.value == null) return;
|
|
456
|
-
const
|
|
457
|
-
a.value ? w.value = x - (
|
|
456
|
+
const l = oe().getBoundingClientRect(), y = t.value.getBoundingClientRect(), x = w.value, U = s.value;
|
|
457
|
+
a.value ? w.value = x - (l.top - y.bottom) : w.value = x - (y.top - l.bottom), s.value = U - (y.left - l.left);
|
|
458
458
|
}
|
|
459
459
|
function ne() {
|
|
460
460
|
return (p?.value).getElementsByTagName("button")[0];
|
|
@@ -462,17 +462,17 @@ const Je = /* @__PURE__ */ V(ze, [["render", Ue]]), We = ["onMousedown"], Qe = {
|
|
|
462
462
|
function oe() {
|
|
463
463
|
return p?.value;
|
|
464
464
|
}
|
|
465
|
-
return
|
|
466
|
-
O = new
|
|
467
|
-
}),
|
|
465
|
+
return xe(() => {
|
|
466
|
+
O = new je(X, ne()), setTimeout(() => X(void 0), 250);
|
|
467
|
+
}), Re(() => {
|
|
468
468
|
O?.unobserve();
|
|
469
|
-
}), (
|
|
469
|
+
}), (l, y) => (T(), C(fe, null, [
|
|
470
470
|
B("div", {
|
|
471
471
|
ref_key: "dropDownButtonContainer",
|
|
472
472
|
ref: p,
|
|
473
473
|
class: "super-list-button-container"
|
|
474
474
|
}, [
|
|
475
|
-
|
|
475
|
+
Ie(l.$slots, "default", {}, void 0, !0)
|
|
476
476
|
], 512),
|
|
477
477
|
B("div", {
|
|
478
478
|
id: "super-list-select-list",
|
|
@@ -489,7 +489,7 @@ const Je = /* @__PURE__ */ V(ze, [["render", Ue]]), We = ["onMousedown"], Qe = {
|
|
|
489
489
|
{ "select-list-scrollable": !m.value }
|
|
490
490
|
]),
|
|
491
491
|
onKeydown: y[1] || (y[1] = h((x) => P(x), ["space"])),
|
|
492
|
-
onMouseup: y[2] || (y[2] = Q((x) =>
|
|
492
|
+
onMouseup: y[2] || (y[2] = Q((x) => J(x), ["left"])),
|
|
493
493
|
onFocusout: y[3] || (y[3] = (x) => ie(x))
|
|
494
494
|
}, [
|
|
495
495
|
B("ul", {
|
|
@@ -498,7 +498,7 @@ const Je = /* @__PURE__ */ V(ze, [["render", Ue]]), We = ["onMousedown"], Qe = {
|
|
|
498
498
|
ref: L,
|
|
499
499
|
class: "list-content"
|
|
500
500
|
}, [
|
|
501
|
-
Z(
|
|
501
|
+
Z(et, {
|
|
502
502
|
filteredListItems: N.value,
|
|
503
503
|
mouseHoveringOnList: e.mouseHoveringOnList,
|
|
504
504
|
focusedIndex: e.focusedIndex,
|
|
@@ -512,25 +512,25 @@ const Je = /* @__PURE__ */ V(ze, [["render", Ue]]), We = ["onMousedown"], Qe = {
|
|
|
512
512
|
], 34)
|
|
513
513
|
], 64));
|
|
514
514
|
}
|
|
515
|
-
}),
|
|
515
|
+
}), ye = /* @__PURE__ */ V(tt, [["__scopeId", "data-v-bb412ce9"]]), nt = {}, ot = {
|
|
516
516
|
xmlns: "http://www.w3.org/2000/svg",
|
|
517
517
|
fill: "currentColor",
|
|
518
518
|
"aria-hidden": "true",
|
|
519
519
|
"data-slot": "icon",
|
|
520
520
|
viewBox: "0 0 12 6"
|
|
521
521
|
};
|
|
522
|
-
function
|
|
523
|
-
return T(), C("svg",
|
|
522
|
+
function st(e, i) {
|
|
523
|
+
return T(), C("svg", ot, [...i[0] || (i[0] = [
|
|
524
524
|
B("path", {
|
|
525
525
|
"shape-rendering": "geometricPrecision",
|
|
526
526
|
d: "M 6 4 L 10 0.25 A 0.5 0.5 90 0 1 11 1.25 L 6.5 5.75 A 15 3 90 0 1 5.5 5.75 L 1 1.25 A 0.5 0.5 90 0 1 2 0.25 Z"
|
|
527
527
|
}, null, -1)
|
|
528
528
|
])]);
|
|
529
529
|
}
|
|
530
|
-
const
|
|
530
|
+
const we = /* @__PURE__ */ V(nt, [["render", st]]), it = ["tabindex"], lt = {
|
|
531
531
|
key: 2,
|
|
532
532
|
class: "list-button-icon custom-icon"
|
|
533
|
-
},
|
|
533
|
+
}, rt = /* @__PURE__ */ Y({
|
|
534
534
|
__name: "ListButton",
|
|
535
535
|
props: {
|
|
536
536
|
// eslint-disable-line
|
|
@@ -588,7 +588,7 @@ const ye = /* @__PURE__ */ V(et, [["render", nt]]), ot = ["tabindex"], st = {
|
|
|
588
588
|
type: "button",
|
|
589
589
|
class: R([[{ "click-through": d.enableTextFilter || d.showDropDown }], "list-button"])
|
|
590
590
|
}, [
|
|
591
|
-
|
|
591
|
+
Ie(c.$slots, "default", {}, void 0, !0),
|
|
592
592
|
B("span", {
|
|
593
593
|
class: R(["list-button-icon-div", { "bigger-gap": d.showDropDown }])
|
|
594
594
|
}, [
|
|
@@ -596,24 +596,24 @@ const ye = /* @__PURE__ */ V(et, [["render", nt]]), ot = ["tabindex"], st = {
|
|
|
596
596
|
key: 0,
|
|
597
597
|
class: R(["list-button-icon", [{ "rotate-180": !d.showDropDown }]])
|
|
598
598
|
}, [
|
|
599
|
-
Z(
|
|
599
|
+
Z(we, { "aria-hidden": "true" })
|
|
600
600
|
], 2)),
|
|
601
601
|
e.customIcon ? K("", !0) : (T(), C("span", {
|
|
602
602
|
key: 1,
|
|
603
603
|
class: R(["list-button-icon", [{ "rotate-180": d.showDropDown }]])
|
|
604
604
|
}, [
|
|
605
|
-
e.customIcon == null ? (T(), pe(
|
|
605
|
+
e.customIcon == null ? (T(), pe(we, {
|
|
606
606
|
key: 0,
|
|
607
607
|
"aria-hidden": "true"
|
|
608
608
|
})) : K("", !0)
|
|
609
609
|
], 2)),
|
|
610
|
-
e.customIcon ? (T(), C("span",
|
|
611
|
-
(T(), pe(
|
|
610
|
+
e.customIcon ? (T(), C("span", lt, [
|
|
611
|
+
(T(), pe(qe(e.customIcon), { "aria-hidden": "true" }))
|
|
612
612
|
])) : K("", !0)
|
|
613
613
|
], 2)
|
|
614
|
-
], 42,
|
|
614
|
+
], 42, it));
|
|
615
615
|
}
|
|
616
|
-
}),
|
|
616
|
+
}), Le = /* @__PURE__ */ V(rt, [["__scopeId", "data-v-01ef8e37"]]), ut = /* @__PURE__ */ Y({
|
|
617
617
|
__name: "super-list",
|
|
618
618
|
props: {
|
|
619
619
|
selected: {
|
|
@@ -662,20 +662,20 @@ const ye = /* @__PURE__ */ V(et, [["render", nt]]), ot = ["tabindex"], st = {
|
|
|
662
662
|
},
|
|
663
663
|
emits: { "update:selected": null },
|
|
664
664
|
setup(e, { expose: i, emit: d }) {
|
|
665
|
-
const b = d, o = e, p = v([]), L = new
|
|
665
|
+
const b = d, o = e, p = v([]), L = new Ve(), t = v(0), s = M(() => o.forceTextFilterVisibilityTo != null ? o.forceTextFilterVisibilityTo : t.value > o.maxListOptions), c = v(!1), u = v(!1), w = v(!1), A = v(!0), I = v(!1), N = v(!1), g = v(ye), a = v(ge), m = v(Le), S = v("");
|
|
666
666
|
F(
|
|
667
667
|
() => S.value,
|
|
668
|
-
(n,
|
|
669
|
-
n !==
|
|
668
|
+
(n, r) => {
|
|
669
|
+
n !== r && typeof o.options == "function" && U(n);
|
|
670
670
|
}
|
|
671
671
|
);
|
|
672
672
|
const se = () => {
|
|
673
673
|
s.value && a?.value?.blurInput();
|
|
674
674
|
}, P = () => {
|
|
675
|
-
clearTimeout(
|
|
676
|
-
}, ie = M(() => N?.value === !0 ? "Error loading data" : I?.value === !0 ? "Loading..." : k(o.selected)),
|
|
675
|
+
clearTimeout(W), se(), S.value = "", c.value = !1, A.value = !0;
|
|
676
|
+
}, ie = M(() => N?.value === !0 ? "Error loading data" : I?.value === !0 ? "Loading..." : k(o.selected)), J = (n) => {
|
|
677
677
|
n && b("update:selected", n), P();
|
|
678
|
-
}, k = (n) =>
|
|
678
|
+
}, k = (n) => $e(
|
|
679
679
|
n,
|
|
680
680
|
o.customPlaceHolderFunction,
|
|
681
681
|
o.objectLabelKeyName,
|
|
@@ -690,14 +690,14 @@ const ye = /* @__PURE__ */ V(et, [["render", nt]]), ot = ["tabindex"], st = {
|
|
|
690
690
|
function G() {
|
|
691
691
|
throw I.value = !0, N.value = !0, new Error("Invalid objectLabelKeyName for provided Dropdown list value.");
|
|
692
692
|
}
|
|
693
|
-
|
|
693
|
+
xe(() => {
|
|
694
694
|
typeof o.options != "function" && !Array.isArray(o.options) ? z() : oe();
|
|
695
695
|
});
|
|
696
696
|
const q = v(!1), _ = v(0), E = v(0), j = v(0);
|
|
697
697
|
F(
|
|
698
698
|
() => E.value,
|
|
699
|
-
(n,
|
|
700
|
-
n !=
|
|
699
|
+
(n, r) => {
|
|
700
|
+
n != r && !u.value && (j.value = n);
|
|
701
701
|
},
|
|
702
702
|
{ immediate: !0 }
|
|
703
703
|
), F(
|
|
@@ -709,13 +709,13 @@ const ye = /* @__PURE__ */ V(et, [["render", nt]]), ot = ["tabindex"], st = {
|
|
|
709
709
|
);
|
|
710
710
|
const O = M(() => {
|
|
711
711
|
if (typeof o.options == "function" && !Array.isArray(o.options)) return p.value;
|
|
712
|
-
const n = S.value,
|
|
713
|
-
return n === "" ?
|
|
712
|
+
const n = S.value, r = p.value;
|
|
713
|
+
return n === "" ? r : r.filter((f) => k(f).toLowerCase().includes(n.toLowerCase()));
|
|
714
714
|
});
|
|
715
715
|
F(
|
|
716
716
|
() => O.value,
|
|
717
|
-
(n,
|
|
718
|
-
JSON.stringify(n) !== JSON.stringify(
|
|
717
|
+
(n, r) => {
|
|
718
|
+
JSON.stringify(n) !== JSON.stringify(r) && ee();
|
|
719
719
|
},
|
|
720
720
|
{ immediate: !1, deep: !0 }
|
|
721
721
|
);
|
|
@@ -727,9 +727,9 @@ const ye = /* @__PURE__ */ V(et, [["render", nt]]), ot = ["tabindex"], st = {
|
|
|
727
727
|
};
|
|
728
728
|
function X() {
|
|
729
729
|
if (o.selected == null) return -1;
|
|
730
|
-
const n = O.value.map((f) => k(f)),
|
|
731
|
-
if (
|
|
732
|
-
const f =
|
|
730
|
+
const n = O.value.map((f) => k(f)), r = n.filter((f) => f === k(o.selected));
|
|
731
|
+
if (r.length > 1) {
|
|
732
|
+
const f = r.map((D) => n.indexOf(D));
|
|
733
733
|
for (let D = 0; D < f.length; D++) {
|
|
734
734
|
const H = JSON.stringify(
|
|
735
735
|
O.value[f[D]]
|
|
@@ -743,22 +743,22 @@ const ye = /* @__PURE__ */ V(et, [["render", nt]]), ot = ["tabindex"], st = {
|
|
|
743
743
|
const te = () => {
|
|
744
744
|
I.value || (c.value || (u.value = !1, ee(), ue(), c.value = !0), q.value = !1, A.value = !1);
|
|
745
745
|
}, ue = () => {
|
|
746
|
-
const n = window?.innerWidth != null && window.innerWidth < 640,
|
|
747
|
-
(n ||
|
|
746
|
+
const n = window?.innerWidth != null && window.innerWidth < 640, r = screen?.width != null && screen.width < 640, f = a.value.textInputRef;
|
|
747
|
+
(n || r) && s.value && (ae(), o.scrollTextInputToTopOnMobile && f?.scrollIntoView({ block: "start", inline: "center" }));
|
|
748
748
|
}, $ = v(!0);
|
|
749
|
-
let
|
|
749
|
+
let W = setTimeout(() => {
|
|
750
750
|
}, 0);
|
|
751
751
|
function ae() {
|
|
752
752
|
const n = a.value.textInputRef;
|
|
753
753
|
if (!n) return;
|
|
754
754
|
$.value = !1;
|
|
755
|
-
let
|
|
755
|
+
let r = null;
|
|
756
756
|
const f = () => {
|
|
757
|
-
|
|
757
|
+
r && clearInterval(r), clearTimeout(W), setTimeout(() => {
|
|
758
758
|
$.value = !0;
|
|
759
759
|
}, 100);
|
|
760
760
|
};
|
|
761
|
-
|
|
761
|
+
W = setTimeout(f, 5e3), r = setInterval(() => {
|
|
762
762
|
(c.value === !1 || n?.scrollTop === 0 && document.readyState === "complete") && f();
|
|
763
763
|
}, 100);
|
|
764
764
|
}
|
|
@@ -766,67 +766,73 @@ const ye = /* @__PURE__ */ V(et, [["render", nt]]), ot = ["tabindex"], st = {
|
|
|
766
766
|
s?.value == !0 ? a.value.focusInput() : m?.value?.focusInput && m?.value?.focusInput();
|
|
767
767
|
};
|
|
768
768
|
async function oe() {
|
|
769
|
-
|
|
769
|
+
await l(), x();
|
|
770
770
|
}
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
X() == -1 && p.value && !!p.value[0] && U(p.value[0]);
|
|
771
|
+
async function l() {
|
|
772
|
+
typeof o.options == "function" ? await U(S.value ? S.value : void 0, !0) : (ve(o.options), t.value = p.value.length);
|
|
774
773
|
}
|
|
775
|
-
|
|
776
|
-
|
|
774
|
+
function y() {
|
|
775
|
+
l().then();
|
|
776
|
+
}
|
|
777
|
+
i({ refreshListData: y, initializeOptions: oe, getLabel: k });
|
|
778
|
+
function x() {
|
|
779
|
+
X() == -1 && p.value && !!p.value[0] && J(p.value[0]);
|
|
780
|
+
}
|
|
781
|
+
async function U(n, r = !0) {
|
|
782
|
+
I.value = r;
|
|
777
783
|
const f = async () => o.options(o.maxListOptions, n || ""), D = (H) => {
|
|
778
|
-
(!H || !("data" in H)) && z(),
|
|
784
|
+
(!H || !("data" in H)) && z(), ve(H.data), De(H?.data?.length ?? 0).then(() => {
|
|
779
785
|
I.value = !1;
|
|
780
786
|
});
|
|
781
787
|
};
|
|
782
788
|
await L.resetAndExecute(f, D);
|
|
783
789
|
}
|
|
784
|
-
function
|
|
785
|
-
Array.isArray(n) || z(), n.length > 0 && typeof n[0] == "object" &&
|
|
790
|
+
function ve(n) {
|
|
791
|
+
Array.isArray(n) || z(), n.length > 0 && typeof n[0] == "object" && Te(n), p.value = n;
|
|
786
792
|
}
|
|
787
|
-
function
|
|
793
|
+
function Te(n) {
|
|
788
794
|
(!o.objectLabelKeyName || o.objectLabelKeyName.length === 0) && G();
|
|
789
|
-
const
|
|
795
|
+
const r = o.objectLabelKeyName;
|
|
790
796
|
for (let f = 0; f < n.length; f++)
|
|
791
|
-
(typeof n[f] != "object" || !(
|
|
797
|
+
(typeof n[f] != "object" || !(r in n[f])) && G();
|
|
792
798
|
}
|
|
793
|
-
async function
|
|
794
|
-
const
|
|
799
|
+
async function De(n) {
|
|
800
|
+
const r = async () => o.options(1, ""), f = (D) => {
|
|
795
801
|
(!D || !("totalNum" in D)) && le(), t.value = D.totalNum ?? n;
|
|
796
802
|
};
|
|
797
|
-
await L.resetAndExecute(
|
|
798
|
-
}
|
|
799
|
-
const
|
|
800
|
-
c.value == !1 ? te() : n &&
|
|
801
|
-
}, De = (n) => {
|
|
802
|
-
const l = n.key || n.code;
|
|
803
|
-
(l === "Tab" || l === "Escape") && P(), l === "ArrowDown" && Me(n), l === "ArrowUp" && Ce(n), (l === "Enter" || l === " ") && Oe(), n.preventDefault(), n.stopPropagation();
|
|
804
|
-
}, Oe = () => {
|
|
805
|
-
O.value.length > 0 ? (u.value = !0, U(O.value[E.value])) : P();
|
|
803
|
+
await L.resetAndExecute(r, f);
|
|
804
|
+
}
|
|
805
|
+
const me = () => a?.value?.textInputRef?.getElementsByTagName("li")[E.value] ?? null, Oe = (n) => {
|
|
806
|
+
c.value == !1 ? te() : n && Me(n);
|
|
806
807
|
}, Me = (n) => {
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
808
|
+
const r = n.key || n.code;
|
|
809
|
+
(r === "Tab" || r === "Escape") && P(), r === "ArrowDown" && ke(n), r === "ArrowUp" && Ee(n), (r === "Enter" || r === " ") && Ce(), n.preventDefault(), n.stopPropagation();
|
|
810
|
+
}, Ce = () => {
|
|
811
|
+
O.value.length > 0 ? (u.value = !0, J(O.value[E.value])) : P();
|
|
812
|
+
}, ke = (n) => {
|
|
813
|
+
A.value = !0, E.value < O.value.length - 1 && (n.preventDefault(), q.value = !1, E.value++, me()?.focus());
|
|
814
|
+
}, Ee = (n) => {
|
|
815
|
+
A.value = !0, E.value > 0 && (n.preventDefault(), q.value = !1, E.value--, me()?.focus());
|
|
810
816
|
}, de = {
|
|
811
817
|
openList: te,
|
|
812
818
|
unfocus: (n) => {
|
|
813
819
|
if (c?.value === !1) return;
|
|
814
820
|
S.value.length > 0 && (u.value = !0);
|
|
815
|
-
const
|
|
816
|
-
|
|
821
|
+
const r = g?.value?.listContainerRef, f = a?.value?.textInputRef, D = m?.value?.buttonRef, H = n?.relatedTarget && f?.isEqualNode(n?.relatedTarget), ce = n?.relatedTarget && r && r.contains(n?.relatedTarget), Ae = n?.relatedTarget && D && D.isEqualNode(n.relatedTarget), Ne = ce || Ae, Se = n?.relatedTarget && r && r.isEqualNode(n?.relatedTarget);
|
|
822
|
+
Ne || H || (Se ? ne() : P());
|
|
817
823
|
},
|
|
818
|
-
press:
|
|
824
|
+
press: Oe,
|
|
819
825
|
mouseOverList: re,
|
|
820
826
|
getLabel: k,
|
|
821
|
-
updatedSelected:
|
|
827
|
+
updatedSelected: J,
|
|
822
828
|
focusInput: ne,
|
|
823
829
|
closeList: P
|
|
824
830
|
};
|
|
825
|
-
return (n,
|
|
831
|
+
return (n, r) => (T(), C("div", {
|
|
826
832
|
style: { position: "relative" },
|
|
827
833
|
class: R(n.$attrs.class)
|
|
828
834
|
}, [
|
|
829
|
-
Z(
|
|
835
|
+
Z(ye, {
|
|
830
836
|
ref_key: "itemListRef",
|
|
831
837
|
ref: g,
|
|
832
838
|
"show-drop-down": c.value,
|
|
@@ -838,13 +844,13 @@ const ye = /* @__PURE__ */ V(et, [["render", nt]]), ot = ["tabindex"], st = {
|
|
|
838
844
|
"list-animation-duration-ms": e.listAnimationDurationMs,
|
|
839
845
|
"parent-methods": de,
|
|
840
846
|
blockListChange: u.value,
|
|
841
|
-
"onUpdate:blockListChange":
|
|
847
|
+
"onUpdate:blockListChange": r[1] || (r[1] = (f) => u.value = f),
|
|
842
848
|
"total-options-count": t.value,
|
|
843
|
-
onReverseDropDownList:
|
|
849
|
+
onReverseDropDownList: r[2] || (r[2] = (f) => w.value = f),
|
|
844
850
|
enableScrollClose: $.value
|
|
845
851
|
}, {
|
|
846
|
-
default:
|
|
847
|
-
Z(
|
|
852
|
+
default: he(() => [
|
|
853
|
+
Z(Le, {
|
|
848
854
|
ref_key: "dropDownButtonInput",
|
|
849
855
|
ref: m,
|
|
850
856
|
"parent-methods": de,
|
|
@@ -853,8 +859,8 @@ const ye = /* @__PURE__ */ V(et, [["render", nt]]), ot = ["tabindex"], st = {
|
|
|
853
859
|
"custom-icon": e.customIcon,
|
|
854
860
|
"reverse-drop-down-list": w.value
|
|
855
861
|
}, {
|
|
856
|
-
default:
|
|
857
|
-
Z(
|
|
862
|
+
default: he(() => [
|
|
863
|
+
Z(ge, {
|
|
858
864
|
ref_key: "dropDownTextInput",
|
|
859
865
|
ref: a,
|
|
860
866
|
"enable-text-filter": s.value,
|
|
@@ -862,7 +868,7 @@ const ye = /* @__PURE__ */ V(et, [["render", nt]]), ot = ["tabindex"], st = {
|
|
|
862
868
|
placeholder: ie.value,
|
|
863
869
|
"enable-button-click": A.value,
|
|
864
870
|
"parent-methods": de,
|
|
865
|
-
"onUpdate:query":
|
|
871
|
+
"onUpdate:query": r[0] || (r[0] = (f) => S.value = f)
|
|
866
872
|
}, null, 8, ["enable-text-filter", "show-drop-down", "placeholder", "enable-button-click"])
|
|
867
873
|
]),
|
|
868
874
|
_: 1
|
|
@@ -872,8 +878,8 @@ const ye = /* @__PURE__ */ V(et, [["render", nt]]), ot = ["tabindex"], st = {
|
|
|
872
878
|
}, 8, ["show-drop-down", "filteredListItems", "mouseHoveringOnList", "focusedIndex", "selectedIndex", "max-list-height-p-x", "list-animation-duration-ms", "blockListChange", "total-options-count", "enableScrollClose"])
|
|
873
879
|
], 2));
|
|
874
880
|
}
|
|
875
|
-
}),
|
|
881
|
+
}), ct = /* @__PURE__ */ V(ut, [["__scopeId", "data-v-e02552d0"]]);
|
|
876
882
|
export {
|
|
877
|
-
|
|
883
|
+
ct as default
|
|
878
884
|
};
|
|
879
885
|
//# sourceMappingURL=super-list.js.map
|