@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.
Files changed (174) hide show
  1. package/dist/components/collapsible/UluAccordionGroup.vue.d.ts +2 -2
  2. package/dist/components/collapsible/UluAccordionGroup.vue.d.ts.map +1 -1
  3. package/dist/components/collapsible/UluAccordionGroup.vue.js +22 -19
  4. package/dist/components/collapsible/UluDropdown.vue.d.ts +1 -1
  5. package/dist/components/collapsible/UluDropdown.vue.d.ts.map +1 -1
  6. package/dist/components/collapsible/UluDropdown.vue.js +22 -15
  7. package/dist/components/collapsible/UluModal.vue.d.ts +43 -248
  8. package/dist/components/collapsible/UluModal.vue.d.ts.map +1 -1
  9. package/dist/components/collapsible/UluModal.vue.js +139 -191
  10. package/dist/components/collapsible/UluTabGroup.vue.d.ts +2 -0
  11. package/dist/components/collapsible/UluTabGroup.vue.d.ts.map +1 -1
  12. package/dist/components/collapsible/UluTabGroup.vue.js +23 -14
  13. package/dist/components/elements/UluAlert.vue.d.ts +29 -144
  14. package/dist/components/elements/UluAlert.vue.d.ts.map +1 -1
  15. package/dist/components/elements/UluAlert.vue.js +39 -50
  16. package/dist/components/elements/UluBadge.vue.d.ts +6 -6
  17. package/dist/components/elements/UluBadgeStack.vue.d.ts +1 -1
  18. package/dist/components/elements/UluBadgeStack.vue.d.ts.map +1 -1
  19. package/dist/components/elements/UluBadgeStack.vue.js +12 -9
  20. package/dist/components/elements/UluButton.vue.d.ts +47 -177
  21. package/dist/components/elements/UluButton.vue.d.ts.map +1 -1
  22. package/dist/components/elements/UluButton.vue.js +59 -72
  23. package/dist/components/elements/UluButtonVerbose.vue.d.ts +38 -123
  24. package/dist/components/elements/UluButtonVerbose.vue.d.ts.map +1 -1
  25. package/dist/components/elements/UluButtonVerbose.vue.js +52 -65
  26. package/dist/components/elements/UluCallout.vue.d.ts +20 -25
  27. package/dist/components/elements/UluCallout.vue.d.ts.map +1 -1
  28. package/dist/components/elements/UluCallout.vue.js +11 -16
  29. package/dist/components/elements/UluCaptionedFigure.vue.d.ts +25 -0
  30. package/dist/components/elements/UluCaptionedFigure.vue.d.ts.map +1 -0
  31. package/dist/components/elements/UluCaptionedFigure.vue.js +48 -0
  32. package/dist/components/elements/UluCard.vue.d.ts +2 -2
  33. package/dist/components/elements/UluDefinitionList.vue.d.ts +4 -2
  34. package/dist/components/elements/UluDefinitionList.vue.d.ts.map +1 -1
  35. package/dist/components/elements/UluDefinitionList.vue.js +32 -28
  36. package/dist/components/elements/UluExternalLink.vue.d.ts +2 -2
  37. package/dist/components/elements/UluImage.vue.d.ts +14 -0
  38. package/dist/components/elements/UluImage.vue.d.ts.map +1 -0
  39. package/dist/components/elements/UluImage.vue.js +53 -0
  40. package/dist/components/elements/UluList.vue.d.ts.map +1 -1
  41. package/dist/components/elements/UluList.vue.js +14 -13
  42. package/dist/components/elements/UluOverflowScroller.vue.d.ts +49 -0
  43. package/dist/components/elements/UluOverflowScroller.vue.d.ts.map +1 -0
  44. package/dist/components/elements/UluOverflowScroller.vue.js +138 -0
  45. package/dist/components/elements/UluScrollSlider.vue.d.ts +38 -0
  46. package/dist/components/elements/UluScrollSlider.vue.d.ts.map +1 -0
  47. package/dist/components/elements/UluScrollSlider.vue.js +146 -0
  48. package/dist/components/elements/UluSlider.vue.d.ts +57 -0
  49. package/dist/components/elements/UluSlider.vue.d.ts.map +1 -0
  50. package/dist/components/elements/UluSlider.vue.js +277 -0
  51. package/dist/components/forms/UluFormFile.vue.d.ts +2 -2
  52. package/dist/components/forms/UluFormRadio.vue.d.ts +4 -4
  53. package/dist/components/index.d.ts +6 -0
  54. package/dist/components/layout/UluTitleRail.vue.d.ts +29 -87
  55. package/dist/components/layout/UluTitleRail.vue.d.ts.map +1 -1
  56. package/dist/components/layout/UluTitleRail.vue.js +51 -46
  57. package/dist/components/navigation/UluBreadcrumb.vue.d.ts +27 -68
  58. package/dist/components/navigation/UluBreadcrumb.vue.d.ts.map +1 -1
  59. package/dist/components/navigation/UluBreadcrumb.vue.js +51 -54
  60. package/dist/components/navigation/UluMenu.vue.d.ts +30 -138
  61. package/dist/components/navigation/UluMenu.vue.d.ts.map +1 -1
  62. package/dist/components/navigation/UluMenu.vue.js +85 -84
  63. package/dist/components/navigation/UluMenuStack.vue.d.ts +12 -2
  64. package/dist/components/navigation/UluMenuStack.vue.d.ts.map +1 -1
  65. package/dist/components/navigation/UluMenuStack.vue.js +26 -18
  66. package/dist/components/navigation/UluNavStrip.vue.d.ts +22 -134
  67. package/dist/components/navigation/UluNavStrip.vue.d.ts.map +1 -1
  68. package/dist/components/navigation/UluNavStrip.vue.js +43 -31
  69. package/dist/components/systems/facets/UluFacetsSidebarLayout.vue.js +10 -10
  70. package/dist/components/systems/facets/useFacets.d.ts +3 -0
  71. package/dist/components/systems/facets/useFacets.d.ts.map +1 -1
  72. package/dist/components/systems/facets/useFacets.js +124 -112
  73. package/dist/components/systems/index.d.ts +0 -3
  74. package/dist/components/systems/scroll-anchors/UluScrollAnchors.vue.d.ts +2 -2
  75. package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts +504 -432
  76. package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts.map +1 -1
  77. package/dist/components/systems/table-sticky/UluTableSticky.vue.js +313 -456
  78. package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts +40 -31
  79. package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts.map +1 -1
  80. package/dist/components/systems/table-sticky/UluTableStickyRows.vue.js +43 -45
  81. package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts +60 -146
  82. package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts.map +1 -1
  83. package/dist/components/systems/table-sticky/UluTableStickyTable.vue.js +156 -175
  84. package/dist/components/utils/UluAction.vue.d.ts +36 -0
  85. package/dist/components/utils/UluAction.vue.d.ts.map +1 -0
  86. package/dist/components/utils/UluAction.vue.js +59 -0
  87. package/dist/components/utils/UluConditionalText.vue.d.ts +7 -26
  88. package/dist/components/utils/UluConditionalText.vue.d.ts.map +1 -1
  89. package/dist/components/utils/UluConditionalText.vue.js +12 -14
  90. package/dist/components/utils/UluConditionalWrapper.vue.d.ts.map +1 -1
  91. package/dist/components/utils/UluConditionalWrapper.vue.js +11 -9
  92. package/dist/components/utils/UluPlaceholderImage.vue.d.ts +12 -57
  93. package/dist/components/utils/UluPlaceholderImage.vue.d.ts.map +1 -1
  94. package/dist/components/utils/UluPlaceholderImage.vue.js +18 -26
  95. package/dist/components/utils/UluPlaceholderText.vue.d.ts +6 -20
  96. package/dist/components/utils/UluPlaceholderText.vue.js +12 -14
  97. package/dist/components/utils/UluRouteAnnouncer.vue.d.ts +9 -58
  98. package/dist/components/utils/UluRouteAnnouncer.vue.d.ts.map +1 -1
  99. package/dist/components/utils/UluRouteAnnouncer.vue.js +28 -28
  100. package/dist/components/visualizations/UluAnimateNumber.vue.d.ts +20 -14
  101. package/dist/components/visualizations/UluAnimateNumber.vue.d.ts.map +1 -1
  102. package/dist/components/visualizations/UluAnimateNumber.vue.js +18 -26
  103. package/dist/components/visualizations/UluProgressCircle.vue.d.ts +2 -2
  104. package/dist/composables/useModifiers.d.ts +20 -25
  105. package/dist/composables/useModifiers.d.ts.map +1 -1
  106. package/dist/index.js +206 -200
  107. package/dist/plugins/modals/UluModalsDisplay.vue.d.ts +3 -12
  108. package/dist/plugins/modals/UluModalsDisplay.vue.js +24 -45
  109. package/dist/plugins/modals/index.js +6 -6
  110. package/dist/plugins/toast/UluToast.vue.d.ts +24 -49
  111. package/dist/plugins/toast/UluToast.vue.d.ts.map +1 -1
  112. package/dist/plugins/toast/UluToast.vue.js +68 -77
  113. package/dist/plugins/toast/UluToastDisplay.vue.d.ts +1 -9
  114. package/dist/plugins/toast/UluToastDisplay.vue.js +27 -35
  115. package/dist/plugins/toast/defaults.d.ts +40 -35
  116. package/dist/plugins/toast/defaults.js +2 -2
  117. package/dist/plugins/toast/index.js +4 -4
  118. package/dist/plugins/toast/store.d.ts +40 -35
  119. package/dist/plugins/toast/store.d.ts.map +1 -1
  120. package/dist/utils/props.d.ts +7 -0
  121. package/dist/utils/props.d.ts.map +1 -0
  122. package/dist/utils/props.js +6 -0
  123. package/lib/components/collapsible/UluAccordionGroup.vue +4 -1
  124. package/lib/components/collapsible/UluDropdown.vue +5 -1
  125. package/lib/components/collapsible/UluModal.vue +278 -298
  126. package/lib/components/collapsible/UluTabGroup.vue +21 -6
  127. package/lib/components/elements/UluAlert.vue +38 -51
  128. package/lib/components/elements/UluBadgeStack.vue +4 -1
  129. package/lib/components/elements/UluButton.vue +105 -129
  130. package/lib/components/elements/UluButtonVerbose.vue +67 -89
  131. package/lib/components/elements/UluCallout.vue +15 -19
  132. package/lib/components/elements/UluCaptionedFigure.vue +40 -0
  133. package/lib/components/elements/UluDefinitionList.vue +27 -6
  134. package/lib/components/elements/UluImage.vue +56 -0
  135. package/lib/components/elements/UluList.vue +1 -0
  136. package/lib/components/elements/UluOverflowScroller.vue +140 -0
  137. package/lib/components/elements/UluScrollSlider.vue +150 -0
  138. package/lib/components/elements/UluSlider.vue +488 -0
  139. package/lib/components/index.js +10 -0
  140. package/lib/components/layout/UluTitleRail.vue +55 -48
  141. package/lib/components/navigation/UluBreadcrumb.vue +29 -34
  142. package/lib/components/navigation/UluMenu.vue +60 -71
  143. package/lib/components/navigation/UluMenuStack.vue +6 -1
  144. package/lib/components/navigation/UluNavStrip.vue +43 -31
  145. package/lib/components/systems/facets/useFacets.js +33 -17
  146. package/lib/components/systems/index.js +0 -4
  147. package/lib/components/systems/table-sticky/UluTableSticky.vue +602 -576
  148. package/lib/components/systems/table-sticky/UluTableStickyRows.vue +16 -27
  149. package/lib/components/systems/table-sticky/UluTableStickyTable.vue +95 -96
  150. package/lib/components/utils/UluAction.vue +81 -0
  151. package/lib/components/utils/UluConditionalText.vue +13 -16
  152. package/lib/components/utils/UluConditionalWrapper.vue +5 -1
  153. package/lib/components/utils/UluPlaceholderImage.vue +44 -46
  154. package/lib/components/utils/UluPlaceholderText.vue +10 -13
  155. package/lib/components/utils/UluRouteAnnouncer.vue +59 -47
  156. package/lib/components/visualizations/UluAnimateNumber.vue +23 -30
  157. package/lib/composables/useModifiers.js +21 -26
  158. package/lib/plugins/modals/UluModalsDisplay.vue +44 -45
  159. package/lib/plugins/toast/UluToast.vue +28 -34
  160. package/lib/plugins/toast/UluToastDisplay.vue +9 -15
  161. package/lib/utils/props.js +8 -0
  162. package/package.json +9 -5
  163. package/dist/components/systems/slider/UluImageSlideShow.vue.d.ts +0 -130
  164. package/dist/components/systems/slider/UluImageSlideShow.vue.d.ts.map +0 -1
  165. package/dist/components/systems/slider/UluImageSlideShow.vue.js +0 -73
  166. package/dist/components/systems/slider/UluSlideShow.vue.d.ts +0 -205
  167. package/dist/components/systems/slider/UluSlideShow.vue.d.ts.map +0 -1
  168. package/dist/components/systems/slider/UluSlideShow.vue.js +0 -292
  169. package/dist/components/systems/slider/UluSlideShowSlide.vue.d.ts +0 -17
  170. package/dist/components/systems/slider/UluSlideShowSlide.vue.d.ts.map +0 -1
  171. package/dist/components/systems/slider/UluSlideShowSlide.vue.js +0 -26
  172. package/lib/components/systems/slider/UluImageSlideShow.vue +0 -75
  173. package/lib/components/systems/slider/UluSlideShow.vue +0 -336
  174. package/lib/components/systems/slider/UluSlideShowSlide.vue +0 -25
