@soton.ac.uk/cape3 0.13.0 → 0.14.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/cape3.es.js +113 -113
- package/dist/cape3.umd.js +12 -12
- package/package.json +1 -1
package/dist/cape3.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var jo = Object.defineProperty;
|
|
2
2
|
var Ho = (e, t, s) => t in e ? jo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
3
|
var V = (e, t, s) => (Ho(e, typeof t != "symbol" ? t + "" : t, s), s);
|
|
4
|
-
import { shallowRef as Bo, inject as
|
|
4
|
+
import { shallowRef as Bo, inject as wt, unref as k, shallowReactive as Go, watch as Ps, nextTick as fn, defineComponent as K, reactive as Zr, computed as E, h as Jr, provide as Xs, ref as ge, getCurrentInstance as Pn, watchEffect as zo, effectScope as Qr, markRaw as gt, toRaw as as, hasInjectionContext as Ko, isRef as Qt, isReactive as xn, toRef as en, getCurrentScope as qo, onScopeDispose as Zo, toRefs as mr, openBlock as p, createElementBlock as _, createVNode as B, createTextVNode as we, createElementVNode as g, toDisplayString as G, createBlock as ne, withAsyncContext as Jo, createCommentVNode as z, withDirectives as Q, vModelCheckbox as In, Fragment as re, renderList as Le, resolveDynamicComponent as Qo, renderSlot as me, withKeys as Re, vModelSelect as bt, resolveComponent as Xo, withCtx as Xt, normalizeClass as ea, vModelText as Je, withModifiers as de, vShow as Wt, Transition as vr, vModelRadio as gr, Suspense as ta, createApp as sa } from "vue";
|
|
5
5
|
function na() {
|
|
6
6
|
return Xr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
7
7
|
}
|
|
@@ -1006,7 +1006,7 @@ function dl(e) {
|
|
|
1006
1006
|
return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
|
|
1007
1007
|
}
|
|
1008
1008
|
function Rr(e) {
|
|
1009
|
-
const t =
|
|
1009
|
+
const t = wt(Yn), s = wt(Fn), n = E(() => t.resolve(k(e.to))), r = E(() => {
|
|
1010
1010
|
const { matched: l } = n.value, { length: c } = l, u = l[c - 1], d = s.matched;
|
|
1011
1011
|
if (!u || !d.length)
|
|
1012
1012
|
return -1;
|
|
@@ -1070,7 +1070,7 @@ const fl = /* @__PURE__ */ K({
|
|
|
1070
1070
|
},
|
|
1071
1071
|
useLink: Rr,
|
|
1072
1072
|
setup(e, { slots: t }) {
|
|
1073
|
-
const s = Zr(Rr(e)), { options: n } =
|
|
1073
|
+
const s = Zr(Rr(e)), { options: n } = wt(Yn), r = E(() => ({
|
|
1074
1074
|
[Pr(e.activeClass, n.linkActiveClass, "router-link-active")]: s.isActive,
|
|
1075
1075
|
// [getLinkClass(
|
|
1076
1076
|
// props.inactiveClass,
|
|
@@ -1132,7 +1132,7 @@ const Pr = (e, t, s) => e ?? t ?? s, vl = /* @__PURE__ */ K({
|
|
|
1132
1132
|
compatConfig: { MODE: 3 },
|
|
1133
1133
|
setup(e, { attrs: t, slots: s }) {
|
|
1134
1134
|
process.env.NODE_ENV !== "production" && _l();
|
|
1135
|
-
const n =
|
|
1135
|
+
const n = wt(_n), r = E(() => e.route || n.value), i = wt(Nr, 0), o = E(() => {
|
|
1136
1136
|
let c = k(i);
|
|
1137
1137
|
const { matched: u } = r.value;
|
|
1138
1138
|
let d;
|
|
@@ -1491,12 +1491,12 @@ function Ml(e) {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
function R(h, b) {
|
|
1493
1493
|
if (b = H({}, b || l.value), typeof h == "string") {
|
|
1494
|
-
const x = sn(s, h, b.path), ie = t.resolve({ path: x.path }, b),
|
|
1495
|
-
return process.env.NODE_ENV !== "production" && (
|
|
1494
|
+
const x = sn(s, h, b.path), ie = t.resolve({ path: x.path }, b), ht = r.createHref(x.fullPath);
|
|
1495
|
+
return process.env.NODE_ENV !== "production" && (ht.startsWith("//") ? Y(`Location "${h}" resolved to "${ht}". A resolved location cannot start with multiple slashes.`) : ie.matched.length || Y(`No match found for location with path "${h}"`)), H(x, ie, {
|
|
1496
1496
|
params: f(ie.params),
|
|
1497
1497
|
hash: ts(x.hash),
|
|
1498
1498
|
redirectedFrom: void 0,
|
|
1499
|
-
href:
|
|
1499
|
+
href: ht
|
|
1500
1500
|
});
|
|
1501
1501
|
}
|
|
1502
1502
|
let w;
|
|
@@ -1587,8 +1587,8 @@ ${JSON.stringify(D, null, 2)}
|
|
|
1587
1587
|
);
|
|
1588
1588
|
const ie = w;
|
|
1589
1589
|
ie.redirectedFrom = b;
|
|
1590
|
-
let
|
|
1591
|
-
return !le && yr(n, D, w) && (
|
|
1590
|
+
let ht;
|
|
1591
|
+
return !le && yr(n, D, w) && (ht = It(16, { to: ie, from: D }), hr(
|
|
1592
1592
|
D,
|
|
1593
1593
|
D,
|
|
1594
1594
|
// this is a push, the only way for it to be triggered from a
|
|
@@ -1597,7 +1597,7 @@ ${JSON.stringify(D, null, 2)}
|
|
|
1597
1597
|
// This cannot be the first navigation because the initial location
|
|
1598
1598
|
// cannot be manually navigated to
|
|
1599
1599
|
!1
|
|
1600
|
-
)), (
|
|
1600
|
+
)), (ht ? Promise.resolve(ht) : N(ie, D)).catch((ye) => He(ye) ? (
|
|
1601
1601
|
// navigation redirects still mark the router as ready
|
|
1602
1602
|
He(
|
|
1603
1603
|
ye,
|
|
@@ -1701,7 +1701,7 @@ ${JSON.stringify(D, null, 2)}
|
|
|
1701
1701
|
}, j)) : r.push(h.fullPath, j)), l.value = h, hr(h, b, w, I), Zs();
|
|
1702
1702
|
}
|
|
1703
1703
|
let ce;
|
|
1704
|
-
function
|
|
1704
|
+
function ft() {
|
|
1705
1705
|
ce || (ce = r.listen((h, b, w) => {
|
|
1706
1706
|
if (!pr.listening)
|
|
1707
1707
|
return;
|
|
@@ -1762,7 +1762,7 @@ ${JSON.stringify(D, null, 2)}
|
|
|
1762
1762
|
});
|
|
1763
1763
|
}
|
|
1764
1764
|
function Zs(h) {
|
|
1765
|
-
return Ae || (Ae = !h,
|
|
1765
|
+
return Ae || (Ae = !h, ft(), Ut.list().forEach(([b, w]) => h ? w(h) : b()), Ut.reset()), h;
|
|
1766
1766
|
}
|
|
1767
1767
|
function hr(h, b, w, D) {
|
|
1768
1768
|
const { scrollBehavior: j } = e;
|
|
@@ -1831,7 +1831,7 @@ function $l(e, t) {
|
|
|
1831
1831
|
return [s, n, r];
|
|
1832
1832
|
}
|
|
1833
1833
|
function Nl() {
|
|
1834
|
-
return
|
|
1834
|
+
return wt(Fn);
|
|
1835
1835
|
}
|
|
1836
1836
|
var vi = !1;
|
|
1837
1837
|
function _s(e, t, s) {
|
|
@@ -1854,7 +1854,7 @@ const ss = (e) => zt = e, gi = process.env.NODE_ENV !== "production" ? Symbol("p
|
|
|
1854
1854
|
/* istanbul ignore next */
|
|
1855
1855
|
Symbol()
|
|
1856
1856
|
);
|
|
1857
|
-
function
|
|
1857
|
+
function St(e) {
|
|
1858
1858
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
1859
1859
|
}
|
|
1860
1860
|
var Fe;
|
|
@@ -2096,7 +2096,7 @@ function jl(e) {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
}
|
|
2098
2098
|
let Nt = !0;
|
|
2099
|
-
const ks = [],
|
|
2099
|
+
const ks = [], mt = "pinia:mutations", ve = "pinia", { assign: Hl } = Object, Ts = (e) => "🍍 " + e;
|
|
2100
2100
|
function Bl(e, t) {
|
|
2101
2101
|
Vn({
|
|
2102
2102
|
id: "dev.esm.pinia",
|
|
@@ -2108,7 +2108,7 @@ function Bl(e, t) {
|
|
|
2108
2108
|
app: e
|
|
2109
2109
|
}, (s) => {
|
|
2110
2110
|
typeof s.now != "function" && he("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), s.addTimelineLayer({
|
|
2111
|
-
id:
|
|
2111
|
+
id: mt,
|
|
2112
2112
|
label: "Pinia 🍍",
|
|
2113
2113
|
color: 15064968
|
|
2114
2114
|
}), s.addInspector({
|
|
@@ -2256,7 +2256,7 @@ function Gl(e, t) {
|
|
|
2256
2256
|
t.$onAction(({ after: o, onError: a, name: l, args: c }) => {
|
|
2257
2257
|
const u = Ei++;
|
|
2258
2258
|
s.addTimelineEvent({
|
|
2259
|
-
layerId:
|
|
2259
|
+
layerId: mt,
|
|
2260
2260
|
event: {
|
|
2261
2261
|
time: n(),
|
|
2262
2262
|
title: "🛫 " + l,
|
|
@@ -2270,7 +2270,7 @@ function Gl(e, t) {
|
|
|
2270
2270
|
}
|
|
2271
2271
|
}), o((d) => {
|
|
2272
2272
|
it = void 0, s.addTimelineEvent({
|
|
2273
|
-
layerId:
|
|
2273
|
+
layerId: mt,
|
|
2274
2274
|
event: {
|
|
2275
2275
|
time: n(),
|
|
2276
2276
|
title: "🛬 " + l,
|
|
@@ -2286,7 +2286,7 @@ function Gl(e, t) {
|
|
|
2286
2286
|
});
|
|
2287
2287
|
}), a((d) => {
|
|
2288
2288
|
it = void 0, s.addTimelineEvent({
|
|
2289
|
-
layerId:
|
|
2289
|
+
layerId: mt,
|
|
2290
2290
|
event: {
|
|
2291
2291
|
time: n(),
|
|
2292
2292
|
logType: "error",
|
|
@@ -2305,7 +2305,7 @@ function Gl(e, t) {
|
|
|
2305
2305
|
}, !0), t._customProperties.forEach((o) => {
|
|
2306
2306
|
Ps(() => k(t[o]), (a, l) => {
|
|
2307
2307
|
s.notifyComponentUpdate(), s.sendInspectorState(ve), Nt && s.addTimelineEvent({
|
|
2308
|
-
layerId:
|
|
2308
|
+
layerId: mt,
|
|
2309
2309
|
event: {
|
|
2310
2310
|
time: n(),
|
|
2311
2311
|
title: "Change",
|
|
@@ -2335,14 +2335,14 @@ function Gl(e, t) {
|
|
|
2335
2335
|
value: o
|
|
2336
2336
|
}
|
|
2337
2337
|
}), s.addTimelineEvent({
|
|
2338
|
-
layerId:
|
|
2338
|
+
layerId: mt,
|
|
2339
2339
|
event: c
|
|
2340
2340
|
});
|
|
2341
2341
|
}, { detached: !0, flush: "sync" });
|
|
2342
2342
|
const r = t._hotUpdate;
|
|
2343
|
-
t._hotUpdate =
|
|
2343
|
+
t._hotUpdate = gt((o) => {
|
|
2344
2344
|
r(o), s.addTimelineEvent({
|
|
2345
|
-
layerId:
|
|
2345
|
+
layerId: mt,
|
|
2346
2346
|
event: {
|
|
2347
2347
|
time: n(),
|
|
2348
2348
|
title: "🔥 " + t.$id,
|
|
@@ -2394,7 +2394,7 @@ function zl({ app: e, store: t, options: s }) {
|
|
|
2394
2394
|
function Kl() {
|
|
2395
2395
|
const e = Qr(!0), t = e.run(() => ge({}));
|
|
2396
2396
|
let s = [], n = [];
|
|
2397
|
-
const r =
|
|
2397
|
+
const r = gt({
|
|
2398
2398
|
install(i) {
|
|
2399
2399
|
ss(r), r._a = i, i.provide(gi, r), i.config.globalProperties.$pinia = r, Zt && Bl(i, r), n.forEach((o) => s.push(o)), n = [];
|
|
2400
2400
|
},
|
|
@@ -2417,7 +2417,7 @@ function Di(e, t) {
|
|
|
2417
2417
|
if (!(s in e))
|
|
2418
2418
|
continue;
|
|
2419
2419
|
const r = e[s];
|
|
2420
|
-
|
|
2420
|
+
St(r) && St(n) && !Qt(n) && !xn(n) ? e[s] = Di(r, n) : e[s] = n;
|
|
2421
2421
|
}
|
|
2422
2422
|
return e;
|
|
2423
2423
|
}
|
|
@@ -2443,7 +2443,7 @@ function bn(e, t) {
|
|
|
2443
2443
|
if (!t.hasOwnProperty(s))
|
|
2444
2444
|
continue;
|
|
2445
2445
|
const n = t[s], r = e[s];
|
|
2446
|
-
|
|
2446
|
+
St(r) && St(n) && e.hasOwnProperty(s) && !Qt(n) && !xn(n) ? e[s] = bn(r, n) : e[s] = n;
|
|
2447
2447
|
}
|
|
2448
2448
|
return e;
|
|
2449
2449
|
}
|
|
@@ -2452,7 +2452,7 @@ const Zl = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration")
|
|
|
2452
2452
|
Symbol()
|
|
2453
2453
|
);
|
|
2454
2454
|
function Jl(e) {
|
|
2455
|
-
return !
|
|
2455
|
+
return !St(e) || !e.hasOwnProperty(Zl);
|
|
2456
2456
|
}
|
|
2457
2457
|
const { assign: De } = Object;
|
|
2458
2458
|
function Yr(e) {
|
|
@@ -2467,7 +2467,7 @@ function Fr(e, t, s, n) {
|
|
|
2467
2467
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
2468
2468
|
mr(ge(r ? r() : {}).value)
|
|
2469
2469
|
) : mr(s.state.value[e]);
|
|
2470
|
-
return De(u, i, Object.keys(o || {}).reduce((d, f) => (process.env.NODE_ENV !== "production" && f in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), d[f] =
|
|
2470
|
+
return De(u, i, Object.keys(o || {}).reduce((d, f) => (process.env.NODE_ENV !== "production" && f in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), d[f] = gt(E(() => {
|
|
2471
2471
|
ss(s);
|
|
2472
2472
|
const v = s._s.get(e);
|
|
2473
2473
|
return o[f].call(v, v);
|
|
@@ -2526,12 +2526,12 @@ function Sn(e, t, s = {}, n, r, i) {
|
|
|
2526
2526
|
function ue(N, O) {
|
|
2527
2527
|
return function() {
|
|
2528
2528
|
ss(n);
|
|
2529
|
-
const X = Array.from(arguments), ce = [],
|
|
2529
|
+
const X = Array.from(arguments), ce = [], ft = [];
|
|
2530
2530
|
function Ut(pe) {
|
|
2531
2531
|
ce.push(pe);
|
|
2532
2532
|
}
|
|
2533
2533
|
function ms(pe) {
|
|
2534
|
-
|
|
2534
|
+
ft.push(pe);
|
|
2535
2535
|
}
|
|
2536
2536
|
Tt(f, {
|
|
2537
2537
|
args: X,
|
|
@@ -2544,12 +2544,12 @@ function Sn(e, t, s = {}, n, r, i) {
|
|
|
2544
2544
|
try {
|
|
2545
2545
|
Ae = O.apply(this && this.$id === e ? this : C, X);
|
|
2546
2546
|
} catch (pe) {
|
|
2547
|
-
throw Tt(
|
|
2547
|
+
throw Tt(ft, pe), pe;
|
|
2548
2548
|
}
|
|
2549
|
-
return Ae instanceof Promise ? Ae.then((pe) => (Tt(ce, pe), pe)).catch((pe) => (Tt(
|
|
2549
|
+
return Ae instanceof Promise ? Ae.then((pe) => (Tt(ce, pe), pe)).catch((pe) => (Tt(ft, pe), Promise.reject(pe))) : (Tt(ce, Ae), Ae);
|
|
2550
2550
|
};
|
|
2551
2551
|
}
|
|
2552
|
-
const Oe = /* @__PURE__ */
|
|
2552
|
+
const Oe = /* @__PURE__ */ gt({
|
|
2553
2553
|
actions: {},
|
|
2554
2554
|
getters: {},
|
|
2555
2555
|
state: [],
|
|
@@ -2562,12 +2562,12 @@ function Sn(e, t, s = {}, n, r, i) {
|
|
|
2562
2562
|
$patch: R,
|
|
2563
2563
|
$reset: $,
|
|
2564
2564
|
$subscribe(N, O = {}) {
|
|
2565
|
-
const X = Ar(d, N, O.detached, () => ce()), ce = o.run(() => Ps(() => n.state.value[e], (
|
|
2565
|
+
const X = Ar(d, N, O.detached, () => ce()), ce = o.run(() => Ps(() => n.state.value[e], (ft) => {
|
|
2566
2566
|
(O.flush === "sync" ? u : c) && N({
|
|
2567
2567
|
storeId: e,
|
|
2568
2568
|
type: Fe.direct,
|
|
2569
2569
|
events: v
|
|
2570
|
-
},
|
|
2570
|
+
}, ft);
|
|
2571
2571
|
}, De({}, l, O)));
|
|
2572
2572
|
return X;
|
|
2573
2573
|
},
|
|
@@ -2575,7 +2575,7 @@ function Sn(e, t, s = {}, n, r, i) {
|
|
|
2575
2575
|
}, C = Zr(process.env.NODE_ENV !== "production" || Zt ? De(
|
|
2576
2576
|
{
|
|
2577
2577
|
_hmrPayload: Oe,
|
|
2578
|
-
_customProperties:
|
|
2578
|
+
_customProperties: gt(/* @__PURE__ */ new Set())
|
|
2579
2579
|
// devtools custom properties
|
|
2580
2580
|
},
|
|
2581
2581
|
Ee
|
|
@@ -2596,7 +2596,7 @@ function Sn(e, t, s = {}, n, r, i) {
|
|
|
2596
2596
|
// @ts-expect-error
|
|
2597
2597
|
s.getters[N]
|
|
2598
2598
|
) : O, Is && (Ne._getters || // @ts-expect-error: same
|
|
2599
|
-
(Ne._getters =
|
|
2599
|
+
(Ne._getters = gt([]))).push(N));
|
|
2600
2600
|
}
|
|
2601
2601
|
if (De(C, Ne), De(as(C), Ne), Object.defineProperty(C, "$state", {
|
|
2602
2602
|
get: () => process.env.NODE_ENV !== "production" && r ? J.value : n.state.value[e],
|
|
@@ -2607,11 +2607,11 @@ function Sn(e, t, s = {}, n, r, i) {
|
|
|
2607
2607
|
De(O, N);
|
|
2608
2608
|
});
|
|
2609
2609
|
}
|
|
2610
|
-
}), process.env.NODE_ENV !== "production" && (C._hotUpdate =
|
|
2610
|
+
}), process.env.NODE_ENV !== "production" && (C._hotUpdate = gt((N) => {
|
|
2611
2611
|
C._hotUpdating = !0, N._hmrPayload.state.forEach((O) => {
|
|
2612
2612
|
if (O in C.$state) {
|
|
2613
2613
|
const X = N.$state[O], ce = C.$state[O];
|
|
2614
|
-
typeof X == "object" &&
|
|
2614
|
+
typeof X == "object" && St(X) && St(ce) ? Di(X, ce) : N.$state[O] = ce;
|
|
2615
2615
|
}
|
|
2616
2616
|
_s(C, O, en(N.$state, O));
|
|
2617
2617
|
}), Object.keys(C.$state).forEach((O) => {
|
|
@@ -2677,7 +2677,7 @@ function Vt(e, t, s) {
|
|
|
2677
2677
|
const c = Ko();
|
|
2678
2678
|
if (a = // in test mode, ignore the argument provided as we can always retrieve a
|
|
2679
2679
|
// pinia instance with getActivePinia()
|
|
2680
|
-
(process.env.NODE_ENV === "test" && zt && zt._testing ? null : a) || (c ?
|
|
2680
|
+
(process.env.NODE_ENV === "test" && zt && zt._testing ? null : a) || (c ? wt(gi, null) : null), a && ss(a), process.env.NODE_ENV !== "production" && !zt)
|
|
2681
2681
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
2682
2682
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
2683
2683
|
This will fail in production.`);
|
|
@@ -2762,27 +2762,6 @@ function $i(e, t) {
|
|
|
2762
2762
|
if (n >= 0)
|
|
2763
2763
|
return e[n];
|
|
2764
2764
|
}
|
|
2765
|
-
const ls = Vt("records", () => {
|
|
2766
|
-
const e = ge([]), t = E(() => e.value.length), s = E(() => e.value);
|
|
2767
|
-
function n(a) {
|
|
2768
|
-
const l = e.value.find(
|
|
2769
|
-
(c) => c.record_number.value === a
|
|
2770
|
-
);
|
|
2771
|
-
if (l === void 0)
|
|
2772
|
-
throw new Xl(a);
|
|
2773
|
-
return l;
|
|
2774
|
-
}
|
|
2775
|
-
function r(a) {
|
|
2776
|
-
e.value = a;
|
|
2777
|
-
}
|
|
2778
|
-
function i(a) {
|
|
2779
|
-
return Mi(s.value, a);
|
|
2780
|
-
}
|
|
2781
|
-
function o(a) {
|
|
2782
|
-
return $i(s.value, a);
|
|
2783
|
-
}
|
|
2784
|
-
return { all: s, count: t, byId: n, set: r, next: i, previous: o, records: e };
|
|
2785
|
-
});
|
|
2786
2765
|
class Wn extends Error {
|
|
2787
2766
|
constructor(t) {
|
|
2788
2767
|
super(`The field ${t} was not found.`);
|
|
@@ -2817,7 +2796,7 @@ class eu {
|
|
|
2817
2796
|
}
|
|
2818
2797
|
}
|
|
2819
2798
|
function tu(e) {
|
|
2820
|
-
const t = {}, s =
|
|
2799
|
+
const t = {}, s = ls();
|
|
2821
2800
|
return Object.keys(e).sort().forEach((n) => {
|
|
2822
2801
|
if (s.byId(n) === void 0)
|
|
2823
2802
|
throw new Wn(n);
|
|
@@ -2834,7 +2813,7 @@ const Vs = Vt("dataset", () => {
|
|
|
2834
2813
|
try {
|
|
2835
2814
|
e.value = !0;
|
|
2836
2815
|
const o = new eu();
|
|
2837
|
-
n.value = await o.getData(), s.value = !0,
|
|
2816
|
+
n.value = await o.getData(), s.value = !0, us().set(su(n.value.records));
|
|
2838
2817
|
} catch (o) {
|
|
2839
2818
|
t.value = `Failed to fetch or process site-data.json from the website root. ${o}`;
|
|
2840
2819
|
} finally {
|
|
@@ -2848,7 +2827,7 @@ const Vs = Vt("dataset", () => {
|
|
|
2848
2827
|
loadData: r,
|
|
2849
2828
|
dataset: n
|
|
2850
2829
|
};
|
|
2851
|
-
}),
|
|
2830
|
+
}), ls = Vt("fields", () => {
|
|
2852
2831
|
const e = Vs(), t = E(() => {
|
|
2853
2832
|
var r;
|
|
2854
2833
|
return ((r = e.dataset) == null ? void 0 : r.fields) ?? [];
|
|
@@ -2860,8 +2839,8 @@ const Vs = Vt("dataset", () => {
|
|
|
2860
2839
|
return i;
|
|
2861
2840
|
}
|
|
2862
2841
|
return { all: t, count: s, byId: n };
|
|
2863
|
-
}),
|
|
2864
|
-
const e =
|
|
2842
|
+
}), dt = Vt("properties", () => {
|
|
2843
|
+
const e = ls(), t = Vs(), s = ge({}), n = E(() => {
|
|
2865
2844
|
var d;
|
|
2866
2845
|
return (d = t.dataset) == null ? void 0 : d.properties;
|
|
2867
2846
|
}), r = E(() => {
|
|
@@ -2901,6 +2880,26 @@ const Vs = Vt("dataset", () => {
|
|
|
2901
2880
|
setOptions: c,
|
|
2902
2881
|
options: s
|
|
2903
2882
|
};
|
|
2883
|
+
}), us = Vt("records", () => {
|
|
2884
|
+
const e = ge([]), t = E(() => e.value.length), s = E(() => e.value), n = dt();
|
|
2885
|
+
function r(l) {
|
|
2886
|
+
const c = e.value.find(
|
|
2887
|
+
(u) => u[n.idField.id].value == l
|
|
2888
|
+
);
|
|
2889
|
+
if (c === void 0)
|
|
2890
|
+
throw new Xl(l);
|
|
2891
|
+
return c;
|
|
2892
|
+
}
|
|
2893
|
+
function i(l) {
|
|
2894
|
+
e.value = l;
|
|
2895
|
+
}
|
|
2896
|
+
function o(l) {
|
|
2897
|
+
return Mi(s.value, l);
|
|
2898
|
+
}
|
|
2899
|
+
function a(l) {
|
|
2900
|
+
return $i(s.value, l);
|
|
2901
|
+
}
|
|
2902
|
+
return { all: s, count: t, byId: r, set: i, next: o, previous: a, records: e };
|
|
2904
2903
|
});
|
|
2905
2904
|
var ot = /* @__PURE__ */ ((e) => (e.Ascending = "Ascending", e.Descending = "Descending", e))(ot || {});
|
|
2906
2905
|
function nu(e, t, s, n) {
|
|
@@ -2911,7 +2910,7 @@ function nu(e, t, s, n) {
|
|
|
2911
2910
|
return !r && !i ? 0 : !r && i ? n === ot.Ascending ? 1 : -1 : r && !i || r.toString().localeCompare(i.toString()) < 0 ? n === ot.Ascending ? -1 : 1 : r.toString().localeCompare(i.toString()) > 0 ? n === ot.Ascending ? 1 : -1 : 0;
|
|
2912
2911
|
}
|
|
2913
2912
|
const kt = Vt("searchResults", () => {
|
|
2914
|
-
const e =
|
|
2913
|
+
const e = us(), t = dt(), s = ae(), n = E(() => t.resultMode === "search" && !s.hasActive ? [] : s.active.reduce(
|
|
2915
2914
|
($, Z) => Z.filterRecords($),
|
|
2916
2915
|
e.all
|
|
2917
2916
|
)), r = E(() => {
|
|
@@ -2977,7 +2976,7 @@ const kt = Vt("searchResults", () => {
|
|
|
2977
2976
|
}, ou = { class: "cape-record-page-record-id" }, xi = /* @__PURE__ */ K({
|
|
2978
2977
|
__name: "CapeRecordPage",
|
|
2979
2978
|
setup(e) {
|
|
2980
|
-
const t = Nl(), s =
|
|
2979
|
+
const t = Nl(), s = us(), n = E(() => t.params.id), r = E(() => {
|
|
2981
2980
|
try {
|
|
2982
2981
|
return s.byId(n.value);
|
|
2983
2982
|
} catch {
|
|
@@ -3004,7 +3003,7 @@ const kt = Vt("searchResults", () => {
|
|
|
3004
3003
|
}), Ii = {
|
|
3005
3004
|
template: "#templateCapeNavigation",
|
|
3006
3005
|
computed: {
|
|
3007
|
-
...kn(
|
|
3006
|
+
...kn(dt, ["pages"])
|
|
3008
3007
|
}
|
|
3009
3008
|
}, au = { class: "cape-load-error cape-error" }, lu = /* @__PURE__ */ g("h2", null, "Unable to load data", -1), uu = { class: "cape-load-error-message" }, Vi = /* @__PURE__ */ K({
|
|
3010
3009
|
__name: "CapeLoadError",
|
|
@@ -3228,12 +3227,12 @@ function mu(e, t, s) {
|
|
|
3228
3227
|
(i) => i >= t && i <= s
|
|
3229
3228
|
) !== void 0;
|
|
3230
3229
|
}
|
|
3231
|
-
function
|
|
3230
|
+
function vt(e) {
|
|
3232
3231
|
if (e != "")
|
|
3233
3232
|
return e;
|
|
3234
3233
|
}
|
|
3235
3234
|
function Wr(e, t) {
|
|
3236
|
-
const s =
|
|
3235
|
+
const s = vt(e);
|
|
3237
3236
|
return s ?? t;
|
|
3238
3237
|
}
|
|
3239
3238
|
class vu extends As {
|
|
@@ -3255,9 +3254,9 @@ class vu extends As {
|
|
|
3255
3254
|
isDefault() {
|
|
3256
3255
|
switch (this.defaultMode) {
|
|
3257
3256
|
case "is":
|
|
3258
|
-
return this.mode == this.defaultMode &&
|
|
3257
|
+
return this.mode == this.defaultMode && vt(this.isTerm) == this.defaultIsTerm;
|
|
3259
3258
|
case "between":
|
|
3260
|
-
return this.mode == this.defaultMode &&
|
|
3259
|
+
return this.mode == this.defaultMode && vt(this.lowerBoundTerm) == this.defaultLowerBound && vt(this.upperBoundTerm) == this.defaultUpperBound;
|
|
3261
3260
|
case "set":
|
|
3262
3261
|
case "notSet":
|
|
3263
3262
|
return this.mode == this.defaultMode;
|
|
@@ -3266,9 +3265,9 @@ class vu extends As {
|
|
|
3266
3265
|
isActive() {
|
|
3267
3266
|
switch (this.mode) {
|
|
3268
3267
|
case "is":
|
|
3269
|
-
return
|
|
3268
|
+
return vt(this.isTerm) !== void 0;
|
|
3270
3269
|
case "between":
|
|
3271
|
-
return
|
|
3270
|
+
return vt(this.lowerBoundTerm) !== void 0 || vt(this.upperBoundTerm) !== void 0;
|
|
3272
3271
|
case "set":
|
|
3273
3272
|
case "notSet":
|
|
3274
3273
|
return !0;
|
|
@@ -3398,7 +3397,7 @@ function bu() {
|
|
|
3398
3397
|
);
|
|
3399
3398
|
}
|
|
3400
3399
|
function Su() {
|
|
3401
|
-
const e =
|
|
3400
|
+
const e = ls();
|
|
3402
3401
|
let t = 0;
|
|
3403
3402
|
e.all.forEach((s) => {
|
|
3404
3403
|
if (s.filterDisplay === "hide")
|
|
@@ -3482,7 +3481,7 @@ function Du(e, t, s) {
|
|
|
3482
3481
|
}
|
|
3483
3482
|
function Tu() {
|
|
3484
3483
|
var s;
|
|
3485
|
-
const e = ae(), t =
|
|
3484
|
+
const e = ae(), t = dt();
|
|
3486
3485
|
((s = t == null ? void 0 : t.options) == null ? void 0 : s.additionalFilters) !== void 0 && t.options.additionalFilters.forEach((n) => e.add(n));
|
|
3487
3486
|
}
|
|
3488
3487
|
const Li = /* @__PURE__ */ K({
|
|
@@ -3498,7 +3497,7 @@ const Li = /* @__PURE__ */ K({
|
|
|
3498
3497
|
}), Mu = { class: "cape-record-count" }, Ui = /* @__PURE__ */ K({
|
|
3499
3498
|
__name: "CapeRecordCount",
|
|
3500
3499
|
setup(e) {
|
|
3501
|
-
const t =
|
|
3500
|
+
const t = us();
|
|
3502
3501
|
return (s, n) => (p(), _("span", Mu, G(k(t).count), 1));
|
|
3503
3502
|
}
|
|
3504
3503
|
}), $u = {
|
|
@@ -3564,7 +3563,7 @@ function Yu(e, t) {
|
|
|
3564
3563
|
}
|
|
3565
3564
|
const Hi = /* @__PURE__ */ ji(Pu, [["render", Yu]]), Fu = function() {
|
|
3566
3565
|
var s;
|
|
3567
|
-
const e =
|
|
3566
|
+
const e = dt(), t = (s = e == null ? void 0 : e.options) == null ? void 0 : s.environment;
|
|
3568
3567
|
return t || (console.warn(
|
|
3569
3568
|
'Cannot identify your environment name. Pass environment name as CapeOptions.environment when instantiating the CapePlugin. Defaulting to "UNKNOWN".'
|
|
3570
3569
|
), "UNKNOWN");
|
|
@@ -3616,7 +3615,7 @@ const Hi = /* @__PURE__ */ ji(Pu, [["render", Yu]]), Fu = function() {
|
|
|
3616
3615
|
}
|
|
3617
3616
|
},
|
|
3618
3617
|
setup(e) {
|
|
3619
|
-
const t =
|
|
3618
|
+
const t = dt(), s = kt(), n = e, r = E(() => `cape-sort-order-${n.idDistinguisher}`), i = E(() => `cape-sort-order-direction-${n.idDistinguisher}`);
|
|
3620
3619
|
return (o, a) => k(s).hasSortFields && k(s).visibleCount > 0 ? (p(), _("div", Bu, [
|
|
3621
3620
|
g("label", { for: r.value }, "Order results by: ", 8, Gu),
|
|
3622
3621
|
g("div", zu, [
|
|
@@ -3630,7 +3629,7 @@ const Hi = /* @__PURE__ */ ji(Pu, [["render", Yu]]), Fu = function() {
|
|
|
3630
3629
|
value: l.id
|
|
3631
3630
|
}, G(l.label), 9, qu))), 128))
|
|
3632
3631
|
], 8, Ku), [
|
|
3633
|
-
[
|
|
3632
|
+
[bt, k(s).sortFieldId]
|
|
3634
3633
|
]),
|
|
3635
3634
|
Q(g("select", {
|
|
3636
3635
|
class: "cape-sort-order-direction",
|
|
@@ -3645,7 +3644,7 @@ const Hi = /* @__PURE__ */ ji(Pu, [["render", Yu]]), Fu = function() {
|
|
|
3645
3644
|
value: k(ot).Descending
|
|
3646
3645
|
}, "Descending", 8, Qu)
|
|
3647
3646
|
], 8, Zu), [
|
|
3648
|
-
[
|
|
3647
|
+
[bt, k(s).sortDirection]
|
|
3649
3648
|
])
|
|
3650
3649
|
])
|
|
3651
3650
|
])) : z("", !0);
|
|
@@ -3744,7 +3743,7 @@ function fc(e) {
|
|
|
3744
3743
|
function xe(e) {
|
|
3745
3744
|
return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
|
|
3746
3745
|
}
|
|
3747
|
-
function
|
|
3746
|
+
function yt(e) {
|
|
3748
3747
|
return e != null && Object.prototype.toString.call(e) === "[object Object]";
|
|
3749
3748
|
}
|
|
3750
3749
|
function U(e, t) {
|
|
@@ -3889,9 +3888,9 @@ function pc(e) {
|
|
|
3889
3888
|
function Dn(e, t) {
|
|
3890
3889
|
var s = at({}, e), n;
|
|
3891
3890
|
for (n in t)
|
|
3892
|
-
U(t, n) && (
|
|
3891
|
+
U(t, n) && (yt(e[n]) && yt(t[n]) ? (s[n] = {}, at(s[n], e[n]), at(s[n], t[n])) : t[n] != null ? s[n] = t[n] : delete s[n]);
|
|
3893
3892
|
for (n in e)
|
|
3894
|
-
U(e, n) && !U(t, n) &&
|
|
3893
|
+
U(e, n) && !U(t, n) && yt(e[n]) && (s[n] = at({}, s[n]));
|
|
3895
3894
|
return s;
|
|
3896
3895
|
}
|
|
3897
3896
|
function zn(e) {
|
|
@@ -4145,7 +4144,7 @@ function Ic(e, t, s) {
|
|
|
4145
4144
|
function Bs(e) {
|
|
4146
4145
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
4147
4146
|
}
|
|
4148
|
-
var _e = 0, qe = 1, Ye = 2, fe = 3, Pe = 4, Ze = 5,
|
|
4147
|
+
var _e = 0, qe = 1, Ye = 2, fe = 3, Pe = 4, Ze = 5, _t = 6, Vc = 7, Ac = 8;
|
|
4149
4148
|
M("Y", 0, 0, function() {
|
|
4150
4149
|
var e = this.year();
|
|
4151
4150
|
return e <= 9999 ? Ue(e, 4) : "+" + e;
|
|
@@ -4751,7 +4750,7 @@ function Cd() {
|
|
|
4751
4750
|
}
|
|
4752
4751
|
function rr(e) {
|
|
4753
4752
|
var t, s = e._a;
|
|
4754
|
-
return s && P(e).overflow === -2 && (t = s[qe] < 0 || s[qe] > 11 ? qe : s[Ye] < 1 || s[Ye] > Xn(s[_e], s[qe]) ? Ye : s[fe] < 0 || s[fe] > 24 || s[fe] === 24 && (s[Pe] !== 0 || s[Ze] !== 0 || s[
|
|
4753
|
+
return s && P(e).overflow === -2 && (t = s[qe] < 0 || s[qe] > 11 ? qe : s[Ye] < 1 || s[Ye] > Xn(s[_e], s[qe]) ? Ye : s[fe] < 0 || s[fe] > 24 || s[fe] === 24 && (s[Pe] !== 0 || s[Ze] !== 0 || s[_t] !== 0) ? fe : s[Pe] < 0 || s[Pe] > 59 ? Pe : s[Ze] < 0 || s[Ze] > 59 ? Ze : s[_t] < 0 || s[_t] > 999 ? _t : -1, P(e)._overflowDayOfYear && (t < _e || t > Ye) && (t = Ye), P(e)._overflowWeeks && t === -1 && (t = Vc), P(e)._overflowWeekday && t === -1 && (t = Ac), P(e).overflow = t), e;
|
|
4755
4754
|
}
|
|
4756
4755
|
var Pd = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, xd = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Id = /Z|[+-]\d\d(?::?\d\d)?/, ws = [
|
|
4757
4756
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
@@ -4920,7 +4919,7 @@ function ir(e) {
|
|
|
4920
4919
|
e._a[t] = n[t] = r[t];
|
|
4921
4920
|
for (; t < 7; t++)
|
|
4922
4921
|
e._a[t] = n[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
4923
|
-
e._a[fe] === 24 && e._a[Pe] === 0 && e._a[Ze] === 0 && e._a[
|
|
4922
|
+
e._a[fe] === 24 && e._a[Pe] === 0 && e._a[Ze] === 0 && e._a[_t] === 0 && (e._nextDay = !0, e._a[fe] = 0), e._d = (e._useUTC ? rs : Qc).apply(
|
|
4924
4923
|
null,
|
|
4925
4924
|
n
|
|
4926
4925
|
), i = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[fe] = 24), e._w && typeof e._w.d < "u" && e._w.d !== i && (P(e).weekdayMismatch = !0);
|
|
@@ -4996,11 +4995,11 @@ function Jd(e) {
|
|
|
4996
4995
|
var t = e._i;
|
|
4997
4996
|
be(t) ? e._d = new Date(y.now()) : ds(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Hd(e) : xe(t) ? (e._a = Ki(t.slice(0), function(s) {
|
|
4998
4997
|
return parseInt(s, 10);
|
|
4999
|
-
}), ir(e)) :
|
|
4998
|
+
}), ir(e)) : yt(t) ? qd(e) : et(t) ? e._d = new Date(t) : y.createFromInputFallback(e);
|
|
5000
4999
|
}
|
|
5001
5000
|
function _o(e, t, s, n, r) {
|
|
5002
5001
|
var i = {};
|
|
5003
|
-
return (t === !0 || t === !1) && (n = t, t = void 0), (s === !0 || s === !1) && (n = s, s = void 0), (
|
|
5002
|
+
return (t === !0 || t === !1) && (n = t, t = void 0), (s === !0 || s === !1) && (n = s, s = void 0), (yt(e) && Hn(e) || xe(e) && e.length === 0) && (e = void 0), i._isAMomentObject = !0, i._useUTC = i._isUTC = r, i._l = s, i._i = e, i._f = t, i._strict = n, Zd(i);
|
|
5004
5003
|
}
|
|
5005
5004
|
function ee(e, t, s, n) {
|
|
5006
5005
|
return _o(e, t, s, n, !1);
|
|
@@ -5182,16 +5181,16 @@ function Ve(e, t) {
|
|
|
5182
5181
|
h: A(n[fe]) * r,
|
|
5183
5182
|
m: A(n[Pe]) * r,
|
|
5184
5183
|
s: A(n[Ze]) * r,
|
|
5185
|
-
ms: A($n(n[
|
|
5184
|
+
ms: A($n(n[_t] * 1e3)) * r
|
|
5186
5185
|
// the millisecond decimal point is included in the match
|
|
5187
5186
|
}) : (n = wf.exec(e)) ? (r = n[1] === "-" ? -1 : 1, s = {
|
|
5188
|
-
y:
|
|
5189
|
-
M:
|
|
5190
|
-
w:
|
|
5191
|
-
d:
|
|
5192
|
-
h:
|
|
5193
|
-
m:
|
|
5194
|
-
s:
|
|
5187
|
+
y: pt(n[2], r),
|
|
5188
|
+
M: pt(n[3], r),
|
|
5189
|
+
w: pt(n[4], r),
|
|
5190
|
+
d: pt(n[5], r),
|
|
5191
|
+
h: pt(n[6], r),
|
|
5192
|
+
m: pt(n[7], r),
|
|
5193
|
+
s: pt(n[8], r)
|
|
5195
5194
|
}) : s == null ? s = {} : typeof s == "object" && ("from" in s || "to" in s) && (o = bf(
|
|
5196
5195
|
ee(s.from),
|
|
5197
5196
|
ee(s.to)
|
|
@@ -5199,7 +5198,7 @@ function Ve(e, t) {
|
|
|
5199
5198
|
}
|
|
5200
5199
|
Ve.fn = zs.prototype;
|
|
5201
5200
|
Ve.invalid = of;
|
|
5202
|
-
function
|
|
5201
|
+
function pt(e, t) {
|
|
5203
5202
|
var s = e && parseFloat(e.replace(",", "."));
|
|
5204
5203
|
return (isNaN(s) ? 0 : s) * t;
|
|
5205
5204
|
}
|
|
@@ -5232,7 +5231,7 @@ function Of(e) {
|
|
|
5232
5231
|
return Ie(e) || ds(e) || Oo(e) || et(e) || Df(e) || Ef(e) || e === null || e === void 0;
|
|
5233
5232
|
}
|
|
5234
5233
|
function Ef(e) {
|
|
5235
|
-
var t =
|
|
5234
|
+
var t = yt(e) && !Hn(e), s = !1, n = [
|
|
5236
5235
|
"years",
|
|
5237
5236
|
"year",
|
|
5238
5237
|
"y",
|
|
@@ -5269,7 +5268,7 @@ function Df(e) {
|
|
|
5269
5268
|
}).length === 0), t && s;
|
|
5270
5269
|
}
|
|
5271
5270
|
function Tf(e) {
|
|
5272
|
-
var t =
|
|
5271
|
+
var t = yt(e) && !Hn(e), s = !1, n = [
|
|
5273
5272
|
"sameDay",
|
|
5274
5273
|
"nextDay",
|
|
5275
5274
|
"lastDay",
|
|
@@ -5858,7 +5857,7 @@ var lt, Po;
|
|
|
5858
5857
|
for (lt = "SSSS"; lt.length <= 9; lt += "S")
|
|
5859
5858
|
S(lt, Yt);
|
|
5860
5859
|
function Mh(e, t) {
|
|
5861
|
-
t[
|
|
5860
|
+
t[_t] = A(("0." + e) * 1e3);
|
|
5862
5861
|
}
|
|
5863
5862
|
for (lt = "S"; lt.length <= 9; lt += "S")
|
|
5864
5863
|
q(lt, Mh);
|
|
@@ -6452,7 +6451,7 @@ const hp = ["title"], Cn = /* @__PURE__ */ K({
|
|
|
6452
6451
|
"data-test": "filter-mode-select",
|
|
6453
6452
|
"aria-label": "Filter mode"
|
|
6454
6453
|
}, Np, 512)), [
|
|
6455
|
-
[
|
|
6454
|
+
[bt, n.value.mode]
|
|
6456
6455
|
]) : z("", !0)
|
|
6457
6456
|
]),
|
|
6458
6457
|
g("div", Rp, [
|
|
@@ -7695,7 +7694,7 @@ const om = /* @__PURE__ */ K({
|
|
|
7695
7694
|
value: a
|
|
7696
7695
|
}, G(a), 9, um))), 128))
|
|
7697
7696
|
], 8, am)), [
|
|
7698
|
-
[
|
|
7697
|
+
[bt, k(n).isTerm]
|
|
7699
7698
|
]);
|
|
7700
7699
|
}
|
|
7701
7700
|
}), dm = { class: "cape-filter-field-enum-is-radio" }, fm = { class: "form-check form-check-inline" }, hm = ["id"], pm = ["for"], mm = /* @__PURE__ */ g("em", null, "any", -1), vm = [
|
|
@@ -7762,7 +7761,7 @@ const om = /* @__PURE__ */ K({
|
|
|
7762
7761
|
"data-test": "filter-mode-select",
|
|
7763
7762
|
"aria-label": "Filter mode"
|
|
7764
7763
|
}, Tm, 512)), [
|
|
7765
|
-
[
|
|
7764
|
+
[bt, k(n).mode]
|
|
7766
7765
|
]) : z("", !0)
|
|
7767
7766
|
]),
|
|
7768
7767
|
g("div", Mm, [
|
|
@@ -7813,7 +7812,7 @@ const om = /* @__PURE__ */ K({
|
|
|
7813
7812
|
"data-test": "filter-mode-select",
|
|
7814
7813
|
"aria-label": "Filter mode"
|
|
7815
7814
|
}, Am, 512)), [
|
|
7816
|
-
[
|
|
7815
|
+
[bt, n.value.mode]
|
|
7817
7816
|
]) : z("", !0)
|
|
7818
7817
|
]),
|
|
7819
7818
|
g("div", Ym, [
|
|
@@ -7889,7 +7888,7 @@ const om = /* @__PURE__ */ K({
|
|
|
7889
7888
|
"data-test": "filter-mode-select",
|
|
7890
7889
|
"aria-label": "Filter mode"
|
|
7891
7890
|
}, Jm, 512)), [
|
|
7892
|
-
[
|
|
7891
|
+
[bt, n.value.mode]
|
|
7893
7892
|
]) : z("", !0)
|
|
7894
7893
|
]),
|
|
7895
7894
|
g("div", Qm, [
|
|
@@ -7935,7 +7934,7 @@ const om = /* @__PURE__ */ K({
|
|
|
7935
7934
|
template: "#templateCapeAbout",
|
|
7936
7935
|
computed: {
|
|
7937
7936
|
metadata() {
|
|
7938
|
-
return
|
|
7937
|
+
return dt().metadata;
|
|
7939
7938
|
}
|
|
7940
7939
|
}
|
|
7941
7940
|
});
|
|
@@ -7949,7 +7948,7 @@ function iv(e, t, s) {
|
|
|
7949
7948
|
}
|
|
7950
7949
|
}
|
|
7951
7950
|
function ov() {
|
|
7952
|
-
const e = [[]], t =
|
|
7951
|
+
const e = [[]], t = ls(), s = us();
|
|
7953
7952
|
return t.all.forEach((n) => e[0].push(n.label)), s.all.forEach((n) => {
|
|
7954
7953
|
e.push(
|
|
7955
7954
|
t.all.map((r) => {
|
|
@@ -7996,7 +7995,7 @@ const fv = /* @__PURE__ */ ji(uv, [["render", dv]]), hv = { class: "cape-fields-
|
|
|
7996
7995
|
], -1), mv = { key: 0 }, vv = /* @__PURE__ */ K({
|
|
7997
7996
|
__name: "CapeFieldsTable",
|
|
7998
7997
|
setup(e) {
|
|
7999
|
-
const t =
|
|
7998
|
+
const t = ls(), s = E(() => t.all);
|
|
8000
7999
|
return (n, r) => (p(), _("table", hv, [
|
|
8001
8000
|
pv,
|
|
8002
8001
|
g("tbody", null, [
|
|
@@ -8018,7 +8017,7 @@ const fv = /* @__PURE__ */ ji(uv, [["render", dv]]), hv = { class: "cape-fields-
|
|
|
8018
8017
|
/// The entry point for the plugin.
|
|
8019
8018
|
install: function(e, t) {
|
|
8020
8019
|
e.use(Kl()), this.addCapeComponents(e, t), t.additionalComponents !== void 0 && this.addAdditionalComponents(e, t.additionalComponents);
|
|
8021
|
-
const s =
|
|
8020
|
+
const s = dt();
|
|
8022
8021
|
s.setOptions(t), as(s.pages).forEach((n) => {
|
|
8023
8022
|
Ur.addRoute({
|
|
8024
8023
|
path: n.path,
|
|
@@ -8031,6 +8030,7 @@ const fv = /* @__PURE__ */ ji(uv, [["render", dv]]), hv = { class: "cape-fields-
|
|
|
8031
8030
|
e.component(s, t[s]);
|
|
8032
8031
|
});
|
|
8033
8032
|
},
|
|
8033
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8034
8034
|
addCapeComponents: function(e, t) {
|
|
8035
8035
|
e.component("CapeRoot", Li), e.component("CapeAboutPage", rv), e.component("CapeAdvancedSearchToggle", $u), e.component("CapeFieldsTable", vv), e.component("CapeFilters", Ru), e.component("CapeFormResetButton", Cu), e.component("CapeHeader", Wi), e.component("CapeHomePage", Ci), e.component("CapeHomepageLayout", Ri), e.component("CapeLoadError", Vi), e.component("CapeLoading", Hi), e.component("CapeNavigation", Ii), e.component("CapeNonProdWarning", Hu), e.component("CapeRecordCount", Ui), e.component("CapeRecordCard", Pi), e.component("CapeRecordPage", xi), e.component("CapeResults", dc), e.component("CapeSummaryCard", Bi), e.component("CapeLabelledValue", Sp), e.component("CapeValue", Fo), e.component("CapeSingleValue", Cn), e.component("CapeFilterFieldText", xp), e.component("CapeFilterFieldEnum", $m), e.component("CapeFilterFreeText", Fp), e.component("CapeFilterFieldInteger", jm), e.component("CapeFilterFieldDate", nv), e.component("CapeSortOrder", Gi), e.component("CapeResultsControls", On), e.component("CapeDownloadJsonButton", fv), e.component("CapeDownloadCsvButton", lv);
|
|
8036
8036
|
}
|
|
@@ -8062,8 +8062,8 @@ export {
|
|
|
8062
8062
|
Yi as Filter,
|
|
8063
8063
|
Sv as createCapeApp,
|
|
8064
8064
|
Vs as useDatasetStore,
|
|
8065
|
-
|
|
8065
|
+
ls as useFieldStore,
|
|
8066
8066
|
ae as useFilterStore,
|
|
8067
|
-
|
|
8067
|
+
dt as usePropertyStore,
|
|
8068
8068
|
kt as useSearchResultsStore
|
|
8069
8069
|
};
|