@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.
Files changed (208) hide show
  1. package/dist/{Animated-DZSBu1oS.cjs → Animated-C_WGrQwR.cjs} +1 -1
  2. package/dist/{Animated-CADTcu8B.js → Animated-NyYe8Svx.js} +2 -2
  3. package/dist/Item-CcXMlZIY.js +110 -0
  4. package/dist/Item-DGKnKb6c.cjs +1 -0
  5. package/dist/Keyboard-87LPq07J.cjs +1 -0
  6. package/dist/Keyboard-i5fqTDMP.js +25 -0
  7. package/dist/LinePlot-BcVyfdeK.cjs +66 -0
  8. package/dist/{LinePlot-CUYMMNNX.js → LinePlot-CCzgiKg5.js} +2094 -2090
  9. package/dist/{Link-BUlcFhdF.cjs → Link-B83uKMKM.cjs} +1 -1
  10. package/dist/{Link-CurnG57L.js → Link-DlC5z0Wm.js} +1 -1
  11. package/dist/{List-d1KJe77_.cjs → List-B3WCj8GQ.cjs} +1 -1
  12. package/dist/List-BjRQA8wb.js +22 -0
  13. package/dist/Pack-BrxYNh7B.js +137 -0
  14. package/dist/Pack-C_SrDA3a.cjs +1 -0
  15. package/dist/Text-MNWCdS6X.js +32 -0
  16. package/dist/Text-XcCNQVZj.cjs +1 -0
  17. package/dist/{Toggle-BGyo9v6o.js → Toggle-C1k6Tnpo.js} +7802 -7745
  18. package/dist/Toggle-CIXrEiVA.cjs +143 -0
  19. package/dist/{Video-JYqTPKDk.cjs → Video-DR3tjTFZ.cjs} +1 -1
  20. package/dist/{Video-Ciw4h8eF.js → Video-DdIv_1Yq.js} +1 -1
  21. package/dist/{aggregator-Dgqx_W5g.js → aggregator-f5OfPmNc.js} +5052 -4322
  22. package/dist/aggregator-q0CY7-QS.cjs +67 -0
  23. package/dist/align.cjs +1 -1
  24. package/dist/align.js +1 -1
  25. package/dist/button.cjs +1 -1
  26. package/dist/button.js +1 -1
  27. package/dist/color.cjs +1 -1
  28. package/dist/color.js +1 -1
  29. package/dist/{css-CiSR0WsA.js → css-B8RwzK24.js} +96 -96
  30. package/dist/css-LxkguM_s.cjs +1 -0
  31. package/dist/css.cjs +1 -1
  32. package/dist/css.js +2 -2
  33. package/dist/dropdown.cjs +1 -1
  34. package/dist/dropdown.js +1 -1
  35. package/dist/ether.cjs +1 -1
  36. package/dist/ether.js +5 -5
  37. package/dist/external-BI9DOL9G.js +322 -0
  38. package/dist/{external--tP96O6n.cjs → external-BUjAebk2.cjs} +1 -1
  39. package/dist/{external-B6F5s5aQ.js → external-BryXmBqR.js} +6 -6
  40. package/dist/{external-Co2r9DLy.cjs → external-C2Ri5xWS.cjs} +1 -1
  41. package/dist/{external-5teQpcGD.cjs → external-CDChKvhl.cjs} +1 -1
  42. package/dist/{external-Dds3S09i.js → external-CDGv7k3p.js} +21 -21
  43. package/dist/external-CIvyZ-Hc.js +13 -0
  44. package/dist/{external-CNl6YOd-.cjs → external-CN-OhewX.cjs} +1 -1
  45. package/dist/{external-BjZo74zS.js → external-CNrnZ1L5.js} +74 -74
  46. package/dist/external-CSyZPKK4.cjs +1 -0
  47. package/dist/external-CbjdO9a0.js +353 -0
  48. package/dist/{external-Clb-pmsS.cjs → external-Cl_evqYY.cjs} +1 -1
  49. package/dist/{external-CulLnj8B.js → external-CmbBTupJ.js} +20 -20
  50. package/dist/{external-CTth9RPW.cjs → external-DAQPXD3z.cjs} +1 -1
  51. package/dist/external-DE4i3A2z.cjs +1 -0
  52. package/dist/external-DLa89w3J.cjs +1 -0
  53. package/dist/{external-B-qyhpkX.js → external-DfIxCAg2.js} +2 -2
  54. package/dist/{external-B8UhV4HB.cjs → external-DjE3je-g.cjs} +1 -1
  55. package/dist/external-DmJZ_zIB.js +20 -0
  56. package/dist/external-FeE2ijEU.js +76 -0
  57. package/dist/external-cIvhYaqB.cjs +1 -0
  58. package/dist/{external-C5nr86pR.cjs → external-i13duWIn.cjs} +1 -1
  59. package/dist/{external-C2rLSz0G.js → external-kSaQF2Vi.js} +128 -128
  60. package/dist/{external-B_mVlkww.js → external-n_t7VfzS.js} +1 -1
  61. package/dist/header.cjs +1 -1
  62. package/dist/header.js +1 -1
  63. package/dist/index.cjs +1 -1
  64. package/dist/index.js +5417 -4264
  65. package/dist/input.cjs +1 -1
  66. package/dist/input.js +1 -1
  67. package/dist/list.cjs +1 -1
  68. package/dist/list.js +1 -1
  69. package/dist/menu.cjs +1 -1
  70. package/dist/menu.js +1 -1
  71. package/dist/src/align/Pack.d.ts +1 -2
  72. package/dist/src/align/Pack.d.ts.map +1 -1
  73. package/dist/src/align/Space.d.ts +1 -0
  74. package/dist/src/align/Space.d.ts.map +1 -1
  75. package/dist/src/breadcrumb/Breadcrumb.d.ts +1 -1
  76. package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
  77. package/dist/src/button/Button.d.ts +3 -1
  78. package/dist/src/button/Button.d.ts.map +1 -1
  79. package/dist/src/button/Icon.d.ts +1 -1
  80. package/dist/src/button/Icon.d.ts.map +1 -1
  81. package/dist/src/button/Toggle.d.ts +1 -0
  82. package/dist/src/button/Toggle.d.ts.map +1 -1
  83. package/dist/src/channel/LinePlot.d.ts +2 -1
  84. package/dist/src/channel/LinePlot.d.ts.map +1 -1
  85. package/dist/src/css/css.d.ts +1 -0
  86. package/dist/src/css/css.d.ts.map +1 -1
  87. package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
  88. package/dist/src/icon/Icon.d.ts +5 -0
  89. package/dist/src/icon/Icon.d.ts.map +1 -1
  90. package/dist/src/index.d.ts +1 -0
  91. package/dist/src/index.d.ts.map +1 -1
  92. package/dist/src/input/Numeric.d.ts +3 -2
  93. package/dist/src/input/Numeric.d.ts.map +1 -1
  94. package/dist/src/input/Text.d.ts +3 -1
  95. package/dist/src/input/Text.d.ts.map +1 -1
  96. package/dist/src/input/types.d.ts +3 -1
  97. package/dist/src/input/types.d.ts.map +1 -1
  98. package/dist/src/menu/Item.d.ts +11 -22
  99. package/dist/src/menu/Item.d.ts.map +1 -1
  100. package/dist/src/modal/Modal.d.ts +7 -3
  101. package/dist/src/modal/Modal.d.ts.map +1 -1
  102. package/dist/src/mosaic/Mosaic.d.ts +25 -2
  103. package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
  104. package/dist/src/mosaic/tree.d.ts +21 -1
  105. package/dist/src/mosaic/tree.d.ts.map +1 -1
  106. package/dist/src/mosaic/types.d.ts +6 -1
  107. package/dist/src/mosaic/types.d.ts.map +1 -1
  108. package/dist/src/pluto/Pluto.d.ts.map +1 -1
  109. package/dist/src/select/Alignment.d.ts +12 -0
  110. package/dist/src/select/Alignment.d.ts.map +1 -0
  111. package/dist/src/select/Direction.d.ts.map +1 -1
  112. package/dist/src/select/external.d.ts +1 -0
  113. package/dist/src/select/external.d.ts.map +1 -1
  114. package/dist/src/status/aether/aggregator.d.ts.map +1 -1
  115. package/dist/src/tabs/Selector.d.ts +4 -2
  116. package/dist/src/tabs/Selector.d.ts.map +1 -1
  117. package/dist/src/tabs/Tabs.d.ts +129 -7
  118. package/dist/src/tabs/Tabs.d.ts.map +1 -1
  119. package/dist/src/tabs/types.d.ts +7 -1
  120. package/dist/src/tabs/types.d.ts.map +1 -1
  121. package/dist/src/text/Editable.d.ts.map +1 -1
  122. package/dist/src/text/Keyboard.d.ts +1 -1
  123. package/dist/src/text/Keyboard.d.ts.map +1 -1
  124. package/dist/src/text/WithIcon.d.ts +2 -2
  125. package/dist/src/text/WithIcon.d.ts.map +1 -1
  126. package/dist/src/theming/core/theme.d.ts.map +1 -1
  127. package/dist/src/theming/css.d.ts.map +1 -1
  128. package/dist/src/triggers/Provider.d.ts +3 -2
  129. package/dist/src/triggers/Provider.d.ts.map +1 -1
  130. package/dist/src/triggers/hooks.d.ts +3 -4
  131. package/dist/src/triggers/hooks.d.ts.map +1 -1
  132. package/dist/src/triggers/triggers.d.ts +17 -3
  133. package/dist/src/triggers/triggers.d.ts.map +1 -1
  134. package/dist/src/util/rootElement.d.ts +1 -1
  135. package/dist/src/util/rootElement.d.ts.map +1 -1
  136. package/dist/src/vis/axis/canvas.d.ts.map +1 -1
  137. package/dist/src/vis/canvas/Canvas.d.ts.map +1 -1
  138. package/dist/src/vis/diagram/Diagram.d.ts +3 -1
  139. package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
  140. package/dist/src/vis/diagram/aether/Diagram.d.ts +9 -0
  141. package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
  142. package/dist/src/vis/grid/grid.d.ts +115 -0
  143. package/dist/src/vis/grid/grid.d.ts.map +1 -0
  144. package/dist/src/vis/grid/grid.spec.d.ts +2 -0
  145. package/dist/src/vis/grid/grid.spec.d.ts.map +1 -0
  146. package/dist/src/vis/grid/index.d.ts +2 -0
  147. package/dist/src/vis/grid/index.d.ts.map +1 -0
  148. package/dist/src/vis/legend/Simple.d.ts +1 -0
  149. package/dist/src/vis/legend/Simple.d.ts.map +1 -1
  150. package/dist/src/vis/light/use.d.ts.map +1 -1
  151. package/dist/src/vis/lineplot/Axis.d.ts.map +1 -1
  152. package/dist/src/vis/lineplot/Legend.d.ts +3 -1
  153. package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
  154. package/dist/src/vis/lineplot/LinePlot.d.ts +4 -4
  155. package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
  156. package/dist/src/vis/lineplot/aether/LinePlot.d.ts +16 -10
  157. package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
  158. package/dist/src/vis/lineplot/aether/axis.d.ts +2 -2
  159. package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
  160. package/dist/src/vis/measure/Measure.d.ts.map +1 -1
  161. package/dist/src/vis/schematic/Forms.d.ts +7 -1
  162. package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
  163. package/dist/src/vis/schematic/Labeled.d.ts +2 -0
  164. package/dist/src/vis/schematic/Labeled.d.ts.map +1 -1
  165. package/dist/src/vis/schematic/SelectOrientation.d.ts +5 -2
  166. package/dist/src/vis/schematic/SelectOrientation.d.ts.map +1 -1
  167. package/dist/src/vis/schematic/Symbols.d.ts +139 -35
  168. package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
  169. package/dist/src/vis/schematic/primitives/Primitives.d.ts +42 -3
  170. package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
  171. package/dist/src/vis/schematic/registry.d.ts +1 -1
  172. package/dist/src/vis/schematic/registry.d.ts.map +1 -1
  173. package/dist/style.css +1 -1
  174. package/dist/tabs.cjs +1 -1
  175. package/dist/tabs.js +1 -1
  176. package/dist/text.cjs +1 -1
  177. package/dist/text.js +2 -2
  178. package/dist/theming.cjs +1 -1
  179. package/dist/theming.js +2 -2
  180. package/dist/tree.cjs +1 -1
  181. package/dist/tree.js +1 -1
  182. package/dist/triggers.cjs +1 -1
  183. package/dist/triggers.js +1 -1
  184. package/dist/{units-C59nowP2.cjs → units-CMXTKjnN.cjs} +1 -1
  185. package/dist/{units-BAK8qzqy.js → units-CnA_yWxx.js} +1 -1
  186. package/dist/video.cjs +1 -1
  187. package/dist/video.js +1 -1
  188. package/package.json +7 -7
  189. package/dist/Keyboard-Bc_uxMTG.js +0 -13
  190. package/dist/Keyboard-BvHL3Wf2.cjs +0 -1
  191. package/dist/LinePlot-DUHbDcz3.cjs +0 -66
  192. package/dist/List-DD-MkX0Z.js +0 -22
  193. package/dist/Pack-BgzS2BHo.cjs +0 -1
  194. package/dist/Pack-l3j3YWpE.js +0 -134
  195. package/dist/Toggle-DWKDszrQ.cjs +0 -143
  196. package/dist/aggregator-C7n8uv-R.cjs +0 -57
  197. package/dist/css-Cc1vb61S.cjs +0 -1
  198. package/dist/external-1ZU7gP__.cjs +0 -1
  199. package/dist/external-B-gkanM-.js +0 -271
  200. package/dist/external-B0zpdR1h.js +0 -74
  201. package/dist/external-C4beOlX2.cjs +0 -1
  202. package/dist/external-CW9xTNHG.js +0 -353
  203. package/dist/external-Dh0igrIc.js +0 -97
  204. package/dist/external-E30UptW0.js +0 -13
  205. package/dist/external-FuH8ekoj.cjs +0 -1
  206. package/dist/external-HLgDxDKN.cjs +0 -1
  207. package/dist/src/vis/lineplot/aether/grid.d.ts +0 -40
  208. package/dist/src/vis/lineplot/aether/grid.d.ts.map +0 -1
