@univerjs/sheets-filter-ui 0.10.6 → 0.10.7

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.
Files changed (48) hide show
  1. package/lib/cjs/index.js +2 -2
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +538 -491
  13. package/lib/es/locale/ca-ES.js +11 -0
  14. package/lib/es/locale/en-US.js +11 -0
  15. package/lib/es/locale/es-ES.js +13 -2
  16. package/lib/es/locale/fa-IR.js +11 -0
  17. package/lib/es/locale/fr-FR.js +11 -0
  18. package/lib/es/locale/ko-KR.js +11 -0
  19. package/lib/es/locale/ru-RU.js +11 -0
  20. package/lib/es/locale/vi-VN.js +11 -0
  21. package/lib/es/locale/zh-CN.js +11 -0
  22. package/lib/es/locale/zh-TW.js +11 -0
  23. package/lib/index.css +1 -1
  24. package/lib/index.js +538 -491
  25. package/lib/locale/ca-ES.js +11 -0
  26. package/lib/locale/en-US.js +11 -0
  27. package/lib/locale/es-ES.js +13 -2
  28. package/lib/locale/fa-IR.js +11 -0
  29. package/lib/locale/fr-FR.js +11 -0
  30. package/lib/locale/ko-KR.js +11 -0
  31. package/lib/locale/ru-RU.js +11 -0
  32. package/lib/locale/vi-VN.js +11 -0
  33. package/lib/locale/zh-CN.js +11 -0
  34. package/lib/locale/zh-TW.js +11 -0
  35. package/lib/types/locale/en-US.d.ts +11 -0
  36. package/lib/types/views/components/SheetsFilterSyncSwitch.d.ts +16 -0
  37. package/lib/umd/index.js +2 -2
  38. package/lib/umd/locale/ca-ES.js +1 -1
  39. package/lib/umd/locale/en-US.js +1 -1
  40. package/lib/umd/locale/es-ES.js +1 -1
  41. package/lib/umd/locale/fa-IR.js +1 -1
  42. package/lib/umd/locale/fr-FR.js +1 -1
  43. package/lib/umd/locale/ko-KR.js +1 -1
  44. package/lib/umd/locale/ru-RU.js +1 -1
  45. package/lib/umd/locale/vi-VN.js +1 -1
  46. package/lib/umd/locale/zh-CN.js +1 -1
  47. package/lib/umd/locale/zh-TW.js +1 -1
  48. package/package.json +13 -13
