@svgrid/enterprise 3.1.27 → 3.1.29

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 (53) hide show
  1. package/dist/SvSheet.svelte +16 -0
  2. package/dist/cdn/{smart.export-D9FF4wAB.js → smart.export-0xDkly3x.js} +79 -63
  3. package/dist/cdn/svgrid-enterprise.svelte-external.js +22 -6
  4. package/dist/designer/assets/GridFind-MbmnQGp-.js +1 -0
  5. package/dist/designer/assets/{GridFooter-EyLg77jG.js → GridFooter-D0Ijrfs8.js} +1 -1
  6. package/dist/designer/assets/{GridMenus-BAgfpDd-.js → GridMenus-CYhdG48A.js} +1 -1
  7. package/dist/designer/assets/{SvGrid.helpers-DHkH3mHW.js → SvGrid.helpers-D0c-xJC6.js} +1 -1
  8. package/dist/designer/assets/{SvGridCellEditor-BHxH4b5h.js → SvGridCellEditor-sD6veY1r.js} +1 -1
  9. package/dist/designer/assets/{SvGridChart-DzCeEdlb.js → SvGridChart-BWFqs-48.js} +2 -2
  10. package/dist/designer/assets/{SvGridChartBuilder-CsXVVKvA.js → SvGridChartBuilder-CDkpH3a8.js} +1 -1
  11. package/dist/designer/assets/{SvGridChartPanel-Dj3IxTS2.js → SvGridChartPanel-CZUMJSNR.js} +3 -3
  12. package/dist/designer/assets/{SvGridChartView-Dwm4hxbW.js → SvGridChartView-B28YSGtz.js} +1 -1
  13. package/dist/designer/assets/aligned-grids-5VO4w2pq.js +1 -0
  14. package/dist/designer/assets/cell-formatting-CDP4IvHm.js +1 -0
  15. package/dist/designer/assets/{chart-Bmu-KAet.js → chart-SJcjQYZM.js} +1 -1
  16. package/dist/designer/assets/{chart-panel-messages-B3y8y3kL.js → chart-panel-messages-CsNPT3N0.js} +1 -1
  17. package/dist/designer/assets/{chart-summary-DxE0R2Bk.js → chart-summary-J7yVJWNx.js} +1 -1
  18. package/dist/designer/assets/{chart-trend-_gDVw3bP.js → chart-trend-CWfxPKk7.js} +1 -1
  19. package/dist/designer/assets/{export-format-NYxEY-0Y.js → export-format-jeYUruAF.js} +1 -1
  20. package/dist/designer/assets/index-BsdMTCRO.css +1 -0
  21. package/dist/designer/assets/{index-Cim1_diz.js → index-C3-54-IA.js} +7 -7
  22. package/dist/designer/assets/{smart.export-CDCwbFH4.js → smart.export-AxSFVWeW.js} +7 -9
  23. package/dist/designer/assets/src-scjbbOn3.js +60 -0
  24. package/dist/designer/assets/sv-grid-scrollbar-Kxa7izux.js +109 -0
  25. package/dist/designer/index.html +12 -12
  26. package/dist/install.d.ts +3 -2
  27. package/dist/node/studio.js +3 -3
  28. package/dist/print.d.ts +7 -1
  29. package/dist/print.js +6 -0
  30. package/dist/smart.export.js +1 -1
  31. package/dist/studio/ui-components.generated.js +1 -1
  32. package/dist/version.d.ts +2 -2
  33. package/dist/version.js +2 -2
  34. package/dist/wc/GridFind-DwjTaDqf.js +39 -0
  35. package/dist/wc/{GridFooter-CKC4L36O.js → GridFooter-H6Ltxqk9.js} +1 -1
  36. package/dist/wc/{GridMenus-BIQXB6a7.js → GridMenus-lyPYfbvF.js} +1 -1
  37. package/dist/wc/{SvGrid.helpers-tk7gWxcT.js → SvGrid.helpers-DovOhyhU.js} +1 -1
  38. package/dist/wc/{SvGridCellEditor-CZwhQx0a.js → SvGridCellEditor-9xR6C567.js} +1 -1
  39. package/dist/wc/{SvGridChart-DcfmVvzB.js → SvGridChart-CIdaCZQF.js} +3 -3
  40. package/dist/wc/{SvGridChartBuilder-1Z69mxbM.js → SvGridChartBuilder-DGlcVTiE.js} +3 -3
  41. package/dist/wc/{SvGridChartPanel-BaVsa-T-.js → SvGridChartPanel-NTMcrVyb.js} +4 -4
  42. package/dist/wc/{SvGridChartView-LEC8ZNeU.js → SvGridChartView-CNvBZnda.js} +2 -2
  43. package/dist/wc/aligned-grids-B0ZfULOR.js +57 -0
  44. package/dist/wc/{cell-formatting-5uEa4Y_0.js → cell-formatting-B2BDgY-k.js} +28 -10
  45. package/dist/wc/{chart-CznMeoM7.js → chart-j-Izih1o.js} +1 -1
  46. package/dist/wc/{chart-summary-COWSPw1p.js → chart-summary-DLWgESJJ.js} +1 -1
  47. package/dist/wc/{chart-trend-Dcn6jrAS.js → chart-trend-C8hVsyFi.js} +1 -1
  48. package/dist/wc/sv-sheet-element.js +5684 -5702
  49. package/package.json +3 -3
  50. package/dist/designer/assets/cell-formatting-JoxA0t65.js +0 -1
  51. package/dist/designer/assets/index-BU3ieI05.css +0 -1
  52. package/dist/designer/assets/src-sFRH_up7.js +0 -60
  53. package/dist/designer/assets/sv-grid-scrollbar-B9N6Wuj0.js +0 -109
