@ulu/frontend-vue 0.2.0-beta.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/collapsible/UluAccordionGroup.vue.d.ts +2 -2
- package/dist/components/collapsible/UluAccordionGroup.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluAccordionGroup.vue.js +22 -19
- package/dist/components/collapsible/UluDropdown.vue.d.ts +1 -1
- package/dist/components/collapsible/UluDropdown.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluDropdown.vue.js +22 -15
- package/dist/components/collapsible/UluModal.vue.d.ts +43 -248
- package/dist/components/collapsible/UluModal.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluModal.vue.js +139 -191
- package/dist/components/collapsible/UluTabGroup.vue.d.ts +2 -0
- package/dist/components/collapsible/UluTabGroup.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluTabGroup.vue.js +23 -14
- package/dist/components/elements/UluAlert.vue.d.ts +29 -144
- package/dist/components/elements/UluAlert.vue.d.ts.map +1 -1
- package/dist/components/elements/UluAlert.vue.js +39 -50
- package/dist/components/elements/UluBadge.vue.d.ts +6 -6
- package/dist/components/elements/UluBadgeStack.vue.d.ts +1 -1
- package/dist/components/elements/UluBadgeStack.vue.d.ts.map +1 -1
- package/dist/components/elements/UluBadgeStack.vue.js +12 -9
- package/dist/components/elements/UluButton.vue.d.ts +47 -177
- package/dist/components/elements/UluButton.vue.d.ts.map +1 -1
- package/dist/components/elements/UluButton.vue.js +59 -72
- package/dist/components/elements/UluButtonVerbose.vue.d.ts +38 -123
- package/dist/components/elements/UluButtonVerbose.vue.d.ts.map +1 -1
- package/dist/components/elements/UluButtonVerbose.vue.js +52 -65
- package/dist/components/elements/UluCallout.vue.d.ts +20 -25
- package/dist/components/elements/UluCallout.vue.d.ts.map +1 -1
- package/dist/components/elements/UluCallout.vue.js +11 -16
- package/dist/components/elements/UluCaptionedFigure.vue.d.ts +25 -0
- package/dist/components/elements/UluCaptionedFigure.vue.d.ts.map +1 -0
- package/dist/components/elements/UluCaptionedFigure.vue.js +48 -0
- package/dist/components/elements/UluCard.vue.d.ts +2 -2
- package/dist/components/elements/UluDefinitionList.vue.d.ts +4 -2
- package/dist/components/elements/UluDefinitionList.vue.d.ts.map +1 -1
- package/dist/components/elements/UluDefinitionList.vue.js +32 -28
- package/dist/components/elements/UluExternalLink.vue.d.ts +2 -2
- package/dist/components/elements/UluImage.vue.d.ts +14 -0
- package/dist/components/elements/UluImage.vue.d.ts.map +1 -0
- package/dist/components/elements/UluImage.vue.js +53 -0
- package/dist/components/elements/UluList.vue.d.ts.map +1 -1
- package/dist/components/elements/UluList.vue.js +14 -13
- package/dist/components/elements/UluOverflowScroller.vue.d.ts +49 -0
- package/dist/components/elements/UluOverflowScroller.vue.d.ts.map +1 -0
- package/dist/components/elements/UluOverflowScroller.vue.js +138 -0
- package/dist/components/elements/UluScrollSlider.vue.d.ts +38 -0
- package/dist/components/elements/UluScrollSlider.vue.d.ts.map +1 -0
- package/dist/components/elements/UluScrollSlider.vue.js +146 -0
- package/dist/components/elements/UluSlider.vue.d.ts +57 -0
- package/dist/components/elements/UluSlider.vue.d.ts.map +1 -0
- package/dist/components/elements/UluSlider.vue.js +277 -0
- package/dist/components/forms/UluFormFile.vue.d.ts +2 -2
- package/dist/components/forms/UluFormRadio.vue.d.ts +4 -4
- package/dist/components/index.d.ts +6 -0
- package/dist/components/layout/UluTitleRail.vue.d.ts +29 -87
- package/dist/components/layout/UluTitleRail.vue.d.ts.map +1 -1
- package/dist/components/layout/UluTitleRail.vue.js +51 -46
- package/dist/components/navigation/UluBreadcrumb.vue.d.ts +27 -68
- package/dist/components/navigation/UluBreadcrumb.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluBreadcrumb.vue.js +51 -54
- package/dist/components/navigation/UluMenu.vue.d.ts +30 -138
- package/dist/components/navigation/UluMenu.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluMenu.vue.js +85 -84
- package/dist/components/navigation/UluMenuStack.vue.d.ts +12 -2
- package/dist/components/navigation/UluMenuStack.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluMenuStack.vue.js +26 -18
- package/dist/components/navigation/UluNavStrip.vue.d.ts +22 -134
- package/dist/components/navigation/UluNavStrip.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluNavStrip.vue.js +43 -31
- package/dist/components/systems/facets/UluFacetsSidebarLayout.vue.js +10 -10
- package/dist/components/systems/facets/useFacets.d.ts +3 -0
- package/dist/components/systems/facets/useFacets.d.ts.map +1 -1
- package/dist/components/systems/facets/useFacets.js +124 -112
- package/dist/components/systems/index.d.ts +0 -3
- package/dist/components/systems/scroll-anchors/UluScrollAnchors.vue.d.ts +2 -2
- package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts +504 -432
- package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts.map +1 -1
- package/dist/components/systems/table-sticky/UluTableSticky.vue.js +313 -456
- package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts +40 -31
- package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts.map +1 -1
- package/dist/components/systems/table-sticky/UluTableStickyRows.vue.js +43 -45
- package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts +60 -146
- package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts.map +1 -1
- package/dist/components/systems/table-sticky/UluTableStickyTable.vue.js +156 -175
- package/dist/components/utils/UluAction.vue.d.ts +36 -0
- package/dist/components/utils/UluAction.vue.d.ts.map +1 -0
- package/dist/components/utils/UluAction.vue.js +59 -0
- package/dist/components/utils/UluConditionalText.vue.d.ts +7 -26
- package/dist/components/utils/UluConditionalText.vue.d.ts.map +1 -1
- package/dist/components/utils/UluConditionalText.vue.js +12 -14
- package/dist/components/utils/UluConditionalWrapper.vue.d.ts.map +1 -1
- package/dist/components/utils/UluConditionalWrapper.vue.js +11 -9
- package/dist/components/utils/UluPlaceholderImage.vue.d.ts +12 -57
- package/dist/components/utils/UluPlaceholderImage.vue.d.ts.map +1 -1
- package/dist/components/utils/UluPlaceholderImage.vue.js +18 -26
- package/dist/components/utils/UluPlaceholderText.vue.d.ts +6 -20
- package/dist/components/utils/UluPlaceholderText.vue.js +12 -14
- package/dist/components/utils/UluRouteAnnouncer.vue.d.ts +9 -58
- package/dist/components/utils/UluRouteAnnouncer.vue.d.ts.map +1 -1
- package/dist/components/utils/UluRouteAnnouncer.vue.js +28 -28
- package/dist/components/visualizations/UluAnimateNumber.vue.d.ts +20 -14
- package/dist/components/visualizations/UluAnimateNumber.vue.d.ts.map +1 -1
- package/dist/components/visualizations/UluAnimateNumber.vue.js +18 -26
- package/dist/components/visualizations/UluProgressCircle.vue.d.ts +2 -2
- package/dist/composables/useModifiers.d.ts +20 -25
- package/dist/composables/useModifiers.d.ts.map +1 -1
- package/dist/index.js +206 -200
- package/dist/plugins/modals/UluModalsDisplay.vue.d.ts +3 -12
- package/dist/plugins/modals/UluModalsDisplay.vue.js +24 -45
- package/dist/plugins/modals/index.js +6 -6
- package/dist/plugins/toast/UluToast.vue.d.ts +24 -49
- package/dist/plugins/toast/UluToast.vue.d.ts.map +1 -1
- package/dist/plugins/toast/UluToast.vue.js +68 -77
- package/dist/plugins/toast/UluToastDisplay.vue.d.ts +1 -9
- package/dist/plugins/toast/UluToastDisplay.vue.js +27 -35
- package/dist/plugins/toast/defaults.d.ts +40 -35
- package/dist/plugins/toast/defaults.js +2 -2
- package/dist/plugins/toast/index.js +4 -4
- package/dist/plugins/toast/store.d.ts +40 -35
- package/dist/plugins/toast/store.d.ts.map +1 -1
- package/dist/utils/props.d.ts +7 -0
- package/dist/utils/props.d.ts.map +1 -0
- package/dist/utils/props.js +6 -0
- package/lib/components/collapsible/UluAccordionGroup.vue +4 -1
- package/lib/components/collapsible/UluDropdown.vue +5 -1
- package/lib/components/collapsible/UluModal.vue +278 -298
- package/lib/components/collapsible/UluTabGroup.vue +21 -6
- package/lib/components/elements/UluAlert.vue +38 -51
- package/lib/components/elements/UluBadgeStack.vue +4 -1
- package/lib/components/elements/UluButton.vue +105 -129
- package/lib/components/elements/UluButtonVerbose.vue +67 -89
- package/lib/components/elements/UluCallout.vue +15 -19
- package/lib/components/elements/UluCaptionedFigure.vue +40 -0
- package/lib/components/elements/UluDefinitionList.vue +27 -6
- package/lib/components/elements/UluImage.vue +56 -0
- package/lib/components/elements/UluList.vue +1 -0
- package/lib/components/elements/UluOverflowScroller.vue +140 -0
- package/lib/components/elements/UluScrollSlider.vue +150 -0
- package/lib/components/elements/UluSlider.vue +488 -0
- package/lib/components/index.js +10 -0
- package/lib/components/layout/UluTitleRail.vue +55 -48
- package/lib/components/navigation/UluBreadcrumb.vue +29 -34
- package/lib/components/navigation/UluMenu.vue +60 -71
- package/lib/components/navigation/UluMenuStack.vue +6 -1
- package/lib/components/navigation/UluNavStrip.vue +43 -31
- package/lib/components/systems/facets/useFacets.js +33 -17
- package/lib/components/systems/index.js +0 -4
- package/lib/components/systems/table-sticky/UluTableSticky.vue +602 -576
- package/lib/components/systems/table-sticky/UluTableStickyRows.vue +16 -27
- package/lib/components/systems/table-sticky/UluTableStickyTable.vue +95 -96
- package/lib/components/utils/UluAction.vue +81 -0
- package/lib/components/utils/UluConditionalText.vue +13 -16
- package/lib/components/utils/UluConditionalWrapper.vue +5 -1
- package/lib/components/utils/UluPlaceholderImage.vue +44 -46
- package/lib/components/utils/UluPlaceholderText.vue +10 -13
- package/lib/components/utils/UluRouteAnnouncer.vue +59 -47
- package/lib/components/visualizations/UluAnimateNumber.vue +23 -30
- package/lib/composables/useModifiers.js +21 -26
- package/lib/plugins/modals/UluModalsDisplay.vue +44 -45
- package/lib/plugins/toast/UluToast.vue +28 -34
- package/lib/plugins/toast/UluToastDisplay.vue +9 -15
- package/lib/utils/props.js +8 -0
- package/package.json +9 -5
- package/dist/components/systems/slider/UluImageSlideShow.vue.d.ts +0 -130
- package/dist/components/systems/slider/UluImageSlideShow.vue.d.ts.map +0 -1
- package/dist/components/systems/slider/UluImageSlideShow.vue.js +0 -73
- package/dist/components/systems/slider/UluSlideShow.vue.d.ts +0 -205
- package/dist/components/systems/slider/UluSlideShow.vue.d.ts.map +0 -1
- package/dist/components/systems/slider/UluSlideShow.vue.js +0 -292
- package/dist/components/systems/slider/UluSlideShowSlide.vue.d.ts +0 -17
- package/dist/components/systems/slider/UluSlideShowSlide.vue.d.ts.map +0 -1
- package/dist/components/systems/slider/UluSlideShowSlide.vue.js +0 -26
- package/lib/components/systems/slider/UluImageSlideShow.vue +0 -75
- package/lib/components/systems/slider/UluSlideShow.vue +0 -336
- package/lib/components/systems/slider/UluSlideShowSlide.vue +0 -25
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { ref as T, computed as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { ref as T, computed as E, watch as $, watchPostEffect as X } from "vue";
|
|
2
|
+
import Y from "fuse.js";
|
|
3
|
+
const Z = (u) => typeof u == "function";
|
|
4
|
+
function ee(u) {
|
|
4
5
|
const h = /* @__PURE__ */ new Set();
|
|
5
6
|
for (const d of u)
|
|
6
|
-
for (const
|
|
7
|
-
h.add(
|
|
7
|
+
for (const a of d)
|
|
8
|
+
h.add(a);
|
|
8
9
|
return h;
|
|
9
10
|
}
|
|
10
11
|
function k(u) {
|
|
11
12
|
if (!u || u.length === 0) return /* @__PURE__ */ new Set();
|
|
12
|
-
const h = u.sort((
|
|
13
|
-
for (let
|
|
13
|
+
const h = u.sort((a, S) => a.size - S.size), d = new Set(h[0]);
|
|
14
|
+
for (let a = 1; a < h.length; a++) {
|
|
14
15
|
for (const S of d)
|
|
15
|
-
h[
|
|
16
|
+
h[a].has(S) || d.delete(S);
|
|
16
17
|
if (d.size === 0) break;
|
|
17
18
|
}
|
|
18
19
|
return d;
|
|
@@ -20,207 +21,218 @@ function k(u) {
|
|
|
20
21
|
function O(u, h, d) {
|
|
21
22
|
if (!u || u.length === 0)
|
|
22
23
|
return d;
|
|
23
|
-
const
|
|
24
|
-
const z = S.children.map((
|
|
25
|
-
const v = `${S.uid}:${
|
|
24
|
+
const a = u.map((S) => {
|
|
25
|
+
const z = S.children.map((V) => {
|
|
26
|
+
const v = `${S.uid}:${V.uid}`;
|
|
26
27
|
return h.get(v) || /* @__PURE__ */ new Set();
|
|
27
28
|
});
|
|
28
|
-
return S.match === "all" ? k(z) :
|
|
29
|
+
return S.match === "all" ? k(z) : ee(z);
|
|
29
30
|
});
|
|
30
|
-
return k(
|
|
31
|
+
return k(a);
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
+
function te(u, h) {
|
|
33
34
|
return !h || !Array.isArray(h) ? [] : h.map((d) => {
|
|
34
|
-
const
|
|
35
|
+
const a = /* @__PURE__ */ new Set(), S = d.getValue || ((v) => v[d.uid]);
|
|
35
36
|
u.forEach((v) => {
|
|
36
|
-
const
|
|
37
|
-
Array.isArray(
|
|
37
|
+
const F = S(v);
|
|
38
|
+
Array.isArray(F) ? F.forEach((A) => A && a.add(A)) : F && a.add(F);
|
|
38
39
|
});
|
|
39
|
-
const z = d.getLabel || ((v) => v),
|
|
40
|
+
const z = d.getLabel || ((v) => v), V = [...a].map((v) => ({
|
|
40
41
|
uid: v,
|
|
41
42
|
label: z(v),
|
|
42
43
|
selected: !1
|
|
43
44
|
}));
|
|
44
|
-
return
|
|
45
|
+
return V.sort((v, F) => String(v.label).localeCompare(String(F.label))), {
|
|
45
46
|
...d,
|
|
46
|
-
children:
|
|
47
|
+
children: V
|
|
47
48
|
};
|
|
48
49
|
});
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
+
function re(u, h = {}) {
|
|
51
52
|
const {
|
|
52
53
|
initialFacets: d,
|
|
53
|
-
facetFields:
|
|
54
|
+
facetFields: a,
|
|
54
55
|
initialSearchValue: S = "",
|
|
55
56
|
initialSortType: z = "az",
|
|
56
|
-
noDefaultSorts:
|
|
57
|
+
noDefaultSorts: V = !1,
|
|
57
58
|
extraSortTypes: v = {},
|
|
58
|
-
searchOptions:
|
|
59
|
-
getSortValue:
|
|
59
|
+
searchOptions: F = {},
|
|
60
|
+
getSortValue: A = (e) => e.title || e.label || "",
|
|
60
61
|
countMode: q = "none",
|
|
61
62
|
// 'none', 'simple', 'intuitive'
|
|
62
|
-
urlSync: U
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
urlSync: U,
|
|
64
|
+
isPinned: B
|
|
65
|
+
} = h, _ = (e) => e.sort((t, r) => {
|
|
66
|
+
const n = A(t), s = A(r);
|
|
65
67
|
return n && s ? String(n).localeCompare(String(s)) : n ? -1 : s ? 1 : 0;
|
|
66
|
-
}),
|
|
67
|
-
az: { text: "A-Z", sort:
|
|
68
|
-
za: { text: "Z-A", sort: (e) =>
|
|
68
|
+
}), j = {
|
|
69
|
+
az: { text: "A-Z", sort: _ },
|
|
70
|
+
za: { text: "Z-A", sort: (e) => _(e).reverse() }
|
|
69
71
|
};
|
|
70
|
-
function
|
|
72
|
+
function D(e) {
|
|
71
73
|
return (e || []).map((t) => ({
|
|
72
74
|
...t,
|
|
73
75
|
open: t.open || !1,
|
|
74
|
-
children: t.children.map((
|
|
75
|
-
...
|
|
76
|
-
selected:
|
|
76
|
+
children: t.children.map((r) => ({
|
|
77
|
+
...r,
|
|
78
|
+
selected: r.selected || !1
|
|
77
79
|
})),
|
|
78
80
|
selectedCount: 0
|
|
79
81
|
}));
|
|
80
82
|
}
|
|
81
|
-
const f = T([]), x = T(S),
|
|
82
|
-
...
|
|
83
|
+
const f = T([]), x = T(S), I = T(z), G = E(() => !a || !u.value?.length ? null : te(u.value, a)), J = E(() => ({
|
|
84
|
+
...V ? {} : j,
|
|
83
85
|
...v
|
|
84
|
-
})), M =
|
|
86
|
+
})), M = E(() => {
|
|
85
87
|
const e = /* @__PURE__ */ new Map(), t = y.value;
|
|
86
|
-
if (!t || !
|
|
87
|
-
const
|
|
88
|
+
if (!t || !a) return e;
|
|
89
|
+
const r = new Map(a.map((n) => {
|
|
88
90
|
const s = n.getValue || ((o) => o[n.uid]);
|
|
89
91
|
return [n.uid, s];
|
|
90
92
|
}));
|
|
91
93
|
for (let n = 0; n < t.length; n++) {
|
|
92
94
|
const s = t[n];
|
|
93
|
-
for (const o of
|
|
94
|
-
const
|
|
95
|
-
for (const m of
|
|
95
|
+
for (const o of a) {
|
|
96
|
+
const l = r.get(o.uid)(s), c = Array.isArray(l) ? l : l ? [l] : [];
|
|
97
|
+
for (const m of c) {
|
|
96
98
|
const p = `${o.uid}:${m}`;
|
|
97
99
|
e.has(p) || e.set(p, /* @__PURE__ */ new Set()), e.get(p).add(n);
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
103
|
return e;
|
|
102
|
-
}),
|
|
104
|
+
}), R = E(() => ({
|
|
103
105
|
shouldSort: !0,
|
|
104
106
|
keys: ["title", "label", "description", "author"],
|
|
105
|
-
...
|
|
106
|
-
})), y =
|
|
107
|
+
...F
|
|
108
|
+
})), y = E(() => x.value?.length ? new Y(u.value, R.value).search(x.value).map((t) => t.item) : u.value), b = E(() => {
|
|
107
109
|
const e = [];
|
|
108
110
|
return f.value.forEach((t) => {
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
+
const r = t.children.filter((n) => n.selected);
|
|
112
|
+
r.length > 0 && e.push({ ...t, children: r });
|
|
111
113
|
}), e;
|
|
112
|
-
}),
|
|
113
|
-
if (!
|
|
114
|
+
}), L = E(() => {
|
|
115
|
+
if (!b.value.length)
|
|
114
116
|
return y.value;
|
|
115
117
|
const e = M.value;
|
|
116
|
-
if (e.size === 0 && y.value.length > 0 &&
|
|
118
|
+
if (e.size === 0 && y.value.length > 0 && a?.length > 0)
|
|
117
119
|
return [];
|
|
118
|
-
const t = new Set(y.value.map((s, o) => o)),
|
|
119
|
-
for (const s of
|
|
120
|
+
const t = new Set(y.value.map((s, o) => o)), r = O(b.value, e, t), n = [];
|
|
121
|
+
for (const s of r)
|
|
120
122
|
n.push(y.value[s]);
|
|
121
123
|
return n;
|
|
122
|
-
}),
|
|
123
|
-
const e =
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
}), N = E(() => {
|
|
125
|
+
const e = J.value[I.value]?.sort;
|
|
126
|
+
let t = Z(e) ? e([...L.value]) : [...L.value];
|
|
127
|
+
if (Z(B)) {
|
|
128
|
+
const r = [], n = [];
|
|
129
|
+
return t.forEach((s) => B(s) ? r.push(s) : n.push(s)), { pinned: r, unpinned: n, all: [...r, ...n] };
|
|
130
|
+
}
|
|
131
|
+
return { pinned: [], unpinned: t, all: t };
|
|
132
|
+
}), W = E(() => N.value.all), H = E(() => N.value.pinned);
|
|
133
|
+
function K() {
|
|
127
134
|
f.value.forEach((e) => {
|
|
128
135
|
e.children && e.children.forEach((t) => t.selected = !1), e.selectedCount = 0;
|
|
129
136
|
});
|
|
130
137
|
}
|
|
131
|
-
function
|
|
138
|
+
function P({ groupUid: e, facetUid: t, selected: r }) {
|
|
132
139
|
const n = f.value.find((s) => s.uid === e);
|
|
133
140
|
if (n) {
|
|
134
|
-
!n.multiple &&
|
|
141
|
+
!n.multiple && r && n.children.forEach((o) => {
|
|
135
142
|
o.uid !== t && (o.selected = !1);
|
|
136
143
|
});
|
|
137
144
|
const s = n.children.find((o) => o.uid === t);
|
|
138
|
-
s && (s.selected =
|
|
145
|
+
s && (s.selected = r), n.selectedCount = n.children.filter((o) => o.selected).length;
|
|
139
146
|
}
|
|
140
147
|
}
|
|
141
|
-
if ($(
|
|
142
|
-
const t =
|
|
143
|
-
t.forEach((
|
|
144
|
-
|
|
148
|
+
if ($(G, (e) => {
|
|
149
|
+
const t = D(d || e);
|
|
150
|
+
t.forEach((r) => {
|
|
151
|
+
r.selectedCount = r.children.filter((n) => n.selected).length;
|
|
145
152
|
}), f.value = t;
|
|
146
|
-
}, { immediate: !0 }), $([
|
|
147
|
-
if (!(q === "none" || !f.value.length) && !(e ===
|
|
153
|
+
}, { immediate: !0 }), $([b, y], ([e, t], [r, n]) => {
|
|
154
|
+
if (!(q === "none" || !f.value.length) && !(e === r && t === n)) {
|
|
148
155
|
if (q === "simple") {
|
|
149
156
|
const s = M.value;
|
|
150
|
-
if (s.size === 0 && y.value.length > 0 &&
|
|
157
|
+
if (s.size === 0 && y.value.length > 0 && a?.length > 0)
|
|
151
158
|
return;
|
|
152
|
-
const o = new Set(y.value.map((
|
|
153
|
-
f.value.forEach((
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
const p = `${
|
|
159
|
+
const o = new Set(y.value.map((i, l) => l));
|
|
160
|
+
f.value.forEach((i) => {
|
|
161
|
+
const l = e.filter((m) => m.uid !== i.uid), c = O(l, s, o);
|
|
162
|
+
i.children.forEach((m) => {
|
|
163
|
+
const p = `${i.uid}:${m.uid}`, g = s.get(p) || /* @__PURE__ */ new Set(), w = k([c, g]);
|
|
157
164
|
m.count = w.size;
|
|
158
165
|
});
|
|
159
166
|
});
|
|
160
167
|
} else if (q === "intuitive") {
|
|
161
168
|
const s = M.value;
|
|
162
|
-
if (s.size === 0 && y.value.length > 0 &&
|
|
169
|
+
if (s.size === 0 && y.value.length > 0 && a?.length > 0)
|
|
163
170
|
return;
|
|
164
|
-
const o = new Set(y.value.map((
|
|
165
|
-
f.value.forEach((
|
|
166
|
-
|
|
167
|
-
const m = `${
|
|
168
|
-
if (
|
|
169
|
-
if (
|
|
170
|
-
const g = k([
|
|
171
|
-
|
|
171
|
+
const o = new Set(y.value.map((l, c) => c)), i = O(e, s, o);
|
|
172
|
+
f.value.forEach((l) => {
|
|
173
|
+
l.children.forEach((c) => {
|
|
174
|
+
const m = `${l.uid}:${c.uid}`, p = s.get(m) || /* @__PURE__ */ new Set();
|
|
175
|
+
if (c.selected)
|
|
176
|
+
if (l.multiple) {
|
|
177
|
+
const g = k([i, p]);
|
|
178
|
+
c.count = g.size;
|
|
172
179
|
} else
|
|
173
|
-
|
|
180
|
+
c.count = i.size;
|
|
174
181
|
else {
|
|
175
182
|
const g = [];
|
|
176
183
|
for (const C of e)
|
|
177
184
|
g.push({ ...C, children: [...C.children] });
|
|
178
|
-
let w = g.find((C) => C.uid ===
|
|
179
|
-
w || (w = { ...
|
|
180
|
-
const
|
|
181
|
-
|
|
185
|
+
let w = g.find((C) => C.uid === l.uid);
|
|
186
|
+
w || (w = { ...l, children: [] }, g.push(w)), l.multiple ? w.children.push(c) : w.children = [c];
|
|
187
|
+
const Q = O(g, s, o);
|
|
188
|
+
c.count = Q.size;
|
|
182
189
|
}
|
|
183
190
|
});
|
|
184
191
|
});
|
|
185
192
|
}
|
|
186
193
|
}
|
|
187
194
|
}, { deep: !0, immediate: !0 }), U?.router && U?.route) {
|
|
188
|
-
const { router: e, route: t } = U,
|
|
189
|
-
if (!
|
|
190
|
-
const
|
|
191
|
-
delete
|
|
192
|
-
|
|
193
|
-
}), JSON.stringify(
|
|
195
|
+
const { router: e, route: t } = U, r = () => f.value && f.value.length > 0, n = () => {
|
|
196
|
+
if (!r()) return;
|
|
197
|
+
const i = { ...t.query };
|
|
198
|
+
delete i.sort, delete i.search, f.value.forEach((l) => delete i[l.uid]), I.value && I.value !== z && (i.sort = I.value), x.value && (i.search = x.value), b.value.forEach((l) => {
|
|
199
|
+
l.children.length > 0 && (i[l.uid] = l.children.map((c) => c.uid).join(","));
|
|
200
|
+
}), JSON.stringify(i) !== JSON.stringify(t.query) && e.push({ query: i });
|
|
194
201
|
}, s = () => {
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
const
|
|
198
|
-
f.value.forEach((
|
|
199
|
-
const m =
|
|
200
|
-
|
|
201
|
-
}), f.value.forEach((
|
|
202
|
-
const m =
|
|
203
|
-
|
|
202
|
+
const i = t.query;
|
|
203
|
+
i.sort && (I.value = i.sort), i.search && (x.value = i.search);
|
|
204
|
+
const l = /* @__PURE__ */ new Map();
|
|
205
|
+
f.value.forEach((c) => {
|
|
206
|
+
const m = i[c.uid] ? i[c.uid].split(",") : [];
|
|
207
|
+
l.set(c.uid, new Set(m));
|
|
208
|
+
}), f.value.forEach((c) => {
|
|
209
|
+
const m = l.get(c.uid) || /* @__PURE__ */ new Set();
|
|
210
|
+
c.children.forEach((p) => {
|
|
204
211
|
const g = p.selected, w = m.has(p.uid);
|
|
205
|
-
g !== w &&
|
|
212
|
+
g !== w && P({ groupUid: c.uid, facetUid: p.uid, selected: w });
|
|
206
213
|
});
|
|
207
214
|
});
|
|
208
|
-
}, o =
|
|
215
|
+
}, o = X(() => {
|
|
209
216
|
f.value && f.value.length > 0 && (s(), o());
|
|
210
217
|
});
|
|
211
|
-
$(
|
|
218
|
+
$(
|
|
219
|
+
[I, x, b],
|
|
220
|
+
n,
|
|
221
|
+
{ deep: !0 }
|
|
222
|
+
), $(() => t.query, s);
|
|
212
223
|
}
|
|
213
224
|
return {
|
|
214
225
|
facets: f,
|
|
215
226
|
searchValue: x,
|
|
216
|
-
selectedSort:
|
|
217
|
-
sortTypes:
|
|
218
|
-
displayItems:
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
227
|
+
selectedSort: I,
|
|
228
|
+
sortTypes: J,
|
|
229
|
+
displayItems: W,
|
|
230
|
+
pinnedItems: H,
|
|
231
|
+
selectedFacets: b,
|
|
232
|
+
clearFilters: K,
|
|
233
|
+
handleFacetChange: P
|
|
222
234
|
};
|
|
223
235
|
}
|
|
224
236
|
export {
|
|
225
|
-
|
|
237
|
+
re as useFacets
|
|
226
238
|
};
|
|
@@ -22,9 +22,6 @@ export { default as UluShowSkeleton } from './skeleton/UluShowSkeleton.vue';
|
|
|
22
22
|
export { default as UluSkeletonContent } from './skeleton/UluSkeletonContent.vue';
|
|
23
23
|
export { default as UluSkeletonMedia } from './skeleton/UluSkeletonMedia.vue';
|
|
24
24
|
export { default as UluSkeletonText } from './skeleton/UluSkeletonText.vue';
|
|
25
|
-
export { default as UluImageSlideShow } from './slider/UluImageSlideShow.vue';
|
|
26
|
-
export { default as UluSlideShow } from './slider/UluSlideShow.vue';
|
|
27
|
-
export { default as UluSlideShowSlide } from './slider/UluSlideShowSlide.vue';
|
|
28
25
|
export { default as UluTableSticky } from './table-sticky/UluTableSticky.vue';
|
|
29
26
|
export { default as UluTableStickyRows } from './table-sticky/UluTableStickyRows.vue';
|
|
30
27
|
export { default as UluTableStickyTable } from './table-sticky/UluTableStickyTable.vue';
|
|
@@ -5,12 +5,12 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
|
5
5
|
});
|
|
6
6
|
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
7
|
$emit: (event: "section-change", ...args: any[]) => void;
|
|
8
|
-
firstItemActive: boolean;
|
|
9
8
|
observerOptions: Record<string, any>;
|
|
9
|
+
firstItemActive: boolean;
|
|
10
10
|
debug: boolean;
|
|
11
11
|
$props: {
|
|
12
|
-
readonly firstItemActive?: boolean | undefined;
|
|
13
12
|
readonly observerOptions?: Record<string, any> | undefined;
|
|
13
|
+
readonly firstItemActive?: boolean | undefined;
|
|
14
14
|
readonly debug?: boolean | undefined;
|
|
15
15
|
};
|
|
16
16
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|