@univerjs/sheets-filter-ui 0.8.1 → 0.8.2-nightly.202506201607
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +226 -222
- package/lib/index.css +1 -1
- package/lib/index.js +226 -222
- package/lib/umd/index.js +2 -2
- package/package.json +12 -12
- package/LICENSE +0 -176
package/lib/es/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var f = (t, e, r) =>
|
|
4
|
-
import { BooleanNumber as rt, createIdentifier as
|
|
5
|
-
import { IRPCChannelService as
|
|
6
|
-
import { CustomFilterOperator as u, SetSheetsFilterCriteriaCommand as re, SheetsFilterService as V, SmartToggleSheetsFilterCommand as pe, ReCalcSheetsFilterCommand as Ye, ClearSheetsFilterCriteriaCommand as qe, FILTER_MUTATIONS as
|
|
7
|
-
import { RefRangeService as
|
|
8
|
-
import { ILayoutService as
|
|
9
|
-
import { SetCellEditVisibleOperation as
|
|
10
|
-
import { BehaviorSubject as q, ReplaySubject as
|
|
11
|
-
import { Select as
|
|
12
|
-
import { Rect as
|
|
13
|
-
import { jsx as S, jsxs as b, Fragment as
|
|
14
|
-
import { forwardRef as
|
|
15
|
-
const
|
|
1
|
+
var qt = Object.defineProperty;
|
|
2
|
+
var Kt = (t, e, r) => e in t ? qt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var f = (t, e, r) => Kt(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
import { BooleanNumber as rt, createIdentifier as vt, Inject as E, LocaleService as K, IUniverInstanceService as Ge, ILogService as Xt, extractPureTextFromCell as Zt, numfmt as it, Disposable as me, Injector as X, Quantity as gt, Tools as Te, ICommandService as Q, CommandType as Le, IContextService as we, UniverInstanceType as Z, ThemeService as St, RxDisposable as Et, fromCallback as zt, InterceptorEffectEnum as Jt, DependentOn as Tt, IConfigService as Nt, Optional as er, Plugin as je, merge as Ft, registerDependencies as tr, touchDependencies as st } from "@univerjs/core";
|
|
5
|
+
import { IRPCChannelService as Ct, toModule as rr, fromModule as ir } from "@univerjs/rpc";
|
|
6
|
+
import { CustomFilterOperator as u, SetSheetsFilterCriteriaCommand as re, SheetsFilterService as V, SmartToggleSheetsFilterCommand as pe, ReCalcSheetsFilterCommand as Ye, ClearSheetsFilterCriteriaCommand as qe, FILTER_MUTATIONS as sr, SetSheetsFilterRangeMutation as nr, SetSheetsFilterCriteriaMutation as or, RemoveSheetsFilterMutation as ar, ReCalcSheetsFilterMutation as lr, RemoveSheetFilterCommand as cr, SetSheetFilterRangeCommand as ur, UniverSheetsFilterPlugin as yt } from "@univerjs/sheets-filter";
|
|
7
|
+
import { RefRangeService as hr, SheetPermissionCheckController as dr, SheetsSelectionsService as mr, getSheetCommandTarget as pr, WorksheetFilterPermission as ae, WorksheetViewPermission as le, RangeProtectionPermissionViewPoint as ce, expandToContinuousRange as fr, SheetInterceptorService as _r, SetRangeValuesMutation as vr, INTERCEPTOR_POINT as gr } from "@univerjs/sheets";
|
|
8
|
+
import { ILayoutService as Sr, useDependency as te, useObservable as B, useComponentsOfPart as Er, ComponentContainer as Tr, getMenuHiddenObservable as Ke, MenuItemType as Xe, RibbonDataGroup as Nr, KeyCode as Fr, MetaKeys as nt, ComponentManager as Cr, IShortcutService as yr, IMenuManagerService as Or, IMessageService as Rr } from "@univerjs/ui";
|
|
9
|
+
import { SetCellEditVisibleOperation as Ir, SheetsUIPart as Ar, getObservableWithExclusiveRange$ as Pr, getCurrentRangeDisable$ as br, SheetSkeletonManagerService as Lr, ISheetSelectionRenderService as wr, SelectionControl as Mr, attachSelectionWithCoord as $r, getCoordByCell as Ur, SheetsRenderService as Ot, whenSheetEditorFocused as Hr, SheetCanvasPopManagerService as Dr } from "@univerjs/sheets-ui";
|
|
10
|
+
import { BehaviorSubject as q, ReplaySubject as kr, Subject as xr, merge as Br, combineLatest as Wr, throttleTime as Rt, startWith as It, map as ie, shareReplay as Qr, of as fe, switchMap as Ze, filter as Vr, takeUntil as Gr, distinctUntilChanged as jr } from "rxjs";
|
|
11
|
+
import { Select as ot, clsx as At, borderClassName as Pt, RadioGroup as Yr, Radio as at, Input as bt, Checkbox as qr, Tree as Kr, Segmented as Xr, Button as Ue, MessageType as Zr } from "@univerjs/design";
|
|
12
|
+
import { Rect as lt, Shape as zr, IRenderManagerService as Lt } from "@univerjs/engine-render";
|
|
13
|
+
import { jsx as S, jsxs as b, Fragment as ct } from "react/jsx-runtime";
|
|
14
|
+
import { forwardRef as wt, useRef as Jr, createElement as Mt, useCallback as D, useMemo as ze } from "react";
|
|
15
|
+
const $t = "sheets-filter-ui.config", Ne = {};
|
|
16
16
|
var F = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SECOND", t))(F || {}), _ = /* @__PURE__ */ ((t) => (t.NONE = "none", t.STARTS_WITH = "startsWith", t.DOES_NOT_START_WITH = "doesNotStartWith", t.ENDS_WITH = "endsWith", t.DOES_NOT_END_WITH = "doesNotEndWith", t.CONTAINS = "contains", t.DOES_NOT_CONTAIN = "doesNotContain", t.EQUALS = "equals", t.NOT_EQUALS = "notEquals", t.EMPTY = "empty", t.NOT_EMPTY = "notEmpty", t.BETWEEN = "between", t.NOT_BETWEEN = "notBetween", t.CUSTOM = "custom", t))(_ || {}), d;
|
|
17
17
|
((t) => {
|
|
18
18
|
t.NONE = {
|
|
@@ -506,12 +506,12 @@ function xe(t) {
|
|
|
506
506
|
unchecked: n
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
var
|
|
510
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
509
|
+
var ei = Object.getOwnPropertyDescriptor, ti = (t, e, r, s) => {
|
|
510
|
+
for (var n = s > 1 ? void 0 : s ? ei(e, r) : e, l = t.length - 1, i; l >= 0; l--)
|
|
511
511
|
(i = t[l]) && (n = i(n) || n);
|
|
512
512
|
return n;
|
|
513
513
|
}, He = (t, e) => (r, s) => e(r, s, t);
|
|
514
|
-
const Je = "sheets-filter.generate-filter-values.service", Fe =
|
|
514
|
+
const Je = "sheets-filter.generate-filter-values.service", Fe = vt(Je), ri = ["yyyy-mm-dd", "yyyy-mm-dd;@", "yyyy/mm/dd;@", "yyyy/mm/dd hh:mm", "yyyy-m-d am/pm h:mm", "yyyy-MM-dd", "yyyy/MM/dd", "yyyy/mm/dd", 'yyyy"年"MM"月"dd"日"', "MM-dd", 'M"月"d"日"', "MM-dd A/P hh:mm"];
|
|
515
515
|
let Be = class extends me {
|
|
516
516
|
constructor(t, e, r) {
|
|
517
517
|
super(), this._localeService = t, this._univerInstanceService = e, this._logService = r;
|
|
@@ -519,34 +519,34 @@ let Be = class extends me {
|
|
|
519
519
|
async getFilterValues(t) {
|
|
520
520
|
var h;
|
|
521
521
|
const { unitId: e, subUnitId: r, filteredOutRowsByOtherColumns: s, filters: n, blankChecked: l, iterateRange: i, alreadyChecked: o } = t, a = this._univerInstanceService.getUnit(e), c = (h = this._univerInstanceService.getUnit(e)) == null ? void 0 : h.getSheetBySheetId(r);
|
|
522
|
-
return !a || !c ? [] : (this._logService.debug("[SheetsGenerateFilterValuesService]", "getFilterValues for", { unitId: e, subUnitId: r }),
|
|
522
|
+
return !a || !c ? [] : (this._logService.debug("[SheetsGenerateFilterValuesService]", "getFilterValues for", { unitId: e, subUnitId: r }), Ut(n, this._localeService, i, c, new Set(s), new Set(o.map(String)), l, a.getStyles()));
|
|
523
523
|
}
|
|
524
524
|
};
|
|
525
|
-
Be =
|
|
525
|
+
Be = ti([
|
|
526
526
|
He(0, E(K)),
|
|
527
527
|
He(1, Ge),
|
|
528
|
-
He(2,
|
|
528
|
+
He(2, Xt)
|
|
529
529
|
], Be);
|
|
530
|
-
function
|
|
530
|
+
function Ut(t, e, r, s, n, l, i, o) {
|
|
531
531
|
var v, C, N, R, O, w, M, _e, ve;
|
|
532
|
-
const a = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), h = "yyyy-mm-dd", m = new Set(
|
|
532
|
+
const a = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), h = "yyyy-mm-dd", m = new Set(ri), g = "empty";
|
|
533
533
|
let p = 0;
|
|
534
534
|
for (const I of s.iterateByColumn(r, !1, !1)) {
|
|
535
|
-
const { row:
|
|
535
|
+
const { row: Gt, rowSpan: tt = 1 } = I;
|
|
536
536
|
let z = 0;
|
|
537
537
|
for (; z < tt; ) {
|
|
538
|
-
const
|
|
539
|
-
if (n.has(
|
|
538
|
+
const jt = Gt + z;
|
|
539
|
+
if (n.has(jt)) {
|
|
540
540
|
z++;
|
|
541
541
|
continue;
|
|
542
542
|
}
|
|
543
|
-
const G = I != null && I.value ?
|
|
543
|
+
const G = I != null && I.value ? Zt(I.value) : "";
|
|
544
544
|
if (!G) {
|
|
545
545
|
p += 1, z += tt;
|
|
546
546
|
continue;
|
|
547
547
|
}
|
|
548
|
-
const ge = (v = I.value) != null && v.v && !I.value.p ? (R = (N = o.get((C = I.value) == null ? void 0 : C.s)) == null ? void 0 : N.n) == null ? void 0 : R.pattern : "",
|
|
549
|
-
if (ge &&
|
|
548
|
+
const ge = (v = I.value) != null && v.v && !I.value.p ? (R = (N = o.get((C = I.value) == null ? void 0 : C.s)) == null ? void 0 : N.n) == null ? void 0 : R.pattern : "", Yt = ge && it.getFormatInfo(ge).isDate;
|
|
549
|
+
if (ge && Yt && m.has(ge)) {
|
|
550
550
|
const k = (O = s.getCellRaw(I.row, I.col)) == null ? void 0 : O.v;
|
|
551
551
|
if (!k) {
|
|
552
552
|
z++;
|
|
@@ -606,12 +606,12 @@ function $t(t, e, r, s, n, l, i, o) {
|
|
|
606
606
|
a.set("empty", I), c.set("empty", [g]);
|
|
607
607
|
}
|
|
608
608
|
return {
|
|
609
|
-
filterTreeItems:
|
|
609
|
+
filterTreeItems: ii(Array.from(a.values())),
|
|
610
610
|
filterTreeMapCache: c
|
|
611
611
|
};
|
|
612
612
|
}
|
|
613
|
-
function
|
|
614
|
-
return Array.from(t).sort((e, r) => e.children && !r.children ? -1 : !e.children && r.children ? 1 :
|
|
613
|
+
function ii(t) {
|
|
614
|
+
return Array.from(t).sort((e, r) => e.children && !r.children ? -1 : !e.children && r.children ? 1 : si(e.title, r.title)).map((e) => (e.children && e.children.sort((r, s) => {
|
|
615
615
|
const n = Number.parseInt(r.key.split("-")[1], 10), l = Number.parseInt(s.key.split("-")[1], 10);
|
|
616
616
|
return n - l;
|
|
617
617
|
}).forEach((r) => {
|
|
@@ -621,9 +621,9 @@ function ti(t) {
|
|
|
621
621
|
});
|
|
622
622
|
}), e));
|
|
623
623
|
}
|
|
624
|
-
const
|
|
625
|
-
function
|
|
626
|
-
const r =
|
|
624
|
+
const ut = (t) => !Number.isNaN(Number(t)) && !Number.isNaN(Number.parseFloat(t));
|
|
625
|
+
function si(t, e) {
|
|
626
|
+
const r = ut(t), s = ut(e);
|
|
627
627
|
return r && s ? Number.parseFloat(t) - Number.parseFloat(e) : r && !s ? -1 : !r && s ? 1 : t.localeCompare(e);
|
|
628
628
|
}
|
|
629
629
|
function We(t, e) {
|
|
@@ -638,13 +638,13 @@ function We(t, e) {
|
|
|
638
638
|
}
|
|
639
639
|
return null;
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
return t.leaf ? t.checked : t.children ? t.children.every((e) =>
|
|
641
|
+
function Ht(t) {
|
|
642
|
+
return t.leaf ? t.checked : t.children ? t.children.every((e) => Ht(e)) : !0;
|
|
643
643
|
}
|
|
644
644
|
function ue(t, e) {
|
|
645
645
|
t.leaf && (e !== void 0 ? t.checked = e : t.checked = !t.checked), t.children && t.children.forEach((r) => ue(r, e));
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function Dt(t, e) {
|
|
648
648
|
const r = [];
|
|
649
649
|
return t.forEach((s) => {
|
|
650
650
|
const n = s.originValues ? e.some(
|
|
@@ -657,7 +657,7 @@ function Ht(t, e) {
|
|
|
657
657
|
if (n || l)
|
|
658
658
|
r.push({ ...s });
|
|
659
659
|
else if (s.children) {
|
|
660
|
-
const o =
|
|
660
|
+
const o = Dt(s.children, e);
|
|
661
661
|
if (o.length > 0) {
|
|
662
662
|
const a = o.reduce((c, h) => c + h.count, 0);
|
|
663
663
|
r.push({ ...s, count: a, children: o });
|
|
@@ -665,12 +665,12 @@ function Ht(t, e) {
|
|
|
665
665
|
}
|
|
666
666
|
}), r;
|
|
667
667
|
}
|
|
668
|
-
var
|
|
669
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
668
|
+
var ni = Object.getOwnPropertyDescriptor, et = (t, e, r, s) => {
|
|
669
|
+
for (var n = s > 1 ? void 0 : s ? ni(e, r) : e, l = t.length - 1, i; l >= 0; l--)
|
|
670
670
|
(i = t[l]) && (n = i(n) || n);
|
|
671
671
|
return n;
|
|
672
672
|
}, Ce = (t, e) => (r, s) => e(r, s, t), ye = /* @__PURE__ */ ((t) => (t[t.VALUES = 0] = "VALUES", t[t.CONDITIONS = 1] = "CONDITIONS", t))(ye || {});
|
|
673
|
-
|
|
673
|
+
vt("sheets-filter-ui.sheets-filter-panel.service");
|
|
674
674
|
let W = class extends me {
|
|
675
675
|
constructor(e, r) {
|
|
676
676
|
super();
|
|
@@ -679,7 +679,7 @@ let W = class extends me {
|
|
|
679
679
|
/* VALUES */
|
|
680
680
|
));
|
|
681
681
|
f(this, "filterBy$", this._filterBy$.asObservable());
|
|
682
|
-
f(this, "_filterByModel$", new
|
|
682
|
+
f(this, "_filterByModel$", new kr(1));
|
|
683
683
|
f(this, "filterByModel$", this._filterByModel$.asObservable());
|
|
684
684
|
f(this, "_filterByModel", null);
|
|
685
685
|
f(this, "_hasCriteria$", new q(!1));
|
|
@@ -789,7 +789,7 @@ let W = class extends me {
|
|
|
789
789
|
};
|
|
790
790
|
W = et([
|
|
791
791
|
Ce(0, E(X)),
|
|
792
|
-
Ce(1, E(
|
|
792
|
+
Ce(1, E(hr))
|
|
793
793
|
], W);
|
|
794
794
|
let Oe = class extends me {
|
|
795
795
|
constructor(e, r, s, n, l) {
|
|
@@ -891,22 +891,22 @@ let Re = class extends me {
|
|
|
891
891
|
f(this, "_manuallyUpdateFilterItems$");
|
|
892
892
|
f(this, "_searchString$");
|
|
893
893
|
f(this, "searchString$");
|
|
894
|
-
this._filterModel = e, this.col = r, this._commandService = l, this._treeMapCache = n, this._searchString$ = new q(""), this.searchString$ = this._searchString$.asObservable(), this._rawFilterItems$ = new q(s), this.rawFilterItems$ = this._rawFilterItems$.asObservable(), this._manuallyUpdateFilterItems$ = new
|
|
895
|
-
|
|
894
|
+
this._filterModel = e, this.col = r, this._commandService = l, this._treeMapCache = n, this._searchString$ = new q(""), this.searchString$ = this._searchString$.asObservable(), this._rawFilterItems$ = new q(s), this.rawFilterItems$ = this._rawFilterItems$.asObservable(), this._manuallyUpdateFilterItems$ = new xr(), this.filterItems$ = Br(
|
|
895
|
+
Wr([
|
|
896
896
|
this._searchString$.pipe(
|
|
897
|
-
|
|
898
|
-
|
|
897
|
+
Rt(500, void 0, { leading: !0, trailing: !0 }),
|
|
898
|
+
It(void 0)
|
|
899
899
|
),
|
|
900
900
|
this._rawFilterItems$
|
|
901
901
|
]).pipe(
|
|
902
902
|
ie(([i, o]) => {
|
|
903
903
|
if (!i) return o;
|
|
904
904
|
const c = i.toLowerCase().split(/\s+/).filter((h) => !!h);
|
|
905
|
-
return
|
|
905
|
+
return Dt(o, c);
|
|
906
906
|
})
|
|
907
907
|
),
|
|
908
908
|
this._manuallyUpdateFilterItems$
|
|
909
|
-
).pipe(
|
|
909
|
+
).pipe(Qr(1)), this.canApply$ = this.filterItems$.pipe(ie((i) => xe(i).checked > 0)), this.disposeWithMe(this.filterItems$.subscribe((i) => this._filterItems = i));
|
|
910
910
|
}
|
|
911
911
|
/**
|
|
912
912
|
* Create a model with targeting filter column. If there is not a filter column, the model would be created with
|
|
@@ -920,7 +920,7 @@ let Re = class extends me {
|
|
|
920
920
|
*/
|
|
921
921
|
static async fromFilterColumn(e, r, s) {
|
|
922
922
|
var w;
|
|
923
|
-
const n = e.get(Ge), l = e.get(K), i = e.get(Fe,
|
|
923
|
+
const n = e.get(Ge), l = e.get(K), i = e.get(Fe, gt.OPTIONAL), { unitId: o, subUnitId: a } = r, c = n.getUniverSheetInstance(o);
|
|
924
924
|
if (!c) throw new Error(`[ByValuesModel]: Workbook not found for filter model with unitId: ${o}!`);
|
|
925
925
|
const h = c == null ? void 0 : c.getSheetBySheetId(a);
|
|
926
926
|
if (!h) throw new Error(`[ByValuesModel]: Worksheet not found for filter model with unitId: ${o} and subUnitId: ${a}!`);
|
|
@@ -938,7 +938,7 @@ let Re = class extends me {
|
|
|
938
938
|
});
|
|
939
939
|
R = M.filterTreeItems, O = M.filterTreeMapCache;
|
|
940
940
|
} else {
|
|
941
|
-
const M =
|
|
941
|
+
const M = Ut(!!p, l, N, h, C, T, v, c.getStyles());
|
|
942
942
|
R = M.filterTreeItems, O = M.filterTreeMapCache;
|
|
943
943
|
}
|
|
944
944
|
return e.createInstance(Re, r, s, R, O);
|
|
@@ -972,7 +972,7 @@ let Re = class extends me {
|
|
|
972
972
|
const r = Te.deepClone(this._filterItems), s = We(r, e.key);
|
|
973
973
|
if (!s)
|
|
974
974
|
return;
|
|
975
|
-
const n =
|
|
975
|
+
const n = Ht(s);
|
|
976
976
|
ue(s, !n), this._manuallyUpdateFilterItems(r);
|
|
977
977
|
}
|
|
978
978
|
onFilterOnly(e) {
|
|
@@ -1039,7 +1039,7 @@ const se = "FILTER_PANEL_OPENED", Ie = {
|
|
|
1039
1039
|
type: Le.OPERATION,
|
|
1040
1040
|
handler: (t, e) => {
|
|
1041
1041
|
const r = t.get(we), s = t.get(V), n = t.get(W);
|
|
1042
|
-
t.get(Q).syncExecuteCommand(
|
|
1042
|
+
t.get(Q).syncExecuteCommand(Ir.id, { visible: !1 });
|
|
1043
1043
|
const { unitId: i, subUnitId: o, col: a } = e, c = s.getFilterModel(i, o);
|
|
1044
1044
|
return c ? (n.setupCol(c, a), r.getContextValue(se) || r.setContextValue(se, !0), !0) : !1;
|
|
1045
1045
|
}
|
|
@@ -1047,10 +1047,10 @@ const se = "FILTER_PANEL_OPENED", Ie = {
|
|
|
1047
1047
|
id: "sheet.operation.close-filter-panel",
|
|
1048
1048
|
type: Le.OPERATION,
|
|
1049
1049
|
handler: (t) => {
|
|
1050
|
-
const e = t.get(we), r = t.get(W), s = t.get(
|
|
1050
|
+
const e = t.get(we), r = t.get(W), s = t.get(Sr, gt.OPTIONAL);
|
|
1051
1051
|
return e.getContextValue(se) ? (e.setContextValue(se, !1), s == null || s.focus(), r.terminate()) : !1;
|
|
1052
1052
|
}
|
|
1053
|
-
},
|
|
1053
|
+
}, kt = {
|
|
1054
1054
|
id: "sheet.operation.apply-filter",
|
|
1055
1055
|
type: Le.OPERATION,
|
|
1056
1056
|
handler: (t, e) => {
|
|
@@ -1058,8 +1058,8 @@ const se = "FILTER_PANEL_OPENED", Ie = {
|
|
|
1058
1058
|
return t.get(W).changeFilterBy(r);
|
|
1059
1059
|
}
|
|
1060
1060
|
};
|
|
1061
|
-
var
|
|
1062
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
1061
|
+
var oi = Object.getOwnPropertyDescriptor, ai = (t, e, r, s) => {
|
|
1062
|
+
for (var n = s > 1 ? void 0 : s ? oi(e, r) : e, l = t.length - 1, i; l >= 0; l--)
|
|
1063
1063
|
(i = t[l]) && (n = i(n) || n);
|
|
1064
1064
|
return n;
|
|
1065
1065
|
}, ee = (t, e) => (r, s) => e(r, s, t);
|
|
@@ -1072,7 +1072,7 @@ let ne = class extends me {
|
|
|
1072
1072
|
this._commandService.beforeCommandExecuted((t) => {
|
|
1073
1073
|
var e, r, s;
|
|
1074
1074
|
if (t.id === pe.id) {
|
|
1075
|
-
const n = this._injector.get(Ge), l =
|
|
1075
|
+
const n = this._injector.get(Ge), l = pr(n);
|
|
1076
1076
|
if (!l) return;
|
|
1077
1077
|
const { unitId: i, subUnitId: o, worksheet: a } = l, c = (e = this._sheetsFilterService.getFilterModel(i, o)) == null ? void 0 : e.getRange();
|
|
1078
1078
|
let h;
|
|
@@ -1085,7 +1085,7 @@ let ne = class extends me {
|
|
|
1085
1085
|
const m = (r = this._sheetsSelectionService.getCurrentLastSelection()) == null ? void 0 : r.range;
|
|
1086
1086
|
if (m) {
|
|
1087
1087
|
let g = { ...m };
|
|
1088
|
-
g = m.startColumn === m.endColumn && m.startRow === m.endRow ?
|
|
1088
|
+
g = m.startColumn === m.endColumn && m.startRow === m.endRow ? fr(g, { left: !0, right: !0, up: !0, down: !0 }, a) : g, h = this._sheetPermissionCheckPermission.permissionCheckWithRanges({
|
|
1089
1089
|
rangeTypes: [ce],
|
|
1090
1090
|
worksheetTypes: [le, ae]
|
|
1091
1091
|
}, [g], i, o);
|
|
@@ -1108,13 +1108,13 @@ let ne = class extends me {
|
|
|
1108
1108
|
);
|
|
1109
1109
|
}
|
|
1110
1110
|
};
|
|
1111
|
-
ne =
|
|
1111
|
+
ne = ai([
|
|
1112
1112
|
ee(0, E(V)),
|
|
1113
1113
|
ee(1, E(K)),
|
|
1114
1114
|
ee(2, Q),
|
|
1115
|
-
ee(3, E(
|
|
1115
|
+
ee(3, E(dr)),
|
|
1116
1116
|
ee(4, E(X)),
|
|
1117
|
-
ee(5, E(
|
|
1117
|
+
ee(5, E(mr))
|
|
1118
1118
|
], ne);
|
|
1119
1119
|
var P = function() {
|
|
1120
1120
|
return P = Object.assign || function(t) {
|
|
@@ -1124,23 +1124,23 @@ var P = function() {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
return t;
|
|
1126
1126
|
}, P.apply(this, arguments);
|
|
1127
|
-
},
|
|
1127
|
+
}, li = function(t, e) {
|
|
1128
1128
|
var r = {};
|
|
1129
1129
|
for (var s in t) Object.prototype.hasOwnProperty.call(t, s) && e.indexOf(s) < 0 && (r[s] = t[s]);
|
|
1130
1130
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1131
1131
|
for (var n = 0, s = Object.getOwnPropertySymbols(t); n < s.length; n++)
|
|
1132
1132
|
e.indexOf(s[n]) < 0 && Object.prototype.propertyIsEnumerable.call(t, s[n]) && (r[s[n]] = t[s[n]]);
|
|
1133
1133
|
return r;
|
|
1134
|
-
},
|
|
1135
|
-
var r = t.icon, s = t.id, n = t.className, l = t.extend, i =
|
|
1136
|
-
return
|
|
1134
|
+
}, xt = wt(function(t, e) {
|
|
1135
|
+
var r = t.icon, s = t.id, n = t.className, l = t.extend, i = li(t, ["icon", "id", "className", "extend"]), o = "univerjs-icon univerjs-icon-".concat(s, " ").concat(n || "").trim(), a = Jr("_".concat(hi()));
|
|
1136
|
+
return Bt(r, "".concat(s), { defIds: r.defIds, idSuffix: a.current }, P({ ref: e, className: o }, i), l);
|
|
1137
1137
|
});
|
|
1138
|
-
function
|
|
1139
|
-
return
|
|
1140
|
-
return
|
|
1138
|
+
function Bt(t, e, r, s, n) {
|
|
1139
|
+
return Mt(t.tag, P(P({ key: e }, ci(t, r, n)), s), (ui(t, r).children || []).map(function(l, i) {
|
|
1140
|
+
return Bt(l, "".concat(e, "-").concat(t.tag, "-").concat(i), r, void 0, n);
|
|
1141
1141
|
}));
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function ci(t, e, r) {
|
|
1144
1144
|
var s = P({}, t.attrs);
|
|
1145
1145
|
r != null && r.colorChannel1 && s.fill === "colorChannel1" && (s.fill = r.colorChannel1), t.tag === "mask" && s.id && (s.id = s.id + e.idSuffix), Object.entries(s).forEach(function(l) {
|
|
1146
1146
|
var i = l[0], o = l[1];
|
|
@@ -1152,42 +1152,42 @@ function ai(t, e, r) {
|
|
|
1152
1152
|
typeof o == "string" && (s[i] = o.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
|
|
1153
1153
|
})), s;
|
|
1154
1154
|
}
|
|
1155
|
-
function
|
|
1155
|
+
function ui(t, e) {
|
|
1156
1156
|
var r, s = e.defIds;
|
|
1157
1157
|
return !s || s.length === 0 ? t : t.tag === "defs" && (!((r = t.children) === null || r === void 0) && r.length) ? P(P({}, t), { children: t.children.map(function(n) {
|
|
1158
1158
|
return typeof n.attrs.id == "string" && s && s.includes(n.attrs.id) ? P(P({}, n), { attrs: P(P({}, n.attrs), { id: n.attrs.id + e.idSuffix }) }) : n;
|
|
1159
1159
|
}) }) : t;
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function hi() {
|
|
1162
1162
|
return Math.random().toString(36).substring(2, 8);
|
|
1163
1163
|
}
|
|
1164
|
-
|
|
1165
|
-
var
|
|
1166
|
-
return
|
|
1164
|
+
xt.displayName = "UniverIcon";
|
|
1165
|
+
var di = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.32182 2.60967C2.98161 2.60967 2.79671 3.0074 3.01601 3.2675L6.85819 7.8246C6.94943 7.93282 6.99947 8.06981 6.99947 8.21136V12.7338C6.99947 12.898 7.0998 13.0455 7.2525 13.1058L8.73833 13.6928C9.00085 13.7965 9.28531 13.6031 9.28531 13.3208V8.21136C9.28531 8.06981 9.33535 7.93282 9.42659 7.8246L13.2688 3.2675C13.4881 3.0074 13.3032 2.60967 12.963 2.60967H3.32182ZM2.09858 4.04101C1.22139 3.0006 1.96097 1.40967 3.32182 1.40967H12.963C14.3238 1.40967 15.0634 3.0006 14.1862 4.04101L10.4853 8.43054V13.3208C10.4853 14.4498 9.34747 15.2237 8.29742 14.8089L6.81158 14.2219C6.20078 13.9806 5.79947 13.3905 5.79947 12.7338V8.43054L2.09858 4.04101Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Wt = wt(function(t, e) {
|
|
1166
|
+
return Mt(xt, Object.assign({}, t, {
|
|
1167
1167
|
id: "filter-icon",
|
|
1168
1168
|
ref: e,
|
|
1169
|
-
icon:
|
|
1169
|
+
icon: di
|
|
1170
1170
|
}));
|
|
1171
1171
|
});
|
|
1172
|
-
|
|
1173
|
-
function
|
|
1172
|
+
Wt.displayName = "FilterIcon";
|
|
1173
|
+
function mi(t) {
|
|
1174
1174
|
var p, T;
|
|
1175
1175
|
const { model: e } = t, r = te(K), s = B(e.conditionItem$, void 0), n = B(e.filterConditionFormParams$, void 0), l = n != null && n.and ? "AND" : "OR", i = D((v) => {
|
|
1176
1176
|
e.onConditionFormChange({ and: v === "AND" });
|
|
1177
|
-
}, [e]), o =
|
|
1177
|
+
}, [e]), o = pi(r), a = D((v) => {
|
|
1178
1178
|
e.onPrimaryConditionChange(v);
|
|
1179
|
-
}, [e]), c =
|
|
1179
|
+
}, [e]), c = fi(r), h = D((v) => {
|
|
1180
1180
|
e.onConditionFormChange(v);
|
|
1181
1181
|
}, [e]), m = r.t("sheets-filter.panel.input-values-placeholder");
|
|
1182
1182
|
function g(v, C, N) {
|
|
1183
1183
|
const R = d.getItemByOperator(v).numOfParameters === 1;
|
|
1184
|
-
return /* @__PURE__ */ b(
|
|
1185
|
-
N === "operator2" && /* @__PURE__ */ b(
|
|
1186
|
-
/* @__PURE__ */ S(
|
|
1187
|
-
/* @__PURE__ */ S(
|
|
1184
|
+
return /* @__PURE__ */ b(ct, { children: [
|
|
1185
|
+
N === "operator2" && /* @__PURE__ */ b(Yr, { value: l, onChange: i, children: [
|
|
1186
|
+
/* @__PURE__ */ S(at, { value: "AND", children: r.t("sheets-filter.panel.and") }),
|
|
1187
|
+
/* @__PURE__ */ S(at, { value: "OR", children: r.t("sheets-filter.panel.or") })
|
|
1188
1188
|
] }),
|
|
1189
1189
|
/* @__PURE__ */ S(
|
|
1190
|
-
|
|
1190
|
+
ot,
|
|
1191
1191
|
{
|
|
1192
1192
|
value: v,
|
|
1193
1193
|
options: c,
|
|
@@ -1195,7 +1195,7 @@ function hi(t) {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
),
|
|
1197
1197
|
R && /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(
|
|
1198
|
-
|
|
1198
|
+
bt,
|
|
1199
1199
|
{
|
|
1200
1200
|
className: "univer-mt-2",
|
|
1201
1201
|
value: C,
|
|
@@ -1210,13 +1210,13 @@ function hi(t) {
|
|
|
1210
1210
|
{
|
|
1211
1211
|
"data-u-comp": "sheets-filter-panel-conditions-container",
|
|
1212
1212
|
className: "univer-flex univer-h-full univer-flex-col",
|
|
1213
|
-
children: s && n && /* @__PURE__ */ b(
|
|
1214
|
-
/* @__PURE__ */ S(
|
|
1213
|
+
children: s && n && /* @__PURE__ */ b(ct, { children: [
|
|
1214
|
+
/* @__PURE__ */ S(ot, { value: s.operator, options: o, onChange: a }),
|
|
1215
1215
|
d.getItemByOperator(s.operator).numOfParameters !== 0 ? /* @__PURE__ */ b(
|
|
1216
1216
|
"div",
|
|
1217
1217
|
{
|
|
1218
1218
|
"data-u-comp": "sheets-filter-panel-conditions-container-inner",
|
|
1219
|
-
className:
|
|
1219
|
+
className: At("univer-mt-2 univer-flex-grow univer-overflow-hidden univer-rounded-md univer-p-2", Pt),
|
|
1220
1220
|
children: [
|
|
1221
1221
|
s.numOfParameters >= 1 && g(n.operator1, (p = n.val1) != null ? p : "", "operator1"),
|
|
1222
1222
|
s.numOfParameters >= 2 && g(n.operator2, (T = n.val2) != null ? T : "", "operator2"),
|
|
@@ -1239,7 +1239,7 @@ function hi(t) {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
);
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function pi(t) {
|
|
1243
1243
|
const e = t.getCurrentLocale();
|
|
1244
1244
|
return ze(() => [
|
|
1245
1245
|
{
|
|
@@ -1281,11 +1281,11 @@ function di(t) {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
], [e, t]);
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function fi(t) {
|
|
1285
1285
|
const e = t.getCurrentLocale();
|
|
1286
1286
|
return ze(() => d.ALL_CONDITIONS.filter((r) => r.numOfParameters !== 2).map((r) => ({ label: t.t(r.label), value: r.operator })), [e, t]);
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function _i(t) {
|
|
1289
1289
|
const { model: e } = t, r = te(K), s = B(e.searchString$, "", !0), n = B(e.filterItems$, void 0, !0), l = r.t("sheets-filter.panel.filter-only"), i = xe(n), o = i.checked > 0 && i.unchecked === 0, a = i.checked > 0 && i.unchecked > 0, c = e.treeMapCache, h = D(() => {
|
|
1290
1290
|
e.onCheckAllToggled(!o);
|
|
1291
1291
|
}, [e, o]), m = D((p) => {
|
|
@@ -1304,7 +1304,7 @@ function pi(t) {
|
|
|
1304
1304
|
className: "univer-flex univer-h-full univer-flex-col",
|
|
1305
1305
|
children: [
|
|
1306
1306
|
/* @__PURE__ */ S(
|
|
1307
|
-
|
|
1307
|
+
bt,
|
|
1308
1308
|
{
|
|
1309
1309
|
autoFocus: !0,
|
|
1310
1310
|
value: s,
|
|
@@ -1316,7 +1316,7 @@ function pi(t) {
|
|
|
1316
1316
|
"div",
|
|
1317
1317
|
{
|
|
1318
1318
|
"data-u-comp": "sheets-filter-panel",
|
|
1319
|
-
className:
|
|
1319
|
+
className: At("univer-mt-2 univer-box-border univer-flex univer-flex-grow univer-flex-col univer-overflow-hidden univer-rounded-md univer-px-2 univer-py-2.5", Pt),
|
|
1320
1320
|
children: [
|
|
1321
1321
|
/* @__PURE__ */ S(
|
|
1322
1322
|
"div",
|
|
@@ -1330,7 +1330,7 @@ function pi(t) {
|
|
|
1330
1330
|
className: "univer-box-border univer-flex univer-h-7 univer-items-center univer-rounded-md univer-pb-0 univer-pl-5 univer-pr-0.5 univer-pt-0 univer-text-sm",
|
|
1331
1331
|
children: [
|
|
1332
1332
|
/* @__PURE__ */ S(
|
|
1333
|
-
|
|
1333
|
+
qr,
|
|
1334
1334
|
{
|
|
1335
1335
|
indeterminate: a,
|
|
1336
1336
|
disabled: n.length === 0,
|
|
@@ -1360,7 +1360,7 @@ function pi(t) {
|
|
|
1360
1360
|
}
|
|
1361
1361
|
),
|
|
1362
1362
|
/* @__PURE__ */ S("div", { "data-u-comp": "sheets-filter-panel-values-virtual", className: "univer-flex-grow", children: /* @__PURE__ */ S(
|
|
1363
|
-
|
|
1363
|
+
Kr,
|
|
1364
1364
|
{
|
|
1365
1365
|
data: n,
|
|
1366
1366
|
defaultExpandAll: !1,
|
|
@@ -1418,17 +1418,17 @@ function pi(t) {
|
|
|
1418
1418
|
}
|
|
1419
1419
|
);
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function vi() {
|
|
1422
1422
|
var C;
|
|
1423
|
-
const t = te(W), e = te(K), r = te(Q), s = B(t.filterBy$, void 0, !0), n = B(t.filterByModel$, void 0, !1), l = B(() => (n == null ? void 0 : n.canApply$) || fe(!1), void 0, !1, [n]), i =
|
|
1424
|
-
r.executeCommand(
|
|
1423
|
+
const t = te(W), e = te(K), r = te(Q), s = B(t.filterBy$, void 0, !0), n = B(t.filterByModel$, void 0, !1), l = B(() => (n == null ? void 0 : n.canApply$) || fe(!1), void 0, !1, [n]), i = gi(e), o = !B(t.hasCriteria$), a = D((N) => {
|
|
1424
|
+
r.executeCommand(kt.id, { filterBy: N });
|
|
1425
1425
|
}, [r]), c = D(async () => {
|
|
1426
1426
|
await (n == null ? void 0 : n.clear()), r.executeCommand(he.id);
|
|
1427
1427
|
}, [n, r]), h = D(() => {
|
|
1428
1428
|
r.executeCommand(he.id);
|
|
1429
1429
|
}, [r]), m = D(async () => {
|
|
1430
1430
|
await (n == null ? void 0 : n.apply()), r.executeCommand(he.id);
|
|
1431
|
-
}, [n, r]), p = (C = te(V).activeFilterModel) == null ? void 0 : C.getRange(), T = t.col, v =
|
|
1431
|
+
}, [n, r]), p = (C = te(V).activeFilterModel) == null ? void 0 : C.getRange(), T = t.col, v = Er(Ar.FILTER_PANEL_EMBED_POINT);
|
|
1432
1432
|
return /* @__PURE__ */ b(
|
|
1433
1433
|
"div",
|
|
1434
1434
|
{
|
|
@@ -1436,14 +1436,14 @@ function fi() {
|
|
|
1436
1436
|
className: "univer-box-border univer-flex univer-h-[442px] univer-w-[312px] univer-flex-col univer-rounded-lg univer-bg-white univer-p-4 univer-shadow-lg dark:!univer-border-gray-600 dark:!univer-bg-gray-700",
|
|
1437
1437
|
children: [
|
|
1438
1438
|
/* @__PURE__ */ S(
|
|
1439
|
-
|
|
1439
|
+
Tr,
|
|
1440
1440
|
{
|
|
1441
1441
|
components: v,
|
|
1442
1442
|
sharedProps: { range: p, colIndex: T, onClose: h }
|
|
1443
1443
|
}
|
|
1444
1444
|
),
|
|
1445
1445
|
/* @__PURE__ */ S("div", { className: "univer-mb-1 univer-flex-shrink-0 univer-flex-grow-0", children: /* @__PURE__ */ S(
|
|
1446
|
-
|
|
1446
|
+
Xr,
|
|
1447
1447
|
{
|
|
1448
1448
|
value: s,
|
|
1449
1449
|
items: i,
|
|
@@ -1455,7 +1455,7 @@ function fi() {
|
|
|
1455
1455
|
{
|
|
1456
1456
|
"data-u-comp": "sheets-filter-panel-content",
|
|
1457
1457
|
className: "univer-flex-shrink univer-flex-grow univer-pt-2",
|
|
1458
|
-
children: s === ye.VALUES ? /* @__PURE__ */ S(
|
|
1458
|
+
children: s === ye.VALUES ? /* @__PURE__ */ S(_i, { model: n }) : /* @__PURE__ */ S(mi, { model: n })
|
|
1459
1459
|
}
|
|
1460
1460
|
) : /* @__PURE__ */ S("div", { className: "univer-flex-1" }),
|
|
1461
1461
|
/* @__PURE__ */ b(
|
|
@@ -1476,14 +1476,14 @@ function fi() {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
);
|
|
1478
1478
|
}
|
|
1479
|
-
function
|
|
1479
|
+
function gi(t) {
|
|
1480
1480
|
const e = t.getCurrentLocale();
|
|
1481
1481
|
return ze(() => [
|
|
1482
1482
|
{ label: t.t("sheets-filter.panel.by-values"), value: ye.VALUES },
|
|
1483
1483
|
{ label: t.t("sheets-filter.panel.by-conditions"), value: ye.CONDITIONS }
|
|
1484
1484
|
], [e, t]);
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1486
|
+
function Si(t) {
|
|
1487
1487
|
const e = t.get(V);
|
|
1488
1488
|
return {
|
|
1489
1489
|
id: pe.id,
|
|
@@ -1492,9 +1492,9 @@ function vi(t) {
|
|
|
1492
1492
|
tooltip: "sheets-filter.toolbar.smart-toggle-filter-tooltip",
|
|
1493
1493
|
hidden$: Ke(t, Z.UNIVER_SHEET),
|
|
1494
1494
|
activated$: e.activeFilterModel$.pipe(ie((r) => !!r)),
|
|
1495
|
-
disabled$:
|
|
1495
|
+
disabled$: Pr(
|
|
1496
1496
|
t,
|
|
1497
|
-
|
|
1497
|
+
br(
|
|
1498
1498
|
t,
|
|
1499
1499
|
{
|
|
1500
1500
|
worksheetTypes: [ae, le],
|
|
@@ -1504,7 +1504,7 @@ function vi(t) {
|
|
|
1504
1504
|
)
|
|
1505
1505
|
};
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function Ei(t) {
|
|
1508
1508
|
const e = t.get(V);
|
|
1509
1509
|
return {
|
|
1510
1510
|
id: qe.id,
|
|
@@ -1517,7 +1517,7 @@ function gi(t) {
|
|
|
1517
1517
|
}))
|
|
1518
1518
|
};
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function Ti(t) {
|
|
1521
1521
|
const e = t.get(V);
|
|
1522
1522
|
return {
|
|
1523
1523
|
id: Ye.id,
|
|
@@ -1530,25 +1530,25 @@ function Si(t) {
|
|
|
1530
1530
|
}))
|
|
1531
1531
|
};
|
|
1532
1532
|
}
|
|
1533
|
-
const
|
|
1534
|
-
[
|
|
1533
|
+
const Ni = {
|
|
1534
|
+
[Nr.ORGANIZATION]: {
|
|
1535
1535
|
[pe.id]: {
|
|
1536
1536
|
order: 2,
|
|
1537
|
-
menuItemFactory:
|
|
1537
|
+
menuItemFactory: Si,
|
|
1538
1538
|
[qe.id]: {
|
|
1539
1539
|
order: 0,
|
|
1540
|
-
menuItemFactory:
|
|
1540
|
+
menuItemFactory: Ei
|
|
1541
1541
|
},
|
|
1542
1542
|
[Ye.id]: {
|
|
1543
1543
|
order: 1,
|
|
1544
|
-
menuItemFactory:
|
|
1544
|
+
menuItemFactory: Ti
|
|
1545
1545
|
}
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
1548
|
-
}, x = 16,
|
|
1549
|
-
class
|
|
1548
|
+
}, x = 16, Fi = new Path2D("M3.30363 3C2.79117 3 2.51457 3.60097 2.84788 3.99024L6.8 8.60593V12.5662C6.8 12.7184 6.8864 12.8575 7.02289 12.9249L8.76717 13.7863C8.96655 13.8847 9.2 13.7396 9.2 13.5173V8.60593L13.1521 3.99024C13.4854 3.60097 13.2088 3 12.6964 3H3.30363Z");
|
|
1549
|
+
class ht {
|
|
1550
1550
|
static drawNoCriteria(e, r, s, n) {
|
|
1551
|
-
e.save(),
|
|
1551
|
+
e.save(), lt.drawWith(e, {
|
|
1552
1552
|
radius: 2,
|
|
1553
1553
|
width: x,
|
|
1554
1554
|
height: x,
|
|
@@ -1556,21 +1556,21 @@ class ut {
|
|
|
1556
1556
|
}), e.lineCap = "square", e.strokeStyle = s, e.scale(r / x, r / x), e.beginPath(), e.lineWidth = 1, e.lineCap = "round", e.moveTo(3, 4), e.lineTo(13, 4), e.moveTo(4.5, 8), e.lineTo(11.5, 8), e.moveTo(6, 12), e.lineTo(10, 12), e.stroke(), e.restore();
|
|
1557
1557
|
}
|
|
1558
1558
|
static drawHasCriteria(e, r, s, n) {
|
|
1559
|
-
e.save(),
|
|
1559
|
+
e.save(), lt.drawWith(e, {
|
|
1560
1560
|
radius: 2,
|
|
1561
1561
|
width: x,
|
|
1562
1562
|
height: x,
|
|
1563
1563
|
fill: n
|
|
1564
|
-
}), e.scale(r / x, r / x), e.fillStyle = s, e.fill(
|
|
1564
|
+
}), e.scale(r / x, r / x), e.fillStyle = s, e.fill(Fi), e.restore();
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
|
-
var
|
|
1568
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
1567
|
+
var Ci = Object.getOwnPropertyDescriptor, yi = (t, e, r, s) => {
|
|
1568
|
+
for (var n = s > 1 ? void 0 : s ? Ci(e, r) : e, l = t.length - 1, i; l >= 0; l--)
|
|
1569
1569
|
(i = t[l]) && (n = i(n) || n);
|
|
1570
1570
|
return n;
|
|
1571
1571
|
}, De = (t, e) => (r, s) => e(r, s, t);
|
|
1572
1572
|
const H = 16, Se = 1;
|
|
1573
|
-
let Qe = class extends
|
|
1573
|
+
let Qe = class extends zr {
|
|
1574
1574
|
constructor(e, r, s, n, l) {
|
|
1575
1575
|
super(e, r);
|
|
1576
1576
|
f(this, "_cellWidth", 0);
|
|
@@ -1591,7 +1591,7 @@ let Qe = class extends Xr {
|
|
|
1591
1591
|
const i = new Path2D();
|
|
1592
1592
|
i.rect(n, l, s, r), e.clip(i);
|
|
1593
1593
|
const { hasCriteria: o } = this._filterParams, a = this._themeService.getColorFromTheme("primary.600"), c = this._hovered ? this._themeService.getColorFromTheme("gray.50") : "rgba(255, 255, 255, 1.0)";
|
|
1594
|
-
o ?
|
|
1594
|
+
o ? ht.drawHasCriteria(e, H, a, c) : ht.drawNoCriteria(e, H, a, c), e.restore();
|
|
1595
1595
|
}
|
|
1596
1596
|
onPointerDown(e) {
|
|
1597
1597
|
if (e.button === 2)
|
|
@@ -1612,18 +1612,18 @@ let Qe = class extends Xr {
|
|
|
1612
1612
|
this._hovered = !1, this.makeDirty(!0);
|
|
1613
1613
|
}
|
|
1614
1614
|
};
|
|
1615
|
-
Qe =
|
|
1615
|
+
Qe = yi([
|
|
1616
1616
|
De(2, we),
|
|
1617
1617
|
De(3, Q),
|
|
1618
|
-
De(4, E(
|
|
1618
|
+
De(4, E(St))
|
|
1619
1619
|
], Qe);
|
|
1620
|
-
var
|
|
1621
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
1620
|
+
var Oi = Object.getOwnPropertyDescriptor, Ri = (t, e, r, s) => {
|
|
1621
|
+
for (var n = s > 1 ? void 0 : s ? Oi(e, r) : e, l = t.length - 1, i; l >= 0; l--)
|
|
1622
1622
|
(i = t[l]) && (n = i(n) || n);
|
|
1623
1623
|
return n;
|
|
1624
1624
|
}, Y = (t, e) => (r, s) => e(r, s, t);
|
|
1625
|
-
const
|
|
1626
|
-
let Ve = class extends
|
|
1625
|
+
const Ii = 1e3, Ai = 5e3;
|
|
1626
|
+
let Ve = class extends Et {
|
|
1627
1627
|
constructor(e, r, s, n, l, i, o, a) {
|
|
1628
1628
|
super();
|
|
1629
1629
|
f(this, "_filterRangeShape", null);
|
|
@@ -1646,28 +1646,28 @@ let Ve = class extends St {
|
|
|
1646
1646
|
range: l == null ? void 0 : l.getRange(),
|
|
1647
1647
|
skeleton: e.skeleton
|
|
1648
1648
|
});
|
|
1649
|
-
return
|
|
1650
|
-
|
|
1649
|
+
return zt(this._commandService.onCommandExecuted.bind(this._commandService)).pipe(
|
|
1650
|
+
Vr(
|
|
1651
1651
|
([c]) => {
|
|
1652
1652
|
var h;
|
|
1653
|
-
return c.type === Le.MUTATION && ((h = c.params) == null ? void 0 : h.unitId) === r.getUnitId() && (
|
|
1653
|
+
return c.type === Le.MUTATION && ((h = c.params) == null ? void 0 : h.unitId) === r.getUnitId() && (sr.has(c.id) || c.id === vr.id);
|
|
1654
1654
|
}
|
|
1655
1655
|
),
|
|
1656
|
-
|
|
1656
|
+
Rt(20, void 0, { leading: !1, trailing: !0 }),
|
|
1657
1657
|
ie(i),
|
|
1658
|
-
|
|
1658
|
+
It(i())
|
|
1659
1659
|
// must trigger once
|
|
1660
1660
|
);
|
|
1661
1661
|
}),
|
|
1662
|
-
|
|
1662
|
+
Gr(this.dispose$)
|
|
1663
1663
|
).subscribe((e) => {
|
|
1664
1664
|
this._disposeRendering(), !(!e || !e.range) && (this._renderRange(e.range, e.skeleton), this._renderButtons(e));
|
|
1665
1665
|
});
|
|
1666
1666
|
}
|
|
1667
1667
|
_renderRange(e, r) {
|
|
1668
|
-
const { scene: s } = this._context, { rowHeaderWidth: n, columnHeaderHeight: l } = r, i = this._filterRangeShape = new
|
|
1668
|
+
const { scene: s } = this._context, { rowHeaderWidth: n, columnHeaderHeight: l } = r, i = this._filterRangeShape = new Mr(
|
|
1669
1669
|
s,
|
|
1670
|
-
|
|
1670
|
+
Ii,
|
|
1671
1671
|
this._themeService,
|
|
1672
1672
|
{
|
|
1673
1673
|
rowHeaderWidth: n,
|
|
@@ -1675,7 +1675,7 @@ let Ve = class extends St {
|
|
|
1675
1675
|
enableAutoFill: !1,
|
|
1676
1676
|
highlightHeader: !1
|
|
1677
1677
|
}
|
|
1678
|
-
), a =
|
|
1678
|
+
), a = $r({
|
|
1679
1679
|
range: e,
|
|
1680
1680
|
primary: null,
|
|
1681
1681
|
style: { fill: "rgba(0, 0, 0, 0.0)" }
|
|
@@ -1687,7 +1687,7 @@ let Ve = class extends St {
|
|
|
1687
1687
|
this._interceptCellContent(n, i, e.range);
|
|
1688
1688
|
const { startColumn: a, endColumn: c, startRow: h } = r;
|
|
1689
1689
|
for (let m = a; m <= c; m++) {
|
|
1690
|
-
const g = `sheets-filter-button-${m}`, p =
|
|
1690
|
+
const g = `sheets-filter-button-${m}`, p = Ur(h, m, o, l), { startX: T, startY: v, endX: C, endY: N } = p, R = C - T, O = N - v;
|
|
1691
1691
|
if (O <= Se || R <= Se)
|
|
1692
1692
|
continue;
|
|
1693
1693
|
const w = !!s.getFilterColumn(m), M = C - H - Se, _e = N - H - Se, ve = {
|
|
@@ -1695,7 +1695,7 @@ let Ve = class extends St {
|
|
|
1695
1695
|
top: _e,
|
|
1696
1696
|
height: H,
|
|
1697
1697
|
width: H,
|
|
1698
|
-
zIndex:
|
|
1698
|
+
zIndex: Ai,
|
|
1699
1699
|
cellHeight: O,
|
|
1700
1700
|
cellWidth: R,
|
|
1701
1701
|
filterParams: { unitId: n, subUnitId: i, col: m, hasCriteria: w }
|
|
@@ -1706,8 +1706,8 @@ let Ve = class extends St {
|
|
|
1706
1706
|
}
|
|
1707
1707
|
_interceptCellContent(e, r, s) {
|
|
1708
1708
|
const { startRow: n, startColumn: l, endColumn: i } = s;
|
|
1709
|
-
this._buttonRenderDisposable = this._sheetInterceptorService.intercept(
|
|
1710
|
-
effect:
|
|
1709
|
+
this._buttonRenderDisposable = this._sheetInterceptorService.intercept(gr.CELL_CONTENT, {
|
|
1710
|
+
effect: Jt.Style,
|
|
1711
1711
|
handler: (o, a, c) => {
|
|
1712
1712
|
const { row: h, col: m, unitId: g, subUnitId: p } = a;
|
|
1713
1713
|
return g !== e || p !== r || h !== n || m < l || m > i || ((!o || o === a.rawData) && (o = { ...a.rawData }), o.fontRenderExtension = {
|
|
@@ -1723,50 +1723,50 @@ let Ve = class extends St {
|
|
|
1723
1723
|
(e = this._filterRangeShape) == null || e.dispose(), this._filterButtonShapes.forEach((s) => s.dispose()), (r = this._buttonRenderDisposable) == null || r.dispose(), this._filterRangeShape = null, this._buttonRenderDisposable = null, this._filterButtonShapes = [];
|
|
1724
1724
|
}
|
|
1725
1725
|
};
|
|
1726
|
-
Ve =
|
|
1726
|
+
Ve = Ri([
|
|
1727
1727
|
Y(1, E(X)),
|
|
1728
|
-
Y(2, E(
|
|
1728
|
+
Y(2, E(Lr)),
|
|
1729
1729
|
Y(3, E(V)),
|
|
1730
|
-
Y(4, E(
|
|
1731
|
-
Y(5, E(
|
|
1730
|
+
Y(4, E(St)),
|
|
1731
|
+
Y(5, E(_r)),
|
|
1732
1732
|
Y(6, Q),
|
|
1733
|
-
Y(7,
|
|
1733
|
+
Y(7, wr)
|
|
1734
1734
|
], Ve);
|
|
1735
|
-
var
|
|
1736
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
1735
|
+
var Pi = Object.getOwnPropertyDescriptor, bi = (t, e, r, s) => {
|
|
1736
|
+
for (var n = s > 1 ? void 0 : s ? Pi(e, r) : e, l = t.length - 1, i; l >= 0; l--)
|
|
1737
1737
|
(i = t[l]) && (n = i(n) || n);
|
|
1738
1738
|
return n;
|
|
1739
|
-
},
|
|
1740
|
-
let de = class extends
|
|
1739
|
+
}, dt = (t, e) => (r, s) => e(r, s, t);
|
|
1740
|
+
let de = class extends Et {
|
|
1741
1741
|
constructor(t, e) {
|
|
1742
1742
|
super(), this._renderManagerService = t, this._sheetsRenderService = e, [
|
|
1743
|
-
ir,
|
|
1744
|
-
sr,
|
|
1745
1743
|
nr,
|
|
1746
|
-
or
|
|
1744
|
+
or,
|
|
1745
|
+
ar,
|
|
1746
|
+
lr
|
|
1747
1747
|
].forEach((r) => this.disposeWithMe(this._sheetsRenderService.registerSkeletonChangingMutations(r.id))), this.disposeWithMe(this._renderManagerService.registerRenderModule(
|
|
1748
1748
|
Z.UNIVER_SHEET,
|
|
1749
1749
|
[Ve]
|
|
1750
1750
|
));
|
|
1751
1751
|
}
|
|
1752
1752
|
};
|
|
1753
|
-
de =
|
|
1754
|
-
|
|
1755
|
-
|
|
1753
|
+
de = bi([
|
|
1754
|
+
dt(0, Lt),
|
|
1755
|
+
dt(1, E(Ot))
|
|
1756
1756
|
], de);
|
|
1757
|
-
const
|
|
1757
|
+
const Li = {
|
|
1758
1758
|
id: pe.id,
|
|
1759
|
-
binding:
|
|
1759
|
+
binding: Fr.L | nt.CTRL_COMMAND | nt.SHIFT,
|
|
1760
1760
|
description: "sheets-filter.shortcut.smart-toggle-filter",
|
|
1761
|
-
preconditions:
|
|
1761
|
+
preconditions: Hr,
|
|
1762
1762
|
group: "4_sheet-edit"
|
|
1763
1763
|
};
|
|
1764
|
-
var
|
|
1765
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
1764
|
+
var wi = Object.getOwnPropertyDescriptor, Mi = (t, e, r, s) => {
|
|
1765
|
+
for (var n = s > 1 ? void 0 : s ? wi(e, r) : e, l = t.length - 1, i; l >= 0; l--)
|
|
1766
1766
|
(i = t[l]) && (n = i(n) || n);
|
|
1767
1767
|
return n;
|
|
1768
1768
|
}, A = (t, e) => (r, s) => e(r, s, t);
|
|
1769
|
-
const
|
|
1769
|
+
const mt = "FILTER_PANEL_POPUP";
|
|
1770
1770
|
let Ae = class extends de {
|
|
1771
1771
|
constructor(e, r, s, n, l, i, o, a, c, h, m, g, p) {
|
|
1772
1772
|
super(p, g);
|
|
@@ -1778,7 +1778,7 @@ let Ae = class extends de {
|
|
|
1778
1778
|
}
|
|
1779
1779
|
_initShortcuts() {
|
|
1780
1780
|
[
|
|
1781
|
-
|
|
1781
|
+
Li
|
|
1782
1782
|
].forEach((e) => {
|
|
1783
1783
|
this.disposeWithMe(this._shortcutService.registerShortcut(e));
|
|
1784
1784
|
});
|
|
@@ -1786,12 +1786,12 @@ let Ae = class extends de {
|
|
|
1786
1786
|
_initCommands() {
|
|
1787
1787
|
[
|
|
1788
1788
|
pe,
|
|
1789
|
-
|
|
1790
|
-
|
|
1789
|
+
cr,
|
|
1790
|
+
ur,
|
|
1791
1791
|
re,
|
|
1792
1792
|
qe,
|
|
1793
1793
|
Ye,
|
|
1794
|
-
|
|
1794
|
+
kt,
|
|
1795
1795
|
Ie,
|
|
1796
1796
|
he
|
|
1797
1797
|
].forEach((e) => {
|
|
@@ -1799,21 +1799,21 @@ let Ae = class extends de {
|
|
|
1799
1799
|
});
|
|
1800
1800
|
}
|
|
1801
1801
|
_initMenuItems() {
|
|
1802
|
-
this._menuManagerService.mergeMenu(
|
|
1802
|
+
this._menuManagerService.mergeMenu(Ni);
|
|
1803
1803
|
}
|
|
1804
1804
|
_initUI() {
|
|
1805
1805
|
[
|
|
1806
|
-
[
|
|
1807
|
-
["FilterIcon",
|
|
1806
|
+
[mt, vi],
|
|
1807
|
+
["FilterIcon", Wt]
|
|
1808
1808
|
].forEach(([e, r]) => {
|
|
1809
1809
|
this.disposeWithMe(
|
|
1810
1810
|
this._componentManager.register(e, r)
|
|
1811
1811
|
);
|
|
1812
|
-
}), this.disposeWithMe(this._contextService.subscribeContextValue$(se).pipe(
|
|
1812
|
+
}), this.disposeWithMe(this._contextService.subscribeContextValue$(se).pipe(jr()).subscribe((e) => {
|
|
1813
1813
|
e ? this._openFilterPopup() : this._closeFilterPopup();
|
|
1814
1814
|
})), this.disposeWithMe(this._sheetsFilterService.errorMsg$.subscribe((e) => {
|
|
1815
1815
|
e && this._messageService.show({
|
|
1816
|
-
type:
|
|
1816
|
+
type: Zr.Error,
|
|
1817
1817
|
content: this._localeService.t(e)
|
|
1818
1818
|
});
|
|
1819
1819
|
}));
|
|
@@ -1824,7 +1824,7 @@ let Ae = class extends de {
|
|
|
1824
1824
|
throw new Error("[SheetsFilterUIController]: no filter model when opening filter popup!");
|
|
1825
1825
|
const r = e.getRange(), s = this._sheetsFilterPanelService.col, { startRow: n } = r;
|
|
1826
1826
|
this._popupDisposable = this._sheetCanvasPopupService.attachPopupToCell(n, s, {
|
|
1827
|
-
componentKey:
|
|
1827
|
+
componentKey: mt,
|
|
1828
1828
|
direction: "horizontal",
|
|
1829
1829
|
onClickOutside: () => this._commandService.syncExecuteCommand(he.id),
|
|
1830
1830
|
offset: [5, 0]
|
|
@@ -1835,78 +1835,82 @@ let Ae = class extends de {
|
|
|
1835
1835
|
(e = this._popupDisposable) == null || e.dispose(), this._popupDisposable = null;
|
|
1836
1836
|
}
|
|
1837
1837
|
};
|
|
1838
|
-
Ae =
|
|
1838
|
+
Ae = Mi([
|
|
1839
1839
|
A(0, E(X)),
|
|
1840
|
-
A(1, E(
|
|
1840
|
+
A(1, E(Cr)),
|
|
1841
1841
|
A(2, E(W)),
|
|
1842
|
-
A(3, E(
|
|
1842
|
+
A(3, E(Dr)),
|
|
1843
1843
|
A(4, E(V)),
|
|
1844
1844
|
A(5, E(K)),
|
|
1845
|
-
A(6,
|
|
1845
|
+
A(6, yr),
|
|
1846
1846
|
A(7, Q),
|
|
1847
|
-
A(8,
|
|
1847
|
+
A(8, Or),
|
|
1848
1848
|
A(9, we),
|
|
1849
|
-
A(10,
|
|
1850
|
-
A(11, E(
|
|
1851
|
-
A(12,
|
|
1849
|
+
A(10, Rr),
|
|
1850
|
+
A(11, E(Ot)),
|
|
1851
|
+
A(12, Lt)
|
|
1852
1852
|
], Ae);
|
|
1853
|
-
var
|
|
1854
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
1853
|
+
var $i = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor, Hi = (t, e, r) => e in t ? $i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Di = (t, e, r, s) => {
|
|
1854
|
+
for (var n = s > 1 ? void 0 : s ? Ui(e, r) : e, l = t.length - 1, i; l >= 0; l--)
|
|
1855
1855
|
(i = t[l]) && (n = i(n) || n);
|
|
1856
1856
|
return n;
|
|
1857
|
-
}, ke = (t, e) => (r, s) => e(r, s, t),
|
|
1858
|
-
const
|
|
1857
|
+
}, ke = (t, e) => (r, s) => e(r, s, t), Qt = (t, e, r) => Hi(t, typeof e != "symbol" ? e + "" : e, r);
|
|
1858
|
+
const ki = "SHEET_FILTER_UI_PLUGIN";
|
|
1859
1859
|
let Pe = class extends je {
|
|
1860
1860
|
constructor(t = Ne, e, r, s) {
|
|
1861
1861
|
super(), this._config = t, this._injector = e, this._configService = r, this._rpcChannelService = s;
|
|
1862
|
-
const { menu: n, ...l } =
|
|
1862
|
+
const { menu: n, ...l } = Ft(
|
|
1863
1863
|
{},
|
|
1864
1864
|
Ne,
|
|
1865
1865
|
this._config
|
|
1866
1866
|
);
|
|
1867
|
-
n && this._configService.setConfig("menu", n, { merge: !0 }), this._configService.setConfig(
|
|
1867
|
+
n && this._configService.setConfig("menu", n, { merge: !0 }), this._configService.setConfig($t, l);
|
|
1868
1868
|
}
|
|
1869
1869
|
onStarting() {
|
|
1870
|
-
[
|
|
1870
|
+
tr(this._injector, [
|
|
1871
1871
|
[W],
|
|
1872
1872
|
[ne],
|
|
1873
1873
|
[Ae]
|
|
1874
|
-
]
|
|
1875
|
-
useFactory: () =>
|
|
1874
|
+
]), this._config.useRemoteFilterValuesGenerator && this._rpcChannelService && this._injector.add([Fe, {
|
|
1875
|
+
useFactory: () => rr(
|
|
1876
1876
|
this._rpcChannelService.requestChannel(Je)
|
|
1877
1877
|
)
|
|
1878
1878
|
}]);
|
|
1879
1879
|
}
|
|
1880
1880
|
onReady() {
|
|
1881
|
-
this._injector
|
|
1881
|
+
st(this._injector, [
|
|
1882
|
+
[ne]
|
|
1883
|
+
]);
|
|
1882
1884
|
}
|
|
1883
1885
|
onRendered() {
|
|
1884
|
-
this._injector
|
|
1886
|
+
st(this._injector, [
|
|
1887
|
+
[Ae]
|
|
1888
|
+
]);
|
|
1885
1889
|
}
|
|
1886
1890
|
};
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
Pe =
|
|
1890
|
-
|
|
1891
|
+
Qt(Pe, "type", Z.UNIVER_SHEET);
|
|
1892
|
+
Qt(Pe, "pluginName", ki);
|
|
1893
|
+
Pe = Di([
|
|
1894
|
+
Tt(yt),
|
|
1891
1895
|
ke(1, E(X)),
|
|
1892
|
-
ke(2,
|
|
1893
|
-
ke(3,
|
|
1896
|
+
ke(2, Nt),
|
|
1897
|
+
ke(3, er(Ct))
|
|
1894
1898
|
], Pe);
|
|
1895
|
-
var
|
|
1896
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
1899
|
+
var xi = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, Wi = (t, e, r) => e in t ? xi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Qi = (t, e, r, s) => {
|
|
1900
|
+
for (var n = s > 1 ? void 0 : s ? Bi(e, r) : e, l = t.length - 1, i; l >= 0; l--)
|
|
1897
1901
|
(i = t[l]) && (n = i(n) || n);
|
|
1898
1902
|
return n;
|
|
1899
|
-
},
|
|
1900
|
-
const
|
|
1903
|
+
}, pt = (t, e) => (r, s) => e(r, s, t), Vt = (t, e, r) => Wi(t, typeof e != "symbol" ? e + "" : e, r);
|
|
1904
|
+
const Vi = "SHEET_FILTER_UI_PLUGIN";
|
|
1901
1905
|
let be = class extends je {
|
|
1902
1906
|
constructor(t = Ne, e, r) {
|
|
1903
1907
|
super(), this._config = t, this._injector = e, this._configService = r;
|
|
1904
|
-
const { menu: s, ...n } =
|
|
1908
|
+
const { menu: s, ...n } = Ft(
|
|
1905
1909
|
{},
|
|
1906
1910
|
Ne,
|
|
1907
1911
|
this._config
|
|
1908
1912
|
);
|
|
1909
|
-
s && this._configService.setConfig("menu", s, { merge: !0 }), this._configService.setConfig(
|
|
1913
|
+
s && this._configService.setConfig("menu", s, { merge: !0 }), this._configService.setConfig($t, n);
|
|
1910
1914
|
}
|
|
1911
1915
|
onStarting() {
|
|
1912
1916
|
[
|
|
@@ -1921,19 +1925,19 @@ let be = class extends je {
|
|
|
1921
1925
|
this._injector.get(de);
|
|
1922
1926
|
}
|
|
1923
1927
|
};
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
be =
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1928
|
+
Vt(be, "type", Z.UNIVER_SHEET);
|
|
1929
|
+
Vt(be, "pluginName", Vi);
|
|
1930
|
+
be = Qi([
|
|
1931
|
+
Tt(yt),
|
|
1932
|
+
pt(1, E(X)),
|
|
1933
|
+
pt(2, Nt)
|
|
1930
1934
|
], be);
|
|
1931
|
-
var
|
|
1932
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
1935
|
+
var Gi = Object.getOwnPropertyDescriptor, ji = (t, e, r, s) => {
|
|
1936
|
+
for (var n = s > 1 ? void 0 : s ? Gi(e, r) : e, l = t.length - 1, i; l >= 0; l--)
|
|
1933
1937
|
(i = t[l]) && (n = i(n) || n);
|
|
1934
1938
|
return n;
|
|
1935
|
-
},
|
|
1936
|
-
let
|
|
1939
|
+
}, ft = (t, e) => (r, s) => e(r, s, t), Ee;
|
|
1940
|
+
let _t = (Ee = class extends je {
|
|
1937
1941
|
constructor(t, e, r) {
|
|
1938
1942
|
super(), this._config = t, this._injector = e, this._rpcChannelService = r;
|
|
1939
1943
|
}
|
|
@@ -1945,19 +1949,19 @@ let ft = (Ee = class extends je {
|
|
|
1945
1949
|
onReady() {
|
|
1946
1950
|
this._rpcChannelService.registerChannel(
|
|
1947
1951
|
Je,
|
|
1948
|
-
|
|
1952
|
+
ir(this._injector.get(Fe))
|
|
1949
1953
|
);
|
|
1950
1954
|
}
|
|
1951
1955
|
}, f(Ee, "type", Z.UNIVER_SHEET), f(Ee, "pluginName", "SHEET_FILTER_UI_WORKER_PLUGIN"), Ee);
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
],
|
|
1956
|
+
_t = ji([
|
|
1957
|
+
ft(1, E(X)),
|
|
1958
|
+
ft(2, Ct)
|
|
1959
|
+
], _t);
|
|
1956
1960
|
export {
|
|
1957
|
-
|
|
1961
|
+
kt as ChangeFilterByOperation,
|
|
1958
1962
|
he as CloseFilterPanelOperation,
|
|
1959
1963
|
Ie as OpenFilterPanelOperation,
|
|
1960
1964
|
be as UniverSheetsFilterMobileUIPlugin,
|
|
1961
1965
|
Pe as UniverSheetsFilterUIPlugin,
|
|
1962
|
-
|
|
1966
|
+
_t as UniverSheetsFilterUIWorkerPlugin
|
|
1963
1967
|
};
|