@@ -1,18 +1,19 @@
1
- import { ref as T, computed as F, watch as $, watchPostEffect as G } from "vue";
2
- import H from "fuse.js";
3
- function K(u) {
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 c of d)
7
- h.add(c);
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((c, S) => c.size - S.size), d = new Set(h[0]);
13
- for (let c = 1; c < h.length; c++) {
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[c].has(S) || d.delete(S);
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 c = u.map((S) => {
24
- const z = S.children.map((b) => {
25
- const v = `${S.uid}:${b.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) : K(z);
29
+ return S.match === "all" ? k(z) : ee(z);
29
30
  });
30
- return k(c);
31
+ return k(a);
31
32
  }
32
- function Q(u, h) {
33
+ function te(u, h) {
33
34
  return !h || !Array.isArray(h) ? [] : h.map((d) => {
34
- const c = /* @__PURE__ */ new Set(), S = d.getValue || ((v) => v[d.uid]);
35
+ const a = /* @__PURE__ */ new Set(), S = d.getValue || ((v) => v[d.uid]);
35
36
  u.forEach((v) => {
36
- const E = S(v);
37
- Array.isArray(E) ? E.forEach((I) => I && c.add(I)) : E && c.add(E);
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), b = [...c].map((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 b.sort((v, E) => String(v.label).localeCompare(String(E.label))), {
45
+ return V.sort((v, F) => String(v.label).localeCompare(String(F.label))), {
45
46
  ...d,
46
- children: b
47
+ children: V
47
48
  };
48
49
  });
49
50
  }
50
- function ee(u, h = {}) {
51
+ function re(u, h = {}) {
51
52
  const {
52
53
  initialFacets: d,
53
- facetFields: c,
54
+ facetFields: a,
54
55
  initialSearchValue: S = "",
55
56
  initialSortType: z = "az",
56
- noDefaultSorts: b = !1,
57
+ noDefaultSorts: V = !1,
57
58
  extraSortTypes: v = {},
58
- searchOptions: E = {},
59
- getSortValue: I = (e) => e.title || e.label || "",
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
- } = h, B = (e) => e.sort((t, a) => {
64
- const n = I(t), s = I(a);
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
- }), N = {
67
- az: { text: "A-Z", sort: B },
68
- za: { text: "Z-A", sort: (e) => B(e).reverse() }
68
+ }), j = {
69
+ az: { text: "A-Z", sort: _ },
70
+ za: { text: "Z-A", sort: (e) => _(e).reverse() }
69
71
  };
70
- function Z(e) {
72
+ function D(e) {
71
73
  return (e || []).map((t) => ({
72
74
  ...t,
73
75
  open: t.open || !1,
74
- children: t.children.map((a) => ({
75
- ...a,
76
- selected: a.selected || !1
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), V = T(z), j = F(() => !c || !u.value?.length ? null : Q(u.value, c)), _ = F(() => ({
82
- ...b ? {} : N,
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 = F(() => {
86
+ })), M = E(() => {
85
87
  const e = /* @__PURE__ */ new Map(), t = y.value;
86
- if (!t || !c) return e;
87
- const a = new Map(c.map((n) => {
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 c) {
94
- const r = a.get(o.uid)(s), i = Array.isArray(r) ? r : r ? [r] : [];
95
- for (const m of i) {
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
- }), D = F(() => ({
104
+ }), R = E(() => ({
103
105
  shouldSort: !0,
104
106
  keys: ["title", "label", "description", "author"],
105
- ...E
106
- })), y = F(() => x.value?.length ? new H(u.value, D.value).search(x.value).map((t) => t.item) : u.value), A = F(() => {
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 a = t.children.filter((n) => n.selected);
110
- a.length > 0 && e.push({ ...t, children: a });
111
+ const r = t.children.filter((n) => n.selected);
112
+ r.length > 0 && e.push({ ...t, children: r });
111
113
  }), e;
112
- }), J = F(() => {
113
- if (!A.value.length)
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 && c?.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)), a = O(A.value, e, t), n = [];
119
- for (const s of a)
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
- }), P = F(() => {
123
- const e = _.value[V.value]?.sort;
124
- return typeof e != "function" ? J.value : e([...J.value]);
125
- });
126
- function R() {
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 L({ groupUid: e, facetUid: t, selected: a }) {
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 && a && n.children.forEach((o) => {
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 = a), n.selectedCount = n.children.filter((o) => o.selected).length;
145
+ s && (s.selected = r), n.selectedCount = n.children.filter((o) => o.selected).length;
139
146
  }
140
147
  }
141
- if ($(j, (e) => {
142
- const t = Z(d || e);
143
- t.forEach((a) => {
144
- a.selectedCount = a.children.filter((n) => n.selected).length;
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 }), $([A, y], ([e, t], [a, n]) => {
147
- if (!(q === "none" || !f.value.length) && !(e === a && t === n)) {
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 && c?.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((l, r) => r));
153
- f.value.forEach((l) => {
154
- const r = e.filter((m) => m.uid !== l.uid), i = O(r, s, o);
155
- l.children.forEach((m) => {
156
- const p = `${l.uid}:${m.uid}`, g = s.get(p) || /* @__PURE__ */ new Set(), w = k([i, g]);
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 && c?.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((r, i) => i)), l = O(e, s, o);
165
- f.value.forEach((r) => {
166
- r.children.forEach((i) => {
167
- const m = `${r.uid}:${i.uid}`, p = s.get(m) || /* @__PURE__ */ new Set();
168
- if (i.selected)
169
- if (r.multiple) {
170
- const g = k([l, p]);
171
- i.count = g.size;
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
- i.count = l.size;
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 === r.uid);
179
- w || (w = { ...r, children: [] }, g.push(w)), r.multiple ? w.children.push(i) : w.children = [i];
180
- const W = O(g, s, o);
181
- i.count = W.size;
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, a = () => f.value && f.value.length > 0, n = () => {
189
- if (!a()) return;
190
- const l = { ...t.query };
191
- delete l.sort, delete l.search, f.value.forEach((r) => delete l[r.uid]), V.value && V.value !== z && (l.sort = V.value), x.value && (l.search = x.value), A.value.forEach((r) => {
192
- r.children.length > 0 && (l[r.uid] = r.children.map((i) => i.uid).join(","));
193
- }), JSON.stringify(l) !== JSON.stringify(t.query) && e.push({ query: l });
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 l = t.query;
196
- l.sort && (V.value = l.sort), l.search && (x.value = l.search);
197
- const r = /* @__PURE__ */ new Map();
198
- f.value.forEach((i) => {
199
- const m = l[i.uid] ? l[i.uid].split(",") : [];
200
- r.set(i.uid, new Set(m));
201
- }), f.value.forEach((i) => {
202
- const m = r.get(i.uid) || /* @__PURE__ */ new Set();
203
- i.children.forEach((p) => {
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 && L({ groupUid: i.uid, facetUid: p.uid, selected: w });
212
+ g !== w && P({ groupUid: c.uid, facetUid: p.uid, selected: w });
206
213
  });
207
214
  });
208
- }, o = G(() => {
215
+ }, o = X(() => {
209
216
  f.value && f.value.length > 0 && (s(), o());
210
217
  });
211
- $([V, x, A], n, { deep: !0 }), $(() => t.query, s);
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: V,
217
- sortTypes: _,
218
- displayItems: P,
219
- selectedFacets: A,
220
- clearFilters: R,
221
- handleFacetChange: L
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
- ee as useFacets
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, {