@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.
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +538 -491
- package/lib/es/locale/ca-ES.js +11 -0
- package/lib/es/locale/en-US.js +11 -0
- package/lib/es/locale/es-ES.js +13 -2
- package/lib/es/locale/fa-IR.js +11 -0
- package/lib/es/locale/fr-FR.js +11 -0
- package/lib/es/locale/ko-KR.js +11 -0
- package/lib/es/locale/ru-RU.js +11 -0
- package/lib/es/locale/vi-VN.js +11 -0
- package/lib/es/locale/zh-CN.js +11 -0
- package/lib/es/locale/zh-TW.js +11 -0
- package/lib/index.css +1 -1
- package/lib/index.js +538 -491
- package/lib/locale/ca-ES.js +11 -0
- package/lib/locale/en-US.js +11 -0
- package/lib/locale/es-ES.js +13 -2
- package/lib/locale/fa-IR.js +11 -0
- package/lib/locale/fr-FR.js +11 -0
- package/lib/locale/ko-KR.js +11 -0
- package/lib/locale/ru-RU.js +11 -0
- package/lib/locale/vi-VN.js +11 -0
- package/lib/locale/zh-CN.js +11 -0
- package/lib/locale/zh-TW.js +11 -0
- package/lib/types/locale/en-US.d.ts +11 -0
- package/lib/types/views/components/SheetsFilterSyncSwitch.d.ts +16 -0
- package/lib/umd/index.js +2 -2
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +13 -13
package/lib/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var v = (t, e, r) =>
|
|
4
|
-
import { BooleanNumber as
|
|
5
|
-
import { CustomFilterOperator as u, FilterBy as
|
|
6
|
-
import { SetCellEditVisibleOperation as
|
|
7
|
-
import { ILayoutService as
|
|
8
|
-
import { COLOR_BLACK_RGB as gt, Rect as St, Shape as
|
|
9
|
-
import { RefRangeService as
|
|
10
|
-
import { BehaviorSubject as
|
|
11
|
-
import { IRPCChannelService as Qt, toModule as
|
|
12
|
-
import { clsx as
|
|
13
|
-
import { jsx as
|
|
14
|
-
import { forwardRef as
|
|
15
|
-
var
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
65
|
+
order: O.FIRST,
|
|
66
66
|
numOfParameters: 1,
|
|
67
67
|
getDefaultFormParams: () => ({ operator1: g.CONTAINS, val1: "" }),
|
|
68
68
|
testMappingParams: (i) => {
|
|
69
|
-
const [o] =
|
|
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:
|
|
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] =
|
|
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:
|
|
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] =
|
|
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:
|
|
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] =
|
|
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:
|
|
148
|
+
order: O.FIRST,
|
|
149
149
|
numOfParameters: 1,
|
|
150
150
|
getDefaultFormParams: () => ({ operator1: g.EQUALS, val1: "" }),
|
|
151
151
|
testMappingParams: (i) => {
|
|
152
|
-
const [o] =
|
|
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:
|
|
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] =
|
|
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:
|
|
189
|
+
order: O.FIRST,
|
|
190
190
|
getDefaultFormParams: () => ({ operator1: u.GREATER_THAN_OR_EQUAL, val1: "" }),
|
|
191
191
|
testMappingParams: (i) => {
|
|
192
|
-
const [o] =
|
|
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:
|
|
209
|
+
order: O.FIRST,
|
|
210
210
|
getDefaultFormParams: () => ({ operator1: u.LESS_THAN, val1: "" }),
|
|
211
211
|
testMappingParams: (i) => {
|
|
212
|
-
const [o] =
|
|
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:
|
|
229
|
+
order: O.FIRST,
|
|
230
230
|
getDefaultFormParams: () => ({ operator1: u.LESS_THAN_OR_EQUAL, val1: "" }),
|
|
231
231
|
testMappingParams: (i) => {
|
|
232
|
-
const [o] =
|
|
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:
|
|
249
|
+
order: O.FIRST,
|
|
250
250
|
getDefaultFormParams: () => ({ operator1: u.EQUAL, val1: "" }),
|
|
251
251
|
testMappingParams: (i) => {
|
|
252
|
-
const [o] =
|
|
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:
|
|
269
|
+
order: O.FIRST,
|
|
270
270
|
getDefaultFormParams: () => ({ operator1: u.NOT_EQUALS, val1: "" }),
|
|
271
271
|
testMappingParams: (i) => {
|
|
272
|
-
const [o] =
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
393
|
-
function C(b,
|
|
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:
|
|
396
|
+
return R.mapToFilterColumn({ val1: y, operator1: b });
|
|
397
397
|
}
|
|
398
|
-
const
|
|
399
|
-
if (
|
|
398
|
+
const p = !h || h === t.NONE.operator, _ = !f || f === t.NONE.operator;
|
|
399
|
+
if (p && _)
|
|
400
400
|
return t.NONE.mapToFilterColumn({});
|
|
401
|
-
if (
|
|
402
|
-
return 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(
|
|
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 =
|
|
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
|
|
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
|
|
509
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
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",
|
|
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
|
|
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 = (
|
|
521
|
-
return !c || !h ? [] : (this._logService.debug("[SheetsGenerateFilterValuesService]", "getFilterValues for", { unitId: e, subUnitId: r }),
|
|
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 =
|
|
535
|
-
Ke(0, T(
|
|
534
|
+
Je = vi([
|
|
535
|
+
Ke(0, T(G)),
|
|
536
536
|
Ke(1, Be),
|
|
537
|
-
Ke(2,
|
|
537
|
+
Ke(2, ur)
|
|
538
538
|
], Je);
|
|
539
|
-
function
|
|
540
|
-
var N, b,
|
|
541
|
-
const c = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(),
|
|
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
|
|
544
|
-
const { row: je, rowSpan: dt = 1 } =
|
|
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
|
|
548
|
-
if (n.has(
|
|
547
|
+
const or = je + oe;
|
|
548
|
+
if (n.has(or)) {
|
|
549
549
|
oe++;
|
|
550
550
|
continue;
|
|
551
551
|
}
|
|
552
|
-
const
|
|
553
|
-
if (!
|
|
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 =
|
|
558
|
-
if (Ie &&
|
|
559
|
-
const
|
|
560
|
-
if (!
|
|
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 =
|
|
565
|
-
let
|
|
566
|
-
|
|
567
|
-
title: `${
|
|
568
|
-
key: `${
|
|
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(`${
|
|
574
|
-
let
|
|
575
|
-
|
|
576
|
-
title: e.t(`sheets-filter.date.${
|
|
577
|
-
key: `${
|
|
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 =
|
|
583
|
-
const Ge = (
|
|
584
|
-
Ge ? (Ge.originValues.add(
|
|
585
|
-
title: `${
|
|
586
|
-
key: `${
|
|
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([
|
|
588
|
+
originValues: /* @__PURE__ */ new Set([ee]),
|
|
589
589
|
leaf: !0,
|
|
590
|
-
checked: _ ? !1 : i.size ? i.has(
|
|
591
|
-
}),
|
|
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
|
|
594
|
-
let le = c.get(
|
|
593
|
+
const q = ee;
|
|
594
|
+
let le = c.get(q);
|
|
595
595
|
le ? le.count++ : (le = {
|
|
596
|
-
title:
|
|
596
|
+
title: ee,
|
|
597
597
|
leaf: !0,
|
|
598
|
-
checked: _ ? !1 : i.size ? i.has(
|
|
599
|
-
key:
|
|
598
|
+
checked: _ ? !1 : i.size ? i.has(ee) : !o,
|
|
599
|
+
key: q,
|
|
600
600
|
count: 1
|
|
601
|
-
}, c.set(
|
|
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
|
|
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:
|
|
613
|
+
key: p
|
|
614
614
|
};
|
|
615
|
-
c.set("empty",
|
|
615
|
+
c.set("empty", w), h.set("empty", [p]);
|
|
616
616
|
}
|
|
617
617
|
return {
|
|
618
|
-
filterTreeItems:
|
|
618
|
+
filterTreeItems: gi(Array.from(c.values())),
|
|
619
619
|
filterTreeMapCache: h
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
return Array.from(t).sort((e, r) => e.children && !r.children ? -1 : !e.children && r.children ? 1 :
|
|
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
|
|
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
|
|
651
|
-
return t.leaf ? t.checked : t.children ? t.children.every((e) =>
|
|
650
|
+
function Zt(t) {
|
|
651
|
+
return t.leaf ? t.checked : t.children ? t.children.every((e) => Zt(e)) : !0;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
t.leaf && (e !== void 0 ? t.checked = e : t.checked = !t.checked), t.children && t.children.forEach((r) =>
|
|
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
|
|
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 =
|
|
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
|
|
678
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
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
|
-
},
|
|
682
|
-
|
|
683
|
-
let
|
|
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
|
|
686
|
+
v(this, "_filterBy$", new j(P.VALUES));
|
|
687
687
|
v(this, "filterBy$", this._filterBy$.asObservable());
|
|
688
|
-
v(this, "_filterByModel$", new
|
|
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
|
|
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
|
|
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
|
|
743
|
+
case P.VALUES:
|
|
744
744
|
this._setupByValues(this._filterModel, this.col);
|
|
745
745
|
break;
|
|
746
|
-
case
|
|
746
|
+
case P.COLORS:
|
|
747
747
|
this._setupByColors(this._filterModel, this.col);
|
|
748
748
|
break;
|
|
749
|
-
case
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
],
|
|
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$",
|
|
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
|
|
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 =
|
|
908
|
-
|
|
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
|
|
923
|
-
|
|
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
|
-
|
|
926
|
-
|
|
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
|
|
933
|
+
return Kt(o, c);
|
|
934
934
|
})
|
|
935
935
|
),
|
|
936
936
|
this._manuallyUpdateFilterItems$
|
|
937
|
-
).pipe(
|
|
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(
|
|
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
|
|
955
|
-
let
|
|
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:
|
|
961
|
+
filterColumn: p,
|
|
962
962
|
filters: !!_,
|
|
963
963
|
blankChecked: E,
|
|
964
964
|
iterateRange: b,
|
|
965
965
|
alreadyChecked: Array.from(S)
|
|
966
966
|
});
|
|
967
|
-
|
|
967
|
+
y = L.filterTreeItems, R = L.filterTreeMapCache;
|
|
968
968
|
} else {
|
|
969
|
-
const L =
|
|
969
|
+
const L = Yt(
|
|
970
970
|
!!_,
|
|
971
971
|
a,
|
|
972
972
|
b,
|
|
973
973
|
h,
|
|
974
974
|
N,
|
|
975
|
-
|
|
975
|
+
p,
|
|
976
976
|
S,
|
|
977
977
|
E,
|
|
978
978
|
c.getStyles()
|
|
979
979
|
);
|
|
980
|
-
|
|
980
|
+
y = L.filterTreeItems, R = L.filterTreeMapCache;
|
|
981
981
|
}
|
|
982
|
-
return e.createInstance(Me, r, s,
|
|
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) =>
|
|
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 =
|
|
1014
|
-
|
|
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) =>
|
|
1018
|
+
r.forEach((s) => Te(s, !1)), e.forEach((s) => {
|
|
1019
1019
|
const n = et(r, s);
|
|
1020
|
-
n &&
|
|
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((
|
|
1058
|
+
const c = s.filter((f) => f.key !== "empty");
|
|
1059
1059
|
c.length > 0 && (l.filters = {
|
|
1060
|
-
filters: c.flatMap((
|
|
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 =
|
|
1073
|
-
|
|
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$",
|
|
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
|
|
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,
|
|
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,
|
|
1102
|
-
for (const L of l.iterateByColumn(
|
|
1103
|
-
const { row:
|
|
1104
|
-
if (C.has(
|
|
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
|
|
1107
|
-
if (
|
|
1108
|
-
const A = new pt(
|
|
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 (
|
|
1113
|
-
const A = new pt(
|
|
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 =
|
|
1199
|
-
|
|
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(
|
|
1206
|
-
t.get(
|
|
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
|
-
},
|
|
1210
|
+
}, Ee = {
|
|
1211
1211
|
id: "sheet.operation.close-filter-panel",
|
|
1212
1212
|
type: We.OPERATION,
|
|
1213
1213
|
handler: (t) => {
|
|
1214
|
-
const e = t.get(
|
|
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
|
-
},
|
|
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(
|
|
1222
|
+
return t.get(z).changeFilterBy(r);
|
|
1223
1223
|
}
|
|
1224
|
-
},
|
|
1225
|
-
var
|
|
1226
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
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 ===
|
|
1239
|
-
const n = this._injector.get(Be), a =
|
|
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: [
|
|
1246
|
-
worksheetTypes: [
|
|
1245
|
+
rangeTypes: [Ce],
|
|
1246
|
+
worksheetTypes: [ge, Se]
|
|
1247
1247
|
}, [c]);
|
|
1248
1248
|
else {
|
|
1249
|
-
const
|
|
1250
|
-
if (
|
|
1251
|
-
let C = { ...
|
|
1252
|
-
C =
|
|
1253
|
-
rangeTypes: [
|
|
1254
|
-
worksheetTypes: [
|
|
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: [
|
|
1259
|
-
worksheetTypes: [
|
|
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: [
|
|
1268
|
-
worksheetTypes: [
|
|
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 =
|
|
1276
|
-
ae(0, T(
|
|
1277
|
-
ae(1, T(
|
|
1278
|
-
ae(2,
|
|
1279
|
-
ae(3, T(
|
|
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(
|
|
1281
|
+
ae(5, T(Gr))
|
|
1282
1282
|
], he);
|
|
1283
|
-
const
|
|
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:
|
|
1289
|
-
height:
|
|
1288
|
+
width: X,
|
|
1289
|
+
height: X,
|
|
1290
1290
|
fill: n
|
|
1291
|
-
}), e.lineCap = "square", e.strokeStyle = s, e.scale(r /
|
|
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:
|
|
1297
|
-
height:
|
|
1296
|
+
width: X,
|
|
1297
|
+
height: X,
|
|
1298
1298
|
fill: n
|
|
1299
|
-
}), e.scale(r /
|
|
1299
|
+
}), e.scale(r / X, r / X), e.fillStyle = s, e.fill(Ni), e.restore();
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
1302
|
-
var
|
|
1303
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
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
|
|
1308
|
-
let tt = class extends
|
|
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 =
|
|
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,
|
|
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 =
|
|
1351
|
-
qe(2,
|
|
1352
|
-
qe(3,
|
|
1350
|
+
tt = yi([
|
|
1351
|
+
qe(2, Ve),
|
|
1352
|
+
qe(3, Y),
|
|
1353
1353
|
qe(4, T(Lt))
|
|
1354
1354
|
], tt);
|
|
1355
|
-
var
|
|
1356
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
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
|
-
},
|
|
1360
|
-
const
|
|
1361
|
-
function
|
|
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 +
|
|
1364
|
+
return t + Ne;
|
|
1365
1365
|
case Ae.MIDDLE:
|
|
1366
|
-
return t + Math.max(0, (r -
|
|
1366
|
+
return t + Math.max(0, (r - W) / 2);
|
|
1367
1367
|
case Ae.BOTTOM:
|
|
1368
1368
|
default:
|
|
1369
|
-
return e -
|
|
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
|
|
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
|
|
1396
|
-
|
|
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() && (
|
|
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
|
-
|
|
1402
|
+
Wt(20, void 0, { leading: !1, trailing: !0 }),
|
|
1403
1403
|
ce(i),
|
|
1404
|
-
|
|
1404
|
+
Vt(i())
|
|
1405
1405
|
// must trigger once
|
|
1406
1406
|
);
|
|
1407
1407
|
}),
|
|
1408
|
-
|
|
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
|
|
1414
|
+
const { scene: s } = this._context, { rowHeaderWidth: n, columnHeaderHeight: a } = r, i = this._filterRangeShape = new Ir(
|
|
1415
1415
|
s,
|
|
1416
|
-
|
|
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 =
|
|
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:
|
|
1437
|
-
for (let
|
|
1438
|
-
const _ = `sheets-filter-button-${
|
|
1439
|
-
if (
|
|
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(
|
|
1442
|
-
left:
|
|
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:
|
|
1445
|
-
width:
|
|
1446
|
-
zIndex:
|
|
1447
|
-
cellHeight:
|
|
1448
|
-
cellWidth:
|
|
1449
|
-
filterParams: { unitId: n, subUnitId: i, col:
|
|
1450
|
-
}, je = this._injector.createInstance(tt, _,
|
|
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(
|
|
1458
|
-
effect:
|
|
1457
|
+
this._buttonRenderDisposable = this._sheetInterceptorService.intercept(Xr.CELL_CONTENT, {
|
|
1458
|
+
effect: fr.Style,
|
|
1459
1459
|
handler: (o, l, c) => {
|
|
1460
|
-
const { row: h, col:
|
|
1461
|
-
return C !== e ||
|
|
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:
|
|
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 =
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
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
|
|
1484
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
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
|
|
1488
|
+
let ye = class extends Mt {
|
|
1489
1489
|
constructor(t, e) {
|
|
1490
1490
|
super(), this._renderManagerService = t, this._sheetsRenderService = e, [
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
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
|
-
|
|
1502
|
-
yt(0,
|
|
1501
|
+
ye = Pi([
|
|
1502
|
+
yt(0, Bt),
|
|
1503
1503
|
yt(1, T(Ht))
|
|
1504
|
-
],
|
|
1505
|
-
var
|
|
1506
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
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),
|
|
1510
|
-
const
|
|
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(
|
|
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
|
-
[
|
|
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(
|
|
1531
|
+
this._injector.get(ye);
|
|
1532
1532
|
}
|
|
1533
1533
|
};
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
ke =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
1557
|
-
var r = t.icon, s = t.id, n = t.className, a = t.extend, i =
|
|
1558
|
-
return
|
|
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
|
|
1561
|
-
return
|
|
1562
|
-
return
|
|
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
|
|
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
|
|
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
|
|
1583
|
+
function Bi() {
|
|
1584
1584
|
return Math.random().toString(36).substring(2, 8);
|
|
1585
1585
|
}
|
|
1586
|
-
|
|
1587
|
-
var
|
|
1588
|
-
return
|
|
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:
|
|
1591
|
+
icon: Wi
|
|
1592
1592
|
}));
|
|
1593
1593
|
});
|
|
1594
|
-
|
|
1595
|
-
var
|
|
1596
|
-
return
|
|
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:
|
|
1599
|
+
icon: Vi
|
|
1600
1600
|
}));
|
|
1601
1601
|
});
|
|
1602
|
-
|
|
1603
|
-
var
|
|
1604
|
-
return
|
|
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:
|
|
1607
|
+
icon: Qi
|
|
1608
1608
|
}));
|
|
1609
1609
|
});
|
|
1610
|
-
|
|
1611
|
-
var
|
|
1612
|
-
return
|
|
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:
|
|
1623
|
+
icon: Gi
|
|
1616
1624
|
}));
|
|
1617
1625
|
});
|
|
1618
|
-
|
|
1619
|
-
function
|
|
1620
|
-
const { model: e } = t, r =
|
|
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 =
|
|
1630
|
+
}, [e]), i = H((o) => {
|
|
1623
1631
|
e.onFilterCheckToggled(o, !1);
|
|
1624
1632
|
}, [e]);
|
|
1625
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
1638
|
+
children: /* @__PURE__ */ F(
|
|
1631
1639
|
"div",
|
|
1632
1640
|
{
|
|
1633
1641
|
"data-u-comp": "sheets-filter-panel",
|
|
1634
|
-
className:
|
|
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__ */
|
|
1637
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
1662
|
+
o.color ? /* @__PURE__ */ d(
|
|
1655
1663
|
"button",
|
|
1656
1664
|
{
|
|
1657
1665
|
type: "button",
|
|
1658
|
-
className:
|
|
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__ */
|
|
1662
|
-
|
|
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__ */
|
|
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__ */
|
|
1676
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
1705
|
+
children: /* @__PURE__ */ d(er, { style: { color: o.color } })
|
|
1698
1706
|
}
|
|
1699
1707
|
),
|
|
1700
|
-
o.checked && /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
1727
|
-
|
|
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
|
|
1736
|
-
var
|
|
1737
|
-
const { model: e } = t, r =
|
|
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 =
|
|
1747
|
+
}, [e]), o = Ki(r), l = H((S) => {
|
|
1740
1748
|
e.onPrimaryConditionChange(S);
|
|
1741
|
-
}, [e]), c =
|
|
1749
|
+
}, [e]), c = qi(r), h = H((S) => {
|
|
1742
1750
|
e.onConditionFormChange(S);
|
|
1743
|
-
}, [e]),
|
|
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__ */
|
|
1747
|
-
N === "operator2" && /* @__PURE__ */
|
|
1748
|
-
/* @__PURE__ */
|
|
1749
|
-
/* @__PURE__ */
|
|
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__ */
|
|
1759
|
+
/* @__PURE__ */ d(
|
|
1752
1760
|
Ct,
|
|
1753
1761
|
{
|
|
1754
1762
|
value: S,
|
|
1755
1763
|
options: c,
|
|
1756
|
-
onChange: (
|
|
1764
|
+
onChange: (y) => h({ [N]: y })
|
|
1757
1765
|
}
|
|
1758
1766
|
),
|
|
1759
|
-
b && /* @__PURE__ */
|
|
1760
|
-
|
|
1767
|
+
b && /* @__PURE__ */ d("div", { children: /* @__PURE__ */ d(
|
|
1768
|
+
jt,
|
|
1761
1769
|
{
|
|
1762
1770
|
className: "univer-mt-2",
|
|
1763
1771
|
value: E,
|
|
1764
|
-
placeholder:
|
|
1765
|
-
onChange: (
|
|
1772
|
+
placeholder: f,
|
|
1773
|
+
onChange: (y) => h({ [N === "operator1" ? "val1" : "val2"]: y })
|
|
1766
1774
|
}
|
|
1767
1775
|
) })
|
|
1768
1776
|
] });
|
|
1769
1777
|
}
|
|
1770
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
1776
|
-
/* @__PURE__ */
|
|
1777
|
-
m.getItemByOperator(s.operator).numOfParameters !== 0 ? /* @__PURE__ */
|
|
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:
|
|
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, (
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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
|
|
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
|
|
1851
|
-
const { model: e } = t, r =
|
|
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]),
|
|
1854
|
-
e.setSearchString(
|
|
1861
|
+
}, [e, o]), f = H((p) => {
|
|
1862
|
+
e.setSearchString(p);
|
|
1855
1863
|
}, [e]);
|
|
1856
|
-
function C(
|
|
1864
|
+
function C(p) {
|
|
1857
1865
|
let _ = [];
|
|
1858
|
-
return
|
|
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__ */
|
|
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__ */
|
|
1869
|
-
|
|
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:
|
|
1882
|
+
onChange: f
|
|
1875
1883
|
}
|
|
1876
1884
|
),
|
|
1877
|
-
/* @__PURE__ */
|
|
1885
|
+
/* @__PURE__ */ F(
|
|
1878
1886
|
"div",
|
|
1879
1887
|
{
|
|
1880
1888
|
"data-u-comp": "sheets-filter-panel",
|
|
1881
|
-
className:
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
1895
|
-
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
1925
|
-
|
|
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: (
|
|
1931
|
-
e.onFilterCheckToggled(
|
|
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: (
|
|
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__ */
|
|
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: `(${
|
|
1960
|
+
children: `(${p.count})`
|
|
1953
1961
|
}
|
|
1954
1962
|
),
|
|
1955
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
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(
|
|
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
|
|
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 =
|
|
1985
|
-
r.executeCommand(
|
|
1986
|
-
}, [r]), c =
|
|
1987
|
-
await (n == null ? void 0 : n.clear()), r.executeCommand(
|
|
1988
|
-
}, [n, r]), h =
|
|
1989
|
-
r.executeCommand(
|
|
1990
|
-
}, [r]),
|
|
1991
|
-
await (n == null ? void 0 : n.apply()), r.executeCommand(
|
|
1992
|
-
}, [n, r]),
|
|
1993
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
2000
|
-
|
|
2045
|
+
/* @__PURE__ */ d(
|
|
2046
|
+
Ur,
|
|
2001
2047
|
{
|
|
2002
2048
|
components: S,
|
|
2003
|
-
sharedProps: { range:
|
|
2049
|
+
sharedProps: { range: p, colIndex: _, onClose: h }
|
|
2004
2050
|
}
|
|
2005
2051
|
),
|
|
2006
|
-
/* @__PURE__ */
|
|
2007
|
-
|
|
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__ */
|
|
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 ===
|
|
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__ */
|
|
2022
|
-
/* @__PURE__ */
|
|
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__ */
|
|
2029
|
-
/* @__PURE__ */
|
|
2030
|
-
/* @__PURE__ */
|
|
2031
|
-
/* @__PURE__ */
|
|
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
|
|
2087
|
+
function es(t) {
|
|
2041
2088
|
const e = t.getCurrentLocale();
|
|
2042
2089
|
return ut(() => [
|
|
2043
|
-
{ label: t.t("sheets-filter.panel.by-values"), value:
|
|
2044
|
-
{ label: t.t("sheets-filter.panel.by-colors"), value:
|
|
2045
|
-
{ label: t.t("sheets-filter.panel.by-conditions"), value:
|
|
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
|
|
2049
|
-
const e = t.get(
|
|
2095
|
+
function ts(t) {
|
|
2096
|
+
const e = t.get(J);
|
|
2050
2097
|
return {
|
|
2051
|
-
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$:
|
|
2104
|
+
disabled$: wr(
|
|
2058
2105
|
t,
|
|
2059
|
-
|
|
2106
|
+
Pr(
|
|
2060
2107
|
t,
|
|
2061
2108
|
{
|
|
2062
|
-
worksheetTypes: [
|
|
2063
|
-
rangeTypes: [
|
|
2109
|
+
worksheetTypes: [ge, Se],
|
|
2110
|
+
rangeTypes: [Ce]
|
|
2064
2111
|
}
|
|
2065
2112
|
)
|
|
2066
2113
|
)
|
|
2067
2114
|
};
|
|
2068
2115
|
}
|
|
2069
|
-
function
|
|
2070
|
-
const e = t.get(
|
|
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 :
|
|
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
|
|
2083
|
-
const e = t.get(
|
|
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 :
|
|
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
|
|
2096
|
-
[
|
|
2097
|
-
[
|
|
2142
|
+
const ss = {
|
|
2143
|
+
[kr.ORGANIZATION]: {
|
|
2144
|
+
[Oe.id]: {
|
|
2098
2145
|
order: 2,
|
|
2099
|
-
menuItemFactory:
|
|
2146
|
+
menuItemFactory: ts,
|
|
2100
2147
|
[nt.id]: {
|
|
2101
2148
|
order: 0,
|
|
2102
|
-
menuItemFactory:
|
|
2149
|
+
menuItemFactory: rs
|
|
2103
2150
|
},
|
|
2104
2151
|
[st.id]: {
|
|
2105
2152
|
order: 1,
|
|
2106
|
-
menuItemFactory:
|
|
2153
|
+
menuItemFactory: is
|
|
2107
2154
|
}
|
|
2108
2155
|
}
|
|
2109
2156
|
}
|
|
2110
|
-
},
|
|
2111
|
-
id:
|
|
2112
|
-
binding:
|
|
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:
|
|
2161
|
+
preconditions: Lr,
|
|
2115
2162
|
group: "4_sheet-edit"
|
|
2116
2163
|
};
|
|
2117
|
-
var
|
|
2118
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
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
|
|
2124
|
-
constructor(e, r, s, n, a, i, o, l, c, h,
|
|
2125
|
-
super(
|
|
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 =
|
|
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
|
-
|
|
2181
|
+
ns
|
|
2135
2182
|
].forEach((e) => {
|
|
2136
2183
|
this.disposeWithMe(this._shortcutService.registerShortcut(e));
|
|
2137
2184
|
});
|
|
2138
2185
|
}
|
|
2139
2186
|
_initCommands() {
|
|
2140
2187
|
[
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2188
|
+
Oe,
|
|
2189
|
+
Er,
|
|
2190
|
+
Nr,
|
|
2144
2191
|
Q,
|
|
2145
2192
|
nt,
|
|
2146
2193
|
st,
|
|
2147
|
-
|
|
2194
|
+
qt,
|
|
2148
2195
|
xe,
|
|
2149
|
-
|
|
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(
|
|
2202
|
+
this._menuManagerService.mergeMenu(ss);
|
|
2156
2203
|
}
|
|
2157
2204
|
_initUI() {
|
|
2158
2205
|
[
|
|
2159
|
-
[bt,
|
|
2160
|
-
["FilterIcon",
|
|
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(
|
|
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:
|
|
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(
|
|
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 =
|
|
2238
|
+
He = ls([
|
|
2192
2239
|
M(0, T(ie)),
|
|
2193
|
-
M(1, T(
|
|
2194
|
-
M(2, T(
|
|
2195
|
-
M(3, T(
|
|
2196
|
-
M(4, T(
|
|
2197
|
-
M(5, T(
|
|
2198
|
-
M(6,
|
|
2199
|
-
M(7,
|
|
2200
|
-
M(8,
|
|
2201
|
-
M(9,
|
|
2202
|
-
M(10,
|
|
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,
|
|
2251
|
+
M(12, Bt)
|
|
2205
2252
|
], He);
|
|
2206
|
-
var
|
|
2207
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
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),
|
|
2211
|
-
const
|
|
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(
|
|
2267
|
+
n && this._configService.setConfig("menu", n, { merge: !0 }), this._configService.setConfig(Xt, a);
|
|
2221
2268
|
}
|
|
2222
2269
|
onStarting() {
|
|
2223
|
-
|
|
2224
|
-
[
|
|
2270
|
+
pr(this._injector, [
|
|
2271
|
+
[z],
|
|
2225
2272
|
[he],
|
|
2226
2273
|
[He]
|
|
2227
|
-
]), this._config.useRemoteFilterValuesGenerator && this._rpcChannelService && this._injector.add([
|
|
2228
|
-
useFactory: () =>
|
|
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
|
-
|
|
2245
|
-
|
|
2246
|
-
De =
|
|
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,
|
|
2297
|
+
Xe(3, mr(Qt))
|
|
2251
2298
|
], De);
|
|
2252
|
-
var
|
|
2253
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
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
|
-
[
|
|
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
|
-
|
|
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 =
|
|
2320
|
+
At = ms([
|
|
2274
2321
|
Rt(1, T(ie)),
|
|
2275
2322
|
Rt(2, Qt)
|
|
2276
2323
|
], At);
|
|
2277
2324
|
export {
|
|
2278
|
-
|
|
2279
|
-
|
|
2325
|
+
qt as ChangeFilterByOperation,
|
|
2326
|
+
Ee as CloseFilterPanelOperation,
|
|
2280
2327
|
xe as OpenFilterPanelOperation,
|
|
2281
2328
|
ke as UniverSheetsFilterMobileUIPlugin,
|
|
2282
2329
|
De as UniverSheetsFilterUIPlugin,
|