@ulu/frontend-vue 0.1.0-beta.29 → 0.1.0-beta.30
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/{breakpoints-C4GEChDH.js → breakpoints-O2rDlMRj.js} +1 -1
- package/dist/frontend-vue.js +1 -1
- package/dist/{index-BSMyFDXn.js → index-BkFIm5Ds.js} +194 -191
- package/lib/components/systems/facets/useFacets.js +8 -0
- package/package.json +1 -1
- package/types/components/systems/facets/useFacets.d.ts.map +1 -1
package/dist/frontend-vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as l, N as e, s as u, a1 as o, t, u as U, Q as i, v as r, w as n, x as c, y as S, U as d, W as F, O as p, z as b, h as m, X as g, Y as k, A as T, a5 as P, a6 as h, a7 as w, a8 as y, ad as A, a9 as L, aa as v, ab as M, ac as x, H as B, I as R, J as D, K as f, L as C, B as I, am as N, C as E, D as j, R as q, S as G, j as V, T as z, k as H, Z as O, $ as W, a2 as J, a3 as K, a0 as Q, ae as X, af as Y, ag as Z, ah as _, M as $, G as aa, ai as sa, aj as la, ak as ea, al as ua, V as oa, an as ta, ao as Ua, E as ia, m as ra, n as na, o as ca, p as Sa, q as da, ap as Fa, aq as pa, ar as ba, F as ma, P as ga, f as ka, b as Ta, d as Pa, c as ha, e as wa, aw as ya, ay as Aa, a4 as La, as as va, at as Ma, ax as xa, av as Ba, au as Ra, i as Da } from "./index-
|
|
1
|
+
import { _ as l, N as e, s as u, a1 as o, t, u as U, Q as i, v as r, w as n, x as c, y as S, U as d, W as F, O as p, z as b, h as m, X as g, Y as k, A as T, a5 as P, a6 as h, a7 as w, a8 as y, ad as A, a9 as L, aa as v, ab as M, ac as x, H as B, I as R, J as D, K as f, L as C, B as I, am as N, C as E, D as j, R as q, S as G, j as V, T as z, k as H, Z as O, $ as W, a2 as J, a3 as K, a0 as Q, ae as X, af as Y, ag as Z, ah as _, M as $, G as aa, ai as sa, aj as la, ak as ea, al as ua, V as oa, an as ta, ao as Ua, E as ia, m as ra, n as na, o as ca, p as Sa, q as da, ap as Fa, aq as pa, ar as ba, F as ma, P as ga, f as ka, b as Ta, d as Pa, c as ha, e as wa, aw as ya, ay as Aa, a4 as La, as as va, at as Ma, ax as xa, av as Ba, au as Ra, i as Da } from "./index-BkFIm5Ds.js";
|
|
2
2
|
export {
|
|
3
3
|
l as UluAccordion,
|
|
4
4
|
e as UluAdaptiveLayout,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as lt, ref as M, computed as S, resolveDirective as rs, createElementBlock as d, openBlock as a, Fragment as O, withDirectives as
|
|
1
|
+
import { reactive as lt, ref as M, computed as S, resolveDirective as rs, createElementBlock as d, openBlock as a, Fragment as O, withDirectives as Ce, createElementVNode as h, unref as T, normalizeClass as m, renderSlot as g, withKeys as ls, normalizeStyle as F, createCommentVNode as v, nextTick as as, toRef as Ys, toDisplayString as y, createBlock as p, Teleport as at, resolveDynamicComponent as B, mergeProps as Z, inject as ct, watchEffect as ut, defineAsyncComponent as Ks, markRaw as de, toRefs as Gs, toValue as Ee, resolveComponent as z, withModifiers as Zs, createVNode as R, useSlots as Js, renderList as A, TransitionGroup as cs, withCtx as w, createTextVNode as k, vShow as us, watch as ds, isRef as Qs, hasInjectionContext as en, getCurrentInstance as tn, onBeforeUnmount as sn, onDeactivated as nn, onActivated as on, onUnmounted as fs, onMounted as rn, normalizeProps as q, guardReactiveProps as Y, vModelText as ln, createSlots as ue } from "vue";
|
|
2
2
|
import { inline as hs, offset as ms, flip as gs, shift as ys, arrow as ps, useFloating as _s, autoUpdate as vs } from "@floating-ui/vue";
|
|
3
3
|
import { Disclosure as an, DisclosureButton as cn, DisclosurePanel as un, Tab as dn, TabGroup as fn, TabList as hn, TabPanel as mn, TabPanels as gn } from "@headlessui/vue";
|
|
4
4
|
import { useRoute as bs, useRouter as yn, RouterLink as Pe } from "vue-router";
|
|
@@ -176,16 +176,16 @@ const Ue = {
|
|
|
176
176
|
*/
|
|
177
177
|
onReady: null
|
|
178
178
|
}
|
|
179
|
-
},
|
|
179
|
+
}, oe = {
|
|
180
180
|
plugin: { ...Ue.plugin },
|
|
181
181
|
popover: { ...Ue.popover },
|
|
182
182
|
tooltip: { ...Ue.tooltip, ...Ue.popover }
|
|
183
183
|
}, dt = M(!1), ft = M(null);
|
|
184
184
|
function vn(e = {}) {
|
|
185
|
-
return Object.assign(
|
|
185
|
+
return Object.assign(oe.popover, e.popover), Object.assign(oe.tooltip, e.tooltip), Object.assign(oe.plugin, e.plugin), oe;
|
|
186
186
|
}
|
|
187
187
|
function bn(e) {
|
|
188
|
-
return Object.assign({},
|
|
188
|
+
return Object.assign({}, oe.tooltip, e);
|
|
189
189
|
}
|
|
190
190
|
function wn(e) {
|
|
191
191
|
dt.value = !0, ft.value = e;
|
|
@@ -278,7 +278,7 @@ const $n = ["id", "disabled", "aria-expanded", "aria-controls", "aria-label"], A
|
|
|
278
278
|
},
|
|
279
279
|
emits: ["toggle"],
|
|
280
280
|
setup(e, { emit: s }) {
|
|
281
|
-
const t = s, n = e, i = Ot(), o = Ot(), r = Object.assign({},
|
|
281
|
+
const t = s, n = e, i = Ot(), o = Ot(), r = Object.assign({}, oe.popover, n.config), l = M(n.startOpen || !1), c = M(null), u = M(null), f = M(null), _ = [
|
|
282
282
|
...r.inline ? [hs()] : [],
|
|
283
283
|
...r.offset ? [ms(r.offset)] : [],
|
|
284
284
|
gs(),
|
|
@@ -291,11 +291,11 @@ const $n = ["id", "disabled", "aria-expanded", "aria-controls", "aria-label"], A
|
|
|
291
291
|
}, {
|
|
292
292
|
floatingStyles: x,
|
|
293
293
|
placement: I,
|
|
294
|
-
middlewareData:
|
|
294
|
+
middlewareData: H,
|
|
295
295
|
update: U,
|
|
296
296
|
isPositioned: Q
|
|
297
|
-
} = _s(c, u, b),
|
|
298
|
-
const D =
|
|
297
|
+
} = _s(c, u, b), Ae = S(() => {
|
|
298
|
+
const D = H.value?.arrow;
|
|
299
299
|
return D ? {
|
|
300
300
|
position: "absolute",
|
|
301
301
|
left: D?.x != null ? `${D.x}px` : "",
|
|
@@ -303,9 +303,9 @@ const $n = ["id", "disabled", "aria-expanded", "aria-controls", "aria-label"], A
|
|
|
303
303
|
} : null;
|
|
304
304
|
});
|
|
305
305
|
r.onReady && r.onReady({ update: U, isPositioned: Q });
|
|
306
|
-
const
|
|
307
|
-
|
|
308
|
-
},
|
|
306
|
+
const Oe = () => {
|
|
307
|
+
ae(!l.value);
|
|
308
|
+
}, ae = (D) => {
|
|
309
309
|
l.value = D;
|
|
310
310
|
const ee = {
|
|
311
311
|
trigger: T(c),
|
|
@@ -314,26 +314,26 @@ const $n = ["id", "disabled", "aria-expanded", "aria-controls", "aria-label"], A
|
|
|
314
314
|
}, $ = { isOpen: ee.isOpen };
|
|
315
315
|
as(() => {
|
|
316
316
|
l.value ? (U(), window.setTimeout(() => {
|
|
317
|
-
|
|
318
|
-
}, 0)) : (
|
|
317
|
+
xe(), n.directFocus(ee), t("toggle", $);
|
|
318
|
+
}, 0)) : (ye(), n.directFocus(ee), t("toggle", $));
|
|
319
319
|
});
|
|
320
320
|
};
|
|
321
|
-
let
|
|
322
|
-
const
|
|
323
|
-
n.clickOutsideCloses && (
|
|
324
|
-
u.value.contains(D.target) ||
|
|
325
|
-
}, document.addEventListener("click",
|
|
326
|
-
},
|
|
327
|
-
|
|
328
|
-
},
|
|
321
|
+
let X;
|
|
322
|
+
const xe = () => {
|
|
323
|
+
n.clickOutsideCloses && (X && ye(), X = (D) => {
|
|
324
|
+
u.value.contains(D.target) || ae(!1);
|
|
325
|
+
}, document.addEventListener("click", X));
|
|
326
|
+
}, ye = () => {
|
|
327
|
+
X && (document.removeEventListener("click", X), X = null);
|
|
328
|
+
}, Re = () => ae(!1);
|
|
329
329
|
return (D, ee) => {
|
|
330
330
|
const $ = rs("ulu-tooltip");
|
|
331
331
|
return a(), d(O, null, [
|
|
332
|
-
|
|
332
|
+
Ce((a(), d("button", {
|
|
333
333
|
type: "button",
|
|
334
334
|
ref_key: "trigger",
|
|
335
335
|
ref: c,
|
|
336
|
-
onClick:
|
|
336
|
+
onClick: Oe,
|
|
337
337
|
id: T(o),
|
|
338
338
|
disabled: e.disabled,
|
|
339
339
|
class: m([
|
|
@@ -361,23 +361,23 @@ const $n = ["id", "disabled", "aria-expanded", "aria-controls", "aria-label"], A
|
|
|
361
361
|
ref: u,
|
|
362
362
|
"aria-labelledby": T(o),
|
|
363
363
|
id: T(i),
|
|
364
|
-
style:
|
|
364
|
+
style: F(T(x)),
|
|
365
365
|
"data-placement": T(I),
|
|
366
|
-
onKeydown: ee[0] || (ee[0] = ls((
|
|
366
|
+
onKeydown: ee[0] || (ee[0] = ls((P) => ae(!1), ["esc"])),
|
|
367
367
|
tabindex: "-1"
|
|
368
368
|
}, [
|
|
369
369
|
h("span", On, [
|
|
370
|
-
g(D.$slots, "content", { close:
|
|
370
|
+
g(D.$slots, "content", { close: Re })
|
|
371
371
|
]),
|
|
372
372
|
D.$slots.footer ? (a(), d("span", xn, [
|
|
373
|
-
g(D.$slots, "footer", { close:
|
|
373
|
+
g(D.$slots, "footer", { close: Re })
|
|
374
374
|
])) : v("", !0),
|
|
375
375
|
T(r).arrow ? (a(), d("span", {
|
|
376
376
|
key: 1,
|
|
377
377
|
class: "popover__arrow",
|
|
378
378
|
ref_key: "contentArrow",
|
|
379
379
|
ref: f,
|
|
380
|
-
style:
|
|
380
|
+
style: F(Ae.value),
|
|
381
381
|
"data-ulu-popover-arrow": ""
|
|
382
382
|
}, null, 4)) : v("", !0)
|
|
383
383
|
], 46, An)
|
|
@@ -423,7 +423,7 @@ const $n = ["id", "disabled", "aria-expanded", "aria-controls", "aria-label"], A
|
|
|
423
423
|
ref: t,
|
|
424
424
|
"aria-hidden": "true",
|
|
425
425
|
"data-placement": T(l),
|
|
426
|
-
style:
|
|
426
|
+
style: F(T(r))
|
|
427
427
|
}, [
|
|
428
428
|
e.config.isHtml ? (a(), d("span", {
|
|
429
429
|
key: 0,
|
|
@@ -435,7 +435,7 @@ const $n = ["id", "disabled", "aria-expanded", "aria-controls", "aria-label"], A
|
|
|
435
435
|
class: "popover__arrow",
|
|
436
436
|
ref_key: "contentArrow",
|
|
437
437
|
ref: n,
|
|
438
|
-
style:
|
|
438
|
+
style: F(_.value)
|
|
439
439
|
}, null, 4)) : v("", !0)
|
|
440
440
|
], 14, Rn));
|
|
441
441
|
}
|
|
@@ -443,7 +443,7 @@ const $n = ["id", "disabled", "aria-expanded", "aria-controls", "aria-label"], A
|
|
|
443
443
|
__name: "UluTooltipDisplay",
|
|
444
444
|
setup(e) {
|
|
445
445
|
return (s, t) => (a(), p(at, {
|
|
446
|
-
to: T(
|
|
446
|
+
to: T(oe).plugin.tooltipTeleportTo
|
|
447
447
|
}, [
|
|
448
448
|
T(dt) ? (a(), p(En, {
|
|
449
449
|
key: 0,
|
|
@@ -544,15 +544,15 @@ const V = {
|
|
|
544
544
|
const s = ct("uluCore"), t = M(null), { getIconProps: n, getClassesFromDefinition: i } = Pn();
|
|
545
545
|
let o;
|
|
546
546
|
const r = e, l = S(() => s.getSetting("fontAwesomeStatic")), c = S(() => s.getSetting("iconComponent")), u = S(() => s.getSetting("iconPropResolver")), f = S(() => {
|
|
547
|
-
const { icon:
|
|
548
|
-
if (typeof
|
|
547
|
+
const { icon: H } = r;
|
|
548
|
+
if (typeof H == "string" && H.startsWith("type:"))
|
|
549
549
|
try {
|
|
550
|
-
const U =
|
|
550
|
+
const U = H.substring(5);
|
|
551
551
|
return s.getIcon(U);
|
|
552
552
|
} catch (U) {
|
|
553
553
|
return console.warn(U), null;
|
|
554
554
|
}
|
|
555
|
-
return
|
|
555
|
+
return H;
|
|
556
556
|
}), _ = S(() => !c.value || !f.value ? null : u.value(f.value)), b = S(() => n(f.value)), x = S(() => i(f.value)), I = S(() => ({
|
|
557
557
|
"flow-inline": r.spaced
|
|
558
558
|
}));
|
|
@@ -560,17 +560,17 @@ const V = {
|
|
|
560
560
|
if (!l.value && f.value) {
|
|
561
561
|
if (t.value === null)
|
|
562
562
|
if (o)
|
|
563
|
-
t.value =
|
|
563
|
+
t.value = de(o.FontAwesomeIcon);
|
|
564
564
|
else {
|
|
565
|
-
const
|
|
565
|
+
const H = Ks(async () => {
|
|
566
566
|
const U = await import("./index.es-HlG3u0J5.js");
|
|
567
567
|
return o = U, U.FontAwesomeIcon;
|
|
568
568
|
});
|
|
569
|
-
t.value =
|
|
569
|
+
t.value = de(H);
|
|
570
570
|
}
|
|
571
571
|
} else
|
|
572
572
|
t.value = null;
|
|
573
|
-
}), (
|
|
573
|
+
}), (H, U) => c.value ? (a(), p(B(c.value), Z({ key: 0 }, _.value, { class: I.value }), null, 16, ["class"])) : !l.value && t.value && f.value ? (a(), p(B(t.value), Z({ key: 1 }, b.value, { class: I.value }), null, 16, ["class"])) : l.value && f.value ? (a(), d("span", {
|
|
574
574
|
key: 2,
|
|
575
575
|
class: m([x.value, I.value]),
|
|
576
576
|
"aria-hidden": "true"
|
|
@@ -647,25 +647,25 @@ const xt = {
|
|
|
647
647
|
* - Is triggered by modules that were responsible for modifying the page
|
|
648
648
|
*/
|
|
649
649
|
pageModified(e) {
|
|
650
|
-
e.dispatchEvent(
|
|
650
|
+
e.dispatchEvent(_e("pageModified"));
|
|
651
651
|
},
|
|
652
652
|
/**
|
|
653
653
|
* Event called when page is resized
|
|
654
654
|
*/
|
|
655
655
|
pageResized(e) {
|
|
656
|
-
e.dispatchEvent(
|
|
656
|
+
e.dispatchEvent(_e("pageResized"));
|
|
657
657
|
},
|
|
658
658
|
/**
|
|
659
659
|
* Event dispatched before page print begins (teardown/restructure/hide things)
|
|
660
660
|
*/
|
|
661
661
|
beforePrint(e) {
|
|
662
|
-
e.dispatchEvent(
|
|
662
|
+
e.dispatchEvent(_e("beforePrint"));
|
|
663
663
|
},
|
|
664
664
|
/**
|
|
665
665
|
* Event dispatched after page print (cleanup)
|
|
666
666
|
*/
|
|
667
667
|
afterPrint(e) {
|
|
668
|
-
e.dispatchEvent(
|
|
668
|
+
e.dispatchEvent(_e("afterPrint"));
|
|
669
669
|
}
|
|
670
670
|
};
|
|
671
671
|
function et(e, s) {
|
|
@@ -674,7 +674,7 @@ function et(e, s) {
|
|
|
674
674
|
function Vn(e) {
|
|
675
675
|
return "ulu:" + e;
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function _e(e, s = null, t = { bubbles: !0 }) {
|
|
678
678
|
return new CustomEvent(Vn(e), { detail: s, ...t });
|
|
679
679
|
}
|
|
680
680
|
function Dn() {
|
|
@@ -694,7 +694,7 @@ function Xn(e, s, t) {
|
|
|
694
694
|
const n = Wn(s) || "Logger";
|
|
695
695
|
console[e](n, ...t);
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function ce(e, ...s) {
|
|
698
698
|
}
|
|
699
699
|
function je(e, ...s) {
|
|
700
700
|
Xn("error", e, s);
|
|
@@ -819,7 +819,7 @@ class ht {
|
|
|
819
819
|
*/
|
|
820
820
|
destroy() {
|
|
821
821
|
const { control: s, options: t } = this;
|
|
822
|
-
t.manageEvents && (t.enablePointerResizing && s.removeEventListener("pointerdown", this.#n), t.enableKeyboardResizing && s.removeEventListener("keydown", this.#o)), this.#t && clearTimeout(this.#t), this.#c(), t.manageAriaLabel && s.removeAttribute("aria-label"),
|
|
822
|
+
t.manageEvents && (t.enablePointerResizing && s.removeEventListener("pointerdown", this.#n), t.enableKeyboardResizing && s.removeEventListener("keydown", this.#o)), this.#t && clearTimeout(this.#t), this.#c(), t.manageAriaLabel && s.removeAttribute("aria-label"), ce(this, "Resizer destroyed.");
|
|
823
823
|
}
|
|
824
824
|
/**
|
|
825
825
|
* Initiates a resize operation.
|
|
@@ -834,7 +834,7 @@ class ht {
|
|
|
834
834
|
return;
|
|
835
835
|
}
|
|
836
836
|
const o = document.defaultView.getComputedStyle(t);
|
|
837
|
-
this.#e.width = parseInt(o.width, 10), this.#e.height = parseInt(o.height, 10), n.overrideMaxDimensions && (this.resizeHorizontal && (t.style.maxWidth = "none"), this.resizeVertical && (t.style.maxHeight = "none")), this.#s = !0, this.dispatchEvent("resizer:start", s),
|
|
837
|
+
this.#e.width = parseInt(o.width, 10), this.#e.height = parseInt(o.height, 10), n.overrideMaxDimensions && (this.resizeHorizontal && (t.style.maxWidth = "none"), this.resizeVertical && (t.style.maxHeight = "none")), this.#s = !0, this.dispatchEvent("resizer:start", s), ce(this, "Resize started.", {
|
|
838
838
|
initialWidth: this.#e.width,
|
|
839
839
|
initialHeight: this.#e.height,
|
|
840
840
|
...s
|
|
@@ -846,7 +846,7 @@ class ht {
|
|
|
846
846
|
* @private
|
|
847
847
|
*/
|
|
848
848
|
#d() {
|
|
849
|
-
this.#s && (this.dispatchEvent("resizer:end"), this.#c(),
|
|
849
|
+
this.#s && (this.dispatchEvent("resizer:end"), this.#c(), ce(this, "Resize ended."));
|
|
850
850
|
}
|
|
851
851
|
/**
|
|
852
852
|
* Core logic for calculating and applying the new size of the container.
|
|
@@ -868,7 +868,7 @@ class ht {
|
|
|
868
868
|
totalDeltaY: t,
|
|
869
869
|
event: n
|
|
870
870
|
};
|
|
871
|
-
this.dispatchEvent("resizer:update", u),
|
|
871
|
+
this.dispatchEvent("resizer:update", u), ce(this, "Resizing update.", u);
|
|
872
872
|
}
|
|
873
873
|
/**
|
|
874
874
|
* Public handler for pointerdown events. Call this method from your own event listeners
|
|
@@ -877,7 +877,7 @@ class ht {
|
|
|
877
877
|
*/
|
|
878
878
|
onPointerdown(s) {
|
|
879
879
|
if (!this.options.enablePointerResizing) {
|
|
880
|
-
|
|
880
|
+
ce(this, "Pointer resizing disabled. Ignoring pointerdown event.");
|
|
881
881
|
return;
|
|
882
882
|
}
|
|
883
883
|
s.preventDefault();
|
|
@@ -903,7 +903,7 @@ class ht {
|
|
|
903
903
|
*/
|
|
904
904
|
onKeydown(s) {
|
|
905
905
|
if (!this.options.enableKeyboardResizing) {
|
|
906
|
-
|
|
906
|
+
ce(this, "Keyboard resizing disabled. Ignoring keydown event.");
|
|
907
907
|
return;
|
|
908
908
|
}
|
|
909
909
|
const { key: t } = s, { keyboardStep: n, keyboardDebounceTime: i } = this.options;
|
|
@@ -927,7 +927,7 @@ class ht {
|
|
|
927
927
|
* @param {Object} [data={}] Optional data to attach to the event's detail property.
|
|
928
928
|
*/
|
|
929
929
|
dispatchEvent(s, t = {}) {
|
|
930
|
-
this.container.dispatchEvent(
|
|
930
|
+
this.container.dispatchEvent(_e(s, t));
|
|
931
931
|
}
|
|
932
932
|
}
|
|
933
933
|
let qe = 0;
|
|
@@ -1177,7 +1177,7 @@ function Jn(e, s, t, n, i, o) {
|
|
|
1177
1177
|
"aria-labelledby": o.resolvedLabelledby,
|
|
1178
1178
|
"aria-describedby": t.describedby,
|
|
1179
1179
|
ref: "container",
|
|
1180
|
-
style:
|
|
1180
|
+
style: F({ width: i.containerWidth }),
|
|
1181
1181
|
onCancel: s[1] || (s[1] = Zs((...l) => o.close && o.close(...l), ["prevent"])),
|
|
1182
1182
|
onClose: s[2] || (s[2] = (...l) => o.handleDialogCloseEvent && o.handleDialogCloseEvent(...l)),
|
|
1183
1183
|
onClick: s[3] || (s[3] = (...l) => o.handleClick && o.handleClick(...l)),
|
|
@@ -1236,7 +1236,7 @@ function Jn(e, s, t, n, i, o) {
|
|
|
1236
1236
|
], 46, Yn)
|
|
1237
1237
|
], 8, ["to", "disabled"]);
|
|
1238
1238
|
}
|
|
1239
|
-
const Qn = /* @__PURE__ */ C(qn, [["render", Jn]]),
|
|
1239
|
+
const Qn = /* @__PURE__ */ C(qn, [["render", Jn]]), ve = [], eo = M({
|
|
1240
1240
|
/**
|
|
1241
1241
|
* Holds active component options (including component, and options)
|
|
1242
1242
|
*/
|
|
@@ -1245,13 +1245,13 @@ const Qn = /* @__PURE__ */ C(qn, [["render", Jn]]), _e = [], eo = M({
|
|
|
1245
1245
|
* Populated with any props passed to open method, bound to modal component
|
|
1246
1246
|
*/
|
|
1247
1247
|
activeProps: null
|
|
1248
|
-
}),
|
|
1249
|
-
data:
|
|
1250
|
-
modals:
|
|
1248
|
+
}), be = eo.value, Rt = {
|
|
1249
|
+
data: be,
|
|
1250
|
+
modals: ve
|
|
1251
1251
|
}, to = (e) => ({
|
|
1252
1252
|
open(s, t = null) {
|
|
1253
1253
|
const n = this.get(s);
|
|
1254
|
-
|
|
1254
|
+
be.active = de(n), be.activeProps = Object.assign({}, n.props, t);
|
|
1255
1255
|
},
|
|
1256
1256
|
/**
|
|
1257
1257
|
* Close the active modal
|
|
@@ -1259,14 +1259,14 @@ const Qn = /* @__PURE__ */ C(qn, [["render", Jn]]), _e = [], eo = M({
|
|
|
1259
1259
|
* @see https://www.deque.com/blog/accessible-routing-in-javascript-frameworks/
|
|
1260
1260
|
*/
|
|
1261
1261
|
close() {
|
|
1262
|
-
|
|
1262
|
+
be.active = null, be.activeProps = null;
|
|
1263
1263
|
},
|
|
1264
1264
|
/**
|
|
1265
1265
|
* Get a modal's config object by name
|
|
1266
1266
|
* @return {Object} Modal config object
|
|
1267
1267
|
*/
|
|
1268
1268
|
get(s) {
|
|
1269
|
-
const t =
|
|
1269
|
+
const t = ve.find((n) => n.name === s);
|
|
1270
1270
|
if (t)
|
|
1271
1271
|
return t;
|
|
1272
1272
|
throw new Error(`Unable to find modal named: ${s}`);
|
|
@@ -1276,16 +1276,16 @@ const Qn = /* @__PURE__ */ C(qn, [["render", Jn]]), _e = [], eo = M({
|
|
|
1276
1276
|
*/
|
|
1277
1277
|
add(s) {
|
|
1278
1278
|
const t = e(s);
|
|
1279
|
-
|
|
1279
|
+
ve.push(t);
|
|
1280
1280
|
},
|
|
1281
1281
|
/**
|
|
1282
1282
|
* Removes a modal config by name
|
|
1283
1283
|
* @return {Object} Modal that was removed
|
|
1284
1284
|
*/
|
|
1285
1285
|
remove(s) {
|
|
1286
|
-
const t =
|
|
1286
|
+
const t = ve.findIndex((n) => n.name === s);
|
|
1287
1287
|
if (t > -1)
|
|
1288
|
-
return
|
|
1288
|
+
return ve.splice(t, 1);
|
|
1289
1289
|
warn("unable to find modal to remove");
|
|
1290
1290
|
}
|
|
1291
1291
|
}), so = {
|
|
@@ -1399,7 +1399,7 @@ const Ss = /* @__PURE__ */ C(no, [["render", io]]), Ut = {
|
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Component used to render the toast in the display
|
|
1401
1401
|
*/
|
|
1402
|
-
component:
|
|
1402
|
+
component: de(Ss),
|
|
1403
1403
|
/**
|
|
1404
1404
|
* Duration of toast
|
|
1405
1405
|
*/
|
|
@@ -1529,8 +1529,8 @@ function fo(e) {
|
|
|
1529
1529
|
await new Promise((f) => {
|
|
1530
1530
|
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", () => f()) : f();
|
|
1531
1531
|
});
|
|
1532
|
-
const r = await import("./breakpoints-
|
|
1533
|
-
t.value =
|
|
1532
|
+
const r = await import("./breakpoints-O2rDlMRj.js"), { BreakpointManager: l } = r, c = de(new l(s.plugin));
|
|
1533
|
+
t.value = de(c);
|
|
1534
1534
|
const u = () => {
|
|
1535
1535
|
n.value = c.active, i.value = c.resizeDirection;
|
|
1536
1536
|
};
|
|
@@ -1828,14 +1828,14 @@ function vo(e, s, t, n, i, o) {
|
|
|
1828
1828
|
k(y(t.title), 1)
|
|
1829
1829
|
])
|
|
1830
1830
|
], 8, yo),
|
|
1831
|
-
|
|
1831
|
+
Ce(h("div", {
|
|
1832
1832
|
class: "CollapsibleRegion__content",
|
|
1833
1833
|
tabindex: "-1",
|
|
1834
1834
|
ref: "content",
|
|
1835
1835
|
id: i.contentId,
|
|
1836
1836
|
"aria-hidden": !i.isOpen,
|
|
1837
1837
|
"aria-labelledby": i.toggleId,
|
|
1838
|
-
style:
|
|
1838
|
+
style: F(o.contentStyles)
|
|
1839
1839
|
}, [
|
|
1840
1840
|
h("div", _o, [
|
|
1841
1841
|
g(e.$slots, "default")
|
|
@@ -1955,7 +1955,7 @@ function wo(e, s, t, n, i, o) {
|
|
|
1955
1955
|
key: _,
|
|
1956
1956
|
class: m([t.classes.item, f?.classes?.item])
|
|
1957
1957
|
}, [
|
|
1958
|
-
|
|
1958
|
+
Ce((a(), p(B(f.to || f.path ? "router-link" : f.click ? "button" : "a"), Z({ ref_for: !0 }, {
|
|
1959
1959
|
...f.to || f.path ? { to: f.to || f.path } : {},
|
|
1960
1960
|
...f.href ? { href: f.href || "#" } : {}
|
|
1961
1961
|
}, {
|
|
@@ -2147,14 +2147,14 @@ function lf(e, s) {
|
|
|
2147
2147
|
pages: {}
|
|
2148
2148
|
}, f = i.value, _ = o.value, b = 5, x = (U) => ({ query: { ...t.query, page: U } });
|
|
2149
2149
|
f > 1 && (u.first = { href: x(1) }, u.previous = { href: x(f - 1) }), f < _ && (u.next = { href: x(f + 1) }, u.last = { href: x(_) });
|
|
2150
|
-
let I,
|
|
2150
|
+
let I, H;
|
|
2151
2151
|
if (_ <= b)
|
|
2152
|
-
I = 1,
|
|
2152
|
+
I = 1, H = _;
|
|
2153
2153
|
else {
|
|
2154
2154
|
const U = Math.floor(b / 2), Q = Math.ceil(b / 2) - 1;
|
|
2155
|
-
f <= U ? (I = 1,
|
|
2155
|
+
f <= U ? (I = 1, H = b) : f + Q >= _ ? (I = _ - b + 1, H = _) : (I = f - U, H = f + Q);
|
|
2156
2156
|
}
|
|
2157
|
-
for (let U = I; U <=
|
|
2157
|
+
for (let U = I; U <= H; U++)
|
|
2158
2158
|
u.pages[U] = { href: x(U) };
|
|
2159
2159
|
return u;
|
|
2160
2160
|
}), c = S(() => {
|
|
@@ -3058,7 +3058,7 @@ function yi(e, s, t, n, i, o) {
|
|
|
3058
3058
|
]]),
|
|
3059
3059
|
onMousedown: o.onMousedown,
|
|
3060
3060
|
onMouseup: o.onMouseup,
|
|
3061
|
-
style:
|
|
3061
|
+
style: F({ cursor: i.cursorStyle }),
|
|
3062
3062
|
target: t.target,
|
|
3063
3063
|
to: t.to,
|
|
3064
3064
|
href: t.href,
|
|
@@ -3274,7 +3274,7 @@ const vf = /* @__PURE__ */ C(ci, [["render", yi]]), bf = {
|
|
|
3274
3274
|
},
|
|
3275
3275
|
e.classes.list
|
|
3276
3276
|
]),
|
|
3277
|
-
style:
|
|
3277
|
+
style: F({
|
|
3278
3278
|
listStyleType: e.listStyleType
|
|
3279
3279
|
}),
|
|
3280
3280
|
reversed: e.reversed,
|
|
@@ -3657,7 +3657,7 @@ function Zi(e, s, t, n, i, o) {
|
|
|
3657
3657
|
}, [
|
|
3658
3658
|
(a(), p(B(t.titleElement), {
|
|
3659
3659
|
class: m(["layout-flex type-max-width-small no-margin", t.classes.title]),
|
|
3660
|
-
style:
|
|
3660
|
+
style: F({ alignItems: t.iconAlign })
|
|
3661
3661
|
}, {
|
|
3662
3662
|
default: w(() => [
|
|
3663
3663
|
t.icon ? (a(), p(r, {
|
|
@@ -4066,12 +4066,12 @@ function Rr(e, s, t, n, i, o) {
|
|
|
4066
4066
|
h("div", Tr, [
|
|
4067
4067
|
h("div", {
|
|
4068
4068
|
class: "progress-bar__bar",
|
|
4069
|
-
style:
|
|
4069
|
+
style: F(`width: ${o.percentage}%`)
|
|
4070
4070
|
}, null, 4),
|
|
4071
4071
|
t.deficit ? (a(), d("div", {
|
|
4072
4072
|
key: 0,
|
|
4073
4073
|
class: "progress-bar__bar--deficit",
|
|
4074
|
-
style:
|
|
4074
|
+
style: F(`width: ${o.defPercentage}%`)
|
|
4075
4075
|
}, null, 4)) : v("", !0)
|
|
4076
4076
|
]),
|
|
4077
4077
|
h("div", $r, [
|
|
@@ -4170,7 +4170,7 @@ function Pr(e, s, t, n, i, o) {
|
|
|
4170
4170
|
r: "16",
|
|
4171
4171
|
cx: "16",
|
|
4172
4172
|
cy: "16",
|
|
4173
|
-
style:
|
|
4173
|
+
style: F({ strokeDasharray: o.endDasharray })
|
|
4174
4174
|
}, null, 4),
|
|
4175
4175
|
h("circle", {
|
|
4176
4176
|
class: "progress-donut__chart-mask",
|
|
@@ -4204,9 +4204,9 @@ function Fr(e, s) {
|
|
|
4204
4204
|
});
|
|
4205
4205
|
}
|
|
4206
4206
|
function Xf(e, s = {}) {
|
|
4207
|
-
const t = ($,
|
|
4208
|
-
const
|
|
4209
|
-
return
|
|
4207
|
+
const t = ($, P) => {
|
|
4208
|
+
const L = $[P];
|
|
4209
|
+
return L === null || typeof L > "u" ? [] : Array.isArray(L) ? L : [L];
|
|
4210
4210
|
}, {
|
|
4211
4211
|
initialFacets: n,
|
|
4212
4212
|
facetFields: i,
|
|
@@ -4217,72 +4217,75 @@ function Xf(e, s = {}) {
|
|
|
4217
4217
|
searchOptions: u = {},
|
|
4218
4218
|
getItemFacet: f = t,
|
|
4219
4219
|
getSortValue: _ = ($) => $.title || $.label || ""
|
|
4220
|
-
} = s, b = ($) => $.sort((
|
|
4221
|
-
const
|
|
4222
|
-
return
|
|
4220
|
+
} = s, b = ($) => $.sort((P, L) => {
|
|
4221
|
+
const N = _(P), W = _(L);
|
|
4222
|
+
return N && W ? String(N).localeCompare(String(W)) : N ? -1 : W ? 1 : 0;
|
|
4223
4223
|
}), x = {
|
|
4224
4224
|
az: { text: "A-Z", sort: b },
|
|
4225
4225
|
za: { text: "Z-A", sort: ($) => b($).reverse() }
|
|
4226
4226
|
};
|
|
4227
4227
|
function I($) {
|
|
4228
|
-
return ($ || []).map((
|
|
4229
|
-
...
|
|
4230
|
-
open:
|
|
4231
|
-
children:
|
|
4232
|
-
...
|
|
4233
|
-
selected:
|
|
4228
|
+
return ($ || []).map((P) => ({
|
|
4229
|
+
...P,
|
|
4230
|
+
open: P.open || !1,
|
|
4231
|
+
children: P.children.map((L) => ({
|
|
4232
|
+
...L,
|
|
4233
|
+
selected: L.selected || !1
|
|
4234
4234
|
})),
|
|
4235
4235
|
selectedCount: 0
|
|
4236
4236
|
}));
|
|
4237
4237
|
}
|
|
4238
|
-
const
|
|
4239
|
-
i && !n && ds(
|
|
4238
|
+
const H = S(() => !i || !e.value?.length ? null : Fr(e.value, i)), U = M(I(n || H.value)), Q = M(o), Ae = M(r);
|
|
4239
|
+
i && !n && ds(H, ($) => {
|
|
4240
4240
|
U.value = I($);
|
|
4241
4241
|
});
|
|
4242
|
-
const
|
|
4242
|
+
const Oe = S(() => ({
|
|
4243
4243
|
...l ? {} : x,
|
|
4244
4244
|
...c
|
|
4245
|
-
})),
|
|
4245
|
+
})), ae = S(() => ({
|
|
4246
4246
|
shouldSort: !0,
|
|
4247
4247
|
keys: ["title", "label", "description", "author"],
|
|
4248
4248
|
...u
|
|
4249
|
-
})),
|
|
4249
|
+
})), X = S(() => {
|
|
4250
4250
|
const $ = [];
|
|
4251
|
-
return U.value.forEach((
|
|
4252
|
-
const { name:
|
|
4253
|
-
let
|
|
4254
|
-
|
|
4255
|
-
Ct.selected && (++
|
|
4256
|
-
}),
|
|
4251
|
+
return U.value.forEach((P) => {
|
|
4252
|
+
const { name: L, uid: N, children: W } = P;
|
|
4253
|
+
let ne = 0, kt = !1;
|
|
4254
|
+
W && W.forEach((Ct) => {
|
|
4255
|
+
Ct.selected && (++ne, kt || ($.push({ uid: N, name: L, children: [] }), kt = !0), $[$.length - 1].children.push(Ct));
|
|
4256
|
+
}), P.selectedCount = ne;
|
|
4257
4257
|
}), $;
|
|
4258
|
-
}),
|
|
4259
|
-
const
|
|
4260
|
-
return
|
|
4261
|
-
})) : e.value),
|
|
4262
|
-
const $ =
|
|
4263
|
-
return typeof $ != "function" ?
|
|
4258
|
+
}), xe = S(() => X.value.length ? e.value.filter(($) => X.value.every((P) => {
|
|
4259
|
+
const L = f($, P.uid);
|
|
4260
|
+
return L && L.length ? P.children.some((N) => L.includes(N.uid)) : !1;
|
|
4261
|
+
})) : e.value), ye = S(() => Q.value?.length ? new _n(xe.value, ae.value).search(Q.value).map((P) => P.item) : xe.value), Re = S(() => {
|
|
4262
|
+
const $ = Oe.value[Ae.value]?.sort;
|
|
4263
|
+
return typeof $ != "function" ? ye.value : $([...ye.value]);
|
|
4264
4264
|
});
|
|
4265
4265
|
function D() {
|
|
4266
4266
|
U.value.forEach(($) => {
|
|
4267
|
-
$.children && $.children.forEach((
|
|
4267
|
+
$.children && $.children.forEach((P) => P.selected = !1);
|
|
4268
4268
|
});
|
|
4269
4269
|
}
|
|
4270
|
-
function ee({ groupUid: $, facetUid:
|
|
4271
|
-
const
|
|
4272
|
-
if (
|
|
4273
|
-
|
|
4274
|
-
|
|
4270
|
+
function ee({ groupUid: $, facetUid: P, selected: L }) {
|
|
4271
|
+
const N = U.value.find((W) => W.uid === $);
|
|
4272
|
+
if (N) {
|
|
4273
|
+
!N.multiple && L && N.children.forEach((ne) => {
|
|
4274
|
+
ne.uid !== P && (ne.selected = !1);
|
|
4275
|
+
});
|
|
4276
|
+
const W = N.children.find((ne) => ne.uid === P);
|
|
4277
|
+
W && (W.selected = L);
|
|
4275
4278
|
}
|
|
4276
4279
|
}
|
|
4277
4280
|
return {
|
|
4278
4281
|
// State
|
|
4279
4282
|
facets: U,
|
|
4280
4283
|
searchValue: Q,
|
|
4281
|
-
selectedSort:
|
|
4282
|
-
sortTypes:
|
|
4284
|
+
selectedSort: Ae,
|
|
4285
|
+
sortTypes: Oe,
|
|
4283
4286
|
// Computed
|
|
4284
|
-
displayItems:
|
|
4285
|
-
selectedFacets:
|
|
4287
|
+
displayItems: Re,
|
|
4288
|
+
selectedFacets: X,
|
|
4286
4289
|
// Methods
|
|
4287
4290
|
clearFilters: D,
|
|
4288
4291
|
handleFacetChange: ee
|
|
@@ -4639,7 +4642,7 @@ const Mt = {
|
|
|
4639
4642
|
}, [...c[1] || (c[1] = [
|
|
4640
4643
|
h("strong", null, "Search", -1)
|
|
4641
4644
|
])], 2),
|
|
4642
|
-
|
|
4645
|
+
Ce(h("input", {
|
|
4643
4646
|
id: o,
|
|
4644
4647
|
class: m(e.classes.searchInput),
|
|
4645
4648
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
|
|
@@ -4935,7 +4938,7 @@ function yl(e, s, t, n, i, o) {
|
|
|
4935
4938
|
"scroll-anchors__indicator--can-transition": i.indicatorAnimReady
|
|
4936
4939
|
}]),
|
|
4937
4940
|
ref: "indicator",
|
|
4938
|
-
style:
|
|
4941
|
+
style: F({
|
|
4939
4942
|
opacity: o.indicatorStyles ? "1" : "0",
|
|
4940
4943
|
transform: `translateY(${o.indicatorStyles.y}px)`,
|
|
4941
4944
|
height: `${o.indicatorStyles.height}px`
|
|
@@ -5085,7 +5088,7 @@ const lh = {
|
|
|
5085
5088
|
(a(!0), d(O, null, A(o, (l) => (a(), d("span", {
|
|
5086
5089
|
key: l,
|
|
5087
5090
|
class: m(["skeleton skeleton--text skeleton--inline", { "skeleton--background-alt": l.alt }]),
|
|
5088
|
-
style:
|
|
5091
|
+
style: F({ width: `${l.width}%` })
|
|
5089
5092
|
}, null, 6))), 128))
|
|
5090
5093
|
]))), 128))
|
|
5091
5094
|
]));
|
|
@@ -5491,7 +5494,7 @@ function Yl(e, s, t, n, i, o) {
|
|
|
5491
5494
|
key: `br-${l}`,
|
|
5492
5495
|
id: t.optionalAttr(t.isActual && r.id),
|
|
5493
5496
|
class: m(t.resolveClasses(t.classes.row, { row: r.data, rowIndex: l, isActual: t.isActual, foot: t.foot })),
|
|
5494
|
-
style:
|
|
5497
|
+
style: F({
|
|
5495
5498
|
height: r.height
|
|
5496
5499
|
})
|
|
5497
5500
|
}, [
|
|
@@ -5501,7 +5504,7 @@ function Yl(e, s, t, n, i, o) {
|
|
|
5501
5504
|
key: `bc-${u}`,
|
|
5502
5505
|
headers: t.optionalAttr(t.isActual && t.getCellHeaders(c, l)),
|
|
5503
5506
|
class: m(t.resolveClasses(c.class, { column: c, index: u, isActual: t.isActual, row: r, rowIndex: l, foot: t.foot })),
|
|
5504
|
-
style:
|
|
5507
|
+
style: F({
|
|
5505
5508
|
width: t.columnWidth
|
|
5506
5509
|
})
|
|
5507
5510
|
}, {
|
|
@@ -5627,7 +5630,7 @@ function la(e, s, t, n, i, o) {
|
|
|
5627
5630
|
key: `hr-${c}`,
|
|
5628
5631
|
id: o.optionalAttr(t.isActual && l.id),
|
|
5629
5632
|
class: m(t.resolveClasses(t.classes.rowHeader, { row: l, rowIndex: c, isActual: t.isActual })),
|
|
5630
|
-
style:
|
|
5633
|
+
style: F({
|
|
5631
5634
|
height: l.height
|
|
5632
5635
|
})
|
|
5633
5636
|
}, [
|
|
@@ -5645,7 +5648,7 @@ function la(e, s, t, n, i, o) {
|
|
|
5645
5648
|
},
|
|
5646
5649
|
t.resolveClasses(u.classHeader, { column: u, index: f, isActual: t.isActual })
|
|
5647
5650
|
]),
|
|
5648
|
-
style:
|
|
5651
|
+
style: F({
|
|
5649
5652
|
width: u.width
|
|
5650
5653
|
}),
|
|
5651
5654
|
"aria-sort": u.sort ? u.sortAscending ? "ascending" : "descending" : null,
|
|
@@ -5712,7 +5715,7 @@ function la(e, s, t, n, i, o) {
|
|
|
5712
5715
|
columnWidth: t.columnWidth,
|
|
5713
5716
|
classes: t.classes,
|
|
5714
5717
|
value: o.value
|
|
5715
|
-
},
|
|
5718
|
+
}, ue({ _: 2 }, [
|
|
5716
5719
|
A(e.$slots, (l, c) => ({
|
|
5717
5720
|
name: c,
|
|
5718
5721
|
fn: w((u) => [
|
|
@@ -5733,7 +5736,7 @@ function la(e, s, t, n, i, o) {
|
|
|
5733
5736
|
classes: t.classes,
|
|
5734
5737
|
value: o.value,
|
|
5735
5738
|
foot: ""
|
|
5736
|
-
},
|
|
5739
|
+
}, ue({ _: 2 }, [
|
|
5737
5740
|
A(e.$slots, (l, c) => ({
|
|
5738
5741
|
name: c,
|
|
5739
5742
|
fn: w((u) => [
|
|
@@ -5801,23 +5804,23 @@ function _a(e) {
|
|
|
5801
5804
|
function va(e) {
|
|
5802
5805
|
return this.__data__.has(e);
|
|
5803
5806
|
}
|
|
5804
|
-
var Es = typeof global == "object" && global && global.Object === Object && global, ba = typeof self == "object" && self && self.Object === Object && self, K = Es || ba || Function("return this")(),
|
|
5807
|
+
var Es = typeof global == "object" && global && global.Object === Object && global, ba = typeof self == "object" && self && self.Object === Object && self, K = Es || ba || Function("return this")(), fe = K.Symbol, zs = Object.prototype, wa = zs.hasOwnProperty, Sa = zs.toString, pe = fe ? fe.toStringTag : void 0;
|
|
5805
5808
|
function ka(e) {
|
|
5806
|
-
var s = wa.call(e,
|
|
5809
|
+
var s = wa.call(e, pe), t = e[pe];
|
|
5807
5810
|
try {
|
|
5808
|
-
e[
|
|
5811
|
+
e[pe] = void 0;
|
|
5809
5812
|
var n = !0;
|
|
5810
5813
|
} catch {
|
|
5811
5814
|
}
|
|
5812
5815
|
var i = Sa.call(e);
|
|
5813
|
-
return n && (s ? e[
|
|
5816
|
+
return n && (s ? e[pe] = t : delete e[pe]), i;
|
|
5814
5817
|
}
|
|
5815
5818
|
var Ca = Object.prototype, Ta = Ca.toString;
|
|
5816
5819
|
function $a(e) {
|
|
5817
5820
|
return Ta.call(e);
|
|
5818
5821
|
}
|
|
5819
|
-
var Aa = "[object Null]", Oa = "[object Undefined]", Bt =
|
|
5820
|
-
function
|
|
5822
|
+
var Aa = "[object Null]", Oa = "[object Undefined]", Bt = fe ? fe.toStringTag : void 0;
|
|
5823
|
+
function Te(e) {
|
|
5821
5824
|
return e == null ? e === void 0 ? Oa : Aa : Bt && Bt in Object(e) ? ka(e) : $a(e);
|
|
5822
5825
|
}
|
|
5823
5826
|
function We(e) {
|
|
@@ -5828,7 +5831,7 @@ var xa = "[object AsyncFunction]", Ra = "[object Function]", Ua = "[object Gener
|
|
|
5828
5831
|
function Is(e) {
|
|
5829
5832
|
if (!We(e))
|
|
5830
5833
|
return !1;
|
|
5831
|
-
var s =
|
|
5834
|
+
var s = Te(e);
|
|
5832
5835
|
return s == Ra || s == Ua || s == xa || s == ja;
|
|
5833
5836
|
}
|
|
5834
5837
|
var Ge = K["__core-js_shared__"], Pt = function() {
|
|
@@ -5839,7 +5842,7 @@ function Ea(e) {
|
|
|
5839
5842
|
return !!Pt && Pt in e;
|
|
5840
5843
|
}
|
|
5841
5844
|
var za = Function.prototype, Ia = za.toString;
|
|
5842
|
-
function
|
|
5845
|
+
function re(e) {
|
|
5843
5846
|
if (e != null) {
|
|
5844
5847
|
try {
|
|
5845
5848
|
return Ia.call(e);
|
|
@@ -5859,18 +5862,18 @@ function Da(e) {
|
|
|
5859
5862
|
if (!We(e) || Ea(e))
|
|
5860
5863
|
return !1;
|
|
5861
5864
|
var s = Is(e) ? Va : Ba;
|
|
5862
|
-
return s.test(
|
|
5865
|
+
return s.test(re(e));
|
|
5863
5866
|
}
|
|
5864
5867
|
function Na(e, s) {
|
|
5865
5868
|
return e?.[s];
|
|
5866
5869
|
}
|
|
5867
|
-
function
|
|
5870
|
+
function le(e, s) {
|
|
5868
5871
|
var t = Na(e, s);
|
|
5869
5872
|
return Da(t) ? t : void 0;
|
|
5870
5873
|
}
|
|
5871
|
-
var
|
|
5874
|
+
var Se = le(K, "Map"), ke = le(Object, "create");
|
|
5872
5875
|
function Wa() {
|
|
5873
|
-
this.__data__ =
|
|
5876
|
+
this.__data__ = ke ? ke(null) : {}, this.size = 0;
|
|
5874
5877
|
}
|
|
5875
5878
|
function Xa(e) {
|
|
5876
5879
|
var s = this.has(e) && delete this.__data__[e];
|
|
@@ -5879,7 +5882,7 @@ function Xa(e) {
|
|
|
5879
5882
|
var qa = "__lodash_hash_undefined__", Ya = Object.prototype, Ka = Ya.hasOwnProperty;
|
|
5880
5883
|
function Ga(e) {
|
|
5881
5884
|
var s = this.__data__;
|
|
5882
|
-
if (
|
|
5885
|
+
if (ke) {
|
|
5883
5886
|
var t = s[e];
|
|
5884
5887
|
return t === qa ? void 0 : t;
|
|
5885
5888
|
}
|
|
@@ -5888,30 +5891,30 @@ function Ga(e) {
|
|
|
5888
5891
|
var Za = Object.prototype, Ja = Za.hasOwnProperty;
|
|
5889
5892
|
function Qa(e) {
|
|
5890
5893
|
var s = this.__data__;
|
|
5891
|
-
return
|
|
5894
|
+
return ke ? s[e] !== void 0 : Ja.call(s, e);
|
|
5892
5895
|
}
|
|
5893
5896
|
var ec = "__lodash_hash_undefined__";
|
|
5894
5897
|
function tc(e, s) {
|
|
5895
5898
|
var t = this.__data__;
|
|
5896
|
-
return this.size += this.has(e) ? 0 : 1, t[e] =
|
|
5899
|
+
return this.size += this.has(e) ? 0 : 1, t[e] = ke && s === void 0 ? ec : s, this;
|
|
5897
5900
|
}
|
|
5898
|
-
function
|
|
5901
|
+
function ie(e) {
|
|
5899
5902
|
var s = -1, t = e == null ? 0 : e.length;
|
|
5900
5903
|
for (this.clear(); ++s < t; ) {
|
|
5901
5904
|
var n = e[s];
|
|
5902
5905
|
this.set(n[0], n[1]);
|
|
5903
5906
|
}
|
|
5904
5907
|
}
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5908
|
+
ie.prototype.clear = Wa;
|
|
5909
|
+
ie.prototype.delete = Xa;
|
|
5910
|
+
ie.prototype.get = Ga;
|
|
5911
|
+
ie.prototype.has = Qa;
|
|
5912
|
+
ie.prototype.set = tc;
|
|
5910
5913
|
function sc() {
|
|
5911
5914
|
this.size = 0, this.__data__ = {
|
|
5912
|
-
hash: new
|
|
5913
|
-
map: new (
|
|
5914
|
-
string: new
|
|
5915
|
+
hash: new ie(),
|
|
5916
|
+
map: new (Se || J)(),
|
|
5917
|
+
string: new ie()
|
|
5915
5918
|
};
|
|
5916
5919
|
}
|
|
5917
5920
|
function nc(e) {
|
|
@@ -5936,38 +5939,38 @@ function lc(e, s) {
|
|
|
5936
5939
|
var t = Xe(this, e), n = t.size;
|
|
5937
5940
|
return t.set(e, s), this.size += t.size == n ? 0 : 1, this;
|
|
5938
5941
|
}
|
|
5939
|
-
function
|
|
5942
|
+
function me(e) {
|
|
5940
5943
|
var s = -1, t = e == null ? 0 : e.length;
|
|
5941
5944
|
for (this.clear(); ++s < t; ) {
|
|
5942
5945
|
var n = e[s];
|
|
5943
5946
|
this.set(n[0], n[1]);
|
|
5944
5947
|
}
|
|
5945
5948
|
}
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5949
|
+
me.prototype.clear = sc;
|
|
5950
|
+
me.prototype.delete = oc;
|
|
5951
|
+
me.prototype.get = ic;
|
|
5952
|
+
me.prototype.has = rc;
|
|
5953
|
+
me.prototype.set = lc;
|
|
5951
5954
|
var ac = 200;
|
|
5952
5955
|
function cc(e, s) {
|
|
5953
5956
|
var t = this.__data__;
|
|
5954
5957
|
if (t instanceof J) {
|
|
5955
5958
|
var n = t.__data__;
|
|
5956
|
-
if (!
|
|
5959
|
+
if (!Se || n.length < ac - 1)
|
|
5957
5960
|
return n.push([e, s]), this.size = ++t.size, this;
|
|
5958
|
-
t = this.__data__ = new
|
|
5961
|
+
t = this.__data__ = new me(n);
|
|
5959
5962
|
}
|
|
5960
5963
|
return t.set(e, s), this.size = t.size, this;
|
|
5961
5964
|
}
|
|
5962
|
-
function
|
|
5965
|
+
function ge(e) {
|
|
5963
5966
|
var s = this.__data__ = new J(e);
|
|
5964
5967
|
this.size = s.size;
|
|
5965
5968
|
}
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5969
|
+
ge.prototype.clear = ya;
|
|
5970
|
+
ge.prototype.delete = pa;
|
|
5971
|
+
ge.prototype.get = _a;
|
|
5972
|
+
ge.prototype.has = va;
|
|
5973
|
+
ge.prototype.set = cc;
|
|
5971
5974
|
function uc(e, s) {
|
|
5972
5975
|
for (var t = -1, n = e == null ? 0 : e.length; ++t < n && s(e[t], t, e) !== !1; )
|
|
5973
5976
|
;
|
|
@@ -5975,7 +5978,7 @@ function uc(e, s) {
|
|
|
5975
5978
|
}
|
|
5976
5979
|
var Ft = function() {
|
|
5977
5980
|
try {
|
|
5978
|
-
var e =
|
|
5981
|
+
var e = le(Object, "defineProperty");
|
|
5979
5982
|
return e({}, "", {}), e;
|
|
5980
5983
|
} catch {
|
|
5981
5984
|
}
|
|
@@ -5998,17 +6001,17 @@ function gc(e, s) {
|
|
|
5998
6001
|
n[t] = s(t);
|
|
5999
6002
|
return n;
|
|
6000
6003
|
}
|
|
6001
|
-
function
|
|
6004
|
+
function $e(e) {
|
|
6002
6005
|
return e != null && typeof e == "object";
|
|
6003
6006
|
}
|
|
6004
6007
|
var yc = "[object Arguments]";
|
|
6005
6008
|
function Lt(e) {
|
|
6006
|
-
return
|
|
6009
|
+
return $e(e) && Te(e) == yc;
|
|
6007
6010
|
}
|
|
6008
6011
|
var Ms = Object.prototype, pc = Ms.hasOwnProperty, _c = Ms.propertyIsEnumerable, vc = Lt(/* @__PURE__ */ function() {
|
|
6009
6012
|
return arguments;
|
|
6010
6013
|
}()) ? Lt : function(e) {
|
|
6011
|
-
return
|
|
6014
|
+
return $e(e) && pc.call(e, "callee") && !_c.call(e, "callee");
|
|
6012
6015
|
}, bt = Array.isArray;
|
|
6013
6016
|
function bc() {
|
|
6014
6017
|
return !1;
|
|
@@ -6026,20 +6029,20 @@ var Ac = "[object Arguments]", Oc = "[object Array]", xc = "[object Boolean]", R
|
|
|
6026
6029
|
E[Vc] = E[Dc] = E[Nc] = E[Wc] = E[Xc] = E[qc] = E[Yc] = E[Kc] = E[Gc] = !0;
|
|
6027
6030
|
E[Ac] = E[Oc] = E[Lc] = E[xc] = E[Hc] = E[Rc] = E[Uc] = E[jc] = E[Ec] = E[zc] = E[Ic] = E[Mc] = E[Bc] = E[Pc] = E[Fc] = !1;
|
|
6028
6031
|
function Zc(e) {
|
|
6029
|
-
return
|
|
6032
|
+
return $e(e) && Fs(e.length) && !!E[Te(e)];
|
|
6030
6033
|
}
|
|
6031
6034
|
function wt(e) {
|
|
6032
6035
|
return function(s) {
|
|
6033
6036
|
return e(s);
|
|
6034
6037
|
};
|
|
6035
6038
|
}
|
|
6036
|
-
var Ls = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
6039
|
+
var Ls = typeof exports == "object" && exports && !exports.nodeType && exports, we = Ls && typeof module == "object" && module && !module.nodeType && module, Jc = we && we.exports === Ls, Ze = Jc && Es.process, he = function() {
|
|
6037
6040
|
try {
|
|
6038
|
-
var e =
|
|
6041
|
+
var e = we && we.require && we.require("util").types;
|
|
6039
6042
|
return e || Ze && Ze.binding && Ze.binding("util");
|
|
6040
6043
|
} catch {
|
|
6041
6044
|
}
|
|
6042
|
-
}(), Dt =
|
|
6045
|
+
}(), Dt = he && he.isTypedArray, Qc = Dt ? wt(Dt) : Zc, eu = Object.prototype, tu = eu.hasOwnProperty;
|
|
6043
6046
|
function su(e, s) {
|
|
6044
6047
|
var t = bt(e), n = !t && vc(e), i = !t && !n && Ps(e), o = !t && !n && !i && Qc(e), r = t || n || i || o, l = r ? gc(e.length, String) : [], c = l.length;
|
|
6045
6048
|
for (var u in e)
|
|
@@ -6108,9 +6111,9 @@ function vu(e, s, t) {
|
|
|
6108
6111
|
function bu(e) {
|
|
6109
6112
|
return vu(e, cu, yu);
|
|
6110
6113
|
}
|
|
6111
|
-
var nt =
|
|
6112
|
-
(nt && G(new nt(new ArrayBuffer(1))) != Zt ||
|
|
6113
|
-
var s =
|
|
6114
|
+
var nt = le(K, "DataView"), ot = le(K, "Promise"), it = le(K, "Set"), rt = le(K, "WeakMap"), qt = "[object Map]", wu = "[object Object]", Yt = "[object Promise]", Kt = "[object Set]", Gt = "[object WeakMap]", Zt = "[object DataView]", Su = re(nt), ku = re(Se), Cu = re(ot), Tu = re(it), $u = re(rt), G = Te;
|
|
6115
|
+
(nt && G(new nt(new ArrayBuffer(1))) != Zt || Se && G(new Se()) != qt || ot && G(ot.resolve()) != Yt || it && G(new it()) != Kt || rt && G(new rt()) != Gt) && (G = function(e) {
|
|
6116
|
+
var s = Te(e), t = s == wu ? e.constructor : void 0, n = t ? re(t) : "";
|
|
6114
6117
|
if (n)
|
|
6115
6118
|
switch (n) {
|
|
6116
6119
|
case Su:
|
|
@@ -6145,7 +6148,7 @@ function ju(e) {
|
|
|
6145
6148
|
var s = new e.constructor(e.source, Uu.exec(e));
|
|
6146
6149
|
return s.lastIndex = e.lastIndex, s;
|
|
6147
6150
|
}
|
|
6148
|
-
var Qt =
|
|
6151
|
+
var Qt = fe ? fe.prototype : void 0, es = Qt ? Qt.valueOf : void 0;
|
|
6149
6152
|
function Eu(e) {
|
|
6150
6153
|
return es ? Object(es.call(e)) : {};
|
|
6151
6154
|
}
|
|
@@ -6205,13 +6208,13 @@ function sd(e) {
|
|
|
6205
6208
|
}
|
|
6206
6209
|
var nd = "[object Map]";
|
|
6207
6210
|
function od(e) {
|
|
6208
|
-
return
|
|
6211
|
+
return $e(e) && G(e) == nd;
|
|
6209
6212
|
}
|
|
6210
|
-
var ss =
|
|
6213
|
+
var ss = he && he.isMap, id = ss ? wt(ss) : od, rd = "[object Set]";
|
|
6211
6214
|
function ld(e) {
|
|
6212
|
-
return
|
|
6215
|
+
return $e(e) && G(e) == rd;
|
|
6213
6216
|
}
|
|
6214
|
-
var ns =
|
|
6217
|
+
var ns = he && he.isSet, ad = ns ? wt(ns) : ld, Ns = "[object Arguments]", cd = "[object Array]", ud = "[object Boolean]", dd = "[object Date]", fd = "[object Error]", Ws = "[object Function]", hd = "[object GeneratorFunction]", md = "[object Map]", gd = "[object Number]", Xs = "[object Object]", yd = "[object RegExp]", pd = "[object Set]", _d = "[object String]", vd = "[object Symbol]", bd = "[object WeakMap]", wd = "[object ArrayBuffer]", Sd = "[object DataView]", kd = "[object Float32Array]", Cd = "[object Float64Array]", Td = "[object Int8Array]", $d = "[object Int16Array]", Ad = "[object Int32Array]", Od = "[object Uint8Array]", xd = "[object Uint8ClampedArray]", Rd = "[object Uint16Array]", Ud = "[object Uint32Array]", j = {};
|
|
6215
6218
|
j[Ns] = j[cd] = j[wd] = j[Sd] = j[ud] = j[dd] = j[kd] = j[Cd] = j[Td] = j[$d] = j[Ad] = j[md] = j[gd] = j[Xs] = j[yd] = j[pd] = j[_d] = j[vd] = j[Od] = j[xd] = j[Rd] = j[Ud] = !0;
|
|
6216
6219
|
j[fd] = j[Ws] = j[bd] = !1;
|
|
6217
6220
|
function Ie(e, s, t, n, i, o) {
|
|
@@ -6235,7 +6238,7 @@ function Ie(e, s, t, n, i, o) {
|
|
|
6235
6238
|
r = ed(e, c);
|
|
6236
6239
|
}
|
|
6237
6240
|
}
|
|
6238
|
-
o || (o = new
|
|
6241
|
+
o || (o = new ge());
|
|
6239
6242
|
var f = o.get(e);
|
|
6240
6243
|
if (f)
|
|
6241
6244
|
return f;
|
|
@@ -6686,13 +6689,13 @@ function Nd(e, s, t, n, i, o) {
|
|
|
6686
6689
|
getColumnTitle: t.getColumnTitle,
|
|
6687
6690
|
idPrefix: t.idPrefix,
|
|
6688
6691
|
headerRows: i.headerRows,
|
|
6689
|
-
style:
|
|
6692
|
+
style: F({
|
|
6690
6693
|
opacity: i.sizesCalculated ? "1" : "0",
|
|
6691
6694
|
pointerEvents: i.sizesCalculated ? "auto" : "none",
|
|
6692
6695
|
width: i.tableWidth
|
|
6693
6696
|
}),
|
|
6694
6697
|
onColumnSorted: o.applySort
|
|
6695
|
-
},
|
|
6698
|
+
}, ue({ _: 2 }, [
|
|
6696
6699
|
A(e.$slots, (l, c) => ({
|
|
6697
6700
|
name: c,
|
|
6698
6701
|
fn: w((u) => [
|
|
@@ -6713,12 +6716,12 @@ function Nd(e, s, t, n, i, o) {
|
|
|
6713
6716
|
getColumnTitle: t.getColumnTitle,
|
|
6714
6717
|
idPrefix: t.idPrefix,
|
|
6715
6718
|
headerRows: o.headerRowsFirst,
|
|
6716
|
-
style:
|
|
6719
|
+
style: F({
|
|
6717
6720
|
opacity: o.headerOpacityX,
|
|
6718
6721
|
pointerEvents: o.headerVisibleX ? "auto" : "none"
|
|
6719
6722
|
}),
|
|
6720
6723
|
onColumnSorted: o.applySort
|
|
6721
|
-
},
|
|
6724
|
+
}, ue({ _: 2 }, [
|
|
6722
6725
|
A(e.$slots, (l, c) => ({
|
|
6723
6726
|
name: c,
|
|
6724
6727
|
fn: w((u) => [
|
|
@@ -6728,7 +6731,7 @@ function Nd(e, s, t, n, i, o) {
|
|
|
6728
6731
|
]), 1032, ["classes", "caption", "resolveClasses", "getColumnTitle", "idPrefix", "headerRows", "style", "onColumnSorted"])) : v("", !0)
|
|
6729
6732
|
]),
|
|
6730
6733
|
h("div", Fd, [
|
|
6731
|
-
|
|
6734
|
+
Ce(h("div", {
|
|
6732
6735
|
class: m(["table-sticky__controls", o.resolveClasses(t.classes.controls)]),
|
|
6733
6736
|
ref: "controls"
|
|
6734
6737
|
}, [
|
|
@@ -6789,7 +6792,7 @@ function Nd(e, s, t, n, i, o) {
|
|
|
6789
6792
|
onActualHeaderRemoved: o.headerRemoved,
|
|
6790
6793
|
onActualHeaderAdded: o.headerAdded,
|
|
6791
6794
|
onColumnSorted: o.applySort
|
|
6792
|
-
},
|
|
6795
|
+
}, ue({ _: 2 }, [
|
|
6793
6796
|
A(e.$slots, (l, c) => ({
|
|
6794
6797
|
name: c,
|
|
6795
6798
|
fn: w((u) => [
|
|
@@ -6813,12 +6816,12 @@ function Nd(e, s, t, n, i, o) {
|
|
|
6813
6816
|
idPrefix: t.idPrefix,
|
|
6814
6817
|
getRowValue: t.getRowValue,
|
|
6815
6818
|
getColumnTitle: t.getColumnTitle,
|
|
6816
|
-
style:
|
|
6819
|
+
style: F({
|
|
6817
6820
|
opacity: o.headerOpacityX,
|
|
6818
6821
|
pointerEvents: o.headerVisibleX ? "auto" : "none"
|
|
6819
6822
|
}),
|
|
6820
6823
|
onColumnSorted: o.applySort
|
|
6821
|
-
},
|
|
6824
|
+
}, ue({ _: 2 }, [
|
|
6822
6825
|
A(e.$slots, (l, c) => ({
|
|
6823
6826
|
name: c,
|
|
6824
6827
|
fn: w((u) => [
|
|
@@ -6920,7 +6923,7 @@ export {
|
|
|
6920
6923
|
fh as i,
|
|
6921
6924
|
Qn as j,
|
|
6922
6925
|
cf as k,
|
|
6923
|
-
|
|
6926
|
+
ce as l,
|
|
6924
6927
|
uf as m,
|
|
6925
6928
|
df as n,
|
|
6926
6929
|
ff as o,
|
|
@@ -196,6 +196,14 @@ export function useFacets(allItems, options = {}) {
|
|
|
196
196
|
function handleFacetChange({ groupUid, facetUid, selected }) {
|
|
197
197
|
const group = facets.value.find(g => g.uid === groupUid);
|
|
198
198
|
if (group) {
|
|
199
|
+
// For single-select groups, deselect other options when a new one is selected.
|
|
200
|
+
if (!group.multiple && selected) {
|
|
201
|
+
group.children.forEach(f => {
|
|
202
|
+
if (f.uid !== facetUid) {
|
|
203
|
+
f.selected = false;
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
}
|
|
199
207
|
const facet = group.children.find(f => f.uid === facetUid);
|
|
200
208
|
if (facet) {
|
|
201
209
|
facet.selected = selected;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFacets.d.ts","sourceRoot":"","sources":["../../../../lib/components/systems/facets/useFacets.js"],"names":[],"mappings":"AAsCA;;;;;;;;;;;;;GAaG;AACH,oCAZW,OAAO,KAAK,EAAE,GAAG,CAAC,KAAK,KAAQ,CAAC,YAExC;IAAwB,aAAa;IACb,WAAW;IACV,kBAAkB;IAClB,eAAe;IACd,cAAc;IACf,cAAc;IACd,aAAa;IACX,YAAY;IACZ,YAAY;CACzC;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useFacets.d.ts","sourceRoot":"","sources":["../../../../lib/components/systems/facets/useFacets.js"],"names":[],"mappings":"AAsCA;;;;;;;;;;;;;GAaG;AACH,oCAZW,OAAO,KAAK,EAAE,GAAG,CAAC,KAAK,KAAQ,CAAC,YAExC;IAAwB,aAAa;IACb,WAAW;IACV,kBAAkB;IAClB,eAAe;IACd,cAAc;IACf,cAAc;IACd,aAAa;IACX,YAAY;IACZ,YAAY;CACzC;;;;;;;;;;;;;EAiLA"}
|