@ishibashi0112/spreadsheet-grid-solid 1.9.0 → 1.11.0
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/API_REFERENCE.md +263 -31
- package/README.md +6 -6
- package/dist/{ColumnFilterPopover-mENgY4gl.js → ColumnFilterPopover-t32VGfTq.js} +135 -134
- package/dist/DateEditorCalendar-CWaFuibK.js +118 -0
- package/dist/devWarnings.d.ts +7 -0
- package/dist/editors/CellEditorLayer.d.ts +7 -2
- package/dist/editors/DateCellEditor.d.ts +2 -1
- package/dist/editors/DateTimeCellEditor.d.ts +26 -0
- package/dist/editors/MultiSelectCellEditor.d.ts +24 -0
- package/dist/editors/NumberCellEditor.d.ts +2 -1
- package/dist/editors/SearchSelectCellEditor.d.ts +1 -0
- package/dist/editors/SelectCellEditor.d.ts +1 -0
- package/dist/editors/TextCellEditor.d.ts +1 -0
- package/dist/features/dateTimeEditors.d.ts +2 -0
- package/dist/features/excelShortcuts.d.ts +2 -0
- package/dist/features/multiSelect.d.ts +2 -0
- package/dist/features/newRow.d.ts +2 -0
- package/dist/features/types.d.ts +18 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +5064 -4128
- package/dist/localeText-CCqvpkYM.js +10 -0
- package/dist/model/gridTypes.d.ts +2 -0
- package/dist/portalTokens-LgUwLYnR.js +47 -0
- package/dist/source/chunks/{ColumnFilterPopover-D7INPNVB.jsx → ColumnFilterPopover-JL3HPGXY.jsx} +4 -2
- package/dist/source/chunks/DateEditorCalendar-FVUNVD7Y.jsx +170 -0
- package/dist/source/chunks/{chunk-RJB7JN2Y.jsx → chunk-AI3CSPI3.jsx} +3 -29
- package/dist/source/chunks/chunk-ZW5ET5DO.jsx +28 -0
- package/dist/source/chunks/{toolPanelViews-BRH5PCOI.jsx → toolPanelViews-N6TGBFFW.jsx} +4 -2
- package/dist/source/index.jsx +1719 -373
- package/dist/style.css +1 -1
- package/dist/style.layer.css +1 -1
- package/dist/{toolPanelViews-DMEVr1KV.js → toolPanelViews-CPYtBTQP.js} +2 -1
- package/dist/view/DateEditorCalendar.d.ts +15 -0
- package/dist/view/GridBodyLayer.d.ts +11 -0
- package/dist/view/GridMultiSelectChips.d.ts +6 -0
- package/dist/view/GridPinnedRows.d.ts +1 -0
- package/dist/view/lazyPopups.d.ts +3 -1
- package/package.json +3 -3
- package/skills/spreadsheet-grid-solid/SKILL.md +1 -1
- package/dist/portalTokens-Gz03P3fZ.js +0 -52
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
1
|
+
import { a as e } from "./localeText-CCqvpkYM.js";
|
|
2
|
+
import { n as t, r as n, t as r } from "./columnVirtualizer-DdL7-ijS.js";
|
|
3
|
+
import { i, o as a, r as o, t as s } from "./portalTokens-LgUwLYnR.js";
|
|
3
4
|
import { n as c, r as l, t as u } from "./inputValue-C6BHBMBx.js";
|
|
4
5
|
import { For as d, Match as f, Show as p, Switch as m, createEffect as h, createMemo as g, createSignal as _, onCleanup as v, untrack as y } from "solid-js";
|
|
5
6
|
import { Portal as b, addEvent as x, className as S, createComponent as C, delegateEvents as w, effect as T, heldRead as E, insert as D, memo as O, readShallow as k, ref as A, setAttribute as j, setStyleProperty as M, spread as N, style as ee, template as P } from "@solidjs/web";
|
|
@@ -309,7 +310,7 @@ function ht() {
|
|
|
309
310
|
}
|
|
310
311
|
var gt = (e, t, n) => t === 0 ? n ? e.filterNoOptionsSource : e.noOptions : e.filterNoMatches;
|
|
311
312
|
function _t(t) {
|
|
312
|
-
let
|
|
313
|
+
let n = e(), [i, o] = _(""), s = g(() => dt(t.options, n().blank)), l = g(() => K(s(), i())), f = g(() => i().trim().length > 0), p, m = lt(), h = r(() => ({
|
|
313
314
|
count: l().length,
|
|
314
315
|
getScrollElement: () => p ?? null,
|
|
315
316
|
estimateSize: () => m,
|
|
@@ -340,22 +341,22 @@ function _t(t) {
|
|
|
340
341
|
if (e.stopPropagation(), e.key === "Escape" && (e.preventDefault(), t.onRequestClose()), e.key === "Enter") {
|
|
341
342
|
if (I(e)) return;
|
|
342
343
|
e.preventDefault();
|
|
343
|
-
let n = te(y(
|
|
344
|
+
let n = te(y(s), e.currentTarget.value);
|
|
344
345
|
if (n.kind === "none") return;
|
|
345
346
|
n.kind === "replace" && t.onReplaceSelection(n.values), t.onRequestClose();
|
|
346
347
|
}
|
|
347
|
-
}, e._$$input = (e) =>
|
|
348
|
-
e:
|
|
349
|
-
t:
|
|
348
|
+
}, e._$$input = (e) => o(e.currentTarget.value), A(() => R, e), T(() => ({
|
|
349
|
+
e: n().filterSearchPlaceholder,
|
|
350
|
+
t: n().filterSearchPlaceholder
|
|
350
351
|
}), ({ e: t, t: n }, r) => {
|
|
351
352
|
t !== r?.e && j(e, "placeholder", t), n !== r?.t && j(e, "aria-label", n);
|
|
352
353
|
}), e;
|
|
353
354
|
})(),
|
|
354
355
|
(() => {
|
|
355
|
-
var e = Ae(), t = e.firstChild,
|
|
356
|
-
return x(t, "change", u(k, P)), A(() => L, t), D(
|
|
356
|
+
var e = Ae(), t = e.firstChild, r = t.nextSibling;
|
|
357
|
+
return x(t, "change", u(k, P)), A(() => L, t), D(r, (() => {
|
|
357
358
|
var e = O(() => !!f());
|
|
358
|
-
return () => e() ?
|
|
359
|
+
return () => e() ? n().filterSelectAllResults : n().filterSelectAll;
|
|
359
360
|
})()), T(() => w(), (e) => {
|
|
360
361
|
t.checked = e;
|
|
361
362
|
}), e;
|
|
@@ -372,33 +373,33 @@ function _t(t) {
|
|
|
372
373
|
},
|
|
373
374
|
keyed: (e) => e.option.value,
|
|
374
375
|
children: (e) => (() => {
|
|
375
|
-
var
|
|
376
|
-
return x(
|
|
376
|
+
var r = Fe(), i = r.firstChild, o = i.nextSibling;
|
|
377
|
+
return x(i, "change", u(() => !1, () => t.onValueToggle(y(e).option.value))), D(o, () => ut(e().option.value, e().option.label, n().blank)), T(() => ({
|
|
377
378
|
e: `translateY(${e().start}px)`,
|
|
378
|
-
t:
|
|
379
|
+
t: a(e().size),
|
|
379
380
|
a: q(t.setSelection, e().option.value),
|
|
380
381
|
o: E()
|
|
381
|
-
}), ({ e, t, a: n, o:
|
|
382
|
-
e !== o?.e && M(
|
|
383
|
-
}),
|
|
382
|
+
}), ({ e, t, a: n, o: a }, o) => {
|
|
383
|
+
e !== o?.e && M(r, "transform", e), t !== o?.t && M(r, "height", t), (n !== o?.a || !a) && (i.checked = n);
|
|
384
|
+
}), r;
|
|
384
385
|
})()
|
|
385
|
-
})), T(() =>
|
|
386
|
+
})), T(() => a(b()), (t) => {
|
|
386
387
|
M(e, "height", t);
|
|
387
388
|
}), e;
|
|
388
389
|
})() : (() => {
|
|
389
390
|
var e = Pe();
|
|
390
|
-
return D(e, () => gt(
|
|
391
|
+
return D(e, () => gt(n(), t.options.length, t.isServerSide)), e;
|
|
391
392
|
})();
|
|
392
393
|
})()), e;
|
|
393
394
|
})(),
|
|
394
395
|
(() => {
|
|
395
|
-
var e = Me(),
|
|
396
|
-
return D(e, () => F(
|
|
396
|
+
var e = Me(), r = e.firstChild, i = r.nextSibling, a = i.nextSibling;
|
|
397
|
+
return D(e, () => F(n().filterSelectedCount, {
|
|
397
398
|
selected: ee(),
|
|
398
399
|
total: t.options.length
|
|
399
|
-
}),
|
|
400
|
+
}), r), D(e, (() => {
|
|
400
401
|
var e = O(() => !!f());
|
|
401
|
-
return () => e() ? F(
|
|
402
|
+
return () => e() ? F(n().filterShownCount, { count: l().length }) : "";
|
|
402
403
|
})(), i), D(e, (() => {
|
|
403
404
|
var e = O(() => !!t.truncated);
|
|
404
405
|
return () => e() ? C(ht, {}) : void 0;
|
|
@@ -687,7 +688,7 @@ function xt(t) {
|
|
|
687
688
|
];
|
|
688
689
|
}
|
|
689
690
|
function St(t) {
|
|
690
|
-
let
|
|
691
|
+
let n = e(), [i, o] = _(""), [s, l] = _(/* @__PURE__ */ new Set()), f = g(() => i().trim().length > 0), p = g(() => dt(t.options, n().blank)), m = g(() => K(p(), i())), h = g(() => ge(t.options, s(), n())), v, b = g(() => f() ? m().length : h().length), S = lt(), w = r(() => ({
|
|
691
692
|
count: b(),
|
|
692
693
|
getScrollElement: () => v ?? null,
|
|
693
694
|
estimateSize: () => S,
|
|
@@ -735,7 +736,7 @@ function St(t) {
|
|
|
735
736
|
let n = y(() => t.setSelection), r = e.leafKeys.length > 0 && W(e.leafKeys, n) === e.leafKeys.length;
|
|
736
737
|
t.onSelectAllChange(e.leafKeys, !r);
|
|
737
738
|
}, J = c(B), Y = ot(() => t.searchInputRef), X = (e) => {
|
|
738
|
-
let
|
|
739
|
+
let r = g(() => W(e.row().leafKeys, t.setSelection)), i = g(() => e.row().leafKeys.length > 0 && r() === e.row().leafKeys.length), a = g(() => r() > 0 && !i()), o = c(a), s = () => ut(e.row().key, e.row().label, n().blank);
|
|
739
740
|
return [
|
|
740
741
|
O(() => O(() => e.row().type === "group")() ? (() => {
|
|
741
742
|
var t = Q();
|
|
@@ -745,7 +746,7 @@ function St(t) {
|
|
|
745
746
|
{
|
|
746
747
|
class: "ssg-filter-tree-toggle",
|
|
747
748
|
get "aria-label"() {
|
|
748
|
-
return e.row().expanded ?
|
|
749
|
+
return e.row().expanded ? n().treeCollapse : n().treeExpand;
|
|
749
750
|
}
|
|
750
751
|
}
|
|
751
752
|
], !0), D(t, () => e.row().expanded ? "▾" : "▸"), t;
|
|
@@ -777,20 +778,20 @@ function St(t) {
|
|
|
777
778
|
if (n.kind === "none") return;
|
|
778
779
|
n.kind === "replace" && t.onReplaceSelection(n.values), t.onRequestClose();
|
|
779
780
|
}
|
|
780
|
-
}, e._$$input = (e) =>
|
|
781
|
-
e:
|
|
782
|
-
t:
|
|
781
|
+
}, e._$$input = (e) => o(e.currentTarget.value), A(() => Y, e), T(() => ({
|
|
782
|
+
e: n().filterSearchPlaceholder,
|
|
783
|
+
t: n().filterSearchPlaceholder
|
|
783
784
|
}), ({ e: t, t: n }, r) => {
|
|
784
785
|
t !== r?.e && j(e, "placeholder", t), n !== r?.t && j(e, "aria-label", n);
|
|
785
786
|
}), e;
|
|
786
787
|
})(),
|
|
787
788
|
(() => {
|
|
788
|
-
var e = Ae(),
|
|
789
|
-
return x(
|
|
789
|
+
var e = Ae(), r = e.firstChild, i = r.nextSibling;
|
|
790
|
+
return x(r, "change", u(B, () => t.onSelectAllChange(y(L), !y(z)))), A(() => J, r), D(i, (() => {
|
|
790
791
|
var e = O(() => !!f());
|
|
791
|
-
return () => e() ?
|
|
792
|
+
return () => e() ? n().filterSelectAllResults : n().filterSelectAll;
|
|
792
793
|
})()), T(() => z(), (e) => {
|
|
793
|
-
|
|
794
|
+
r.checked = e;
|
|
794
795
|
}), e;
|
|
795
796
|
})(),
|
|
796
797
|
(() => {
|
|
@@ -798,24 +799,24 @@ function St(t) {
|
|
|
798
799
|
return A(() => (e) => v = e, e), D(e, (() => {
|
|
799
800
|
var e = O(() => b() > 0);
|
|
800
801
|
return () => e() ? (() => {
|
|
801
|
-
var e = qe(),
|
|
802
|
+
var e = qe(), r = e.firstChild, i = r.nextSibling;
|
|
802
803
|
return D(e, C(d, {
|
|
803
804
|
get each() {
|
|
804
805
|
return ee();
|
|
805
806
|
},
|
|
806
807
|
keyed: (e) => e.option.value,
|
|
807
808
|
children: (e) => (() => {
|
|
808
|
-
var
|
|
809
|
-
return x(
|
|
809
|
+
var r = Fe(), i = r.firstChild, o = i.nextSibling;
|
|
810
|
+
return x(i, "change", u(() => !1, () => t.onValueToggle(y(e).option.value))), D(o, () => ut(e().option.value, e().option.label, n().blank)), T(() => ({
|
|
810
811
|
e: `translateY(${e().start}px)`,
|
|
811
|
-
t:
|
|
812
|
+
t: a(e().size),
|
|
812
813
|
a: q(t.setSelection, e().option.value),
|
|
813
814
|
o: E()
|
|
814
|
-
}), ({ e, t, a: n, o:
|
|
815
|
-
e !== o?.e && M(
|
|
816
|
-
}),
|
|
815
|
+
}), ({ e, t, a: n, o: a }, o) => {
|
|
816
|
+
e !== o?.e && M(r, "transform", e), t !== o?.t && M(r, "height", t), (n !== o?.a || !a) && (i.checked = n);
|
|
817
|
+
}), r;
|
|
817
818
|
})()
|
|
818
|
-
}),
|
|
819
|
+
}), r), D(e, C(d, {
|
|
819
820
|
get each() {
|
|
820
821
|
return P();
|
|
821
822
|
},
|
|
@@ -826,29 +827,29 @@ function St(t) {
|
|
|
826
827
|
t.target.closest("button, input") || G(y(e).row);
|
|
827
828
|
}, D(t, C(X, { row: () => e().row })), T(() => ({
|
|
828
829
|
e: `translateY(${e().start}px)`,
|
|
829
|
-
t:
|
|
830
|
-
a:
|
|
830
|
+
t: a(e().size),
|
|
831
|
+
a: a(8 + e().row.depth * 16)
|
|
831
832
|
}), ({ e, t: n, a: r }, i) => {
|
|
832
833
|
e !== i?.e && M(t, "transform", e), n !== i?.t && M(t, "height", n), r !== i?.a && M(t, "padding-left", r);
|
|
833
834
|
}), t;
|
|
834
835
|
})()
|
|
835
|
-
}),
|
|
836
|
+
}), i), T(() => a(k()), (t) => {
|
|
836
837
|
M(e, "height", t);
|
|
837
838
|
}), e;
|
|
838
839
|
})() : (() => {
|
|
839
840
|
var e = Pe();
|
|
840
|
-
return D(e, () => gt(
|
|
841
|
+
return D(e, () => gt(n(), t.options.length, t.isServerSide)), e;
|
|
841
842
|
})();
|
|
842
843
|
})()), e;
|
|
843
844
|
})(),
|
|
844
845
|
(() => {
|
|
845
|
-
var e = Me(),
|
|
846
|
-
return D(e, () => F(
|
|
846
|
+
var e = Me(), r = e.firstChild, i = r.nextSibling, a = i.nextSibling;
|
|
847
|
+
return D(e, () => F(n().filterSelectedCount, {
|
|
847
848
|
selected: H(),
|
|
848
849
|
total: t.options.length
|
|
849
|
-
}),
|
|
850
|
+
}), r), D(e, (() => {
|
|
850
851
|
var e = O(() => !!f());
|
|
851
|
-
return () => e() ? F(
|
|
852
|
+
return () => e() ? F(n().filterShownCount, { count: m().length }) : "";
|
|
852
853
|
})(), i), D(e, (() => {
|
|
853
854
|
var e = O(() => !!t.truncated);
|
|
854
855
|
return () => e() ? C(ht, {}) : void 0;
|
|
@@ -982,37 +983,37 @@ function Et(t) {
|
|
|
982
983
|
})()
|
|
983
984
|
];
|
|
984
985
|
}
|
|
985
|
-
function Dt(
|
|
986
|
-
let c = e(), l =
|
|
987
|
-
|
|
988
|
-
let h =
|
|
986
|
+
function Dt(r) {
|
|
987
|
+
let c = e(), l = o().container(), u = { current: null }, d = /* @__PURE__ */ new Date(), p = V();
|
|
988
|
+
t(p, () => ({ active: r.filterType === "dateSet" && (r.dateConditionDraft?.preset ?? null) !== null }), "render", "filterDateRollover");
|
|
989
|
+
let h = n(p, "filterDateRolloverStore"), y = () => he(d, h()), [x, w] = _(), E;
|
|
989
990
|
v(() => {
|
|
990
|
-
E?.removeEventListener("keydown", Ce, !0),
|
|
991
|
+
E?.removeEventListener("keydown", Ce, !0), r.panelRef.current === E && (r.panelRef.current = null);
|
|
991
992
|
});
|
|
992
|
-
let M = g(() =>
|
|
993
|
-
|
|
994
|
-
let P = g(() =>
|
|
993
|
+
let M = g(() => r.layout);
|
|
994
|
+
s(x, () => r.themeClassName, M);
|
|
995
|
+
let P = g(() => r.filterType), R = g(() => P() === "set"), z = g(() => P() === "numberSet"), B = g(() => P() === "textSet"), U = g(() => P() === "dateSet"), W = g(() => z() || B() || U()), K = g(() => R() || W()), te = g(() => K() || P() === "select"), q = g(() => {
|
|
995
996
|
if (!te()) return "ready";
|
|
996
|
-
let e =
|
|
997
|
+
let e = r.optionsStatus;
|
|
997
998
|
return e === "collecting" ? "collecting" : e === "loading" || e === "error" ? "pending" : "ready";
|
|
998
|
-
}), Y = g(() =>
|
|
999
|
+
}), Y = g(() => r.optionsStatus === "loading" ? "loading" : "error"), re = g(() => r.numberConditionDraft ?? J), ae = g(() => r.textConditionDraft ?? ie), ce = g(() => r.dateConditionDraft ?? ue), le = g(() => r.datePresets ?? H(void 0, c())), fe = g(() => z() ? X(re()) : null), me = g(() => B() ? oe(ae()) : null), ge = g(() => U() ? de(ce()) : null), _e = g(() => fe() !== null || me() !== null || ge() !== null), ve = g(() => z() ? ne(r.selectOptions, fe()) : B() ? se(r.selectOptions, me()) : U() ? pe(r.selectOptions, ge(), y(), le()) : r.selectOptions), ye = g(() => {
|
|
999
1000
|
let e = q();
|
|
1000
1001
|
if (e === "collecting") return c().filterOptionsLoadingShort;
|
|
1001
1002
|
if (e === "pending") return Y() === "loading" ? c().filterOptionsLoadingShort : c().filterOptionsFailedShort;
|
|
1002
|
-
}), be = () => F(c().filterCollecting, { percent: Math.round(
|
|
1003
|
+
}), be = () => F(c().filterCollecting, { percent: Math.round(r.optionsProgress * 100) }), xe = (e) => {
|
|
1003
1004
|
if (e.stopPropagation(), !I(e)) {
|
|
1004
1005
|
if (e.key === "Enter") {
|
|
1005
|
-
e.preventDefault(),
|
|
1006
|
+
e.preventDefault(), r.onApply();
|
|
1006
1007
|
return;
|
|
1007
1008
|
}
|
|
1008
|
-
e.key === "Escape" && (e.preventDefault(),
|
|
1009
|
+
e.key === "Escape" && (e.preventDefault(), r.onRequestClose());
|
|
1009
1010
|
}
|
|
1010
1011
|
}, Se = (e) => {
|
|
1011
|
-
e.stopPropagation(), e.key === "Escape" && !L(e) && !I(e) && (e.preventDefault(),
|
|
1012
|
+
e.stopPropagation(), e.key === "Escape" && !L(e) && !I(e) && (e.preventDefault(), r.onRequestClose());
|
|
1012
1013
|
}, Ce = (e) => {
|
|
1013
|
-
if (
|
|
1014
|
-
let
|
|
1015
|
-
|
|
1014
|
+
if (i(e) !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || I(e)) return;
|
|
1015
|
+
let t = e.currentTarget, n = G(t, e.target instanceof Element ? e.target : null, e.shiftKey);
|
|
1016
|
+
n !== null && (e.preventDefault(), n.focus());
|
|
1016
1017
|
}, we = () => C(m, { get children() {
|
|
1017
1018
|
return [
|
|
1018
1019
|
C(f, {
|
|
@@ -1025,10 +1026,10 @@ function Dt(s) {
|
|
|
1025
1026
|
return re();
|
|
1026
1027
|
},
|
|
1027
1028
|
get valueInputRef() {
|
|
1028
|
-
return
|
|
1029
|
+
return r.textInputRef;
|
|
1029
1030
|
},
|
|
1030
1031
|
get onDraftChange() {
|
|
1031
|
-
return
|
|
1032
|
+
return r.onNumberConditionDraftChange;
|
|
1032
1033
|
},
|
|
1033
1034
|
onKeyDown: xe
|
|
1034
1035
|
});
|
|
@@ -1044,10 +1045,10 @@ function Dt(s) {
|
|
|
1044
1045
|
return ae();
|
|
1045
1046
|
},
|
|
1046
1047
|
get valueInputRef() {
|
|
1047
|
-
return
|
|
1048
|
+
return r.textInputRef;
|
|
1048
1049
|
},
|
|
1049
1050
|
get onDraftChange() {
|
|
1050
|
-
return
|
|
1051
|
+
return r.onTextConditionDraftChange;
|
|
1051
1052
|
},
|
|
1052
1053
|
onKeyDown: xe
|
|
1053
1054
|
});
|
|
@@ -1063,20 +1064,20 @@ function Dt(s) {
|
|
|
1063
1064
|
return ce();
|
|
1064
1065
|
},
|
|
1065
1066
|
get valueInputRef() {
|
|
1066
|
-
return
|
|
1067
|
+
return r.textInputRef;
|
|
1067
1068
|
},
|
|
1068
1069
|
get onDraftChange() {
|
|
1069
|
-
return
|
|
1070
|
+
return r.onDateConditionDraftChange;
|
|
1070
1071
|
},
|
|
1071
1072
|
onKeyDown: xe,
|
|
1072
1073
|
get presets() {
|
|
1073
1074
|
return le();
|
|
1074
1075
|
},
|
|
1075
1076
|
get renderDateInput() {
|
|
1076
|
-
return
|
|
1077
|
+
return r.renderDateInput;
|
|
1077
1078
|
},
|
|
1078
1079
|
get onRequestClose() {
|
|
1079
|
-
return
|
|
1080
|
+
return r.onRequestClose;
|
|
1080
1081
|
}
|
|
1081
1082
|
});
|
|
1082
1083
|
}
|
|
@@ -1097,19 +1098,19 @@ function Dt(s) {
|
|
|
1097
1098
|
return _e();
|
|
1098
1099
|
},
|
|
1099
1100
|
get onConditionClear() {
|
|
1100
|
-
return
|
|
1101
|
+
return r.onComboConditionClear;
|
|
1101
1102
|
},
|
|
1102
1103
|
get options() {
|
|
1103
1104
|
return ve();
|
|
1104
1105
|
},
|
|
1105
1106
|
get setSelection() {
|
|
1106
|
-
return
|
|
1107
|
+
return r.setSelection;
|
|
1107
1108
|
},
|
|
1108
1109
|
get onSelectionClear() {
|
|
1109
|
-
return
|
|
1110
|
+
return r.onComboSelectionClear;
|
|
1110
1111
|
},
|
|
1111
1112
|
get summaryText() {
|
|
1112
|
-
return
|
|
1113
|
+
return r.comboSummaryText;
|
|
1113
1114
|
},
|
|
1114
1115
|
get optionsMeta() {
|
|
1115
1116
|
return ye();
|
|
@@ -1136,10 +1137,10 @@ function Dt(s) {
|
|
|
1136
1137
|
return Y();
|
|
1137
1138
|
},
|
|
1138
1139
|
get errorMessage() {
|
|
1139
|
-
return
|
|
1140
|
+
return r.optionsErrorMessage;
|
|
1140
1141
|
},
|
|
1141
1142
|
get onRetry() {
|
|
1142
|
-
return
|
|
1143
|
+
return r.onOptionsRetry;
|
|
1143
1144
|
}
|
|
1144
1145
|
});
|
|
1145
1146
|
}
|
|
@@ -1154,26 +1155,26 @@ function Dt(s) {
|
|
|
1154
1155
|
return ve();
|
|
1155
1156
|
},
|
|
1156
1157
|
get setSelection() {
|
|
1157
|
-
return
|
|
1158
|
+
return r.setSelection;
|
|
1158
1159
|
},
|
|
1159
1160
|
searchInputRef: u,
|
|
1160
1161
|
get onValueToggle() {
|
|
1161
|
-
return
|
|
1162
|
+
return r.onSetValueToggle;
|
|
1162
1163
|
},
|
|
1163
1164
|
get onSelectAllChange() {
|
|
1164
|
-
return
|
|
1165
|
+
return r.onSetSelectAllChange;
|
|
1165
1166
|
},
|
|
1166
1167
|
get onReplaceSelection() {
|
|
1167
|
-
return
|
|
1168
|
+
return r.onSetReplaceSelection;
|
|
1168
1169
|
},
|
|
1169
1170
|
get onRequestClose() {
|
|
1170
|
-
return
|
|
1171
|
+
return r.onRequestClose;
|
|
1171
1172
|
},
|
|
1172
1173
|
get isServerSide() {
|
|
1173
|
-
return
|
|
1174
|
+
return r.isServerSide ?? !1;
|
|
1174
1175
|
},
|
|
1175
1176
|
get truncated() {
|
|
1176
|
-
return
|
|
1177
|
+
return r.optionsTruncated;
|
|
1177
1178
|
}
|
|
1178
1179
|
});
|
|
1179
1180
|
}
|
|
@@ -1186,27 +1187,27 @@ function Dt(s) {
|
|
|
1186
1187
|
return ve();
|
|
1187
1188
|
},
|
|
1188
1189
|
get setSelection() {
|
|
1189
|
-
return
|
|
1190
|
+
return r.setSelection;
|
|
1190
1191
|
},
|
|
1191
1192
|
searchInputRef: u,
|
|
1192
1193
|
get onValueToggle() {
|
|
1193
|
-
return
|
|
1194
|
+
return r.onSetValueToggle;
|
|
1194
1195
|
},
|
|
1195
1196
|
get onSelectAllChange() {
|
|
1196
|
-
return
|
|
1197
|
+
return r.onSetSelectAllChange;
|
|
1197
1198
|
},
|
|
1198
1199
|
get onReplaceSelection() {
|
|
1199
|
-
return
|
|
1200
|
+
return r.onSetReplaceSelection;
|
|
1200
1201
|
},
|
|
1201
1202
|
get onRequestClose() {
|
|
1202
|
-
return
|
|
1203
|
+
return r.onRequestClose;
|
|
1203
1204
|
},
|
|
1204
1205
|
get isServerSide() {
|
|
1205
|
-
return
|
|
1206
|
+
return r.isServerSide ?? !1;
|
|
1206
1207
|
},
|
|
1207
1208
|
selectAllUsesExplicitScope: !0,
|
|
1208
1209
|
get truncated() {
|
|
1209
|
-
return
|
|
1210
|
+
return r.optionsTruncated;
|
|
1210
1211
|
}
|
|
1211
1212
|
});
|
|
1212
1213
|
}
|
|
@@ -1236,10 +1237,10 @@ function Dt(s) {
|
|
|
1236
1237
|
return Y();
|
|
1237
1238
|
},
|
|
1238
1239
|
get errorMessage() {
|
|
1239
|
-
return
|
|
1240
|
+
return r.optionsErrorMessage;
|
|
1240
1241
|
},
|
|
1241
1242
|
get onRetry() {
|
|
1242
|
-
return
|
|
1243
|
+
return r.onOptionsRetry;
|
|
1243
1244
|
}
|
|
1244
1245
|
});
|
|
1245
1246
|
}
|
|
@@ -1251,31 +1252,31 @@ function Dt(s) {
|
|
|
1251
1252
|
get children() {
|
|
1252
1253
|
return C(_t, {
|
|
1253
1254
|
get options() {
|
|
1254
|
-
return
|
|
1255
|
+
return r.selectOptions;
|
|
1255
1256
|
},
|
|
1256
1257
|
get setSelection() {
|
|
1257
|
-
return
|
|
1258
|
+
return r.setSelection;
|
|
1258
1259
|
},
|
|
1259
1260
|
get searchInputRef() {
|
|
1260
|
-
return
|
|
1261
|
+
return r.textInputRef;
|
|
1261
1262
|
},
|
|
1262
1263
|
get onValueToggle() {
|
|
1263
|
-
return
|
|
1264
|
+
return r.onSetValueToggle;
|
|
1264
1265
|
},
|
|
1265
1266
|
get onSelectAllChange() {
|
|
1266
|
-
return
|
|
1267
|
+
return r.onSetSelectAllChange;
|
|
1267
1268
|
},
|
|
1268
1269
|
get onReplaceSelection() {
|
|
1269
|
-
return
|
|
1270
|
+
return r.onSetReplaceSelection;
|
|
1270
1271
|
},
|
|
1271
1272
|
get onRequestClose() {
|
|
1272
|
-
return
|
|
1273
|
+
return r.onRequestClose;
|
|
1273
1274
|
},
|
|
1274
1275
|
get isServerSide() {
|
|
1275
|
-
return
|
|
1276
|
+
return r.isServerSide ?? !1;
|
|
1276
1277
|
},
|
|
1277
1278
|
get truncated() {
|
|
1278
|
-
return
|
|
1279
|
+
return r.optionsTruncated;
|
|
1279
1280
|
}
|
|
1280
1281
|
});
|
|
1281
1282
|
}
|
|
@@ -1290,10 +1291,10 @@ function Dt(s) {
|
|
|
1290
1291
|
return re();
|
|
1291
1292
|
},
|
|
1292
1293
|
get valueInputRef() {
|
|
1293
|
-
return
|
|
1294
|
+
return r.textInputRef;
|
|
1294
1295
|
},
|
|
1295
1296
|
get onDraftChange() {
|
|
1296
|
-
return
|
|
1297
|
+
return r.onNumberConditionDraftChange;
|
|
1297
1298
|
},
|
|
1298
1299
|
onKeyDown: xe
|
|
1299
1300
|
});
|
|
@@ -1306,25 +1307,25 @@ function Dt(s) {
|
|
|
1306
1307
|
get children() {
|
|
1307
1308
|
return C(wt, {
|
|
1308
1309
|
get draftValue() {
|
|
1309
|
-
return
|
|
1310
|
+
return r.draftValue;
|
|
1310
1311
|
},
|
|
1311
1312
|
get options() {
|
|
1312
|
-
return
|
|
1313
|
+
return r.selectOptions;
|
|
1313
1314
|
},
|
|
1314
1315
|
get selectRef() {
|
|
1315
|
-
return
|
|
1316
|
+
return r.selectRef;
|
|
1316
1317
|
},
|
|
1317
1318
|
get truncated() {
|
|
1318
|
-
return
|
|
1319
|
+
return r.optionsTruncated;
|
|
1319
1320
|
},
|
|
1320
1321
|
get onDraftChange() {
|
|
1321
|
-
return
|
|
1322
|
+
return r.onDraftChange;
|
|
1322
1323
|
},
|
|
1323
1324
|
get onApply() {
|
|
1324
|
-
return
|
|
1325
|
+
return r.onApply;
|
|
1325
1326
|
},
|
|
1326
1327
|
get onRequestClose() {
|
|
1327
|
-
return
|
|
1328
|
+
return r.onRequestClose;
|
|
1328
1329
|
}
|
|
1329
1330
|
});
|
|
1330
1331
|
}
|
|
@@ -1334,79 +1335,79 @@ function Dt(s) {
|
|
|
1334
1335
|
get children() {
|
|
1335
1336
|
return C(Tt, {
|
|
1336
1337
|
get draftValue() {
|
|
1337
|
-
return
|
|
1338
|
+
return r.draftValue;
|
|
1338
1339
|
},
|
|
1339
1340
|
get textInputRef() {
|
|
1340
|
-
return
|
|
1341
|
+
return r.textInputRef;
|
|
1341
1342
|
},
|
|
1342
1343
|
get onDraftChange() {
|
|
1343
|
-
return
|
|
1344
|
+
return r.onDraftChange;
|
|
1344
1345
|
},
|
|
1345
1346
|
get onApply() {
|
|
1346
|
-
return
|
|
1347
|
+
return r.onApply;
|
|
1347
1348
|
},
|
|
1348
1349
|
get onRequestClose() {
|
|
1349
|
-
return
|
|
1350
|
+
return r.onRequestClose;
|
|
1350
1351
|
}
|
|
1351
1352
|
});
|
|
1352
1353
|
}
|
|
1353
1354
|
})
|
|
1354
1355
|
];
|
|
1355
|
-
} }), Z = () => F(c().filterTitle, { column:
|
|
1356
|
-
...
|
|
1357
|
-
top:
|
|
1358
|
-
left:
|
|
1359
|
-
width:
|
|
1360
|
-
"max-height":
|
|
1356
|
+
} }), Z = () => F(c().filterTitle, { column: r.title }), Ee = () => ({
|
|
1357
|
+
...r.popoverSlot?.style,
|
|
1358
|
+
top: a(M().top),
|
|
1359
|
+
left: a(M().left),
|
|
1360
|
+
width: a(M().width),
|
|
1361
|
+
"max-height": a(M().maxHeight)
|
|
1361
1362
|
});
|
|
1362
1363
|
return l ? C(b, {
|
|
1363
1364
|
mount: l,
|
|
1364
1365
|
get children() {
|
|
1365
|
-
var e = at(), t = e.firstChild, n = t.nextSibling,
|
|
1366
|
+
var e = at(), t = e.firstChild, n = t.nextSibling, i = n.nextSibling;
|
|
1366
1367
|
return e._$$keydown = Se, e._$$pointerdown = (e) => e.stopPropagation(), A(() => (e) => {
|
|
1367
|
-
E = e, w(e),
|
|
1368
|
+
E = e, w(e), r.setPanel(e), e.addEventListener("keydown", Ce, !0);
|
|
1368
1369
|
}, e), D(t, Z), D(e, Te, n), D(e, (() => {
|
|
1369
1370
|
var e = O(() => !K());
|
|
1370
1371
|
return () => e() ? (() => {
|
|
1371
1372
|
var e = et();
|
|
1372
|
-
return D(e, () => F(c().filterCurrentValue, { value:
|
|
1373
|
+
return D(e, () => F(c().filterCurrentValue, { value: r.currentValueText })), e;
|
|
1373
1374
|
})() : void 0;
|
|
1374
|
-
})(),
|
|
1375
|
+
})(), i), D(i, (() => {
|
|
1375
1376
|
var e = O(() => !!K());
|
|
1376
1377
|
return () => e() ? [(() => {
|
|
1377
1378
|
var e = Q();
|
|
1378
1379
|
return N(e, [
|
|
1379
1380
|
{ type: "button" },
|
|
1380
|
-
() => $(() =>
|
|
1381
|
+
() => $(() => r.onSetClear()),
|
|
1381
1382
|
{ class: "ssg-filter-btn-secondary" }
|
|
1382
1383
|
], !0), D(e, () => c().clear), e;
|
|
1383
1384
|
})(), (() => {
|
|
1384
1385
|
var e = Q();
|
|
1385
1386
|
return N(e, [
|
|
1386
1387
|
{ type: "button" },
|
|
1387
|
-
() => $(() =>
|
|
1388
|
+
() => $(() => r.onRequestClose()),
|
|
1388
1389
|
{ class: "ssg-filter-btn-primary" }
|
|
1389
1390
|
], !0), D(e, () => c().close), e;
|
|
1390
1391
|
})()] : [(() => {
|
|
1391
1392
|
var e = Q();
|
|
1392
1393
|
return N(e, [
|
|
1393
1394
|
{ type: "button" },
|
|
1394
|
-
() => $(() =>
|
|
1395
|
+
() => $(() => r.onClear()),
|
|
1395
1396
|
{ class: "ssg-filter-btn-secondary" }
|
|
1396
1397
|
], !0), D(e, () => c().clear), e;
|
|
1397
1398
|
})(), (() => {
|
|
1398
1399
|
var e = Q();
|
|
1399
1400
|
return N(e, [
|
|
1400
1401
|
{ type: "button" },
|
|
1401
|
-
() => $(() =>
|
|
1402
|
+
() => $(() => r.onApply()),
|
|
1402
1403
|
{ class: "ssg-filter-btn-primary" }
|
|
1403
1404
|
], !0), D(e, () => c().apply), e;
|
|
1404
1405
|
})()];
|
|
1405
1406
|
})()), T(() => ({
|
|
1406
1407
|
e: k([
|
|
1407
1408
|
"ssg-filter-popover",
|
|
1408
|
-
|
|
1409
|
-
|
|
1409
|
+
r.themeClassName,
|
|
1410
|
+
r.popoverSlot?.className
|
|
1410
1411
|
]),
|
|
1411
1412
|
t: k(Ee()),
|
|
1412
1413
|
a: Z()
|