@univerjs/sheets-filter-ui 0.15.3 → 0.15.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1,18 +1,18 @@
1
1
  var ar = Object.defineProperty;
2
2
  var cr = (t, e, r) => e in t ? ar(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var v = (t, e, r) => cr(t, typeof e != "symbol" ? e + "" : e, r);
4
- import { BooleanNumber as mt, createIdentifier as Pt, Inject as T, LocaleService as G, IUniverInstanceService as De, ILogService as ur, extractPureTextFromCell as hr, numfmt as Ye, Disposable as ue, Injector as re, Quantity as $t, Tools as be, ColorKit as pt, ICommandService as j, CommandType as Be, IContextService as We, ThemeService as Lt, RxDisposable as Mt, fromCallback as dr, VerticalAlign as Re, InterceptorEffectEnum as fr, UniverInstanceType as ie, DependentOn as xt, IConfigService as Ut, Plugin as it, merge as kt, Optional as mr, registerDependencies as pr, touchDependencies as vt } from "@univerjs/core";
5
- import { CustomFilterOperator as u, FilterBy as w, SetSheetsFilterCriteriaCommand as V, SheetsFilterService as z, SmartToggleSheetsFilterCommand as Fe, FILTER_MUTATIONS as vr, SetSheetsFilterRangeMutation as _r, SetSheetsFilterCriteriaMutation as gr, RemoveSheetsFilterMutation as Sr, ReCalcSheetsFilterMutation as Cr, UniverSheetsFilterPlugin as Ht, SheetsFilterSyncController as Tr, ReCalcSheetsFilterCommand as st, ClearSheetsFilterCriteriaCommand as nt, RemoveSheetFilterCommand as Er, SetSheetFilterRangeCommand as Fr } from "@univerjs/sheets-filter";
6
- import { IEditorBridgeService as _t, SetCellEditVisibleOperation as Nr, SheetSkeletonManagerService as Ir, ISheetSelectionRenderService as yr, SelectionControl as Or, attachSelectionWithCoord as br, getCoordByCell as Rr, SheetsRenderService as Dt, SheetsUIPart as Ar, getObservableWithExclusiveRange$ as wr, getCurrentRangeDisable$ as Pr, whenSheetEditorFocused as $r, SheetCanvasPopManagerService as Lr } from "@univerjs/sheets-ui";
4
+ import { BooleanNumber as ft, createIdentifier as wt, Inject as T, LocaleService as G, IUniverInstanceService as De, ILogService as ur, extractPureTextFromCell as hr, numfmt as Ye, Disposable as ue, Injector as re, Quantity as $t, Tools as be, ColorKit as pt, ICommandService as j, CommandType as Be, IContextService as We, ThemeService as Lt, RxDisposable as Mt, fromCallback as dr, VerticalAlign as Re, InterceptorEffectEnum as mr, UniverInstanceType as ie, DependentOn as xt, IConfigService as Ut, Plugin as it, merge as kt, Optional as fr, registerDependencies as pr, touchDependencies as vt } from "@univerjs/core";
5
+ import { CustomFilterOperator as u, FilterBy as P, SetSheetsFilterCriteriaCommand as V, SheetsFilterService as X, SmartToggleSheetsFilterCommand as Fe, FILTER_MUTATIONS as vr, SetSheetsFilterRangeMutation as _r, SetSheetsFilterCriteriaMutation as gr, RemoveSheetsFilterMutation as Sr, ReCalcSheetsFilterMutation as Cr, UniverSheetsFilterPlugin as Ht, SheetsFilterSyncController as Tr, ReCalcSheetsFilterCommand as st, ClearSheetsFilterCriteriaCommand as nt, RemoveSheetFilterCommand as Er, SetSheetFilterRangeCommand as Fr } from "@univerjs/sheets-filter";
6
+ import { IEditorBridgeService as _t, SetCellEditVisibleOperation as Nr, SheetSkeletonManagerService as Ir, ISheetSelectionRenderService as yr, SelectionControl as Or, attachSelectionWithCoord as br, getCoordByCell as Rr, SheetsRenderService as Dt, SheetsUIPart as Ar, getObservableWithExclusiveRange$ as Pr, getCurrentRangeDisable$ as wr, whenSheetEditorFocused as $r, SheetCanvasPopManagerService as Lr } from "@univerjs/sheets-ui";
7
7
  import { ILayoutService as Mr, useDependency as D, useObservable as L, IMessageService as Bt, useComponentsOfPart as xr, ComponentContainer as Ur, getMenuHiddenObservable as ot, MenuItemType as lt, RibbonDataGroup as kr, KeyCode as Hr, MetaKeys as gt, ComponentManager as Dr, IShortcutService as Br, IMenuManagerService as Wr } from "@univerjs/ui";
8
8
  import { COLOR_BLACK_RGB as St, Rect as Ct, Shape as Vr, IRenderManagerService as Wt } from "@univerjs/engine-render";
9
- import { RefRangeService as Qr, SheetPermissionCheckController as Gr, SheetsSelectionsService as jr, getSheetCommandTarget as Yr, WorksheetFilterPermission as pe, WorksheetViewPermission as ve, RangeProtectionPermissionViewPoint as _e, expandToContinuousRange as Zr, SheetInterceptorService as Kr, SetRangeValuesMutation as qr, INTERCEPTOR_POINT as Xr } from "@univerjs/sheets";
10
- import { BehaviorSubject as Q, ReplaySubject as zr, Subject as Jr, merge as ei, combineLatest as ti, throttleTime as Vt, startWith as Qt, map as le, shareReplay as ri, of as he, switchMap as at, filter as ii, takeUntil as si, distinctUntilChanged as ni } from "rxjs";
9
+ import { RefRangeService as Qr, SheetPermissionCheckController as Gr, SheetsSelectionsService as jr, getSheetCommandTarget as Yr, WorksheetFilterPermission as pe, WorksheetViewPermission as ve, RangeProtectionPermissionViewPoint as _e, expandToContinuousRange as Zr, SheetInterceptorService as zr, SetRangeValuesMutation as Kr, INTERCEPTOR_POINT as qr } from "@univerjs/sheets";
10
+ import { BehaviorSubject as Q, ReplaySubject as Xr, Subject as Jr, merge as ei, combineLatest as ti, throttleTime as Vt, startWith as Qt, map as le, shareReplay as ri, of as he, switchMap as at, filter as ii, takeUntil as si, distinctUntilChanged as ni } from "rxjs";
11
11
  import { IRPCChannelService as Gt, toModule as oi, fromModule as li } from "@univerjs/rpc";
12
- import { clsx as Ae, borderClassName as ct, Select as Tt, RadioGroup as ai, Radio as Et, Input as jt, Checkbox as ci, Tree as ui, Tooltip as hi, Switch as di, MessageType as Yt, Segmented as fi, Button as Ze } from "@univerjs/design";
13
- import { useRef as mi, createElement as de, forwardRef as Ne, useCallback as U, useMemo as ut } from "react";
12
+ import { clsx as Ae, borderClassName as ct, Select as Tt, RadioGroup as ai, Radio as Et, Input as jt, Checkbox as ci, Tree as ui, Tooltip as hi, Switch as di, MessageType as Yt, Segmented as mi, Button as Ze } from "@univerjs/design";
13
+ import { useRef as fi, createElement as de, forwardRef as Ne, useCallback as U, useMemo as ut } from "react";
14
14
  import { jsx as d, jsxs as y, Fragment as Ft } from "react/jsx-runtime";
15
- var b = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SECOND", t))(b || {}), g = /* @__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))(g || {}), m;
15
+ var b = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SECOND", t))(b || {}), g = /* @__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))(g || {}), f;
16
16
  ((t) => {
17
17
  t.NONE = {
18
18
  label: "sheets-filter.conditions.none",
@@ -304,7 +304,7 @@ var b = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
304
304
  const { val1: o, val2: l, operator1: c } = i, h = c === u.GREATER_THAN_OR_EQUAL;
305
305
  return {
306
306
  customFilters: {
307
- and: mt.TRUE,
307
+ and: ft.TRUE,
308
308
  customFilters: [
309
309
  { val: h ? o : l, operator: u.GREATER_THAN_OR_EQUAL },
310
310
  { val: h ? l : o, operator: u.LESS_THAN_OR_EQUAL }
@@ -389,26 +389,26 @@ var b = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
389
389
  }),
390
390
  testMappingParams: () => !0,
391
391
  mapToFilterColumn: (i) => {
392
- const { and: o, val1: l, val2: c, operator1: h, operator2: f } = i;
392
+ const { and: o, val1: l, val2: c, operator1: h, operator2: m } = i;
393
393
  function S(R, O) {
394
394
  for (const A of t.ALL_CONDITIONS)
395
395
  if (A.operator === R)
396
396
  return A.mapToFilterColumn({ val1: O, operator1: R });
397
397
  }
398
- const p = !h || h === t.NONE.operator, _ = !f || f === t.NONE.operator;
398
+ const p = !h || h === t.NONE.operator, _ = !m || m === t.NONE.operator;
399
399
  if (p && _)
400
400
  return t.NONE.mapToFilterColumn({});
401
401
  if (p)
402
- return S(f, c);
402
+ return S(m, c);
403
403
  if (_)
404
404
  return S(h, l);
405
- const C = S(h, l), F = S(f, c), N = {
405
+ const C = S(h, l), F = S(m, c), N = {
406
406
  customFilters: [
407
407
  C.customFilters.customFilters[0],
408
408
  F.customFilters.customFilters[0]
409
409
  ]
410
410
  };
411
- return o && (N.and = mt.TRUE), { customFilters: N };
411
+ return o && (N.and = ft.TRUE), { customFilters: N };
412
412
  },
413
413
  testMappingFilterColumn: (i) => {
414
414
  var c;
@@ -483,7 +483,7 @@ var b = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
483
483
  return [t.NONE, {}];
484
484
  }
485
485
  t.testMappingFilterColumn = a;
486
- })(m || (m = {}));
486
+ })(f || (f = {}));
487
487
  function x(t) {
488
488
  const { operator1: e, operator2: r, val1: s, val2: n } = t;
489
489
  if (e && r)
@@ -492,7 +492,7 @@ function x(t) {
492
492
  throw new Error("Neither operator1 and operator2 and both not set!");
493
493
  return e ? [e, s] : [r, n];
494
494
  }
495
- function ze(t) {
495
+ function Xe(t) {
496
496
  const e = [], r = [];
497
497
  let s = 0, n = 0;
498
498
  function a(i) {
@@ -509,15 +509,15 @@ var pi = Object.getOwnPropertyDescriptor, vi = (t, e, r, s) => {
509
509
  for (var n = s > 1 ? void 0 : s ? pi(e, r) : e, a = t.length - 1, i; a >= 0; a--)
510
510
  (i = t[a]) && (n = i(n) || n);
511
511
  return n;
512
- }, Ke = (t, e) => (r, s) => e(r, s, t);
513
- const ht = "sheets-filter.generate-filter-values.service", we = Pt(ht);
512
+ }, ze = (t, e) => (r, s) => e(r, s, t);
513
+ const ht = "sheets-filter.generate-filter-values.service", Pe = wt(ht);
514
514
  let Je = class extends ue {
515
515
  constructor(t, e, r) {
516
516
  super(), this._localeService = t, this._univerInstanceService = e, this._logService = r;
517
517
  }
518
518
  async getFilterValues(t) {
519
- var f;
520
- const { unitId: e, subUnitId: r, filteredOutRowsByOtherColumns: s, filterColumn: n, filters: a, blankChecked: i, iterateRange: o, alreadyChecked: l } = t, c = this._univerInstanceService.getUnit(e), h = (f = this._univerInstanceService.getUnit(e)) == null ? void 0 : f.getSheetBySheetId(r);
519
+ var m;
520
+ const { unitId: e, subUnitId: r, filteredOutRowsByOtherColumns: s, filterColumn: n, filters: a, blankChecked: i, iterateRange: o, alreadyChecked: l } = t, c = this._univerInstanceService.getUnit(e), h = (m = this._univerInstanceService.getUnit(e)) == null ? void 0 : m.getSheetBySheetId(r);
521
521
  return !c || !h ? [] : (this._logService.debug("[SheetsGenerateFilterValuesService]", "getFilterValues for", { unitId: e, subUnitId: r }), Zt(
522
522
  a,
523
523
  this._localeService,
@@ -532,13 +532,13 @@ let Je = class extends ue {
532
532
  }
533
533
  };
534
534
  Je = vi([
535
- Ke(0, T(G)),
536
- Ke(1, De),
537
- Ke(2, ur)
535
+ ze(0, T(G)),
536
+ ze(1, De),
537
+ ze(2, ur)
538
538
  ], Je);
539
539
  function Zt(t, e, r, s, n, a, i, o, l) {
540
- var F, N, R, O, A, P, Y, Z, se, M;
541
- const c = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), f = "yyyy-mm-dd", S = "empty", p = !t && ((a == null ? void 0 : a.filterBy) === w.COLORS || (a == null ? void 0 : a.filterBy) === w.CONDITIONS) && ((F = a.filteredOutRows) == null ? void 0 : F.size);
540
+ var F, N, R, O, A, w, Y, Z, se, M;
541
+ const c = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), m = "yyyy-mm-dd", S = "empty", p = !t && ((a == null ? void 0 : a.filterBy) === P.COLORS || (a == null ? void 0 : a.filterBy) === P.CONDITIONS) && ((F = a.filteredOutRows) == null ? void 0 : F.size);
542
542
  let _ = 0;
543
543
  for (const E of s.iterateByColumn(r, !1, !1)) {
544
544
  const { row: Qe, rowSpan: Ie = 1 } = E;
@@ -555,18 +555,18 @@ function Zt(t, e, r, s, n, a, i, o, l) {
555
555
  continue;
556
556
  }
557
557
  const ye = (N = E.value) != null && N.v && !E.value.p ? (A = (O = l.get((R = E.value) == null ? void 0 : R.s)) == null ? void 0 : O.n) == null ? void 0 : A.pattern : "", dt = ye && Ye.getFormatInfo(ye).isDate;
558
- let ft = !1;
558
+ let mt = !1;
559
559
  if (dt) {
560
- const { year: k, month: K, day: I } = Ye.getFormatDateInfo(ye);
561
- ft = k || K || I;
560
+ const { year: k, month: z, day: I } = Ye.getFormatDateInfo(ye);
561
+ mt = k || z || I;
562
562
  }
563
- if (ye && dt && ft) {
564
- const k = (P = s.getCellRaw(E.row, E.col)) == null ? void 0 : P.v;
563
+ if (ye && dt && mt) {
564
+ const k = (w = s.getCellRaw(E.row, E.col)) == null ? void 0 : w.v;
565
565
  if (!k) {
566
566
  ne++;
567
567
  continue;
568
568
  }
569
- const K = Ye.format(f, Number(k)), [I, H, me] = K.split("-").map(Number);
569
+ const z = Ye.format(m, Number(k)), [I, H, fe] = z.split("-").map(Number);
570
570
  let ee = c.get(`${I}`);
571
571
  ee || (ee = {
572
572
  title: `${I}`,
@@ -585,25 +585,25 @@ function Zt(t, e, r, s, n, a, i, o, l) {
585
585
  leaf: !1,
586
586
  checked: !1
587
587
  }, (Z = ee.children) == null || Z.push(W), h.set(`${I}-${H}`, [`${I}`, `${I}-${H}`]));
588
- const Ge = (se = W == null ? void 0 : W.children) == null ? void 0 : se.find((je) => je.key === `${I}-${H}-${me}`);
588
+ const Ge = (se = W == null ? void 0 : W.children) == null ? void 0 : se.find((je) => je.key === `${I}-${H}-${fe}`);
589
589
  Ge ? (Ge.originValues.add(J), Ge.count++, W.count++, ee.count++) : ((M = W.children) == null || M.push({
590
- title: `${me}`,
591
- key: `${I}-${H}-${me}`,
590
+ title: `${fe}`,
591
+ key: `${I}-${H}-${fe}`,
592
592
  count: 1,
593
593
  originValues: /* @__PURE__ */ new Set([J]),
594
594
  leaf: !0,
595
595
  checked: p ? !1 : i.size ? i.has(J) : !o
596
- }), W.count++, ee.count++, h.set(`${I}-${H}-${me}`, [`${I}`, `${I}-${H}`, `${I}-${H}-${me}`]));
596
+ }), W.count++, ee.count++, h.set(`${I}-${H}-${fe}`, [`${I}`, `${I}-${H}`, `${I}-${H}-${fe}`]));
597
597
  } else {
598
598
  const k = J;
599
- let K = c.get(k);
600
- K ? K.count++ : (K = {
599
+ let z = c.get(k);
600
+ z ? z.count++ : (z = {
601
601
  title: J,
602
602
  leaf: !0,
603
603
  checked: p ? !1 : i.size ? i.has(J) : !o,
604
604
  key: k,
605
605
  count: 1
606
- }, c.set(k, K), h.set(k, [k]));
606
+ }, c.set(k, z), h.set(k, [k]));
607
607
  }
608
608
  ne++;
609
609
  }
@@ -652,13 +652,13 @@ function et(t, e) {
652
652
  }
653
653
  return null;
654
654
  }
655
- function Kt(t) {
656
- return t.leaf ? t.checked : t.children ? t.children.every((e) => Kt(e)) : !0;
655
+ function zt(t) {
656
+ return t.leaf ? t.checked : t.children ? t.children.every((e) => zt(e)) : !0;
657
657
  }
658
658
  function ge(t, e) {
659
659
  t.leaf && (e !== void 0 ? t.checked = e : t.checked = !t.checked), t.children && t.children.forEach((r) => ge(r, e));
660
660
  }
661
- function qt(t, e) {
661
+ function Kt(t, e) {
662
662
  const r = [];
663
663
  return t.forEach((s) => {
664
664
  const n = s.originValues ? e.some(
@@ -671,7 +671,7 @@ function qt(t, e) {
671
671
  if (n || a)
672
672
  r.push({ ...s });
673
673
  else if (s.children) {
674
- const o = qt(s.children, e);
674
+ const o = Kt(s.children, e);
675
675
  if (o.length > 0) {
676
676
  const l = o.reduce((c, h) => c + h.count, 0);
677
677
  r.push({ ...s, count: l, children: o });
@@ -684,13 +684,13 @@ var Si = Object.getOwnPropertyDescriptor, Ve = (t, e, r, s) => {
684
684
  (i = t[a]) && (n = i(n) || n);
685
685
  return n;
686
686
  }, Te = (t, e) => (r, s) => e(r, s, t);
687
- Pt("sheets-filter-ui.sheets-filter-panel.service");
688
- let X = class extends ue {
687
+ wt("sheets-filter-ui.sheets-filter-panel.service");
688
+ let q = class extends ue {
689
689
  constructor(e, r) {
690
690
  super();
691
- v(this, "_filterBy$", new Q(w.VALUES));
691
+ v(this, "_filterBy$", new Q(P.VALUES));
692
692
  v(this, "filterBy$", this._filterBy$.asObservable());
693
- v(this, "_filterByModel$", new zr(1));
693
+ v(this, "_filterByModel$", new Xr(1));
694
694
  v(this, "filterByModel$", this._filterByModel$.asObservable());
695
695
  v(this, "_filterByModel", null);
696
696
  v(this, "_hasCriteria$", new Q(!1));
@@ -745,13 +745,13 @@ let X = class extends ue {
745
745
  if (!this._filterModel || this.col === -1)
746
746
  return !1;
747
747
  switch (e) {
748
- case w.VALUES:
748
+ case P.VALUES:
749
749
  this._setupByValues(this._filterModel, this.col);
750
750
  break;
751
- case w.COLORS:
751
+ case P.COLORS:
752
752
  this._setupByColors(this._filterModel, this.col);
753
753
  break;
754
- case w.CONDITIONS:
754
+ case P.CONDITIONS:
755
755
  this._setupByConditions(this._filterModel, this.col);
756
756
  break;
757
757
  }
@@ -790,7 +790,7 @@ let X = class extends ue {
790
790
  e,
791
791
  r
792
792
  );
793
- return this.filterByModel = n, this._filterBy$.next(w.VALUES), this._listenToFilterHeaderChange(e, r), !0;
793
+ return this.filterByModel = n, this._filterBy$.next(P.VALUES), this._listenToFilterHeaderChange(e, r), !0;
794
794
  }
795
795
  async _setupByColors(e, r) {
796
796
  this._disposePreviousModel();
@@ -801,30 +801,30 @@ let X = class extends ue {
801
801
  e,
802
802
  r
803
803
  );
804
- return this.filterByModel = n, this._filterBy$.next(w.COLORS), this._listenToFilterHeaderChange(e, r), !0;
804
+ return this.filterByModel = n, this._filterBy$.next(P.COLORS), this._listenToFilterHeaderChange(e, r), !0;
805
805
  }
806
806
  _setupByConditions(e, r) {
807
807
  this._disposePreviousModel();
808
808
  const s = e.getRange();
809
809
  if (s.startRow === s.endRow) return !1;
810
- const n = Pe.fromFilterColumn(
810
+ const n = we.fromFilterColumn(
811
811
  this._injector,
812
812
  e,
813
813
  r,
814
814
  e.getFilterColumn(r)
815
815
  );
816
- return this.filterByModel = n, this._filterBy$.next(w.CONDITIONS), this._listenToFilterHeaderChange(e, r), !0;
816
+ return this.filterByModel = n, this._filterBy$.next(P.CONDITIONS), this._listenToFilterHeaderChange(e, r), !0;
817
817
  }
818
818
  _disposePreviousModel() {
819
819
  var e;
820
820
  (e = this._filterByModel) == null || e.dispose(), this.filterByModel = null;
821
821
  }
822
822
  };
823
- X = Ve([
823
+ q = Ve([
824
824
  Te(0, T(re)),
825
825
  Te(1, T(Qr))
826
- ], X);
827
- let Pe = class extends ue {
826
+ ], q);
827
+ let we = class extends ue {
828
828
  constructor(e, r, s, n, a) {
829
829
  super();
830
830
  v(this, "canApply$", he(!0));
@@ -846,8 +846,8 @@ let Pe = class extends ue {
846
846
  * @returns the model to control the panel's state
847
847
  */
848
848
  static fromFilterColumn(e, r, s, n) {
849
- const [a, i] = m.testMappingFilterColumn(n == null ? void 0 : n.getColumnData());
850
- return e.createInstance(Pe, r, s, a, i);
849
+ const [a, i] = f.testMappingFilterColumn(n == null ? void 0 : n.getColumnData());
850
+ return e.createInstance(we, r, s, a, i);
851
851
  }
852
852
  get conditionItem() {
853
853
  return this._conditionItem$.getValue();
@@ -874,7 +874,7 @@ let Pe = class extends ue {
874
874
  */
875
875
  async apply() {
876
876
  if (this._disposed) return !1;
877
- const e = m.mapToFilterColumn(this.conditionItem, this.filterConditionFormParams);
877
+ const e = f.mapToFilterColumn(this.conditionItem, this.filterConditionFormParams);
878
878
  return this._commandService.executeCommand(V.id, {
879
879
  unitId: this._filterModel.unitId,
880
880
  subUnitId: this._filterModel.subUnitId,
@@ -887,10 +887,10 @@ let Pe = class extends ue {
887
887
  * `IFilterConditionFormParams` and load default condition form params.
888
888
  */
889
889
  onPrimaryConditionChange(e) {
890
- const r = m.ALL_CONDITIONS.find((s) => s.operator === e);
890
+ const r = f.ALL_CONDITIONS.find((s) => s.operator === e);
891
891
  if (!r)
892
892
  throw new Error(`[ByConditionsModel]: condition item not found for operator: ${e}!`);
893
- this._conditionItem$.next(r), this._filterConditionFormParams$.next(m.getInitialFormParams(e));
893
+ this._conditionItem$.next(r), this._filterConditionFormParams$.next(f.getInitialFormParams(e));
894
894
  }
895
895
  /**
896
896
  * This method would be called when user changes the primary conditions, the input values or "AND" "OR" ratio.
@@ -903,15 +903,15 @@ let Pe = class extends ue {
903
903
  onConditionFormChange(e) {
904
904
  const r = { ...this.filterConditionFormParams, ...e };
905
905
  if (r.and !== !0 && delete r.and, typeof e.and < "u" || typeof e.operator1 < "u" || typeof e.operator2 < "u") {
906
- const s = m.testMappingParams(r, this.conditionItem.numOfParameters);
906
+ const s = f.testMappingParams(r, this.conditionItem.numOfParameters);
907
907
  this._conditionItem$.next(s);
908
908
  }
909
909
  this._filterConditionFormParams$.next(r);
910
910
  }
911
911
  };
912
- Pe = Ve([
912
+ we = Ve([
913
913
  Te(4, j)
914
- ], Pe);
914
+ ], we);
915
915
  let $e = class extends ue {
916
916
  constructor(e, r, s, n, a) {
917
917
  super();
@@ -935,11 +935,11 @@ let $e = class extends ue {
935
935
  le(([i, o]) => {
936
936
  if (!i) return o;
937
937
  const c = i.toLowerCase().split(/\s+/).filter((h) => !!h);
938
- return qt(o, c);
938
+ return Kt(o, c);
939
939
  })
940
940
  ),
941
941
  this._manuallyUpdateFilterItems$
942
- ).pipe(ri(1)), this.canApply$ = this.filterItems$.pipe(le((i) => ze(i).checked > 0)), this.disposeWithMe(this.filterItems$.subscribe((i) => this._filterItems = i));
942
+ ).pipe(ri(1)), this.canApply$ = this.filterItems$.pipe(le((i) => Xe(i).checked > 0)), this.disposeWithMe(this.filterItems$.subscribe((i) => this._filterItems = i));
943
943
  }
944
944
  /**
945
945
  * Create a model with targeting filter column. If there is not a filter column, the model would be created with
@@ -952,14 +952,14 @@ let $e = class extends ue {
952
952
  * @returns the model to control the panel's state
953
953
  */
954
954
  static async fromFilterColumn(e, r, s) {
955
- const n = e.get(De), a = e.get(G), i = e.get(we, $t.OPTIONAL), { unitId: o, subUnitId: l } = r, c = n.getUniverSheetInstance(o);
955
+ const n = e.get(De), a = e.get(G), i = e.get(Pe, $t.OPTIONAL), { unitId: o, subUnitId: l } = r, c = n.getUniverSheetInstance(o);
956
956
  if (!c) throw new Error(`[ByValuesModel]: Workbook not found for filter model with unitId: ${o}!`);
957
957
  const h = c == null ? void 0 : c.getSheetBySheetId(l);
958
958
  if (!h) throw new Error(`[ByValuesModel]: Worksheet not found for filter model with unitId: ${o} and subUnitId: ${l}!`);
959
- const f = r.getRange(), S = s, p = r.getFilterColumn(s), _ = p == null ? void 0 : p.getColumnData().filters, C = new Set(_ == null ? void 0 : _.filters), F = !!(_ && _.blank), N = r.getFilteredOutRowsExceptCol(s), R = { ...f, startRow: f.startRow + 1, startColumn: S, endColumn: S };
959
+ const m = r.getRange(), S = s, p = r.getFilterColumn(s), _ = p == null ? void 0 : p.getColumnData().filters, C = new Set(_ == null ? void 0 : _.filters), F = !!(_ && _.blank), N = r.getFilteredOutRowsExceptCol(s), R = { ...m, startRow: m.startRow + 1, startColumn: S, endColumn: S };
960
960
  let O, A;
961
961
  if (i) {
962
- const P = await i.getFilterValues({
962
+ const w = await i.getFilterValues({
963
963
  unitId: o,
964
964
  subUnitId: l,
965
965
  filteredOutRowsByOtherColumns: Array.from(N),
@@ -969,9 +969,9 @@ let $e = class extends ue {
969
969
  iterateRange: R,
970
970
  alreadyChecked: Array.from(C)
971
971
  });
972
- O = P.filterTreeItems, A = P.filterTreeMapCache;
972
+ O = w.filterTreeItems, A = w.filterTreeMapCache;
973
973
  } else {
974
- const P = Zt(
974
+ const w = Zt(
975
975
  !!_,
976
976
  a,
977
977
  R,
@@ -982,7 +982,7 @@ let $e = class extends ue {
982
982
  F,
983
983
  c.getStyles()
984
984
  );
985
- O = P.filterTreeItems, A = P.filterTreeMapCache;
985
+ O = w.filterTreeItems, A = w.filterTreeMapCache;
986
986
  }
987
987
  return e.createInstance($e, r, s, O, A);
988
988
  }
@@ -1015,7 +1015,7 @@ let $e = class extends ue {
1015
1015
  const r = be.deepClone(this._filterItems), s = et(r, e.key);
1016
1016
  if (!s)
1017
1017
  return;
1018
- const n = Kt(s);
1018
+ const n = zt(s);
1019
1019
  ge(s, !n), this._manuallyUpdateFilterItems(r);
1020
1020
  }
1021
1021
  onFilterOnly(e) {
@@ -1044,7 +1044,7 @@ let $e = class extends ue {
1044
1044
  async apply() {
1045
1045
  if (this._disposed)
1046
1046
  return !1;
1047
- const e = ze(this._filterItems), { checked: r, checkedItems: s } = e, n = this.rawFilterItems;
1047
+ const e = Xe(this._filterItems), { checked: r, checkedItems: s } = e, n = this.rawFilterItems;
1048
1048
  let a = 0;
1049
1049
  for (const c of n)
1050
1050
  a += c.count;
@@ -1060,9 +1060,9 @@ let $e = class extends ue {
1060
1060
  });
1061
1061
  {
1062
1062
  l.filters = {};
1063
- const c = s.filter((f) => f.key !== "empty");
1063
+ const c = s.filter((m) => m.key !== "empty");
1064
1064
  c.length > 0 && (l.filters = {
1065
- filters: c.flatMap((f) => f.originValues ? Array.from(f.originValues) : [f.title])
1065
+ filters: c.flatMap((m) => m.originValues ? Array.from(m.originValues) : [m.title])
1066
1066
  }), c.length !== s.length && (l.filters.blank = !0);
1067
1067
  }
1068
1068
  return this._commandService.executeCommand(V.id, {
@@ -1103,9 +1103,9 @@ let Le = class extends ue {
1103
1103
  if (!o) throw new Error(`[ByColorsModel]: Workbook not found for filter model with unitId: ${a}!`);
1104
1104
  const l = o == null ? void 0 : o.getSheetBySheetId(i);
1105
1105
  if (!l) throw new Error(`[ByColorsModel]: Worksheet not found for filter model with unitId: ${a} and subUnitId: ${i}!`);
1106
- const c = r.getRange(), h = s, f = (R = r.getFilterColumn(s)) == null ? void 0 : R.getColumnData().colorFilters, S = r.getFilteredOutRowsExceptCol(s), p = { ...c, startRow: c.startRow + 1, startColumn: h, endColumn: h }, _ = /* @__PURE__ */ new Map(), C = new Set((O = f == null ? void 0 : f.cellFillColors) != null ? O : []), F = /* @__PURE__ */ new Map(), N = new Set((A = f == null ? void 0 : f.cellTextColors) != null ? A : []);
1107
- for (const P of l.iterateByColumn(p, !1, !0)) {
1108
- const { row: Y, col: Z, value: se } = P;
1106
+ const c = r.getRange(), h = s, m = (R = r.getFilterColumn(s)) == null ? void 0 : R.getColumnData().colorFilters, S = r.getFilteredOutRowsExceptCol(s), p = { ...c, startRow: c.startRow + 1, startColumn: h, endColumn: h }, _ = /* @__PURE__ */ new Map(), C = new Set((O = m == null ? void 0 : m.cellFillColors) != null ? O : []), F = /* @__PURE__ */ new Map(), N = new Set((A = m == null ? void 0 : m.cellTextColors) != null ? A : []);
1107
+ for (const w of l.iterateByColumn(p, !1, !0)) {
1108
+ const { row: Y, col: Z, value: se } = w;
1109
1109
  if (S.has(Y))
1110
1110
  continue;
1111
1111
  const M = l.getComposedCellStyleByCellData(Y, Z, se);
@@ -1207,7 +1207,7 @@ const ae = "FILTER_PANEL_OPENED", Me = {
1207
1207
  id: "sheet.operation.open-filter-panel",
1208
1208
  type: Be.OPERATION,
1209
1209
  handler: (t, e) => {
1210
- const r = t.get(We), s = t.get(z), n = t.get(X), a = t.get(j), i = t.has(_t) ? t.get(_t) : null;
1210
+ const r = t.get(We), s = t.get(X), n = t.get(q), a = t.get(j), i = t.has(_t) ? t.get(_t) : null;
1211
1211
  i != null && i.isVisible().visible && a.syncExecuteCommand(Nr.id, { visible: !1 });
1212
1212
  const { unitId: o, subUnitId: l, col: c } = e, h = s.getFilterModel(o, l);
1213
1213
  return h ? (n.setupCol(h, c), r.getContextValue(ae) || r.setContextValue(ae, !0), !0) : !1;
@@ -1216,17 +1216,17 @@ const ae = "FILTER_PANEL_OPENED", Me = {
1216
1216
  id: "sheet.operation.close-filter-panel",
1217
1217
  type: Be.OPERATION,
1218
1218
  handler: (t) => {
1219
- const e = t.get(We), r = t.get(X), s = t.get(Mr, $t.OPTIONAL);
1219
+ const e = t.get(We), r = t.get(q), s = t.get(Mr, $t.OPTIONAL);
1220
1220
  return e.getContextValue(ae) ? (e.setContextValue(ae, !1), s == null || s.focus(), r.terminate()) : !1;
1221
1221
  }
1222
- }, Xt = {
1222
+ }, qt = {
1223
1223
  id: "sheet.operation.apply-filter",
1224
1224
  type: Be.OPERATION,
1225
1225
  handler: (t, e) => {
1226
1226
  const { filterBy: r } = e;
1227
- return t.get(X).changeFilterBy(r);
1227
+ return t.get(q).changeFilterBy(r);
1228
1228
  }
1229
- }, zt = "sheets-filter-ui.config", xe = {};
1229
+ }, Xt = "sheets-filter-ui.config", xe = {};
1230
1230
  var Ci = Object.getOwnPropertyDescriptor, Ti = (t, e, r, s) => {
1231
1231
  for (var n = s > 1 ? void 0 : s ? Ci(e, r) : e, a = t.length - 1, i; a >= 0; a--)
1232
1232
  (i = t[a]) && (n = i(n) || n);
@@ -1251,10 +1251,10 @@ let ce = class extends ue {
1251
1251
  worksheetTypes: [pe, ve]
1252
1252
  }, [c], i, o);
1253
1253
  else {
1254
- const f = (r = this._sheetsSelectionService.getCurrentLastSelection()) == null ? void 0 : r.range;
1255
- if (f) {
1256
- let S = { ...f };
1257
- S = f.startColumn === f.endColumn && f.startRow === f.endRow ? Zr(S, { left: !0, right: !0, up: !0, down: !0 }, l) : S, h = this._sheetPermissionCheckPermission.permissionCheckWithRanges({
1254
+ const m = (r = this._sheetsSelectionService.getCurrentLastSelection()) == null ? void 0 : r.range;
1255
+ if (m) {
1256
+ let S = { ...m };
1257
+ S = m.startColumn === m.endColumn && m.startRow === m.endRow ? Zr(S, { left: !0, right: !0, up: !0, down: !0 }, l) : S, h = this._sheetPermissionCheckPermission.permissionCheckWithRanges({
1258
1258
  rangeTypes: [_e],
1259
1259
  worksheetTypes: [ve, pe]
1260
1260
  }, [S], i, o);
@@ -1278,37 +1278,37 @@ let ce = class extends ue {
1278
1278
  }
1279
1279
  };
1280
1280
  ce = Ti([
1281
- oe(0, T(z)),
1281
+ oe(0, T(X)),
1282
1282
  oe(1, T(G)),
1283
1283
  oe(2, j),
1284
1284
  oe(3, T(Gr)),
1285
1285
  oe(4, T(re)),
1286
1286
  oe(5, T(jr))
1287
1287
  ], ce);
1288
- const q = 16, Ei = 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");
1288
+ const K = 16, Ei = 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");
1289
1289
  class It {
1290
1290
  static drawNoCriteria(e, r, s, n) {
1291
1291
  e.save(), Ct.drawWith(e, {
1292
1292
  radius: 2,
1293
- width: q,
1294
- height: q,
1293
+ width: K,
1294
+ height: K,
1295
1295
  fill: n
1296
- }), e.lineCap = "square", e.strokeStyle = s, e.scale(r / q, r / q), 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();
1296
+ }), e.lineCap = "square", e.strokeStyle = s, e.scale(r / K, r / K), 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();
1297
1297
  }
1298
1298
  static drawHasCriteria(e, r, s, n) {
1299
1299
  e.save(), Ct.drawWith(e, {
1300
1300
  radius: 2,
1301
- width: q,
1302
- height: q,
1301
+ width: K,
1302
+ height: K,
1303
1303
  fill: n
1304
- }), e.scale(r / q, r / q), e.fillStyle = s, e.fill(Ei), e.restore();
1304
+ }), e.scale(r / K, r / K), e.fillStyle = s, e.fill(Ei), e.restore();
1305
1305
  }
1306
1306
  }
1307
1307
  var Fi = Object.getOwnPropertyDescriptor, Ni = (t, e, r, s) => {
1308
1308
  for (var n = s > 1 ? void 0 : s ? Fi(e, r) : e, a = t.length - 1, i; a >= 0; a--)
1309
1309
  (i = t[a]) && (n = i(n) || n);
1310
1310
  return n;
1311
- }, qe = (t, e) => (r, s) => e(r, s, t);
1311
+ }, Ke = (t, e) => (r, s) => e(r, s, t);
1312
1312
  const B = 16, Ce = 1;
1313
1313
  let tt = class extends Vr {
1314
1314
  constructor(e, r, s, n, a) {
@@ -1353,9 +1353,9 @@ let tt = class extends Vr {
1353
1353
  }
1354
1354
  };
1355
1355
  tt = Ni([
1356
- qe(2, We),
1357
- qe(3, j),
1358
- qe(4, T(Lt))
1356
+ Ke(2, We),
1357
+ Ke(3, j),
1358
+ Ke(4, T(Lt))
1359
1359
  ], tt);
1360
1360
  var Ii = Object.getOwnPropertyDescriptor, yi = (t, e, r, s) => {
1361
1361
  for (var n = s > 1 ? void 0 : s ? Ii(e, r) : e, a = t.length - 1, i; a >= 0; a--)
@@ -1401,7 +1401,7 @@ let rt = class extends Mt {
1401
1401
  ii(
1402
1402
  ([c]) => {
1403
1403
  var h;
1404
- return c.type === Be.MUTATION && ((h = c.params) == null ? void 0 : h.unitId) === r.getUnitId() && (vr.has(c.id) || c.id === qr.id);
1404
+ return c.type === Be.MUTATION && ((h = c.params) == null ? void 0 : h.unitId) === r.getUnitId() && (vr.has(c.id) || c.id === Kr.id);
1405
1405
  }
1406
1406
  ),
1407
1407
  Vt(20, void 0, { leading: !1, trailing: !0 }),
@@ -1438,12 +1438,12 @@ let rt = class extends Mt {
1438
1438
  if (!c)
1439
1439
  return;
1440
1440
  this._interceptCellContent(n, i, e.range);
1441
- const { startColumn: h, endColumn: f, startRow: S } = r;
1442
- for (let p = h; p <= f; p++) {
1443
- const _ = `sheets-filter-button-${p}`, C = Rr(S, p, l, a), F = c.getComposedCellStyle(S, p), N = (F == null ? void 0 : F.vt) || Re.BOTTOM, { startX: R, startY: O, endX: A, endY: P } = C, Y = A - R, Z = P - O;
1441
+ const { startColumn: h, endColumn: m, startRow: S } = r;
1442
+ for (let p = h; p <= m; p++) {
1443
+ const _ = `sheets-filter-button-${p}`, C = Rr(S, p, l, a), F = c.getComposedCellStyle(S, p), N = (F == null ? void 0 : F.vt) || Re.BOTTOM, { startX: R, startY: O, endX: A, endY: w } = C, Y = A - R, Z = w - O;
1444
1444
  if (Z <= Ce || Y <= Ce)
1445
1445
  continue;
1446
- const se = !!s.getFilterColumn(p), M = A - B - Ce, E = Ri(O, P, Z, N), Qe = {
1446
+ const se = !!s.getFilterColumn(p), M = A - B - Ce, E = Ri(O, w, Z, N), Qe = {
1447
1447
  left: M,
1448
1448
  top: E,
1449
1449
  height: B,
@@ -1459,11 +1459,11 @@ let rt = class extends Mt {
1459
1459
  }
1460
1460
  _interceptCellContent(e, r, s) {
1461
1461
  const { startRow: n, startColumn: a, endColumn: i } = s;
1462
- this._buttonRenderDisposable = this._sheetInterceptorService.intercept(Xr.CELL_CONTENT, {
1463
- effect: fr.Style,
1462
+ this._buttonRenderDisposable = this._sheetInterceptorService.intercept(qr.CELL_CONTENT, {
1463
+ effect: mr.Style,
1464
1464
  handler: (o, l, c) => {
1465
- const { row: h, col: f, unitId: S, subUnitId: p } = l;
1466
- return S !== e || p !== r || h !== n || f < a || f > i || ((!o || o === l.rawData) && (o = { ...l.rawData }), o.fontRenderExtension = {
1465
+ const { row: h, col: m, unitId: S, subUnitId: p } = l;
1466
+ return S !== e || p !== r || h !== n || m < a || m > i || ((!o || o === l.rawData) && (o = { ...l.rawData }), o.fontRenderExtension = {
1467
1467
  ...o == null ? void 0 : o.fontRenderExtension,
1468
1468
  rightOffset: B
1469
1469
  }), c(o);
@@ -1479,13 +1479,13 @@ let rt = class extends Mt {
1479
1479
  rt = yi([
1480
1480
  te(1, T(re)),
1481
1481
  te(2, T(Ir)),
1482
- te(3, T(z)),
1482
+ te(3, T(X)),
1483
1483
  te(4, T(Lt)),
1484
- te(5, T(Kr)),
1484
+ te(5, T(zr)),
1485
1485
  te(6, j),
1486
1486
  te(7, yr)
1487
1487
  ], rt);
1488
- var Ai = Object.getOwnPropertyDescriptor, wi = (t, e, r, s) => {
1488
+ var Ai = Object.getOwnPropertyDescriptor, Pi = (t, e, r, s) => {
1489
1489
  for (var n = s > 1 ? void 0 : s ? Ai(e, r) : e, a = t.length - 1, i; a >= 0; a--)
1490
1490
  (i = t[a]) && (n = i(n) || n);
1491
1491
  return n;
@@ -1503,11 +1503,11 @@ let Ee = class extends Mt {
1503
1503
  ));
1504
1504
  }
1505
1505
  };
1506
- Ee = wi([
1506
+ Ee = Pi([
1507
1507
  yt(0, Wt),
1508
1508
  yt(1, T(Dt))
1509
1509
  ], Ee);
1510
- var Pi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, Li = (t, e, r) => e in t ? Pi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Mi = (t, e, r, s) => {
1510
+ var wi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, Li = (t, e, r) => e in t ? wi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Mi = (t, e, r, s) => {
1511
1511
  for (var n = s > 1 ? void 0 : s ? $i(e, r) : e, a = t.length - 1, i; a >= 0; a--)
1512
1512
  (i = t[a]) && (n = i(n) || n);
1513
1513
  return n;
@@ -1521,7 +1521,7 @@ let Ue = class extends it {
1521
1521
  xe,
1522
1522
  this._config
1523
1523
  );
1524
- s && this._configService.setConfig("menu", s, { merge: !0 }), this._configService.setConfig(zt, n);
1524
+ s && this._configService.setConfig("menu", s, { merge: !0 }), this._configService.setConfig(Xt, n);
1525
1525
  }
1526
1526
  onStarting() {
1527
1527
  [
@@ -1543,8 +1543,8 @@ Ue = Mi([
1543
1543
  Ot(1, T(re)),
1544
1544
  Ot(2, Ut)
1545
1545
  ], Ue);
1546
- function fe({ ref: t, ...e }) {
1547
- const { icon: r, id: s, className: n, extend: a, ...i } = e, o = `univerjs-icon univerjs-icon-${s} ${n || ""}`.trim(), l = mi(`_${Hi()}`);
1546
+ function me({ ref: t, ...e }) {
1547
+ const { icon: r, id: s, className: n, extend: a, ...i } = e, o = `univerjs-icon univerjs-icon-${s} ${n || ""}`.trim(), l = fi(`_${Hi()}`);
1548
1548
  return er(r, `${s}`, {
1549
1549
  defIds: r.defIds,
1550
1550
  idSuffix: l.current
@@ -1588,7 +1588,7 @@ function ki(t, e) {
1588
1588
  function Hi() {
1589
1589
  return Math.random().toString(36).substring(2, 8);
1590
1590
  }
1591
- fe.displayName = "UniverIcon";
1591
+ me.displayName = "UniverIcon";
1592
1592
  const Di = {
1593
1593
  tag: "svg",
1594
1594
  attrs: {
@@ -1612,7 +1612,7 @@ const Di = {
1612
1612
  }
1613
1613
  }]
1614
1614
  }, tr = Ne(function(e, r) {
1615
- return de(fe, Object.assign({}, e, {
1615
+ return de(me, Object.assign({}, e, {
1616
1616
  id: "a-icon",
1617
1617
  ref: r,
1618
1618
  icon: Di
@@ -1642,7 +1642,7 @@ const Bi = {
1642
1642
  }
1643
1643
  }]
1644
1644
  }, rr = Ne(function(e, r) {
1645
- return de(fe, Object.assign({}, e, {
1645
+ return de(me, Object.assign({}, e, {
1646
1646
  id: "ban-icon",
1647
1647
  ref: r,
1648
1648
  icon: Bi
@@ -1668,7 +1668,7 @@ const Wi = {
1668
1668
  }
1669
1669
  }]
1670
1670
  }, ir = Ne(function(e, r) {
1671
- return de(fe, Object.assign({}, e, {
1671
+ return de(me, Object.assign({}, e, {
1672
1672
  id: "filter-icon",
1673
1673
  ref: r,
1674
1674
  icon: Wi
@@ -1692,7 +1692,7 @@ const Vi = {
1692
1692
  }
1693
1693
  }]
1694
1694
  }, sr = Ne(function(e, r) {
1695
- return de(fe, Object.assign({}, e, {
1695
+ return de(me, Object.assign({}, e, {
1696
1696
  id: "info-icon",
1697
1697
  ref: r,
1698
1698
  icon: Vi
@@ -1718,7 +1718,7 @@ const Qi = {
1718
1718
  }
1719
1719
  }]
1720
1720
  }, nr = Ne(function(e, r) {
1721
- return de(fe, Object.assign({}, e, {
1721
+ return de(me, Object.assign({}, e, {
1722
1722
  id: "success-icon",
1723
1723
  ref: r,
1724
1724
  icon: Qi
@@ -1757,20 +1757,20 @@ function Gi(t) {
1757
1757
  children: s.map((o, l) => /* @__PURE__ */ y(
1758
1758
  "div",
1759
1759
  {
1760
- className: "univer-relative univer-h-6 univer-w-6",
1760
+ className: "univer-relative univer-size-6",
1761
1761
  onClick: () => a(o),
1762
1762
  children: [
1763
1763
  o.color ? /* @__PURE__ */ d(
1764
1764
  "button",
1765
1765
  {
1766
1766
  type: "button",
1767
- className: Ae("univer-box-border univer-h-6 univer-w-6 univer-cursor-pointer univer-rounded-full univer-border univer-border-solid univer-border-transparent univer-bg-gray-300 univer-transition-shadow hover:univer-ring-2 hover:univer-ring-offset-2 hover:univer-ring-offset-white"),
1767
+ className: Ae("univer-box-border univer-size-6 univer-cursor-pointer univer-rounded-full univer-border univer-border-solid univer-border-transparent univer-bg-gray-300 univer-transition-shadow hover:univer-ring-2 hover:univer-ring-offset-2 hover:univer-ring-offset-white"),
1768
1768
  style: { backgroundColor: o.color }
1769
1769
  }
1770
1770
  ) : /* @__PURE__ */ d(
1771
1771
  rr,
1772
1772
  {
1773
- className: "univer-h-6 univer-w-6 univer-cursor-pointer univer-rounded-full hover:univer-ring-2 hover:univer-ring-offset-2 hover:univer-ring-offset-white"
1773
+ className: "univer-size-6 univer-cursor-pointer univer-rounded-full hover:univer-ring-2 hover:univer-ring-offset-2 hover:univer-ring-offset-white"
1774
1774
  }
1775
1775
  ),
1776
1776
  o.checked && /* @__PURE__ */ d(bt, {})
@@ -1796,13 +1796,13 @@ function Gi(t) {
1796
1796
  children: n.map((o, l) => /* @__PURE__ */ y(
1797
1797
  "div",
1798
1798
  {
1799
- className: "univer-relative univer-h-6 univer-w-6",
1799
+ className: "univer-relative univer-size-6",
1800
1800
  onClick: () => i(o),
1801
1801
  children: [
1802
1802
  /* @__PURE__ */ d(
1803
1803
  "div",
1804
1804
  {
1805
- className: "univer-box-border univer-flex univer-h-full univer-w-full univer-cursor-pointer univer-items-center univer-justify-center univer-rounded-full univer-border univer-border-solid univer-border-[rgba(13,13,13,0.06)] univer-p-0.5 hover:univer-ring-2 hover:univer-ring-offset-2 hover:univer-ring-offset-white dark:!univer-border-[rgba(255,255,255,0.06)]",
1805
+ className: "univer-box-border univer-flex univer-size-full univer-cursor-pointer univer-items-center univer-justify-center univer-rounded-full univer-border univer-border-solid univer-border-[rgba(13,13,13,0.06)] univer-p-0.5 hover:univer-ring-2 hover:univer-ring-offset-2 hover:univer-ring-offset-white dark:!univer-border-[rgba(255,255,255,0.06)]",
1806
1806
  children: /* @__PURE__ */ d(tr, { style: { color: o.color } })
1807
1807
  }
1808
1808
  ),
@@ -1817,7 +1817,7 @@ function Gi(t) {
1817
1817
  s.length <= 1 && n.length <= 1 && /* @__PURE__ */ d(
1818
1818
  "div",
1819
1819
  {
1820
- className: "univer-flex univer-h-full univer-w-full univer-items-center univer-justify-center univer-text-sm univer-text-gray-900 dark:!univer-text-gray-200",
1820
+ className: "univer-flex univer-size-full univer-items-center univer-justify-center univer-text-sm univer-text-gray-900 dark:!univer-text-gray-200",
1821
1821
  children: r.t("sheets-filter.panel.filter-by-color-none")
1822
1822
  }
1823
1823
  )
@@ -1831,11 +1831,11 @@ function bt() {
1831
1831
  return /* @__PURE__ */ d(
1832
1832
  "div",
1833
1833
  {
1834
- className: "univer-absolute -univer-bottom-0.5 -univer-right-0.5 univer-flex univer-h-3 univer-w-3 univer-cursor-pointer univer-items-center univer-justify-center univer-rounded-full univer-bg-white",
1834
+ className: "univer-absolute -univer-bottom-0.5 -univer-right-0.5 univer-flex univer-size-3 univer-cursor-pointer univer-items-center univer-justify-center univer-rounded-full univer-bg-white",
1835
1835
  children: /* @__PURE__ */ d(
1836
1836
  nr,
1837
1837
  {
1838
- className: "univer-h-full univer-w-full univer-font-bold univer-text-[#418F1F]"
1838
+ className: "univer-size-full univer-font-bold univer-text-[#418F1F]"
1839
1839
  }
1840
1840
  )
1841
1841
  }
@@ -1849,9 +1849,9 @@ function ji(t) {
1849
1849
  e.onPrimaryConditionChange(C);
1850
1850
  }, [e]), c = Zi(r), h = U((C) => {
1851
1851
  e.onConditionFormChange(C);
1852
- }, [e]), f = r.t("sheets-filter.panel.input-values-placeholder");
1852
+ }, [e]), m = r.t("sheets-filter.panel.input-values-placeholder");
1853
1853
  function S(C, F, N) {
1854
- const R = m.getItemByOperator(C).numOfParameters === 1;
1854
+ const R = f.getItemByOperator(C).numOfParameters === 1;
1855
1855
  return /* @__PURE__ */ y(Ft, { children: [
1856
1856
  N === "operator2" && /* @__PURE__ */ y(ai, { value: a, onChange: i, children: [
1857
1857
  /* @__PURE__ */ d(Et, { value: "AND", children: r.t("sheets-filter.panel.and") }),
@@ -1870,7 +1870,7 @@ function ji(t) {
1870
1870
  {
1871
1871
  className: "univer-mt-2",
1872
1872
  value: F,
1873
- placeholder: f,
1873
+ placeholder: m,
1874
1874
  onChange: (O) => h({ [N === "operator1" ? "val1" : "val2"]: O })
1875
1875
  }
1876
1876
  ) })
@@ -1883,7 +1883,7 @@ function ji(t) {
1883
1883
  className: "univer-flex univer-h-full univer-min-h-[300px] univer-flex-col",
1884
1884
  children: s && n && /* @__PURE__ */ y(Ft, { children: [
1885
1885
  /* @__PURE__ */ d(Tt, { value: s.operator, options: o, onChange: l }),
1886
- m.getItemByOperator(s.operator).numOfParameters !== 0 ? /* @__PURE__ */ y(
1886
+ f.getItemByOperator(s.operator).numOfParameters !== 0 ? /* @__PURE__ */ y(
1887
1887
  "div",
1888
1888
  {
1889
1889
  "data-u-comp": "sheets-filter-panel-conditions-container-inner",
@@ -1915,51 +1915,51 @@ function Yi(t) {
1915
1915
  return ut(() => [
1916
1916
  {
1917
1917
  options: [
1918
- { label: t.t(m.NONE.label), value: m.NONE.operator }
1918
+ { label: t.t(f.NONE.label), value: f.NONE.operator }
1919
1919
  ]
1920
1920
  },
1921
1921
  {
1922
1922
  options: [
1923
- { label: t.t(m.EMPTY.label), value: m.EMPTY.operator },
1924
- { label: t.t(m.NOT_EMPTY.label), value: m.NOT_EMPTY.operator }
1923
+ { label: t.t(f.EMPTY.label), value: f.EMPTY.operator },
1924
+ { label: t.t(f.NOT_EMPTY.label), value: f.NOT_EMPTY.operator }
1925
1925
  ]
1926
1926
  },
1927
1927
  {
1928
1928
  options: [
1929
- { label: t.t(m.TEXT_CONTAINS.label), value: m.TEXT_CONTAINS.operator },
1930
- { label: t.t(m.DOES_NOT_CONTAIN.label), value: m.DOES_NOT_CONTAIN.operator },
1931
- { label: t.t(m.STARTS_WITH.label), value: m.STARTS_WITH.operator },
1932
- { label: t.t(m.ENDS_WITH.label), value: m.ENDS_WITH.operator },
1933
- { label: t.t(m.EQUALS.label), value: m.EQUALS.operator }
1929
+ { label: t.t(f.TEXT_CONTAINS.label), value: f.TEXT_CONTAINS.operator },
1930
+ { label: t.t(f.DOES_NOT_CONTAIN.label), value: f.DOES_NOT_CONTAIN.operator },
1931
+ { label: t.t(f.STARTS_WITH.label), value: f.STARTS_WITH.operator },
1932
+ { label: t.t(f.ENDS_WITH.label), value: f.ENDS_WITH.operator },
1933
+ { label: t.t(f.EQUALS.label), value: f.EQUALS.operator }
1934
1934
  ]
1935
1935
  },
1936
1936
  {
1937
1937
  options: [
1938
- { label: t.t(m.GREATER_THAN.label), value: m.GREATER_THAN.operator },
1939
- { label: t.t(m.GREATER_THAN_OR_EQUAL.label), value: m.GREATER_THAN_OR_EQUAL.operator },
1940
- { label: t.t(m.LESS_THAN.label), value: m.LESS_THAN.operator },
1941
- { label: t.t(m.LESS_THAN_OR_EQUAL.label), value: m.LESS_THAN_OR_EQUAL.operator },
1942
- { label: t.t(m.EQUAL.label), value: m.EQUAL.operator },
1943
- { label: t.t(m.NOT_EQUAL.label), value: m.NOT_EQUAL.operator },
1944
- { label: t.t(m.BETWEEN.label), value: m.BETWEEN.operator },
1945
- { label: t.t(m.NOT_BETWEEN.label), value: m.NOT_BETWEEN.operator }
1938
+ { label: t.t(f.GREATER_THAN.label), value: f.GREATER_THAN.operator },
1939
+ { label: t.t(f.GREATER_THAN_OR_EQUAL.label), value: f.GREATER_THAN_OR_EQUAL.operator },
1940
+ { label: t.t(f.LESS_THAN.label), value: f.LESS_THAN.operator },
1941
+ { label: t.t(f.LESS_THAN_OR_EQUAL.label), value: f.LESS_THAN_OR_EQUAL.operator },
1942
+ { label: t.t(f.EQUAL.label), value: f.EQUAL.operator },
1943
+ { label: t.t(f.NOT_EQUAL.label), value: f.NOT_EQUAL.operator },
1944
+ { label: t.t(f.BETWEEN.label), value: f.BETWEEN.operator },
1945
+ { label: t.t(f.NOT_BETWEEN.label), value: f.NOT_BETWEEN.operator }
1946
1946
  ]
1947
1947
  },
1948
1948
  {
1949
1949
  options: [
1950
- { label: t.t(m.CUSTOM.label), value: m.CUSTOM.operator }
1950
+ { label: t.t(f.CUSTOM.label), value: f.CUSTOM.operator }
1951
1951
  ]
1952
1952
  }
1953
1953
  ], [e, t]);
1954
1954
  }
1955
1955
  function Zi(t) {
1956
1956
  const e = t.getCurrentLocale();
1957
- return ut(() => m.ALL_CONDITIONS.filter((r) => r.numOfParameters !== 2).map((r) => ({ label: t.t(r.label), value: r.operator })), [e, t]);
1957
+ return ut(() => f.ALL_CONDITIONS.filter((r) => r.numOfParameters !== 2).map((r) => ({ label: t.t(r.label), value: r.operator })), [e, t]);
1958
1958
  }
1959
- function Ki(t) {
1960
- const { model: e } = t, r = D(G), s = L(e.searchString$, "", !0), n = L(e.filterItems$, void 0, !0), a = r.t("sheets-filter.panel.filter-only"), i = ze(n), o = i.checked > 0 && i.unchecked === 0, l = i.checked > 0 && i.unchecked > 0, c = e.treeMapCache, h = U(() => {
1959
+ function zi(t) {
1960
+ const { model: e } = t, r = D(G), s = L(e.searchString$, "", !0), n = L(e.filterItems$, void 0, !0), a = r.t("sheets-filter.panel.filter-only"), i = Xe(n), o = i.checked > 0 && i.unchecked === 0, l = i.checked > 0 && i.unchecked > 0, c = e.treeMapCache, h = U(() => {
1961
1961
  e.onCheckAllToggled(!o);
1962
- }, [e, o]), f = U((p) => {
1962
+ }, [e, o]), m = U((p) => {
1963
1963
  e.setSearchString(p);
1964
1964
  }, [e]);
1965
1965
  function S(p) {
@@ -1980,7 +1980,7 @@ function Ki(t) {
1980
1980
  autoFocus: !0,
1981
1981
  value: s,
1982
1982
  placeholder: r.t("sheets-filter.panel.search-placeholder"),
1983
- onChange: f
1983
+ onChange: m
1984
1984
  }
1985
1985
  ),
1986
1986
  /* @__PURE__ */ y(
@@ -1998,7 +1998,7 @@ function Ki(t) {
1998
1998
  "div",
1999
1999
  {
2000
2000
  "data-u-comp": "sheets-filter-panel-values-item-inner",
2001
- 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",
2001
+ className: "univer-box-border univer-flex univer-h-7 univer-items-center univer-rounded-md univer-py-0 univer-pl-5 univer-pr-0.5 univer-text-sm",
2002
2002
  children: [
2003
2003
  /* @__PURE__ */ d(
2004
2004
  ci,
@@ -2088,7 +2088,7 @@ function Ki(t) {
2088
2088
  }
2089
2089
  );
2090
2090
  }
2091
- function qi() {
2091
+ function Ki() {
2092
2092
  const t = D(Tr);
2093
2093
  if (!L(t.visible$, void 0, !0)) return null;
2094
2094
  const r = D(G), s = D(Bt), n = L(t.enabled$, void 0, !0);
@@ -2126,17 +2126,17 @@ function qi() {
2126
2126
  }
2127
2127
  );
2128
2128
  }
2129
- function Xi() {
2129
+ function qi() {
2130
2130
  var F;
2131
- const t = D(X), e = D(G), r = D(j), s = L(t.filterBy$, void 0, !0), n = L(t.filterByModel$, void 0, !1), a = L(() => (n == null ? void 0 : n.canApply$) || he(!1), void 0, !1, [n]), i = zi(e), o = !L(t.hasCriteria$), l = U((N) => {
2132
- r.executeCommand(Xt.id, { filterBy: N });
2131
+ const t = D(q), e = D(G), r = D(j), s = L(t.filterBy$, void 0, !0), n = L(t.filterByModel$, void 0, !1), a = L(() => (n == null ? void 0 : n.canApply$) || he(!1), void 0, !1, [n]), i = Xi(e), o = !L(t.hasCriteria$), l = U((N) => {
2132
+ r.executeCommand(qt.id, { filterBy: N });
2133
2133
  }, [r]), c = U(async () => {
2134
2134
  await (n == null ? void 0 : n.clear()), r.executeCommand(Se.id);
2135
2135
  }, [n, r]), h = U(() => {
2136
2136
  r.executeCommand(Se.id);
2137
- }, [r]), f = U(async () => {
2137
+ }, [r]), m = U(async () => {
2138
2138
  await (n == null ? void 0 : n.apply()), r.executeCommand(Se.id);
2139
- }, [n, r]), p = (F = D(z).activeFilterModel) == null ? void 0 : F.getRange(), _ = t.col, C = xr(Ar.FILTER_PANEL_EMBED_POINT);
2139
+ }, [n, r]), p = (F = D(X).activeFilterModel) == null ? void 0 : F.getRange(), _ = t.col, C = xr(Ar.FILTER_PANEL_EMBED_POINT);
2140
2140
  return /* @__PURE__ */ y(
2141
2141
  "div",
2142
2142
  {
@@ -2151,7 +2151,7 @@ function Xi() {
2151
2151
  }
2152
2152
  ),
2153
2153
  /* @__PURE__ */ d("div", { className: "univer-mb-1 univer-flex-shrink-0 univer-flex-grow-0", children: /* @__PURE__ */ d(
2154
- fi,
2154
+ mi,
2155
2155
  {
2156
2156
  value: s,
2157
2157
  items: i,
@@ -2163,10 +2163,10 @@ function Xi() {
2163
2163
  {
2164
2164
  "data-u-comp": "sheets-filter-panel-content",
2165
2165
  className: "univer-flex-shrink univer-flex-grow univer-pt-2",
2166
- children: s === w.VALUES ? /* @__PURE__ */ d(Ki, { model: n }) : s === w.COLORS ? /* @__PURE__ */ d(Gi, { model: n }) : /* @__PURE__ */ d(ji, { model: n })
2166
+ children: s === P.VALUES ? /* @__PURE__ */ d(zi, { model: n }) : s === P.COLORS ? /* @__PURE__ */ d(Gi, { model: n }) : /* @__PURE__ */ d(ji, { model: n })
2167
2167
  }
2168
2168
  ) : /* @__PURE__ */ d("div", { className: "univer-flex-1" }),
2169
- /* @__PURE__ */ d(qi, {}),
2169
+ /* @__PURE__ */ d(Ki, {}),
2170
2170
  /* @__PURE__ */ y(
2171
2171
  "div",
2172
2172
  {
@@ -2176,7 +2176,7 @@ function Xi() {
2176
2176
  /* @__PURE__ */ d(Ze, { variant: "link", onClick: c, disabled: o, children: e.t("sheets-filter.panel.clear-filter") }),
2177
2177
  /* @__PURE__ */ y("span", { className: "univer-flex univer-gap-2", children: [
2178
2178
  /* @__PURE__ */ d(Ze, { variant: "default", onClick: h, children: e.t("sheets-filter.panel.cancel") }),
2179
- /* @__PURE__ */ d(Ze, { disabled: !a, variant: "primary", onClick: f, children: e.t("sheets-filter.panel.confirm") })
2179
+ /* @__PURE__ */ d(Ze, { disabled: !a, variant: "primary", onClick: m, children: e.t("sheets-filter.panel.confirm") })
2180
2180
  ] })
2181
2181
  ]
2182
2182
  }
@@ -2185,16 +2185,16 @@ function Xi() {
2185
2185
  }
2186
2186
  );
2187
2187
  }
2188
- function zi(t) {
2188
+ function Xi(t) {
2189
2189
  const e = t.getCurrentLocale();
2190
2190
  return ut(() => [
2191
- { label: t.t("sheets-filter.panel.by-values"), value: w.VALUES },
2192
- { label: t.t("sheets-filter.panel.by-colors"), value: w.COLORS },
2193
- { label: t.t("sheets-filter.panel.by-conditions"), value: w.CONDITIONS }
2191
+ { label: t.t("sheets-filter.panel.by-values"), value: P.VALUES },
2192
+ { label: t.t("sheets-filter.panel.by-colors"), value: P.COLORS },
2193
+ { label: t.t("sheets-filter.panel.by-conditions"), value: P.CONDITIONS }
2194
2194
  ], [e, t]);
2195
2195
  }
2196
2196
  function Ji(t) {
2197
- const e = t.get(z);
2197
+ const e = t.get(X);
2198
2198
  return {
2199
2199
  id: Fe.id,
2200
2200
  type: lt.BUTTON_SELECTOR,
@@ -2202,9 +2202,9 @@ function Ji(t) {
2202
2202
  tooltip: "sheets-filter.toolbar.smart-toggle-filter-tooltip",
2203
2203
  hidden$: ot(t, ie.UNIVER_SHEET),
2204
2204
  activated$: e.activeFilterModel$.pipe(le((r) => !!r)),
2205
- disabled$: wr(
2205
+ disabled$: Pr(
2206
2206
  t,
2207
- Pr(
2207
+ wr(
2208
2208
  t,
2209
2209
  {
2210
2210
  worksheetTypes: [pe, ve],
@@ -2215,7 +2215,7 @@ function Ji(t) {
2215
2215
  };
2216
2216
  }
2217
2217
  function es(t) {
2218
- const e = t.get(z);
2218
+ const e = t.get(X);
2219
2219
  return {
2220
2220
  id: nt.id,
2221
2221
  type: lt.BUTTON,
@@ -2228,7 +2228,7 @@ function es(t) {
2228
2228
  };
2229
2229
  }
2230
2230
  function ts(t) {
2231
- const e = t.get(z);
2231
+ const e = t.get(X);
2232
2232
  return {
2233
2233
  id: st.id,
2234
2234
  type: lt.BUTTON,
@@ -2269,10 +2269,10 @@ var ss = Object.getOwnPropertyDescriptor, ns = (t, e, r, s) => {
2269
2269
  }, $ = (t, e) => (r, s) => e(r, s, t);
2270
2270
  const Rt = "FILTER_PANEL_POPUP";
2271
2271
  let ke = class extends Ee {
2272
- constructor(e, r, s, n, a, i, o, l, c, h, f, S, p) {
2272
+ constructor(e, r, s, n, a, i, o, l, c, h, m, S, p) {
2273
2273
  super(p, S);
2274
2274
  v(this, "_popupDisposable");
2275
- this._injector = e, this._componentManager = r, this._sheetsFilterPanelService = s, this._sheetCanvasPopupService = n, this._sheetsFilterService = a, this._localeService = i, this._shortcutService = o, this._commandService = l, this._menuManagerService = c, this._contextService = h, this._messageService = f, this._initCommands(), this._initShortcuts(), this._initMenuItems(), this._initUI();
2275
+ this._injector = e, this._componentManager = r, this._sheetsFilterPanelService = s, this._sheetCanvasPopupService = n, this._sheetsFilterService = a, this._localeService = i, this._shortcutService = o, this._commandService = l, this._menuManagerService = c, this._contextService = h, this._messageService = m, this._initCommands(), this._initShortcuts(), this._initMenuItems(), this._initUI();
2276
2276
  }
2277
2277
  dispose() {
2278
2278
  super.dispose(), this._closeFilterPopup();
@@ -2292,7 +2292,7 @@ let ke = class extends Ee {
2292
2292
  V,
2293
2293
  nt,
2294
2294
  st,
2295
- Xt,
2295
+ qt,
2296
2296
  Me,
2297
2297
  Se
2298
2298
  ].forEach((e) => {
@@ -2304,7 +2304,7 @@ let ke = class extends Ee {
2304
2304
  }
2305
2305
  _initUI() {
2306
2306
  [
2307
- [Rt, Xi],
2307
+ [Rt, qi],
2308
2308
  ["FilterIcon", ir]
2309
2309
  ].forEach(([e, r]) => {
2310
2310
  this.disposeWithMe(
@@ -2339,9 +2339,9 @@ let ke = class extends Ee {
2339
2339
  ke = ns([
2340
2340
  $(0, T(re)),
2341
2341
  $(1, T(Dr)),
2342
- $(2, T(X)),
2342
+ $(2, T(q)),
2343
2343
  $(3, T(Lr)),
2344
- $(4, T(z)),
2344
+ $(4, T(X)),
2345
2345
  $(5, T(G)),
2346
2346
  $(6, Br),
2347
2347
  $(7, j),
@@ -2355,7 +2355,7 @@ var os = Object.defineProperty, ls = Object.getOwnPropertyDescriptor, as = (t, e
2355
2355
  for (var n = s > 1 ? void 0 : s ? ls(e, r) : e, a = t.length - 1, i; a >= 0; a--)
2356
2356
  (i = t[a]) && (n = i(n) || n);
2357
2357
  return n;
2358
- }, Xe = (t, e) => (r, s) => e(r, s, t), or = (t, e, r) => as(t, typeof e != "symbol" ? e + "" : e, r);
2358
+ }, qe = (t, e) => (r, s) => e(r, s, t), or = (t, e, r) => as(t, typeof e != "symbol" ? e + "" : e, r);
2359
2359
  const us = "SHEET_FILTER_UI_PLUGIN";
2360
2360
  let He = class extends it {
2361
2361
  constructor(t = xe, e, r, s) {
@@ -2365,14 +2365,14 @@ let He = class extends it {
2365
2365
  xe,
2366
2366
  this._config
2367
2367
  );
2368
- n && this._configService.setConfig("menu", n, { merge: !0 }), this._configService.setConfig(zt, a);
2368
+ n && this._configService.setConfig("menu", n, { merge: !0 }), this._configService.setConfig(Xt, a);
2369
2369
  }
2370
2370
  onStarting() {
2371
2371
  pr(this._injector, [
2372
- [X],
2372
+ [q],
2373
2373
  [ce],
2374
2374
  [ke]
2375
- ]), this._config.useRemoteFilterValuesGenerator && this._rpcChannelService && this._injector.add([we, {
2375
+ ]), this._config.useRemoteFilterValuesGenerator && this._rpcChannelService && this._injector.add([Pe, {
2376
2376
  useFactory: () => oi(
2377
2377
  this._rpcChannelService.requestChannel(ht)
2378
2378
  )
@@ -2393,40 +2393,40 @@ or(He, "type", ie.UNIVER_SHEET);
2393
2393
  or(He, "pluginName", us);
2394
2394
  He = cs([
2395
2395
  xt(Ht),
2396
- Xe(1, T(re)),
2397
- Xe(2, Ut),
2398
- Xe(3, mr(Gt))
2396
+ qe(1, T(re)),
2397
+ qe(2, Ut),
2398
+ qe(3, fr(Gt))
2399
2399
  ], He);
2400
2400
  var hs = Object.getOwnPropertyDescriptor, ds = (t, e, r, s) => {
2401
2401
  for (var n = s > 1 ? void 0 : s ? hs(e, r) : e, a = t.length - 1, i; a >= 0; a--)
2402
2402
  (i = t[a]) && (n = i(n) || n);
2403
2403
  return n;
2404
2404
  }, At = (t, e) => (r, s) => e(r, s, t), Oe;
2405
- let wt = (Oe = class extends it {
2405
+ let Pt = (Oe = class extends it {
2406
2406
  constructor(t, e, r) {
2407
2407
  super(), this._config = t, this._injector = e, this._rpcChannelService = r;
2408
2408
  }
2409
2409
  onStarting() {
2410
2410
  [
2411
- [we, { useClass: Je }]
2411
+ [Pe, { useClass: Je }]
2412
2412
  ].forEach((t) => this._injector.add(t));
2413
2413
  }
2414
2414
  onReady() {
2415
2415
  this._rpcChannelService.registerChannel(
2416
2416
  ht,
2417
- li(this._injector.get(we))
2417
+ li(this._injector.get(Pe))
2418
2418
  );
2419
2419
  }
2420
2420
  }, v(Oe, "type", ie.UNIVER_SHEET), v(Oe, "pluginName", "SHEET_FILTER_UI_WORKER_PLUGIN"), Oe);
2421
- wt = ds([
2421
+ Pt = ds([
2422
2422
  At(1, T(re)),
2423
2423
  At(2, Gt)
2424
- ], wt);
2424
+ ], Pt);
2425
2425
  export {
2426
- Xt as ChangeFilterByOperation,
2426
+ qt as ChangeFilterByOperation,
2427
2427
  Se as CloseFilterPanelOperation,
2428
2428
  Me as OpenFilterPanelOperation,
2429
2429
  Ue as UniverSheetsFilterMobileUIPlugin,
2430
2430
  He as UniverSheetsFilterUIPlugin,
2431
- wt as UniverSheetsFilterUIWorkerPlugin
2431
+ Pt as UniverSheetsFilterUIWorkerPlugin
2432
2432
  };