@@ -1,25 +1,25 @@
1
- import { w as he, au as Ae, ak as Oe, K as ke, av as Le, A as Re, i as Ce, J as je, aw as ve, ax as $e, E as Ne, ay as Fe, az as Te, aA as Pe, aB as De, aC as Ke, L as We, aD as ze, aE as He, v as Ve, aF as Be, aG as Ge, aH as Ue } from "./Toggle-BGyo9v6o.js";
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 Je } from "react";
4
- import { k as Qe, j as Xe } from "./aggregator-Dgqx_W5g.js";
5
- import "./css-CiSR0WsA.js";
6
- import "./Pack-l3j3YWpE.js";
7
- import { L as Ze } from "./List-DD-MkX0Z.js";
8
- const K = Symbol(), le = Symbol(), J = 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(), Q = (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[J] || t, fe = (t, e, s) => {
11
- if (!Q(t)) return t;
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 l = !1;
17
- const h = (d, g) => {
18
- if (!l) {
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 === J ? c : (h(g), fe(d[g], a.a, a.c)), has: (d, g) => g === le ? (l = !0, a.a.delete(c), !0) : (h(g), g in d), getOwnPropertyDescriptor: (d, g) => (h(g, !0), Object.getOwnPropertyDescriptor(d, g)), ownKeys: (d) => (h(K), Reflect.ownKeys(d)) };
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((l) => {
31
- l.configurable = !0;
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) => !!Q(t) && le in t, X = (t) => Q(t) && t[J] || null, z = (t) => typeof t == "object" && t !== null, ge = (t, e) => {
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 = X(t);
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(X(e) || e);
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 l = X(a) || a, h = c.get(l);
76
- if (h) return N(a, h.o, h.a), h.r;
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(l, M), N(a, M.o, M.a), M.r;
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(l, p), g;
85
+ return r = (r - 1 + n) % n, i[r] = p, c.set(h, p), g;
86
86
  };
87
- }, rt = (t, e) => Qe.RUNTIME === "browser" ? st(t, e) : t;
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 ht = "Incorrect 'index' type", lt = (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;
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 l = i[a];
176
- if (!y(l))
175
+ const h = i[a];
176
+ if (!y(h))
177
177
  return;
178
- if (o === c.length - 1 && (S(l) || pe(l) || ot(l)))
179
- s.push(ct(l));
180
- else if (b(l)) {
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 h = 0, u = l.length; h < u; h += 1)
183
- n(l[h], c, o + 1);
184
- } else c.length && n(l, c, o + 1);
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: l, value: h } = a.pop();
324
- if (y(h))
325
- if (S(h) && !D(h)) {
323
+ const { nestedArrIndex: h, value: l } = a.pop();
324
+ if (y(l))
325
+ if (S(l) && !D(l)) {
326
326
  let u = {
327
- v: h,
328
- i: l,
329
- n: this.norm.get(h)
327
+ v: l,
328
+ i: h,
329
+ n: this.norm.get(l)
330
330
  };
331
331
  o.push(u);
332
- } else b(h) && h.forEach((u, d) => {
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 $(t, {
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: l = f.ignoreLocation
394
+ ignoreLocation: h = f.ignoreLocation
395
395
  } = {}) {
396
396
  if (e.length > k)
397
397
  throw new Error(ut(k));
398
- const h = e.length, u = t.length, d = Math.max(0, Math.min(r, u));
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 = $(e, {
403
+ let x = v(e, {
404
404
  currentLocation: _,
405
405
  expectedLocation: d,
406
406
  distance: n,
407
- ignoreLocation: l
407
+ ignoreLocation: h
408
408
  });
409
- if (g = Math.min(x, g), p = _ + h, m) {
409
+ if (g = Math.min(x, g), p = _ + l, m) {
410
410
  let w = 0;
411
- for (; w < h; )
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 = h + u;
417
- const Ie = 1 << h - 1;
418
- for (let x = 0; x < h; x += 1) {
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
- $(e, {
421
+ v(e, {
422
422
  errors: x,
423
423
  currentLocation: d + I,
424
424
  expectedLocation: d,
425
425
  distance: n,
426
- ignoreLocation: l
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) + h, R = Array(P + 2);
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 v = E - 1, ee = s[t.charAt(v)];
433
- if (m && (M[v] = +!!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 = $(e, {
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: v,
435
+ currentLocation: $,
436
436
  expectedLocation: d,
437
437
  distance: n,
438
- ignoreLocation: l
438
+ ignoreLocation: h
439
439
  }), O <= g)) {
440
- if (g = O, p = v, p <= d)
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 ($(e, {
445
+ if (v(e, {
446
446
  errors: x + 1,
447
447
  currentLocation: d,
448
448
  expectedLocation: d,
449
449
  distance: n,
450
- ignoreLocation: l
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: l = f.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: l
493
+ ignoreLocation: h
494
494
  }, this.pattern = a ? e : e.toLowerCase(), this.chunks = [], !this.pattern.length)
495
495
  return;
496
- const h = (d, g) => {
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
- h(this.pattern.substr(d, k), d), d += k;
507
+ l(this.pattern.substr(d, k), d), d += k;
508
508
  if (g) {
509
509
  const m = u - k;
510
- h(this.pattern.substr(m), m);
510
+ l(this.pattern.substr(m), m);
511
511
  }
512
512
  } else
513
- h(this.pattern, 0);
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: l
530
+ ignoreLocation: h
531
531
  } = this.options;
532
- let h = [], u = 0, d = !1;
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: l
541
+ ignoreLocation: h
542
542
  });
543
- _ && (d = !0), u += L, _ && O && (h = [...h, ...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 = h), g;
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: l = f.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: l
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 = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, vt = "|";
772
- function $t(t, e = {}) {
773
- return t.split(vt).map((s) => {
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, l = -1;
778
- for (; !a && ++l < oe; ) {
779
- const h = V[l];
780
- let u = h.isMultiMatch(o);
781
- u && (n.push(new h(u, e)), a = !0);
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 (l = -1; ++l < oe; ) {
785
- const h = V[l];
786
- let u = h.isSingleMatch(o);
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 h(u, e));
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: l = f.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: l
817
- }, this.pattern = s ? e : e.toLowerCase(), this.query = $t(this.pattern, this.options);
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, l = s.length; a < l; a += 1) {
833
- const h = s[a];
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 = h.length; u < d; u += 1) {
836
- const g = h[u], { isMatch: p, indices: m, score: M } = g.search(e);
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], l = c ? n[U.PATTERN] : n[a];
892
- if (!S(l))
893
- throw new Error(lt(a));
894
- const h = {
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: l
896
+ pattern: h
897
897
  };
898
- return s && (h.searcher = G(l, e)), h;
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 l = n[a];
906
- b(l) && l.forEach((h) => {
907
- o.children.push(r(h));
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(ht);
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: l, indices: h } = s.searchIn(i);
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: l, value: i, norm: o, indices: h }]
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, l) => {
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: l,
1022
+ idx: h,
1023
1023
  item: a,
1024
1024
  matches: g
1025
1025
  }
1026
1026
  ] : [];
1027
1027
  }
1028
- const h = [];
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, l);
1030
+ const g = o.children[u], p = r(g, a, h);
1031
1031
  if (p.length)
1032
- h.push(...p);
1032
+ l.push(...p);
1033
1033
  else if (o.operator === F.AND)
1034
1034
  return [];
1035
1035
  }
1036
- return h;
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 l = r(s, o, a);
1041
- l.length && (i[a] || (i[a] = { idx: a, item: o, matches: [] }, c.push(i[a])), l.forEach(({ matches: h }) => {
1042
- i[a].matches.push(...h);
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((l, h) => {
1053
+ r.forEach((h, l) => {
1054
1054
  a.push(
1055
1055
  ...this._findMatches({
1056
- key: l,
1057
- value: c[h],
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: l, indices: h } = r.searchIn(i);
1076
+ const { isMatch: a, score: h, indices: l } = r.searchIn(i);
1077
1077
  a && n.push({
1078
- score: l,
1078
+ score: h,
1079
1079
  key: e,
1080
1080
  value: i,
1081
1081
  idx: c,
1082
1082
  norm: o,
1083
- indices: h
1083
+ indices: l
1084
1084
  });
1085
1085
  });
1086
1086
  else {
1087
- const { v: i, n: c } = s, { isMatch: o, score: a, indices: l } = r.searchIn(i);
1088
- o && n.push({ score: a, key: e, value: i, norm: c, indices: l });
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] = Xe({
1122
+ const [n, i] = Je({
1123
1123
  onChange: s,
1124
1124
  value: e,
1125
1125
  initial: ""
1126
- }), { setTransform: c, deleteTransform: o } = he(), a = Ae(c, t, []), l = Je(
1127
- (h) => {
1128
- i(h), h.length === 0 ? o("filter") : (r != null && (h = r(h)), a("filter", Ut({ term: h })));
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: l };
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: ve,
1144
+ ItemFrame: $e,
1145
1145
  List: Ze,
1146
- Search: $e,
1146
+ Search: ve,
1147
1147
  Selector: Ne,
1148
1148
  selectValueIsZero: Fe,
1149
1149
  useDataContext: Te,
1150
- useDataUtilContext: he,
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-l3j3YWpE.js";
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-CNl6YOd-.cjs");exports.Header=e.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
@@ -1,4 +1,4 @@
1
- import { e as a } from "./external-CulLnj8B.js";
1
+ import { e as a } from "./external-CmbBTupJ.js";
2
2
  export {
3
3
  a as Header
4
4
  };