@svgrid/grid 3.0.4 → 3.0.6
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 +32 -11
- package/dist/GridMenus.svelte +34 -4
- package/dist/SvGrid.controller.svelte.d.ts +33 -5
- package/dist/SvGrid.controller.svelte.js +397 -58
- package/dist/SvGrid.css +200 -2
- package/dist/SvGrid.svelte +350 -40
- package/dist/SvGrid.types.d.ts +433 -7
- package/dist/SvGridDropdown.svelte +20 -0
- package/dist/SvGridDropdown.svelte.d.ts +12 -0
- package/dist/SvModal.svelte +22 -0
- package/dist/SvModal.svelte.d.ts +7 -0
- package/dist/a11y/dismissable.d.ts +10 -0
- package/dist/a11y/dismissable.js +24 -2
- package/dist/build-api.js +92 -37
- package/dist/cdn/{GridMenus-BL7ZgQvU.js → GridMenus-C-NtjlrJ.js} +155 -146
- package/dist/cdn/GridMenus-TssHej3q.js +644 -0
- package/dist/cdn/{SvChartMenu-FBSMINA6.js → SvChartMenu-BFSTpvB-.js} +1 -1
- package/dist/cdn/{SvChartMenu-Bl6PBbkT.js → SvChartMenu-BZ1Iwv0y.js} +1 -1
- package/dist/cdn/{SvDateTimePicker-DQwt4UAs.js → SvDateTimePicker-D9u_cOf8.js} +1 -1
- package/dist/cdn/{SvDateTimePicker-vNU6bZ-q.js → SvDateTimePicker-s_6IUpI7.js} +1 -1
- package/dist/cdn/{SvGridCellEditor-B1p-vCK5.js → SvGridCellEditor-BlyCSp0q.js} +1 -1
- package/dist/cdn/{SvGridCellEditor-D_0q4xAu.js → SvGridCellEditor-ClRRA9lW.js} +1 -1
- package/dist/cdn/{SvGridChart-DzLkSwCH.js → SvGridChart-B4EV8U6t.js} +4 -4
- package/dist/cdn/{SvGridChart-C3EWAZaM.js → SvGridChart-DsmwTyZF.js} +4 -4
- package/dist/cdn/{SvGridChartBuilder-CfII62sZ.js → SvGridChartBuilder-cHloHobN.js} +4 -4
- package/dist/cdn/{SvGridChartBuilder-BE2T1ykB.js → SvGridChartBuilder-vOl7C0Za.js} +4 -4
- package/dist/cdn/{SvGridChartPanel-xf4sWVTo.js → SvGridChartPanel-AcqF-Ll5.js} +5 -5
- package/dist/cdn/{SvGridChartPanel-CCX5_Wgd.js → SvGridChartPanel-biMtSBPA.js} +5 -5
- package/dist/cdn/{SvGridChartView-DYwabQWj.js → SvGridChartView-Dx_GmZuL.js} +2 -2
- package/dist/cdn/{SvGridChartView-CfuXmY5I.js → SvGridChartView-I3rDHXAq.js} +2 -2
- package/dist/cdn/{SvGridDropdown-D0VdjeR8.js → SvGridDropdown-BWeM3lMe.js} +46 -46
- package/dist/cdn/{SvGridDropdown-D13MtJ2j.js → SvGridDropdown-CJ6QqTxu.js} +67 -67
- package/dist/cdn/{SvModal-CIZWCcad.js → SvModal-ClxGmpAc.js} +187 -186
- package/dist/cdn/{SvModal-BAE-pjZX.js → SvModal-DhB_VMFR.js} +148 -147
- package/dist/cdn/{cell-formatting-C2Hf5gqd.js → cell-formatting-DVVKOSI9.js} +1 -1
- package/dist/cdn/{chart-Dz7SqMXH.js → chart-DEZxwC0i.js} +1 -1
- package/dist/cdn/{chart-panel-messages-CUbf2R4i.js → chart-panel-messages-D12XcTZJ.js} +1 -1
- package/dist/cdn/{chart-panel-messages-CmNrMdsr.js → chart-panel-messages-DguS7gC5.js} +1 -1
- package/dist/cdn/{chart-summary-BJW_tg_X.js → chart-summary-CMAXBGY-.js} +1 -1
- package/dist/cdn/{chart-trend-CaN9mDEV.js → chart-trend-BkEp61Gj.js} +1 -1
- package/dist/cdn/{dismissable-DAHetSNk.js → dismissable-Brc4EZU1.js} +5 -1
- package/dist/cdn/{export-format-CUDLy2yn.js → export-format-YzdwBww2.js} +1 -1
- package/dist/cdn/{row-resize-niQCp040.js → row-resize-DtOS1KG6.js} +41 -32
- package/dist/cdn/server-block-cache-DIqb3VZn.js +241 -0
- package/dist/cdn/{src-V1uu8iE9.js → src-CgoeSM8k.js} +5339 -4753
- package/dist/cdn/{src-BKhZ6eXd.js → src-DfwxB1TH.js} +9817 -9231
- package/dist/cdn/svgrid.js +28 -27
- package/dist/cdn/svgrid.svelte-external.js +28 -27
- package/dist/cdn/validate-AZoD8BoR.js +80 -0
- package/dist/cell-formatting.js +18 -1
- package/dist/cell-render.js +25 -6
- package/dist/clipboard.d.ts +2 -2
- package/dist/clipboard.js +72 -23
- package/dist/columns.js +7 -2
- package/dist/conditional-formatting.d.ts +2 -0
- package/dist/conditional-formatting.js +2 -0
- package/dist/core.d.ts +22 -6
- package/dist/core.js +401 -38
- package/dist/editing.js +34 -0
- package/dist/gantt-view.svelte.d.ts +24 -0
- package/dist/gantt-view.svelte.js +13 -0
- package/dist/grid-icons.d.ts +2 -2
- package/dist/grid-icons.js +2 -2
- package/dist/grid-messages.d.ts +10 -0
- package/dist/grid-messages.js +9 -0
- package/dist/headless.d.ts +5 -0
- package/dist/headless.js +12 -0
- package/dist/history.d.ts +21 -0
- package/dist/history.js +34 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +3 -3
- package/dist/keyboard-handlers.js +24 -1
- package/dist/keyboard.js +4 -0
- package/dist/row-drag-touch.d.ts +1 -1
- package/dist/row-drag.js +35 -1
- package/dist/row-model.d.ts +139 -0
- package/dist/row-model.js +16 -0
- package/dist/row-resize.js +22 -1
- package/dist/selection.d.ts +2 -1
- package/dist/selection.js +31 -3
- package/dist/server-block-cache.d.ts +219 -0
- package/dist/server-block-cache.js +539 -0
- package/dist/server-data-source.d.ts +274 -8
- package/dist/server-data-source.js +229 -20
- package/dist/server.d.ts +13 -0
- package/dist/server.js +13 -0
- package/dist/sparkline.js +7 -5
- package/dist/svgrid-wrapper.types.d.ts +33 -0
- package/dist/validate.d.ts +4 -0
- package/dist/validate.js +29 -3
- package/package.json +11 -1
- package/src/GridMenus.svelte +34 -4
- package/src/SvGrid.controller.svelte.ts +397 -61
- package/src/SvGrid.css +200 -2
- package/src/SvGrid.svelte +350 -40
- package/src/SvGrid.types.ts +453 -7
- package/src/SvGridDropdown.svelte +20 -0
- package/src/SvModal.svelte +22 -0
- package/src/SvModal.test.ts +30 -1
- package/src/a11y/dismissable.test.ts +10 -1
- package/src/a11y/dismissable.ts +22 -2
- package/src/build-api.ts +96 -31
- package/src/cell-formatting.test.ts +17 -0
- package/src/cell-formatting.ts +18 -1
- package/src/cell-render.test.ts +24 -2
- package/src/cell-render.ts +24 -8
- package/src/clipboard.test.ts +107 -0
- package/src/clipboard.ts +62 -23
- package/src/columns.test.ts +4 -4
- package/src/columns.ts +7 -2
- package/src/conditional-formatting.test.ts +8 -0
- package/src/conditional-formatting.ts +3 -0
- package/src/core.rowmodel-cache.test.ts +51 -0
- package/src/core.tick-repair.test.ts +287 -0
- package/src/core.ts +407 -38
- package/src/editing.test.ts +52 -0
- package/src/editing.ts +33 -0
- package/src/gantt-stub.test.svelte +38 -0
- package/src/gantt-view.svelte.ts +35 -0
- package/src/grid-icons.ts +2 -2
- package/src/grid-messages.test.ts +7 -0
- package/src/grid-messages.ts +22 -0
- package/src/headless.ts +24 -0
- package/src/history.test.ts +49 -1
- package/src/history.ts +48 -2
- package/src/icon-seam.test.ts +2 -4
- package/src/index.ts +38 -10
- package/src/keyboard-handlers.coverage.test.ts +65 -0
- package/src/keyboard-handlers.ts +26 -1
- package/src/keyboard.ts +3 -0
- package/src/row-drag-touch.ts +2 -2
- package/src/row-drag.test.ts +51 -0
- package/src/row-drag.ts +35 -2
- package/src/row-model.ts +152 -0
- package/src/row-resize.ts +24 -1
- package/src/selection.test.ts +3 -0
- package/src/selection.ts +33 -3
- package/src/server-block-cache.test.ts +672 -0
- package/src/server-block-cache.ts +690 -0
- package/src/server-data-source.infinite.test.ts +405 -0
- package/src/server-data-source.test.ts +19 -0
- package/src/server-data-source.ts +496 -29
- package/src/server.ts +49 -0
- package/src/sparkline.test.ts +7 -0
- package/src/sparkline.ts +6 -4
- package/src/svgrid-wrapper.types.ts +32 -0
- package/src/svgrid.api.test.ts +21 -0
- package/src/svgrid.charting.test.ts +12 -4
- package/src/svgrid.context-menu.test.ts +12 -0
- package/src/svgrid.detail-rows.svelte.test.ts +187 -0
- package/src/svgrid.filter-menu-scroll.test.ts +9 -0
- package/src/svgrid.gantt-seam.test.ts +199 -0
- package/src/svgrid.live-update-paths.svelte.test.ts +184 -0
- package/src/svgrid.menu-scroll-close.test.ts +10 -0
- package/src/svgrid.row-model-prop.svelte.test.ts +352 -0
- package/src/svgrid.row-model-seam.svelte.test.ts +305 -0
- package/src/svgrid.row-pinning.test.ts +15 -1
- package/src/svgrid.selection-bar-seam.test.ts +1 -1
- package/src/svgrid.sticky-groups.svelte.test.ts +145 -0
- package/src/svgrid.upsell-license.test.ts +8 -5
- package/src/test-setup.ts +12 -0
- package/src/transaction.test.ts +58 -0
- package/src/validate.test.ts +29 -0
- package/src/validate.ts +34 -3
- package/dist/SvGroupCell.svelte +0 -141
- package/dist/SvGroupCell.svelte.d.ts +0 -49
- package/dist/SvRowGroupPanel.svelte +0 -186
- package/dist/SvRowGroupPanel.svelte.d.ts +0 -25
- package/dist/cdn/GridMenus-7kbpnnBW.js +0 -635
- package/dist/cdn/validate-_CDJzgIo.js +0 -75
- package/dist/server-group-model.d.ts +0 -98
- package/dist/server-group-model.js +0 -263
- package/src/SvGroupCell.svelte +0 -141
- package/src/SvRowGroupPanel.svelte +0 -186
- package/src/server-group-model.test.ts +0 -294
- package/src/server-group-model.ts +0 -370
|
@@ -2,7 +2,7 @@ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
|
2
2
|
import { a as t, i as n, t as r } from "./editor-contract-LXgQJAgd.js";
|
|
3
3
|
import { C as i, M as a, P as o, g as s, i as c, k as l, n as u, t as d } from "./date-format-CtquV-p3.js";
|
|
4
4
|
import { i as f, n as p, r as m } from "./popover-P-9P2YYn.js";
|
|
5
|
-
import { t as h } from "./dismissable-
|
|
5
|
+
import { t as h } from "./dismissable-Brc4EZU1.js";
|
|
6
6
|
import * as g from "svelte/internal/client";
|
|
7
7
|
import "svelte/internal/disclose-version";
|
|
8
8
|
//#region src/createTimePicker.svelte.ts
|
|
@@ -97,7 +97,7 @@ function k(k, A) {
|
|
|
97
97
|
}, M = d.prop(A, "ctrl", 7), N = d.prop(A, "fullRow", 3, !1), P = d.state(null), F = d.state(null);
|
|
98
98
|
d.user_effect(() => {
|
|
99
99
|
let e = M().editingCell?.editorType;
|
|
100
|
-
(e === "list" || e === "chips" || e === "select" || e === "rich-select") && !d.get(P) && import("./SvGridDropdown-
|
|
100
|
+
(e === "list" || e === "chips" || e === "select" || e === "rich-select") && !d.get(P) && import("./SvGridDropdown-BWeM3lMe.js").then((e) => e.n).then((e) => d.set(P, e.default, !0)), (e === "date" || e === "datetime" || e === "time") && !d.get(F) && import("./SvDateTimePicker-s_6IUpI7.js").then((e) => e.n).then((e) => d.set(F, e.default, !0));
|
|
101
101
|
});
|
|
102
102
|
let I = d.derived(() => M().grid), L = d.derived(() => M().fullRowEdit), R = d.derived(() => M().getColumnEditorOptions), z = d.derived(() => M().areEditorOptionsLoading), B = d.derived(() => M().saveEditingCell), V = d.derived(() => M().updateEditingCellValue), H = d.derived(() => M().onEditorKeyDown), U = d.derived(() => M().focusOnMount), W = d.derived(() => M().toggleCheckboxWithKeyboard);
|
|
103
103
|
function G(e, t = !0) {
|
|
@@ -96,7 +96,7 @@ function V(a, l) {
|
|
|
96
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-
|
|
99
|
+
(e === "list" || e === "chips" || e === "select" || e === "rich-select") && !n(U) && import("./SvGridDropdown-CJ6QqTxu.js").then((e) => e.n).then((e) => y(U, e.default, !0)), (e === "date" || e === "datetime" || e === "time") && !n(W) && import("./SvDateTimePicker-D9u_cOf8.js").then((e) => e.n).then((e) => y(W, e.default, !0));
|
|
100
100
|
});
|
|
101
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
102
|
function Ee(e, t = !0) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { B as e, D as t, E as n, F as r, G as i, H as a, I as o, J as s, K as c, L as l, N as u, R as d, U as f, V as p, X as m, Y as h, _ as g, a as _, at as v, b as ee, d as y, et as b, ft as te, i as ne, it as x, j as re, k as S, lt as ie, nt as C, o as ae, pt as w, q as oe, rt as se, st as T, t as E, tt as D, u as ce, ut as le, v as O, w as ue, x as de } from "./disclose-version-Dr7rEVv-.js";
|
|
2
2
|
import { a as fe } from "./editor-contract-LXgQJAgd.js";
|
|
3
|
-
import { i as pe } from "./chart-trend-
|
|
4
|
-
import { C as me, D as he, E as ge, H as _e, O as ve, T as ye, X as be, c as xe, et as Se, g as Ce, gt as we, ht as Te, i as Ee, mt as De, o as Oe, r as ke, w as Ae } from "./chart-
|
|
3
|
+
import { i as pe } from "./chart-trend-BkEp61Gj.js";
|
|
4
|
+
import { C as me, D as he, E as ge, H as _e, O as ve, T as ye, X as be, c as xe, et as Se, g as Ce, gt as we, ht as Te, i as Ee, mt as De, o as Oe, r as ke, w as Ae } from "./chart-DEZxwC0i.js";
|
|
5
5
|
import { a as je, t as Me } from "./chart-export-BXqueeWJ.js";
|
|
6
6
|
//#region src/chart-zoom.ts
|
|
7
7
|
function Ne(e, t, n) {
|
|
@@ -324,7 +324,7 @@ function ti(l, d) {
|
|
|
324
324
|
return;
|
|
325
325
|
}
|
|
326
326
|
let e = i(V), t = !0;
|
|
327
|
-
return import("./chart-summary-
|
|
327
|
+
return import("./chart-summary-CMAXBGY-.js").then((e) => e.n).then(({ chartSummary: n }) => {
|
|
328
328
|
t && x(si, n(e), !0);
|
|
329
329
|
}), () => {
|
|
330
330
|
t = !1;
|
|
@@ -1762,7 +1762,7 @@ function ti(l, d) {
|
|
|
1762
1762
|
y: t,
|
|
1763
1763
|
target: r
|
|
1764
1764
|
}, !0);
|
|
1765
|
-
i(Ks) ? a() : import("./SvChartMenu-
|
|
1765
|
+
i(Ks) ? a() : import("./SvChartMenu-BZ1Iwv0y.js").then((e) => {
|
|
1766
1766
|
x(Ks, e.default, !0), a();
|
|
1767
1767
|
});
|
|
1768
1768
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e } from "./editor-contract-LXgQJAgd.js";
|
|
2
|
-
import { i as t } from "./chart-trend-
|
|
3
|
-
import { C as n, D as r, E as i, H as a, O as o, T as s, X as c, c as l, et as u, g as d, gt as f, ht as ee, i as te, mt as ne, o as re, r as ie, w as ae } from "./chart-
|
|
2
|
+
import { i as t } from "./chart-trend-BkEp61Gj.js";
|
|
3
|
+
import { C as n, D as r, E as i, H as a, O as o, T as s, X as c, c as l, et as u, g as d, gt as f, ht as ee, i as te, mt as ne, o as re, r as ie, w as ae } from "./chart-DEZxwC0i.js";
|
|
4
4
|
import { a as oe, t as se } from "./chart-export-BXqueeWJ.js";
|
|
5
5
|
import * as p from "svelte/internal/client";
|
|
6
6
|
import "svelte/internal/disclose-version";
|
|
@@ -326,7 +326,7 @@ function Ar(e, i) {
|
|
|
326
326
|
return;
|
|
327
327
|
}
|
|
328
328
|
let e = p.get(I), t = !0;
|
|
329
|
-
return import("./chart-summary-
|
|
329
|
+
return import("./chart-summary-CMAXBGY-.js").then((e) => e.n).then(({ chartSummary: n }) => {
|
|
330
330
|
t && p.set(zr, n(e), !0);
|
|
331
331
|
}), () => {
|
|
332
332
|
t = !1;
|
|
@@ -1764,7 +1764,7 @@ function Ar(e, i) {
|
|
|
1764
1764
|
y: t,
|
|
1765
1765
|
target: r
|
|
1766
1766
|
}, !0);
|
|
1767
|
-
p.get(ds) ? i() : import("./SvChartMenu-
|
|
1767
|
+
p.get(ds) ? i() : import("./SvChartMenu-BFSTpvB-.js").then((e) => {
|
|
1768
1768
|
p.set(ds, e.default, !0), i();
|
|
1769
1769
|
});
|
|
1770
1770
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as e, t } from "./SvModal-
|
|
2
|
-
import { _ as n, h as r, l as i, m as a, p as o, u as s, v as c, y as l } from "./chart-
|
|
3
|
-
import { t as u } from "./SvGridChart-
|
|
4
|
-
import { i as d, t as f } from "./chart-panel-messages-
|
|
1
|
+
import { n as e, t } from "./SvModal-ClxGmpAc.js";
|
|
2
|
+
import { _ as n, h as r, l as i, m as a, p as o, u as s, v as c, y as l } from "./chart-DEZxwC0i.js";
|
|
3
|
+
import { t as u } from "./SvGridChart-DsmwTyZF.js";
|
|
4
|
+
import { i as d, t as f } from "./chart-panel-messages-DguS7gC5.js";
|
|
5
5
|
import * as p from "svelte/internal/client";
|
|
6
6
|
import "svelte/internal/disclose-version";
|
|
7
7
|
//#region src/chart-samples.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { E as e, F as t, G as n, H as r, I as i, L as a, N as o, V as s, Y as c, at as l, d as u, et as d, f, g as p, h as m, it as h, k as g, lt as _, m as v, mt as y, nt as b, pt as x, st as S, t as C, tt as w, u as T, ut as E, v as D, x as O } from "./disclose-version-Dr7rEVv-.js";
|
|
2
|
-
import { n as k, t as A } from "./SvModal-
|
|
3
|
-
import { _ as j, h as M, l as N, m as P, p as F, u as I, v as L, y as R } from "./chart-
|
|
4
|
-
import { t as z } from "./SvGridChart-
|
|
5
|
-
import { i as B, t as V } from "./chart-panel-messages-
|
|
2
|
+
import { n as k, t as A } from "./SvModal-DhB_VMFR.js";
|
|
3
|
+
import { _ as j, h as M, l as N, m as P, p as F, u as I, v as L, y as R } from "./chart-DEZxwC0i.js";
|
|
4
|
+
import { t as z } from "./SvGridChart-B4EV8U6t.js";
|
|
5
|
+
import { i as B, t as V } from "./chart-panel-messages-D12XcTZJ.js";
|
|
6
6
|
//#region src/chart-samples.ts
|
|
7
7
|
var H = null;
|
|
8
8
|
function U() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { B as t, C as n, E as r, F as i, G as a, H as o, I as s, L as c, N as l, R as u, U as d, V as f, X as p, Y as m, _ as h, a as g, at as _, d as v, et as y, i as b, it as x, k as S, lt as ee, n as C, nt as w, o as T, pt as E, r as D, st as O, t as k, tt as A, u as te, ut as j, v as M, w as ne, x as N } from "./disclose-version-Dr7rEVv-.js";
|
|
3
|
-
import { z as P } from "./chart-
|
|
4
|
-
import { t as re } from "./SvGridChart-
|
|
3
|
+
import { z as P } from "./chart-DEZxwC0i.js";
|
|
4
|
+
import { t as re } from "./SvGridChart-B4EV8U6t.js";
|
|
5
5
|
import { a as ie, o as ae, r as oe, s as se, t as ce } from "./chart-export-BXqueeWJ.js";
|
|
6
|
-
import { a as le, i as ue, r as de, t as fe } from "./chart-panel-messages-
|
|
6
|
+
import { a as le, i as ue, r as de, t as fe } from "./chart-panel-messages-D12XcTZJ.js";
|
|
7
7
|
//#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/transition/index.js
|
|
8
8
|
function pe(e) {
|
|
9
9
|
let t = e - 1;
|
|
@@ -159,7 +159,7 @@ function L(e, c) {
|
|
|
159
159
|
x(f, !0);
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
|
-
import("./SvGridChartBuilder-
|
|
162
|
+
import("./SvGridChartBuilder-vOl7C0Za.js").then((e) => {
|
|
163
163
|
x(u, e.default, !0), x(f, !0);
|
|
164
164
|
});
|
|
165
165
|
}
|
|
@@ -278,7 +278,7 @@ function L(e, c) {
|
|
|
278
278
|
});
|
|
279
279
|
async function _t() {
|
|
280
280
|
if (x(H, !1), !a(L)) return;
|
|
281
|
-
let { chartSummary: e } = await import("./chart-summary-
|
|
281
|
+
let { chartSummary: e } = await import("./chart-summary-CMAXBGY-.js").then((e) => e.n), t = e(a(L));
|
|
282
282
|
try {
|
|
283
283
|
await navigator.clipboard?.writeText(t);
|
|
284
284
|
} catch {}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { z as t } from "./chart-
|
|
3
|
-
import { t as n } from "./SvGridChart-
|
|
2
|
+
import { z as t } from "./chart-DEZxwC0i.js";
|
|
3
|
+
import { t as n } from "./SvGridChart-DsmwTyZF.js";
|
|
4
4
|
import { a as r, o as i, r as a, s as o, t as s } from "./chart-export-BXqueeWJ.js";
|
|
5
|
-
import { a as c, i as l, r as u, t as d } from "./chart-panel-messages-
|
|
5
|
+
import { a as c, i as l, r as u, t as d } from "./chart-panel-messages-DguS7gC5.js";
|
|
6
6
|
import * as f from "svelte/internal/client";
|
|
7
7
|
import "svelte/internal/disclose-version";
|
|
8
8
|
import { fly as p } from "svelte/transition";
|
|
@@ -135,7 +135,7 @@ function y(e, t) {
|
|
|
135
135
|
f.set(g, !0);
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
|
-
import("./SvGridChartBuilder-
|
|
138
|
+
import("./SvGridChartBuilder-cHloHobN.js").then((e) => {
|
|
139
139
|
f.set(h, e.default, !0), f.set(g, !0);
|
|
140
140
|
});
|
|
141
141
|
}
|
|
@@ -254,7 +254,7 @@ function y(e, t) {
|
|
|
254
254
|
});
|
|
255
255
|
async function Je() {
|
|
256
256
|
if (f.set(N, !1), !f.get(T)) return;
|
|
257
|
-
let { chartSummary: e } = await import("./chart-summary-
|
|
257
|
+
let { chartSummary: e } = await import("./chart-summary-CMAXBGY-.js").then((e) => e.n), t = e(f.get(T));
|
|
258
258
|
try {
|
|
259
259
|
await navigator.clipboard?.writeText(t);
|
|
260
260
|
} catch {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as e, G as t, L as n, et as r, lt as i, pt as a, st as o, ut as s, x as c } from "./disclose-version-Dr7rEVv-.js";
|
|
2
|
-
import { u as l } from "./chart-
|
|
3
|
-
import { t as u } from "./SvGridChart-
|
|
2
|
+
import { u as l } from "./chart-DEZxwC0i.js";
|
|
3
|
+
import { t as u } from "./SvGridChart-B4EV8U6t.js";
|
|
4
4
|
//#region src/SvGridChartView.svelte
|
|
5
5
|
var d = n("<div class=\"sv-grid-chart-view svelte-10run6t\"><!></div>"), f = {
|
|
6
6
|
hash: "svelte-10run6t",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as e } from "./chart-
|
|
2
|
-
import { t } from "./SvGridChart-
|
|
1
|
+
import { u as e } from "./chart-DEZxwC0i.js";
|
|
2
|
+
import { t } from "./SvGridChart-DsmwTyZF.js";
|
|
3
3
|
import * as n from "svelte/internal/client";
|
|
4
4
|
import "svelte/internal/disclose-version";
|
|
5
5
|
//#region src/SvGridChartView.svelte
|
|
@@ -3,18 +3,18 @@ import { i as t, n, r } from "./popover-P-9P2YYn.js";
|
|
|
3
3
|
import * as i from "svelte/internal/client";
|
|
4
4
|
import "svelte/internal/disclose-version";
|
|
5
5
|
//#region src/SvGridDropdown.svelte
|
|
6
|
-
var a = /* @__PURE__ */ e({ default: () =>
|
|
6
|
+
var a = /* @__PURE__ */ e({ default: () => b }), o = i.from_html("<span class=\"sv-grid-chip sv-grid-chip-removable svelte-ei8hp3\"> <span class=\"sv-grid-chip-remove svelte-ei8hp3\" role=\"button\">×</span></span>"), s = i.from_html("<span class=\"sv-grid-dropdown-chips svelte-ei8hp3\"></span>"), c = i.from_html("<span class=\"sv-grid-chip svelte-ei8hp3\"> </span>"), l = i.from_html("<span class=\"sv-grid-dropdown-label svelte-ei8hp3\"> </span>"), u = i.from_html("<input type=\"search\" class=\"sv-grid-dropdown-search\" placeholder=\"Search…\"/>"), d = i.from_html("<div class=\"sv-grid-dropdown-empty\" role=\"status\" aria-live=\"polite\">Loading…</div>"), f = i.from_html("<div class=\"sv-grid-dropdown-empty\"> </div>"), p = i.from_html("<span class=\"sv-grid-dropdown-check\" aria-hidden=\"true\"> </span>"), m = i.from_html("<span class=\"sv-grid-dropdown-option-chip\"> </span>"), h = i.from_html("<span class=\"sv-grid-dropdown-option-label\"> </span>"), g = i.from_html("<div role=\"option\"><!> <!></div>"), _ = i.from_html("<div class=\"sv-grid-dropdown-footer\"><button type=\"button\" class=\"sv-grid-dropdown-done\">Done</button></div>"), ee = i.from_html("<div role=\"listbox\"><!> <!> <!></div>"), v = i.from_html("<div><button type=\"button\" aria-haspopup=\"listbox\"><!> <span class=\"sv-grid-dropdown-caret svelte-ei8hp3\" aria-hidden=\"true\">▾</span></button> <!></div>"), y = {
|
|
7
7
|
hash: "svelte-ei8hp3",
|
|
8
8
|
code: "\n /* All colors derive from the grid's host CSS vars so light/dark themes\n \"just work\". Hard fallbacks are kept so the component is still\n usable in an unthemed page. */.sv-grid-dropdown.svelte-ei8hp3 {position:absolute;top:0;left:0;right:0;height:100%;background:var(--sg-bg, #ffffff);color:var(--sg-fg, #0f172a);}.sv-grid-dropdown-trigger.svelte-ei8hp3 {display:flex;align-items:center;gap:6px;width:100%;height:100%;min-height:28px;padding:0 8px;background:var(--sg-bg, #ffffff);color:var(--sg-fg, #0f172a);border:0;outline:none;font:inherit;text-align:start;cursor:pointer;box-sizing:border-box;}.sv-grid-dropdown-trigger.svelte-ei8hp3:focus {outline:2px solid var(--sg-accent, #2563eb);outline-offset:-2px;}.sv-grid-dropdown-trigger-chips.svelte-ei8hp3 {align-items:center;padding:4px 8px;flex-wrap:wrap;}.sv-grid-dropdown-chips.svelte-ei8hp3 {display:inline-flex;flex-wrap:wrap;gap:4px;flex:1 1 auto;min-width:0;align-items:center;}.sv-grid-dropdown-label.svelte-ei8hp3 {flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.sv-grid-dropdown-caret.svelte-ei8hp3 {flex:0 0 auto;font-size:10px;opacity:0.7;line-height:1;}\n\n /* Popover sits absolutely below the trigger. The parent\n `.sv-grid-cell-editing` has `overflow: visible`, so this can hang\n past the row. Pulls its surface color from the grid's header bg\n so it reads as a slightly elevated layer on either theme. */\n /* Panel is `position: fixed` AND portal'd into document.body via\n `use:portalToBody`, so it escapes every ancestor overflow / clip /\n transform / stacking context. Coords come from updatePanelPosition(). */.sv-grid-dropdown-panel {overflow-y:auto;background:var(--sg-header-bg, var(--sg-bg, #ffffff));color:var(--sg-fg, #0f172a);border:1px solid var(--sg-accent, #2563eb);border-radius:6px;box-shadow:0 12px 28px rgba(0, 0, 0, 0.45);padding:4px 0;font-family:inherit;}\n /* When the option list fits in one panel we want NO scrollbar at all -\n * not even a sub-pixel ghost track. `overflow: visible` rules out the\n * scrollbar gutter that some browsers still reserve under\n * `overflow: auto` when content equals max-height. */.sv-grid-dropdown-panel.sv-grid-dropdown-panel-fits {overflow:visible;}.sv-grid-dropdown-option {display:flex;align-items:center;gap:8px;padding:6px 10px;cursor:pointer;user-select:none;color:var(--sg-fg, #0f172a);}.sv-grid-dropdown-option-highlighted {background:var(--sg-row-hover-bg, rgba(37, 99, 235, 0.1));}.sv-grid-dropdown-option-selected {font-weight:600;background:var(--sg-selection-bg, rgba(37, 99, 235, 0.15));}.sv-grid-dropdown-option-selected.sv-grid-dropdown-option-highlighted {background:var(--sg-row-hover-bg, rgba(37, 99, 235, 0.18));}.sv-grid-dropdown-option-label {flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.sv-grid-dropdown-check {flex:0 0 16px;display:inline-flex;align-items:center;justify-content:center;color:var(--sg-accent, #2563eb);font-weight:700;}.sv-grid-dropdown-swatch {flex:0 0 12px;width:12px;height:12px;border-radius:999px;border:1px solid color-mix(in srgb, var(--sg-fg, #0f172a) 25%, transparent);}\n /* Colored option chip. Declared `:global` because the option panel is\n portal'd to <body>, where Svelte's scoped classes don't reach. The\n per-chip background / border / text color come from an inline style\n (see colorfulChipStyleInline) so each option matches its cell chip. */.sv-grid-dropdown-option-chip {display:inline-flex;align-items:center;max-width:100%;padding:2px 11px;border:1px solid transparent;border-radius:999px;font-size:0.9em;font-weight:600;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.sv-grid-dropdown-empty {padding:8px 10px;color:var(--sg-muted, rgba(15, 23, 42, 0.55));font-style:italic;font-size:0.9em;}.sv-grid-dropdown-footer {display:flex;justify-content:flex-end;padding:4px 6px;border-top:1px solid var(--sg-border, rgba(15, 23, 42, 0.08));margin-top:2px;}.sv-grid-dropdown-done {font-size:11px;text-transform:uppercase;letter-spacing:0.04em;color:#fff;background:var(--sg-accent, #2563eb);border:0;border-radius:4px;padding:4px 10px;cursor:pointer;}.sv-grid-dropdown-done:hover {filter:brightness(1.12);}\n\n /* Note: option / footer / swatch styles are declared `:global(...)`\n above because the panel is portal'd to <body> and Svelte's scoped\n class won't survive on children of an element living outside the\n component subtree. */\n\n /* Theme-aware chip badges. Inside the trigger they sit on the cell\n background, so we need a tone that contrasts on BOTH themes - a\n translucent accent works well in dark mode and reads as a soft\n blue pill in light mode. */.sv-grid-chip.svelte-ei8hp3 {display:inline-flex;align-items:center;gap:4px;padding:2px 8px;font-size:0.85em;line-height:1.4;background:color-mix(in srgb, var(--sg-accent, #2563eb) 18%, transparent);color:var(--sg-fg, #0f172a);border-radius:999px;border:1px solid color-mix(in srgb, var(--sg-accent, #2563eb) 35%, transparent);white-space:nowrap;}.sv-grid-chip-removable.svelte-ei8hp3 {padding-inline-end:2px;}.sv-grid-chip-remove.svelte-ei8hp3 {display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:0;border-radius:999px;background:color-mix(in srgb, var(--sg-fg, #0f172a) 18%, transparent);color:inherit;font-size:12px;line-height:1;cursor:pointer;padding:0;}.sv-grid-chip-remove.svelte-ei8hp3:hover {background:rgba(220, 38, 38, 0.7);color:#fff;}"
|
|
9
9
|
};
|
|
10
|
-
function
|
|
11
|
-
let
|
|
12
|
-
i.push(a, !0), i.append_styles(e,
|
|
13
|
-
let
|
|
10
|
+
function b(e, a) {
|
|
11
|
+
let b = i.props_id();
|
|
12
|
+
i.push(a, !0), i.append_styles(e, y);
|
|
13
|
+
let x = i.prop(a, "multiple", 3, !1), S = i.prop(a, "placeholder", 3, "Select…"), C = i.prop(a, "renderChipsInTrigger", 3, !1), w = i.prop(a, "searchable", 3, !1), T = i.prop(a, "autoOpen", 3, !0), E = i.prop(a, "loading", 3, !1), D = i.prop(a, "invalid", 3, !1);
|
|
14
14
|
function O(e) {
|
|
15
|
-
return e >= 0 && e < i.get(j).length ? `${
|
|
15
|
+
return e >= 0 && e < i.get(j).length ? `${b}-opt-${e}` : void 0;
|
|
16
16
|
}
|
|
17
|
-
let k = i.derived(() => a.options.some((e) => e.color) ? 40 : 32), A = i.state(""), j = i.derived(() => !
|
|
17
|
+
let k = i.derived(() => a.options.some((e) => e.color) ? 40 : 32), A = i.state(""), j = i.derived(() => !w() || !i.get(A).trim() ? a.options : (() => {
|
|
18
18
|
let e = i.get(A).trim().toLowerCase();
|
|
19
19
|
return a.options.filter((t) => t.label.toLowerCase().includes(e));
|
|
20
20
|
})()), M = i.state(!1), N = i.state(-1), P = i.state(null), F = i.state(null), I = i.state(null), L = i.state(i.proxy({
|
|
@@ -25,14 +25,14 @@ function x(e, a) {
|
|
|
25
25
|
maxHeight: 0,
|
|
26
26
|
availHeight: 0
|
|
27
27
|
})), R = i.derived(() => Array.isArray(a.value) ? a.value : a.value == null || a.value === "" ? [] : [a.value]), z = i.derived(() => {
|
|
28
|
-
if (i.get(R).length === 0) return
|
|
29
|
-
if (!
|
|
28
|
+
if (i.get(R).length === 0) return S();
|
|
29
|
+
if (!x()) {
|
|
30
30
|
let e = i.get(R)[0], t = a.options.find((t) => String(t.value) === String(e));
|
|
31
31
|
return t ? t.label : String(e);
|
|
32
32
|
}
|
|
33
33
|
return `${i.get(R).length} selected`;
|
|
34
34
|
}), B = i.derived(() => {
|
|
35
|
-
if (
|
|
35
|
+
if (x() || i.get(R).length !== 1) return;
|
|
36
36
|
let e = i.get(R)[0];
|
|
37
37
|
return a.options.find((t) => String(t.value) === String(e))?.color;
|
|
38
38
|
});
|
|
@@ -40,7 +40,7 @@ function x(e, a) {
|
|
|
40
40
|
return i.get(R).some((t) => String(t) === String(e.value));
|
|
41
41
|
}
|
|
42
42
|
function H(e) {
|
|
43
|
-
if (
|
|
43
|
+
if (x()) {
|
|
44
44
|
let t = V(e) ? i.get(R).filter((t) => String(t) !== String(e.value)) : [...i.get(R), e.value];
|
|
45
45
|
a.onChange?.(t);
|
|
46
46
|
} else a.onChange?.(e.value), i.set(M, !1), a.onCommit?.();
|
|
@@ -56,7 +56,7 @@ function x(e, a) {
|
|
|
56
56
|
}
|
|
57
57
|
function W() {
|
|
58
58
|
if (!i.get(F)) return;
|
|
59
|
-
let e = Math.min(i.get(j).length, 10), t =
|
|
59
|
+
let e = Math.min(i.get(j).length, 10), t = w() ? 38 : 0, r = e * i.get(k) + (x() ? 40 : 0) + t + 8;
|
|
60
60
|
i.set(L, n(i.get(F).getBoundingClientRect(), {
|
|
61
61
|
estimatedHeight: r,
|
|
62
62
|
clampHorizontal: !1
|
|
@@ -103,7 +103,7 @@ function x(e, a) {
|
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
105
|
let t = a.options[i.get(N)];
|
|
106
|
-
t ? H(t) :
|
|
106
|
+
t ? H(t) : x() && (G(), a.onCommit?.());
|
|
107
107
|
} else if (e.key === " " && i.get(M)) {
|
|
108
108
|
e.preventDefault();
|
|
109
109
|
let t = a.options[i.get(N)];
|
|
@@ -119,13 +119,13 @@ function x(e, a) {
|
|
|
119
119
|
let t = e.relatedTarget;
|
|
120
120
|
t && i.get(P)?.contains(t) || (i.get(M) && G(), a.onCommit?.());
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function te(e, t) {
|
|
123
123
|
t.preventDefault(), t.stopPropagation();
|
|
124
124
|
let n = i.get(R).filter((t) => String(t) !== String(e));
|
|
125
|
-
a.onChange?.(
|
|
125
|
+
a.onChange?.(x() ? n : n[0] ?? null);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
|
|
127
|
+
function ne(e) {
|
|
128
|
+
T() && (e.focus(), U());
|
|
129
129
|
}
|
|
130
130
|
i.user_effect(() => {
|
|
131
131
|
if (!i.get(M)) return;
|
|
@@ -138,11 +138,11 @@ function x(e, a) {
|
|
|
138
138
|
function Y(e) {
|
|
139
139
|
return `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));`;
|
|
140
140
|
}
|
|
141
|
-
var X =
|
|
141
|
+
var X = v();
|
|
142
142
|
let Z;
|
|
143
143
|
var Q = i.child(X);
|
|
144
144
|
let $;
|
|
145
|
-
var
|
|
145
|
+
var re = i.child(Q), ie = (e) => {
|
|
146
146
|
var t = s();
|
|
147
147
|
i.each(t, 21, () => i.get(R), (e) => String(e), (e, t) => {
|
|
148
148
|
let n = i.derived(() => a.options.find((e) => String(e.value) === String(i.get(t))));
|
|
@@ -153,40 +153,40 @@ function x(e, a) {
|
|
|
153
153
|
() => i.get(n)?.color ? Y(i.get(n).color) : "",
|
|
154
154
|
() => i.get(n) ? i.get(n).label : String(i.get(t)),
|
|
155
155
|
() => i.get(n) ? i.get(n).label : String(i.get(t))
|
|
156
|
-
]), i.delegated("mousedown", c, (e) => e.preventDefault()), i.delegated("click", c, (e) =>
|
|
156
|
+
]), i.delegated("mousedown", c, (e) => e.preventDefault()), i.delegated("click", c, (e) => te(i.get(t), e)), i.append(e, r);
|
|
157
157
|
}), i.reset(t), i.append(e, t);
|
|
158
|
-
},
|
|
158
|
+
}, ae = (e) => {
|
|
159
159
|
var t = c(), n = i.child(t, !0);
|
|
160
160
|
i.reset(t), i.template_effect((e) => {
|
|
161
161
|
i.set_style(t, e), i.set_text(n, i.get(z));
|
|
162
162
|
}, [() => Y(i.get(B))]), i.append(e, t);
|
|
163
|
-
},
|
|
163
|
+
}, oe = (e) => {
|
|
164
164
|
var t = l(), n = i.child(t, !0);
|
|
165
165
|
i.reset(t), i.template_effect(() => i.set_text(n, i.get(z))), i.append(e, t);
|
|
166
166
|
};
|
|
167
|
-
i.if(
|
|
168
|
-
|
|
169
|
-
}), i.next(2), i.reset(Q), i.bind_this(Q, (e) => i.set(F, e), () => i.get(F)), i.action(Q, (e) =>
|
|
170
|
-
var
|
|
171
|
-
let n = i.derived(() => a.options.length > 10), o = i.derived(() => Math.min(i.get(n) ? 10 * i.get(k) + (
|
|
172
|
-
var s =
|
|
167
|
+
i.if(re, (e) => {
|
|
168
|
+
C() && i.get(R).length > 0 ? e(ie) : !x() && i.get(R).length === 1 && i.get(B) ? e(ae, 1) : e(oe, -1);
|
|
169
|
+
}), i.next(2), i.reset(Q), i.bind_this(Q, (e) => i.set(F, e), () => i.get(F)), i.action(Q, (e) => ne?.(e));
|
|
170
|
+
var se = i.sibling(Q, 2), ce = (e) => {
|
|
171
|
+
let n = i.derived(() => a.options.length > 10), o = i.derived(() => Math.min(i.get(n) ? 10 * i.get(k) + (x() ? 40 : 0) + 8 : Infinity, i.get(L).availHeight));
|
|
172
|
+
var s = ee();
|
|
173
173
|
let c, l;
|
|
174
|
-
var
|
|
174
|
+
var v = i.child(s), y = (e) => {
|
|
175
175
|
var t = u();
|
|
176
176
|
i.remove_input_defaults(t), i.delegated("mousedown", t, (e) => e.stopPropagation()), i.delegated("click", t, (e) => e.stopPropagation()), i.delegated("keydown", t, (e) => {
|
|
177
177
|
e.key === "Escape" && (e.preventDefault(), i.set(M, !1), a.onCancel?.());
|
|
178
178
|
}), i.bind_value(t, () => i.get(A), (e) => i.set(A, e)), i.append(e, t);
|
|
179
179
|
};
|
|
180
|
-
i.if(
|
|
181
|
-
|
|
180
|
+
i.if(v, (e) => {
|
|
181
|
+
w() && e(y);
|
|
182
182
|
});
|
|
183
|
-
var
|
|
183
|
+
var b = i.sibling(v, 2), S = (e) => {
|
|
184
184
|
var t = d();
|
|
185
185
|
i.append(e, t);
|
|
186
|
-
},
|
|
186
|
+
}, C = (e) => {
|
|
187
187
|
var t = f(), n = i.child(t, !0);
|
|
188
|
-
i.reset(t), i.template_effect(() => i.set_text(n,
|
|
189
|
-
},
|
|
188
|
+
i.reset(t), i.template_effect(() => i.set_text(n, w() && i.get(A) ? `No matches for "${i.get(A)}"` : "No options")), i.append(e, t);
|
|
189
|
+
}, T = (e) => {
|
|
190
190
|
var t = i.comment(), n = i.first_child(t);
|
|
191
191
|
i.each(n, 19, () => i.get(j), (e) => String(e.value), (e, t, n) => {
|
|
192
192
|
let r = i.derived(() => V(i.get(t)));
|
|
@@ -197,7 +197,7 @@ function x(e, a) {
|
|
|
197
197
|
i.reset(t), i.template_effect(() => i.set_text(n, i.get(r) ? "✓" : "")), i.append(e, t);
|
|
198
198
|
};
|
|
199
199
|
i.if(s, (e) => {
|
|
200
|
-
|
|
200
|
+
x() && e(c);
|
|
201
201
|
});
|
|
202
202
|
var l = i.sibling(s, 2), u = (e) => {
|
|
203
203
|
var n = m(), r = i.child(n, !0);
|
|
@@ -220,19 +220,19 @@ function x(e, a) {
|
|
|
220
220
|
}), i.event("mouseenter", a, () => i.set(N, i.get(n), !0)), i.append(e, a);
|
|
221
221
|
}), i.append(e, t);
|
|
222
222
|
};
|
|
223
|
-
i.if(
|
|
224
|
-
|
|
223
|
+
i.if(b, (e) => {
|
|
224
|
+
E() && i.get(j).length === 0 ? e(S) : i.get(j).length === 0 ? e(C, 1) : e(T, -1);
|
|
225
225
|
});
|
|
226
|
-
var
|
|
226
|
+
var D = i.sibling(b, 2), P = (e) => {
|
|
227
227
|
var t = _(), n = i.child(t);
|
|
228
228
|
i.reset(t), i.delegated("mousedown", n, (e) => e.preventDefault()), i.delegated("click", n, () => {
|
|
229
229
|
G(), a.onCommit?.();
|
|
230
230
|
}), i.append(e, t);
|
|
231
231
|
};
|
|
232
|
-
i.if(
|
|
233
|
-
|
|
232
|
+
i.if(D, (e) => {
|
|
233
|
+
x() && e(P);
|
|
234
234
|
}), i.reset(s), i.bind_this(s, (e) => i.set(I, e), () => i.get(I)), i.action(s, (e) => t?.(e)), i.action(s, (e, t) => r?.(e, t), () => ({ up: i.get(L).openUpward })), i.template_effect(() => {
|
|
235
|
-
c = i.set_class(s, 1, "sv-grid-dropdown-panel", null, c, { "sv-grid-dropdown-panel-fits": !i.get(n) }), i.set_attribute(s, "aria-multiselectable",
|
|
235
|
+
c = i.set_class(s, 1, "sv-grid-dropdown-panel", null, c, { "sv-grid-dropdown-panel-fits": !i.get(n) }), i.set_attribute(s, "aria-multiselectable", x()), l = i.set_style(s, "", l, {
|
|
236
236
|
position: "fixed",
|
|
237
237
|
top: i.get(L).openUpward ? null : `${i.get(L).top}px`,
|
|
238
238
|
bottom: i.get(L).openUpward ? `${i.get(L).bottom}px` : null,
|
|
@@ -243,10 +243,10 @@ function x(e, a) {
|
|
|
243
243
|
});
|
|
244
244
|
}), i.delegated("pointerdown", s, (e) => e.stopPropagation()), i.delegated("mousedown", s, (e) => e.stopPropagation()), i.delegated("click", s, (e) => e.stopPropagation()), i.append(e, s);
|
|
245
245
|
};
|
|
246
|
-
i.if(
|
|
247
|
-
i.get(M) && e(
|
|
246
|
+
i.if(se, (e) => {
|
|
247
|
+
i.get(M) && e(ce);
|
|
248
248
|
}), i.reset(X), i.bind_this(X, (e) => i.set(P, e), () => i.get(P)), i.template_effect((e) => {
|
|
249
|
-
Z = i.set_class(X, 1, "sv-grid-dropdown svelte-ei8hp3", null, Z, { "sv-grid-dropdown-open": i.get(M) }), $ = i.set_class(Q, 1, "sv-grid-dropdown-trigger svelte-ei8hp3", null, $, { "sv-grid-dropdown-trigger-chips":
|
|
249
|
+
Z = i.set_class(X, 1, "sv-grid-dropdown svelte-ei8hp3", null, Z, { "sv-grid-dropdown-open": i.get(M) }), i.set_attribute(Q, "id", a.id), $ = i.set_class(Q, 1, "sv-grid-dropdown-trigger svelte-ei8hp3", null, $, { "sv-grid-dropdown-trigger-chips": C() && i.get(R).length > 0 }), i.set_attribute(Q, "aria-expanded", i.get(M)), i.set_attribute(Q, "aria-label", a.ariaLabel), i.set_attribute(Q, "aria-invalid", D() || void 0), i.set_attribute(Q, "aria-describedby", a.describedBy), i.set_attribute(Q, "aria-activedescendant", e);
|
|
250
250
|
}, [() => i.get(M) ? O(i.get(N)) : void 0]), i.delegated("focusout", X, J), i.delegated("click", X, (e) => e.stopPropagation()), i.delegated("dblclick", X, (e) => e.stopPropagation()), i.delegated("pointerdown", X, (e) => e.stopPropagation()), i.delegated("mousedown", X, (e) => e.stopPropagation()), i.delegated("click", Q, () => i.get(M) ? G() : U()), i.delegated("keydown", Q, K), i.append(e, X), i.pop();
|
|
251
251
|
}
|
|
252
252
|
i.delegate([
|
|
@@ -258,4 +258,4 @@ i.delegate([
|
|
|
258
258
|
"keydown"
|
|
259
259
|
]);
|
|
260
260
|
//#endregion
|
|
261
|
-
export { a as n,
|
|
261
|
+
export { a as n, b as t };
|