@svgrid/grid 3.0.3 → 3.0.4
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/README.md +2 -1
- package/dist/GridMenus.svelte +44 -2
- package/dist/SvChartMenu.svelte +69 -0
- package/dist/SvChartMenu.svelte.d.ts +11 -0
- package/dist/SvChartPanes.svelte +113 -0
- package/dist/SvChartPanes.svelte.d.ts +20 -0
- package/dist/SvGrid.controller.svelte.d.ts +110 -39
- package/dist/SvGrid.controller.svelte.js +655 -200
- package/dist/SvGrid.css +105 -2
- package/dist/SvGrid.svelte +386 -514
- package/dist/SvGrid.types.d.ts +210 -9
- package/dist/SvGridCellEditor.svelte +17 -0
- package/dist/SvGridChart.svelte +2257 -329
- package/dist/SvGridChart.svelte.d.ts +6 -106
- package/dist/SvGridChart.types.d.ts +338 -0
- package/dist/SvGridChart.types.js +1 -0
- package/dist/SvGridChartBuilder.svelte +323 -0
- package/dist/SvGridChartBuilder.svelte.d.ts +34 -0
- package/dist/SvGridChartPanel.svelte +221 -275
- package/dist/SvGridChartPickers.svelte +417 -0
- package/dist/SvGridChartPickers.svelte.d.ts +70 -0
- package/dist/SvGridChartView.svelte +13 -14
- package/dist/SvModal.svelte +7 -1
- package/dist/SvModal.svelte.d.ts +5 -0
- package/dist/ai.d.ts +40 -8
- package/dist/ai.js +135 -24
- package/dist/aria.d.ts +11 -0
- package/dist/build-api.js +108 -22
- package/dist/cdn/GridMenus-7kbpnnBW.js +635 -0
- package/dist/cdn/GridMenus-BL7ZgQvU.js +636 -0
- package/dist/cdn/SvChartMenu-Bl6PBbkT.js +58 -0
- package/dist/cdn/SvChartMenu-FBSMINA6.js +59 -0
- package/dist/cdn/{SvDateRangeInput-DMLKmGEc.js → SvDateRangeInput-BeU_TkbQ.js} +15 -14
- package/dist/cdn/{SvDateRangeInput-CaOuMs8O.js → SvDateRangeInput-yX8vzleW.js} +38 -37
- package/dist/cdn/{SvDateTimePicker-sonaH0oh.js → SvDateTimePicker-DQwt4UAs.js} +139 -180
- package/dist/cdn/SvDateTimePicker-vNU6bZ-q.js +775 -0
- package/dist/cdn/{SvGridCellEditor-CjEJMJKc.js → SvGridCellEditor-B1p-vCK5.js} +188 -178
- package/dist/cdn/{SvGridCellEditor-BWnTi2N7.js → SvGridCellEditor-D_0q4xAu.js} +98 -88
- package/dist/cdn/SvGridChart-C3EWAZaM.js +3574 -0
- package/dist/cdn/SvGridChart-DzLkSwCH.js +3572 -0
- package/dist/cdn/SvGridChartBuilder-BE2T1ykB.js +783 -0
- package/dist/cdn/SvGridChartBuilder-CfII62sZ.js +784 -0
- package/dist/cdn/SvGridChartPanel-CCX5_Wgd.js +675 -0
- package/dist/cdn/SvGridChartPanel-xf4sWVTo.js +699 -0
- package/dist/cdn/SvGridChartView-CfuXmY5I.js +48 -0
- package/dist/cdn/SvGridChartView-DYwabQWj.js +47 -0
- package/dist/cdn/SvMenuList-CLN8OuIK.js +452 -0
- package/dist/cdn/SvMenuList-DkGhNKjf.js +451 -0
- package/dist/cdn/SvModal-BAE-pjZX.js +396 -0
- package/dist/cdn/SvModal-CIZWCcad.js +397 -0
- package/dist/cdn/chart-Dz7SqMXH.js +4341 -0
- package/dist/cdn/chart-export-BXqueeWJ.js +135 -0
- package/dist/cdn/chart-export-pdf-DONFUnNY.js +110 -0
- package/dist/cdn/chart-panel-messages-CUbf2R4i.js +1052 -0
- package/dist/cdn/chart-panel-messages-CmNrMdsr.js +1053 -0
- package/dist/cdn/chart-summary-BJW_tg_X.js +138 -0
- package/dist/cdn/chart-trend-CaN9mDEV.js +50 -0
- package/dist/cdn/chart-validate-HcOVFAfJ.js +188 -0
- package/dist/cdn/{column-resize-DsfNXMom.js → column-resize-DpmOLfRp.js} +3 -3
- package/dist/cdn/{date-format-BnnHlqGw.js → date-format-CtquV-p3.js} +583 -603
- package/dist/cdn/{date-format-BNii4zeD.js → date-format-D6KFzU_W.js} +347 -367
- package/dist/cdn/dismissable-DAHetSNk.js +44 -0
- package/dist/cdn/editor-contract-LXgQJAgd.js +22 -0
- package/dist/cdn/focus-trap-BBOQYBma.js +65 -0
- package/dist/cdn/{row-resize-BRcimkUT.js → row-resize-niQCp040.js} +44 -36
- package/dist/cdn/{src-D6XvA1Ij.js → src-BKhZ6eXd.js} +10227 -9787
- package/dist/cdn/{src-Bugf5XlI.js → src-V1uu8iE9.js} +6568 -6128
- package/dist/cdn/svgrid.js +26 -15
- package/dist/cdn/svgrid.svelte-external.js +26 -15
- package/dist/chart-axes.d.ts +53 -0
- package/dist/chart-axes.js +351 -0
- package/dist/chart-cartesian.d.ts +88 -0
- package/dist/chart-cartesian.js +1862 -0
- package/dist/chart-decimate.d.ts +51 -0
- package/dist/chart-decimate.js +199 -0
- package/dist/chart-export-pdf.d.ts +47 -0
- package/dist/chart-export-pdf.js +187 -0
- package/dist/chart-export.d.ts +2 -1
- package/dist/chart-export.js +18 -3
- package/dist/chart-financial.d.ts +91 -0
- package/dist/chart-financial.js +175 -0
- package/dist/chart-flow.d.ts +10 -0
- package/dist/chart-flow.js +298 -0
- package/dist/chart-format.d.ts +18 -0
- package/dist/chart-format.js +65 -0
- package/dist/chart-grid.d.ts +8 -0
- package/dist/chart-grid.js +190 -0
- package/dist/chart-hierarchy.d.ts +17 -0
- package/dist/chart-hierarchy.js +146 -0
- package/dist/chart-indicators.d.ts +115 -0
- package/dist/chart-indicators.js +389 -0
- package/dist/chart-messages.d.ts +95 -0
- package/dist/chart-messages.js +92 -0
- package/dist/chart-motion.d.ts +16 -0
- package/dist/chart-motion.js +141 -0
- package/dist/chart-panel-messages.d.ts +265 -0
- package/dist/chart-panel-messages.js +285 -0
- package/dist/chart-pivot.d.ts +87 -0
- package/dist/chart-pivot.js +156 -0
- package/dist/chart-polar.d.ts +25 -0
- package/dist/chart-polar.js +700 -0
- package/dist/chart-samples.d.ts +16 -0
- package/dist/chart-samples.js +153 -0
- package/dist/chart-scale.d.ts +113 -0
- package/dist/chart-scale.js +405 -0
- package/dist/chart-stats.d.ts +111 -0
- package/dist/chart-stats.js +419 -0
- package/dist/chart-stream.d.ts +45 -0
- package/dist/chart-stream.js +91 -0
- package/dist/chart-summary.d.ts +27 -0
- package/dist/chart-summary.js +205 -0
- package/dist/chart-sync.svelte.d.ts +32 -0
- package/dist/chart-sync.svelte.js +23 -0
- package/dist/chart-table.d.ts +35 -0
- package/dist/chart-table.js +165 -0
- package/dist/chart-trend.d.ts +19 -0
- package/dist/chart-trend.js +61 -0
- package/dist/chart-types.d.ts +1456 -0
- package/dist/chart-types.js +6 -0
- package/dist/chart-validate.d.ts +43 -0
- package/dist/chart-validate.js +272 -0
- package/dist/chart-zoom.d.ts +40 -0
- package/dist/chart-zoom.js +145 -0
- package/dist/chart.d.ts +186 -865
- package/dist/chart.js +460 -2204
- package/dist/clipboard.d.ts +1 -0
- package/dist/clipboard.js +137 -18
- package/dist/column-resize.d.ts +3 -0
- package/dist/column-resize.js +4 -1
- package/dist/columns.js +3 -0
- package/dist/command-context.d.ts +19 -0
- package/dist/command-context.js +116 -0
- package/dist/core.d.ts +7 -0
- package/dist/createPopoverSelect.svelte.d.ts +2 -2
- package/dist/editing.d.ts +2 -8
- package/dist/editing.js +262 -33
- package/dist/fill-patterns.d.ts +0 -5
- package/dist/fill-patterns.js +56 -2
- package/dist/grid-messages.d.ts +10 -3
- package/dist/grid-messages.js +5 -0
- package/dist/history.d.ts +83 -0
- package/dist/history.js +133 -0
- package/dist/index.d.ts +24 -6
- package/dist/index.js +20 -2
- package/dist/keyboard-handlers.js +88 -31
- package/dist/keyboard.d.ts +55 -0
- package/dist/keyboard.js +132 -0
- package/dist/menus.d.ts +3 -1
- package/dist/menus.js +7 -2
- package/dist/merges.d.ts +97 -0
- package/dist/merges.js +147 -0
- package/dist/row-resize.d.ts +3 -0
- package/dist/row-resize.js +14 -0
- package/dist/scroll-sync.d.ts +1 -0
- package/dist/scroll-sync.js +24 -0
- package/dist/selection.d.ts +16 -0
- package/dist/selection.js +108 -16
- package/dist/shortcut-registry.d.ts +145 -0
- package/dist/shortcut-registry.js +44 -0
- package/dist/svgrid-wrapper.types.d.ts +213 -22
- package/dist/virtualization/virtualizer.js +38 -17
- package/package.json +6 -1
- package/src/GridMenus.svelte +44 -2
- package/src/SvChartMenu.svelte +69 -0
- package/src/SvChartPanes.svelte +113 -0
- package/src/SvChartPanes.test.ts +66 -0
- package/src/SvGrid.controller.svelte.ts +629 -172
- package/src/SvGrid.css +105 -2
- package/src/SvGrid.svelte +386 -514
- package/src/SvGrid.types.ts +188 -8
- package/src/SvGridCellEditor.svelte +17 -0
- package/src/SvGridChart.svelte +2257 -329
- package/src/SvGridChart.test.ts +1419 -1
- package/src/SvGridChart.types.ts +336 -0
- package/src/SvGridChartBuilder.svelte +323 -0
- package/src/SvGridChartPanel.svelte +221 -275
- package/src/SvGridChartPickers.svelte +417 -0
- package/src/SvGridChartView.svelte +13 -14
- package/src/SvModal.svelte +7 -1
- package/src/SvModal.test.ts +9 -0
- package/src/ai.test.ts +57 -2
- package/src/ai.ts +166 -22
- package/src/aria.d.ts +11 -0
- package/src/build-api.coverage.test.ts +184 -0
- package/src/build-api.ts +107 -18
- package/src/chart-axes.test.ts +573 -0
- package/src/chart-axes.ts +342 -0
- package/src/chart-cartesian.ts +1863 -0
- package/src/chart-decimate.test.ts +249 -0
- package/src/chart-decimate.ts +186 -0
- package/src/chart-export-pdf.test.ts +91 -0
- package/src/chart-export-pdf.ts +207 -0
- package/src/chart-export.test.ts +14 -0
- package/src/chart-export.ts +13 -3
- package/src/chart-financial.ts +208 -0
- package/src/chart-flow.ts +286 -0
- package/src/chart-format.ts +67 -0
- package/src/chart-grid.ts +179 -0
- package/src/chart-hierarchy.ts +135 -0
- package/src/chart-indicators.test.ts +443 -0
- package/src/chart-indicators.ts +384 -0
- package/src/chart-messages.test.ts +21 -0
- package/src/chart-messages.ts +184 -0
- package/src/chart-motion.test.ts +71 -0
- package/src/chart-motion.ts +148 -0
- package/src/chart-panel-messages.test.ts +29 -0
- package/src/chart-panel-messages.ts +550 -0
- package/src/chart-pivot.test.ts +54 -0
- package/src/chart-pivot.ts +225 -0
- package/src/chart-polar.ts +674 -0
- package/src/chart-samples.ts +106 -0
- package/src/chart-scale.ts +394 -0
- package/src/chart-series-types.test.ts +714 -0
- package/src/chart-stats.ts +409 -0
- package/src/chart-stream.test.ts +75 -0
- package/src/chart-stream.ts +114 -0
- package/src/chart-summary.test.ts +90 -0
- package/src/chart-summary.ts +197 -0
- package/src/chart-sync.svelte.ts +41 -0
- package/src/chart-table.test.ts +76 -0
- package/src/chart-table.ts +178 -0
- package/src/chart-trend.ts +47 -0
- package/src/chart-types.ts +1309 -0
- package/src/chart-validate.test.ts +100 -0
- package/src/chart-validate.ts +247 -0
- package/src/chart-zoom.test.ts +137 -0
- package/src/chart-zoom.ts +124 -0
- package/src/chart.coverage.test.ts +81 -0
- package/src/chart.test.ts +56 -3
- package/src/chart.ts +557 -2784
- package/src/clipboard.test.ts +151 -0
- package/src/clipboard.ts +145 -16
- package/src/column-resize.ts +7 -1
- package/src/columns.ts +2 -0
- package/src/command-context.test.ts +200 -0
- package/src/command-context.ts +137 -0
- package/src/core.ts +7 -0
- package/src/editing.test.ts +281 -3
- package/src/editing.ts +256 -38
- package/src/fill-patterns.test.ts +35 -0
- package/src/fill-patterns.ts +56 -2
- package/src/grid-messages.ts +16 -3
- package/src/history.test.ts +196 -0
- package/src/history.ts +162 -0
- package/src/icon-seam.test.ts +3 -2
- package/src/index.ts +150 -2
- package/src/keyboard-handlers.coverage.test.ts +126 -6
- package/src/keyboard-handlers.ts +91 -30
- package/src/keyboard-shortcuts.seam.test.ts +200 -0
- package/src/keyboard.test.ts +124 -1
- package/src/keyboard.ts +142 -0
- package/src/menus.test.ts +26 -0
- package/src/menus.ts +10 -3
- package/src/merges.test.ts +112 -0
- package/src/merges.ts +168 -0
- package/src/pivot.grid.test.ts +40 -5
- package/src/row-resize.test.ts +44 -0
- package/src/row-resize.ts +17 -0
- package/src/scroll-sync.test.ts +42 -1
- package/src/scroll-sync.ts +25 -0
- package/src/selection.multi-range.test.ts +34 -0
- package/src/selection.test.ts +30 -2
- package/src/selection.ts +111 -19
- package/src/shortcut-registry.test.ts +97 -0
- package/src/shortcut-registry.ts +181 -0
- package/src/svgrid-wrapper.types.ts +184 -13
- package/src/svgrid.behavior.test.ts +135 -0
- package/src/svgrid.charting.test.ts +513 -3
- package/src/svgrid.context-menu.test.ts +31 -0
- package/src/svgrid.new-features.wrapper.test.ts +10 -3
- package/src/virtualization/virtualizer.ts +39 -17
- package/dist/cdn/GridMenus-CHOMnW-c.js +0 -602
- package/dist/cdn/GridMenus-DhdPF700.js +0 -603
- package/dist/cdn/SvDateTimePicker-CCbDZNZB.js +0 -816
- package/dist/cdn/SvGridChart-1PMSp2LZ.js +0 -1481
- package/dist/cdn/SvGridChart-D02avhyr.js +0 -1480
- package/dist/cdn/SvGridChartPanel-DJnViOv4.js +0 -834
- package/dist/cdn/SvGridChartPanel-vPTNerFZ.js +0 -810
- package/dist/cdn/SvGridChartView-C--HhdUo.js +0 -56
- package/dist/cdn/SvGridChartView-KyyFG-wY.js +0 -55
- package/dist/cdn/chart-DLg3_zTQ.js +0 -1652
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as e, F as t, G as n, H as r, I as i, L as a, N as o, Q as s, U as c, V as l, X as u, Y as d, at as f, b as p, d as m, et as h, f as g, g as _, h as v, it as y, j as
|
|
1
|
+
import { E as e, F as t, G as n, H as r, I as i, L as a, N as o, Q as s, U as c, V as l, X as u, Y as d, at as f, b as p, d as m, et as h, f as g, g as _, h as v, it as y, j as b, k as x, lt as ee, m as S, mt as C, nt as w, pt as T, r as te, st as E, t as D, tt as O, u as k, ut as ne, v as A, w as j, y as re } from "./disclose-version-Dr7rEVv-.js";
|
|
2
2
|
import { A as ie, O as ae, S as oe, T as se, b as ce, n as le, o as ue, p as de, r as fe, v as M, x as N } from "./editor-registry-BhgE3S84.js";
|
|
3
3
|
//#region src/SvGridCellEditor.svelte
|
|
4
|
-
var P = a("<span class=\"sv-grid-chip sv-grid-chip-removable\"> <button type=\"button\" class=\"sv-grid-chip-remove\">×</button></span>"), F = a("<button type=\"button\" class=\"sv-grid-chip-commit\" aria-label=\"Commit chip selection\">Done</button>"), I = a("<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>"), L = a("<input type=\"checkbox\" class=\"sv-grid-fr-editor sv-grid-fr-checkbox\"/>"), R = a("<option> </option>"), z = a("<select class=\"sv-grid-cell-editor sv-grid-fr-editor\"></select>"), B = a("<input class=\"sv-grid-cell-editor sv-grid-fr-editor\"/>"), pe = a("<button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Edit checkbox value\"></button>"), me = a("<button type=\"button\" role=\"radio\">★</button>"), he = a("<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>"), ge = a("<textarea class=\"sv-grid-cell-editor sv-grid-cell-editor-textarea\" rows=\"4\"></textarea>"), _e = a("<button type=\"button\" class=\"sv-grid-autocomplete-option\" role=\"option\"> </button>"), ve = a("<div class=\"sv-grid-autocomplete-list\" role=\"listbox\"></div>"), ye = a("<div class=\"sv-grid-autocomplete\"><input class=\"sv-grid-cell-editor sv-grid-cell-editor-autocomplete\" type=\"text\"/> <!></div>"), be = a("<input type=\"color\"/>"), xe = a("<input/>");
|
|
4
|
+
var P = a("<span class=\"sv-grid-chip sv-grid-chip-removable\"> <button type=\"button\" class=\"sv-grid-chip-remove\">×</button></span>"), F = a("<button type=\"button\" class=\"sv-grid-chip-commit\" aria-label=\"Commit chip selection\">Done</button>"), I = a("<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>"), L = a("<input type=\"checkbox\" class=\"sv-grid-fr-editor sv-grid-fr-checkbox\"/>"), R = a("<option> </option>"), z = a("<select class=\"sv-grid-cell-editor sv-grid-fr-editor\"></select>"), B = a("<input class=\"sv-grid-cell-editor sv-grid-fr-editor\"/>"), pe = a("<button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Edit checkbox value\"></button>"), me = a("<button type=\"button\" role=\"radio\">★</button>"), he = a("<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>"), ge = a("<textarea class=\"sv-grid-cell-editor sv-grid-cell-editor-textarea\" rows=\"4\"></textarea>"), _e = a("<button type=\"button\" class=\"sv-grid-autocomplete-option\" role=\"option\"> </button>"), ve = a("<div class=\"sv-grid-autocomplete-list\" role=\"listbox\"></div>"), ye = a("<div class=\"sv-grid-autocomplete\"><input class=\"sv-grid-cell-editor sv-grid-cell-editor-autocomplete\" type=\"text\"/> <!></div>"), be = a("<input type=\"color\"/>"), xe = a("<textarea class=\"sv-grid-cell-editor sv-grid-cell-editor-text sv-grid-cell-editor-multiline\"></textarea>"), Se = a("<input/>");
|
|
5
5
|
function V(a, l) {
|
|
6
6
|
ne(l, !0);
|
|
7
7
|
let V = (a, s = C, l = C, u = C, f = C) => {
|
|
@@ -32,7 +32,7 @@ function V(a, l) {
|
|
|
32
32
|
value: e
|
|
33
33
|
} : H().editingCell;
|
|
34
34
|
},
|
|
35
|
-
onCommit: () => n(
|
|
35
|
+
onCommit: () => n(J)(),
|
|
36
36
|
onCancel: () => {
|
|
37
37
|
H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
|
|
38
38
|
}
|
|
@@ -41,7 +41,7 @@ function V(a, l) {
|
|
|
41
41
|
}
|
|
42
42
|
t(e, r);
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
x(a, (e) => {
|
|
45
45
|
n(U) && e(o);
|
|
46
46
|
}), t(e, r);
|
|
47
47
|
}, y = (i) => {
|
|
@@ -61,12 +61,12 @@ function V(a, l) {
|
|
|
61
61
|
}), t(e, s);
|
|
62
62
|
});
|
|
63
63
|
var g = w(f, 2);
|
|
64
|
-
p(g, (e) => n(
|
|
64
|
+
p(g, (e) => n(Z)?.(e));
|
|
65
65
|
var _ = w(g, 2), v = (e) => {
|
|
66
66
|
var i = F();
|
|
67
|
-
r("mousedown", i, (e) => e.preventDefault()), r("click", i, () => n(
|
|
67
|
+
r("mousedown", i, (e) => e.preventDefault()), r("click", i, () => n(J)()), t(e, i);
|
|
68
68
|
};
|
|
69
|
-
|
|
69
|
+
x(_, (e) => {
|
|
70
70
|
l() && e(v);
|
|
71
71
|
}), T(s), T(a), d(() => m(g, "placeholder", l() ? "Type, Enter to add" : "Type a value")), r("keydown", g, (e) => {
|
|
72
72
|
if (e.key === "Enter" || l() && e.key === ",") {
|
|
@@ -77,9 +77,9 @@ function V(a, l) {
|
|
|
77
77
|
H().editingCell = H().editingCell ? {
|
|
78
78
|
...H().editingCell,
|
|
79
79
|
value: l() ? e : r
|
|
80
|
-
} : H().editingCell, t.value = "", l() || n(
|
|
80
|
+
} : H().editingCell, t.value = "", l() || n(J)();
|
|
81
81
|
}
|
|
82
|
-
} else if (e.key === "Escape") n(
|
|
82
|
+
} else if (e.key === "Escape") n(X)(e);
|
|
83
83
|
else if (e.key === "Backspace" && e.currentTarget.value === "" && u().length > 0) {
|
|
84
84
|
e.preventDefault();
|
|
85
85
|
let t = u().slice(0, -1);
|
|
@@ -88,44 +88,44 @@ function V(a, l) {
|
|
|
88
88
|
value: l() ? t : t[0] ?? null
|
|
89
89
|
} : H().editingCell;
|
|
90
90
|
}
|
|
91
|
-
}), c("blur", g, () => n(
|
|
91
|
+
}), c("blur", g, () => n(J)()), t(i, a);
|
|
92
92
|
};
|
|
93
|
-
|
|
93
|
+
x(_, (e) => {
|
|
94
94
|
s().length > 0 ? e(v) : e(y, -1);
|
|
95
95
|
}), t(a, g);
|
|
96
|
-
}, H = D(l, "ctrl", 7),
|
|
96
|
+
}, H = D(l, "ctrl", 7), Ce = D(l, "fullRow", 3, !1), U = f(null), W = f(null);
|
|
97
97
|
u(() => {
|
|
98
98
|
let e = H().editingCell?.editorType;
|
|
99
|
-
(e === "list" || e === "chips" || e === "select" || e === "rich-select") && !n(U) && import("./SvGridDropdown-D13MtJ2j.js").then((e) => e.n).then((e) => y(U, e.default, !0)), (e === "date" || e === "datetime" || e === "time") && !n(W) && import("./SvDateTimePicker-
|
|
99
|
+
(e === "list" || e === "chips" || e === "select" || e === "rich-select") && !n(U) && import("./SvGridDropdown-D13MtJ2j.js").then((e) => e.n).then((e) => y(U, e.default, !0)), (e === "date" || e === "datetime" || e === "time") && !n(W) && import("./SvDateTimePicker-DQwt4UAs.js").then((e) => e.n).then((e) => y(W, e.default, !0));
|
|
100
100
|
});
|
|
101
|
-
let
|
|
102
|
-
function
|
|
101
|
+
let we = E(() => H().grid), G = E(() => H().fullRowEdit), K = E(() => H().getColumnEditorOptions), q = E(() => H().areEditorOptionsLoading), J = E(() => H().saveEditingCell), Y = E(() => H().updateEditingCellValue), X = E(() => H().onEditorKeyDown), Z = E(() => H().focusOnMount), Te = E(() => H().toggleCheckboxWithKeyboard);
|
|
102
|
+
function Ee(e, t = !0) {
|
|
103
103
|
t && e.focus({ preventScroll: !0 });
|
|
104
104
|
}
|
|
105
105
|
function Q(e) {
|
|
106
106
|
e.key === "Enter" ? (e.preventDefault(), H().commitFullRowEdit(), H().gridRootEl?.focus({ preventScroll: !0 })) : e.key === "Escape" && (e.preventDefault(), H().cancelFullRowEdit(), H().gridRootEl?.focus({ preventScroll: !0 }));
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function De(e) {
|
|
109
109
|
return typeof e == "object" && e && "value" in e ? String(e.value) : String(e);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Oe(e) {
|
|
112
112
|
return typeof e == "object" && e && "label" in e ? String(e.label) : String(e);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function ke() {
|
|
115
115
|
let e = H().editingCell;
|
|
116
116
|
return {
|
|
117
117
|
value: e?.value,
|
|
118
118
|
rowId: e?.rowId ?? "",
|
|
119
119
|
columnId: e?.columnId ?? "",
|
|
120
|
-
onChange: (e) => n(
|
|
120
|
+
onChange: (e) => n(Y)(e),
|
|
121
121
|
onCommit: (e) => {
|
|
122
|
-
e !== void 0 && n(
|
|
122
|
+
e !== void 0 && n(Y)(e), n(J)();
|
|
123
123
|
},
|
|
124
124
|
onCancel: () => {
|
|
125
125
|
H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
|
|
126
126
|
},
|
|
127
127
|
onCommitAndMove: (e, t) => {
|
|
128
|
-
e !== void 0 && n(
|
|
128
|
+
e !== void 0 && n(Y)(e), H().commitAndMoveByTab(t === -1);
|
|
129
129
|
},
|
|
130
130
|
onRequestClose: () => {
|
|
131
131
|
H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
|
|
@@ -133,37 +133,37 @@ function V(a, l) {
|
|
|
133
133
|
inCell: !0
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
var $ = i(),
|
|
137
|
-
let s = E(() => l.column.columnDef.editorType ?? "text"), c = E(() => n(
|
|
136
|
+
var $ = i(), Ae = O($), je = (a) => {
|
|
137
|
+
let s = E(() => l.column.columnDef.editorType ?? "text"), c = E(() => n(G)?.draft[l.column.id]);
|
|
138
138
|
var u = i(), f = O(u), p = (e) => {
|
|
139
139
|
var i = L();
|
|
140
140
|
k(i), d((e) => g(i, e), [() => !!n(c)]), r("change", i, (e) => H().setFullRowDraft(l.column.id, e.currentTarget.checked)), r("keydown", i, Q), r("pointerdown", i, (e) => e.stopPropagation()), r("click", i, (e) => e.stopPropagation()), t(e, i);
|
|
141
141
|
}, y = (i) => {
|
|
142
|
-
let a = E(() => n(
|
|
142
|
+
let a = E(() => n(K)(l.column, l.row));
|
|
143
143
|
var s = z();
|
|
144
|
-
e(s, 21, () => n(a), (e) =>
|
|
144
|
+
e(s, 21, () => n(a), (e) => De(e), (e, r) => {
|
|
145
145
|
var i = R(), a = h(i, !0);
|
|
146
146
|
T(i);
|
|
147
147
|
var s = {};
|
|
148
148
|
d((e, t) => {
|
|
149
149
|
o(a, e), s !== (s = t) && (i.value = (i.__value = t) ?? "");
|
|
150
|
-
}, [() =>
|
|
150
|
+
}, [() => Oe(n(r)), () => De(n(r))]), t(e, i);
|
|
151
151
|
}), T(s);
|
|
152
152
|
var u;
|
|
153
153
|
v(s), d((e) => {
|
|
154
154
|
u !== (u = e) && (s.value = (s.__value = e) ?? "", _(s, e));
|
|
155
155
|
}, [() => String(n(c) ?? "")]), r("change", s, (e) => H().setFullRowDraft(l.column.id, e.currentTarget.value)), r("keydown", s, Q), r("pointerdown", s, (e) => e.stopPropagation()), r("click", s, (e) => e.stopPropagation()), t(i, s);
|
|
156
|
-
},
|
|
156
|
+
}, b = (e) => {
|
|
157
157
|
let i = E(() => n(s) === "number" ? "number" : n(s) === "date" ? "date" : n(s) === "datetime" ? "datetime-local" : n(s) === "time" ? "time" : n(s) === "password" ? "password" : "text");
|
|
158
158
|
var a = B();
|
|
159
159
|
k(a), d((e) => {
|
|
160
160
|
m(a, "type", n(i)), S(a, e);
|
|
161
161
|
}, [() => String(n(c) ?? "")]), r("input", a, (e) => H().setFullRowDraft(l.column.id, e.currentTarget.value)), r("keydown", a, Q), r("pointerdown", a, (e) => e.stopPropagation()), r("click", a, (e) => e.stopPropagation()), t(e, a);
|
|
162
162
|
};
|
|
163
|
-
|
|
164
|
-
n(s) === "checkbox" ? e(p) : n(s) === "list" || n(s) === "select" || n(s) === "rich-select" ? e(y, 1) : e(
|
|
163
|
+
x(f, (e) => {
|
|
164
|
+
n(s) === "checkbox" ? e(p) : n(s) === "list" || n(s) === "select" || n(s) === "rich-select" ? e(y, 1) : e(b, -1);
|
|
165
165
|
}), t(a, u);
|
|
166
|
-
},
|
|
166
|
+
}, Me = (a) => {
|
|
167
167
|
var u = i(), f = O(u), g = (e) => {
|
|
168
168
|
let r = E(() => l.column.columnDef.cellEditor);
|
|
169
169
|
var a = i(), o = O(a);
|
|
@@ -172,7 +172,7 @@ function V(a, l) {
|
|
|
172
172
|
cell: l.row.getAllCells().find((e) => e.column.id === l.column.id),
|
|
173
173
|
row: l.row,
|
|
174
174
|
column: l.column,
|
|
175
|
-
table: n(
|
|
175
|
+
table: n(we),
|
|
176
176
|
getValue: () => H().editingCell?.value,
|
|
177
177
|
value: H().editingCell?.value,
|
|
178
178
|
update: (e) => {
|
|
@@ -185,24 +185,24 @@ function V(a, l) {
|
|
|
185
185
|
e !== void 0 && (H().editingCell = H().editingCell ? {
|
|
186
186
|
...H().editingCell,
|
|
187
187
|
value: e
|
|
188
|
-
} : H().editingCell), n(
|
|
188
|
+
} : H().editingCell), n(J)();
|
|
189
189
|
},
|
|
190
190
|
cancel: () => {
|
|
191
191
|
H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
|
|
192
192
|
}
|
|
193
193
|
}));
|
|
194
|
-
|
|
194
|
+
b(o, () => n(r), () => n(e));
|
|
195
195
|
}
|
|
196
196
|
t(e, a);
|
|
197
197
|
}, _ = (e) => {
|
|
198
198
|
var i = pe();
|
|
199
|
-
p(i, (e) =>
|
|
199
|
+
p(i, (e) => Ee?.(e)), d((e) => m(i, "aria-checked", e), [() => !!H().editingCell.value]), r("click", i, (e) => {
|
|
200
200
|
e.stopPropagation();
|
|
201
201
|
let t = !H().editingCell?.value;
|
|
202
202
|
H().editingCell = H().editingCell ? {
|
|
203
203
|
...H().editingCell,
|
|
204
204
|
value: t
|
|
205
|
-
} : H().editingCell, n(
|
|
205
|
+
} : H().editingCell, n(J)();
|
|
206
206
|
}), r("keydown", i, (e) => {
|
|
207
207
|
if (e.key === "Enter" || e.key === " ") {
|
|
208
208
|
n(Te)(e, () => {
|
|
@@ -211,14 +211,14 @@ function V(a, l) {
|
|
|
211
211
|
H().editingCell = H().editingCell ? {
|
|
212
212
|
...H().editingCell,
|
|
213
213
|
value: t
|
|
214
|
-
} : H().editingCell, n(
|
|
214
|
+
} : H().editingCell, n(J)();
|
|
215
215
|
});
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
|
-
n(
|
|
219
|
-
}), c("blur", i, () => n(
|
|
218
|
+
n(X)(e);
|
|
219
|
+
}), c("blur", i, () => n(J)()), t(e, i);
|
|
220
220
|
}, v = (e) => {
|
|
221
|
-
let r = E(() => n(
|
|
221
|
+
let r = E(() => n(K)(l.column, l.row)), a = E(() => n(q)(l.column, l.row)), o = E(() => l.column.columnDef.editorMultiple === !0);
|
|
222
222
|
var s = i(), c = O(s), u = (e) => {
|
|
223
223
|
var s = i(), c = O(s);
|
|
224
224
|
{
|
|
@@ -244,7 +244,7 @@ function V(a, l) {
|
|
|
244
244
|
value: e
|
|
245
245
|
} : H().editingCell;
|
|
246
246
|
},
|
|
247
|
-
onCommit: () => n(
|
|
247
|
+
onCommit: () => n(J)(),
|
|
248
248
|
onCancel: () => {
|
|
249
249
|
H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
|
|
250
250
|
}
|
|
@@ -253,13 +253,13 @@ function V(a, l) {
|
|
|
253
253
|
}
|
|
254
254
|
t(e, s);
|
|
255
255
|
};
|
|
256
|
-
|
|
256
|
+
x(c, (e) => {
|
|
257
257
|
n(U) && e(u);
|
|
258
258
|
}), t(e, s);
|
|
259
259
|
}, y = (e) => {
|
|
260
|
-
let t = E(() => n(
|
|
260
|
+
let t = E(() => n(K)(l.column, l.row)), r = E(() => n(q)(l.column, l.row)), i = E(() => l.column.columnDef.editorMultiple === !0), a = E(() => ie(H().editingCell?.value));
|
|
261
261
|
V(e, () => n(t), () => n(i), () => n(a), () => n(r));
|
|
262
|
-
},
|
|
262
|
+
}, ee = (i) => {
|
|
263
263
|
let a = E(() => Math.max(0, Math.min(5, Math.round(Number(H().editingCell?.value) || 0)))), o = E(() => Math.min(5, Math.max(1, n(a))));
|
|
264
264
|
var s = he(), c = h(s);
|
|
265
265
|
e(c, 16, () => [
|
|
@@ -270,17 +270,17 @@ function V(a, l) {
|
|
|
270
270
|
5
|
|
271
271
|
], (e) => e, (e, i) => {
|
|
272
272
|
var s = me();
|
|
273
|
-
p(s, (e, t) =>
|
|
273
|
+
p(s, (e, t) => Ee?.(e, t), () => i === n(o)), d(() => {
|
|
274
274
|
m(s, "aria-checked", n(a) >= i), m(s, "aria-label", `${i} ${i === 1 ? "star" : "stars"}`), A(s, 1, `sv-grid-rating-star ${n(a) >= i ? "sv-grid-rating-star-on" : ""}`);
|
|
275
275
|
}), r("mousedown", s, (e) => e.preventDefault()), r("click", s, (e) => {
|
|
276
276
|
e.stopPropagation(), H().editingCell = H().editingCell ? {
|
|
277
277
|
...H().editingCell,
|
|
278
278
|
value: i
|
|
279
|
-
} : H().editingCell, n(
|
|
279
|
+
} : H().editingCell, n(J)();
|
|
280
280
|
}), r("keydown", s, (e) => {
|
|
281
281
|
let t = e.key;
|
|
282
282
|
if (t !== "ArrowLeft" && t !== "ArrowRight" && t !== "Home" && t !== "End") {
|
|
283
|
-
n(
|
|
283
|
+
n(X)(e);
|
|
284
284
|
return;
|
|
285
285
|
}
|
|
286
286
|
e.preventDefault(), e.stopPropagation();
|
|
@@ -296,10 +296,10 @@ function V(a, l) {
|
|
|
296
296
|
e.stopPropagation(), H().editingCell = H().editingCell ? {
|
|
297
297
|
...H().editingCell,
|
|
298
298
|
value: 0
|
|
299
|
-
} : H().editingCell, n(
|
|
299
|
+
} : H().editingCell, n(J)();
|
|
300
300
|
}), t(i, s);
|
|
301
301
|
}, C = (e) => {
|
|
302
|
-
let r = E(() => n(
|
|
302
|
+
let r = E(() => n(K)(l.column, l.row)), a = E(() => n(q)(l.column, l.row));
|
|
303
303
|
var o = i(), s = O(o), c = (e) => {
|
|
304
304
|
var o = i(), s = O(o);
|
|
305
305
|
{
|
|
@@ -323,7 +323,7 @@ function V(a, l) {
|
|
|
323
323
|
value: e
|
|
324
324
|
} : H().editingCell;
|
|
325
325
|
},
|
|
326
|
-
onCommit: () => n(
|
|
326
|
+
onCommit: () => n(J)(),
|
|
327
327
|
onCancel: () => {
|
|
328
328
|
H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
|
|
329
329
|
}
|
|
@@ -332,11 +332,11 @@ function V(a, l) {
|
|
|
332
332
|
}
|
|
333
333
|
t(e, o);
|
|
334
334
|
};
|
|
335
|
-
|
|
335
|
+
x(s, (e) => {
|
|
336
336
|
n(U) && e(c);
|
|
337
337
|
}), t(e, o);
|
|
338
338
|
}, D = (e) => {
|
|
339
|
-
let r = E(() => n(
|
|
339
|
+
let r = E(() => n(K)(l.column, l.row)), a = E(() => n(q)(l.column, l.row));
|
|
340
340
|
var o = i(), s = O(o), c = (e) => {
|
|
341
341
|
var o = i(), s = O(o);
|
|
342
342
|
{
|
|
@@ -361,7 +361,7 @@ function V(a, l) {
|
|
|
361
361
|
value: e
|
|
362
362
|
} : H().editingCell;
|
|
363
363
|
},
|
|
364
|
-
onCommit: () => n(
|
|
364
|
+
onCommit: () => n(J)(),
|
|
365
365
|
onCancel: () => {
|
|
366
366
|
H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
|
|
367
367
|
}
|
|
@@ -370,12 +370,12 @@ function V(a, l) {
|
|
|
370
370
|
}
|
|
371
371
|
t(e, o);
|
|
372
372
|
};
|
|
373
|
-
|
|
373
|
+
x(s, (e) => {
|
|
374
374
|
n(U) && e(c);
|
|
375
375
|
}), t(e, o);
|
|
376
376
|
}, ne = (e) => {
|
|
377
377
|
var i = ge();
|
|
378
|
-
s(i), p(i, (e) => n(
|
|
378
|
+
s(i), p(i, (e) => n(Z)?.(e)), d((e) => S(i, e), [() => String(H().editingCell?.value ?? "")]), r("pointerdown", i, (e) => e.stopPropagation()), r("input", i, (e) => n(Y)(e.currentTarget.value)), r("keydown", i, (e) => {
|
|
379
379
|
if (e.stopPropagation(), e.key === "Escape") {
|
|
380
380
|
e.preventDefault(), H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
|
|
381
381
|
return;
|
|
@@ -384,12 +384,12 @@ function V(a, l) {
|
|
|
384
384
|
e.preventDefault(), H().commitAndMoveByTab(e.shiftKey);
|
|
385
385
|
return;
|
|
386
386
|
}
|
|
387
|
-
e.key === "Enter" && (e.ctrlKey || e.metaKey) && (e.preventDefault(), n(
|
|
388
|
-
}), c("blur", i, () => n(
|
|
387
|
+
e.key === "Enter" && (e.ctrlKey || e.metaKey) && (e.preventDefault(), n(J)(), H().gridRootEl?.focus({ preventScroll: !0 }));
|
|
388
|
+
}), c("blur", i, () => n(J)()), t(e, i);
|
|
389
389
|
}, P = (i) => {
|
|
390
|
-
let a = E(() => n(
|
|
390
|
+
let a = E(() => n(K)(l.column, l.row)), s = E(() => String(H().editingCell?.value ?? "")), u = E(() => n(s).trim() ? n(a).filter((e) => String(e.label).toLowerCase().includes(n(s).toLowerCase())) : n(a));
|
|
391
391
|
var f = ye(), g = h(f);
|
|
392
|
-
k(g), p(g, (e) => n(
|
|
392
|
+
k(g), p(g, (e) => n(Z)?.(e));
|
|
393
393
|
var _ = w(g, 2), v = (i) => {
|
|
394
394
|
var a = ve();
|
|
395
395
|
e(a, 21, () => n(u).slice(0, 50), (e) => e.value, (e, i) => {
|
|
@@ -400,14 +400,14 @@ function V(a, l) {
|
|
|
400
400
|
e.preventDefault(), H().editingCell = H().editingCell ? {
|
|
401
401
|
...H().editingCell,
|
|
402
402
|
value: n(i).value
|
|
403
|
-
} : H().editingCell, n(
|
|
403
|
+
} : H().editingCell, n(J)();
|
|
404
404
|
}), t(e, a);
|
|
405
405
|
}), T(a), t(i, a);
|
|
406
406
|
};
|
|
407
|
-
|
|
407
|
+
x(_, (e) => {
|
|
408
408
|
n(u).length > 0 && e(v);
|
|
409
|
-
}), T(f), d(() => S(g, n(s))), r("pointerdown", g, (e) => e.stopPropagation()), r("input", g, (e) => n(
|
|
410
|
-
n(
|
|
409
|
+
}), T(f), d(() => S(g, n(s))), r("pointerdown", g, (e) => e.stopPropagation()), r("input", g, (e) => n(Y)(e.currentTarget.value)), c("blur", g, () => n(J)()), r("keydown", g, function(...e) {
|
|
410
|
+
n(X)?.apply(this, e);
|
|
411
411
|
}), t(i, f);
|
|
412
412
|
}, F = (e) => {
|
|
413
413
|
var r = i(), a = O(r), o = (e) => {
|
|
@@ -423,8 +423,8 @@ function V(a, l) {
|
|
|
423
423
|
dropDownDisplayMode: "calendar",
|
|
424
424
|
autoOpen: !0,
|
|
425
425
|
block: !0,
|
|
426
|
-
onChange: (e) => n(
|
|
427
|
-
onCommit: () => n(
|
|
426
|
+
onChange: (e) => n(Y)(e),
|
|
427
|
+
onCommit: () => n(J)(),
|
|
428
428
|
onCancel: () => {
|
|
429
429
|
H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
|
|
430
430
|
}
|
|
@@ -433,7 +433,7 @@ function V(a, l) {
|
|
|
433
433
|
}
|
|
434
434
|
t(e, r);
|
|
435
435
|
};
|
|
436
|
-
|
|
436
|
+
x(a, (e) => {
|
|
437
437
|
n(W) && e(o);
|
|
438
438
|
}), t(e, r);
|
|
439
439
|
}, I = (e) => {
|
|
@@ -450,8 +450,8 @@ function V(a, l) {
|
|
|
450
450
|
dropDownDisplayMode: "both",
|
|
451
451
|
autoOpen: !0,
|
|
452
452
|
block: !0,
|
|
453
|
-
onChange: (e) => n(
|
|
454
|
-
onCommit: () => n(
|
|
453
|
+
onChange: (e) => n(Y)(e),
|
|
454
|
+
onCommit: () => n(J)(),
|
|
455
455
|
onCancel: () => {
|
|
456
456
|
H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
|
|
457
457
|
}
|
|
@@ -460,7 +460,7 @@ function V(a, l) {
|
|
|
460
460
|
}
|
|
461
461
|
t(e, r);
|
|
462
462
|
};
|
|
463
|
-
|
|
463
|
+
x(a, (e) => {
|
|
464
464
|
n(W) && e(o);
|
|
465
465
|
}), t(e, r);
|
|
466
466
|
}, L = (e) => {
|
|
@@ -477,8 +477,8 @@ function V(a, l) {
|
|
|
477
477
|
dropDownDisplayMode: "time",
|
|
478
478
|
autoOpen: !0,
|
|
479
479
|
block: !0,
|
|
480
|
-
onChange: (e) => n(
|
|
481
|
-
onCommit: () => n(
|
|
480
|
+
onChange: (e) => n(Y)(de(e)),
|
|
481
|
+
onCommit: () => n(J)(),
|
|
482
482
|
onCancel: () => {
|
|
483
483
|
H().editingCell = null, H().gridRootEl?.focus({ preventScroll: !0 });
|
|
484
484
|
}
|
|
@@ -487,32 +487,42 @@ function V(a, l) {
|
|
|
487
487
|
}
|
|
488
488
|
t(e, r);
|
|
489
489
|
};
|
|
490
|
-
|
|
490
|
+
x(a, (e) => {
|
|
491
491
|
n(W) && e(o);
|
|
492
492
|
}), t(e, r);
|
|
493
493
|
}, R = (e) => {
|
|
494
494
|
var i = be();
|
|
495
|
-
k(i), p(i, (e) => n(
|
|
495
|
+
k(i), p(i, (e) => n(Z)?.(e)), d((e, t) => {
|
|
496
496
|
A(i, 1, e), S(i, t);
|
|
497
|
-
}, [() => re(N("color")), () => ce("color", H().editingCell?.value)]), r("input", i, (e) => n(
|
|
498
|
-
n(
|
|
499
|
-
}), c("blur", i, () => n(
|
|
500
|
-
n(
|
|
497
|
+
}, [() => re(N("color")), () => ce("color", H().editingCell?.value)]), r("input", i, (e) => n(Y)(e.currentTarget.value)), r("change", i, (e) => {
|
|
498
|
+
n(Y)(e.currentTarget.value), n(J)();
|
|
499
|
+
}), c("blur", i, () => n(J)()), r("keydown", i, function(...e) {
|
|
500
|
+
n(X)?.apply(this, e);
|
|
501
501
|
}), t(e, i);
|
|
502
502
|
}, z = (e) => {
|
|
503
503
|
let r = E(() => le(String(H().editingCell?.editorType))), a = E(() => n(r).component);
|
|
504
504
|
var o = i(), s = O(o);
|
|
505
505
|
{
|
|
506
|
-
let e = E(() => ue(n(r),
|
|
506
|
+
let e = E(() => ue(n(r), ke()));
|
|
507
507
|
j(s, () => n(a), (t, r) => {
|
|
508
508
|
r(t, te(() => n(e)));
|
|
509
509
|
});
|
|
510
510
|
}
|
|
511
511
|
t(e, o);
|
|
512
|
-
}, B = E(() => fe(String(H().editingCell?.editorType ?? ""))),
|
|
512
|
+
}, B = E(() => fe(String(H().editingCell?.editorType ?? ""))), Ce = (e) => {
|
|
513
|
+
var i = xe();
|
|
514
|
+
s(i), p(i, (e) => n(Z)?.(e)), d((e, t) => {
|
|
515
|
+
m(i, "rows", e), S(i, t);
|
|
516
|
+
}, [() => Math.max(1, String(H().editingCell?.value ?? "").split("\n").length), () => String(H().editingCell?.value ?? "")]), r("input", i, (e) => {
|
|
517
|
+
let t = e.currentTarget;
|
|
518
|
+
t.rows = Math.max(1, t.value.split("\n").length), n(Y)(t.value);
|
|
519
|
+
}), c("blur", i, () => n(J)()), r("keydown", i, function(...e) {
|
|
520
|
+
n(X)?.apply(this, e);
|
|
521
|
+
}), t(e, i);
|
|
522
|
+
}, G = (e) => {
|
|
513
523
|
let i = E(() => H().editingCell?.editorType ?? "text"), a = E(() => M(n(i)) === "text" && oe(n(i)) === "number");
|
|
514
|
-
var o =
|
|
515
|
-
k(o), p(o, (e) => n(
|
|
524
|
+
var o = Se();
|
|
525
|
+
k(o), p(o, (e) => n(Z)?.(e)), d((e, t, r) => {
|
|
516
526
|
A(o, 1, e), m(o, "type", t), m(o, "inputmode", n(a) ? "decimal" : void 0), S(o, r);
|
|
517
527
|
}, [
|
|
518
528
|
() => re(N(n(i))),
|
|
@@ -524,18 +534,18 @@ function V(a, l) {
|
|
|
524
534
|
t.value = String(H().editingCell?.value ?? "");
|
|
525
535
|
return;
|
|
526
536
|
}
|
|
527
|
-
n(
|
|
528
|
-
}), c("blur", o, () => n(
|
|
529
|
-
n(
|
|
537
|
+
n(Y)(t.value);
|
|
538
|
+
}), c("blur", o, () => n(J)()), r("keydown", o, function(...e) {
|
|
539
|
+
n(X)?.apply(this, e);
|
|
530
540
|
}), t(e, o);
|
|
531
541
|
};
|
|
532
|
-
|
|
533
|
-
l.column.columnDef.cellEditor ? e(g) : H().editingCell?.editorType === "checkbox" ? e(_, 1) : H().editingCell?.editorType === "list" ? e(v, 2) : H().editingCell?.editorType === "chips" ? e(y, 3) : H().editingCell?.editorType === "rating" ? e(
|
|
542
|
+
x(f, (e) => {
|
|
543
|
+
l.column.columnDef.cellEditor ? e(g) : H().editingCell?.editorType === "checkbox" ? e(_, 1) : H().editingCell?.editorType === "list" ? e(v, 2) : H().editingCell?.editorType === "chips" ? e(y, 3) : H().editingCell?.editorType === "rating" ? e(ee, 4) : H().editingCell?.editorType === "select" ? e(C, 5) : H().editingCell?.editorType === "rich-select" ? e(D, 6) : H().editingCell?.editorType === "textarea" ? e(ne, 7) : H().editingCell?.editorType === "autocomplete" ? e(P, 8) : H().editingCell?.editorType === "date" ? e(F, 9) : H().editingCell?.editorType === "datetime" ? e(I, 10) : H().editingCell?.editorType === "time" ? e(L, 11) : H().editingCell?.editorType === "color" ? e(R, 12) : n(B) ? e(z, 13) : (H().editingCell?.editorType ?? "text") === "text" && l.column?.columnDef.editorMultiline ? e(Ce, 14) : e(G, -1);
|
|
534
544
|
}), t(a, u);
|
|
535
545
|
};
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
}), t(a, $),
|
|
546
|
+
x(Ae, (e) => {
|
|
547
|
+
Ce() ? e(je) : e(Me, -1);
|
|
548
|
+
}), t(a, $), ee();
|
|
539
549
|
}
|
|
540
550
|
l([
|
|
541
551
|
"mousedown",
|