@synnaxlabs/pluto 0.30.0 → 0.32.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/{Animated-DZSBu1oS.cjs → Animated-C_WGrQwR.cjs} +1 -1
- package/dist/{Animated-CADTcu8B.js → Animated-NyYe8Svx.js} +2 -2
- package/dist/Item-CcXMlZIY.js +110 -0
- package/dist/Item-DGKnKb6c.cjs +1 -0
- package/dist/Keyboard-87LPq07J.cjs +1 -0
- package/dist/Keyboard-i5fqTDMP.js +25 -0
- package/dist/LinePlot-BcVyfdeK.cjs +66 -0
- package/dist/{LinePlot-CUYMMNNX.js → LinePlot-CCzgiKg5.js} +2094 -2090
- package/dist/{Link-BUlcFhdF.cjs → Link-B83uKMKM.cjs} +1 -1
- package/dist/{Link-CurnG57L.js → Link-DlC5z0Wm.js} +1 -1
- package/dist/{List-d1KJe77_.cjs → List-B3WCj8GQ.cjs} +1 -1
- package/dist/List-BjRQA8wb.js +22 -0
- package/dist/Pack-BrxYNh7B.js +137 -0
- package/dist/Pack-C_SrDA3a.cjs +1 -0
- package/dist/Text-MNWCdS6X.js +32 -0
- package/dist/Text-XcCNQVZj.cjs +1 -0
- package/dist/{Toggle-BGyo9v6o.js → Toggle-C1k6Tnpo.js} +7802 -7745
- package/dist/Toggle-CIXrEiVA.cjs +143 -0
- package/dist/{Video-JYqTPKDk.cjs → Video-DR3tjTFZ.cjs} +1 -1
- package/dist/{Video-Ciw4h8eF.js → Video-DdIv_1Yq.js} +1 -1
- package/dist/{aggregator-Dgqx_W5g.js → aggregator-f5OfPmNc.js} +5052 -4322
- package/dist/aggregator-q0CY7-QS.cjs +67 -0
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/{css-CiSR0WsA.js → css-B8RwzK24.js} +96 -96
- package/dist/css-LxkguM_s.cjs +1 -0
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +5 -5
- package/dist/external-BI9DOL9G.js +322 -0
- package/dist/{external--tP96O6n.cjs → external-BUjAebk2.cjs} +1 -1
- package/dist/{external-B6F5s5aQ.js → external-BryXmBqR.js} +6 -6
- package/dist/{external-Co2r9DLy.cjs → external-C2Ri5xWS.cjs} +1 -1
- package/dist/{external-5teQpcGD.cjs → external-CDChKvhl.cjs} +1 -1
- package/dist/{external-Dds3S09i.js → external-CDGv7k3p.js} +21 -21
- package/dist/external-CIvyZ-Hc.js +13 -0
- package/dist/{external-CNl6YOd-.cjs → external-CN-OhewX.cjs} +1 -1
- package/dist/{external-BjZo74zS.js → external-CNrnZ1L5.js} +74 -74
- package/dist/external-CSyZPKK4.cjs +1 -0
- package/dist/external-CbjdO9a0.js +353 -0
- package/dist/{external-Clb-pmsS.cjs → external-Cl_evqYY.cjs} +1 -1
- package/dist/{external-CulLnj8B.js → external-CmbBTupJ.js} +20 -20
- package/dist/{external-CTth9RPW.cjs → external-DAQPXD3z.cjs} +1 -1
- package/dist/external-DE4i3A2z.cjs +1 -0
- package/dist/external-DLa89w3J.cjs +1 -0
- package/dist/{external-B-qyhpkX.js → external-DfIxCAg2.js} +2 -2
- package/dist/{external-B8UhV4HB.cjs → external-DjE3je-g.cjs} +1 -1
- package/dist/external-DmJZ_zIB.js +20 -0
- package/dist/external-FeE2ijEU.js +76 -0
- package/dist/external-cIvhYaqB.cjs +1 -0
- package/dist/{external-C5nr86pR.cjs → external-i13duWIn.cjs} +1 -1
- package/dist/{external-C2rLSz0G.js → external-kSaQF2Vi.js} +128 -128
- package/dist/{external-B_mVlkww.js → external-n_t7VfzS.js} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +5417 -4264
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/src/align/Pack.d.ts +1 -2
- package/dist/src/align/Pack.d.ts.map +1 -1
- package/dist/src/align/Space.d.ts +1 -0
- package/dist/src/align/Space.d.ts.map +1 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/src/button/Button.d.ts +3 -1
- package/dist/src/button/Button.d.ts.map +1 -1
- package/dist/src/button/Icon.d.ts +1 -1
- package/dist/src/button/Icon.d.ts.map +1 -1
- package/dist/src/button/Toggle.d.ts +1 -0
- package/dist/src/button/Toggle.d.ts.map +1 -1
- package/dist/src/channel/LinePlot.d.ts +2 -1
- package/dist/src/channel/LinePlot.d.ts.map +1 -1
- package/dist/src/css/css.d.ts +1 -0
- package/dist/src/css/css.d.ts.map +1 -1
- package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/src/icon/Icon.d.ts +5 -0
- package/dist/src/icon/Icon.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/input/Numeric.d.ts +3 -2
- package/dist/src/input/Numeric.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts +3 -1
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/input/types.d.ts +3 -1
- package/dist/src/input/types.d.ts.map +1 -1
- package/dist/src/menu/Item.d.ts +11 -22
- package/dist/src/menu/Item.d.ts.map +1 -1
- package/dist/src/modal/Modal.d.ts +7 -3
- package/dist/src/modal/Modal.d.ts.map +1 -1
- package/dist/src/mosaic/Mosaic.d.ts +25 -2
- package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
- package/dist/src/mosaic/tree.d.ts +21 -1
- package/dist/src/mosaic/tree.d.ts.map +1 -1
- package/dist/src/mosaic/types.d.ts +6 -1
- package/dist/src/mosaic/types.d.ts.map +1 -1
- package/dist/src/pluto/Pluto.d.ts.map +1 -1
- package/dist/src/select/Alignment.d.ts +12 -0
- package/dist/src/select/Alignment.d.ts.map +1 -0
- package/dist/src/select/Direction.d.ts.map +1 -1
- package/dist/src/select/external.d.ts +1 -0
- package/dist/src/select/external.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts.map +1 -1
- package/dist/src/tabs/Selector.d.ts +4 -2
- package/dist/src/tabs/Selector.d.ts.map +1 -1
- package/dist/src/tabs/Tabs.d.ts +129 -7
- package/dist/src/tabs/Tabs.d.ts.map +1 -1
- package/dist/src/tabs/types.d.ts +7 -1
- package/dist/src/tabs/types.d.ts.map +1 -1
- package/dist/src/text/Editable.d.ts.map +1 -1
- package/dist/src/text/Keyboard.d.ts +1 -1
- package/dist/src/text/Keyboard.d.ts.map +1 -1
- package/dist/src/text/WithIcon.d.ts +2 -2
- package/dist/src/text/WithIcon.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/theming/css.d.ts.map +1 -1
- package/dist/src/triggers/Provider.d.ts +3 -2
- package/dist/src/triggers/Provider.d.ts.map +1 -1
- package/dist/src/triggers/hooks.d.ts +3 -4
- package/dist/src/triggers/hooks.d.ts.map +1 -1
- package/dist/src/triggers/triggers.d.ts +17 -3
- package/dist/src/triggers/triggers.d.ts.map +1 -1
- package/dist/src/util/rootElement.d.ts +1 -1
- package/dist/src/util/rootElement.d.ts.map +1 -1
- package/dist/src/vis/axis/canvas.d.ts.map +1 -1
- package/dist/src/vis/canvas/Canvas.d.ts.map +1 -1
- package/dist/src/vis/diagram/Diagram.d.ts +3 -1
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/Diagram.d.ts +9 -0
- package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
- package/dist/src/vis/grid/grid.d.ts +115 -0
- package/dist/src/vis/grid/grid.d.ts.map +1 -0
- package/dist/src/vis/grid/grid.spec.d.ts +2 -0
- package/dist/src/vis/grid/grid.spec.d.ts.map +1 -0
- package/dist/src/vis/grid/index.d.ts +2 -0
- package/dist/src/vis/grid/index.d.ts.map +1 -0
- package/dist/src/vis/legend/Simple.d.ts +1 -0
- package/dist/src/vis/legend/Simple.d.ts.map +1 -1
- package/dist/src/vis/light/use.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Legend.d.ts +3 -1
- package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
- package/dist/src/vis/lineplot/LinePlot.d.ts +4 -4
- package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts +16 -10
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts +2 -2
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/measure/Measure.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts +7 -1
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/Labeled.d.ts +2 -0
- package/dist/src/vis/schematic/Labeled.d.ts.map +1 -1
- package/dist/src/vis/schematic/SelectOrientation.d.ts +5 -2
- package/dist/src/vis/schematic/SelectOrientation.d.ts.map +1 -1
- package/dist/src/vis/schematic/Symbols.d.ts +139 -35
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +42 -3
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/schematic/registry.d.ts +1 -1
- package/dist/src/vis/schematic/registry.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/{units-C59nowP2.cjs → units-CMXTKjnN.cjs} +1 -1
- package/dist/{units-BAK8qzqy.js → units-CnA_yWxx.js} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +7 -7
- package/dist/Keyboard-Bc_uxMTG.js +0 -13
- package/dist/Keyboard-BvHL3Wf2.cjs +0 -1
- package/dist/LinePlot-DUHbDcz3.cjs +0 -66
- package/dist/List-DD-MkX0Z.js +0 -22
- package/dist/Pack-BgzS2BHo.cjs +0 -1
- package/dist/Pack-l3j3YWpE.js +0 -134
- package/dist/Toggle-DWKDszrQ.cjs +0 -143
- package/dist/aggregator-C7n8uv-R.cjs +0 -57
- package/dist/css-Cc1vb61S.cjs +0 -1
- package/dist/external-1ZU7gP__.cjs +0 -1
- package/dist/external-B-gkanM-.js +0 -271
- package/dist/external-B0zpdR1h.js +0 -74
- package/dist/external-C4beOlX2.cjs +0 -1
- package/dist/external-CW9xTNHG.js +0 -353
- package/dist/external-Dh0igrIc.js +0 -97
- package/dist/external-E30UptW0.js +0 -13
- package/dist/external-FuH8ekoj.cjs +0 -1
- package/dist/external-HLgDxDKN.cjs +0 -1
- package/dist/src/vis/lineplot/aether/grid.d.ts +0 -40
- package/dist/src/vis/lineplot/aether/grid.d.ts.map +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a1 as le, au as Ae, ak as Oe, ab as ke, av as Le, a5 as Re, l as Ce, aa as je, aw as $e, ax as ve, a6 as Ne, ay as Fe, az as Te, aA as Pe, aB as De, aC as Ke, ac as We, aD as ze, aE as He, a0 as Ve, aF as Be, aG as Ge, aH as Ue } from "./Toggle-C1k6Tnpo.js";
|
|
2
2
|
import { j as Ye } from "./jsx-runtime-B6kdoens.js";
|
|
3
|
-
import { useCallback as
|
|
4
|
-
import {
|
|
5
|
-
import "./css-
|
|
6
|
-
import "./Pack-
|
|
7
|
-
import { L as Ze } from "./List-
|
|
8
|
-
const K = Symbol(),
|
|
3
|
+
import { useCallback as Qe } from "react";
|
|
4
|
+
import { w as Xe, j as Je } from "./aggregator-f5OfPmNc.js";
|
|
5
|
+
import "./css-B8RwzK24.js";
|
|
6
|
+
import "./Pack-BrxYNh7B.js";
|
|
7
|
+
import { L as Ze } from "./List-BjRQA8wb.js";
|
|
8
|
+
const K = Symbol(), he = Symbol(), Q = Symbol();
|
|
9
9
|
let qe = (t, e) => new Proxy(t, e);
|
|
10
|
-
const W = Object.getPrototypeOf, te = /* @__PURE__ */ new WeakMap(),
|
|
11
|
-
if (!
|
|
10
|
+
const W = Object.getPrototypeOf, te = /* @__PURE__ */ new WeakMap(), X = (t) => t && (te.has(t) ? te.get(t) : W(t) === Object.prototype || W(t) === Array.prototype), se = (t) => typeof t == "object" && t !== null, re = /* @__PURE__ */ new WeakMap(), ue = (t) => t[Q] || t, fe = (t, e, s) => {
|
|
11
|
+
if (!X(t)) return t;
|
|
12
12
|
const r = ue(t), n = ((c) => Object.isFrozen(c) || Object.values(Object.getOwnPropertyDescriptors(c)).some((o) => !o.writable))(r);
|
|
13
13
|
let i = s && s.get(r);
|
|
14
14
|
return i && i[1].f === n || (i = ((c, o) => {
|
|
15
15
|
const a = { f: o };
|
|
16
|
-
let
|
|
17
|
-
const
|
|
18
|
-
if (!
|
|
16
|
+
let h = !1;
|
|
17
|
+
const l = (d, g) => {
|
|
18
|
+
if (!h) {
|
|
19
19
|
let p = a.a.get(c);
|
|
20
20
|
p || (p = /* @__PURE__ */ new Set(), a.a.set(c, p)), g && p.has(K) || p.add(d);
|
|
21
21
|
}
|
|
22
|
-
}, u = { get: (d, g) => g ===
|
|
22
|
+
}, u = { get: (d, g) => g === Q ? c : (l(g), fe(d[g], a.a, a.c)), has: (d, g) => g === he ? (h = !0, a.a.delete(c), !0) : (l(g), g in d), getOwnPropertyDescriptor: (d, g) => (l(g, !0), Object.getOwnPropertyDescriptor(d, g)), ownKeys: (d) => (l(K), Reflect.ownKeys(d)) };
|
|
23
23
|
return o && (u.set = u.deleteProperty = () => !1), [u, a];
|
|
24
24
|
})(r, n), i[1].p = qe(n ? ((c) => {
|
|
25
25
|
let o = re.get(c);
|
|
@@ -27,8 +27,8 @@ const W = Object.getPrototypeOf, te = /* @__PURE__ */ new WeakMap(), Q = (t) =>
|
|
|
27
27
|
if (Array.isArray(c)) o = Array.from(c);
|
|
28
28
|
else {
|
|
29
29
|
const a = Object.getOwnPropertyDescriptors(c);
|
|
30
|
-
Object.values(a).forEach((
|
|
31
|
-
|
|
30
|
+
Object.values(a).forEach((h) => {
|
|
31
|
+
h.configurable = !0;
|
|
32
32
|
}), o = Object.create(W(c), a);
|
|
33
33
|
}
|
|
34
34
|
re.set(c, o);
|
|
@@ -54,16 +54,16 @@ const W = Object.getPrototypeOf, te = /* @__PURE__ */ new WeakMap(), Q = (t) =>
|
|
|
54
54
|
if (o !== !0 && o !== !1 || (i = o), i) break;
|
|
55
55
|
}
|
|
56
56
|
return i === null && (i = !0), r && r.set(t, { n: e, g: i }), i;
|
|
57
|
-
}, tt = (t) => !!
|
|
57
|
+
}, tt = (t) => !!X(t) && he in t, J = (t) => X(t) && t[Q] || null, z = (t) => typeof t == "object" && t !== null, ge = (t, e) => {
|
|
58
58
|
if (!z(t)) return t;
|
|
59
|
-
const s =
|
|
59
|
+
const s = J(t);
|
|
60
60
|
return s !== null ? (tt(t), s) : (e.has(t) || (e.add(t), Object.entries(t).forEach(([r, n]) => {
|
|
61
61
|
const i = ge(n, e);
|
|
62
62
|
Object.is(i, n) || (t[r] = i);
|
|
63
63
|
})), t);
|
|
64
64
|
}, N = (t, e, s) => {
|
|
65
65
|
if (!z(t) || !z(e)) return;
|
|
66
|
-
const r = s.get(
|
|
66
|
+
const r = s.get(J(e) || e);
|
|
67
67
|
r && r.forEach((n) => {
|
|
68
68
|
N(t[n], e[n], s);
|
|
69
69
|
});
|
|
@@ -72,19 +72,19 @@ const W = Object.getPrototypeOf, te = /* @__PURE__ */ new WeakMap(), Q = (t) =>
|
|
|
72
72
|
let r = 0;
|
|
73
73
|
const n = (s = e == null ? void 0 : e.size) != null ? s : 1, i = [], c = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap();
|
|
74
74
|
return (a) => {
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
75
|
+
const h = J(a) || a, l = c.get(h);
|
|
76
|
+
if (l) return N(a, l.o, l.a), l.r;
|
|
77
77
|
for (let m = 0; m < n; m += 1) {
|
|
78
78
|
const M = i[(r + m) % n];
|
|
79
79
|
if (!M) break;
|
|
80
|
-
if (!de(M.o, a, M.a, /* @__PURE__ */ new WeakMap())) return c.set(
|
|
80
|
+
if (!de(M.o, a, M.a, /* @__PURE__ */ new WeakMap())) return c.set(h, M), N(a, M.o, M.a), M.r;
|
|
81
81
|
}
|
|
82
82
|
const u = /* @__PURE__ */ new WeakMap(), d = fe(a, u, o), g = ge(t(d), /* @__PURE__ */ new Set());
|
|
83
83
|
N(a, a, u);
|
|
84
84
|
const p = { o: a, r: g, a: u };
|
|
85
|
-
return r = (r - 1 + n) % n, i[r] = p, c.set(
|
|
85
|
+
return r = (r - 1 + n) % n, i[r] = p, c.set(h, p), g;
|
|
86
86
|
};
|
|
87
|
-
}, rt = (t, e) =>
|
|
87
|
+
}, rt = (t, e) => Xe.RUNTIME === "browser" ? st(t, e) : t;
|
|
88
88
|
function b(t) {
|
|
89
89
|
return Array.isArray ? Array.isArray(t) : Me(t) === "[object Array]";
|
|
90
90
|
}
|
|
@@ -122,7 +122,7 @@ function D(t) {
|
|
|
122
122
|
function Me(t) {
|
|
123
123
|
return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(t);
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const lt = "Incorrect 'index' type", ht = (t) => `Invalid value for key ${t}`, ut = (t) => `Pattern length exceeds max of ${t}.`, ft = (t) => `Missing ${t} property in key`, dt = (t) => `Property 'weight' in key '${t}' must be a positive integer`, ne = Object.prototype.hasOwnProperty;
|
|
126
126
|
class gt {
|
|
127
127
|
constructor(e) {
|
|
128
128
|
this._keys = [], this._keyMap = {};
|
|
@@ -172,16 +172,16 @@ function pt(t, e) {
|
|
|
172
172
|
s.push(i);
|
|
173
173
|
else {
|
|
174
174
|
let a = c[o];
|
|
175
|
-
const
|
|
176
|
-
if (!y(
|
|
175
|
+
const h = i[a];
|
|
176
|
+
if (!y(h))
|
|
177
177
|
return;
|
|
178
|
-
if (o === c.length - 1 && (S(
|
|
179
|
-
s.push(ct(
|
|
180
|
-
else if (b(
|
|
178
|
+
if (o === c.length - 1 && (S(h) || pe(h) || ot(h)))
|
|
179
|
+
s.push(ct(h));
|
|
180
|
+
else if (b(h)) {
|
|
181
181
|
r = !0;
|
|
182
|
-
for (let
|
|
183
|
-
n(l
|
|
184
|
-
} else c.length && n(
|
|
182
|
+
for (let l = 0, u = h.length; l < u; l += 1)
|
|
183
|
+
n(h[l], c, o + 1);
|
|
184
|
+
} else c.length && n(h, c, o + 1);
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
return n(t, S(e) ? e.split(".") : e, 0), r ? s : s[0];
|
|
@@ -320,16 +320,16 @@ class Z {
|
|
|
320
320
|
let o = [];
|
|
321
321
|
const a = [{ nestedArrIndex: -1, value: c }];
|
|
322
322
|
for (; a.length; ) {
|
|
323
|
-
const { nestedArrIndex:
|
|
324
|
-
if (y(
|
|
325
|
-
if (S(
|
|
323
|
+
const { nestedArrIndex: h, value: l } = a.pop();
|
|
324
|
+
if (y(l))
|
|
325
|
+
if (S(l) && !D(l)) {
|
|
326
326
|
let u = {
|
|
327
|
-
v:
|
|
328
|
-
i:
|
|
329
|
-
n: this.norm.get(
|
|
327
|
+
v: l,
|
|
328
|
+
i: h,
|
|
329
|
+
n: this.norm.get(l)
|
|
330
330
|
};
|
|
331
331
|
o.push(u);
|
|
332
|
-
} else b(
|
|
332
|
+
} else b(l) && l.forEach((u, d) => {
|
|
333
333
|
a.push({
|
|
334
334
|
nestedArrIndex: d,
|
|
335
335
|
value: u
|
|
@@ -362,7 +362,7 @@ function _t(t, { getFn: e = f.getFn, fieldNormWeight: s = f.fieldNormWeight } =
|
|
|
362
362
|
const { keys: r, records: n } = t, i = new Z({ getFn: e, fieldNormWeight: s });
|
|
363
363
|
return i.setKeys(r), i.setIndexRecords(n), i;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function v(t, {
|
|
366
366
|
errors: e = 0,
|
|
367
367
|
currentLocation: s = 0,
|
|
368
368
|
expectedLocation: r = 0,
|
|
@@ -391,63 +391,63 @@ function wt(t, e, s, {
|
|
|
391
391
|
findAllMatches: c = f.findAllMatches,
|
|
392
392
|
minMatchCharLength: o = f.minMatchCharLength,
|
|
393
393
|
includeMatches: a = f.includeMatches,
|
|
394
|
-
ignoreLocation:
|
|
394
|
+
ignoreLocation: h = f.ignoreLocation
|
|
395
395
|
} = {}) {
|
|
396
396
|
if (e.length > k)
|
|
397
397
|
throw new Error(ut(k));
|
|
398
|
-
const
|
|
398
|
+
const l = e.length, u = t.length, d = Math.max(0, Math.min(r, u));
|
|
399
399
|
let g = i, p = d;
|
|
400
400
|
const m = o > 1 || a, M = m ? Array(u) : [];
|
|
401
401
|
let _;
|
|
402
402
|
for (; (_ = t.indexOf(e, p)) > -1; ) {
|
|
403
|
-
let x =
|
|
403
|
+
let x = v(e, {
|
|
404
404
|
currentLocation: _,
|
|
405
405
|
expectedLocation: d,
|
|
406
406
|
distance: n,
|
|
407
|
-
ignoreLocation:
|
|
407
|
+
ignoreLocation: h
|
|
408
408
|
});
|
|
409
|
-
if (g = Math.min(x, g), p = _ +
|
|
409
|
+
if (g = Math.min(x, g), p = _ + l, m) {
|
|
410
410
|
let w = 0;
|
|
411
|
-
for (; w <
|
|
411
|
+
for (; w < l; )
|
|
412
412
|
M[_ + w] = 1, w += 1;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
p = -1;
|
|
416
|
-
let L = [], O = 1, j =
|
|
417
|
-
const Ie = 1 <<
|
|
418
|
-
for (let x = 0; x <
|
|
416
|
+
let L = [], O = 1, j = l + u;
|
|
417
|
+
const Ie = 1 << l - 1;
|
|
418
|
+
for (let x = 0; x < l; x += 1) {
|
|
419
419
|
let w = 0, I = j;
|
|
420
420
|
for (; w < I; )
|
|
421
|
-
|
|
421
|
+
v(e, {
|
|
422
422
|
errors: x,
|
|
423
423
|
currentLocation: d + I,
|
|
424
424
|
expectedLocation: d,
|
|
425
425
|
distance: n,
|
|
426
|
-
ignoreLocation:
|
|
426
|
+
ignoreLocation: h
|
|
427
427
|
}) <= g ? w = I : j = I, I = Math.floor((j - w) / 2 + w);
|
|
428
428
|
j = I;
|
|
429
|
-
let q = Math.max(1, d - I + 1), P = c ? u : Math.min(d + I, u) +
|
|
429
|
+
let q = Math.max(1, d - I + 1), P = c ? u : Math.min(d + I, u) + l, R = Array(P + 2);
|
|
430
430
|
R[P + 1] = (1 << x) - 1;
|
|
431
431
|
for (let E = P; E >= q; E -= 1) {
|
|
432
|
-
let
|
|
433
|
-
if (m && (M[
|
|
432
|
+
let $ = E - 1, ee = s[t.charAt($)];
|
|
433
|
+
if (m && (M[$] = +!!ee), R[E] = (R[E + 1] << 1 | 1) & ee, x && (R[E] |= (L[E + 1] | L[E]) << 1 | 1 | L[E + 1]), R[E] & Ie && (O = v(e, {
|
|
434
434
|
errors: x,
|
|
435
|
-
currentLocation:
|
|
435
|
+
currentLocation: $,
|
|
436
436
|
expectedLocation: d,
|
|
437
437
|
distance: n,
|
|
438
|
-
ignoreLocation:
|
|
438
|
+
ignoreLocation: h
|
|
439
439
|
}), O <= g)) {
|
|
440
|
-
if (g = O, p =
|
|
440
|
+
if (g = O, p = $, p <= d)
|
|
441
441
|
break;
|
|
442
442
|
q = Math.max(1, 2 * d - p);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
if (
|
|
445
|
+
if (v(e, {
|
|
446
446
|
errors: x + 1,
|
|
447
447
|
currentLocation: d,
|
|
448
448
|
expectedLocation: d,
|
|
449
449
|
distance: n,
|
|
450
|
-
ignoreLocation:
|
|
450
|
+
ignoreLocation: h
|
|
451
451
|
}) > g)
|
|
452
452
|
break;
|
|
453
453
|
L = R;
|
|
@@ -480,7 +480,7 @@ class Ee {
|
|
|
480
480
|
findAllMatches: c = f.findAllMatches,
|
|
481
481
|
minMatchCharLength: o = f.minMatchCharLength,
|
|
482
482
|
isCaseSensitive: a = f.isCaseSensitive,
|
|
483
|
-
ignoreLocation:
|
|
483
|
+
ignoreLocation: h = f.ignoreLocation
|
|
484
484
|
} = {}) {
|
|
485
485
|
if (this.options = {
|
|
486
486
|
location: s,
|
|
@@ -490,10 +490,10 @@ class Ee {
|
|
|
490
490
|
findAllMatches: c,
|
|
491
491
|
minMatchCharLength: o,
|
|
492
492
|
isCaseSensitive: a,
|
|
493
|
-
ignoreLocation:
|
|
493
|
+
ignoreLocation: h
|
|
494
494
|
}, this.pattern = a ? e : e.toLowerCase(), this.chunks = [], !this.pattern.length)
|
|
495
495
|
return;
|
|
496
|
-
const
|
|
496
|
+
const l = (d, g) => {
|
|
497
497
|
this.chunks.push({
|
|
498
498
|
pattern: d,
|
|
499
499
|
alphabet: It(d),
|
|
@@ -504,13 +504,13 @@ class Ee {
|
|
|
504
504
|
let d = 0;
|
|
505
505
|
const g = u % k, p = u - g;
|
|
506
506
|
for (; d < p; )
|
|
507
|
-
|
|
507
|
+
l(this.pattern.substr(d, k), d), d += k;
|
|
508
508
|
if (g) {
|
|
509
509
|
const m = u - k;
|
|
510
|
-
|
|
510
|
+
l(this.pattern.substr(m), m);
|
|
511
511
|
}
|
|
512
512
|
} else
|
|
513
|
-
|
|
513
|
+
l(this.pattern, 0);
|
|
514
514
|
}
|
|
515
515
|
searchIn(e) {
|
|
516
516
|
const { isCaseSensitive: s, includeMatches: r } = this.options;
|
|
@@ -527,9 +527,9 @@ class Ee {
|
|
|
527
527
|
threshold: c,
|
|
528
528
|
findAllMatches: o,
|
|
529
529
|
minMatchCharLength: a,
|
|
530
|
-
ignoreLocation:
|
|
530
|
+
ignoreLocation: h
|
|
531
531
|
} = this.options;
|
|
532
|
-
let
|
|
532
|
+
let l = [], u = 0, d = !1;
|
|
533
533
|
this.chunks.forEach(({ pattern: p, alphabet: m, startIndex: M }) => {
|
|
534
534
|
const { isMatch: _, score: L, indices: O } = wt(e, p, m, {
|
|
535
535
|
location: n + M,
|
|
@@ -538,15 +538,15 @@ class Ee {
|
|
|
538
538
|
findAllMatches: o,
|
|
539
539
|
minMatchCharLength: a,
|
|
540
540
|
includeMatches: r,
|
|
541
|
-
ignoreLocation:
|
|
541
|
+
ignoreLocation: h
|
|
542
542
|
});
|
|
543
|
-
_ && (d = !0), u += L, _ && O && (
|
|
543
|
+
_ && (d = !0), u += L, _ && O && (l = [...l, ...O]);
|
|
544
544
|
});
|
|
545
545
|
let g = {
|
|
546
546
|
isMatch: d,
|
|
547
547
|
score: d ? u / this.chunks.length : 1
|
|
548
548
|
};
|
|
549
|
-
return d && r && (g.indices =
|
|
549
|
+
return d && r && (g.indices = l), g;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
class A {
|
|
@@ -707,7 +707,7 @@ class Se extends A {
|
|
|
707
707
|
findAllMatches: c = f.findAllMatches,
|
|
708
708
|
minMatchCharLength: o = f.minMatchCharLength,
|
|
709
709
|
isCaseSensitive: a = f.isCaseSensitive,
|
|
710
|
-
ignoreLocation:
|
|
710
|
+
ignoreLocation: h = f.ignoreLocation
|
|
711
711
|
} = {}) {
|
|
712
712
|
super(e), this._bitapSearch = new Ee(e, {
|
|
713
713
|
location: s,
|
|
@@ -717,7 +717,7 @@ class Se extends A {
|
|
|
717
717
|
findAllMatches: c,
|
|
718
718
|
minMatchCharLength: o,
|
|
719
719
|
isCaseSensitive: a,
|
|
720
|
-
ignoreLocation:
|
|
720
|
+
ignoreLocation: h
|
|
721
721
|
});
|
|
722
722
|
}
|
|
723
723
|
static get type() {
|
|
@@ -768,24 +768,24 @@ const V = [
|
|
|
768
768
|
Rt,
|
|
769
769
|
Ot,
|
|
770
770
|
Se
|
|
771
|
-
], oe = V.length, jt = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,
|
|
772
|
-
function
|
|
773
|
-
return t.split(
|
|
771
|
+
], oe = V.length, jt = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, $t = "|";
|
|
772
|
+
function vt(t, e = {}) {
|
|
773
|
+
return t.split($t).map((s) => {
|
|
774
774
|
let r = s.trim().split(jt).filter((i) => i && !!i.trim()), n = [];
|
|
775
775
|
for (let i = 0, c = r.length; i < c; i += 1) {
|
|
776
776
|
const o = r[i];
|
|
777
|
-
let a = !1,
|
|
778
|
-
for (; !a && ++
|
|
779
|
-
const
|
|
780
|
-
let u =
|
|
781
|
-
u && (n.push(new
|
|
777
|
+
let a = !1, h = -1;
|
|
778
|
+
for (; !a && ++h < oe; ) {
|
|
779
|
+
const l = V[h];
|
|
780
|
+
let u = l.isMultiMatch(o);
|
|
781
|
+
u && (n.push(new l(u, e)), a = !0);
|
|
782
782
|
}
|
|
783
783
|
if (!a)
|
|
784
|
-
for (
|
|
785
|
-
const
|
|
786
|
-
let u =
|
|
784
|
+
for (h = -1; ++h < oe; ) {
|
|
785
|
+
const l = V[h];
|
|
786
|
+
let u = l.isSingleMatch(o);
|
|
787
787
|
if (u) {
|
|
788
|
-
n.push(new
|
|
788
|
+
n.push(new l(u, e));
|
|
789
789
|
break;
|
|
790
790
|
}
|
|
791
791
|
}
|
|
@@ -803,7 +803,7 @@ class Ft {
|
|
|
803
803
|
findAllMatches: c = f.findAllMatches,
|
|
804
804
|
location: o = f.location,
|
|
805
805
|
threshold: a = f.threshold,
|
|
806
|
-
distance:
|
|
806
|
+
distance: h = f.distance
|
|
807
807
|
} = {}) {
|
|
808
808
|
this.query = null, this.options = {
|
|
809
809
|
isCaseSensitive: s,
|
|
@@ -813,8 +813,8 @@ class Ft {
|
|
|
813
813
|
ignoreLocation: i,
|
|
814
814
|
location: o,
|
|
815
815
|
threshold: a,
|
|
816
|
-
distance:
|
|
817
|
-
}, this.pattern = s ? e : e.toLowerCase(), this.query =
|
|
816
|
+
distance: h
|
|
817
|
+
}, this.pattern = s ? e : e.toLowerCase(), this.query = vt(this.pattern, this.options);
|
|
818
818
|
}
|
|
819
819
|
static condition(e, s) {
|
|
820
820
|
return s.useExtendedSearch;
|
|
@@ -829,11 +829,11 @@ class Ft {
|
|
|
829
829
|
const { includeMatches: r, isCaseSensitive: n } = this.options;
|
|
830
830
|
e = n ? e : e.toLowerCase();
|
|
831
831
|
let i = 0, c = [], o = 0;
|
|
832
|
-
for (let a = 0,
|
|
833
|
-
const
|
|
832
|
+
for (let a = 0, h = s.length; a < h; a += 1) {
|
|
833
|
+
const l = s[a];
|
|
834
834
|
c.length = 0, i = 0;
|
|
835
|
-
for (let u = 0, d =
|
|
836
|
-
const g =
|
|
835
|
+
for (let u = 0, d = l.length; u < d; u += 1) {
|
|
836
|
+
const g = l[u], { isMatch: p, indices: m, score: M } = g.search(e);
|
|
837
837
|
if (p) {
|
|
838
838
|
if (i += 1, o += M, r) {
|
|
839
839
|
const _ = g.constructor.type;
|
|
@@ -888,23 +888,23 @@ function be(t, e, { auto: s = !0 } = {}) {
|
|
|
888
888
|
if (!c && i.length > 1 && !Y(n))
|
|
889
889
|
return r(ae(n));
|
|
890
890
|
if (Dt(n)) {
|
|
891
|
-
const a = c ? n[U.PATH] : i[0],
|
|
892
|
-
if (!S(
|
|
893
|
-
throw new Error(
|
|
894
|
-
const
|
|
891
|
+
const a = c ? n[U.PATH] : i[0], h = c ? n[U.PATTERN] : n[a];
|
|
892
|
+
if (!S(h))
|
|
893
|
+
throw new Error(ht(a));
|
|
894
|
+
const l = {
|
|
895
895
|
keyId: H(a),
|
|
896
|
-
pattern:
|
|
896
|
+
pattern: h
|
|
897
897
|
};
|
|
898
|
-
return s && (
|
|
898
|
+
return s && (l.searcher = G(h, e)), l;
|
|
899
899
|
}
|
|
900
900
|
let o = {
|
|
901
901
|
children: [],
|
|
902
902
|
operator: i[0]
|
|
903
903
|
};
|
|
904
904
|
return i.forEach((a) => {
|
|
905
|
-
const
|
|
906
|
-
b(
|
|
907
|
-
o.children.push(r(
|
|
905
|
+
const h = n[a];
|
|
906
|
+
b(h) && h.forEach((l) => {
|
|
907
|
+
o.children.push(r(l));
|
|
908
908
|
});
|
|
909
909
|
}), o;
|
|
910
910
|
};
|
|
@@ -959,7 +959,7 @@ class C {
|
|
|
959
959
|
}
|
|
960
960
|
setCollection(e, s) {
|
|
961
961
|
if (this._docs = e, s && !(s instanceof Z))
|
|
962
|
-
throw new Error(
|
|
962
|
+
throw new Error(lt);
|
|
963
963
|
this._myIndex = s || xe(this.options.keys, this._docs, {
|
|
964
964
|
getFn: this.options.getFn,
|
|
965
965
|
fieldNormWeight: this.options.fieldNormWeight
|
|
@@ -1001,16 +1001,16 @@ class C {
|
|
|
1001
1001
|
return r.forEach(({ v: i, i: c, n: o }) => {
|
|
1002
1002
|
if (!y(i))
|
|
1003
1003
|
return;
|
|
1004
|
-
const { isMatch: a, score:
|
|
1004
|
+
const { isMatch: a, score: h, indices: l } = s.searchIn(i);
|
|
1005
1005
|
a && n.push({
|
|
1006
1006
|
item: i,
|
|
1007
1007
|
idx: c,
|
|
1008
|
-
matches: [{ score:
|
|
1008
|
+
matches: [{ score: h, value: i, norm: o, indices: l }]
|
|
1009
1009
|
});
|
|
1010
1010
|
}), n;
|
|
1011
1011
|
}
|
|
1012
1012
|
_searchLogical(e) {
|
|
1013
|
-
const s = be(e, this.options), r = (o, a,
|
|
1013
|
+
const s = be(e, this.options), r = (o, a, h) => {
|
|
1014
1014
|
if (!o.children) {
|
|
1015
1015
|
const { keyId: u, searcher: d } = o, g = this._findMatches({
|
|
1016
1016
|
key: this._keyStore.get(u),
|
|
@@ -1019,27 +1019,27 @@ class C {
|
|
|
1019
1019
|
});
|
|
1020
1020
|
return g && g.length ? [
|
|
1021
1021
|
{
|
|
1022
|
-
idx:
|
|
1022
|
+
idx: h,
|
|
1023
1023
|
item: a,
|
|
1024
1024
|
matches: g
|
|
1025
1025
|
}
|
|
1026
1026
|
] : [];
|
|
1027
1027
|
}
|
|
1028
|
-
const
|
|
1028
|
+
const l = [];
|
|
1029
1029
|
for (let u = 0, d = o.children.length; u < d; u += 1) {
|
|
1030
|
-
const g = o.children[u], p = r(g, a,
|
|
1030
|
+
const g = o.children[u], p = r(g, a, h);
|
|
1031
1031
|
if (p.length)
|
|
1032
|
-
|
|
1032
|
+
l.push(...p);
|
|
1033
1033
|
else if (o.operator === F.AND)
|
|
1034
1034
|
return [];
|
|
1035
1035
|
}
|
|
1036
|
-
return
|
|
1036
|
+
return l;
|
|
1037
1037
|
}, n = this._myIndex.records, i = {}, c = [];
|
|
1038
1038
|
return n.forEach(({ $: o, i: a }) => {
|
|
1039
1039
|
if (y(o)) {
|
|
1040
|
-
let
|
|
1041
|
-
|
|
1042
|
-
i[a].matches.push(...
|
|
1040
|
+
let h = r(s, o, a);
|
|
1041
|
+
h.length && (i[a] || (i[a] = { idx: a, item: o, matches: [] }, c.push(i[a])), h.forEach(({ matches: l }) => {
|
|
1042
|
+
i[a].matches.push(...l);
|
|
1043
1043
|
}));
|
|
1044
1044
|
}
|
|
1045
1045
|
}), c;
|
|
@@ -1050,11 +1050,11 @@ class C {
|
|
|
1050
1050
|
if (!y(c))
|
|
1051
1051
|
return;
|
|
1052
1052
|
let a = [];
|
|
1053
|
-
r.forEach((
|
|
1053
|
+
r.forEach((h, l) => {
|
|
1054
1054
|
a.push(
|
|
1055
1055
|
...this._findMatches({
|
|
1056
|
-
key:
|
|
1057
|
-
value: c[
|
|
1056
|
+
key: h,
|
|
1057
|
+
value: c[l],
|
|
1058
1058
|
searcher: s
|
|
1059
1059
|
})
|
|
1060
1060
|
);
|
|
@@ -1073,19 +1073,19 @@ class C {
|
|
|
1073
1073
|
s.forEach(({ v: i, i: c, n: o }) => {
|
|
1074
1074
|
if (!y(i))
|
|
1075
1075
|
return;
|
|
1076
|
-
const { isMatch: a, score:
|
|
1076
|
+
const { isMatch: a, score: h, indices: l } = r.searchIn(i);
|
|
1077
1077
|
a && n.push({
|
|
1078
|
-
score:
|
|
1078
|
+
score: h,
|
|
1079
1079
|
key: e,
|
|
1080
1080
|
value: i,
|
|
1081
1081
|
idx: c,
|
|
1082
1082
|
norm: o,
|
|
1083
|
-
indices:
|
|
1083
|
+
indices: l
|
|
1084
1084
|
});
|
|
1085
1085
|
});
|
|
1086
1086
|
else {
|
|
1087
|
-
const { v: i, n: c } = s, { isMatch: o, score: a, indices:
|
|
1088
|
-
o && n.push({ score: a, key: e, value: i, norm: c, indices:
|
|
1087
|
+
const { v: i, n: c } = s, { isMatch: o, score: a, indices: h } = r.searchIn(i);
|
|
1088
|
+
o && n.push({ score: a, key: e, value: i, norm: c, indices: h });
|
|
1089
1089
|
}
|
|
1090
1090
|
return n;
|
|
1091
1091
|
}
|
|
@@ -1119,17 +1119,17 @@ const Vt = {
|
|
|
1119
1119
|
onChange: s,
|
|
1120
1120
|
transformBefore: r
|
|
1121
1121
|
}) => {
|
|
1122
|
-
const [n, i] =
|
|
1122
|
+
const [n, i] = Je({
|
|
1123
1123
|
onChange: s,
|
|
1124
1124
|
value: e,
|
|
1125
1125
|
initial: ""
|
|
1126
|
-
}), { setTransform: c, deleteTransform: o } =
|
|
1127
|
-
(
|
|
1128
|
-
i(
|
|
1126
|
+
}), { setTransform: c, deleteTransform: o } = le(), a = Ae(c, t, []), h = Qe(
|
|
1127
|
+
(l) => {
|
|
1128
|
+
i(l), l.length === 0 ? o("filter") : (r != null && (l = r(l)), a("filter", Ut({ term: l })));
|
|
1129
1129
|
},
|
|
1130
1130
|
[i, r]
|
|
1131
1131
|
);
|
|
1132
|
-
return { value: n, onChange:
|
|
1132
|
+
return { value: n, onChange: h };
|
|
1133
1133
|
}, Yt = ({
|
|
1134
1134
|
children: t = (s) => /* @__PURE__ */ Ye.jsx(Oe, { placeholder: "Filter", ...s }),
|
|
1135
1135
|
...e
|
|
@@ -1141,13 +1141,13 @@ const Vt = {
|
|
|
1141
1141
|
DataProvider: Ce,
|
|
1142
1142
|
Filter: Yt,
|
|
1143
1143
|
Hover: je,
|
|
1144
|
-
ItemFrame:
|
|
1144
|
+
ItemFrame: $e,
|
|
1145
1145
|
List: Ze,
|
|
1146
|
-
Search:
|
|
1146
|
+
Search: ve,
|
|
1147
1147
|
Selector: Ne,
|
|
1148
1148
|
selectValueIsZero: Fe,
|
|
1149
1149
|
useDataContext: Te,
|
|
1150
|
-
useDataUtilContext:
|
|
1150
|
+
useDataUtilContext: le,
|
|
1151
1151
|
useFilter: we,
|
|
1152
1152
|
useGetTransformedData: Pe,
|
|
1153
1153
|
useHoverContext: De,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, C as a, a as r, J as o, P as s, S as t, s as l } from "./Pack-
|
|
1
|
+
import { A as e, C as a, a as r, J as o, P as s, S as t, s as l } from "./Pack-BrxYNh7B.js";
|
|
2
2
|
const S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
ALIGNMENTS: e,
|
package/dist/header.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-CN-OhewX.cjs");exports.Header=e.external;
|
package/dist/header.js
CHANGED