@@ -1,5 +1,5 @@
1
1
  import { $ as e, C as t, D as n, G as r, H as i, I as a, L as o, M as s, O as c, P 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, ct as y, dt as ee, ft as b, gt as x, h as te, ht as S, i as ne, j as C, m as w, n as T, nt as E, ot as D, p as O, rt as k, tt as A, w as j, y as re } from "./client-GWAV79ON.js";
2
- import { C as ie, d as ae, h as oe, m as se, o as ce, p as le, v as ue, x as de } from "./SvGrid.helpers-tk7gWxcT.js";
2
+ import { C as ie, d as ae, h as oe, m as se, o as ce, p as le, v as ue, x as de } from "./SvGrid.helpers-DovOhyhU.js";
3
3
  import { n as fe, r as pe, t as M } 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, ct as y, dt as te, ft as ne, ht as b, it as re, j as x, k as S, l as ie, m as C, mt as ae, n as w, nt as T, o as oe, ot as E, p as se, q as ce, rt as D, tt as O, w as le, x as k, z as A } from "./client-GWAV79ON.js";
2
2
  import { a as ue } from "./editor-contract-peBDxir_.js";
3
- import { i as de } from "./chart-trend-Dcn6jrAS.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-CznMeoM7.js";
3
+ import { i as de } from "./chart-trend-C8hVsyFi.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-j-Izih1o.js";
5
5
  import { i as ke, t as Ae } from "./chart-export-C1KSVdMU.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-COWSPw1p.js").then(({ chartSummary: t }) => {
327
+ return import("./chart-summary-DLWgESJJ.js").then(({ chartSummary: t }) => {
328
328
  n && v(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 _, ct as v, dt as y, f as b, ft as x, gt as S, h as C, ht as w, j as T, m as E, n as D, nt as O, o as k, ot as A, p as j, rt as M, st as N, tt as P, u as F, y as I } from "./client-GWAV79ON.js";
2
2
  import { t as L } from "./SvModal-DLppAQED.js";
3
- import { c as R, f as z, l as B, m as V, o as H, p as U, s as W, u as ee } from "./chart-CznMeoM7.js";
4
- import { t as G } from "./SvGridChart-DcfmVvzB.js";
5
- import { n as te, t as K } from "./SvGridChartPanel-BaVsa-T-.js";
3
+ import { c as R, f as z, l as B, m as V, o as H, p as U, s as W, u as ee } from "./chart-j-Izih1o.js";
4
+ import { t as G } from "./SvGridChart-CIdaCZQF.js";
5
+ import { n as te, t as K } from "./SvGridChartPanel-NTMcrVyb.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, ct as b, dt as ee, ft as te, h as x, ht as S, i as C, j as w, l as ne, m as T, n as E, nt as re, o as D, ot as O, p as k, r as A, rt as j, tt as M, x as ie, y as N, z as P } from "./client-GWAV79ON.js";
2
2
  import { a as ae } from "./editor-contract-peBDxir_.js";
3
- import { S as F, h as I } from "./chart-CznMeoM7.js";
4
- import { t as oe } from "./SvGridChart-DcfmVvzB.js";
3
+ import { S as F, h as I } from "./chart-j-Izih1o.js";
4
+ import { t as oe } from "./SvGridChart-CIdaCZQF.js";
5
5
  import { a as se, i as ce, n as le, o as ue, t as de } from "./chart-export-C1KSVdMU.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
  v(g, !0);
1207
1207
  return;
1208
1208
  }
1209
- import("./SvGridChartBuilder-1Z69mxbM.js").then((e) => {
1209
+ import("./SvGridChartBuilder-DGlcVTiE.js").then((e) => {
1210
1210
  v(u, e.default, !0), v(g, !0);
1211
1211
  });
1212
1212
  }
@@ -1325,7 +1325,7 @@ function Ot(r, c) {
1325
1325
  });
1326
1326
  async function Ve() {
1327
1327
  if (v(U, !1), !n(L)) return;
1328
- let { chartSummary: e } = await import("./chart-summary-COWSPw1p.js"), t = e(n(L));
1328
+ let { chartSummary: e } = await import("./chart-summary-DLWgESJJ.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, ct as i, dt as a, ft as o, ht as s, tt as c } from "./client-GWAV79ON.js";
2
- import { s as l } from "./chart-CznMeoM7.js";
3
- import { t as u } from "./SvGridChart-DcfmVvzB.js";
2
+ import { s as l } from "./chart-j-Izih1o.js";
3
+ import { t as u } from "./SvGridChart-CIdaCZQF.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",
@@ -0,0 +1,57 @@
1
+ //#region ../grid/dist/aligned-grids.js
2
+ var e = /* @__PURE__ */ new Map(), t = 0;
3
+ function n(n) {
4
+ let r = ++t, i = "", a = () => n.props.alignedGridGroup ?? null;
5
+ function o() {
6
+ let t = a();
7
+ if (!t) return [];
8
+ let n = e.get(t);
9
+ if (!n) return [];
10
+ let i = [];
11
+ for (let e of n.values()) e.id !== r && i.push(e);
12
+ return i;
13
+ }
14
+ let s = {
15
+ id: r,
16
+ applyScroll(e) {
17
+ let t = n.scrollContainer;
18
+ t && t.scrollLeft !== e && (t.scrollLeft = e);
19
+ },
20
+ applyWidths(e) {
21
+ let t = {
22
+ ...n.columnWidths,
23
+ ...e
24
+ };
25
+ i = JSON.stringify(t), n.columnWidths = t;
26
+ }
27
+ };
28
+ function c() {
29
+ let t = a();
30
+ if (!t) return () => {};
31
+ let n = e.get(t);
32
+ return n || (n = /* @__PURE__ */ new Map(), e.set(t, n)), n.set(r, s), () => {
33
+ let n = e.get(t);
34
+ n && (n.delete(r), n.size || e.delete(t));
35
+ };
36
+ }
37
+ function l(e) {
38
+ let t = o();
39
+ for (let n of t) n.applyScroll(e);
40
+ }
41
+ function u() {
42
+ if (!a()) return;
43
+ let e = JSON.stringify(n.columnWidths ?? {});
44
+ if (e === i) return;
45
+ i = e;
46
+ let t = n.columnWidths;
47
+ for (let e of o()) e.applyWidths(t);
48
+ }
49
+ return {
50
+ register: c,
51
+ broadcastScroll: l,
52
+ broadcastWidths: u,
53
+ alignedGridId: r
54
+ };
55
+ }
56
+ //#endregion
57
+ export { n as createAlignedGrids };
@@ -57,7 +57,25 @@ 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
- function r(e) {
60
+ var r = /^(\d{4})-(\d{2})-(\d{2})$/;
61
+ function i(t, n) {
62
+ let i = e(t.pattern, t.type), a = i || t.options ? {
63
+ ...i,
64
+ ...t.options
65
+ } : t.type === "date" ? {
66
+ year: "numeric",
67
+ month: "2-digit",
68
+ day: "2-digit"
69
+ } : {
70
+ year: "numeric",
71
+ month: "2-digit",
72
+ day: "2-digit",
73
+ hour: "2-digit",
74
+ minute: "2-digit"
75
+ };
76
+ return a.timeZone !== void 0 && typeof n == "string" && r.test(n.trim()) && delete a.timeZone, a;
77
+ }
78
+ function a(e) {
61
79
  if (e instanceof Date) return Number.isNaN(e.getTime()) ? null : e;
62
80
  if (typeof e == "number") {
63
81
  if (!Number.isFinite(e)) return null;
@@ -67,7 +85,7 @@ function r(e) {
67
85
  if (typeof e != "string") return null;
68
86
  let t = e.trim();
69
87
  if (t === "") return null;
70
- let n = /^(\d{4})-(\d{2})-(\d{2})$/.exec(t);
88
+ let n = r.exec(t);
71
89
  if (n) {
72
90
  let [e, t, r] = [
73
91
  Number(n[1]),
@@ -76,15 +94,15 @@ function r(e) {
76
94
  ], i = /* @__PURE__ */ new Date(0);
77
95
  return i.setFullYear(e, t, r), i.setHours(0, 0, 0, 0), i.getMonth() === t && i.getDate() === r ? i : null;
78
96
  }
79
- let r = new Date(t);
80
- return Number.isNaN(r.getTime()) ? null : r;
97
+ let i = new Date(t);
98
+ return Number.isNaN(i.getTime()) ? null : i;
81
99
  }
82
- var i = /* @__PURE__ */ new Map();
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;
100
+ var o = /* @__PURE__ */ new Map();
101
+ function s(e, t) {
102
+ 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 = o.get(n);
103
+ return r || (r = new Intl.DateTimeFormat(e, t), o.set(n, r)), r;
86
104
  }
87
- function o(e, t) {
105
+ function c(e, t) {
88
106
  if (e == null || typeof e == "string" && e.trim() === "") return "";
89
107
  let r = typeof e == "number" ? e : Number(e);
90
108
  if (!Number.isFinite(r)) return String(e ?? "");
@@ -106,4 +124,4 @@ function o(e, t) {
106
124
  return n(i, t.options ?? {}).format(r);
107
125
  }
108
126
  //#endregion
109
- export { e as a, r as i, a as n, n as r, o as t };
127
+ export { a, n as i, c as n, s as r, i 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-Dcn6jrAS.js";
2
+ import { i as t, n, r, t as i } from "./chart-trend-C8hVsyFi.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-Dcn6jrAS.js";
1
+ import { i as e, n as t, t as n } from "./chart-trend-C8hVsyFi.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-5uEa4Y_0.js";
1
+ import { i as e } from "./cell-formatting-B2BDgY-k.js";
2
2
  //#region ../grid/dist/chart-format.js
3
3
  function t(e) {
4
4
  let t = Math.abs(e);