@ulu/frontend-vue 0.1.0-beta.31 → 0.1.0-beta.32
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-BJNvnXsD.js → breakpoints-ldu958QZ.js} +1 -1
- package/dist/frontend-vue.js +1 -1
- package/dist/{index-BjwifaTk.js → index-Qc7R-Ey_.js} +12 -12
- package/lib/components/systems/facets/useFacets.js +10 -5
- 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-Qc7R-Ey_.js";
|
|
2
2
|
export {
|
|
3
3
|
l as UluAccordion,
|
|
4
4
|
e as UluAdaptiveLayout,
|
|
@@ -1529,7 +1529,7 @@ 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-
|
|
1532
|
+
const r = await import("./breakpoints-ldu958QZ.js"), { BreakpointManager: l } = r, c = de(new l(s.plugin));
|
|
1533
1533
|
t.value = de(c);
|
|
1534
1534
|
const u = () => {
|
|
1535
1535
|
n.value = c.active, i.value = c.resizeDirection;
|
|
@@ -4187,19 +4187,19 @@ function Pr(e, s, t, n, i, o) {
|
|
|
4187
4187
|
const Wf = /* @__PURE__ */ C(jr, [["render", Pr]]);
|
|
4188
4188
|
function Fr(e, s) {
|
|
4189
4189
|
return !s || !Array.isArray(s) ? [] : s.map((t) => {
|
|
4190
|
-
const n = /* @__PURE__ */ new Set(), i = t.getValue || ((
|
|
4191
|
-
e.forEach((
|
|
4192
|
-
const
|
|
4193
|
-
Array.isArray(
|
|
4190
|
+
const n = /* @__PURE__ */ new Set(), i = t.getValue || ((l) => l[t.uid]);
|
|
4191
|
+
e.forEach((l) => {
|
|
4192
|
+
const c = i(l);
|
|
4193
|
+
Array.isArray(c) ? c.forEach((u) => u && n.add(u)) : c && n.add(c);
|
|
4194
4194
|
});
|
|
4195
|
-
const o = t.getLabel || ((
|
|
4196
|
-
|
|
4195
|
+
const o = t.getLabel || ((l) => l), r = [...n].map((l) => ({
|
|
4196
|
+
uid: l,
|
|
4197
|
+
label: o(l),
|
|
4198
|
+
selected: !1
|
|
4199
|
+
}));
|
|
4200
|
+
return r.sort((l, c) => String(l.label).localeCompare(String(c.label))), {
|
|
4197
4201
|
...t,
|
|
4198
|
-
children:
|
|
4199
|
-
uid: r,
|
|
4200
|
-
label: o(r),
|
|
4201
|
-
selected: !1
|
|
4202
|
-
}))
|
|
4202
|
+
children: r
|
|
4203
4203
|
};
|
|
4204
4204
|
});
|
|
4205
4205
|
}
|
|
@@ -24,13 +24,18 @@ function generateInitialFacets(allItems, facetFields) {
|
|
|
24
24
|
|
|
25
25
|
const getLabel = group.getLabel || (value => value);
|
|
26
26
|
|
|
27
|
+
const children = [...allValues].map(value => ({
|
|
28
|
+
uid: value,
|
|
29
|
+
label: getLabel(value),
|
|
30
|
+
selected: false
|
|
31
|
+
}));
|
|
32
|
+
|
|
33
|
+
// Sort by label, alphabetically
|
|
34
|
+
children.sort((a, b) => String(a.label).localeCompare(String(b.label)));
|
|
35
|
+
|
|
27
36
|
return {
|
|
28
37
|
...group,
|
|
29
|
-
children
|
|
30
|
-
uid: value,
|
|
31
|
-
label: getLabel(value),
|
|
32
|
-
selected: false
|
|
33
|
-
}))
|
|
38
|
+
children
|
|
34
39
|
};
|
|
35
40
|
});
|
|
36
41
|
}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFacets.d.ts","sourceRoot":"","sources":["../../../../lib/components/systems/facets/useFacets.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFacets.d.ts","sourceRoot":"","sources":["../../../../lib/components/systems/facets/useFacets.js"],"names":[],"mappings":"AA2CA;;;;;;;;;;;;;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"}
|