@ulu/frontend-vue 0.1.0-beta.12 → 0.1.0-beta.13
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-G33Jau3F.js → breakpoints-DE6CbfnP.js} +1 -1
- package/dist/frontend-vue.js +1 -1
- package/dist/{index-6gyCmsu_.js → index-B7y9zYaR.js} +65 -65
- package/lib/components/systems/facets/useFacets.js +7 -3
- 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, M as e, q as u, a0 as U, s as o, t, P as i, u as n, v as r, w as c, x as S, F as d, U as p, V as b, N as k, y as m, f as g, W as F, X as T, z as h, a4 as P, a9 as A, a5 as w, a6 as M, a7 as y, a8 as L, G as v, H as x, I as B, J as R, K as C, A as I, ai as f, B as D, C as N, Q as E, R as j, h as q, S as G, j as V, Y as z, Z as O, a1 as W, a2 as H, $ as J, aa as K, ab as Q, ac as X, ad as Y, L as Z, ae as _, af as $, ag as aa, ah as sa, T as la, aj as ea, ak as ua, D as Ua, k as oa, m as ta, n as ia, o as na, p as ra, al as ca, am as Sa, an as da, E as pa, O as ba, e as ka, i as ma, c as ga, b as Fa, d as Ta, as as ha, a3 as Pa, ao as Aa, ap as wa, ar as Ma, aq as ya } from "./index-
|
|
1
|
+
import { _ as l, M as e, q as u, a0 as U, s as o, t, P as i, u as n, v as r, w as c, x as S, F as d, U as p, V as b, N as k, y as m, f as g, W as F, X as T, z as h, a4 as P, a9 as A, a5 as w, a6 as M, a7 as y, a8 as L, G as v, H as x, I as B, J as R, K as C, A as I, ai as f, B as D, C as N, Q as E, R as j, h as q, S as G, j as V, Y as z, Z as O, a1 as W, a2 as H, $ as J, aa as K, ab as Q, ac as X, ad as Y, L as Z, ae as _, af as $, ag as aa, ah as sa, T as la, aj as ea, ak as ua, D as Ua, k as oa, m as ta, n as ia, o as na, p as ra, al as ca, am as Sa, an as da, E as pa, O as ba, e as ka, i as ma, c as ga, b as Fa, d as Ta, as as ha, a3 as Pa, ao as Aa, ap as wa, ar as Ma, aq as ya } from "./index-B7y9zYaR.js";
|
|
2
2
|
export {
|
|
3
3
|
l as UluAccordion,
|
|
4
4
|
e as UluAdaptiveLayout,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as Kt, ref as E, computed as T, resolveDirective as Gt, createElementBlock as u, openBlock as a, Fragment as $, withDirectives as he, createElementVNode as d, unref as x, normalizeClass as h, renderSlot as m, withKeys as qt, normalizeStyle as z, createCommentVNode as _, nextTick as Zt, toRef as Us, toDisplayString as p, createBlock as y, Teleport as st, resolveDynamicComponent as I, mergeProps as
|
|
1
|
+
import { reactive as Kt, ref as E, computed as T, resolveDirective as Gt, createElementBlock as u, openBlock as a, Fragment as $, withDirectives as he, createElementVNode as d, unref as x, normalizeClass as h, renderSlot as m, withKeys as qt, normalizeStyle as z, createCommentVNode as _, nextTick as Zt, toRef as Us, toDisplayString as p, createBlock as y, Teleport as st, resolveDynamicComponent as I, mergeProps as G, inject as Jt, watchEffect as xs, defineAsyncComponent as Is, markRaw as ue, normalizeProps as D, toRefs as Es, toValue as Ve, resolveComponent as S, withModifiers as zs, createVNode as A, useSlots as js, renderList as k, TransitionGroup as Qt, withCtx as b, createTextVNode as w, vShow as es, onMounted as Fs, onUnmounted as Bs, guardReactiveProps as W, vModelCheckbox as Ms, watch as Ps, vModelText as Ls, createSlots as ce } from "vue";
|
|
2
2
|
import { inline as ts, offset as ss, flip as ns, shift as os, arrow as is, useFloating as rs, autoUpdate as as } from "@floating-ui/vue";
|
|
3
3
|
import { Disclosure as Hs, DisclosureButton as Ds, DisclosurePanel as Vs, Tab as Ns, TabGroup as Ws, TabList as Xs, TabPanel as Ys, TabPanels as Ks } from "@headlessui/vue";
|
|
4
4
|
import { RouterLink as Be } from "vue-router";
|
|
@@ -303,26 +303,26 @@ const rn = ["disabled", "aria-expanded", "aria-controls", "aria-label"], an = ["
|
|
|
303
303
|
se(!r.value);
|
|
304
304
|
}, se = (L) => {
|
|
305
305
|
r.value = L;
|
|
306
|
-
const
|
|
306
|
+
const J = {
|
|
307
307
|
trigger: x(l),
|
|
308
308
|
content: x(c),
|
|
309
309
|
isOpen: x(r)
|
|
310
|
-
}, ae = { isOpen:
|
|
310
|
+
}, ae = { isOpen: J.isOpen };
|
|
311
311
|
Zt(() => {
|
|
312
312
|
r.value ? (H(), window.setTimeout(() => {
|
|
313
|
-
ye(), n.directFocus(
|
|
314
|
-
}, 0)) : (ve(), n.directFocus(
|
|
313
|
+
ye(), n.directFocus(J), t("toggle", ae);
|
|
314
|
+
}, 0)) : (ve(), n.directFocus(J), t("toggle", ae));
|
|
315
315
|
});
|
|
316
316
|
};
|
|
317
|
-
let
|
|
317
|
+
let Z;
|
|
318
318
|
const ye = () => {
|
|
319
|
-
n.clickOutsideCloses && (
|
|
319
|
+
n.clickOutsideCloses && (Z && ve(), Z = (L) => {
|
|
320
320
|
c.value.contains(L.target) || se(!1);
|
|
321
|
-
}, document.addEventListener("click",
|
|
321
|
+
}, document.addEventListener("click", Z));
|
|
322
322
|
}, ve = () => {
|
|
323
|
-
|
|
323
|
+
Z && (document.removeEventListener("click", Z), Z = null);
|
|
324
324
|
}, pe = () => se(!1);
|
|
325
|
-
return (L,
|
|
325
|
+
return (L, J) => {
|
|
326
326
|
const ae = Gt("ulu-tooltip");
|
|
327
327
|
return a(), u($, null, [
|
|
328
328
|
he((a(), u("button", {
|
|
@@ -358,7 +358,7 @@ const rn = ["disabled", "aria-expanded", "aria-controls", "aria-label"], an = ["
|
|
|
358
358
|
id: x(i),
|
|
359
359
|
style: z(x(j)),
|
|
360
360
|
"data-placement": x(P),
|
|
361
|
-
onKeydown:
|
|
361
|
+
onKeydown: J[0] || (J[0] = qt((C) => se(!1), ["esc"])),
|
|
362
362
|
tabindex: "-1"
|
|
363
363
|
}, [
|
|
364
364
|
d("span", ln, [
|
|
@@ -497,7 +497,7 @@ const v = (e, s) => {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
function _n(e, s, t, n, i, o) {
|
|
500
|
-
return o.currentModal ? (a(), y(I(o.currentModal.component),
|
|
500
|
+
return o.currentModal ? (a(), y(I(o.currentModal.component), G({ key: 0 }, o.currentProps, {
|
|
501
501
|
modelValue: i.open,
|
|
502
502
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => i.open = r),
|
|
503
503
|
onVnodeMounted: o.modalMounted,
|
|
@@ -559,7 +559,7 @@ const V = {
|
|
|
559
559
|
}
|
|
560
560
|
} else
|
|
561
561
|
t.value = null;
|
|
562
|
-
}), (F, H) => c.value ? (a(), y(I(c.value), D(
|
|
562
|
+
}), (F, H) => c.value ? (a(), y(I(c.value), D(G({ key: 0 }, O.value)), null, 16)) : !l.value && t.value && g.value ? (a(), y(I(t.value), D(G({ key: 1 }, j.value)), null, 16)) : l.value && g.value ? (a(), u("span", {
|
|
563
563
|
key: 2,
|
|
564
564
|
class: h(P.value),
|
|
565
565
|
"aria-hidden": "true"
|
|
@@ -1518,7 +1518,7 @@ function Wn(e) {
|
|
|
1518
1518
|
await new Promise((g) => {
|
|
1519
1519
|
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", () => g()) : g();
|
|
1520
1520
|
});
|
|
1521
|
-
const r = await import("./breakpoints-
|
|
1521
|
+
const r = await import("./breakpoints-DE6CbfnP.js"), { BreakpointManager: l } = r, c = ue(new l(s.plugin));
|
|
1522
1522
|
t.value = ue(c);
|
|
1523
1523
|
const f = () => {
|
|
1524
1524
|
n.value = c.active, i.value = c.resizeDirection;
|
|
@@ -1944,7 +1944,7 @@ function no(e, s, t, n, i, o) {
|
|
|
1944
1944
|
key: O,
|
|
1945
1945
|
class: h([t.classes.item, g?.classes?.item])
|
|
1946
1946
|
}, [
|
|
1947
|
-
he((a(), y(I(g.to || g.path ? "router-link" : g.click ? "button" : "a"),
|
|
1947
|
+
he((a(), y(I(g.to || g.path ? "router-link" : g.click ? "button" : "a"), G({ ref_for: !0 }, {
|
|
1948
1948
|
...g.to || g.path ? { to: g.to || g.path } : {},
|
|
1949
1949
|
...g.href ? { href: g.href || "#" } : {}
|
|
1950
1950
|
}, {
|
|
@@ -1970,7 +1970,7 @@ function no(e, s, t, n, i, o) {
|
|
|
1970
1970
|
d("span", {
|
|
1971
1971
|
class: h([t.classes.linkText, g?.classes?.linkText])
|
|
1972
1972
|
}, p(g.title), 3),
|
|
1973
|
-
g.tag ? (a(), y(l,
|
|
1973
|
+
g.tag ? (a(), y(l, G({
|
|
1974
1974
|
key: 1,
|
|
1975
1975
|
ref_for: !0
|
|
1976
1976
|
}, g.tag), null, 16)) : _("", !0)
|
|
@@ -2165,7 +2165,7 @@ const mo = { class: "layout-flex-baseline" }, go = { class: "type-word-break" },
|
|
|
2165
2165
|
setup(e) {
|
|
2166
2166
|
return (s, t) => (a(), y(x(Ns), null, {
|
|
2167
2167
|
default: b((n) => [
|
|
2168
|
-
m(s.$slots, "default", D(
|
|
2168
|
+
m(s.$slots, "default", D(W(n)))
|
|
2169
2169
|
]),
|
|
2170
2170
|
_: 3
|
|
2171
2171
|
}));
|
|
@@ -2195,7 +2195,7 @@ const mo = { class: "layout-flex-baseline" }, go = { class: "type-word-break" },
|
|
|
2195
2195
|
"tabs--vertical": e.vertical
|
|
2196
2196
|
}])
|
|
2197
2197
|
}, [
|
|
2198
|
-
m(s.$slots, "default", D(
|
|
2198
|
+
m(s.$slots, "default", D(W(n)))
|
|
2199
2199
|
], 2)
|
|
2200
2200
|
]),
|
|
2201
2201
|
_: 3
|
|
@@ -2216,7 +2216,7 @@ const mo = { class: "layout-flex-baseline" }, go = { class: "type-word-break" },
|
|
|
2216
2216
|
setup(e) {
|
|
2217
2217
|
return (s, t) => (a(), y(x(Ys), null, {
|
|
2218
2218
|
default: b((n) => [
|
|
2219
|
-
m(s.$slots, "default", D(
|
|
2219
|
+
m(s.$slots, "default", D(W(n)))
|
|
2220
2220
|
]),
|
|
2221
2221
|
_: 3
|
|
2222
2222
|
}));
|
|
@@ -2226,7 +2226,7 @@ const mo = { class: "layout-flex-baseline" }, go = { class: "type-word-break" },
|
|
|
2226
2226
|
setup(e) {
|
|
2227
2227
|
return (s, t) => (a(), y(x(Ks), null, {
|
|
2228
2228
|
default: b((n) => [
|
|
2229
|
-
m(s.$slots, "default", D(
|
|
2229
|
+
m(s.$slots, "default", D(W(n)))
|
|
2230
2230
|
]),
|
|
2231
2231
|
_: 3
|
|
2232
2232
|
}));
|
|
@@ -2335,7 +2335,7 @@ const mo = { class: "layout-flex-baseline" }, go = { class: "type-word-break" },
|
|
|
2335
2335
|
}, yo = { key: 1 };
|
|
2336
2336
|
function vo(e, s, t, n, i, o) {
|
|
2337
2337
|
const r = S("UluIcon");
|
|
2338
|
-
return a(), y(I(o.element),
|
|
2338
|
+
return a(), y(I(o.element), G({
|
|
2339
2339
|
class: ["button", [
|
|
2340
2340
|
{
|
|
2341
2341
|
"button--transparent": t.transparent,
|
|
@@ -2520,7 +2520,7 @@ function Io(e, s, t, n, i, o) {
|
|
|
2520
2520
|
class: "badge-stack__item",
|
|
2521
2521
|
key: c
|
|
2522
2522
|
}, [
|
|
2523
|
-
A(r,
|
|
2523
|
+
A(r, G({ ref_for: !0 }, l), null, 16)
|
|
2524
2524
|
]))), 128))
|
|
2525
2525
|
]);
|
|
2526
2526
|
}
|
|
@@ -2597,7 +2597,7 @@ const mf = /* @__PURE__ */ v(Uo, [["render", Io]]), Eo = {
|
|
|
2597
2597
|
};
|
|
2598
2598
|
function jo(e, s, t, n, i, o) {
|
|
2599
2599
|
const r = S("UluIcon");
|
|
2600
|
-
return a(), y(I(o.element),
|
|
2600
|
+
return a(), y(I(o.element), G({
|
|
2601
2601
|
class: ["button-verbose", [
|
|
2602
2602
|
{
|
|
2603
2603
|
"button-verbose--inline": t.inline,
|
|
@@ -3219,7 +3219,7 @@ function wi(e, s, t, n, i, o) {
|
|
|
3219
3219
|
w(p(t.label), 1)
|
|
3220
3220
|
])
|
|
3221
3221
|
], 10, pi),
|
|
3222
|
-
d("input",
|
|
3222
|
+
d("input", G({
|
|
3223
3223
|
type: "file",
|
|
3224
3224
|
onChange: s[0] || (s[0] = (...r) => o.onChangeFile && o.onChangeFile(...r)),
|
|
3225
3225
|
multiple: t.multiple,
|
|
@@ -3996,8 +3996,8 @@ function Wf(e, s = {}) {
|
|
|
3996
3996
|
getItemFacet: g = t,
|
|
3997
3997
|
getSortValue: O = (C) => C.title || C.label || ""
|
|
3998
3998
|
} = s, j = (C) => C.sort((B, M) => {
|
|
3999
|
-
const
|
|
4000
|
-
return String(
|
|
3999
|
+
const Y = O(B), N = O(M);
|
|
4000
|
+
return Y && N ? String(valueA).localeCompare(String(valueB)) : Y ? -1 : N ? 1 : 0;
|
|
4001
4001
|
}), P = {
|
|
4002
4002
|
az: { text: "A-Z", sort: j },
|
|
4003
4003
|
za: { text: "Z-A", sort: (C) => j(C).reverse() }
|
|
@@ -4020,36 +4020,36 @@ function Wf(e, s = {}) {
|
|
|
4020
4020
|
const se = T(() => ({
|
|
4021
4021
|
...l ? {} : P,
|
|
4022
4022
|
...c
|
|
4023
|
-
})),
|
|
4023
|
+
})), Z = T(() => ({
|
|
4024
4024
|
shouldSort: !0,
|
|
4025
4025
|
keys: ["title", "label", "description", "author"],
|
|
4026
4026
|
...f
|
|
4027
4027
|
})), ye = T(() => {
|
|
4028
4028
|
const C = [];
|
|
4029
4029
|
return te.value.forEach((B) => {
|
|
4030
|
-
const { name: M, uid:
|
|
4030
|
+
const { name: M, uid: Y, children: N } = B;
|
|
4031
4031
|
let xe = 0, ft = !1;
|
|
4032
|
-
|
|
4033
|
-
ht.selected && (++xe, ft || (C.push({ uid:
|
|
4032
|
+
N && N.forEach((ht) => {
|
|
4033
|
+
ht.selected && (++xe, ft || (C.push({ uid: Y, name: M, children: [] }), ft = !0), C[C.length - 1].children.push(ht));
|
|
4034
4034
|
}), B.selectedCount = xe;
|
|
4035
4035
|
}), C;
|
|
4036
4036
|
}), ve = T(() => ye.value.length ? e.value.filter((C) => ye.value.every((B) => {
|
|
4037
4037
|
const M = g(C, B.uid);
|
|
4038
|
-
return M && M.length ? B.children.some((
|
|
4039
|
-
})) : e.value), pe = T(() => _e.value?.length ? new qs(ve.value,
|
|
4038
|
+
return M && M.length ? B.children.some((Y) => M.includes(Y.uid)) : !1;
|
|
4039
|
+
})) : e.value), pe = T(() => _e.value?.length ? new qs(ve.value, Z.value).search(_e.value).map((B) => B.item) : ve.value), L = T(() => {
|
|
4040
4040
|
const C = se.value[Ue.value]?.sort;
|
|
4041
4041
|
return typeof C != "function" ? pe.value : C([...pe.value]);
|
|
4042
4042
|
});
|
|
4043
|
-
function
|
|
4043
|
+
function J() {
|
|
4044
4044
|
te.value.forEach((C) => {
|
|
4045
4045
|
C.children && C.children.forEach((B) => B.selected = !1);
|
|
4046
4046
|
});
|
|
4047
4047
|
}
|
|
4048
4048
|
function ae({ groupUid: C, facetUid: B, selected: M }) {
|
|
4049
|
-
const
|
|
4050
|
-
if (
|
|
4051
|
-
const
|
|
4052
|
-
|
|
4049
|
+
const Y = te.value.find((N) => N.uid === C);
|
|
4050
|
+
if (Y) {
|
|
4051
|
+
const N = Y.children.find((xe) => xe.uid === B);
|
|
4052
|
+
N && (N.selected = M);
|
|
4053
4053
|
}
|
|
4054
4054
|
}
|
|
4055
4055
|
return {
|
|
@@ -4062,7 +4062,7 @@ function Wf(e, s = {}) {
|
|
|
4062
4062
|
displayItems: L,
|
|
4063
4063
|
selectedFacets: ye,
|
|
4064
4064
|
// Methods
|
|
4065
|
-
clearFilters:
|
|
4065
|
+
clearFilters: J,
|
|
4066
4066
|
handleFacetChange: ae
|
|
4067
4067
|
};
|
|
4068
4068
|
}
|
|
@@ -5314,7 +5314,7 @@ function cl(e, s, t, n, i, o) {
|
|
|
5314
5314
|
k(e.$slots, (l, c) => ({
|
|
5315
5315
|
name: c,
|
|
5316
5316
|
fn: b((f) => [
|
|
5317
|
-
m(e.$slots, c, D(
|
|
5317
|
+
m(e.$slots, c, D(W(f)))
|
|
5318
5318
|
])
|
|
5319
5319
|
}))
|
|
5320
5320
|
]), 1032, ["rows", "rowColumns", "optionalAttr", "resolveClasses", "getCellHeaders", "isActual", "columnWidth", "classes", "value"])
|
|
@@ -5335,7 +5335,7 @@ function cl(e, s, t, n, i, o) {
|
|
|
5335
5335
|
k(e.$slots, (l, c) => ({
|
|
5336
5336
|
name: c,
|
|
5337
5337
|
fn: b((f) => [
|
|
5338
|
-
m(e.$slots, c, D(
|
|
5338
|
+
m(e.$slots, c, D(W(f)))
|
|
5339
5339
|
])
|
|
5340
5340
|
}))
|
|
5341
5341
|
]), 1032, ["rows", "rowColumns", "optionalAttr", "resolveClasses", "getCellHeaders", "isActual", "columnWidth", "classes", "value"])
|
|
@@ -5374,20 +5374,20 @@ function yl(e, s) {
|
|
|
5374
5374
|
var t = this.__data__, n = Le(t, e);
|
|
5375
5375
|
return n < 0 ? (++this.size, t.push([e, s])) : t[n][1] = s, this;
|
|
5376
5376
|
}
|
|
5377
|
-
function
|
|
5377
|
+
function q(e) {
|
|
5378
5378
|
var s = -1, t = e == null ? 0 : e.length;
|
|
5379
5379
|
for (this.clear(); ++s < t; ) {
|
|
5380
5380
|
var n = e[s];
|
|
5381
5381
|
this.set(n[0], n[1]);
|
|
5382
5382
|
}
|
|
5383
5383
|
}
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5384
|
+
q.prototype.clear = dl;
|
|
5385
|
+
q.prototype.delete = ml;
|
|
5386
|
+
q.prototype.get = gl;
|
|
5387
|
+
q.prototype.has = _l;
|
|
5388
|
+
q.prototype.set = yl;
|
|
5389
5389
|
function vl() {
|
|
5390
|
-
this.__data__ = new
|
|
5390
|
+
this.__data__ = new q(), this.size = 0;
|
|
5391
5391
|
}
|
|
5392
5392
|
function pl(e) {
|
|
5393
5393
|
var s = this.__data__, t = s.delete(e);
|
|
@@ -5399,7 +5399,7 @@ function bl(e) {
|
|
|
5399
5399
|
function wl(e) {
|
|
5400
5400
|
return this.__data__.has(e);
|
|
5401
5401
|
}
|
|
5402
|
-
var gs = typeof global == "object" && global && global.Object === Object && global, Sl = typeof self == "object" && self && self.Object === Object && self,
|
|
5402
|
+
var gs = typeof global == "object" && global && global.Object === Object && global, Sl = typeof self == "object" && self && self.Object === Object && self, X = gs || Sl || Function("return this")(), de = X.Symbol, _s = Object.prototype, kl = _s.hasOwnProperty, Cl = _s.toString, be = de ? de.toStringTag : void 0;
|
|
5403
5403
|
function Tl(e) {
|
|
5404
5404
|
var s = kl.call(e, be), t = e[be];
|
|
5405
5405
|
try {
|
|
@@ -5429,7 +5429,7 @@ function ys(e) {
|
|
|
5429
5429
|
var s = Oe(e);
|
|
5430
5430
|
return s == Il || s == El || s == xl || s == zl;
|
|
5431
5431
|
}
|
|
5432
|
-
var Xe =
|
|
5432
|
+
var Xe = X["__core-js_shared__"], $t = function() {
|
|
5433
5433
|
var e = /[^.]+$/.exec(Xe && Xe.keys && Xe.keys.IE_PROTO || "");
|
|
5434
5434
|
return e ? "Symbol(src)_1." + e : "";
|
|
5435
5435
|
}();
|
|
@@ -5466,7 +5466,7 @@ function re(e, s) {
|
|
|
5466
5466
|
var t = Xl(e, s);
|
|
5467
5467
|
return Wl(t) ? t : void 0;
|
|
5468
5468
|
}
|
|
5469
|
-
var $e = re(
|
|
5469
|
+
var $e = re(X, "Map"), Ae = re(Object, "create");
|
|
5470
5470
|
function Yl() {
|
|
5471
5471
|
this.__data__ = Ae ? Ae(null) : {}, this.size = 0;
|
|
5472
5472
|
}
|
|
@@ -5508,7 +5508,7 @@ oe.prototype.set = nc;
|
|
|
5508
5508
|
function oc() {
|
|
5509
5509
|
this.size = 0, this.__data__ = {
|
|
5510
5510
|
hash: new oe(),
|
|
5511
|
-
map: new ($e ||
|
|
5511
|
+
map: new ($e || q)(),
|
|
5512
5512
|
string: new oe()
|
|
5513
5513
|
};
|
|
5514
5514
|
}
|
|
@@ -5549,7 +5549,7 @@ me.prototype.set = cc;
|
|
|
5549
5549
|
var uc = 200;
|
|
5550
5550
|
function dc(e, s) {
|
|
5551
5551
|
var t = this.__data__;
|
|
5552
|
-
if (t instanceof
|
|
5552
|
+
if (t instanceof q) {
|
|
5553
5553
|
var n = t.__data__;
|
|
5554
5554
|
if (!$e || n.length < uc - 1)
|
|
5555
5555
|
return n.push([e, s]), this.size = ++t.size, this;
|
|
@@ -5558,7 +5558,7 @@ function dc(e, s) {
|
|
|
5558
5558
|
return t.set(e, s), this.size = t.size, this;
|
|
5559
5559
|
}
|
|
5560
5560
|
function ge(e) {
|
|
5561
|
-
var s = this.__data__ = new
|
|
5561
|
+
var s = this.__data__ = new q(e);
|
|
5562
5562
|
this.size = s.size;
|
|
5563
5563
|
}
|
|
5564
5564
|
ge.prototype.clear = vl;
|
|
@@ -5611,7 +5611,7 @@ var vs = Object.prototype, pc = vs.hasOwnProperty, bc = vs.propertyIsEnumerable,
|
|
|
5611
5611
|
function Sc() {
|
|
5612
5612
|
return !1;
|
|
5613
5613
|
}
|
|
5614
|
-
var ps = typeof exports == "object" && exports && !exports.nodeType && exports, Rt = ps && typeof module == "object" && module && !module.nodeType && module, kc = Rt && Rt.exports === ps, Ut = kc ?
|
|
5614
|
+
var ps = typeof exports == "object" && exports && !exports.nodeType && exports, Rt = ps && typeof module == "object" && module && !module.nodeType && module, kc = Rt && Rt.exports === ps, Ut = kc ? X.Buffer : void 0, Cc = Ut ? Ut.isBuffer : void 0, bs = Cc || Sc, Tc = 9007199254740991, $c = /^(?:0|[1-9]\d*)$/;
|
|
5615
5615
|
function Ac(e, s) {
|
|
5616
5616
|
var t = typeof e;
|
|
5617
5617
|
return s = s ?? Tc, !!s && (t == "number" || t != "symbol" && $c.test(e)) && e > -1 && e % 1 == 0 && e < s;
|
|
@@ -5673,7 +5673,7 @@ function uu(e) {
|
|
|
5673
5673
|
function du(e) {
|
|
5674
5674
|
return uu(e) ? ou(e) : cu(e);
|
|
5675
5675
|
}
|
|
5676
|
-
var Ts = typeof exports == "object" && exports && !exports.nodeType && exports, It = Ts && typeof module == "object" && module && !module.nodeType && module, fu = It && It.exports === Ts, Et = fu ?
|
|
5676
|
+
var Ts = typeof exports == "object" && exports && !exports.nodeType && exports, It = Ts && typeof module == "object" && module && !module.nodeType && module, fu = It && It.exports === Ts, Et = fu ? X.Buffer : void 0;
|
|
5677
5677
|
Et && Et.allocUnsafe;
|
|
5678
5678
|
function hu(e, s) {
|
|
5679
5679
|
return e.slice();
|
|
@@ -5706,8 +5706,8 @@ function wu(e, s, t) {
|
|
|
5706
5706
|
function Su(e) {
|
|
5707
5707
|
return wu(e, du, vu);
|
|
5708
5708
|
}
|
|
5709
|
-
var Je = re(
|
|
5710
|
-
(Je &&
|
|
5709
|
+
var Je = re(X, "DataView"), Qe = re(X, "Promise"), et = re(X, "Set"), tt = re(X, "WeakMap"), jt = "[object Map]", ku = "[object Object]", Ft = "[object Promise]", Bt = "[object Set]", Mt = "[object WeakMap]", Pt = "[object DataView]", Cu = ie(Je), Tu = ie($e), $u = ie(Qe), Au = ie(et), Ou = ie(tt), K = Oe;
|
|
5710
|
+
(Je && K(new Je(new ArrayBuffer(1))) != Pt || $e && K(new $e()) != jt || Qe && K(Qe.resolve()) != Ft || et && K(new et()) != Bt || tt && K(new tt()) != Mt) && (K = function(e) {
|
|
5711
5711
|
var s = Oe(e), t = s == ku ? e.constructor : void 0, n = t ? ie(t) : "";
|
|
5712
5712
|
if (n)
|
|
5713
5713
|
switch (n) {
|
|
@@ -5729,7 +5729,7 @@ function xu(e) {
|
|
|
5729
5729
|
var s = e.length, t = new e.constructor(s);
|
|
5730
5730
|
return s && typeof e[0] == "string" && Uu.call(e, "index") && (t.index = e.index, t.input = e.input), t;
|
|
5731
5731
|
}
|
|
5732
|
-
var Lt =
|
|
5732
|
+
var Lt = X.Uint8Array;
|
|
5733
5733
|
function dt(e) {
|
|
5734
5734
|
var s = new e.constructor(e.byteLength);
|
|
5735
5735
|
return new Lt(s).set(new Lt(e)), s;
|
|
@@ -5803,11 +5803,11 @@ function od(e) {
|
|
|
5803
5803
|
}
|
|
5804
5804
|
var id = "[object Map]";
|
|
5805
5805
|
function rd(e) {
|
|
5806
|
-
return Re(e) &&
|
|
5806
|
+
return Re(e) && K(e) == id;
|
|
5807
5807
|
}
|
|
5808
5808
|
var Nt = fe && fe.isMap, ad = Nt ? ut(Nt) : rd, ld = "[object Set]";
|
|
5809
5809
|
function cd(e) {
|
|
5810
|
-
return Re(e) &&
|
|
5810
|
+
return Re(e) && K(e) == ld;
|
|
5811
5811
|
}
|
|
5812
5812
|
var Wt = fe && fe.isSet, ud = Wt ? ut(Wt) : cd, $s = "[object Arguments]", dd = "[object Array]", fd = "[object Boolean]", hd = "[object Date]", md = "[object Error]", As = "[object Function]", gd = "[object GeneratorFunction]", _d = "[object Map]", yd = "[object Number]", Os = "[object Object]", vd = "[object RegExp]", pd = "[object Set]", bd = "[object String]", wd = "[object Symbol]", Sd = "[object WeakMap]", kd = "[object ArrayBuffer]", Cd = "[object DataView]", Td = "[object Float32Array]", $d = "[object Float64Array]", Ad = "[object Int8Array]", Od = "[object Int16Array]", Rd = "[object Int32Array]", Ud = "[object Uint8Array]", xd = "[object Uint8ClampedArray]", Id = "[object Uint16Array]", Ed = "[object Uint32Array]", R = {};
|
|
5813
5813
|
R[$s] = R[dd] = R[kd] = R[Cd] = R[fd] = R[hd] = R[Td] = R[$d] = R[Ad] = R[Od] = R[Rd] = R[_d] = R[yd] = R[Os] = R[vd] = R[pd] = R[bd] = R[wd] = R[Ud] = R[xd] = R[Id] = R[Ed] = !0;
|
|
@@ -5822,7 +5822,7 @@ function je(e, s, t, n, i, o) {
|
|
|
5822
5822
|
if (l)
|
|
5823
5823
|
r = xu(e);
|
|
5824
5824
|
else {
|
|
5825
|
-
var c =
|
|
5825
|
+
var c = K(e), f = c == As || c == gd;
|
|
5826
5826
|
if (bs(e))
|
|
5827
5827
|
return hu(e);
|
|
5828
5828
|
if (c == Os || c == $s || f && !i)
|
|
@@ -6294,7 +6294,7 @@ function Xd(e, s, t, n, i, o) {
|
|
|
6294
6294
|
k(e.$slots, (l, c) => ({
|
|
6295
6295
|
name: c,
|
|
6296
6296
|
fn: b((f) => [
|
|
6297
|
-
m(e.$slots, c, D(
|
|
6297
|
+
m(e.$slots, c, D(W(f)))
|
|
6298
6298
|
])
|
|
6299
6299
|
}))
|
|
6300
6300
|
]), 1032, ["classes", "caption", "resolveClasses", "getColumnTitle", "idPrefix", "headerRows", "style", "onColumnSorted"])
|
|
@@ -6320,7 +6320,7 @@ function Xd(e, s, t, n, i, o) {
|
|
|
6320
6320
|
k(e.$slots, (l, c) => ({
|
|
6321
6321
|
name: c,
|
|
6322
6322
|
fn: b((f) => [
|
|
6323
|
-
m(e.$slots, c, D(
|
|
6323
|
+
m(e.$slots, c, D(W(f)))
|
|
6324
6324
|
])
|
|
6325
6325
|
}))
|
|
6326
6326
|
]), 1032, ["classes", "caption", "resolveClasses", "getColumnTitle", "idPrefix", "headerRows", "style", "onColumnSorted"])) : _("", !0)
|
|
@@ -6391,7 +6391,7 @@ function Xd(e, s, t, n, i, o) {
|
|
|
6391
6391
|
k(e.$slots, (l, c) => ({
|
|
6392
6392
|
name: c,
|
|
6393
6393
|
fn: b((f) => [
|
|
6394
|
-
m(e.$slots, c, D(
|
|
6394
|
+
m(e.$slots, c, D(W(f)))
|
|
6395
6395
|
])
|
|
6396
6396
|
}))
|
|
6397
6397
|
]), 1032, ["classes", "resolveClasses", "headerRows", "rows", "footerRows", "rowColumns", "caption", "idPrefix", "getRowValue", "getColumnTitle", "onVnodeMounted", "onActualHeaderRemoved", "onActualHeaderAdded", "onColumnSorted"])
|
|
@@ -6420,7 +6420,7 @@ function Xd(e, s, t, n, i, o) {
|
|
|
6420
6420
|
k(e.$slots, (l, c) => ({
|
|
6421
6421
|
name: c,
|
|
6422
6422
|
fn: b((f) => [
|
|
6423
|
-
m(e.$slots, c, D(
|
|
6423
|
+
m(e.$slots, c, D(W(f)))
|
|
6424
6424
|
])
|
|
6425
6425
|
}))
|
|
6426
6426
|
]), 1032, ["classes", "resolveClasses", "caption", "headerRows", "columnWidth", "rows", "footerRows", "rowColumns", "idPrefix", "getRowValue", "getColumnTitle", "style", "onColumnSorted"])) : _("", !0)
|
|
@@ -71,9 +71,13 @@ export function useFacets(allItems, options = {}) {
|
|
|
71
71
|
|
|
72
72
|
const sortAlpha = items => {
|
|
73
73
|
return items.sort((a, b) => {
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
|
|
74
|
+
const va = getSortValue(a);
|
|
75
|
+
const vb = getSortValue(b);
|
|
76
|
+
if (va && vb) {
|
|
77
|
+
return String(valueA).localeCompare(String(valueB));
|
|
78
|
+
} else {
|
|
79
|
+
return va ? -1 : vb ? 1 : 0;
|
|
80
|
+
}
|
|
77
81
|
});
|
|
78
82
|
}
|
|
79
83
|
const defaultSorts = {
|
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;;;;;;;;;;;;;EAyKA"}
|