@svgrid/enterprise 3.1.0 → 3.1.2

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 (78) hide show
  1. package/dist/SvSheet.svelte +93 -8
  2. package/dist/cdn/svgrid-enterprise.svelte-external.js +9339 -9077
  3. package/dist/designer/assets/{GridMenus-8gTNssgV.js → GridMenus-DGZJKFvX.js} +1 -1
  4. package/dist/designer/assets/SvGrid.helpers-DE5mmORW.js +1 -0
  5. package/dist/designer/assets/{SvGridCellEditor-DMoWJjEI.js → SvGridCellEditor-C7NWcnNC.js} +1 -1
  6. package/dist/designer/assets/{SvGridChart-Cy1ATrWh.js → SvGridChart-Fg43Yi0M.js} +2 -2
  7. package/dist/designer/assets/{SvGridChartBuilder-eQ3mn0L9.js → SvGridChartBuilder-BqGuA3yU.js} +1 -1
  8. package/dist/designer/assets/{SvGridChartPanel-CATdVc9X.js → SvGridChartPanel-BsiXRAnx.js} +3 -3
  9. package/dist/designer/assets/{SvGridChartView-CmsZtCED.js → SvGridChartView-BgttK0tR.js} +1 -1
  10. package/dist/designer/assets/{SvListBox-BDS66lmZ.js → SvListBox-v2jm0-vf.js} +1 -1
  11. package/dist/designer/assets/cell-formatting-BWrW_O0n.js +1 -0
  12. package/dist/designer/assets/{chart-Cn7MnNqA.js → chart-BIl-dIRv.js} +1 -1
  13. package/dist/designer/assets/{chart-panel-messages-Dz7PTIqT.js → chart-panel-messages-4cF2vw7L.js} +1 -1
  14. package/dist/designer/assets/{chart-summary-BD1qYB2R.js → chart-summary-B7bTtSCC.js} +1 -1
  15. package/dist/designer/assets/{chart-trend-B8xr5LuD.js → chart-trend-CLsn5Hgd.js} +1 -1
  16. package/dist/designer/assets/export-format-DGscOjS9.js +6 -0
  17. package/dist/designer/assets/{index-BSjv6Qec.js → index-V_cMXdxt.js} +314 -314
  18. package/dist/designer/assets/index-l21iGkpF.css +1 -0
  19. package/dist/designer/assets/src-Mu7AGqT8.js +58 -0
  20. package/dist/designer/assets/validate-YxSrBF1H.js +1 -0
  21. package/dist/designer/index.html +12 -12
  22. package/dist/export-ooxml.d.ts +10 -0
  23. package/dist/export-ooxml.js +22 -5
  24. package/dist/import.js +11 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +1 -1
  27. package/dist/node/studio.js +236 -132
  28. package/dist/server/index.d.ts +1 -0
  29. package/dist/server/index.js +1 -0
  30. package/dist/server/server-row-model.d.ts +9 -0
  31. package/dist/server/server-row-model.js +120 -3
  32. package/dist/server/worker-data-source.d.ts +62 -0
  33. package/dist/server/worker-data-source.js +133 -0
  34. package/dist/sheet/objects.d.ts +47 -0
  35. package/dist/sheet/objects.js +33 -0
  36. package/dist/studio/cli.js +55 -1
  37. package/dist/studio/emit-project.js +8 -3
  38. package/dist/studio/init-flow.d.ts +6 -1
  39. package/dist/studio/init-flow.js +43 -2
  40. package/dist/studio/scaffold-app.d.ts +6 -0
  41. package/dist/studio/scaffold-app.js +5 -3
  42. package/dist/studio/scaffold.js +29 -12
  43. package/dist/sveltekit/in-memory.d.ts +21 -1
  44. package/dist/sveltekit/in-memory.js +153 -105
  45. package/dist/sveltekit/index.d.ts +1 -1
  46. package/dist/version.d.ts +14 -1
  47. package/dist/version.js +14 -1
  48. package/dist/wc/{GridMenus-By9vPuq0.js → GridMenus-6_fF5jIm.js} +2 -2
  49. package/dist/wc/{SvGrid.helpers-BdVDtjUm.js → SvGrid.helpers-zBkDTryR.js} +36 -37
  50. package/dist/wc/{SvGridCellEditor-Bnf1Kr5C.js → SvGridCellEditor-CzUKEbkI.js} +1 -1
  51. package/dist/wc/{SvGridChart-BqUJh2pG.js → SvGridChart-C6UvNIbN.js} +3 -3
  52. package/dist/wc/{SvGridChartBuilder-CGycC5cn.js → SvGridChartBuilder-ikf_5LyW.js} +3 -3
  53. package/dist/wc/{SvGridChartPanel-CRnizsHD.js → SvGridChartPanel-Dc_jj7B-.js} +4 -4
  54. package/dist/wc/{SvGridChartView-D1pa_xMy.js → SvGridChartView-thkznAOb.js} +2 -2
  55. package/dist/wc/{cell-formatting-CBfgahv1.js → cell-formatting-hb3vzxhJ.js} +27 -5
  56. package/dist/wc/{chart-6OXlybVT.js → chart-CV5D7_k8.js} +1 -1
  57. package/dist/wc/{chart-summary-2m3ia1-n.js → chart-summary-DGx0QhJa.js} +1 -1
  58. package/dist/wc/{chart-trend-CQOQtTMl.js → chart-trend-BIRH_xH8.js} +1 -1
  59. package/dist/wc/sv-sheet-element.js +7454 -7352
  60. package/dist/wc/{svelte-virtualizer.svelte-CXtQy2TQ.js → svelte-virtualizer.svelte-Du4tjrIP.js} +7 -3
  61. package/dist/wc/{validate-BqDthkNr.js → validate-JAuMsk6Z.js} +36 -36
  62. package/dist/worker/columnar.d.ts +42 -0
  63. package/dist/worker/columnar.js +410 -0
  64. package/dist/worker/index.d.ts +12 -0
  65. package/dist/worker/index.js +12 -0
  66. package/dist/worker/infer-schema.d.ts +21 -0
  67. package/dist/worker/infer-schema.js +34 -0
  68. package/dist/worker/protocol.d.ts +73 -0
  69. package/dist/worker/protocol.js +14 -0
  70. package/dist/worker/serve.d.ts +44 -0
  71. package/dist/worker/serve.js +100 -0
  72. package/package.json +7 -3
  73. package/dist/designer/assets/SvGrid.helpers-BgT-gnCo.js +0 -1
  74. package/dist/designer/assets/cell-formatting-BbubJTVz.js +0 -1
  75. package/dist/designer/assets/export-format-DGckmgKr.js +0 -6
  76. package/dist/designer/assets/index-_JVFxt02.css +0 -1
  77. package/dist/designer/assets/src-DUQ4xE3x.js +0 -58
  78. package/dist/designer/assets/validate-C3B8QKsM.js +0 -1