package/lib/es/index.js CHANGED
@@ -1,23 +1,23 @@
1
- var nr = Object.defineProperty;
2
- var or = (t, e, r) => e in t ? nr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var v = (t, e, r) => or(t, typeof e != "symbol" ? e + "" : e, r);
4
- import { BooleanNumber as mt, createIdentifier as Pt, Inject as T, LocaleService as X, IUniverInstanceService as Be, ILogService as lr, extractPureTextFromCell as ar, numfmt as ft, Disposable as de, Injector as ie, Quantity as wt, Tools as Re, ColorKit as pt, ICommandService as j, CommandType as We, IContextService as Qe, ThemeService as Lt, RxDisposable as Mt, fromCallback as cr, VerticalAlign as Ae, InterceptorEffectEnum as ur, UniverInstanceType as se, DependentOn as $t, IConfigService as xt, Plugin as it, merge as Ut, Optional as hr, registerDependencies as dr, touchDependencies as vt } from "@univerjs/core";
5
- import { CustomFilterOperator as u, FilterBy as w, SetSheetsFilterCriteriaCommand as Q, SheetsFilterService as z, SmartToggleSheetsFilterCommand as Ne, FILTER_MUTATIONS as mr, SetSheetsFilterRangeMutation as fr, SetSheetsFilterCriteriaMutation as pr, RemoveSheetsFilterMutation as vr, ReCalcSheetsFilterMutation as _r, UniverSheetsFilterPlugin as kt, ReCalcSheetsFilterCommand as st, ClearSheetsFilterCriteriaCommand as nt, RemoveSheetFilterCommand as gr, SetSheetFilterRangeCommand as Sr } from "@univerjs/sheets-filter";
6
- import { SetCellEditVisibleOperation as Cr, SheetSkeletonManagerService as Tr, ISheetSelectionRenderService as Er, SelectionControl as Nr, attachSelectionWithCoord as Fr, getCoordByCell as yr, SheetsRenderService as Ht, SheetsUIPart as Or, getObservableWithExclusiveRange$ as Ir, getCurrentRangeDisable$ as br, whenSheetEditorFocused as Rr, SheetCanvasPopManagerService as Ar } from "@univerjs/sheets-ui";
7
- import { ILayoutService as Pr, useDependency as re, useObservable as D, useComponentsOfPart as wr, ComponentContainer as Lr, getMenuHiddenObservable as ot, MenuItemType as lt, RibbonDataGroup as Mr, KeyCode as $r, MetaKeys as _t, ComponentManager as xr, IShortcutService as Ur, IMenuManagerService as kr, IMessageService as Hr } from "@univerjs/ui";
8
- import { COLOR_BLACK_RGB as gt, Rect as St, Shape as Dr, IRenderManagerService as Dt } from "@univerjs/engine-render";
9
- import { RefRangeService as Br, SheetPermissionCheckController as Wr, SheetsSelectionsService as Qr, getSheetCommandTarget as Vr, WorksheetFilterPermission as pe, WorksheetViewPermission as ve, RangeProtectionPermissionViewPoint as _e, expandToContinuousRange as jr, SheetInterceptorService as Gr, SetRangeValuesMutation as Yr, INTERCEPTOR_POINT as Zr } from "@univerjs/sheets";
10
- import { BehaviorSubject as V, ReplaySubject as Kr, Subject as qr, merge as Xr, combineLatest as zr, throttleTime as Bt, startWith as Wt, map as ce, shareReplay as Jr, of as me, switchMap as at, filter as ei, takeUntil as ti, distinctUntilChanged as ri } from "rxjs";
11
- import { IRPCChannelService as Qt, toModule as ii, fromModule as si } from "@univerjs/rpc";
12
- import { clsx as Pe, borderClassName as ct, Select as Ct, RadioGroup as ni, Radio as Tt, Input as Vt, Checkbox as oi, Tree as li, Segmented as ai, Button as Ze, MessageType as ci } from "@univerjs/design";
13
- import { jsx as p, jsxs as I, Fragment as Et } from "react/jsx-runtime";
14
- import { forwardRef as Fe, useRef as ui, createElement as ye, useCallback as k, useMemo as ut } from "react";
15
- var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SECOND", t))(y || {}), 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;
1
+ var ar = Object.defineProperty;
2
+ var cr = (t, e, r) => e in t ? ar(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var v = (t, e, r) => cr(t, typeof e != "symbol" ? e + "" : e, r);
4
+ import { BooleanNumber as ft, createIdentifier as wt, Inject as T, LocaleService as G, IUniverInstanceService as Be, ILogService as ur, extractPureTextFromCell as hr, numfmt as mt, Disposable as de, Injector as ie, Quantity as Pt, Tools as Re, ColorKit as pt, ICommandService as Y, CommandType as We, IContextService as Ve, ThemeService as Lt, RxDisposable as Mt, fromCallback as dr, VerticalAlign as Ae, InterceptorEffectEnum as fr, UniverInstanceType as se, DependentOn as $t, IConfigService as xt, Plugin as it, merge as Ut, Optional as mr, registerDependencies as pr, touchDependencies as vt } from "@univerjs/core";
5
+ import { CustomFilterOperator as u, FilterBy as P, SetSheetsFilterCriteriaCommand as Q, SheetsFilterService as J, SmartToggleSheetsFilterCommand as Oe, FILTER_MUTATIONS as vr, SetSheetsFilterRangeMutation as _r, SetSheetsFilterCriteriaMutation as gr, RemoveSheetsFilterMutation as Sr, ReCalcSheetsFilterMutation as Cr, UniverSheetsFilterPlugin as kt, SheetsFilterSyncController as Tr, ReCalcSheetsFilterCommand as st, ClearSheetsFilterCriteriaCommand as nt, RemoveSheetFilterCommand as Er, SetSheetFilterRangeCommand as Nr } from "@univerjs/sheets-filter";
6
+ import { SetCellEditVisibleOperation as Fr, SheetSkeletonManagerService as yr, ISheetSelectionRenderService as Or, SelectionControl as Ir, attachSelectionWithCoord as br, getCoordByCell as Rr, SheetsRenderService as Ht, SheetsUIPart as Ar, getObservableWithExclusiveRange$ as wr, getCurrentRangeDisable$ as Pr, whenSheetEditorFocused as Lr, SheetCanvasPopManagerService as Mr } from "@univerjs/sheets-ui";
7
+ import { ILayoutService as $r, useDependency as B, useObservable as x, IMessageService as Dt, useComponentsOfPart as xr, ComponentContainer as Ur, getMenuHiddenObservable as ot, MenuItemType as lt, RibbonDataGroup as kr, KeyCode as Hr, MetaKeys as _t, ComponentManager as Dr, IShortcutService as Br, IMenuManagerService as Wr } from "@univerjs/ui";
8
+ import { COLOR_BLACK_RGB as gt, Rect as St, Shape as Vr, IRenderManagerService as Bt } from "@univerjs/engine-render";
9
+ import { RefRangeService as Qr, SheetPermissionCheckController as jr, SheetsSelectionsService as Gr, getSheetCommandTarget as Yr, WorksheetFilterPermission as ge, WorksheetViewPermission as Se, RangeProtectionPermissionViewPoint as Ce, expandToContinuousRange as Zr, SheetInterceptorService as Kr, SetRangeValuesMutation as qr, INTERCEPTOR_POINT as Xr } from "@univerjs/sheets";
10
+ import { BehaviorSubject as j, ReplaySubject as zr, Subject as Jr, merge as ei, combineLatest as ti, throttleTime as Wt, startWith as Vt, map as ce, shareReplay as ri, of as fe, switchMap as at, filter as ii, takeUntil as si, distinctUntilChanged as ni } from "rxjs";
11
+ import { IRPCChannelService as Qt, toModule as oi, fromModule as li } from "@univerjs/rpc";
12
+ import { clsx as we, borderClassName as ct, Select as Ct, RadioGroup as ai, Radio as Tt, Input as jt, Checkbox as ci, Tree as ui, Tooltip as hi, Switch as di, MessageType as Gt, Segmented as fi, Button as Ze } from "@univerjs/design";
13
+ import { jsx as d, jsxs as F, Fragment as Et } from "react/jsx-runtime";
14
+ import { forwardRef as me, useRef as mi, createElement as pe, useCallback as H, useMemo as ut } from "react";
15
+ var O = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SECOND", t))(O || {}), 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;
16
16
  ((t) => {
17
17
  t.NONE = {
18
18
  label: "sheets-filter.conditions.none",
19
19
  operator: g.NONE,
20
- order: y.SECOND,
20
+ order: O.SECOND,
21
21
  numOfParameters: 0,
22
22
  getDefaultFormParams: () => {
23
23
  throw new Error("[FilterConditionItems.NONE]: should not have initial form params!");
@@ -28,7 +28,7 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
28
28
  }, t.EMPTY = {
29
29
  label: "sheets-filter.conditions.empty",
30
30
  operator: g.EMPTY,
31
- order: y.SECOND,
31
+ order: O.SECOND,
32
32
  numOfParameters: 0,
33
33
  getDefaultFormParams: () => {
34
34
  throw new Error("[FilterConditionItems.EMPTY]: should not have initial form params!");
@@ -45,7 +45,7 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
45
45
  }, t.NOT_EMPTY = {
46
46
  label: "sheets-filter.conditions.not-empty",
47
47
  operator: g.NOT_EMPTY,
48
- order: y.SECOND,
48
+ order: O.SECOND,
49
49
  numOfParameters: 0,
50
50
  getDefaultFormParams: () => {
51
51
  throw new Error("[FilterConditionItems.NOT_EMPTY]: should not have initial form params!");
@@ -62,11 +62,11 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
62
62
  }, t.TEXT_CONTAINS = {
63
63
  label: "sheets-filter.conditions.text-contains",
64
64
  operator: g.CONTAINS,
65
- order: y.FIRST,
65
+ order: O.FIRST,
66
66
  numOfParameters: 1,
67
67
  getDefaultFormParams: () => ({ operator1: g.CONTAINS, val1: "" }),
68
68
  testMappingParams: (i) => {
69
- const [o] = U(i);
69
+ const [o] = k(i);
70
70
  return o === g.CONTAINS;
71
71
  },
72
72
  mapToFilterColumn: (i) => {
@@ -85,14 +85,14 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
85
85
  }, t.DOES_NOT_CONTAIN = {
86
86
  label: "sheets-filter.conditions.does-not-contain",
87
87
  operator: g.DOES_NOT_CONTAIN,
88
- order: y.FIRST,
88
+ order: O.FIRST,
89
89
  numOfParameters: 1,
90
90
  getDefaultFormParams: () => ({ operator1: g.DOES_NOT_CONTAIN, val1: "" }),
91
91
  mapToFilterColumn: (i) => ({
92
92
  customFilters: { customFilters: [{ val: `*${i.val1}*`, operator: u.NOT_EQUALS }] }
93
93
  }),
94
94
  testMappingParams: (i) => {
95
- const [o] = U(i);
95
+ const [o] = k(i);
96
96
  return o === g.DOES_NOT_CONTAIN;
97
97
  },
98
98
  testMappingFilterColumn: (i) => {
@@ -105,14 +105,14 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
105
105
  }, t.STARTS_WITH = {
106
106
  label: "sheets-filter.conditions.starts-with",
107
107
  operator: g.STARTS_WITH,
108
- order: y.FIRST,
108
+ order: O.FIRST,
109
109
  numOfParameters: 1,
110
110
  getDefaultFormParams: () => ({ operator1: g.STARTS_WITH, val1: "" }),
111
111
  mapToFilterColumn: (i) => ({
112
112
  customFilters: { customFilters: [{ val: `${i.val1}*` }] }
113
113
  }),
114
114
  testMappingParams: (i) => {
115
- const [o] = U(i);
115
+ const [o] = k(i);
116
116
  return o === g.STARTS_WITH;
117
117
  },
118
118
  testMappingFilterColumn: (i) => {
@@ -125,14 +125,14 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
125
125
  }, t.ENDS_WITH = {
126
126
  label: "sheets-filter.conditions.ends-with",
127
127
  operator: g.ENDS_WITH,
128
- order: y.FIRST,
128
+ order: O.FIRST,
129
129
  numOfParameters: 1,
130
130
  getDefaultFormParams: () => ({ operator1: g.ENDS_WITH, val1: "" }),
131
131
  mapToFilterColumn: (i) => ({
132
132
  customFilters: { customFilters: [{ val: `*${i.val1}` }] }
133
133
  }),
134
134
  testMappingParams: (i) => {
135
- const [o] = U(i);
135
+ const [o] = k(i);
136
136
  return o === g.ENDS_WITH;
137
137
  },
138
138
  testMappingFilterColumn: (i) => {
@@ -145,11 +145,11 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
145
145
  }, t.EQUALS = {
146
146
  label: "sheets-filter.conditions.equals",
147
147
  operator: g.EQUALS,
148
- order: y.FIRST,
148
+ order: O.FIRST,
149
149
  numOfParameters: 1,
150
150
  getDefaultFormParams: () => ({ operator1: g.EQUALS, val1: "" }),
151
151
  testMappingParams: (i) => {
152
- const [o] = U(i);
152
+ const [o] = k(i);
153
153
  return o === g.EQUALS;
154
154
  },
155
155
  mapToFilterColumn: (i) => {
@@ -166,13 +166,13 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
166
166
  label: "sheets-filter.conditions.greater-than",
167
167
  operator: u.GREATER_THAN,
168
168
  numOfParameters: 1,
169
- order: y.FIRST,
169
+ order: O.FIRST,
170
170
  getDefaultFormParams: () => ({ operator1: u.GREATER_THAN, val1: "" }),
171
171
  mapToFilterColumn: (i) => ({
172
172
  customFilters: { customFilters: [{ val: i.val1, operator: u.GREATER_THAN }] }
173
173
  }),
174
174
  testMappingParams: (i) => {
175
- const [o] = U(i);
175
+ const [o] = k(i);
176
176
  return o === u.GREATER_THAN;
177
177
  },
178
178
  testMappingFilterColumn: (i) => {
@@ -186,10 +186,10 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
186
186
  label: "sheets-filter.conditions.greater-than-or-equal",
187
187
  operator: u.GREATER_THAN_OR_EQUAL,
188
188
  numOfParameters: 1,
189
- order: y.FIRST,
189
+ order: O.FIRST,
190
190
  getDefaultFormParams: () => ({ operator1: u.GREATER_THAN_OR_EQUAL, val1: "" }),
191
191
  testMappingParams: (i) => {
192
- const [o] = U(i);
192
+ const [o] = k(i);
193
193
  return o === u.GREATER_THAN_OR_EQUAL;
194
194
  },
195
195
  mapToFilterColumn: (i) => ({
@@ -206,10 +206,10 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
206
206
  label: "sheets-filter.conditions.less-than",
207
207
  operator: u.LESS_THAN,
208
208
  numOfParameters: 1,
209
- order: y.FIRST,
209
+ order: O.FIRST,
210
210
  getDefaultFormParams: () => ({ operator1: u.LESS_THAN, val1: "" }),
211
211
  testMappingParams: (i) => {
212
- const [o] = U(i);
212
+ const [o] = k(i);
213
213
  return o === u.LESS_THAN;
214
214
  },
215
215
  mapToFilterColumn: (i) => ({
@@ -226,10 +226,10 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
226
226
  label: "sheets-filter.conditions.less-than-or-equal",
227
227
  operator: u.LESS_THAN_OR_EQUAL,
228
228
  numOfParameters: 1,
229
- order: y.FIRST,
229
+ order: O.FIRST,
230
230
  getDefaultFormParams: () => ({ operator1: u.LESS_THAN_OR_EQUAL, val1: "" }),
231
231
  testMappingParams: (i) => {
232
- const [o] = U(i);
232
+ const [o] = k(i);
233
233
  return o === u.LESS_THAN_OR_EQUAL;
234
234
  },
235
235
  mapToFilterColumn: (i) => ({
@@ -246,10 +246,10 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
246
246
  label: "sheets-filter.conditions.equal",
247
247
  operator: u.EQUAL,
248
248
  numOfParameters: 1,
249
- order: y.FIRST,
249
+ order: O.FIRST,
250
250
  getDefaultFormParams: () => ({ operator1: u.EQUAL, val1: "" }),
251
251
  testMappingParams: (i) => {
252
- const [o] = U(i);
252
+ const [o] = k(i);
253
253
  return o === u.EQUAL;
254
254
  },
255
255
  mapToFilterColumn: (i) => ({
@@ -266,10 +266,10 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
266
266
  label: "sheets-filter.conditions.not-equal",
267
267
  operator: u.NOT_EQUALS,
268
268
  numOfParameters: 1,
269
- order: y.FIRST,
269
+ order: O.FIRST,
270
270
  getDefaultFormParams: () => ({ operator1: u.NOT_EQUALS, val1: "" }),
271
271
  testMappingParams: (i) => {
272
- const [o] = U(i);
272
+ const [o] = k(i);
273
273
  return o === u.NOT_EQUALS;
274
274
  },
275
275
  mapToFilterColumn: (i) => ({
@@ -285,7 +285,7 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
285
285
  }, t.BETWEEN = {
286
286
  label: "sheets-filter.conditions.between",
287
287
  operator: g.BETWEEN,
288
- order: y.SECOND,
288
+ order: O.SECOND,
289
289
  numOfParameters: 2,
290
290
  getDefaultFormParams: () => ({
291
291
  and: !0,
@@ -304,7 +304,7 @@ var y = /* @__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 }
@@ -334,7 +334,7 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
334
334
  }, t.NOT_BETWEEN = {
335
335
  label: "sheets-filter.conditions.not-between",
336
336
  operator: g.NOT_BETWEEN,
337
- order: y.SECOND,
337
+ order: O.SECOND,
338
338
  numOfParameters: 2,
339
339
  getDefaultFormParams: () => ({
340
340
  operator1: u.LESS_THAN,
@@ -379,7 +379,7 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
379
379
  }, t.CUSTOM = {
380
380
  label: "sheets-filter.conditions.custom",
381
381
  operator: g.CUSTOM,
382
- order: y.SECOND,
382
+ order: O.SECOND,
383
383
  numOfParameters: 2,
384
384
  getDefaultFormParams: () => ({
385
385
  operator1: g.NONE,
@@ -389,26 +389,26 @@ var y = /* @__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: d } = i;
393
- function C(b, F) {
392
+ const { and: o, val1: l, val2: c, operator1: h, operator2: f } = i;
393
+ function C(b, y) {
394
394
  for (const R of t.ALL_CONDITIONS)
395
395
  if (R.operator === b)
396
- return R.mapToFilterColumn({ val1: F, operator1: b });
396
+ return R.mapToFilterColumn({ val1: y, operator1: b });
397
397
  }
398
- const f = !h || h === t.NONE.operator, _ = !d || d === t.NONE.operator;
399
- if (f && _)
398
+ const p = !h || h === t.NONE.operator, _ = !f || f === t.NONE.operator;
399
+ if (p && _)
400
400
  return t.NONE.mapToFilterColumn({});
401
- if (f)
402
- return C(d, c);
401
+ if (p)
402
+ return C(f, c);
403
403
  if (_)
404
404
  return C(h, l);
405
- const S = C(h, l), E = C(d, c), N = {
405
+ const S = C(h, l), E = C(f, c), N = {
406
406
  customFilters: [
407
407
  S.customFilters.customFilters[0],
408
408
  E.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;
@@ -484,7 +484,7 @@ var y = /* @__PURE__ */ ((t) => (t[t.FIRST = 0] = "FIRST", t[t.SECOND = 1] = "SE
484
484
  }
485
485
  t.testMappingFilterColumn = a;
486
486
  })(m || (m = {}));
487
- function U(t) {
487
+ function k(t) {
488
488
  const { operator1: e, operator2: r, val1: s, val2: n } = t;
489
489
  if (e && r)
490
490
  throw new Error("Both operator1 and operator2 are set!");
@@ -505,20 +505,20 @@ function ze(t) {
505
505
  unchecked: n
506
506
  };
507
507
  }
508
- var hi = Object.getOwnPropertyDescriptor, di = (t, e, r, s) => {
509
- for (var n = s > 1 ? void 0 : s ? hi(e, r) : e, a = t.length - 1, i; a >= 0; a--)
508
+ var pi = Object.getOwnPropertyDescriptor, vi = (t, e, r, s) => {
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
512
  }, Ke = (t, e) => (r, s) => e(r, s, t);
513
- const ht = "sheets-filter.generate-filter-values.service", we = Pt(ht), mi = ["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"];
513
+ const ht = "sheets-filter.generate-filter-values.service", Pe = wt(ht), _i = ["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"];
514
514
  let Je = class extends de {
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 d;
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 = (d = this._univerInstanceService.getUnit(e)) == null ? void 0 : d.getSheetBySheetId(r);
521
- return !c || !h ? [] : (this._logService.debug("[SheetsGenerateFilterValuesService]", "getFilterValues for", { unitId: e, subUnitId: r }), jt(
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);
521
+ return !c || !h ? [] : (this._logService.debug("[SheetsGenerateFilterValuesService]", "getFilterValues for", { unitId: e, subUnitId: r }), Yt(
522
522
  a,
523
523
  this._localeService,
524
524
  o,
@@ -531,96 +531,96 @@ let Je = class extends de {
531
531
  ));
532
532
  }
533
533
  };
534
- Je = di([
535
- Ke(0, T(X)),
534
+ Je = vi([
535
+ Ke(0, T(G)),
536
536
  Ke(1, Be),
537
- Ke(2, lr)
537
+ Ke(2, ur)
538
538
  ], Je);
539
- function jt(t, e, r, s, n, a, i, o, l) {
540
- var N, b, F, R, L, G, Y, ne, x, A;
541
- const c = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), d = "yyyy-mm-dd", C = new Set(mi), f = "empty", _ = !t && ((a == null ? void 0 : a.filterBy) === w.COLORS || (a == null ? void 0 : a.filterBy) === w.CONDITIONS) && ((N = a.filteredOutRows) == null ? void 0 : N.size);
539
+ function Yt(t, e, r, s, n, a, i, o, l) {
540
+ var N, b, y, R, L, Z, K, ne, U, A;
541
+ const c = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), f = "yyyy-mm-dd", C = new Set(_i), p = "empty", _ = !t && ((a == null ? void 0 : a.filterBy) === P.COLORS || (a == null ? void 0 : a.filterBy) === P.CONDITIONS) && ((N = a.filteredOutRows) == null ? void 0 : N.size);
542
542
  let S = 0;
543
- for (const P of s.iterateByColumn(r, !1, !1)) {
544
- const { row: je, rowSpan: dt = 1 } = P;
543
+ for (const w of s.iterateByColumn(r, !1, !1)) {
544
+ const { row: je, rowSpan: dt = 1 } = w;
545
545
  let oe = 0;
546
546
  for (; oe < dt; ) {
547
- const ir = je + oe;
548
- if (n.has(ir)) {
547
+ const or = je + oe;
548
+ if (n.has(or)) {
549
549
  oe++;
550
550
  continue;
551
551
  }
552
- const J = P != null && P.value ? ar(P.value) : "";
553
- if (!J) {
552
+ const ee = w != null && w.value ? hr(w.value) : "";
553
+ if (!ee) {
554
554
  S += 1, oe += dt;
555
555
  continue;
556
556
  }
557
- const Ie = (b = P.value) != null && b.v && !P.value.p ? (L = (R = l.get((F = P.value) == null ? void 0 : F.s)) == null ? void 0 : R.n) == null ? void 0 : L.pattern : "", sr = Ie && ft.getFormatInfo(Ie).isDate;
558
- if (Ie && sr && C.has(Ie)) {
559
- const Z = (G = s.getCellRaw(P.row, P.col)) == null ? void 0 : G.v;
560
- if (!Z) {
557
+ const Ie = (b = w.value) != null && b.v && !w.value.p ? (L = (R = l.get((y = w.value) == null ? void 0 : y.s)) == null ? void 0 : R.n) == null ? void 0 : L.pattern : "", lr = Ie && mt.getFormatInfo(Ie).isDate;
558
+ if (Ie && lr && C.has(Ie)) {
559
+ const q = (Z = s.getCellRaw(w.row, w.col)) == null ? void 0 : Z.v;
560
+ if (!q) {
561
561
  oe++;
562
562
  continue;
563
563
  }
564
- const le = ft.format(d, Z), [O, H, fe] = le.split("-").map(Number);
565
- let ee = c.get(`${O}`);
566
- ee || (ee = {
567
- title: `${O}`,
568
- key: `${O}`,
564
+ const le = mt.format(f, q), [I, D, _e] = le.split("-").map(Number);
565
+ let te = c.get(`${I}`);
566
+ te || (te = {
567
+ title: `${I}`,
568
+ key: `${I}`,
569
569
  children: [],
570
570
  count: 0,
571
571
  leaf: !1,
572
572
  checked: !1
573
- }, c.set(`${O}`, ee), h.set(`${O}`, [`${O}`]));
574
- let W = (Y = ee.children) == null ? void 0 : Y.find((Ye) => Ye.key === `${O}-${H}`);
575
- W || (W = {
576
- title: e.t(`sheets-filter.date.${H}`),
577
- key: `${O}-${H}`,
573
+ }, c.set(`${I}`, te), h.set(`${I}`, [`${I}`]));
574
+ let V = (K = te.children) == null ? void 0 : K.find((Ye) => Ye.key === `${I}-${D}`);
575
+ V || (V = {
576
+ title: e.t(`sheets-filter.date.${D}`),
577
+ key: `${I}-${D}`,
578
578
  children: [],
579
579
  count: 0,
580
580
  leaf: !1,
581
581
  checked: !1
582
- }, (ne = ee.children) == null || ne.push(W), h.set(`${O}-${H}`, [`${O}`, `${O}-${H}`]));
583
- const Ge = (x = W == null ? void 0 : W.children) == null ? void 0 : x.find((Ye) => Ye.key === `${O}-${H}-${fe}`);
584
- Ge ? (Ge.originValues.add(J), Ge.count++, W.count++, ee.count++) : ((A = W.children) == null || A.push({
585
- title: `${fe}`,
586
- key: `${O}-${H}-${fe}`,
582
+ }, (ne = te.children) == null || ne.push(V), h.set(`${I}-${D}`, [`${I}`, `${I}-${D}`]));
583
+ const Ge = (U = V == null ? void 0 : V.children) == null ? void 0 : U.find((Ye) => Ye.key === `${I}-${D}-${_e}`);
584
+ Ge ? (Ge.originValues.add(ee), Ge.count++, V.count++, te.count++) : ((A = V.children) == null || A.push({
585
+ title: `${_e}`,
586
+ key: `${I}-${D}-${_e}`,
587
587
  count: 1,
588
- originValues: /* @__PURE__ */ new Set([J]),
588
+ originValues: /* @__PURE__ */ new Set([ee]),
589
589
  leaf: !0,
590
- checked: _ ? !1 : i.size ? i.has(J) : !o
591
- }), W.count++, ee.count++, h.set(`${O}-${H}-${fe}`, [`${O}`, `${O}-${H}`, `${O}-${H}-${fe}`]));
590
+ checked: _ ? !1 : i.size ? i.has(ee) : !o
591
+ }), V.count++, te.count++, h.set(`${I}-${D}-${_e}`, [`${I}`, `${I}-${D}`, `${I}-${D}-${_e}`]));
592
592
  } else {
593
- const Z = J;
594
- let le = c.get(Z);
593
+ const q = ee;
594
+ let le = c.get(q);
595
595
  le ? le.count++ : (le = {
596
- title: J,
596
+ title: ee,
597
597
  leaf: !0,
598
- checked: _ ? !1 : i.size ? i.has(J) : !o,
599
- key: Z,
598
+ checked: _ ? !1 : i.size ? i.has(ee) : !o,
599
+ key: q,
600
600
  count: 1
601
- }, c.set(Z, le), h.set(Z, [Z]));
601
+ }, c.set(q, le), h.set(q, [q]));
602
602
  }
603
603
  oe++;
604
604
  }
605
605
  }
606
606
  const E = _ ? !1 : t ? o : !0;
607
607
  if (S > 0) {
608
- const P = {
608
+ const w = {
609
609
  title: e.t("sheets-filter.panel.empty"),
610
610
  count: S,
611
611
  leaf: !0,
612
612
  checked: E,
613
- key: f
613
+ key: p
614
614
  };
615
- c.set("empty", P), h.set("empty", [f]);
615
+ c.set("empty", w), h.set("empty", [p]);
616
616
  }
617
617
  return {
618
- filterTreeItems: fi(Array.from(c.values())),
618
+ filterTreeItems: gi(Array.from(c.values())),
619
619
  filterTreeMapCache: h
620
620
  };
621
621
  }
622
- function fi(t) {
623
- return Array.from(t).sort((e, r) => e.children && !r.children ? -1 : !e.children && r.children ? 1 : pi(e.title, r.title)).map((e) => (e.children && e.children.sort((r, s) => {
622
+ function gi(t) {
623
+ 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) => {
624
624
  const n = Number.parseInt(r.key.split("-")[1], 10), a = Number.parseInt(s.key.split("-")[1], 10);
625
625
  return n - a;
626
626
  }).forEach((r) => {
@@ -631,7 +631,7 @@ function fi(t) {
631
631
  }), e));
632
632
  }
633
633
  const Nt = (t) => !Number.isNaN(Number(t)) && !Number.isNaN(Number.parseFloat(t));
634
- function pi(t, e) {
634
+ function Si(t, e) {
635
635
  const r = Nt(t), s = Nt(e);
636
636
  return r && s ? Number.parseFloat(t) - Number.parseFloat(e) : r && !s ? -1 : !r && s ? 1 : t.localeCompare(e);
637
637
  }
@@ -647,13 +647,13 @@ function et(t, e) {
647
647
  }
648
648
  return null;
649
649
  }
650
- function Gt(t) {
651
- return t.leaf ? t.checked : t.children ? t.children.every((e) => Gt(e)) : !0;
650
+ function Zt(t) {
651
+ return t.leaf ? t.checked : t.children ? t.children.every((e) => Zt(e)) : !0;
652
652
  }
653
- function ge(t, e) {
654
- t.leaf && (e !== void 0 ? t.checked = e : t.checked = !t.checked), t.children && t.children.forEach((r) => ge(r, e));
653
+ function Te(t, e) {
654
+ t.leaf && (e !== void 0 ? t.checked = e : t.checked = !t.checked), t.children && t.children.forEach((r) => Te(r, e));
655
655
  }
656
- function Yt(t, e) {
656
+ function Kt(t, e) {
657
657
  const r = [];
658
658
  return t.forEach((s) => {
659
659
  const n = s.originValues ? e.some(
@@ -666,7 +666,7 @@ function Yt(t, e) {
666
666
  if (n || a)
667
667
  r.push({ ...s });
668
668
  else if (s.children) {
669
- const o = Yt(s.children, e);
669
+ const o = Kt(s.children, e);
670
670
  if (o.length > 0) {
671
671
  const l = o.reduce((c, h) => c + h.count, 0);
672
672
  r.push({ ...s, count: l, children: o });
@@ -674,24 +674,24 @@ function Yt(t, e) {
674
674
  }
675
675
  }), r;
676
676
  }
677
- var vi = Object.getOwnPropertyDescriptor, Ve = (t, e, r, s) => {
678
- for (var n = s > 1 ? void 0 : s ? vi(e, r) : e, a = t.length - 1, i; a >= 0; a--)
677
+ var Ci = Object.getOwnPropertyDescriptor, Qe = (t, e, r, s) => {
678
+ for (var n = s > 1 ? void 0 : s ? Ci(e, r) : e, a = t.length - 1, i; a >= 0; a--)
679
679
  (i = t[a]) && (n = i(n) || n);
680
680
  return n;
681
- }, Te = (t, e) => (r, s) => e(r, s, t);
682
- Pt("sheets-filter-ui.sheets-filter-panel.service");
683
- let q = class extends de {
681
+ }, Fe = (t, e) => (r, s) => e(r, s, t);
682
+ wt("sheets-filter-ui.sheets-filter-panel.service");
683
+ let z = class extends de {
684
684
  constructor(e, r) {
685
685
  super();
686
- v(this, "_filterBy$", new V(w.VALUES));
686
+ v(this, "_filterBy$", new j(P.VALUES));
687
687
  v(this, "filterBy$", this._filterBy$.asObservable());
688
- v(this, "_filterByModel$", new Kr(1));
688
+ v(this, "_filterByModel$", new zr(1));
689
689
  v(this, "filterByModel$", this._filterByModel$.asObservable());
690
690
  v(this, "_filterByModel", null);
691
- v(this, "_hasCriteria$", new V(!1));
691
+ v(this, "_hasCriteria$", new j(!1));
692
692
  v(this, "hasCriteria$", this._hasCriteria$.asObservable());
693
693
  v(this, "_filterModel", null);
694
- v(this, "_col$", new V(-1));
694
+ v(this, "_col$", new j(-1));
695
695
  v(this, "col$", this._col$.asObservable());
696
696
  v(this, "_filterHeaderListener", null);
697
697
  this._injector = e, this._refRangeService = r;
@@ -740,13 +740,13 @@ let q = class extends de {
740
740
  if (!this._filterModel || this.col === -1)
741
741
  return !1;
742
742
  switch (e) {
743
- case w.VALUES:
743
+ case P.VALUES:
744
744
  this._setupByValues(this._filterModel, this.col);
745
745
  break;
746
- case w.COLORS:
746
+ case P.COLORS:
747
747
  this._setupByColors(this._filterModel, this.col);
748
748
  break;
749
- case w.CONDITIONS:
749
+ case P.CONDITIONS:
750
750
  this._setupByConditions(this._filterModel, this.col);
751
751
  break;
752
752
  }
@@ -785,7 +785,7 @@ let q = class extends de {
785
785
  e,
786
786
  r
787
787
  );
788
- return this.filterByModel = n, this._filterBy$.next(w.VALUES), this._listenToFilterHeaderChange(e, r), !0;
788
+ return this.filterByModel = n, this._filterBy$.next(P.VALUES), this._listenToFilterHeaderChange(e, r), !0;
789
789
  }
790
790
  async _setupByColors(e, r) {
791
791
  this._disposePreviousModel();
@@ -796,7 +796,7 @@ let q = class extends de {
796
796
  e,
797
797
  r
798
798
  );
799
- return this.filterByModel = n, this._filterBy$.next(w.COLORS), this._listenToFilterHeaderChange(e, r), !0;
799
+ return this.filterByModel = n, this._filterBy$.next(P.COLORS), this._listenToFilterHeaderChange(e, r), !0;
800
800
  }
801
801
  _setupByConditions(e, r) {
802
802
  this._disposePreviousModel();
@@ -808,26 +808,26 @@ let q = class extends de {
808
808
  r,
809
809
  e.getFilterColumn(r)
810
810
  );
811
- return this.filterByModel = n, this._filterBy$.next(w.CONDITIONS), this._listenToFilterHeaderChange(e, r), !0;
811
+ return this.filterByModel = n, this._filterBy$.next(P.CONDITIONS), this._listenToFilterHeaderChange(e, r), !0;
812
812
  }
813
813
  _disposePreviousModel() {
814
814
  var e;
815
815
  (e = this._filterByModel) == null || e.dispose(), this.filterByModel = null;
816
816
  }
817
817
  };
818
- q = Ve([
819
- Te(0, T(ie)),
820
- Te(1, T(Br))
821
- ], q);
818
+ z = Qe([
819
+ Fe(0, T(ie)),
820
+ Fe(1, T(Qr))
821
+ ], z);
822
822
  let Le = class extends de {
823
823
  constructor(e, r, s, n, a) {
824
824
  super();
825
- v(this, "canApply$", me(!0));
825
+ v(this, "canApply$", fe(!0));
826
826
  v(this, "_conditionItem$");
827
827
  v(this, "conditionItem$");
828
828
  v(this, "_filterConditionFormParams$");
829
829
  v(this, "filterConditionFormParams$");
830
- this._filterModel = e, this.col = r, this._commandService = a, this._conditionItem$ = new V(s), this.conditionItem$ = this._conditionItem$.asObservable(), this._filterConditionFormParams$ = new V(n), this.filterConditionFormParams$ = this._filterConditionFormParams$.asObservable();
830
+ this._filterModel = e, this.col = r, this._commandService = a, this._conditionItem$ = new j(s), this.conditionItem$ = this._conditionItem$.asObservable(), this._filterConditionFormParams$ = new j(n), this.filterConditionFormParams$ = this._filterConditionFormParams$.asObservable();
831
831
  }
832
832
  /**
833
833
  * Create a model with targeting filter column. If there is not a filter column, the model would be created with
@@ -904,8 +904,8 @@ let Le = class extends de {
904
904
  this._filterConditionFormParams$.next(r);
905
905
  }
906
906
  };
907
- Le = Ve([
908
- Te(4, j)
907
+ Le = Qe([
908
+ Fe(4, Y)
909
909
  ], Le);
910
910
  let Me = class extends de {
911
911
  constructor(e, r, s, n, a) {
@@ -919,22 +919,22 @@ let Me = class extends de {
919
919
  v(this, "_manuallyUpdateFilterItems$");
920
920
  v(this, "_searchString$");
921
921
  v(this, "searchString$");
922
- this._filterModel = e, this.col = r, this._commandService = a, this._treeMapCache = n, this._searchString$ = new V(""), this.searchString$ = this._searchString$.asObservable(), this._rawFilterItems$ = new V(s), this.rawFilterItems$ = this._rawFilterItems$.asObservable(), this._manuallyUpdateFilterItems$ = new qr(), this.filterItems$ = Xr(
923
- zr([
922
+ this._filterModel = e, this.col = r, this._commandService = a, this._treeMapCache = n, this._searchString$ = new j(""), this.searchString$ = this._searchString$.asObservable(), this._rawFilterItems$ = new j(s), this.rawFilterItems$ = this._rawFilterItems$.asObservable(), this._manuallyUpdateFilterItems$ = new Jr(), this.filterItems$ = ei(
923
+ ti([
924
924
  this._searchString$.pipe(
925
- Bt(500, void 0, { leading: !0, trailing: !0 }),
926
- Wt(void 0)
925
+ Wt(500, void 0, { leading: !0, trailing: !0 }),
926
+ Vt(void 0)
927
927
  ),
928
928
  this._rawFilterItems$
929
929
  ]).pipe(
930
930
  ce(([i, o]) => {
931
931
  if (!i) return o;
932
932
  const c = i.toLowerCase().split(/\s+/).filter((h) => !!h);
933
- return Yt(o, c);
933
+ return Kt(o, c);
934
934
  })
935
935
  ),
936
936
  this._manuallyUpdateFilterItems$
937
- ).pipe(Jr(1)), this.canApply$ = this.filterItems$.pipe(ce((i) => ze(i).checked > 0)), this.disposeWithMe(this.filterItems$.subscribe((i) => this._filterItems = i));
937
+ ).pipe(ri(1)), this.canApply$ = this.filterItems$.pipe(ce((i) => ze(i).checked > 0)), this.disposeWithMe(this.filterItems$.subscribe((i) => this._filterItems = i));
938
938
  }
939
939
  /**
940
940
  * Create a model with targeting filter column. If there is not a filter column, the model would be created with
@@ -947,39 +947,39 @@ let Me = class extends de {
947
947
  * @returns the model to control the panel's state
948
948
  */
949
949
  static async fromFilterColumn(e, r, s) {
950
- const n = e.get(Be), a = e.get(X), i = e.get(we, wt.OPTIONAL), { unitId: o, subUnitId: l } = r, c = n.getUniverSheetInstance(o);
950
+ const n = e.get(Be), a = e.get(G), i = e.get(Pe, Pt.OPTIONAL), { unitId: o, subUnitId: l } = r, c = n.getUniverSheetInstance(o);
951
951
  if (!c) throw new Error(`[ByValuesModel]: Workbook not found for filter model with unitId: ${o}!`);
952
952
  const h = c == null ? void 0 : c.getSheetBySheetId(l);
953
953
  if (!h) throw new Error(`[ByValuesModel]: Worksheet not found for filter model with unitId: ${o} and subUnitId: ${l}!`);
954
- const d = r.getRange(), C = s, f = r.getFilterColumn(s), _ = f == null ? void 0 : f.getColumnData().filters, S = new Set(_ == null ? void 0 : _.filters), E = !!(_ && _.blank), N = r.getFilteredOutRowsExceptCol(s), b = { ...d, startRow: d.startRow + 1, startColumn: C, endColumn: C };
955
- let F, R;
954
+ const f = r.getRange(), C = s, p = r.getFilterColumn(s), _ = p == null ? void 0 : p.getColumnData().filters, S = new Set(_ == null ? void 0 : _.filters), E = !!(_ && _.blank), N = r.getFilteredOutRowsExceptCol(s), b = { ...f, startRow: f.startRow + 1, startColumn: C, endColumn: C };
955
+ let y, R;
956
956
  if (i) {
957
957
  const L = await i.getFilterValues({
958
958
  unitId: o,
959
959
  subUnitId: l,
960
960
  filteredOutRowsByOtherColumns: Array.from(N),
961
- filterColumn: f,
961
+ filterColumn: p,
962
962
  filters: !!_,
963
963
  blankChecked: E,
964
964
  iterateRange: b,
965
965
  alreadyChecked: Array.from(S)
966
966
  });
967
- F = L.filterTreeItems, R = L.filterTreeMapCache;
967
+ y = L.filterTreeItems, R = L.filterTreeMapCache;
968
968
  } else {
969
- const L = jt(
969
+ const L = Yt(
970
970
  !!_,
971
971
  a,
972
972
  b,
973
973
  h,
974
974
  N,
975
- f,
975
+ p,
976
976
  S,
977
977
  E,
978
978
  c.getStyles()
979
979
  );
980
- F = L.filterTreeItems, R = L.filterTreeMapCache;
980
+ y = L.filterTreeItems, R = L.filterTreeMapCache;
981
981
  }
982
- return e.createInstance(Me, r, s, F, R);
982
+ return e.createInstance(Me, r, s, y, R);
983
983
  }
984
984
  get rawFilterItems() {
985
985
  return this._rawFilterItems$.getValue();
@@ -1001,7 +1001,7 @@ let Me = class extends de {
1001
1001
  }
1002
1002
  onCheckAllToggled(e) {
1003
1003
  const r = Re.deepClone(this._filterItems);
1004
- r.forEach((s) => ge(s, e)), this._manuallyUpdateFilterItems(r);
1004
+ r.forEach((s) => Te(s, e)), this._manuallyUpdateFilterItems(r);
1005
1005
  }
1006
1006
  /**
1007
1007
  * Toggle a filter item.
@@ -1010,14 +1010,14 @@ let Me = class extends de {
1010
1010
  const r = Re.deepClone(this._filterItems), s = et(r, e.key);
1011
1011
  if (!s)
1012
1012
  return;
1013
- const n = Gt(s);
1014
- ge(s, !n), this._manuallyUpdateFilterItems(r);
1013
+ const n = Zt(s);
1014
+ Te(s, !n), this._manuallyUpdateFilterItems(r);
1015
1015
  }
1016
1016
  onFilterOnly(e) {
1017
1017
  const r = Re.deepClone(this._filterItems);
1018
- r.forEach((s) => ge(s, !1)), e.forEach((s) => {
1018
+ r.forEach((s) => Te(s, !1)), e.forEach((s) => {
1019
1019
  const n = et(r, s);
1020
- n && ge(n, !0);
1020
+ n && Te(n, !0);
1021
1021
  }), this._manuallyUpdateFilterItems(r);
1022
1022
  }
1023
1023
  _manuallyUpdateFilterItems(e) {
@@ -1055,9 +1055,9 @@ let Me = class extends de {
1055
1055
  });
1056
1056
  {
1057
1057
  l.filters = {};
1058
- const c = s.filter((d) => d.key !== "empty");
1058
+ const c = s.filter((f) => f.key !== "empty");
1059
1059
  c.length > 0 && (l.filters = {
1060
- filters: c.flatMap((d) => d.originValues ? Array.from(d.originValues) : [d.title])
1060
+ filters: c.flatMap((f) => f.originValues ? Array.from(f.originValues) : [f.title])
1061
1061
  }), c.length !== s.length && (l.filters.blank = !0);
1062
1062
  }
1063
1063
  return this._commandService.executeCommand(Q.id, {
@@ -1069,18 +1069,18 @@ let Me = class extends de {
1069
1069
  }
1070
1070
  // #endregion
1071
1071
  };
1072
- Me = Ve([
1073
- Te(4, j)
1072
+ Me = Qe([
1073
+ Fe(4, Y)
1074
1074
  ], Me);
1075
1075
  let $e = class extends de {
1076
1076
  constructor(e, r, s, n, a) {
1077
1077
  super();
1078
- v(this, "canApply$", me(!0));
1078
+ v(this, "canApply$", fe(!0));
1079
1079
  v(this, "_cellFillColors$");
1080
1080
  v(this, "cellFillColors$");
1081
1081
  v(this, "_cellTextColors$");
1082
1082
  v(this, "cellTextColors$");
1083
- this._filterModel = e, this.col = r, this._commandService = a, this._cellFillColors$ = new V(Array.from(s.values())), this.cellFillColors$ = this._cellFillColors$.asObservable(), this._cellTextColors$ = new V(Array.from(n.values())), this.cellTextColors$ = this._cellTextColors$.asObservable();
1083
+ this._filterModel = e, this.col = r, this._commandService = a, this._cellFillColors$ = new j(Array.from(s.values())), this.cellFillColors$ = this._cellFillColors$.asObservable(), this._cellTextColors$ = new j(Array.from(n.values())), this.cellTextColors$ = this._cellTextColors$.asObservable();
1084
1084
  }
1085
1085
  /**
1086
1086
  * Create a model with targeting filter column. If there is not a filter column, the model would be created with
@@ -1093,24 +1093,24 @@ let $e = class extends de {
1093
1093
  * @returns the model to control the panel's state
1094
1094
  */
1095
1095
  static async fromFilterColumn(e, r, s) {
1096
- var b, F, R;
1096
+ var b, y, R;
1097
1097
  const n = e.get(Be), { unitId: a, subUnitId: i } = r, o = n.getUniverSheetInstance(a);
1098
1098
  if (!o) throw new Error(`[ByColorsModel]: Workbook not found for filter model with unitId: ${a}!`);
1099
1099
  const l = o == null ? void 0 : o.getSheetBySheetId(i);
1100
1100
  if (!l) throw new Error(`[ByColorsModel]: Worksheet not found for filter model with unitId: ${a} and subUnitId: ${i}!`);
1101
- const c = r.getRange(), h = s, d = (b = r.getFilterColumn(s)) == null ? void 0 : b.getColumnData().colorFilters, C = r.getFilteredOutRowsExceptCol(s), f = { ...c, startRow: c.startRow + 1, startColumn: h, endColumn: h }, _ = /* @__PURE__ */ new Map(), S = new Set((F = d == null ? void 0 : d.cellFillColors) != null ? F : []), E = /* @__PURE__ */ new Map(), N = new Set((R = d == null ? void 0 : d.cellTextColors) != null ? R : []);
1102
- for (const L of l.iterateByColumn(f, !1, !0)) {
1103
- const { row: G, col: Y, value: ne } = L;
1104
- if (C.has(G))
1101
+ const c = r.getRange(), h = s, f = (b = r.getFilterColumn(s)) == null ? void 0 : b.getColumnData().colorFilters, C = r.getFilteredOutRowsExceptCol(s), p = { ...c, startRow: c.startRow + 1, startColumn: h, endColumn: h }, _ = /* @__PURE__ */ new Map(), S = new Set((y = f == null ? void 0 : f.cellFillColors) != null ? y : []), E = /* @__PURE__ */ new Map(), N = new Set((R = f == null ? void 0 : f.cellTextColors) != null ? R : []);
1102
+ for (const L of l.iterateByColumn(p, !1, !0)) {
1103
+ const { row: Z, col: K, value: ne } = L;
1104
+ if (C.has(Z))
1105
1105
  continue;
1106
- const x = l.getComposedCellStyleByCellData(G, Y, ne);
1107
- if (x.bg && x.bg.rgb) {
1108
- const A = new pt(x.bg.rgb).toRgbString();
1106
+ const U = l.getComposedCellStyleByCellData(Z, K, ne);
1107
+ if (U.bg && U.bg.rgb) {
1108
+ const A = new pt(U.bg.rgb).toRgbString();
1109
1109
  _.has(A) || _.set(A, { color: A, checked: S.has(A) });
1110
1110
  } else
1111
1111
  _.set("default-fill-color", { color: null, checked: S.has(null) });
1112
- if (x.cl && x.cl.rgb) {
1113
- const A = new pt(x.cl.rgb).toRgbString();
1112
+ if (U.cl && U.cl.rgb) {
1113
+ const A = new pt(U.cl.rgb).toRgbString();
1114
1114
  E.has(A) || E.set(A, { color: A, checked: N.has(A) });
1115
1115
  } else
1116
1116
  E.set("default-font-color", { color: gt, checked: N.has(gt) });
@@ -1195,35 +1195,35 @@ let $e = class extends de {
1195
1195
  }
1196
1196
  // #endregion
1197
1197
  };
1198
- $e = Ve([
1199
- Te(4, j)
1198
+ $e = Qe([
1199
+ Fe(4, Y)
1200
1200
  ], $e);
1201
1201
  const ue = "FILTER_PANEL_OPENED", xe = {
1202
1202
  id: "sheet.operation.open-filter-panel",
1203
1203
  type: We.OPERATION,
1204
1204
  handler: (t, e) => {
1205
- const r = t.get(Qe), s = t.get(z), n = t.get(q);
1206
- t.get(j).syncExecuteCommand(Cr.id, { visible: !1 });
1205
+ const r = t.get(Ve), s = t.get(J), n = t.get(z);
1206
+ t.get(Y).syncExecuteCommand(Fr.id, { visible: !1 });
1207
1207
  const { unitId: i, subUnitId: o, col: l } = e, c = s.getFilterModel(i, o);
1208
1208
  return c ? (n.setupCol(c, l), r.getContextValue(ue) || r.setContextValue(ue, !0), !0) : !1;
1209
1209
  }
1210
- }, Se = {
1210
+ }, Ee = {
1211
1211
  id: "sheet.operation.close-filter-panel",
1212
1212
  type: We.OPERATION,
1213
1213
  handler: (t) => {
1214
- const e = t.get(Qe), r = t.get(q), s = t.get(Pr, wt.OPTIONAL);
1214
+ const e = t.get(Ve), r = t.get(z), s = t.get($r, Pt.OPTIONAL);
1215
1215
  return e.getContextValue(ue) ? (e.setContextValue(ue, !1), s == null || s.focus(), r.terminate()) : !1;
1216
1216
  }
1217
- }, Zt = {
1217
+ }, qt = {
1218
1218
  id: "sheet.operation.apply-filter",
1219
1219
  type: We.OPERATION,
1220
1220
  handler: (t, e) => {
1221
1221
  const { filterBy: r } = e;
1222
- return t.get(q).changeFilterBy(r);
1222
+ return t.get(z).changeFilterBy(r);
1223
1223
  }
1224
- }, Kt = "sheets-filter-ui.config", Ue = {};
1225
- var _i = Object.getOwnPropertyDescriptor, gi = (t, e, r, s) => {
1226
- for (var n = s > 1 ? void 0 : s ? _i(e, r) : e, a = t.length - 1, i; a >= 0; a--)
1224
+ }, Xt = "sheets-filter-ui.config", Ue = {};
1225
+ var Ti = Object.getOwnPropertyDescriptor, Ei = (t, e, r, s) => {
1226
+ for (var n = s > 1 ? void 0 : s ? Ti(e, r) : e, a = t.length - 1, i; a >= 0; a--)
1227
1227
  (i = t[a]) && (n = i(n) || n);
1228
1228
  return n;
1229
1229
  }, ae = (t, e) => (r, s) => e(r, s, t);
@@ -1235,28 +1235,28 @@ let he = class extends de {
1235
1235
  this.disposeWithMe(
1236
1236
  this._commandService.beforeCommandExecuted((t) => {
1237
1237
  var e, r, s;
1238
- if (t.id === Ne.id) {
1239
- const n = this._injector.get(Be), a = Vr(n);
1238
+ if (t.id === Oe.id) {
1239
+ const n = this._injector.get(Be), a = Yr(n);
1240
1240
  if (!a) return;
1241
1241
  const { unitId: i, subUnitId: o, worksheet: l } = a, c = (e = this._sheetsFilterService.getFilterModel(i, o)) == null ? void 0 : e.getRange();
1242
1242
  let h;
1243
1243
  if (c)
1244
1244
  h = this._sheetPermissionCheckPermission.permissionCheckWithRanges({
1245
- rangeTypes: [_e],
1246
- worksheetTypes: [pe, ve]
1245
+ rangeTypes: [Ce],
1246
+ worksheetTypes: [ge, Se]
1247
1247
  }, [c]);
1248
1248
  else {
1249
- const d = (r = this._sheetsSelectionService.getCurrentLastSelection()) == null ? void 0 : r.range;
1250
- if (d) {
1251
- let C = { ...d };
1252
- C = d.startColumn === d.endColumn && d.startRow === d.endRow ? jr(C, { left: !0, right: !0, up: !0, down: !0 }, l) : C, h = this._sheetPermissionCheckPermission.permissionCheckWithRanges({
1253
- rangeTypes: [_e],
1254
- worksheetTypes: [ve, pe]
1249
+ const f = (r = this._sheetsSelectionService.getCurrentLastSelection()) == null ? void 0 : r.range;
1250
+ if (f) {
1251
+ let C = { ...f };
1252
+ C = f.startColumn === f.endColumn && f.startRow === f.endRow ? Zr(C, { left: !0, right: !0, up: !0, down: !0 }, l) : C, h = this._sheetPermissionCheckPermission.permissionCheckWithRanges({
1253
+ rangeTypes: [Ce],
1254
+ worksheetTypes: [Se, ge]
1255
1255
  }, [C], i, o);
1256
1256
  } else
1257
1257
  h = this._sheetPermissionCheckPermission.permissionCheckWithoutRange({
1258
- rangeTypes: [_e],
1259
- worksheetTypes: [ve, pe]
1258
+ rangeTypes: [Ce],
1259
+ worksheetTypes: [Se, ge]
1260
1260
  });
1261
1261
  }
1262
1262
  h || this._sheetPermissionCheckPermission.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.filterErr"));
@@ -1264,48 +1264,48 @@ let he = class extends de {
1264
1264
  if (t.id === xe.id) {
1265
1265
  const n = t.params, { unitId: a, subUnitId: i } = n, o = (s = this._sheetsFilterService.getFilterModel(a, i)) == null ? void 0 : s.getRange(), l = Re.deepClone(o);
1266
1266
  l && (l.startColumn = n.col, l.endColumn = n.col, this._sheetPermissionCheckPermission.permissionCheckWithRanges({
1267
- rangeTypes: [_e],
1268
- worksheetTypes: [pe, ve]
1267
+ rangeTypes: [Ce],
1268
+ worksheetTypes: [ge, Se]
1269
1269
  }, [l]) || this._sheetPermissionCheckPermission.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.filterErr")));
1270
1270
  }
1271
1271
  })
1272
1272
  );
1273
1273
  }
1274
1274
  };
1275
- he = gi([
1276
- ae(0, T(z)),
1277
- ae(1, T(X)),
1278
- ae(2, j),
1279
- ae(3, T(Wr)),
1275
+ he = Ei([
1276
+ ae(0, T(J)),
1277
+ ae(1, T(G)),
1278
+ ae(2, Y),
1279
+ ae(3, T(jr)),
1280
1280
  ae(4, T(ie)),
1281
- ae(5, T(Qr))
1281
+ ae(5, T(Gr))
1282
1282
  ], he);
1283
- const K = 16, Si = 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");
1283
+ const X = 16, Ni = 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");
1284
1284
  class Ft {
1285
1285
  static drawNoCriteria(e, r, s, n) {
1286
1286
  e.save(), St.drawWith(e, {
1287
1287
  radius: 2,
1288
- width: K,
1289
- height: K,
1288
+ width: X,
1289
+ height: X,
1290
1290
  fill: n
1291
- }), 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();
1291
+ }), 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();
1292
1292
  }
1293
1293
  static drawHasCriteria(e, r, s, n) {
1294
1294
  e.save(), St.drawWith(e, {
1295
1295
  radius: 2,
1296
- width: K,
1297
- height: K,
1296
+ width: X,
1297
+ height: X,
1298
1298
  fill: n
1299
- }), e.scale(r / K, r / K), e.fillStyle = s, e.fill(Si), e.restore();
1299
+ }), e.scale(r / X, r / X), e.fillStyle = s, e.fill(Ni), e.restore();
1300
1300
  }
1301
1301
  }
1302
- var Ci = Object.getOwnPropertyDescriptor, Ti = (t, e, r, s) => {
1303
- for (var n = s > 1 ? void 0 : s ? Ci(e, r) : e, a = t.length - 1, i; a >= 0; a--)
1302
+ var Fi = Object.getOwnPropertyDescriptor, yi = (t, e, r, s) => {
1303
+ for (var n = s > 1 ? void 0 : s ? Fi(e, r) : e, a = t.length - 1, i; a >= 0; a--)
1304
1304
  (i = t[a]) && (n = i(n) || n);
1305
1305
  return n;
1306
1306
  }, qe = (t, e) => (r, s) => e(r, s, t);
1307
- const B = 16, Ce = 1;
1308
- let tt = class extends Dr {
1307
+ const W = 16, Ne = 1;
1308
+ let tt = class extends Vr {
1309
1309
  constructor(e, r, s, n, a) {
1310
1310
  super(e, r);
1311
1311
  v(this, "_cellWidth", 0);
@@ -1321,12 +1321,12 @@ let tt = class extends Dr {
1321
1321
  });
1322
1322
  }
1323
1323
  _draw(e) {
1324
- const r = this._cellHeight, s = this._cellWidth, n = B - s, a = B - r;
1324
+ const r = this._cellHeight, s = this._cellWidth, n = W - s, a = W - r;
1325
1325
  e.save();
1326
1326
  const i = new Path2D();
1327
1327
  i.rect(n, a, s, r), e.clip(i);
1328
1328
  const { hasCriteria: o } = this._filterParams, l = this._themeService.getColorFromTheme("primary.600"), c = this._hovered ? this._themeService.getColorFromTheme("gray.50") : "rgba(255, 255, 255, 1.0)";
1329
- o ? Ft.drawHasCriteria(e, B, l, c) : Ft.drawNoCriteria(e, B, l, c), e.restore();
1329
+ o ? Ft.drawHasCriteria(e, W, l, c) : Ft.drawNoCriteria(e, W, l, c), e.restore();
1330
1330
  }
1331
1331
  onPointerDown(e) {
1332
1332
  if (e.button === 2)
@@ -1347,26 +1347,26 @@ let tt = class extends Dr {
1347
1347
  this._hovered = !1, this.makeDirty(!0);
1348
1348
  }
1349
1349
  };
1350
- tt = Ti([
1351
- qe(2, Qe),
1352
- qe(3, j),
1350
+ tt = yi([
1351
+ qe(2, Ve),
1352
+ qe(3, Y),
1353
1353
  qe(4, T(Lt))
1354
1354
  ], tt);
1355
- var Ei = Object.getOwnPropertyDescriptor, Ni = (t, e, r, s) => {
1356
- for (var n = s > 1 ? void 0 : s ? Ei(e, r) : e, a = t.length - 1, i; a >= 0; a--)
1355
+ var Oi = Object.getOwnPropertyDescriptor, Ii = (t, e, r, s) => {
1356
+ for (var n = s > 1 ? void 0 : s ? Oi(e, r) : e, a = t.length - 1, i; a >= 0; a--)
1357
1357
  (i = t[a]) && (n = i(n) || n);
1358
1358
  return n;
1359
- }, te = (t, e) => (r, s) => e(r, s, t);
1360
- const Fi = 1e3, yi = 5e3;
1361
- function Oi(t, e, r, s) {
1359
+ }, re = (t, e) => (r, s) => e(r, s, t);
1360
+ const bi = 1e3, Ri = 5e3;
1361
+ function Ai(t, e, r, s) {
1362
1362
  switch (s) {
1363
1363
  case Ae.TOP:
1364
- return t + Ce;
1364
+ return t + Ne;
1365
1365
  case Ae.MIDDLE:
1366
- return t + Math.max(0, (r - B) / 2);
1366
+ return t + Math.max(0, (r - W) / 2);
1367
1367
  case Ae.BOTTOM:
1368
1368
  default:
1369
- return e - B - Ce;
1369
+ return e - W - Ne;
1370
1370
  }
1371
1371
  }
1372
1372
  let rt = class extends Mt {
@@ -1384,7 +1384,7 @@ let rt = class extends Mt {
1384
1384
  this._sheetSkeletonManagerService.currentSkeleton$.pipe(
1385
1385
  at((e) => {
1386
1386
  var o, l;
1387
- if (!e) return me(null);
1387
+ if (!e) return fe(null);
1388
1388
  const { unit: r, unitId: s } = this._context, n = ((o = r.getActiveSheet()) == null ? void 0 : o.getSheetId()) || "", a = (l = this._sheetsFilterService.getFilterModel(s, n)) != null ? l : void 0, i = () => ({
1389
1389
  unitId: s,
1390
1390
  worksheetId: n,
@@ -1392,28 +1392,28 @@ let rt = class extends Mt {
1392
1392
  range: a == null ? void 0 : a.getRange(),
1393
1393
  skeleton: e.skeleton
1394
1394
  });
1395
- return cr(this._commandService.onCommandExecuted.bind(this._commandService)).pipe(
1396
- ei(
1395
+ return dr(this._commandService.onCommandExecuted.bind(this._commandService)).pipe(
1396
+ ii(
1397
1397
  ([c]) => {
1398
1398
  var h;
1399
- return c.type === We.MUTATION && ((h = c.params) == null ? void 0 : h.unitId) === r.getUnitId() && (mr.has(c.id) || c.id === Yr.id);
1399
+ return c.type === We.MUTATION && ((h = c.params) == null ? void 0 : h.unitId) === r.getUnitId() && (vr.has(c.id) || c.id === qr.id);
1400
1400
  }
1401
1401
  ),
1402
- Bt(20, void 0, { leading: !1, trailing: !0 }),
1402
+ Wt(20, void 0, { leading: !1, trailing: !0 }),
1403
1403
  ce(i),
1404
- Wt(i())
1404
+ Vt(i())
1405
1405
  // must trigger once
1406
1406
  );
1407
1407
  }),
1408
- ti(this.dispose$)
1408
+ si(this.dispose$)
1409
1409
  ).subscribe((e) => {
1410
1410
  this._disposeRendering(), !(!e || !e.range) && (this._renderRange(e.range, e.skeleton), this._renderButtons(e));
1411
1411
  });
1412
1412
  }
1413
1413
  _renderRange(e, r) {
1414
- const { scene: s } = this._context, { rowHeaderWidth: n, columnHeaderHeight: a } = r, i = this._filterRangeShape = new Nr(
1414
+ const { scene: s } = this._context, { rowHeaderWidth: n, columnHeaderHeight: a } = r, i = this._filterRangeShape = new Ir(
1415
1415
  s,
1416
- Fi,
1416
+ bi,
1417
1417
  this._themeService,
1418
1418
  {
1419
1419
  rowHeaderWidth: n,
@@ -1421,7 +1421,7 @@ let rt = class extends Mt {
1421
1421
  enableAutoFill: !1,
1422
1422
  highlightHeader: !1
1423
1423
  }
1424
- ), l = Fr({
1424
+ ), l = br({
1425
1425
  range: e,
1426
1426
  primary: null,
1427
1427
  style: { fill: "rgba(0, 0, 0, 0.0)" }
@@ -1433,34 +1433,34 @@ let rt = class extends Mt {
1433
1433
  if (!c)
1434
1434
  return;
1435
1435
  this._interceptCellContent(n, i, e.range);
1436
- const { startColumn: h, endColumn: d, startRow: C } = r;
1437
- for (let f = h; f <= d; f++) {
1438
- const _ = `sheets-filter-button-${f}`, S = yr(C, f, l, a), E = c.getComposedCellStyle(C, f), N = (E == null ? void 0 : E.vt) || Ae.BOTTOM, { startX: b, startY: F, endX: R, endY: L } = S, G = R - b, Y = L - F;
1439
- if (Y <= Ce || G <= Ce)
1436
+ const { startColumn: h, endColumn: f, startRow: C } = r;
1437
+ for (let p = h; p <= f; p++) {
1438
+ const _ = `sheets-filter-button-${p}`, S = Rr(C, p, l, a), E = c.getComposedCellStyle(C, p), N = (E == null ? void 0 : E.vt) || Ae.BOTTOM, { startX: b, startY: y, endX: R, endY: L } = S, Z = R - b, K = L - y;
1439
+ if (K <= Ne || Z <= Ne)
1440
1440
  continue;
1441
- const ne = !!s.getFilterColumn(f), x = R - B - Ce, A = Oi(F, L, Y, N), P = {
1442
- left: x,
1441
+ const ne = !!s.getFilterColumn(p), U = R - W - Ne, A = Ai(y, L, K, N), w = {
1442
+ left: U,
1443
1443
  top: A,
1444
- height: B,
1445
- width: B,
1446
- zIndex: yi,
1447
- cellHeight: Y,
1448
- cellWidth: G,
1449
- filterParams: { unitId: n, subUnitId: i, col: f, hasCriteria: ne }
1450
- }, je = this._injector.createInstance(tt, _, P);
1444
+ height: W,
1445
+ width: W,
1446
+ zIndex: Ri,
1447
+ cellHeight: K,
1448
+ cellWidth: Z,
1449
+ filterParams: { unitId: n, subUnitId: i, col: p, hasCriteria: ne }
1450
+ }, je = this._injector.createInstance(tt, _, w);
1451
1451
  this._filterButtonShapes.push(je);
1452
1452
  }
1453
1453
  l.addObjects(this._filterButtonShapes), l.makeDirty();
1454
1454
  }
1455
1455
  _interceptCellContent(e, r, s) {
1456
1456
  const { startRow: n, startColumn: a, endColumn: i } = s;
1457
- this._buttonRenderDisposable = this._sheetInterceptorService.intercept(Zr.CELL_CONTENT, {
1458
- effect: ur.Style,
1457
+ this._buttonRenderDisposable = this._sheetInterceptorService.intercept(Xr.CELL_CONTENT, {
1458
+ effect: fr.Style,
1459
1459
  handler: (o, l, c) => {
1460
- const { row: h, col: d, unitId: C, subUnitId: f } = l;
1461
- return C !== e || f !== r || h !== n || d < a || d > i || ((!o || o === l.rawData) && (o = { ...l.rawData }), o.fontRenderExtension = {
1460
+ const { row: h, col: f, unitId: C, subUnitId: p } = l;
1461
+ return C !== e || p !== r || h !== n || f < a || f > i || ((!o || o === l.rawData) && (o = { ...l.rawData }), o.fontRenderExtension = {
1462
1462
  ...o == null ? void 0 : o.fontRenderExtension,
1463
- rightOffset: B
1463
+ rightOffset: W
1464
1464
  }), c(o);
1465
1465
  },
1466
1466
  priority: 10
@@ -1471,43 +1471,43 @@ let rt = class extends Mt {
1471
1471
  (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 = [];
1472
1472
  }
1473
1473
  };
1474
- rt = Ni([
1475
- te(1, T(ie)),
1476
- te(2, T(Tr)),
1477
- te(3, T(z)),
1478
- te(4, T(Lt)),
1479
- te(5, T(Gr)),
1480
- te(6, j),
1481
- te(7, Er)
1474
+ rt = Ii([
1475
+ re(1, T(ie)),
1476
+ re(2, T(yr)),
1477
+ re(3, T(J)),
1478
+ re(4, T(Lt)),
1479
+ re(5, T(Kr)),
1480
+ re(6, Y),
1481
+ re(7, Or)
1482
1482
  ], rt);
1483
- var Ii = Object.getOwnPropertyDescriptor, bi = (t, e, r, s) => {
1484
- for (var n = s > 1 ? void 0 : s ? Ii(e, r) : e, a = t.length - 1, i; a >= 0; a--)
1483
+ var wi = Object.getOwnPropertyDescriptor, Pi = (t, e, r, s) => {
1484
+ for (var n = s > 1 ? void 0 : s ? wi(e, r) : e, a = t.length - 1, i; a >= 0; a--)
1485
1485
  (i = t[a]) && (n = i(n) || n);
1486
1486
  return n;
1487
1487
  }, yt = (t, e) => (r, s) => e(r, s, t);
1488
- let Ee = class extends Mt {
1488
+ let ye = class extends Mt {
1489
1489
  constructor(t, e) {
1490
1490
  super(), this._renderManagerService = t, this._sheetsRenderService = e, [
1491
- fr,
1492
- pr,
1493
- vr,
1494
- _r
1491
+ _r,
1492
+ gr,
1493
+ Sr,
1494
+ Cr
1495
1495
  ].forEach((r) => this.disposeWithMe(this._sheetsRenderService.registerSkeletonChangingMutations(r.id))), this.disposeWithMe(this._renderManagerService.registerRenderModule(
1496
1496
  se.UNIVER_SHEET,
1497
1497
  [rt]
1498
1498
  ));
1499
1499
  }
1500
1500
  };
1501
- Ee = bi([
1502
- yt(0, Dt),
1501
+ ye = Pi([
1502
+ yt(0, Bt),
1503
1503
  yt(1, T(Ht))
1504
- ], Ee);
1505
- var Ri = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor, Pi = (t, e, r) => e in t ? Ri(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, wi = (t, e, r, s) => {
1506
- for (var n = s > 1 ? void 0 : s ? Ai(e, r) : e, a = t.length - 1, i; a >= 0; a--)
1504
+ ], ye);
1505
+ var Li = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, $i = (t, e, r) => e in t ? Li(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, xi = (t, e, r, s) => {
1506
+ for (var n = s > 1 ? void 0 : s ? Mi(e, r) : e, a = t.length - 1, i; a >= 0; a--)
1507
1507
  (i = t[a]) && (n = i(n) || n);
1508
1508
  return n;
1509
- }, Ot = (t, e) => (r, s) => e(r, s, t), qt = (t, e, r) => Pi(t, typeof e != "symbol" ? e + "" : e, r);
1510
- const Li = "SHEET_FILTER_UI_PLUGIN";
1509
+ }, Ot = (t, e) => (r, s) => e(r, s, t), zt = (t, e, r) => $i(t, typeof e != "symbol" ? e + "" : e, r);
1510
+ const Ui = "SHEET_FILTER_UI_PLUGIN";
1511
1511
  let ke = class extends it {
1512
1512
  constructor(t = Ue, e, r) {
1513
1513
  super(), this._config = t, this._injector = e, this._configService = r;
@@ -1516,24 +1516,24 @@ let ke = class extends it {
1516
1516
  Ue,
1517
1517
  this._config
1518
1518
  );
1519
- s && this._configService.setConfig("menu", s, { merge: !0 }), this._configService.setConfig(Kt, n);
1519
+ s && this._configService.setConfig("menu", s, { merge: !0 }), this._configService.setConfig(Xt, n);
1520
1520
  }
1521
1521
  onStarting() {
1522
1522
  [
1523
1523
  [he],
1524
- [Ee]
1524
+ [ye]
1525
1525
  ].forEach((t) => this._injector.add(t));
1526
1526
  }
1527
1527
  onReady() {
1528
1528
  this._injector.get(he);
1529
1529
  }
1530
1530
  onRendered() {
1531
- this._injector.get(Ee);
1531
+ this._injector.get(ye);
1532
1532
  }
1533
1533
  };
1534
- qt(ke, "type", se.UNIVER_SHEET);
1535
- qt(ke, "pluginName", Li);
1536
- ke = wi([
1534
+ zt(ke, "type", se.UNIVER_SHEET);
1535
+ zt(ke, "pluginName", Ui);
1536
+ ke = xi([
1537
1537
  $t(kt),
1538
1538
  Ot(1, T(ie)),
1539
1539
  Ot(2, xt)
@@ -1546,23 +1546,23 @@ var $ = function() {
1546
1546
  }
1547
1547
  return t;
1548
1548
  }, $.apply(this, arguments);
1549
- }, Mi = function(t, e) {
1549
+ }, ki = function(t, e) {
1550
1550
  var r = {};
1551
1551
  for (var s in t) Object.prototype.hasOwnProperty.call(t, s) && e.indexOf(s) < 0 && (r[s] = t[s]);
1552
1552
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
1553
1553
  for (var n = 0, s = Object.getOwnPropertySymbols(t); n < s.length; n++)
1554
1554
  e.indexOf(s[n]) < 0 && Object.prototype.propertyIsEnumerable.call(t, s[n]) && (r[s[n]] = t[s[n]]);
1555
1555
  return r;
1556
- }, Oe = Fe(function(t, e) {
1557
- var r = t.icon, s = t.id, n = t.className, a = t.extend, i = Mi(t, ["icon", "id", "className", "extend"]), o = "univerjs-icon univerjs-icon-".concat(s, " ").concat(n || "").trim(), l = ui("_".concat(Ui()));
1558
- return Xt(r, "".concat(s), { defIds: r.defIds, idSuffix: l.current }, $({ ref: e, className: o }, i), a);
1556
+ }, ve = me(function(t, e) {
1557
+ var r = t.icon, s = t.id, n = t.className, a = t.extend, i = ki(t, ["icon", "id", "className", "extend"]), o = "univerjs-icon univerjs-icon-".concat(s, " ").concat(n || "").trim(), l = mi("_".concat(Bi()));
1558
+ return Jt(r, "".concat(s), { defIds: r.defIds, idSuffix: l.current }, $({ ref: e, className: o }, i), a);
1559
1559
  });
1560
- function Xt(t, e, r, s, n) {
1561
- return ye(t.tag, $($({ key: e }, $i(t, r, n)), s), (xi(t, r).children || []).map(function(a, i) {
1562
- return Xt(a, "".concat(e, "-").concat(t.tag, "-").concat(i), r, void 0, n);
1560
+ function Jt(t, e, r, s, n) {
1561
+ return pe(t.tag, $($({ key: e }, Hi(t, r, n)), s), (Di(t, r).children || []).map(function(a, i) {
1562
+ return Jt(a, "".concat(e, "-").concat(t.tag, "-").concat(i), r, void 0, n);
1563
1563
  }));
1564
1564
  }
1565
- function $i(t, e, r) {
1565
+ function Hi(t, e, r) {
1566
1566
  var s = $({}, t.attrs);
1567
1567
  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(a) {
1568
1568
  var i = a[0], o = a[1];
@@ -1574,97 +1574,105 @@ function $i(t, e, r) {
1574
1574
  typeof o == "string" && (s[i] = o.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
1575
1575
  })), s;
1576
1576
  }
1577
- function xi(t, e) {
1577
+ function Di(t, e) {
1578
1578
  var r, s = e.defIds;
1579
1579
  return !s || s.length === 0 ? t : t.tag === "defs" && (!((r = t.children) === null || r === void 0) && r.length) ? $($({}, t), { children: t.children.map(function(n) {
1580
1580
  return typeof n.attrs.id == "string" && s && s.includes(n.attrs.id) ? $($({}, n), { attrs: $($({}, n.attrs), { id: n.attrs.id + e.idSuffix }) }) : n;
1581
1581
  }) }) : t;
1582
1582
  }
1583
- function Ui() {
1583
+ function Bi() {
1584
1584
  return Math.random().toString(36).substring(2, 8);
1585
1585
  }
1586
- Oe.displayName = "UniverIcon";
1587
- var ki = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 20 20", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M10 1.05957C10.356 1.05957 10.6816 1.26162 10.8408 1.58008L18.8408 17.5801L18.8799 17.668C19.0486 18.1134 18.8551 18.6232 18.4199 18.8408C17.9557 19.0727 17.3913 18.8841 17.1592 18.4199L10 4.10156L2.84082 18.4199C2.60871 18.8841 2.04434 19.0727 1.58008 18.8408C1.11587 18.6087 0.92731 18.0443 1.15918 17.5801L9.15918 1.58008C9.31841 1.26162 9.64395 1.05957 10 1.05957Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M15.3337 11.7261L15.4294 11.731C15.9035 11.779 16.2732 12.1798 16.2732 12.6665C16.2732 13.1532 15.9035 13.554 15.4294 13.602L15.3337 13.6069H4.66675C4.1476 13.6069 3.72632 13.1856 3.72632 12.6665C3.72632 12.1474 4.1476 11.7261 4.66675 11.7261H15.3337Z" } }] }, zt = Fe(function(t, e) {
1588
- return ye(Oe, Object.assign({}, t, {
1586
+ ve.displayName = "UniverIcon";
1587
+ var Wi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 20 20", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M10 1.05957C10.356 1.05957 10.6816 1.26162 10.8408 1.58008L18.8408 17.5801L18.8799 17.668C19.0486 18.1134 18.8551 18.6232 18.4199 18.8408C17.9557 19.0727 17.3913 18.8841 17.1592 18.4199L10 4.10156L2.84082 18.4199C2.60871 18.8841 2.04434 19.0727 1.58008 18.8408C1.11587 18.6087 0.92731 18.0443 1.15918 17.5801L9.15918 1.58008C9.31841 1.26162 9.64395 1.05957 10 1.05957Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M15.3337 11.7261L15.4294 11.731C15.9035 11.779 16.2732 12.1798 16.2732 12.6665C16.2732 13.1532 15.9035 13.554 15.4294 13.602L15.3337 13.6069H4.66675C4.1476 13.6069 3.72632 13.1856 3.72632 12.6665C3.72632 12.1474 4.1476 11.7261 4.66675 11.7261H15.3337Z" } }] }, er = me(function(t, e) {
1588
+ return pe(ve, Object.assign({}, t, {
1589
1589
  id: "a-icon",
1590
1590
  ref: e,
1591
- icon: ki
1591
+ icon: Wi
1592
1592
  }));
1593
1593
  });
1594
- zt.displayName = "AIcon";
1595
- var Hi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 20 20", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M17.0596 10C17.0596 6.10087 13.8992 2.94043 10 2.94043C6.10087 2.94043 2.94043 6.10087 2.94043 10C2.94043 13.8992 6.10087 17.0596 10 17.0596C13.8992 17.0596 17.0596 13.8992 17.0596 10ZM18.9404 10C18.9404 14.9374 14.9374 18.9404 10 18.9404C5.06257 18.9404 1.05957 14.9374 1.05957 10C1.05957 5.06257 5.06257 1.05957 10 1.05957C14.9374 1.05957 18.9404 5.06257 18.9404 10Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.29492 4.13476C4.63911 3.79057 5.1845 3.76906 5.55371 4.07031L5.625 4.13476L16.0244 14.5352L16.0889 14.6064C16.3902 14.9757 16.3686 15.52 16.0244 15.8643C15.6573 16.2313 15.0624 16.2313 14.6953 15.8643L4.29492 5.46484L4.23047 5.39355C3.92922 5.02434 3.95073 4.47895 4.29492 4.13476Z" } }] }, Jt = Fe(function(t, e) {
1596
- return ye(Oe, Object.assign({}, t, {
1594
+ er.displayName = "AIcon";
1595
+ var Vi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 20 20", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M17.0596 10C17.0596 6.10087 13.8992 2.94043 10 2.94043C6.10087 2.94043 2.94043 6.10087 2.94043 10C2.94043 13.8992 6.10087 17.0596 10 17.0596C13.8992 17.0596 17.0596 13.8992 17.0596 10ZM18.9404 10C18.9404 14.9374 14.9374 18.9404 10 18.9404C5.06257 18.9404 1.05957 14.9374 1.05957 10C1.05957 5.06257 5.06257 1.05957 10 1.05957C14.9374 1.05957 18.9404 5.06257 18.9404 10Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.29492 4.13476C4.63911 3.79057 5.1845 3.76906 5.55371 4.07031L5.625 4.13476L16.0244 14.5352L16.0889 14.6064C16.3902 14.9757 16.3686 15.52 16.0244 15.8643C15.6573 16.2313 15.0624 16.2313 14.6953 15.8643L4.29492 5.46484L4.23047 5.39355C3.92922 5.02434 3.95073 4.47895 4.29492 4.13476Z" } }] }, tr = me(function(t, e) {
1596
+ return pe(ve, Object.assign({}, t, {
1597
1597
  id: "ban-icon",
1598
1598
  ref: e,
1599
- icon: Hi
1599
+ icon: Vi
1600
1600
  }));
1601
1601
  });
1602
- Jt.displayName = "BanIcon";
1603
- 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" } }] }, er = Fe(function(t, e) {
1604
- return ye(Oe, Object.assign({}, t, {
1602
+ tr.displayName = "BanIcon";
1603
+ var Qi = { 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" } }] }, rr = me(function(t, e) {
1604
+ return pe(ve, Object.assign({}, t, {
1605
1605
  id: "filter-icon",
1606
1606
  ref: e,
1607
- icon: Di
1607
+ icon: Qi
1608
1608
  }));
1609
1609
  });
1610
- er.displayName = "FilterIcon";
1611
- var Bi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM11.7245 6.42417C11.9588 6.18985 11.9588 5.80995 11.7245 5.57564C11.4901 5.34132 11.1102 5.34132 10.8759 5.57564L7.3002 9.15137L5.72446 7.57564C5.49014 7.34132 5.11025 7.34132 4.87593 7.57564C4.64162 7.80995 4.64162 8.18985 4.87593 8.42417L6.87593 10.4242C7.11025 10.6585 7.49014 10.6585 7.72446 10.4242L11.7245 6.42417Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, tr = Fe(function(t, e) {
1612
- return ye(Oe, Object.assign({}, t, {
1610
+ rr.displayName = "FilterIcon";
1611
+ var ji = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.00016 1.33203C6.68162 1.33203 5.39269 1.72302 4.29636 2.45557C3.20004 3.18811 2.34555 4.2293 1.84097 5.44747C1.33638 6.66565 1.20436 8.00609 1.4616 9.2993C1.71883 10.5925 2.35377 11.7804 3.28612 12.7127C4.21847 13.6451 5.40636 14.28 6.69956 14.5373C7.99277 14.7945 9.33321 14.6625 10.5514 14.1579C11.7696 13.6533 12.8108 12.7988 13.5433 11.7025C14.2758 10.6062 14.6668 9.31724 14.6668 7.9987C14.6649 6.23118 13.9619 4.53662 12.7121 3.2868C11.4622 2.03697 9.76768 1.33397 8.00016 1.33203ZM7.66683 3.9987C7.86461 3.9987 8.05795 4.05735 8.2224 4.16723C8.38685 4.27711 8.51502 4.43329 8.59071 4.61601C8.6664 4.79874 8.6862 4.99981 8.64762 5.19379C8.60903 5.38777 8.51379 5.56595 8.37394 5.7058C8.23409 5.84566 8.0559 5.9409 7.86192 5.97948C7.66794 6.01807 7.46687 5.99826 7.28415 5.92258C7.10142 5.84689 6.94524 5.71872 6.83536 5.55427C6.72548 5.38982 6.66683 5.19648 6.66683 4.9987C6.66683 4.73348 6.77219 4.47913 6.95972 4.29159C7.14726 4.10405 7.40162 3.9987 7.66683 3.9987ZM9.3335 11.332H6.66683C6.49002 11.332 6.32045 11.2618 6.19543 11.1368C6.0704 11.0117 6.00016 10.8422 6.00016 10.6654C6.00016 10.4886 6.0704 10.319 6.19543 10.194C6.32045 10.0689 6.49002 9.9987 6.66683 9.9987H7.3335V7.9987H6.66683C6.49002 7.9987 6.32045 7.92846 6.19543 7.80343C6.0704 7.67841 6.00016 7.50884 6.00016 7.33203C6.00016 7.15522 6.0704 6.98565 6.19543 6.86063C6.32045 6.7356 6.49002 6.66536 6.66683 6.66536H8.00016C8.17698 6.66536 8.34655 6.7356 8.47157 6.86063C8.59659 6.98565 8.66683 7.15522 8.66683 7.33203V9.9987H9.3335C9.51031 9.9987 9.67988 10.0689 9.8049 10.194C9.92993 10.319 10.0002 10.4886 10.0002 10.6654C10.0002 10.8422 9.92993 11.0117 9.8049 11.1368C9.67988 11.2618 9.51031 11.332 9.3335 11.332Z" } }] }, ir = me(function(t, e) {
1612
+ return pe(ve, Object.assign({}, t, {
1613
+ id: "info-icon",
1614
+ ref: e,
1615
+ icon: ji
1616
+ }));
1617
+ });
1618
+ ir.displayName = "InfoIcon";
1619
+ var Gi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM11.7245 6.42417C11.9588 6.18985 11.9588 5.80995 11.7245 5.57564C11.4901 5.34132 11.1102 5.34132 10.8759 5.57564L7.3002 9.15137L5.72446 7.57564C5.49014 7.34132 5.11025 7.34132 4.87593 7.57564C4.64162 7.80995 4.64162 8.18985 4.87593 8.42417L6.87593 10.4242C7.11025 10.6585 7.49014 10.6585 7.72446 10.4242L11.7245 6.42417Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, sr = me(function(t, e) {
1620
+ return pe(ve, Object.assign({}, t, {
1613
1621
  id: "success-icon",
1614
1622
  ref: e,
1615
- icon: Bi
1623
+ icon: Gi
1616
1624
  }));
1617
1625
  });
1618
- tr.displayName = "SuccessIcon";
1619
- function Wi(t) {
1620
- const { model: e } = t, r = re(X), s = D(e.cellFillColors$, [], !0), n = D(e.cellTextColors$, [], !0), a = k((o) => {
1626
+ sr.displayName = "SuccessIcon";
1627
+ function Yi(t) {
1628
+ const { model: e } = t, r = B(G), s = x(e.cellFillColors$, [], !0), n = x(e.cellTextColors$, [], !0), a = H((o) => {
1621
1629
  e.onFilterCheckToggled(o);
1622
- }, [e]), i = k((o) => {
1630
+ }, [e]), i = H((o) => {
1623
1631
  e.onFilterCheckToggled(o, !1);
1624
1632
  }, [e]);
1625
- return /* @__PURE__ */ p(
1633
+ return /* @__PURE__ */ d(
1626
1634
  "div",
1627
1635
  {
1628
1636
  "data-u-comp": "sheets-filter-panel-colors-container",
1629
1637
  className: "univer-flex univer-h-full univer-min-h-[300px] univer-flex-col",
1630
- children: /* @__PURE__ */ I(
1638
+ children: /* @__PURE__ */ F(
1631
1639
  "div",
1632
1640
  {
1633
1641
  "data-u-comp": "sheets-filter-panel",
1634
- className: Pe("univer-mt-2 univer-box-border univer-flex univer-h-[300px] univer-flex-grow univer-flex-col univer-gap-4 univer-overflow-auto univer-rounded-md univer-px-2 univer-py-2.5", ct),
1642
+ className: we("univer-mt-2 univer-box-border univer-flex univer-h-[300px] univer-flex-grow univer-flex-col univer-gap-4 univer-overflow-auto univer-rounded-md univer-px-2 univer-py-2.5", ct),
1635
1643
  children: [
1636
- s.length > 1 && /* @__PURE__ */ I("div", { children: [
1637
- /* @__PURE__ */ p(
1644
+ s.length > 1 && /* @__PURE__ */ F("div", { children: [
1645
+ /* @__PURE__ */ d(
1638
1646
  "div",
1639
1647
  {
1640
1648
  className: "univer-mb-2 univer-text-sm univer-text-gray-900 dark:!univer-text-white",
1641
1649
  children: r.t("sheets-filter.panel.filter-by-cell-fill-color")
1642
1650
  }
1643
1651
  ),
1644
- /* @__PURE__ */ p(
1652
+ /* @__PURE__ */ d(
1645
1653
  "div",
1646
1654
  {
1647
1655
  className: "univer-grid univer-grid-cols-8 univer-items-center univer-justify-start univer-gap-2",
1648
- children: s.map((o, l) => /* @__PURE__ */ I(
1656
+ children: s.map((o, l) => /* @__PURE__ */ F(
1649
1657
  "div",
1650
1658
  {
1651
1659
  className: "univer-relative univer-h-6 univer-w-6",
1652
1660
  onClick: () => a(o),
1653
1661
  children: [
1654
- o.color ? /* @__PURE__ */ p(
1662
+ o.color ? /* @__PURE__ */ d(
1655
1663
  "button",
1656
1664
  {
1657
1665
  type: "button",
1658
- className: Pe("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"),
1666
+ className: we("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"),
1659
1667
  style: { backgroundColor: o.color }
1660
1668
  }
1661
- ) : /* @__PURE__ */ p(
1662
- Jt,
1669
+ ) : /* @__PURE__ */ d(
1670
+ tr,
1663
1671
  {
1664
1672
  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"
1665
1673
  }
1666
1674
  ),
1667
- o.checked && /* @__PURE__ */ p(It, {})
1675
+ o.checked && /* @__PURE__ */ d(It, {})
1668
1676
  ]
1669
1677
  },
1670
1678
  `sheets-filter-cell-fill-color-${l}`
@@ -1672,32 +1680,32 @@ function Wi(t) {
1672
1680
  }
1673
1681
  )
1674
1682
  ] }),
1675
- n.length > 1 && /* @__PURE__ */ I("div", { children: [
1676
- /* @__PURE__ */ p(
1683
+ n.length > 1 && /* @__PURE__ */ F("div", { children: [
1684
+ /* @__PURE__ */ d(
1677
1685
  "div",
1678
1686
  {
1679
1687
  className: "univer-mb-2 univer-text-sm univer-text-gray-900 dark:!univer-text-white",
1680
1688
  children: r.t("sheets-filter.panel.filter-by-cell-text-color")
1681
1689
  }
1682
1690
  ),
1683
- /* @__PURE__ */ p(
1691
+ /* @__PURE__ */ d(
1684
1692
  "div",
1685
1693
  {
1686
1694
  className: "univer-grid univer-grid-cols-8 univer-items-center univer-justify-start univer-gap-2",
1687
- children: n.map((o, l) => /* @__PURE__ */ I(
1695
+ children: n.map((o, l) => /* @__PURE__ */ F(
1688
1696
  "div",
1689
1697
  {
1690
1698
  className: "univer-relative univer-h-6 univer-w-6",
1691
1699
  onClick: () => i(o),
1692
1700
  children: [
1693
- /* @__PURE__ */ p(
1701
+ /* @__PURE__ */ d(
1694
1702
  "div",
1695
1703
  {
1696
1704
  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)]",
1697
- children: /* @__PURE__ */ p(zt, { style: { color: o.color } })
1705
+ children: /* @__PURE__ */ d(er, { style: { color: o.color } })
1698
1706
  }
1699
1707
  ),
1700
- o.checked && /* @__PURE__ */ p(It, {})
1708
+ o.checked && /* @__PURE__ */ d(It, {})
1701
1709
  ]
1702
1710
  },
1703
1711
  `sheets-filter-cell-text-color-${l}`
@@ -1705,7 +1713,7 @@ function Wi(t) {
1705
1713
  }
1706
1714
  )
1707
1715
  ] }),
1708
- s.length <= 1 && n.length <= 1 && /* @__PURE__ */ p(
1716
+ s.length <= 1 && n.length <= 1 && /* @__PURE__ */ d(
1709
1717
  "div",
1710
1718
  {
1711
1719
  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",
@@ -1719,12 +1727,12 @@ function Wi(t) {
1719
1727
  );
1720
1728
  }
1721
1729
  function It() {
1722
- return /* @__PURE__ */ p(
1730
+ return /* @__PURE__ */ d(
1723
1731
  "div",
1724
1732
  {
1725
1733
  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",
1726
- children: /* @__PURE__ */ p(
1727
- tr,
1734
+ children: /* @__PURE__ */ d(
1735
+ sr,
1728
1736
  {
1729
1737
  className: "univer-h-full univer-w-full univer-font-bold univer-text-[#418F1F]"
1730
1738
  }
@@ -1732,64 +1740,64 @@ function It() {
1732
1740
  }
1733
1741
  );
1734
1742
  }
1735
- function Qi(t) {
1736
- var f, _;
1737
- const { model: e } = t, r = re(X), s = D(e.conditionItem$, void 0), n = D(e.filterConditionFormParams$, void 0), a = n != null && n.and ? "AND" : "OR", i = k((S) => {
1743
+ function Zi(t) {
1744
+ var p, _;
1745
+ const { model: e } = t, r = B(G), s = x(e.conditionItem$, void 0), n = x(e.filterConditionFormParams$, void 0), a = n != null && n.and ? "AND" : "OR", i = H((S) => {
1738
1746
  e.onConditionFormChange({ and: S === "AND" });
1739
- }, [e]), o = Vi(r), l = k((S) => {
1747
+ }, [e]), o = Ki(r), l = H((S) => {
1740
1748
  e.onPrimaryConditionChange(S);
1741
- }, [e]), c = ji(r), h = k((S) => {
1749
+ }, [e]), c = qi(r), h = H((S) => {
1742
1750
  e.onConditionFormChange(S);
1743
- }, [e]), d = r.t("sheets-filter.panel.input-values-placeholder");
1751
+ }, [e]), f = r.t("sheets-filter.panel.input-values-placeholder");
1744
1752
  function C(S, E, N) {
1745
1753
  const b = m.getItemByOperator(S).numOfParameters === 1;
1746
- return /* @__PURE__ */ I(Et, { children: [
1747
- N === "operator2" && /* @__PURE__ */ I(ni, { value: a, onChange: i, children: [
1748
- /* @__PURE__ */ p(Tt, { value: "AND", children: r.t("sheets-filter.panel.and") }),
1749
- /* @__PURE__ */ p(Tt, { value: "OR", children: r.t("sheets-filter.panel.or") })
1754
+ return /* @__PURE__ */ F(Et, { children: [
1755
+ N === "operator2" && /* @__PURE__ */ F(ai, { value: a, onChange: i, children: [
1756
+ /* @__PURE__ */ d(Tt, { value: "AND", children: r.t("sheets-filter.panel.and") }),
1757
+ /* @__PURE__ */ d(Tt, { value: "OR", children: r.t("sheets-filter.panel.or") })
1750
1758
  ] }),
1751
- /* @__PURE__ */ p(
1759
+ /* @__PURE__ */ d(
1752
1760
  Ct,
1753
1761
  {
1754
1762
  value: S,
1755
1763
  options: c,
1756
- onChange: (F) => h({ [N]: F })
1764
+ onChange: (y) => h({ [N]: y })
1757
1765
  }
1758
1766
  ),
1759
- b && /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(
1760
- Vt,
1767
+ b && /* @__PURE__ */ d("div", { children: /* @__PURE__ */ d(
1768
+ jt,
1761
1769
  {
1762
1770
  className: "univer-mt-2",
1763
1771
  value: E,
1764
- placeholder: d,
1765
- onChange: (F) => h({ [N === "operator1" ? "val1" : "val2"]: F })
1772
+ placeholder: f,
1773
+ onChange: (y) => h({ [N === "operator1" ? "val1" : "val2"]: y })
1766
1774
  }
1767
1775
  ) })
1768
1776
  ] });
1769
1777
  }
1770
- return /* @__PURE__ */ p(
1778
+ return /* @__PURE__ */ d(
1771
1779
  "div",
1772
1780
  {
1773
1781
  "data-u-comp": "sheets-filter-panel-conditions-container",
1774
1782
  className: "univer-flex univer-h-full univer-min-h-[300px] univer-flex-col",
1775
- children: s && n && /* @__PURE__ */ I(Et, { children: [
1776
- /* @__PURE__ */ p(Ct, { value: s.operator, options: o, onChange: l }),
1777
- m.getItemByOperator(s.operator).numOfParameters !== 0 ? /* @__PURE__ */ I(
1783
+ children: s && n && /* @__PURE__ */ F(Et, { children: [
1784
+ /* @__PURE__ */ d(Ct, { value: s.operator, options: o, onChange: l }),
1785
+ m.getItemByOperator(s.operator).numOfParameters !== 0 ? /* @__PURE__ */ F(
1778
1786
  "div",
1779
1787
  {
1780
1788
  "data-u-comp": "sheets-filter-panel-conditions-container-inner",
1781
- className: Pe("univer-mt-2 univer-flex-grow univer-overflow-hidden univer-rounded-md univer-p-2", ct),
1789
+ className: we("univer-mt-2 univer-flex-grow univer-overflow-hidden univer-rounded-md univer-p-2", ct),
1782
1790
  children: [
1783
- s.numOfParameters >= 1 && C(n.operator1, (f = n.val1) != null ? f : "", "operator1"),
1791
+ s.numOfParameters >= 1 && C(n.operator1, (p = n.val1) != null ? p : "", "operator1"),
1784
1792
  s.numOfParameters >= 2 && C(n.operator2, (_ = n.val2) != null ? _ : "", "operator2"),
1785
- /* @__PURE__ */ I(
1793
+ /* @__PURE__ */ F(
1786
1794
  "div",
1787
1795
  {
1788
1796
  "data-u-comp": "sheets-filter-panel-conditions-desc",
1789
1797
  className: "univer-mt-2 univer-text-xs univer-text-gray-500",
1790
1798
  children: [
1791
1799
  r.t("sheets-filter.panel.?"),
1792
- /* @__PURE__ */ p("br", {}),
1800
+ /* @__PURE__ */ d("br", {}),
1793
1801
  r.t("sheets-filter.panel.*")
1794
1802
  ]
1795
1803
  }
@@ -1801,7 +1809,7 @@ function Qi(t) {
1801
1809
  }
1802
1810
  );
1803
1811
  }
1804
- function Vi(t) {
1812
+ function Ki(t) {
1805
1813
  const e = t.getCurrentLocale();
1806
1814
  return ut(() => [
1807
1815
  {
@@ -1843,56 +1851,56 @@ function Vi(t) {
1843
1851
  }
1844
1852
  ], [e, t]);
1845
1853
  }
1846
- function ji(t) {
1854
+ function qi(t) {
1847
1855
  const e = t.getCurrentLocale();
1848
1856
  return ut(() => m.ALL_CONDITIONS.filter((r) => r.numOfParameters !== 2).map((r) => ({ label: t.t(r.label), value: r.operator })), [e, t]);
1849
1857
  }
1850
- function Gi(t) {
1851
- const { model: e } = t, r = re(X), s = D(e.searchString$, "", !0), n = D(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 = k(() => {
1858
+ function Xi(t) {
1859
+ const { model: e } = t, r = B(G), s = x(e.searchString$, "", !0), n = x(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 = H(() => {
1852
1860
  e.onCheckAllToggled(!o);
1853
- }, [e, o]), d = k((f) => {
1854
- e.setSearchString(f);
1861
+ }, [e, o]), f = H((p) => {
1862
+ e.setSearchString(p);
1855
1863
  }, [e]);
1856
- function C(f) {
1864
+ function C(p) {
1857
1865
  let _ = [];
1858
- return f.forEach((S) => {
1866
+ return p.forEach((S) => {
1859
1867
  S.checked && _.push(S.key), S.children && (_ = _.concat(C(S.children)));
1860
1868
  }), _;
1861
1869
  }
1862
- return /* @__PURE__ */ I(
1870
+ return /* @__PURE__ */ F(
1863
1871
  "div",
1864
1872
  {
1865
1873
  "data-u-comp": "sheets-filter-panel-values-container",
1866
1874
  className: "univer-flex univer-h-full univer-min-h-[300px] univer-flex-col",
1867
1875
  children: [
1868
- /* @__PURE__ */ p(
1869
- Vt,
1876
+ /* @__PURE__ */ d(
1877
+ jt,
1870
1878
  {
1871
1879
  autoFocus: !0,
1872
1880
  value: s,
1873
1881
  placeholder: r.t("sheets-filter.panel.search-placeholder"),
1874
- onChange: d
1882
+ onChange: f
1875
1883
  }
1876
1884
  ),
1877
- /* @__PURE__ */ I(
1885
+ /* @__PURE__ */ F(
1878
1886
  "div",
1879
1887
  {
1880
1888
  "data-u-comp": "sheets-filter-panel",
1881
- className: Pe("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", ct),
1889
+ className: we("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", ct),
1882
1890
  children: [
1883
- /* @__PURE__ */ p(
1891
+ /* @__PURE__ */ d(
1884
1892
  "div",
1885
1893
  {
1886
1894
  "data-u-comp": "sheets-filter-panel-values-item",
1887
1895
  className: "univer-box-border univer-h-8 univer-w-full univer-py-0.5",
1888
- children: /* @__PURE__ */ I(
1896
+ children: /* @__PURE__ */ F(
1889
1897
  "div",
1890
1898
  {
1891
1899
  "data-u-comp": "sheets-filter-panel-values-item-inner",
1892
1900
  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",
1893
1901
  children: [
1894
- /* @__PURE__ */ p(
1895
- oi,
1902
+ /* @__PURE__ */ d(
1903
+ ci,
1896
1904
  {
1897
1905
  indeterminate: l,
1898
1906
  disabled: n.length === 0,
@@ -1900,7 +1908,7 @@ function Gi(t) {
1900
1908
  onChange: h
1901
1909
  }
1902
1910
  ),
1903
- /* @__PURE__ */ p(
1911
+ /* @__PURE__ */ d(
1904
1912
  "span",
1905
1913
  {
1906
1914
  "data-u-comp": "sheets-filter-panel-values-item-text",
@@ -1908,7 +1916,7 @@ function Gi(t) {
1908
1916
  children: `${r.t("sheets-filter.panel.select-all")}`
1909
1917
  }
1910
1918
  ),
1911
- /* @__PURE__ */ p(
1919
+ /* @__PURE__ */ d(
1912
1920
  "span",
1913
1921
  {
1914
1922
  "data-u-comp": "sheets-filter-panel-values-item-count",
@@ -1921,14 +1929,14 @@ function Gi(t) {
1921
1929
  )
1922
1930
  }
1923
1931
  ),
1924
- /* @__PURE__ */ p("div", { "data-u-comp": "sheets-filter-panel-values-virtual", className: "univer-flex-grow", children: /* @__PURE__ */ p(
1925
- li,
1932
+ /* @__PURE__ */ d("div", { "data-u-comp": "sheets-filter-panel-values-virtual", className: "univer-flex-grow", children: /* @__PURE__ */ d(
1933
+ ui,
1926
1934
  {
1927
1935
  data: n,
1928
1936
  defaultExpandAll: !1,
1929
1937
  valueGroup: C(n),
1930
- onChange: (f) => {
1931
- e.onFilterCheckToggled(f);
1938
+ onChange: (p) => {
1939
+ e.onFilterCheckToggled(p);
1932
1940
  },
1933
1941
  defaultCache: c,
1934
1942
  itemHeight: 28,
@@ -1939,30 +1947,30 @@ function Gi(t) {
1939
1947
  univer-text-gray-900 dark:hover:!univer-bg-gray-900
1940
1948
  dark:!univer-text-white
1941
1949
  `,
1942
- attachRender: (f) => /* @__PURE__ */ I(
1950
+ attachRender: (p) => /* @__PURE__ */ F(
1943
1951
  "div",
1944
1952
  {
1945
1953
  className: "univer-ml-1 univer-flex univer-h-5 univer-flex-1 univer-cursor-pointer univer-items-center univer-justify-between univer-text-sm univer-text-primary-500",
1946
1954
  children: [
1947
- /* @__PURE__ */ p(
1955
+ /* @__PURE__ */ d(
1948
1956
  "span",
1949
1957
  {
1950
1958
  "data-u-comp": "sheets-filter-panel-values-item-count",
1951
1959
  className: "univer-text-gray-400 dark:!univer-text-gray-500",
1952
- children: `(${f.count})`
1960
+ children: `(${p.count})`
1953
1961
  }
1954
1962
  ),
1955
- /* @__PURE__ */ p(
1963
+ /* @__PURE__ */ d(
1956
1964
  "a",
1957
1965
  {
1958
1966
  className: "univer-box-border univer-hidden univer-h-4 univer-whitespace-nowrap univer-px-1.5",
1959
1967
  onClick: () => {
1960
1968
  const _ = [];
1961
- f.children ? f.children.forEach((S) => {
1969
+ p.children ? p.children.forEach((S) => {
1962
1970
  S.children ? S.children.forEach((E) => {
1963
1971
  _.push(E.key);
1964
1972
  }) : _.push(S.key);
1965
- }) : _.push(f.key), e.onFilterOnly(_);
1973
+ }) : _.push(p.key), e.onFilterOnly(_);
1966
1974
  },
1967
1975
  children: a
1968
1976
  }
@@ -1979,56 +1987,95 @@ function Gi(t) {
1979
1987
  }
1980
1988
  );
1981
1989
  }
1982
- function Yi() {
1990
+ function zi() {
1991
+ const t = B(Tr);
1992
+ if (!x(t.visible$, void 0, !0)) return null;
1993
+ const r = B(G), s = B(Dt), n = x(t.enabled$, void 0, !0);
1994
+ return /* @__PURE__ */ F(
1995
+ "div",
1996
+ {
1997
+ className: "univer-mt-2 univer-flex univer-items-center univer-justify-between univer-text-sm univer-text-gray-900 dark:univer-text-gray-200",
1998
+ children: [
1999
+ /* @__PURE__ */ F("div", { className: "univer-flex univer-items-center univer-gap-1", children: [
2000
+ /* @__PURE__ */ d("span", { children: r.t("sheets-filter.sync.title") }),
2001
+ /* @__PURE__ */ d(
2002
+ hi,
2003
+ {
2004
+ title: n ? r.t("sheets-filter.sync.statusTips.off") : r.t("sheets-filter.sync.statusTips.on"),
2005
+ asChild: !0,
2006
+ children: /* @__PURE__ */ d(ir, { className: "univer-block" })
2007
+ }
2008
+ )
2009
+ ] }),
2010
+ /* @__PURE__ */ d(
2011
+ di,
2012
+ {
2013
+ defaultChecked: n,
2014
+ onChange: (a) => {
2015
+ const i = a ? r.t("sheets-filter.sync.switchTips.on") : r.t("sheets-filter.sync.switchTips.off");
2016
+ t.setEnabled(a), s.show({
2017
+ content: i,
2018
+ type: Gt.Success,
2019
+ duration: 2e3
2020
+ });
2021
+ }
2022
+ }
2023
+ )
2024
+ ]
2025
+ }
2026
+ );
2027
+ }
2028
+ function Ji() {
1983
2029
  var E;
1984
- const t = re(q), e = re(X), r = re(j), s = D(t.filterBy$, void 0, !0), n = D(t.filterByModel$, void 0, !1), a = D(() => (n == null ? void 0 : n.canApply$) || me(!1), void 0, !1, [n]), i = Zi(e), o = !D(t.hasCriteria$), l = k((N) => {
1985
- r.executeCommand(Zt.id, { filterBy: N });
1986
- }, [r]), c = k(async () => {
1987
- await (n == null ? void 0 : n.clear()), r.executeCommand(Se.id);
1988
- }, [n, r]), h = k(() => {
1989
- r.executeCommand(Se.id);
1990
- }, [r]), d = k(async () => {
1991
- await (n == null ? void 0 : n.apply()), r.executeCommand(Se.id);
1992
- }, [n, r]), f = (E = re(z).activeFilterModel) == null ? void 0 : E.getRange(), _ = t.col, S = wr(Or.FILTER_PANEL_EMBED_POINT);
1993
- return /* @__PURE__ */ I(
2030
+ const t = B(z), e = B(G), r = B(Y), s = x(t.filterBy$, void 0, !0), n = x(t.filterByModel$, void 0, !1), a = x(() => (n == null ? void 0 : n.canApply$) || fe(!1), void 0, !1, [n]), i = es(e), o = !x(t.hasCriteria$), l = H((N) => {
2031
+ r.executeCommand(qt.id, { filterBy: N });
2032
+ }, [r]), c = H(async () => {
2033
+ await (n == null ? void 0 : n.clear()), r.executeCommand(Ee.id);
2034
+ }, [n, r]), h = H(() => {
2035
+ r.executeCommand(Ee.id);
2036
+ }, [r]), f = H(async () => {
2037
+ await (n == null ? void 0 : n.apply()), r.executeCommand(Ee.id);
2038
+ }, [n, r]), p = (E = B(J).activeFilterModel) == null ? void 0 : E.getRange(), _ = t.col, S = xr(Ar.FILTER_PANEL_EMBED_POINT);
2039
+ return /* @__PURE__ */ F(
1994
2040
  "div",
1995
2041
  {
1996
2042
  "data-u-comp": "sheets-filter-panel",
1997
2043
  className: "univer-box-border univer-flex univer-max-h-[500px] univer-w-[400px] 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",
1998
2044
  children: [
1999
- /* @__PURE__ */ p(
2000
- Lr,
2045
+ /* @__PURE__ */ d(
2046
+ Ur,
2001
2047
  {
2002
2048
  components: S,
2003
- sharedProps: { range: f, colIndex: _, onClose: h }
2049
+ sharedProps: { range: p, colIndex: _, onClose: h }
2004
2050
  }
2005
2051
  ),
2006
- /* @__PURE__ */ p("div", { className: "univer-mb-1 univer-flex-shrink-0 univer-flex-grow-0", children: /* @__PURE__ */ p(
2007
- ai,
2052
+ /* @__PURE__ */ d("div", { className: "univer-mb-1 univer-flex-shrink-0 univer-flex-grow-0", children: /* @__PURE__ */ d(
2053
+ fi,
2008
2054
  {
2009
2055
  value: s,
2010
2056
  items: i,
2011
2057
  onChange: (N) => l(N)
2012
2058
  }
2013
2059
  ) }),
2014
- n ? /* @__PURE__ */ p(
2060
+ n ? /* @__PURE__ */ d(
2015
2061
  "div",
2016
2062
  {
2017
2063
  "data-u-comp": "sheets-filter-panel-content",
2018
2064
  className: "univer-flex-shrink univer-flex-grow univer-pt-2",
2019
- children: s === w.VALUES ? /* @__PURE__ */ p(Gi, { model: n }) : s === w.COLORS ? /* @__PURE__ */ p(Wi, { model: n }) : /* @__PURE__ */ p(Qi, { model: n })
2065
+ children: s === P.VALUES ? /* @__PURE__ */ d(Xi, { model: n }) : s === P.COLORS ? /* @__PURE__ */ d(Yi, { model: n }) : /* @__PURE__ */ d(Zi, { model: n })
2020
2066
  }
2021
- ) : /* @__PURE__ */ p("div", { className: "univer-flex-1" }),
2022
- /* @__PURE__ */ I(
2067
+ ) : /* @__PURE__ */ d("div", { className: "univer-flex-1" }),
2068
+ /* @__PURE__ */ d(zi, {}),
2069
+ /* @__PURE__ */ F(
2023
2070
  "div",
2024
2071
  {
2025
2072
  "data-u-comp": "sheets-filter-panel-footer",
2026
2073
  className: "univer-mt-4 univer-inline-flex univer-flex-shrink-0 univer-flex-grow-0 univer-flex-nowrap univer-justify-between univer-overflow-hidden",
2027
2074
  children: [
2028
- /* @__PURE__ */ p(Ze, { variant: "link", onClick: c, disabled: o, children: e.t("sheets-filter.panel.clear-filter") }),
2029
- /* @__PURE__ */ I("span", { className: "univer-flex univer-gap-2", children: [
2030
- /* @__PURE__ */ p(Ze, { variant: "default", onClick: h, children: e.t("sheets-filter.panel.cancel") }),
2031
- /* @__PURE__ */ p(Ze, { disabled: !a, variant: "primary", onClick: d, children: e.t("sheets-filter.panel.confirm") })
2075
+ /* @__PURE__ */ d(Ze, { variant: "link", onClick: c, disabled: o, children: e.t("sheets-filter.panel.clear-filter") }),
2076
+ /* @__PURE__ */ F("span", { className: "univer-flex univer-gap-2", children: [
2077
+ /* @__PURE__ */ d(Ze, { variant: "default", onClick: h, children: e.t("sheets-filter.panel.cancel") }),
2078
+ /* @__PURE__ */ d(Ze, { disabled: !a, variant: "primary", onClick: f, children: e.t("sheets-filter.panel.confirm") })
2032
2079
  ] })
2033
2080
  ]
2034
2081
  }
@@ -2037,37 +2084,37 @@ function Yi() {
2037
2084
  }
2038
2085
  );
2039
2086
  }
2040
- function Zi(t) {
2087
+ function es(t) {
2041
2088
  const e = t.getCurrentLocale();
2042
2089
  return ut(() => [
2043
- { label: t.t("sheets-filter.panel.by-values"), value: w.VALUES },
2044
- { label: t.t("sheets-filter.panel.by-colors"), value: w.COLORS },
2045
- { label: t.t("sheets-filter.panel.by-conditions"), value: w.CONDITIONS }
2090
+ { label: t.t("sheets-filter.panel.by-values"), value: P.VALUES },
2091
+ { label: t.t("sheets-filter.panel.by-colors"), value: P.COLORS },
2092
+ { label: t.t("sheets-filter.panel.by-conditions"), value: P.CONDITIONS }
2046
2093
  ], [e, t]);
2047
2094
  }
2048
- function Ki(t) {
2049
- const e = t.get(z);
2095
+ function ts(t) {
2096
+ const e = t.get(J);
2050
2097
  return {
2051
- id: Ne.id,
2098
+ id: Oe.id,
2052
2099
  type: lt.BUTTON_SELECTOR,
2053
2100
  icon: "FilterIcon",
2054
2101
  tooltip: "sheets-filter.toolbar.smart-toggle-filter-tooltip",
2055
2102
  hidden$: ot(t, se.UNIVER_SHEET),
2056
2103
  activated$: e.activeFilterModel$.pipe(ce((r) => !!r)),
2057
- disabled$: Ir(
2104
+ disabled$: wr(
2058
2105
  t,
2059
- br(
2106
+ Pr(
2060
2107
  t,
2061
2108
  {
2062
- worksheetTypes: [pe, ve],
2063
- rangeTypes: [_e]
2109
+ worksheetTypes: [ge, Se],
2110
+ rangeTypes: [Ce]
2064
2111
  }
2065
2112
  )
2066
2113
  )
2067
2114
  };
2068
2115
  }
2069
- function qi(t) {
2070
- const e = t.get(z);
2116
+ function rs(t) {
2117
+ const e = t.get(J);
2071
2118
  return {
2072
2119
  id: nt.id,
2073
2120
  type: lt.BUTTON,
@@ -2075,12 +2122,12 @@ function qi(t) {
2075
2122
  hidden$: ot(t, se.UNIVER_SHEET),
2076
2123
  disabled$: e.activeFilterModel$.pipe(at((r) => {
2077
2124
  var s;
2078
- return (s = r == null ? void 0 : r.hasCriteria$.pipe(ce((n) => !n))) != null ? s : me(!0);
2125
+ return (s = r == null ? void 0 : r.hasCriteria$.pipe(ce((n) => !n))) != null ? s : fe(!0);
2079
2126
  }))
2080
2127
  };
2081
2128
  }
2082
- function Xi(t) {
2083
- const e = t.get(z);
2129
+ function is(t) {
2130
+ const e = t.get(J);
2084
2131
  return {
2085
2132
  id: st.id,
2086
2133
  type: lt.BUTTON,
@@ -2088,85 +2135,85 @@ function Xi(t) {
2088
2135
  hidden$: ot(t, se.UNIVER_SHEET),
2089
2136
  disabled$: e.activeFilterModel$.pipe(at((r) => {
2090
2137
  var s;
2091
- return (s = r == null ? void 0 : r.hasCriteria$.pipe(ce((n) => !n))) != null ? s : me(!0);
2138
+ return (s = r == null ? void 0 : r.hasCriteria$.pipe(ce((n) => !n))) != null ? s : fe(!0);
2092
2139
  }))
2093
2140
  };
2094
2141
  }
2095
- const zi = {
2096
- [Mr.ORGANIZATION]: {
2097
- [Ne.id]: {
2142
+ const ss = {
2143
+ [kr.ORGANIZATION]: {
2144
+ [Oe.id]: {
2098
2145
  order: 2,
2099
- menuItemFactory: Ki,
2146
+ menuItemFactory: ts,
2100
2147
  [nt.id]: {
2101
2148
  order: 0,
2102
- menuItemFactory: qi
2149
+ menuItemFactory: rs
2103
2150
  },
2104
2151
  [st.id]: {
2105
2152
  order: 1,
2106
- menuItemFactory: Xi
2153
+ menuItemFactory: is
2107
2154
  }
2108
2155
  }
2109
2156
  }
2110
- }, Ji = {
2111
- id: Ne.id,
2112
- binding: $r.L | _t.CTRL_COMMAND | _t.SHIFT,
2157
+ }, ns = {
2158
+ id: Oe.id,
2159
+ binding: Hr.L | _t.CTRL_COMMAND | _t.SHIFT,
2113
2160
  description: "sheets-filter.shortcut.smart-toggle-filter",
2114
- preconditions: Rr,
2161
+ preconditions: Lr,
2115
2162
  group: "4_sheet-edit"
2116
2163
  };
2117
- var es = Object.getOwnPropertyDescriptor, ts = (t, e, r, s) => {
2118
- for (var n = s > 1 ? void 0 : s ? es(e, r) : e, a = t.length - 1, i; a >= 0; a--)
2164
+ var os = Object.getOwnPropertyDescriptor, ls = (t, e, r, s) => {
2165
+ for (var n = s > 1 ? void 0 : s ? os(e, r) : e, a = t.length - 1, i; a >= 0; a--)
2119
2166
  (i = t[a]) && (n = i(n) || n);
2120
2167
  return n;
2121
2168
  }, M = (t, e) => (r, s) => e(r, s, t);
2122
2169
  const bt = "FILTER_PANEL_POPUP";
2123
- let He = class extends Ee {
2124
- constructor(e, r, s, n, a, i, o, l, c, h, d, C, f) {
2125
- super(f, C);
2170
+ let He = class extends ye {
2171
+ constructor(e, r, s, n, a, i, o, l, c, h, f, C, p) {
2172
+ super(p, C);
2126
2173
  v(this, "_popupDisposable");
2127
- 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 = d, this._initCommands(), this._initShortcuts(), this._initMenuItems(), this._initUI();
2174
+ 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();
2128
2175
  }
2129
2176
  dispose() {
2130
2177
  super.dispose(), this._closeFilterPopup();
2131
2178
  }
2132
2179
  _initShortcuts() {
2133
2180
  [
2134
- Ji
2181
+ ns
2135
2182
  ].forEach((e) => {
2136
2183
  this.disposeWithMe(this._shortcutService.registerShortcut(e));
2137
2184
  });
2138
2185
  }
2139
2186
  _initCommands() {
2140
2187
  [
2141
- Ne,
2142
- gr,
2143
- Sr,
2188
+ Oe,
2189
+ Er,
2190
+ Nr,
2144
2191
  Q,
2145
2192
  nt,
2146
2193
  st,
2147
- Zt,
2194
+ qt,
2148
2195
  xe,
2149
- Se
2196
+ Ee
2150
2197
  ].forEach((e) => {
2151
2198
  this.disposeWithMe(this._commandService.registerCommand(e));
2152
2199
  });
2153
2200
  }
2154
2201
  _initMenuItems() {
2155
- this._menuManagerService.mergeMenu(zi);
2202
+ this._menuManagerService.mergeMenu(ss);
2156
2203
  }
2157
2204
  _initUI() {
2158
2205
  [
2159
- [bt, Yi],
2160
- ["FilterIcon", er]
2206
+ [bt, Ji],
2207
+ ["FilterIcon", rr]
2161
2208
  ].forEach(([e, r]) => {
2162
2209
  this.disposeWithMe(
2163
2210
  this._componentManager.register(e, r)
2164
2211
  );
2165
- }), this.disposeWithMe(this._contextService.subscribeContextValue$(ue).pipe(ri()).subscribe((e) => {
2212
+ }), this.disposeWithMe(this._contextService.subscribeContextValue$(ue).pipe(ni()).subscribe((e) => {
2166
2213
  e ? this._openFilterPopup() : this._closeFilterPopup();
2167
2214
  })), this.disposeWithMe(this._sheetsFilterService.errorMsg$.subscribe((e) => {
2168
2215
  e && this._messageService.show({
2169
- type: ci.Error,
2216
+ type: Gt.Error,
2170
2217
  content: this._localeService.t(e)
2171
2218
  });
2172
2219
  }));
@@ -2179,7 +2226,7 @@ let He = class extends Ee {
2179
2226
  this._popupDisposable = this._sheetCanvasPopupService.attachPopupToCell(n, s, {
2180
2227
  componentKey: bt,
2181
2228
  direction: "horizontal",
2182
- onClickOutside: () => this._commandService.syncExecuteCommand(Se.id),
2229
+ onClickOutside: () => this._commandService.syncExecuteCommand(Ee.id),
2183
2230
  offset: [5, 0]
2184
2231
  });
2185
2232
  }
@@ -2188,27 +2235,27 @@ let He = class extends Ee {
2188
2235
  (e = this._popupDisposable) == null || e.dispose(), this._popupDisposable = null;
2189
2236
  }
2190
2237
  };
2191
- He = ts([
2238
+ He = ls([
2192
2239
  M(0, T(ie)),
2193
- M(1, T(xr)),
2194
- M(2, T(q)),
2195
- M(3, T(Ar)),
2196
- M(4, T(z)),
2197
- M(5, T(X)),
2198
- M(6, Ur),
2199
- M(7, j),
2200
- M(8, kr),
2201
- M(9, Qe),
2202
- M(10, Hr),
2240
+ M(1, T(Dr)),
2241
+ M(2, T(z)),
2242
+ M(3, T(Mr)),
2243
+ M(4, T(J)),
2244
+ M(5, T(G)),
2245
+ M(6, Br),
2246
+ M(7, Y),
2247
+ M(8, Wr),
2248
+ M(9, Ve),
2249
+ M(10, Dt),
2203
2250
  M(11, T(Ht)),
2204
- M(12, Dt)
2251
+ M(12, Bt)
2205
2252
  ], He);
2206
- var rs = Object.defineProperty, is = Object.getOwnPropertyDescriptor, ss = (t, e, r) => e in t ? rs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, ns = (t, e, r, s) => {
2207
- for (var n = s > 1 ? void 0 : s ? is(e, r) : e, a = t.length - 1, i; a >= 0; a--)
2253
+ var as = Object.defineProperty, cs = Object.getOwnPropertyDescriptor, us = (t, e, r) => e in t ? as(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, hs = (t, e, r, s) => {
2254
+ for (var n = s > 1 ? void 0 : s ? cs(e, r) : e, a = t.length - 1, i; a >= 0; a--)
2208
2255
  (i = t[a]) && (n = i(n) || n);
2209
2256
  return n;
2210
- }, Xe = (t, e) => (r, s) => e(r, s, t), rr = (t, e, r) => ss(t, typeof e != "symbol" ? e + "" : e, r);
2211
- const os = "SHEET_FILTER_UI_PLUGIN";
2257
+ }, Xe = (t, e) => (r, s) => e(r, s, t), nr = (t, e, r) => us(t, typeof e != "symbol" ? e + "" : e, r);
2258
+ const ds = "SHEET_FILTER_UI_PLUGIN";
2212
2259
  let De = class extends it {
2213
2260
  constructor(t = Ue, e, r, s) {
2214
2261
  super(), this._config = t, this._injector = e, this._configService = r, this._rpcChannelService = s;
@@ -2217,15 +2264,15 @@ let De = class extends it {
2217
2264
  Ue,
2218
2265
  this._config
2219
2266
  );
2220
- n && this._configService.setConfig("menu", n, { merge: !0 }), this._configService.setConfig(Kt, a);
2267
+ n && this._configService.setConfig("menu", n, { merge: !0 }), this._configService.setConfig(Xt, a);
2221
2268
  }
2222
2269
  onStarting() {
2223
- dr(this._injector, [
2224
- [q],
2270
+ pr(this._injector, [
2271
+ [z],
2225
2272
  [he],
2226
2273
  [He]
2227
- ]), this._config.useRemoteFilterValuesGenerator && this._rpcChannelService && this._injector.add([we, {
2228
- useFactory: () => ii(
2274
+ ]), this._config.useRemoteFilterValuesGenerator && this._rpcChannelService && this._injector.add([Pe, {
2275
+ useFactory: () => oi(
2229
2276
  this._rpcChannelService.requestChannel(ht)
2230
2277
  )
2231
2278
  }]);
@@ -2241,16 +2288,16 @@ let De = class extends it {
2241
2288
  ]);
2242
2289
  }
2243
2290
  };
2244
- rr(De, "type", se.UNIVER_SHEET);
2245
- rr(De, "pluginName", os);
2246
- De = ns([
2291
+ nr(De, "type", se.UNIVER_SHEET);
2292
+ nr(De, "pluginName", ds);
2293
+ De = hs([
2247
2294
  $t(kt),
2248
2295
  Xe(1, T(ie)),
2249
2296
  Xe(2, xt),
2250
- Xe(3, hr(Qt))
2297
+ Xe(3, mr(Qt))
2251
2298
  ], De);
2252
- var ls = Object.getOwnPropertyDescriptor, as = (t, e, r, s) => {
2253
- for (var n = s > 1 ? void 0 : s ? ls(e, r) : e, a = t.length - 1, i; a >= 0; a--)
2299
+ var fs = Object.getOwnPropertyDescriptor, ms = (t, e, r, s) => {
2300
+ for (var n = s > 1 ? void 0 : s ? fs(e, r) : e, a = t.length - 1, i; a >= 0; a--)
2254
2301
  (i = t[a]) && (n = i(n) || n);
2255
2302
  return n;
2256
2303
  }, Rt = (t, e) => (r, s) => e(r, s, t), be;
@@ -2260,23 +2307,23 @@ let At = (be = class extends it {
2260
2307
  }
2261
2308
  onStarting() {
2262
2309
  [
2263
- [we, { useClass: Je }]
2310
+ [Pe, { useClass: Je }]
2264
2311
  ].forEach((t) => this._injector.add(t));
2265
2312
  }
2266
2313
  onReady() {
2267
2314
  this._rpcChannelService.registerChannel(
2268
2315
  ht,
2269
- si(this._injector.get(we))
2316
+ li(this._injector.get(Pe))
2270
2317
  );
2271
2318
  }
2272
2319
  }, v(be, "type", se.UNIVER_SHEET), v(be, "pluginName", "SHEET_FILTER_UI_WORKER_PLUGIN"), be);
2273
- At = as([
2320
+ At = ms([
2274
2321
  Rt(1, T(ie)),
2275
2322
  Rt(2, Qt)
2276
2323
  ], At);
2277
2324
  export {
2278
- Zt as ChangeFilterByOperation,
2279
- Se as CloseFilterPanelOperation,
2325
+ qt as ChangeFilterByOperation,
2326
+ Ee as CloseFilterPanelOperation,
2280
2327
  xe as OpenFilterPanelOperation,
2281
2328
  ke as UniverSheetsFilterMobileUIPlugin,
2282
2329
  De as UniverSheetsFilterUIPlugin,