@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.
- package/dist/GridFind-DianRZxS.js +39 -0
- package/dist/{GridFooter-DEKpo1cS.js → GridFooter-Bp3o5qJX.js} +1 -1
- package/dist/{GridMenus-T9EoG8Ww.js → GridMenus-BYkY3nhr.js} +2 -2
- package/dist/{SvGrid.helpers-tk7gWxcT.js → SvGrid.helpers-DovOhyhU.js} +1 -1
- package/dist/{shadow/SvGridCellEditor-D8UIbCRd.js → SvGridCellEditor-DHHGSjgp.js} +1 -1
- package/dist/{SvGridChart-Cjay-so9.js → SvGridChart-BFQLtNmn.js} +5 -5
- package/dist/{SvGridChartBuilder-Ca3M_gpQ.js → SvGridChartBuilder-CtGuoAOV.js} +4 -4
- package/dist/{SvGridChartPanel-BvNxBEeX.js → SvGridChartPanel-CeaXNzmV.js} +7 -7
- package/dist/{SvGridChartView-BVS7Ac61.js → SvGridChartView-Bvacwk37.js} +3 -3
- package/dist/aligned-grids-B0ZfULOR.js +57 -0
- package/dist/{shadow/cell-formatting-5uEa4Y_0.js → cell-formatting-B2BDgY-k.js} +28 -10
- package/dist/chart/sv-chart-element.js +1 -1
- package/dist/{shadow/chart-xrT6cLA5.js → chart-Cwv61lx6.js} +1 -1
- package/dist/{shadow/chart-export-pdf-CBZNCRFi.js → chart-export-pdf-DDVtypH7.js} +1 -1
- package/dist/{chart-summary-zpeh1XVx.js → chart-summary-D02rGO0c.js} +1 -1
- package/dist/{export-format-DW7bHqeY.js → export-format-6jDuF2nb.js} +10 -26
- package/dist/react/chart.d.ts +2 -1
- package/dist/react/chart.js +20 -20
- package/dist/react/index.d.ts +2 -1
- package/dist/react/index.js +26 -26
- package/dist/shadow/GridFind-DianRZxS.js +39 -0
- package/dist/shadow/{GridFooter-DzMtiAvb.js → GridFooter-DvMFqeNV.js} +1 -1
- package/dist/shadow/{GridMenus--Qxo5g1j.js → GridMenus-DKLNTKDZ.js} +2 -2
- package/dist/shadow/{SvGrid.helpers-tk7gWxcT.js → SvGrid.helpers-DovOhyhU.js} +1 -1
- package/dist/{SvGridCellEditor-D8UIbCRd.js → shadow/SvGridCellEditor-DHHGSjgp.js} +1 -1
- package/dist/shadow/{SvGridChart-Cjay-so9.js → SvGridChart-BFQLtNmn.js} +5 -5
- package/dist/shadow/{SvGridChartBuilder-Ca3M_gpQ.js → SvGridChartBuilder-CtGuoAOV.js} +4 -4
- package/dist/shadow/{SvGridChartPanel-BvNxBEeX.js → SvGridChartPanel-CeaXNzmV.js} +7 -7
- package/dist/shadow/{SvGridChartView-BVS7Ac61.js → SvGridChartView-Bvacwk37.js} +3 -3
- package/dist/shadow/aligned-grids-B0ZfULOR.js +57 -0
- package/dist/{cell-formatting-5uEa4Y_0.js → shadow/cell-formatting-B2BDgY-k.js} +28 -10
- package/dist/{chart-xrT6cLA5.js → shadow/chart-Cwv61lx6.js} +1 -1
- package/dist/{chart-export-pdf-CBZNCRFi.js → shadow/chart-export-pdf-DDVtypH7.js} +1 -1
- package/dist/shadow/{chart-summary-zpeh1XVx.js → chart-summary-D02rGO0c.js} +1 -1
- package/dist/shadow/{export-format-DW7bHqeY.js → export-format-6jDuF2nb.js} +10 -26
- package/dist/shadow/sv-grid-shadow-element.js +3082 -3114
- package/dist/sv-grid-element.js +3081 -3113
- package/dist/vue/chart.d.ts +1 -1
- 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
|
-
|
|
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 =
|
|
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
|
|
80
|
-
return Number.isNaN(
|
|
97
|
+
let i = new Date(t);
|
|
98
|
+
return Number.isNaN(i.getTime()) ? null : i;
|
|
81
99
|
}
|
|
82
|
-
var
|
|
83
|
-
function
|
|
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 =
|
|
85
|
-
return r || (r = new Intl.DateTimeFormat(e, t),
|
|
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
|
|
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 {
|
|
127
|
+
export { a, n as i, c as n, s as r, i as t };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { a as e,
|
|
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(
|
|
6
|
-
return t
|
|
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(
|
|
13
|
-
if (
|
|
14
|
-
if (!i) return String(
|
|
15
|
-
if (i.type === "number" || i.type === "currency" || i.type === "percent") return
|
|
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
|
|
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(
|
|
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 = {};
|