@svgrid/grid-wc 3.0.35 → 3.0.37

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 (39) hide show
  1. package/dist/GridFind-DianRZxS.js +39 -0
  2. package/dist/{GridFooter-DEKpo1cS.js → GridFooter-Bp3o5qJX.js} +1 -1
  3. package/dist/{GridMenus-T9EoG8Ww.js → GridMenus-BYkY3nhr.js} +2 -2
  4. package/dist/{SvGrid.helpers-tk7gWxcT.js → SvGrid.helpers-DovOhyhU.js} +1 -1
  5. package/dist/{shadow/SvGridCellEditor-D8UIbCRd.js → SvGridCellEditor-DHHGSjgp.js} +1 -1
  6. package/dist/{SvGridChart-Cjay-so9.js → SvGridChart-BFQLtNmn.js} +5 -5
  7. package/dist/{SvGridChartBuilder-Ca3M_gpQ.js → SvGridChartBuilder-CtGuoAOV.js} +4 -4
  8. package/dist/{SvGridChartPanel-BvNxBEeX.js → SvGridChartPanel-CeaXNzmV.js} +7 -7
  9. package/dist/{SvGridChartView-BVS7Ac61.js → SvGridChartView-Bvacwk37.js} +3 -3
  10. package/dist/aligned-grids-B0ZfULOR.js +57 -0
  11. package/dist/{shadow/cell-formatting-5uEa4Y_0.js → cell-formatting-B2BDgY-k.js} +28 -10
  12. package/dist/chart/sv-chart-element.js +1 -1
  13. package/dist/{shadow/chart-xrT6cLA5.js → chart-Cwv61lx6.js} +1 -1
  14. package/dist/{shadow/chart-export-pdf-CBZNCRFi.js → chart-export-pdf-DDVtypH7.js} +1 -1
  15. package/dist/{chart-summary-zpeh1XVx.js → chart-summary-D02rGO0c.js} +1 -1
  16. package/dist/{export-format-DW7bHqeY.js → export-format-6jDuF2nb.js} +10 -26
  17. package/dist/react/chart.d.ts +2 -1
  18. package/dist/react/chart.js +20 -20
  19. package/dist/react/index.d.ts +2 -1
  20. package/dist/react/index.js +26 -26
  21. package/dist/shadow/GridFind-DianRZxS.js +39 -0
  22. package/dist/shadow/{GridFooter-DzMtiAvb.js → GridFooter-DvMFqeNV.js} +1 -1
  23. package/dist/shadow/{GridMenus--Qxo5g1j.js → GridMenus-DKLNTKDZ.js} +2 -2
  24. package/dist/shadow/{SvGrid.helpers-tk7gWxcT.js → SvGrid.helpers-DovOhyhU.js} +1 -1
  25. package/dist/{SvGridCellEditor-D8UIbCRd.js → shadow/SvGridCellEditor-DHHGSjgp.js} +1 -1
  26. package/dist/shadow/{SvGridChart-Cjay-so9.js → SvGridChart-BFQLtNmn.js} +5 -5
  27. package/dist/shadow/{SvGridChartBuilder-Ca3M_gpQ.js → SvGridChartBuilder-CtGuoAOV.js} +4 -4
  28. package/dist/shadow/{SvGridChartPanel-BvNxBEeX.js → SvGridChartPanel-CeaXNzmV.js} +7 -7
  29. package/dist/shadow/{SvGridChartView-BVS7Ac61.js → SvGridChartView-Bvacwk37.js} +3 -3
  30. package/dist/shadow/aligned-grids-B0ZfULOR.js +57 -0
  31. package/dist/{cell-formatting-5uEa4Y_0.js → shadow/cell-formatting-B2BDgY-k.js} +28 -10
  32. package/dist/{chart-xrT6cLA5.js → shadow/chart-Cwv61lx6.js} +1 -1
  33. package/dist/{chart-export-pdf-CBZNCRFi.js → shadow/chart-export-pdf-DDVtypH7.js} +1 -1
  34. package/dist/shadow/{chart-summary-zpeh1XVx.js → chart-summary-D02rGO0c.js} +1 -1
  35. package/dist/shadow/{export-format-DW7bHqeY.js → export-format-6jDuF2nb.js} +10 -26
  36. package/dist/shadow/sv-grid-shadow-element.js +3082 -3114
  37. package/dist/sv-grid-element.js +3081 -3113
  38. package/dist/vue/chart.d.ts +1 -1
  39. package/package.json +3 -3