@@ -1,15 +1,16 @@
1
+ import { i as e } from "./cell-formatting-hb3vzxhJ.js";
1
2
  //#region ../grid/dist/SvGrid.helpers.js
2
- function e(e) {
3
+ function t(e) {
3
4
  let t = "";
4
5
  return e.color && (t += `color:${e.color};`), e.fontWeight != null && (t += `font-weight:${e.fontWeight};`), t;
5
6
  }
6
- function t(e) {
7
+ function n(e) {
7
8
  return Number.isInteger(e) ? e.toLocaleString() : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
8
9
  }
9
- function n(e, t) {
10
+ function r(e, t) {
10
11
  return `${e}:${t}`;
11
12
  }
12
- function r(e) {
13
+ function i(e) {
13
14
  if (!e) return "";
14
15
  if (typeof e == "string") return e;
15
16
  if (Array.isArray(e)) return e.filter(Boolean).join(" ");
@@ -20,22 +21,22 @@ function r(e) {
20
21
  }
21
22
  return "";
22
23
  }
23
- function i(e) {
24
+ function a(e) {
24
25
  if (e == null || e === "") return "";
25
26
  if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/.test(e)) return e;
26
27
  let t = e instanceof Date ? e : new Date(e);
27
28
  return Number.isNaN(t.getTime()) ? "" : t.toISOString().slice(0, 10);
28
29
  }
29
- function a(e) {
30
+ function o(e) {
30
31
  if (e == null || e === "") return "";
31
32
  if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(e)) return e;
32
33
  let t = e instanceof Date ? e : new Date(e);
33
34
  return Number.isNaN(t.getTime()) ? "" : t.toISOString().slice(0, 16);
34
35
  }
35
- function o(e) {
36
+ function s(e) {
36
37
  return String(e).replace(/-native$/, "");
37
38
  }
38
- function s(e) {
39
+ function c(e) {
39
40
  if (e instanceof Date) return e;
40
41
  if (typeof e == "string") {
41
42
  let t = e.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?/);
@@ -46,23 +47,23 @@ function s(e) {
46
47
  }
47
48
  return null;
48
49
  }
49
- function c(e) {
50
+ function l(e) {
50
51
  return e ? `${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}` : null;
51
52
  }
52
- function l(e, t) {
53
- let n = o(e);
54
- return n === "date" ? i(t) : n === "datetime" ? a(t) : String(t ?? "");
53
+ function u(e, t) {
54
+ let n = s(e);
55
+ return n === "date" ? a(t) : n === "datetime" ? o(t) : String(t ?? "");
55
56
  }
56
- function u(e) {
57
- let t = o(e);
57
+ function d(e) {
58
+ let t = s(e);
58
59
  return t === "number" ? "number" : t === "date" ? "date" : t === "datetime" ? "datetime-local" : t === "time" ? "time" : t === "password" ? "password" : t === "color" ? "color" : "text";
59
60
  }
60
- function d(e) {
61
+ function f(e) {
61
62
  if (!e || Number.isNaN(e.getTime())) return "";
62
63
  let t = (e) => String(e).padStart(2, "0");
63
64
  return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())}`;
64
65
  }
65
- function f(e) {
66
+ function p(e) {
66
67
  if (!e) return null;
67
68
  let t = /^(\d{4})-(\d{2})-(\d{2})/.exec(e);
68
69
  if (!t) {
@@ -72,46 +73,44 @@ function f(e) {
72
73
  let n = new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]));
73
74
  return Number.isNaN(n.getTime()) ? null : n;
74
75
  }
75
- function p(e) {
76
+ function m(e) {
76
77
  if (!e || String(e).endsWith("-native")) return !1;
77
- let t = o(e);
78
+ let t = s(e);
78
79
  return t === "date" || t === "datetime" || t === "time";
79
80
  }
80
- function m(e) {
81
- return o(e) === "number" ? "text" : u(e);
82
- }
83
81
  function h(e) {
84
- return /^-?(\d*\.?\d*)(e-?\d*)?$/i.test(e);
82
+ return s(e) === "number" ? "text" : d(e);
85
83
  }
86
84
  function g(e) {
85
+ return /^-?(\d*\.?\d*)(e-?\d*)?$/i.test(e);
86
+ }
87
+ function _(e) {
87
88
  return e == null || e === "" ? [] : Array.isArray(e) ? e.filter((e) => e != null && e !== "") : [e];
88
89
  }
89
- function _(e, t) {
90
+ function v(e, t) {
90
91
  let n = e.find((e) => e.value === t || String(e.value) === String(t));
91
92
  return n ? n.label : String(t ?? "");
92
93
  }
93
- function v(e, t) {
94
+ function y(e, t) {
94
95
  return e.find((e) => e.value === t || String(e.value) === String(t))?.color;
95
96
  }
96
- function y(e) {
97
+ function b(e) {
97
98
  return e ? `background: color-mix(in srgb, ${e} 22%, transparent);border-color: color-mix(in srgb, ${e} 45%, transparent);color: color-mix(in srgb, ${e} 80%, var(--sg-fg, #0f172a));` : "";
98
99
  }
99
- function b(e) {
100
- let t = o(e);
100
+ function x(e) {
101
+ let t = s(e);
101
102
  return t === "number" ? "sv-grid-cell-editor sv-grid-cell-editor-number" : t === "date" ? "sv-grid-cell-editor sv-grid-cell-editor-date" : t === "datetime" ? "sv-grid-cell-editor sv-grid-cell-editor-datetime" : t === "color" ? "sv-grid-cell-editor sv-grid-cell-editor-color" : "sv-grid-cell-editor";
102
103
  }
103
- function x(e) {
104
- if (e == null || e === "") return null;
105
- let t = e instanceof Date ? e : new Date(e);
106
- return Number.isNaN(t.getTime()) ? null : t;
104
+ function S(t) {
105
+ return e(t);
107
106
  }
108
- function S(e, t) {
107
+ function C(e, t) {
109
108
  return Math.max(8, Math.min(e, window.innerWidth - t - 8));
110
109
  }
111
- function C(e) {
110
+ function w(e) {
112
111
  return typeof CSS < "u" && CSS.escape ? CSS.escape(e) : e.replace(/"/g, "\\\"");
113
112
  }
114
- function w(e, t) {
113
+ function T(e, t) {
115
114
  if (e == null || e === "") return NaN;
116
115
  if (t) {
117
116
  let t = (e instanceof Date ? e : new Date(String(e))).getTime();
@@ -120,11 +119,11 @@ function w(e, t) {
120
119
  let n = typeof e == "number" ? e : Number(e);
121
120
  return Number.isFinite(n) ? n : NaN;
122
121
  }
123
- function T(e) {
122
+ function E(e) {
124
123
  let t = Math.abs(e), n = t >= 1e3 ? 0 : t >= 100 ? 1 : t >= 1 ? 2 : 4;
125
124
  return e.toLocaleString(void 0, { maximumFractionDigits: n });
126
125
  }
127
- function E(e) {
126
+ function D(e) {
128
127
  return new Date(e).toLocaleDateString(void 0, {
129
128
  year: "numeric",
130
129
  month: "short",
@@ -132,4 +131,4 @@ function E(e) {
132
131
  });
133
132
  }
134
133
  //#endregion
135
- export { g as C, d as S, _, C as a, r as b, E as c, m as d, n as f, v as g, u as h, y as i, T as l, b as m, e as n, c as o, l as p, S as r, t as s, x as t, f as u, h as v, p as w, s as x, w as y };
134
+ export { _ as C, f as S, v as _, w as a, i as b, D as c, h as d, r as f, y as g, d as h, b as i, E as l, x as m, t as n, l as o, u as p, C as r, n as s, S as t, p as u, g as v, m as w, c as x, T as y };
@@ -1,5 +1,5 @@
1
1
  import { C as e, D as t, G as n, H as r, I as i, L as a, M as o, O as s, P as c, Q as l, R as u, S as d, U as f, W as p, X as m, Y as h, _ as g, at as _, b as v, dt as y, et as b, h as ee, ht as x, i as te, it as S, j as C, m as w, mt as T, n as E, nt as D, p as O, st as k, tt as A, ut as j, w as M, y as ne } from "./client-DQIzjDBG.js";
2
- import { C as re, d as ie, h as ae, m as oe, o as se, p as ce, v as le, x as ue } from "./SvGrid.helpers-BdVDtjUm.js";
2
+ import { C as re, d as ie, h as ae, m as oe, o as se, p as ce, v as le, x as ue } from "./SvGrid.helpers-zBkDTryR.js";
3
3
  import { n as de, r as fe, t as pe } from "./editor-registry-DxGKqcvx.js";
4
4
  //#region ../grid/dist/SvGridCellEditor.svelte
5
5
  var N = u("<span class=\"sv-grid-chip sv-grid-chip-removable\"> <button type=\"button\" class=\"sv-grid-chip-remove\">×</button></span>"), P = u("<button type=\"button\" class=\"sv-grid-chip-commit\" aria-label=\"Commit chip selection\">Done</button>"), F = u("<div class=\"sv-grid-cell-editor sv-grid-cell-editor-chips\" role=\"group\"><div class=\"sv-grid-chips-row\"><!> <input class=\"sv-grid-chip-input\" type=\"text\"/> <!></div></div>"), I = u("<input type=\"checkbox\" class=\"sv-grid-fr-editor sv-grid-fr-checkbox\"/>"), L = u("<option> </option>"), R = u("<select class=\"sv-grid-cell-editor sv-grid-fr-editor\"></select>"), z = u("<input class=\"sv-grid-cell-editor sv-grid-fr-editor\"/>"), me = u("<button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Edit checkbox value\"></button>"), he = u("<button type=\"button\" role=\"radio\">★</button>"), ge = u("<span class=\"sv-grid-rating-editor\" role=\"radiogroup\" aria-label=\"Rating\"><!> <button type=\"button\" aria-label=\"Clear rating\" class=\"sv-grid-rating-clear\">×</button></span>"), _e = u("<textarea class=\"sv-grid-cell-editor sv-grid-cell-editor-textarea\" rows=\"4\"></textarea>"), ve = u("<button type=\"button\" class=\"sv-grid-autocomplete-option\" role=\"option\"> </button>"), ye = u("<div class=\"sv-grid-autocomplete-list\" role=\"listbox\"></div>"), be = u("<div class=\"sv-grid-autocomplete\"><input class=\"sv-grid-cell-editor sv-grid-cell-editor-autocomplete\" type=\"text\"/> <!></div>"), xe = u("<input type=\"color\"/>"), Se = u("<textarea class=\"sv-grid-cell-editor sv-grid-cell-editor-text sv-grid-cell-editor-multiline\"></textarea>"), Ce = u("<input/>");
@@ -1,7 +1,7 @@
1
1
  import { D as e, G as t, H as n, I as r, J as i, K as a, L as o, M as s, O as c, P as l, R as u, S as d, T as f, U as p, V as m, W as h, X as g, Y as _, a as ee, at as v, dt as te, et as y, it as b, j as x, k as S, l as ne, m as C, mt as w, n as T, nt as E, o as re, p as ie, pt as ae, q as oe, rt as se, st as D, tt as O, ut as ce, w as le, x as k, z as A } from "./client-DQIzjDBG.js";
2
2
  import { a as ue } from "./editor-contract-peBDxir_.js";
3
- import { i as de } from "./chart-trend-CQOQtTMl.js";
4
- import { C as fe, D as pe, E as me, O as he, T as ge, _ as _e, a as ve, b as ye, d as be, g as xe, i as Se, n as Ce, t as we, v as Te, w as Ee, x as De, y as Oe } from "./chart-6OXlybVT.js";
3
+ import { i as de } from "./chart-trend-BIRH_xH8.js";
4
+ import { C as fe, D as pe, E as me, O as he, T as ge, _ as _e, a as ve, b as ye, d as be, g as xe, i as Se, n as Ce, t as we, v as Te, w as Ee, x as De, y as Oe } from "./chart-CV5D7_k8.js";
5
5
  import { i as ke, t as Ae } from "./chart-export-CeSADGfi.js";
6
6
  //#region ../grid/dist/chart-zoom.js
7
7
  function je(e, t, n) {
@@ -324,7 +324,7 @@ function $r(n, u) {
324
324
  return;
325
325
  }
326
326
  let e = t(U), n = !0;
327
- return import("./chart-summary-2m3ia1-n.js").then(({ chartSummary: t }) => {
327
+ return import("./chart-summary-DGx0QhJa.js").then(({ chartSummary: t }) => {
328
328
  n && b(ai, t(e), !0);
329
329
  }), () => {
330
330
  n = !1;
@@ -1,8 +1,8 @@
1
1
  import { G as e, H as t, I as n, L as r, M as i, O as a, P as o, R as s, S as c, T as l, U as u, W as d, X as f, Y as p, _ as m, a as h, at as g, b as _, dt as v, et as y, f as b, h as x, ht as S, it as C, j as w, m as T, mt as E, n as D, nt as O, o as ee, ot as k, p as A, st as j, tt as M, u as N, ut as P, y as F } from "./client-DQIzjDBG.js";
2
2
  import { t as I } from "./SvModal-DrfOYYyX.js";
3
- import { c as L, f as R, l as z, m as B, o as V, p as H, s as U, u as te } from "./chart-6OXlybVT.js";
4
- import { t as W } from "./SvGridChart-BqUJh2pG.js";
5
- import { n as G, t as K } from "./SvGridChartPanel-CRnizsHD.js";
3
+ import { c as L, f as R, l as z, m as B, o as V, p as H, s as U, u as te } from "./chart-CV5D7_k8.js";
4
+ import { t as W } from "./SvGridChart-C6UvNIbN.js";
5
+ import { n as G, t as K } from "./SvGridChartPanel-Dc_jj7B-.js";
6
6
  //#region ../grid/dist/createTabs.svelte.js
7
7
  var q = 0;
8
8
  function J(t) {
@@ -1,7 +1,7 @@
1
1
  import { D as e, E as t, G as n, H as r, I as i, L as a, O as o, P as s, R as c, S as l, T as u, U as d, V as f, W as p, X as m, Y as h, _ as g, a as _, at as v, b as y, dt as ee, et as b, h as x, i as S, it as C, j as w, l as te, m as T, mt as E, n as D, nt as O, o as k, p as A, r as j, st as M, tt as ne, ut as re, x as ie, y as N, z as P } from "./client-DQIzjDBG.js";
2
2
  import { a as ae } from "./editor-contract-peBDxir_.js";
3
- import { S as F, h as I } from "./chart-6OXlybVT.js";
4
- import { t as oe } from "./SvGridChart-BqUJh2pG.js";
3
+ import { S as F, h as I } from "./chart-CV5D7_k8.js";
4
+ import { t as oe } from "./SvGridChart-C6UvNIbN.js";
5
5
  import { a as se, i as ce, n as le, o as ue, t as de } from "./chart-export-CeSADGfi.js";
6
6
  //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/transition/index.js
7
7
  function fe(e) {
@@ -1206,7 +1206,7 @@ function Ot(r, c) {
1206
1206
  C(g, !0);
1207
1207
  return;
1208
1208
  }
1209
- import("./SvGridChartBuilder-CGycC5cn.js").then((e) => {
1209
+ import("./SvGridChartBuilder-ikf_5LyW.js").then((e) => {
1210
1210
  C(u, e.default, !0), C(g, !0);
1211
1211
  });
1212
1212
  }
@@ -1325,7 +1325,7 @@ function Ot(r, c) {
1325
1325
  });
1326
1326
  async function Ve() {
1327
1327
  if (C(U, !1), !n(L)) return;
1328
- let { chartSummary: e } = await import("./chart-summary-2m3ia1-n.js"), t = e(n(L));
1328
+ let { chartSummary: e } = await import("./chart-summary-DGx0QhJa.js"), t = e(n(L));
1329
1329
  try {
1330
1330
  await navigator.clipboard?.writeText(t);
1331
1331
  } catch {}
@@ -1,6 +1,6 @@
1
1
  import { G as e, I as t, R as n, T as r, dt as i, et as a, mt as o, st as s, ut as c } from "./client-DQIzjDBG.js";
2
- import { s as l } from "./chart-6OXlybVT.js";
3
- import { t as u } from "./SvGridChart-BqUJh2pG.js";
2
+ import { s as l } from "./chart-CV5D7_k8.js";
3
+ import { t as u } from "./SvGridChart-C6UvNIbN.js";
4
4
  //#region ../grid/dist/SvGridChartView.svelte
5
5
  var d = n("<div class=\"sv-grid-chart-view svelte-733vyy\"><!></div>"), f = {
6
6
  hash: "svelte-733vyy",
@@ -57,12 +57,34 @@ function n(e, n) {
57
57
  let r = (Array.isArray(e) ? e.join(",") : e ?? "") + "|" + (n.style ?? "") + "|" + (n.currency ?? "") + "|" + (n.minimumFractionDigits ?? "") + "|" + (n.maximumFractionDigits ?? "") + "|" + (n.useGrouping ?? "") + "|" + (n.currencyDisplay ?? "") + "|" + (n.notation ?? "") + "|" + (n.signDisplay ?? "") + "|" + (n.minimumIntegerDigits ?? "") + "|" + (n.compactDisplay ?? "") + "|" + (n.unit ?? "") + "|" + (n.unitDisplay ?? "") + "|" + (n.minimumSignificantDigits ?? "") + "|" + (n.maximumSignificantDigits ?? ""), i = t.get(r);
58
58
  return i || (i = new Intl.NumberFormat(e, n), t.set(r, i)), i;
59
59
  }
60
- var r = /* @__PURE__ */ new Map();
61
- function i(e, t) {
62
- let n = (Array.isArray(e) ? e.join(",") : e ?? "") + "|" + (t.dateStyle ?? "") + "|" + (t.timeStyle ?? "") + "|" + (t.year ?? "") + "|" + (t.month ?? "") + "|" + (t.day ?? "") + "|" + (t.hour ?? "") + "|" + (t.minute ?? "") + "|" + (t.second ?? "") + "|" + (t.weekday ?? "") + "|" + (t.hour12 ?? ""), i = r.get(n);
63
- return i || (i = new Intl.DateTimeFormat(e, t), r.set(n, i)), i;
60
+ function r(e) {
61
+ if (e instanceof Date) return Number.isNaN(e.getTime()) ? null : e;
62
+ if (typeof e == "number") {
63
+ if (!Number.isFinite(e)) return null;
64
+ let t = new Date(e);
65
+ return Number.isNaN(t.getTime()) ? null : t;
66
+ }
67
+ if (typeof e != "string") return null;
68
+ let t = e.trim();
69
+ if (t === "") return null;
70
+ let n = /^(\d{4})-(\d{2})-(\d{2})$/.exec(t);
71
+ if (n) {
72
+ let [e, t, r] = [
73
+ Number(n[1]),
74
+ Number(n[2]) - 1,
75
+ Number(n[3])
76
+ ], i = /* @__PURE__ */ new Date(0);
77
+ return i.setFullYear(e, t, r), i.setHours(0, 0, 0, 0), i.getMonth() === t && i.getDate() === r ? i : null;
78
+ }
79
+ let r = new Date(t);
80
+ return Number.isNaN(r.getTime()) ? null : r;
64
81
  }
82
+ var i = /* @__PURE__ */ new Map();
65
83
  function a(e, t) {
84
+ let n = (Array.isArray(e) ? e.join(",") : e ?? "") + "|" + (t.dateStyle ?? "") + "|" + (t.timeStyle ?? "") + "|" + (t.year ?? "") + "|" + (t.month ?? "") + "|" + (t.day ?? "") + "|" + (t.hour ?? "") + "|" + (t.minute ?? "") + "|" + (t.second ?? "") + "|" + (t.weekday ?? "") + "|" + (t.hour12 ?? ""), r = i.get(n);
85
+ return r || (r = new Intl.DateTimeFormat(e, t), i.set(n, r)), r;
86
+ }
87
+ function o(e, t) {
66
88
  let r = typeof e == "number" ? e : Number(e);
67
89
  if (!Number.isFinite(r)) return String(e ?? "");
68
90
  let i = t.locales;
@@ -83,4 +105,4 @@ function a(e, t) {
83
105
  return n(i, t.options ?? {}).format(r);
84
106
  }
85
107
  //#endregion
86
- export { e as i, i as n, n as r, a as t };
108
+ export { e as a, r as i, a as n, n as r, o as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { i as t, n, r, t as i } from "./chart-trend-CQOQtTMl.js";
2
+ import { i as t, n, r, t as i } from "./chart-trend-BIRH_xH8.js";
3
3
  //#region ../grid/dist/chart-scale.js
4
4
  var a = [
5
5
  "#2563eb",
@@ -1,4 +1,4 @@
1
- import { i as e, n as t, t as n } from "./chart-trend-CQOQtTMl.js";
1
+ import { i as e, n as t, t as n } from "./chart-trend-BIRH_xH8.js";
2
2
  //#region ../grid/dist/chart-summary.js
3
3
  var r = (e) => typeof e == "number" && Number.isFinite(e);
4
4
  function i(e) {
@@ -1,4 +1,4 @@
1
- import { r as e } from "./cell-formatting-CBfgahv1.js";
1
+ import { r as e } from "./cell-formatting-hb3vzxhJ.js";
2
2
  //#region ../grid/dist/chart-format.js
3
3
  function t(e) {
4
4
  let t = Math.abs(e);