@@ -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,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 \0rolldown/runtime.js
3
3
  var t = Object.defineProperty, n = (e, n) => {
4
4
  let r = {};
@@ -1,4 +1,4 @@
1
- import { i as e, r as t } from "./SvGridChart-Cjay-so9.js";
1
+ import { i as e, r as t } from "./SvGridChart-BFQLtNmn.js";
2
2
  //#region ../grid/dist/chart-export-pdf.js
3
3
  var n = {
4
4
  A4: [595.28, 841.89],
@@ -1,4 +1,4 @@
1
- import { A as e, j as t, k as n } from "./chart-xrT6cLA5.js";
1
+ import { A as e, j as t, k as n } from "./chart-Cwv61lx6.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,18 +1,18 @@
1
- import { a as e, i as t, n, t as r } from "./cell-formatting-5uEa4Y_0.js";
1
+ import { a as e, n as t, r as n, t as r } from "./cell-formatting-B2BDgY-k.js";
2
2
  import { t as i } from "./csv-injection-Ce26_TOb.js";
3
3
  import "./conditional-formatting-LFQdw2jz.js";
4
4
  //#region ../grid/dist/export-format.js
5
- function a(e) {
6
- return t(e);
5
+ function a(t) {
6
+ return e(t);
7
7
  }
8
8
  function o(e) {
9
9
  let t = (e, t = 2) => String(Math.abs(e)).padStart(t, "0"), n = -e.getTimezoneOffset(), r = n < 0 ? "-" : "+", i = e.getFullYear();
10
10
  return (i < 0 ? "-" + t(i, 6) : t(i, 4)) + `-${t(e.getMonth() + 1)}-${t(e.getDate())}T${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}.${t(e.getMilliseconds(), 3)}${r}${t(Math.floor(Math.abs(n) / 60))}:${t(Math.abs(n) % 60)}`;
11
11
  }
12
- function s(t, i) {
13
- if (t == null) return "";
14
- if (!i) return String(t);
15
- if (i.type === "number" || i.type === "currency" || i.type === "percent") return r(t, {
12
+ function s(e, i) {
13
+ if (e == null) return "";
14
+ if (!i) return String(e);
15
+ if (i.type === "number" || i.type === "currency" || i.type === "percent") return t(e, {
16
16
  type: i.type,
17
17
  locales: i.locales,
18
18
  currency: i.type === "currency" ? i.currency ?? "USD" : void 0,
@@ -20,26 +20,10 @@ function s(t, i) {
20
20
  options: i.options
21
21
  });
22
22
  if (i.type === "date" || i.type === "datetime") {
23
- let r = a(t);
24
- if (r) {
25
- let t = e(i.pattern, i.type), a = t || i.options ? {
26
- ...t,
27
- ...i.options
28
- } : i.type === "date" ? {
29
- year: "numeric",
30
- month: "2-digit",
31
- day: "2-digit"
32
- } : {
33
- year: "numeric",
34
- month: "2-digit",
35
- day: "2-digit",
36
- hour: "2-digit",
37
- minute: "2-digit"
38
- };
39
- return n(i.locales, a).format(r);
40
- }
23
+ let t = a(e);
24
+ if (t) return n(i.locales, r(i, e)).format(t);
41
25
  }
42
- return String(t);
26
+ return String(e);
43
27
  }
44
28
  function c(e, t, n = {}) {
45
29
  let r = n.columns && n.columns.length ? n.columns.map((e) => t.find((t) => t.field === e)).filter((e) => !!e) : t.filter((e) => e.field), i = r.map((e) => e.field), a = {};