@univerjs/sheets-sort-ui 0.10.12 → 0.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +727 -434
- package/lib/index.js +727 -434
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/es/index.js
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { LocaleService as
|
|
1
|
+
var Ve = Object.defineProperty;
|
|
2
|
+
var Ge = (e, t, r) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var Y = (e, t, r) => Ge(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import { LocaleService as H, IUniverInstanceService as xe, Inject as M, ICommandService as _e, Disposable as We, UniverInstanceType as q, Tools as qe, LocaleType as me, CommandType as I, throttle as ze, Injector as ye, RxDisposable as Ye, DependentOn as Xe, IConfigService as Ke, Plugin as Je, merge as Qe } from "@univerjs/core";
|
|
5
5
|
import { jsxs as g, jsx as c } from "react/jsx-runtime";
|
|
6
|
-
import { SheetsSelectionsService as
|
|
7
|
-
import { SheetsSortService as Ie, SortType as
|
|
8
|
-
import { useDependency as
|
|
9
|
-
import { BehaviorSubject as
|
|
10
|
-
import { RadioGroup as
|
|
11
|
-
import { useState as
|
|
6
|
+
import { SheetsSelectionsService as et, getPrimaryForRange as tt, SetSelectionsOperation as rt, expandToContinuousRange as ve, getSheetCommandTarget as nt, RangeProtectionPermissionEditPoint as b, WorksheetSortPermission as O, WorksheetEditPermission as N, WorkbookEditablePermission as L } from "@univerjs/sheets";
|
|
7
|
+
import { SheetsSortService as Ie, SortType as $, SortRangeCommand as ot, UniverSheetsSortPlugin as st } from "@univerjs/sheets-sort";
|
|
8
|
+
import { useDependency as R, IConfirmService as it, useObservable as ct, MenuItemType as f, getMenuHiddenObservable as we, ContextMenuPosition as at, ContextMenuGroup as lt, RibbonDataGroup as dt, IMenuManagerService as ut, IDialogService as ht, ILayoutService as gt, IUIPartsService as Ct, ComponentManager as mt, connectInjector as vt } from "@univerjs/ui";
|
|
9
|
+
import { BehaviorSubject as ft, takeUntil as St } from "rxjs";
|
|
10
|
+
import { RadioGroup as Me, Radio as F, Checkbox as pt, clsx as X, DraggableList as xt, scrollbarClassName as Re, Button as V, Dropdown as _t, ButtonGroup as yt } from "@univerjs/design";
|
|
11
|
+
import { useState as P, useRef as Ee, createElement as p, forwardRef as w, useCallback as T, useEffect as Te } from "react";
|
|
12
12
|
import { serializeRange as It } from "@univerjs/engine-formula";
|
|
13
|
-
import { getCurrentRangeDisable$ as
|
|
14
|
-
const
|
|
15
|
-
const [t,
|
|
13
|
+
import { getCurrentRangeDisable$ as k, getCurrentExclusiveRangeInterest$ as wt, SheetsRenderService as Mt, SheetsUIPart as Rt } from "@univerjs/sheets-ui";
|
|
14
|
+
const Et = (e) => {
|
|
15
|
+
const [t, r] = P("0"), n = R(H);
|
|
16
16
|
return /* @__PURE__ */ g("div", { className: "univer-text-sm", children: [
|
|
17
|
-
/* @__PURE__ */ c("div", { className: "extend-confirm-desc", children:
|
|
17
|
+
/* @__PURE__ */ c("div", { className: "extend-confirm-desc", children: n.t("sheets-sort.dialog.sort-reminder-desc") }),
|
|
18
18
|
/* @__PURE__ */ g(
|
|
19
|
-
|
|
19
|
+
Me,
|
|
20
20
|
{
|
|
21
21
|
className: "univer-mt-4",
|
|
22
22
|
value: t,
|
|
23
23
|
direction: "vertical",
|
|
24
24
|
onChange: (o) => {
|
|
25
|
-
|
|
25
|
+
r(o), e.onChange(o);
|
|
26
26
|
},
|
|
27
27
|
children: [
|
|
28
|
-
/* @__PURE__ */ c(
|
|
29
|
-
/* @__PURE__ */ c(
|
|
28
|
+
/* @__PURE__ */ c(F, { value: "0", children: n.t("sheets-sort.dialog.sort-reminder-no") }),
|
|
29
|
+
/* @__PURE__ */ c(F, { value: "1", children: n.t("sheets-sort.dialog.sort-reminder-ext") })
|
|
30
30
|
]
|
|
31
31
|
}
|
|
32
32
|
)
|
|
33
33
|
] });
|
|
34
34
|
};
|
|
35
|
-
var
|
|
36
|
-
for (var o =
|
|
37
|
-
(
|
|
35
|
+
var Tt = Object.getOwnPropertyDescriptor, bt = (e, t, r, n) => {
|
|
36
|
+
for (var o = n > 1 ? void 0 : n ? Tt(t, r) : t, s = e.length - 1, i; s >= 0; s--)
|
|
37
|
+
(i = e[s]) && (o = i(o) || o);
|
|
38
38
|
return o;
|
|
39
|
-
},
|
|
40
|
-
const
|
|
39
|
+
}, D = (e, t) => (r, n) => t(r, n, e);
|
|
40
|
+
const B = {
|
|
41
41
|
MERGE_ERROR: "sheets-sort.error.merge-size",
|
|
42
42
|
EMPTY_ERROR: "sheets-sort.error.empty",
|
|
43
43
|
SINGLE_ERROR: "sheets-sort.error.single",
|
|
44
44
|
FORMULA_ARRAY: "sheets-sort.error.formula-array"
|
|
45
45
|
};
|
|
46
|
-
let
|
|
47
|
-
constructor(t,
|
|
46
|
+
let C = class extends We {
|
|
47
|
+
constructor(t, r, n, o, s, i) {
|
|
48
48
|
super();
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
this._univerInstanceService = t, this._confirmService =
|
|
49
|
+
Y(this, "_customSortState$", new ft(null));
|
|
50
|
+
Y(this, "customSortState$", this._customSortState$.asObservable());
|
|
51
|
+
this._univerInstanceService = t, this._confirmService = r, this._selectionManagerService = n, this._sheetsSortService = o, this._localeService = s, this._commandService = i;
|
|
52
52
|
}
|
|
53
|
-
async triggerSortDirectly(t,
|
|
54
|
-
const o =
|
|
53
|
+
async triggerSortDirectly(t, r, n) {
|
|
54
|
+
const o = n || await this._detectSortLocation(r);
|
|
55
55
|
if (!o || !this._check(o))
|
|
56
56
|
return !1;
|
|
57
|
-
const
|
|
57
|
+
const i = {
|
|
58
58
|
orderRules: [{
|
|
59
|
-
type: t ?
|
|
59
|
+
type: t ? $.ASC : $.DESC,
|
|
60
60
|
colIndex: o.colIndex
|
|
61
61
|
}],
|
|
62
62
|
range: o.range
|
|
63
63
|
};
|
|
64
|
-
return this._sheetsSortService.applySort(
|
|
64
|
+
return this._sheetsSortService.applySort(i, o.unitId, o.subUnitId), !0;
|
|
65
65
|
}
|
|
66
66
|
async triggerSortCustomize() {
|
|
67
67
|
const t = await this._detectSortLocation();
|
|
@@ -72,33 +72,33 @@ let m = class extends ze {
|
|
|
72
72
|
}
|
|
73
73
|
getTitles(t) {
|
|
74
74
|
var l, u;
|
|
75
|
-
const
|
|
76
|
-
if (!
|
|
75
|
+
const r = (l = this.customSortState()) == null ? void 0 : l.location;
|
|
76
|
+
if (!r)
|
|
77
77
|
return [];
|
|
78
|
-
const { unitId:
|
|
79
|
-
if (!
|
|
78
|
+
const { unitId: n, subUnitId: o, range: s } = r, i = (u = this._univerInstanceService.getUnit(n)) == null ? void 0 : u.getSheetBySheetId(o);
|
|
79
|
+
if (!i)
|
|
80
80
|
return [];
|
|
81
|
-
const a =
|
|
82
|
-
return Array.from({ length:
|
|
83
|
-
var
|
|
84
|
-
const
|
|
81
|
+
const a = Ot(this._localeService);
|
|
82
|
+
return Array.from({ length: s.endColumn - s.startColumn + 1 }, (_, v) => {
|
|
83
|
+
var m;
|
|
84
|
+
const E = (m = i.getCell(s.startRow, v + s.startColumn)) == null ? void 0 : m.v;
|
|
85
85
|
return {
|
|
86
|
-
index:
|
|
87
|
-
label: t ? `${
|
|
86
|
+
index: v + s.startColumn,
|
|
87
|
+
label: t ? `${E != null ? E : a(v + s.startColumn)}` : a(v + s.startColumn)
|
|
88
88
|
};
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
setSelection(t,
|
|
92
|
-
var
|
|
93
|
-
const o = (
|
|
91
|
+
setSelection(t, r, n) {
|
|
92
|
+
var i;
|
|
93
|
+
const o = (i = this._univerInstanceService.getUnit(t)) == null ? void 0 : i.getSheetBySheetId(r);
|
|
94
94
|
if (!o)
|
|
95
95
|
return;
|
|
96
|
-
const
|
|
96
|
+
const s = {
|
|
97
97
|
unitId: t,
|
|
98
|
-
subUnitId:
|
|
99
|
-
selections: [{ range:
|
|
98
|
+
subUnitId: r,
|
|
99
|
+
selections: [{ range: n, primary: tt(n, o), style: null }]
|
|
100
100
|
};
|
|
101
|
-
this._commandService.executeCommand(
|
|
101
|
+
this._commandService.executeCommand(rt.id, s);
|
|
102
102
|
}
|
|
103
103
|
async showCheckError(t) {
|
|
104
104
|
return await this._confirmService.confirm({
|
|
@@ -122,10 +122,10 @@ let m = class extends ze {
|
|
|
122
122
|
},
|
|
123
123
|
children: {
|
|
124
124
|
title: /* @__PURE__ */ c(
|
|
125
|
-
|
|
125
|
+
Et,
|
|
126
126
|
{
|
|
127
|
-
onChange: (
|
|
128
|
-
t =
|
|
127
|
+
onChange: (n) => {
|
|
128
|
+
t = n === "1";
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
)
|
|
@@ -142,260 +142,553 @@ let m = class extends ze {
|
|
|
142
142
|
this._customSortState$.next({ show: !1 });
|
|
143
143
|
}
|
|
144
144
|
_check(t) {
|
|
145
|
-
return this._sheetsSortService.singleCheck(t) ? this._sheetsSortService.mergeCheck(t) ? this._sheetsSortService.formulaCheck(t) ? this._sheetsSortService.emptyCheck(t) ? !0 : (this.showCheckError(
|
|
145
|
+
return this._sheetsSortService.singleCheck(t) ? this._sheetsSortService.mergeCheck(t) ? this._sheetsSortService.formulaCheck(t) ? this._sheetsSortService.emptyCheck(t) ? !0 : (this.showCheckError(B.EMPTY_ERROR), !1) : (this.showCheckError(B.FORMULA_ARRAY), !1) : (this.showCheckError(B.MERGE_ERROR), !1) : (this.showCheckError(B.SINGLE_ERROR), !1);
|
|
146
146
|
}
|
|
147
147
|
async _detectSortLocation(t) {
|
|
148
|
-
const
|
|
149
|
-
if (!
|
|
148
|
+
const r = this._univerInstanceService.getCurrentUnitForType(q.UNIVER_SHEET), n = r.getActiveSheet(), o = r.getUnitId(), s = n.getSheetId(), i = this._selectionManagerService.getCurrentLastSelection();
|
|
149
|
+
if (!i)
|
|
150
150
|
return null;
|
|
151
151
|
let a;
|
|
152
152
|
if (t === !0)
|
|
153
|
-
a =
|
|
153
|
+
a = ve(i.range, { up: !0, down: !0, left: !0, right: !0 }, n), this.setSelection(o, s, a);
|
|
154
154
|
else if (t === !1)
|
|
155
|
-
a =
|
|
155
|
+
a = i.range;
|
|
156
156
|
else {
|
|
157
157
|
const l = await this.showExtendConfirm();
|
|
158
158
|
if (l === "cancel")
|
|
159
159
|
return null;
|
|
160
|
-
l === "keep" ? a =
|
|
160
|
+
l === "keep" ? a = i.range : (a = ve(i.range, { up: !0, down: !0, left: !0, right: !0 }, n), this.setSelection(o, s, a));
|
|
161
161
|
}
|
|
162
162
|
return {
|
|
163
163
|
range: a,
|
|
164
164
|
unitId: o,
|
|
165
|
-
subUnitId:
|
|
166
|
-
colIndex:
|
|
165
|
+
subUnitId: s,
|
|
166
|
+
colIndex: i.primary.actualColumn
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
],
|
|
178
|
-
function
|
|
170
|
+
C = bt([
|
|
171
|
+
D(0, xe),
|
|
172
|
+
D(1, it),
|
|
173
|
+
D(2, M(et)),
|
|
174
|
+
D(3, M(Ie)),
|
|
175
|
+
D(4, M(H)),
|
|
176
|
+
D(5, _e)
|
|
177
|
+
], C);
|
|
178
|
+
function Ot(e) {
|
|
179
179
|
return (t) => {
|
|
180
|
-
const
|
|
180
|
+
const r = qe.chatAtABC(t);
|
|
181
181
|
switch (e.getCurrentLocale()) {
|
|
182
|
-
case
|
|
183
|
-
return `"${
|
|
184
|
-
case
|
|
185
|
-
return `Column "${
|
|
182
|
+
case me.ZH_CN:
|
|
183
|
+
return `"${r}"列`;
|
|
184
|
+
case me.EN_US:
|
|
185
|
+
return `Column "${r}"`;
|
|
186
186
|
default:
|
|
187
|
-
return `Column "${
|
|
187
|
+
return `Column "${r}"`;
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
const
|
|
191
|
+
const J = {
|
|
192
192
|
id: "sheet.command.sort-range-asc",
|
|
193
|
-
type:
|
|
194
|
-
handler: async (e) => await e.get(
|
|
195
|
-
},
|
|
193
|
+
type: I.COMMAND,
|
|
194
|
+
handler: async (e) => await e.get(C).triggerSortDirectly(!0, !1)
|
|
195
|
+
}, Q = {
|
|
196
196
|
id: "sheet.command.sort-range-asc-ext",
|
|
197
|
-
type:
|
|
198
|
-
handler: async (e) => await e.get(
|
|
199
|
-
},
|
|
197
|
+
type: I.COMMAND,
|
|
198
|
+
handler: async (e) => await e.get(C).triggerSortDirectly(!0, !0)
|
|
199
|
+
}, ee = {
|
|
200
200
|
id: "sheet.command.sort-range-desc",
|
|
201
|
-
type:
|
|
202
|
-
handler: async (e) => await e.get(
|
|
203
|
-
},
|
|
201
|
+
type: I.COMMAND,
|
|
202
|
+
handler: async (e) => await e.get(C).triggerSortDirectly(!1, !1)
|
|
203
|
+
}, te = {
|
|
204
204
|
id: "sheet.command.sort-range-desc-ext",
|
|
205
|
-
type:
|
|
206
|
-
handler: async (e) => await e.get(
|
|
207
|
-
},
|
|
205
|
+
type: I.COMMAND,
|
|
206
|
+
handler: async (e) => await e.get(C).triggerSortDirectly(!1, !0)
|
|
207
|
+
}, re = {
|
|
208
208
|
id: "sheet.command.sort-range-custom",
|
|
209
|
-
type:
|
|
210
|
-
handler: async (e) => await e.get(
|
|
211
|
-
},
|
|
209
|
+
type: I.COMMAND,
|
|
210
|
+
handler: async (e) => await e.get(C).triggerSortCustomize()
|
|
211
|
+
}, ne = {
|
|
212
212
|
id: "sheet.command.sort-range-asc-ctx",
|
|
213
|
-
type:
|
|
214
|
-
handler: async (e) => await e.get(
|
|
215
|
-
},
|
|
213
|
+
type: I.COMMAND,
|
|
214
|
+
handler: async (e) => await e.get(C).triggerSortDirectly(!0, !1)
|
|
215
|
+
}, oe = {
|
|
216
216
|
id: "sheet.command.sort-range-asc-ext-ctx",
|
|
217
|
-
type:
|
|
218
|
-
handler: async (e) => await e.get(
|
|
217
|
+
type: I.COMMAND,
|
|
218
|
+
handler: async (e) => await e.get(C).triggerSortDirectly(!0, !0)
|
|
219
219
|
}, se = {
|
|
220
220
|
id: "sheet.command.sort-range-desc-ctx",
|
|
221
|
-
type:
|
|
222
|
-
handler: async (e) => await e.get(
|
|
223
|
-
},
|
|
221
|
+
type: I.COMMAND,
|
|
222
|
+
handler: async (e) => await e.get(C).triggerSortDirectly(!1, !1)
|
|
223
|
+
}, ie = {
|
|
224
224
|
id: "sheet.command.sort-range-desc-ext-ctx",
|
|
225
|
-
type:
|
|
226
|
-
handler: async (e) => await e.get(
|
|
227
|
-
},
|
|
225
|
+
type: I.COMMAND,
|
|
226
|
+
handler: async (e) => await e.get(C).triggerSortDirectly(!1, !0)
|
|
227
|
+
}, ce = {
|
|
228
228
|
id: "sheet.command.sort-range-custom-ctx",
|
|
229
|
-
type:
|
|
230
|
-
handler: async (e) => await e.get(
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
return be(n, "".concat(r), { defIds: n.defIds, idSuffix: l.current }, f({ ref: t, className: a }, s), i);
|
|
250
|
-
});
|
|
251
|
-
function be(e, t, n, r, o) {
|
|
252
|
-
return _(e.tag, f(f({ key: t }, Dt(e, n, o)), r), (Ht(e, n).children || []).map(function(i, s) {
|
|
253
|
-
return be(i, "".concat(t, "-").concat(e.tag, "-").concat(s), n, void 0, o);
|
|
254
|
-
}));
|
|
229
|
+
type: I.COMMAND,
|
|
230
|
+
handler: async (e) => await e.get(C).triggerSortCustomize()
|
|
231
|
+
}, Nt = "sheets-sort-ui.config", fe = {};
|
|
232
|
+
function x({ ref: e, ...t }) {
|
|
233
|
+
const { icon: r, id: n, className: o, extend: s, ...i } = t, a = `univerjs-icon univerjs-icon-${n} ${o || ""}`.trim(), l = Ee(`_${Dt()}`);
|
|
234
|
+
return be(r, `${n}`, {
|
|
235
|
+
defIds: r.defIds,
|
|
236
|
+
idSuffix: l.current
|
|
237
|
+
}, {
|
|
238
|
+
ref: e,
|
|
239
|
+
className: a,
|
|
240
|
+
...i
|
|
241
|
+
}, s);
|
|
242
|
+
}
|
|
243
|
+
function be(e, t, r, n, o) {
|
|
244
|
+
return p(e.tag, {
|
|
245
|
+
key: t,
|
|
246
|
+
...Lt(e, r, o),
|
|
247
|
+
...n
|
|
248
|
+
}, (kt(e, r).children || []).map((s, i) => be(s, `${t}-${e.tag}-${i}`, r, void 0, o)));
|
|
255
249
|
}
|
|
256
|
-
function
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
s === "mask" && typeof a == "string" && (r[s] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
|
|
250
|
+
function Lt(e, t, r) {
|
|
251
|
+
const n = { ...e.attrs };
|
|
252
|
+
r != null && r.colorChannel1 && n.fill === "colorChannel1" && (n.fill = r.colorChannel1), e.tag === "mask" && n.id && (n.id = n.id + t.idSuffix), Object.entries(n).forEach(([s, i]) => {
|
|
253
|
+
s === "mask" && typeof i == "string" && (n[s] = i.replace(/url\(#(.*)\)/, `url(#$1${t.idSuffix})`));
|
|
261
254
|
});
|
|
262
|
-
|
|
263
|
-
return !o || o.length === 0 || (e.tag === "use" &&
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
})), r;
|
|
255
|
+
const { defIds: o } = t;
|
|
256
|
+
return !o || o.length === 0 || (e.tag === "use" && n["xlink:href"] && (n["xlink:href"] = n["xlink:href"] + t.idSuffix), Object.entries(n).forEach(([s, i]) => {
|
|
257
|
+
typeof i == "string" && (n[s] = i.replace(/url\(#(.*)\)/, `url(#$1${t.idSuffix})`));
|
|
258
|
+
})), n;
|
|
267
259
|
}
|
|
268
|
-
function
|
|
269
|
-
var n
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
260
|
+
function kt(e, t) {
|
|
261
|
+
var n;
|
|
262
|
+
const { defIds: r } = t;
|
|
263
|
+
return !r || r.length === 0 ? e : e.tag === "defs" && ((n = e.children) != null && n.length) ? {
|
|
264
|
+
...e,
|
|
265
|
+
children: e.children.map((o) => typeof o.attrs.id == "string" && r && r.includes(o.attrs.id) ? {
|
|
266
|
+
...o,
|
|
267
|
+
attrs: {
|
|
268
|
+
...o.attrs,
|
|
269
|
+
id: o.attrs.id + t.idSuffix
|
|
270
|
+
}
|
|
271
|
+
} : o)
|
|
272
|
+
} : e;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Dt() {
|
|
275
275
|
return Math.random().toString(36).substring(2, 8);
|
|
276
276
|
}
|
|
277
277
|
x.displayName = "UniverIcon";
|
|
278
|
-
|
|
279
|
-
|
|
278
|
+
const $t = {
|
|
279
|
+
tag: "svg",
|
|
280
|
+
attrs: {
|
|
281
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
282
|
+
fill: "none",
|
|
283
|
+
viewBox: "0 0 16 16",
|
|
284
|
+
width: "1em",
|
|
285
|
+
height: "1em"
|
|
286
|
+
},
|
|
287
|
+
children: [
|
|
288
|
+
{
|
|
289
|
+
tag: "path",
|
|
290
|
+
attrs: {
|
|
291
|
+
fill: "currentColor",
|
|
292
|
+
d: "M12.4208 14.4667C12.4208 14.798 12.1522 15.0667 11.8208 15.0667C11.4895 15.0667 11.2208 14.798 11.2208 14.4667V2.98193L9.97861 4.22417C9.7443 4.45848 9.3644 4.45848 9.13008 4.22417C8.89577 3.98985 8.89577 3.60995 9.13008 3.37564L11.3967 1.10897C11.6311 0.874657 12.011 0.874657 12.2453 1.10897L14.5119 3.37564C14.7463 3.60995 14.7463 3.98985 14.5119 4.22417C14.2776 4.45848 13.8977 4.45848 13.6634 4.22417L12.4208 2.9816V14.4667Z"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
tag: "path",
|
|
297
|
+
attrs: {
|
|
298
|
+
fill: "currentColor",
|
|
299
|
+
d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983C1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022C7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916C7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212C1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967Z",
|
|
300
|
+
fillRule: "evenodd",
|
|
301
|
+
clipRule: "evenodd"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
tag: "path",
|
|
306
|
+
attrs: {
|
|
307
|
+
fill: "currentColor",
|
|
308
|
+
d: "M5.1846 1.86439C4.8641 0.989866 3.62725 0.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655C2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055L3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655C7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439ZM4.98996 4.82056L4.24567 2.78971L3.50138 4.82056H4.98996Z",
|
|
309
|
+
fillRule: "evenodd",
|
|
310
|
+
clipRule: "evenodd"
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
}, ae = w(function(t, r) {
|
|
315
|
+
return p(x, Object.assign({}, t, {
|
|
280
316
|
id: "ascending-icon",
|
|
281
|
-
ref:
|
|
282
|
-
icon:
|
|
317
|
+
ref: r,
|
|
318
|
+
icon: $t
|
|
283
319
|
}));
|
|
284
320
|
});
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
321
|
+
ae.displayName = "AscendingIcon";
|
|
322
|
+
const Ht = {
|
|
323
|
+
tag: "svg",
|
|
324
|
+
attrs: {
|
|
325
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
326
|
+
fill: "none",
|
|
327
|
+
viewBox: "0 0 16 16",
|
|
328
|
+
width: "1em",
|
|
329
|
+
height: "1em"
|
|
330
|
+
},
|
|
331
|
+
children: [{
|
|
332
|
+
tag: "path",
|
|
333
|
+
attrs: {
|
|
334
|
+
fill: "currentColor",
|
|
335
|
+
d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z",
|
|
336
|
+
fillRule: "evenodd",
|
|
337
|
+
clipRule: "evenodd"
|
|
338
|
+
}
|
|
339
|
+
}]
|
|
340
|
+
}, Oe = w(function(t, r) {
|
|
341
|
+
return p(x, Object.assign({}, t, {
|
|
288
342
|
id: "check-mark-icon",
|
|
289
|
-
ref:
|
|
290
|
-
icon:
|
|
343
|
+
ref: r,
|
|
344
|
+
icon: Ht
|
|
291
345
|
}));
|
|
292
346
|
});
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
347
|
+
Oe.displayName = "CheckMarkIcon";
|
|
348
|
+
const At = {
|
|
349
|
+
tag: "svg",
|
|
350
|
+
attrs: {
|
|
351
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
352
|
+
fill: "none",
|
|
353
|
+
viewBox: "0 0 16 16",
|
|
354
|
+
width: "1em",
|
|
355
|
+
height: "1em"
|
|
356
|
+
},
|
|
357
|
+
children: [
|
|
358
|
+
{
|
|
359
|
+
tag: "path",
|
|
360
|
+
attrs: {
|
|
361
|
+
fill: "currentColor",
|
|
362
|
+
d: "M9.77445 9.24306L9.77457 11.9573C9.77458 12.2887 9.50597 12.5574 9.17459 12.5574C8.84322 12.5574 8.57458 12.2888 8.57457 11.9574L8.57439 7.79509C8.57438 7.46372 8.84299 7.19508 9.17436 7.19507C9.3281 7.19493 9.48196 7.25351 9.59925 7.3708L11.3465 9.11808C11.5808 9.3524 11.5808 9.7323 11.3465 9.96661C11.1122 10.2009 10.7323 10.2009 10.498 9.96661L9.77445 9.24306Z"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
tag: "path",
|
|
367
|
+
attrs: {
|
|
368
|
+
fill: "currentColor",
|
|
369
|
+
d: "M6.22584 10.5094L6.22572 7.79514C6.22571 7.46377 6.49433 7.19513 6.8257 7.19512C7.15707 7.1951 7.42571 7.46372 7.42572 7.79509L7.4259 11.9574C7.42592 12.2888 7.1573 12.5574 6.82593 12.5574C6.67228 12.5575 6.51828 12.4989 6.40104 12.3817L4.65376 10.6344C4.41945 10.4001 4.41945 10.0202 4.65376 9.78588C4.88808 9.55156 5.26798 9.55156 5.50229 9.78588L6.22584 10.5094Z"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
tag: "path",
|
|
374
|
+
attrs: {
|
|
375
|
+
fill: "currentColor",
|
|
376
|
+
d: "M1.14014 3.73989C1.14014 2.30396 2.3042 1.13989 3.74014 1.13989H12.2601C13.6961 1.13989 14.8601 2.30395 14.8601 3.73989V12.2599C14.8601 13.6958 13.6961 14.8599 12.2601 14.8599H3.74014C2.3042 14.8599 1.14014 13.6958 1.14014 12.2599V3.73989ZM2.34014 5.86724V12.2599C2.34014 13.0331 2.96694 13.6599 3.74014 13.6599H12.2601C13.0333 13.6599 13.6601 13.0331 13.6601 12.2599V5.86724H2.34014ZM13.6601 4.66724H2.34014V3.73989C2.34014 2.9667 2.96694 2.33989 3.74014 2.33989H12.2601C13.0333 2.33989 13.6601 2.96669 13.6601 3.73989V4.66724Z",
|
|
377
|
+
fillRule: "evenodd",
|
|
378
|
+
clipRule: "evenodd"
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
]
|
|
382
|
+
}, Ne = w(function(t, r) {
|
|
383
|
+
return p(x, Object.assign({}, t, {
|
|
296
384
|
id: "custom-sort-icon",
|
|
297
|
-
ref:
|
|
298
|
-
icon:
|
|
385
|
+
ref: r,
|
|
386
|
+
icon: At
|
|
299
387
|
}));
|
|
300
388
|
});
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
389
|
+
Ne.displayName = "CustomSortIcon";
|
|
390
|
+
const Ut = {
|
|
391
|
+
tag: "svg",
|
|
392
|
+
attrs: {
|
|
393
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
394
|
+
fill: "none",
|
|
395
|
+
viewBox: "0 0 16 16",
|
|
396
|
+
width: "1em",
|
|
397
|
+
height: "1em"
|
|
398
|
+
},
|
|
399
|
+
children: [
|
|
400
|
+
{
|
|
401
|
+
tag: "path",
|
|
402
|
+
attrs: {
|
|
403
|
+
fill: "currentColor",
|
|
404
|
+
d: "M5.3313 1.4667C5.3313 1.13533 5.59993 0.866699 5.9313 0.866699H10.069C10.4004 0.866699 10.669 1.13533 10.669 1.4667C10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667Z"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
tag: "path",
|
|
409
|
+
attrs: {
|
|
410
|
+
fill: "currentColor",
|
|
411
|
+
d: "M1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443C14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443Z"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
tag: "path",
|
|
416
|
+
attrs: {
|
|
417
|
+
fill: "currentColor",
|
|
418
|
+
d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V13.1332C3.15332 14.2377 4.04875 15.1332 5.15332 15.1332H10.8465C11.9511 15.1332 12.8465 14.2377 12.8465 13.1331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V13.1331C11.6465 13.575 11.2884 13.9331 10.8465 13.9331H5.15332C4.71149 13.9331 4.35332 13.575 4.35332 13.1332V6.82217Z",
|
|
419
|
+
fillRule: "evenodd",
|
|
420
|
+
clipRule: "evenodd"
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
]
|
|
424
|
+
}, Le = w(function(t, r) {
|
|
425
|
+
return p(x, Object.assign({}, t, {
|
|
304
426
|
id: "delete-empty-icon",
|
|
305
|
-
ref:
|
|
306
|
-
icon:
|
|
427
|
+
ref: r,
|
|
428
|
+
icon: Ut
|
|
307
429
|
}));
|
|
308
430
|
});
|
|
309
431
|
Le.displayName = "DeleteEmptyIcon";
|
|
310
|
-
|
|
311
|
-
|
|
432
|
+
const Pt = {
|
|
433
|
+
tag: "svg",
|
|
434
|
+
attrs: {
|
|
435
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
436
|
+
fill: "none",
|
|
437
|
+
viewBox: "0 0 16 16",
|
|
438
|
+
width: "1em",
|
|
439
|
+
height: "1em"
|
|
440
|
+
},
|
|
441
|
+
children: [
|
|
442
|
+
{
|
|
443
|
+
tag: "path",
|
|
444
|
+
attrs: {
|
|
445
|
+
fill: "currentColor",
|
|
446
|
+
d: "M12.4208 1.53335C12.4208 1.20198 12.1522 0.93335 11.8208 0.93335C11.4895 0.93335 11.2208 1.20198 11.2208 1.53335V13.0181L9.97861 11.7758C9.7443 11.5415 9.3644 11.5415 9.13008 11.7758C8.89577 12.0101 8.89577 12.39 9.13008 12.6244L11.3967 14.891C11.6311 15.1253 12.011 15.1253 12.2453 14.891L14.5119 12.6244C14.7463 12.39 14.7463 12.0101 14.5119 11.7758C14.2776 11.5415 13.8977 11.5415 13.6634 11.7758L12.4208 13.0184V1.53335Z"
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
tag: "path",
|
|
451
|
+
attrs: {
|
|
452
|
+
fill: "currentColor",
|
|
453
|
+
d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983C1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022C7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916C7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212C1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967Z",
|
|
454
|
+
fillRule: "evenodd",
|
|
455
|
+
clipRule: "evenodd"
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
tag: "path",
|
|
460
|
+
attrs: {
|
|
461
|
+
fill: "currentColor",
|
|
462
|
+
d: "M5.1846 1.86439C4.8641 0.989866 3.62725 0.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655C2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055L3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655C7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439ZM4.98996 4.82056L4.24567 2.78971L3.50138 4.82056H4.98996Z",
|
|
463
|
+
fillRule: "evenodd",
|
|
464
|
+
clipRule: "evenodd"
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
]
|
|
468
|
+
}, le = w(function(t, r) {
|
|
469
|
+
return p(x, Object.assign({}, t, {
|
|
312
470
|
id: "descending-icon",
|
|
313
|
-
ref:
|
|
314
|
-
icon:
|
|
471
|
+
ref: r,
|
|
472
|
+
icon: Pt
|
|
315
473
|
}));
|
|
316
474
|
});
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
475
|
+
le.displayName = "DescendingIcon";
|
|
476
|
+
const Zt = {
|
|
477
|
+
tag: "svg",
|
|
478
|
+
attrs: {
|
|
479
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
480
|
+
fill: "none",
|
|
481
|
+
viewBox: "0 0 16 16",
|
|
482
|
+
width: "1em",
|
|
483
|
+
height: "1em"
|
|
484
|
+
},
|
|
485
|
+
children: [{
|
|
486
|
+
tag: "path",
|
|
487
|
+
attrs: {
|
|
488
|
+
fill: "currentColor",
|
|
489
|
+
d: "M1.9064 3.20024C1.57503 3.20024 1.3064 2.93161 1.3064 2.60024C1.3064 2.26887 1.57503 2.00024 1.9064 2.00024H4.57306C4.90443 2.00024 5.17306 2.26887 5.17306 2.60024C5.17306 2.93161 4.90443 3.20024 4.57306 3.20024H1.9064ZM1.3064 6.19985C1.3064 6.53122 1.57503 6.79985 1.9064 6.79985H5.9064C6.23777 6.79985 6.5064 6.53122 6.5064 6.19985C6.5064 5.86848 6.23777 5.59985 5.9064 5.59985H1.9064C1.57503 5.59985 1.3064 5.86848 1.3064 6.19985ZM1.9064 10.3997C1.57503 10.3997 1.3064 10.1311 1.3064 9.79971C1.3064 9.46834 1.57503 9.19971 1.9064 9.19971H7.23973C7.5711 9.19971 7.83973 9.46834 7.83973 9.79971C7.83973 10.1311 7.5711 10.3997 7.23973 10.3997H1.9064ZM1.9064 13.9996C1.57503 13.9996 1.3064 13.7309 1.3064 13.3996C1.3064 13.0682 1.57503 12.7996 1.9064 12.7996H8.57306C8.90443 12.7996 9.17306 13.0682 9.17306 13.3996C9.17306 13.7309 8.90443 13.9996 8.57306 13.9996H1.9064Z",
|
|
490
|
+
fillRule: "evenodd",
|
|
491
|
+
clipRule: "evenodd"
|
|
492
|
+
}
|
|
493
|
+
}, {
|
|
494
|
+
tag: "path",
|
|
495
|
+
attrs: {
|
|
496
|
+
fill: "currentColor",
|
|
497
|
+
d: "M12.4267 14.2667C12.4267 14.5981 12.1581 14.8667 11.8267 14.8667C11.4953 14.8667 11.2267 14.5981 11.2267 14.2667V3.18198L9.98447 4.42422C9.75015 4.65853 9.37026 4.65853 9.13594 4.42422C8.90163 4.1899 8.90163 3.81 9.13594 3.57569L11.4026 1.30902C11.6369 1.07471 12.0168 1.07471 12.2511 1.30902L14.5178 3.57569C14.7521 3.81 14.7521 4.1899 14.5178 4.42422C14.2835 4.65853 13.9036 4.65853 13.6693 4.42422L12.4267 3.18165V14.2667Z"
|
|
498
|
+
}
|
|
499
|
+
}]
|
|
500
|
+
}, ke = w(function(t, r) {
|
|
501
|
+
return p(x, Object.assign({}, t, {
|
|
320
502
|
id: "expand-ascending-icon",
|
|
321
|
-
ref:
|
|
322
|
-
icon:
|
|
503
|
+
ref: r,
|
|
504
|
+
icon: Zt
|
|
323
505
|
}));
|
|
324
506
|
});
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
507
|
+
ke.displayName = "ExpandAscendingIcon";
|
|
508
|
+
const jt = {
|
|
509
|
+
tag: "svg",
|
|
510
|
+
attrs: {
|
|
511
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
512
|
+
fill: "none",
|
|
513
|
+
viewBox: "0 0 16 16",
|
|
514
|
+
width: "1em",
|
|
515
|
+
height: "1em"
|
|
516
|
+
},
|
|
517
|
+
children: [{
|
|
518
|
+
tag: "path",
|
|
519
|
+
attrs: {
|
|
520
|
+
fill: "currentColor",
|
|
521
|
+
d: "M1.9064 12.7998C1.57503 12.7998 1.3064 13.0684 1.3064 13.3998C1.3064 13.7311 1.57503 13.9998 1.9064 13.9998H4.57306C4.90443 13.9998 5.17306 13.7311 5.17306 13.3998C5.17306 13.0684 4.90443 12.7998 4.57306 12.7998H1.9064ZM1.3064 9.80015C1.3064 9.46878 1.57503 9.20015 1.9064 9.20015H5.9064C6.23777 9.20015 6.5064 9.46878 6.5064 9.80015C6.5064 10.1315 6.23777 10.4001 5.9064 10.4001H1.9064C1.57503 10.4001 1.3064 10.1315 1.3064 9.80015ZM1.9064 5.60029C1.57503 5.60029 1.3064 5.86892 1.3064 6.20029C1.3064 6.53166 1.57503 6.80029 1.9064 6.80029H7.23973C7.5711 6.80029 7.83973 6.53166 7.83973 6.20029C7.83973 5.86892 7.5711 5.60029 7.23973 5.60029H1.9064ZM1.9064 2.00044C1.57503 2.00044 1.3064 2.26907 1.3064 2.60044C1.3064 2.93181 1.57503 3.20044 1.9064 3.20044H8.57306C8.90443 3.20044 9.17306 2.93181 9.17306 2.60044C9.17306 2.26907 8.90443 2.00044 8.57306 2.00044H1.9064Z",
|
|
522
|
+
fillRule: "evenodd",
|
|
523
|
+
clipRule: "evenodd"
|
|
524
|
+
}
|
|
525
|
+
}, {
|
|
526
|
+
tag: "path",
|
|
527
|
+
attrs: {
|
|
528
|
+
fill: "currentColor",
|
|
529
|
+
d: "M12.4267 1.7333C12.4267 1.40193 12.1581 1.1333 11.8267 1.1333C11.4953 1.1333 11.2267 1.40193 11.2267 1.7333V12.818L9.98447 11.5758C9.75015 11.3415 9.37026 11.3415 9.13594 11.5758C8.90163 11.8101 8.90163 12.19 9.13594 12.4243L11.4026 14.691C11.6369 14.9253 12.0168 14.9253 12.2511 14.691L14.5178 12.4243C14.7521 12.19 14.7521 11.8101 14.5178 11.5758C14.2835 11.3415 13.9036 11.3415 13.6693 11.5758L12.4267 12.8183V1.7333Z"
|
|
530
|
+
}
|
|
531
|
+
}]
|
|
532
|
+
}, De = w(function(t, r) {
|
|
533
|
+
return p(x, Object.assign({}, t, {
|
|
328
534
|
id: "expand-descending-icon",
|
|
329
|
-
ref:
|
|
330
|
-
icon:
|
|
535
|
+
ref: r,
|
|
536
|
+
icon: jt
|
|
331
537
|
}));
|
|
332
538
|
});
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
539
|
+
De.displayName = "ExpandDescendingIcon";
|
|
540
|
+
const Bt = {
|
|
541
|
+
tag: "svg",
|
|
542
|
+
attrs: {
|
|
543
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
544
|
+
fill: "none",
|
|
545
|
+
viewBox: "0 0 16 16",
|
|
546
|
+
width: "1em",
|
|
547
|
+
height: "1em"
|
|
548
|
+
},
|
|
549
|
+
children: [{
|
|
550
|
+
tag: "path",
|
|
551
|
+
attrs: {
|
|
552
|
+
fill: "currentColor",
|
|
553
|
+
d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z"
|
|
554
|
+
}
|
|
555
|
+
}]
|
|
556
|
+
}, K = w(function(t, r) {
|
|
557
|
+
return p(x, Object.assign({}, t, {
|
|
336
558
|
id: "increase-icon",
|
|
337
|
-
ref:
|
|
338
|
-
icon:
|
|
559
|
+
ref: r,
|
|
560
|
+
icon: Bt
|
|
339
561
|
}));
|
|
340
562
|
});
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
563
|
+
K.displayName = "IncreaseIcon";
|
|
564
|
+
const Ft = {
|
|
565
|
+
tag: "svg",
|
|
566
|
+
attrs: {
|
|
567
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
568
|
+
fill: "none",
|
|
569
|
+
viewBox: "0 0 16 16",
|
|
570
|
+
width: "1em",
|
|
571
|
+
height: "1em"
|
|
572
|
+
},
|
|
573
|
+
children: [{
|
|
574
|
+
tag: "path",
|
|
575
|
+
attrs: {
|
|
576
|
+
fill: "currentColor",
|
|
577
|
+
d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z",
|
|
578
|
+
fillRule: "evenodd",
|
|
579
|
+
clipRule: "evenodd"
|
|
580
|
+
}
|
|
581
|
+
}]
|
|
582
|
+
}, $e = w(function(t, r) {
|
|
583
|
+
return p(x, Object.assign({}, t, {
|
|
344
584
|
id: "more-down-icon",
|
|
345
|
-
ref:
|
|
346
|
-
icon:
|
|
585
|
+
ref: r,
|
|
586
|
+
icon: Ft
|
|
347
587
|
}));
|
|
348
588
|
});
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
589
|
+
$e.displayName = "MoreDownIcon";
|
|
590
|
+
const Vt = {
|
|
591
|
+
tag: "svg",
|
|
592
|
+
attrs: {
|
|
593
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
594
|
+
fill: "none",
|
|
595
|
+
viewBox: "0 0 16 16",
|
|
596
|
+
width: "1em",
|
|
597
|
+
height: "1em"
|
|
598
|
+
},
|
|
599
|
+
children: [
|
|
600
|
+
{
|
|
601
|
+
tag: "path",
|
|
602
|
+
attrs: {
|
|
603
|
+
fill: "currentColor",
|
|
604
|
+
d: "M6 5C6.55228 5 7 4.55228 7 4C7 3.44772 6.55228 3 6 3C5.44772 3 5 3.44772 5 4C5 4.55228 5.44772 5 6 5Z"
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
tag: "path",
|
|
609
|
+
attrs: {
|
|
610
|
+
fill: "currentColor",
|
|
611
|
+
d: "M6 9C6.55228 9 7 8.55229 7 8C7 7.44772 6.55228 7 6 7C5.44772 7 5 7.44772 5 8C5 8.55229 5.44772 9 6 9Z"
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
tag: "path",
|
|
616
|
+
attrs: {
|
|
617
|
+
fill: "currentColor",
|
|
618
|
+
d: "M7 12C7 12.5523 6.55228 13 6 13C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11C6.55228 11 7 11.4477 7 12Z"
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
tag: "path",
|
|
623
|
+
attrs: {
|
|
624
|
+
fill: "currentColor",
|
|
625
|
+
d: "M10 5C10.5523 5 11 4.55228 11 4C11 3.44772 10.5523 3 10 3C9.44771 3 9 3.44772 9 4C9 4.55228 9.44771 5 10 5Z"
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
tag: "path",
|
|
630
|
+
attrs: {
|
|
631
|
+
fill: "currentColor",
|
|
632
|
+
d: "M11 8C11 8.55229 10.5523 9 10 9C9.44771 9 9 8.55229 9 8C9 7.44772 9.44771 7 10 7C10.5523 7 11 7.44772 11 8Z"
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
tag: "path",
|
|
637
|
+
attrs: {
|
|
638
|
+
fill: "currentColor",
|
|
639
|
+
d: "M10 13C10.5523 13 11 12.5523 11 12C11 11.4477 10.5523 11 10 11C9.44771 11 9 11.4477 9 12C9 12.5523 9.44771 13 10 13Z"
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
]
|
|
643
|
+
}, He = w(function(t, r) {
|
|
644
|
+
return p(x, Object.assign({}, t, {
|
|
352
645
|
id: "sequence-icon",
|
|
353
|
-
ref:
|
|
354
|
-
icon:
|
|
646
|
+
ref: r,
|
|
647
|
+
icon: Vt
|
|
355
648
|
}));
|
|
356
649
|
});
|
|
357
|
-
|
|
358
|
-
function
|
|
359
|
-
const e =
|
|
360
|
-
return !t || !t.location ? null : /* @__PURE__ */ c(
|
|
650
|
+
He.displayName = "SequenceIcon";
|
|
651
|
+
function Gt() {
|
|
652
|
+
const e = R(C), t = ct(e.customSortState$);
|
|
653
|
+
return !t || !t.location ? null : /* @__PURE__ */ c(Wt, { state: t });
|
|
361
654
|
}
|
|
362
|
-
function
|
|
363
|
-
const t =
|
|
364
|
-
{ type:
|
|
365
|
-
]),
|
|
366
|
-
const
|
|
367
|
-
|
|
368
|
-
}, [
|
|
369
|
-
|
|
370
|
-
const d = [...
|
|
371
|
-
|
|
655
|
+
function Wt({ state: e }) {
|
|
656
|
+
const t = R(Ie), r = R(H), n = R(C), [o, s] = P(!1), [i, a] = P(0), l = Ee(null), { range: u, unitId: _, subUnitId: v } = e.location, E = n.getTitles(o), [m, A] = P([
|
|
657
|
+
{ type: $.ASC, colIndex: u.startColumn }
|
|
658
|
+
]), j = T((d, S) => {
|
|
659
|
+
const U = [...m];
|
|
660
|
+
S === null ? U.splice(d, 1) : U[d] = S, A(U);
|
|
661
|
+
}, [m]), h = T(
|
|
662
|
+
ze(() => {
|
|
663
|
+
const d = [...m], S = zt(u, m);
|
|
664
|
+
S !== null && (d.push({ type: $.ASC, colIndex: S }), A(d));
|
|
372
665
|
}, 200),
|
|
373
|
-
[
|
|
374
|
-
),
|
|
375
|
-
t.applySort({ range: u, orderRules: d, hasTitle:
|
|
376
|
-
}, [t,
|
|
377
|
-
|
|
378
|
-
}, [
|
|
379
|
-
|
|
380
|
-
}, [
|
|
381
|
-
|
|
382
|
-
l.current &&
|
|
383
|
-
}, [
|
|
384
|
-
const
|
|
666
|
+
[m, u]
|
|
667
|
+
), z = T((d, S) => {
|
|
668
|
+
t.applySort({ range: u, orderRules: d, hasTitle: S }), n.closeCustomSortPanel();
|
|
669
|
+
}, [t, n, u]), je = T(() => {
|
|
670
|
+
n.closeCustomSortPanel();
|
|
671
|
+
}, [n]), Be = T((d) => {
|
|
672
|
+
s(d), d ? n.setSelection(_, v, { ...u, startRow: u.startRow + 1 }) : n.setSelection(_, v, u);
|
|
673
|
+
}, [n, u, v, _]);
|
|
674
|
+
Te(() => {
|
|
675
|
+
l.current && m.length > 5 && (l.current.scrollTop = l.current.scrollHeight);
|
|
676
|
+
}, [m]);
|
|
677
|
+
const Fe = m.length < E.length, Ce = m.map((d) => ({ ...d, id: `${d.colIndex}` }));
|
|
385
678
|
return /* @__PURE__ */ g("div", { children: [
|
|
386
679
|
/* @__PURE__ */ g("div", { onMouseDown: (d) => {
|
|
387
680
|
d.stopPropagation();
|
|
388
681
|
}, children: [
|
|
389
682
|
/* @__PURE__ */ g("div", { className: "univer-flex univer-items-center univer-justify-between", children: [
|
|
390
|
-
/* @__PURE__ */ c(
|
|
391
|
-
|
|
683
|
+
/* @__PURE__ */ c(pt, { checked: o, onChange: (d) => Be(!!d), children: r.t("sheets-sort.dialog.first-row-check") }),
|
|
684
|
+
Fe ? /* @__PURE__ */ g(
|
|
392
685
|
"div",
|
|
393
686
|
{
|
|
394
687
|
className: "univer-flex univer-cursor-pointer univer-select-none univer-items-center univer-text-base",
|
|
395
688
|
onClick: h,
|
|
396
689
|
children: [
|
|
397
|
-
/* @__PURE__ */ c(
|
|
398
|
-
/* @__PURE__ */ c("span", { className: "univer-ml-1.5", children:
|
|
690
|
+
/* @__PURE__ */ c(K, {}),
|
|
691
|
+
/* @__PURE__ */ c("span", { className: "univer-ml-1.5", children: r.t("sheets-sort.dialog.add-condition") })
|
|
399
692
|
]
|
|
400
693
|
}
|
|
401
694
|
) : /* @__PURE__ */ g(
|
|
@@ -403,8 +696,8 @@ function Yt({ state: e }) {
|
|
|
403
696
|
{
|
|
404
697
|
className: "univer-flex univer-cursor-pointer univer-select-none univer-items-center univer-text-base univer-text-primary-500 disabled:univer-cursor-not-allowed disabled:univer-divide-opacity-30 disabled:univer-text-gray-800",
|
|
405
698
|
children: [
|
|
406
|
-
/* @__PURE__ */ c(
|
|
407
|
-
/* @__PURE__ */ c("span", { className: "univer-ml-1.5 univer-text-xs", children:
|
|
699
|
+
/* @__PURE__ */ c(K, {}),
|
|
700
|
+
/* @__PURE__ */ c("span", { className: "univer-ml-1.5 univer-text-xs", children: r.t("sheets-sort.dialog.add-condition") })
|
|
408
701
|
]
|
|
409
702
|
}
|
|
410
703
|
)
|
|
@@ -413,27 +706,27 @@ function Yt({ state: e }) {
|
|
|
413
706
|
"div",
|
|
414
707
|
{
|
|
415
708
|
ref: l,
|
|
416
|
-
className:
|
|
709
|
+
className: X("univer-max-h-[310px] univer-overflow-y-auto univer-overflow-x-hidden", Re),
|
|
417
710
|
onScroll: (d) => {
|
|
418
|
-
const
|
|
419
|
-
a(
|
|
711
|
+
const S = d.currentTarget.scrollTop;
|
|
712
|
+
a(S);
|
|
420
713
|
},
|
|
421
714
|
children: /* @__PURE__ */ c(
|
|
422
|
-
|
|
715
|
+
xt,
|
|
423
716
|
{
|
|
424
717
|
className: "[&_.react-grid-item]:univer-transition-none [&_.react-grid-placeholder]:univer-rounded [&_.react-grid-placeholder]:!univer-bg-gray-200",
|
|
425
|
-
list:
|
|
718
|
+
list: Ce,
|
|
426
719
|
onListChange: A,
|
|
427
720
|
idKey: "id",
|
|
428
721
|
draggableHandle: "[data-u-comp=sort-panel-item-handler]",
|
|
429
722
|
itemRender: (d) => /* @__PURE__ */ c(
|
|
430
723
|
qt,
|
|
431
724
|
{
|
|
432
|
-
titles:
|
|
433
|
-
list:
|
|
725
|
+
titles: E,
|
|
726
|
+
list: Ce,
|
|
434
727
|
item: d,
|
|
435
|
-
onChange: (
|
|
436
|
-
scrollPosition:
|
|
728
|
+
onChange: (S, U) => j(U, S),
|
|
729
|
+
scrollPosition: i
|
|
437
730
|
}
|
|
438
731
|
),
|
|
439
732
|
rowHeight: 32,
|
|
@@ -445,36 +738,36 @@ function Yt({ state: e }) {
|
|
|
445
738
|
] }),
|
|
446
739
|
/* @__PURE__ */ g("div", { className: "univer-mt-5 univer-flex univer-justify-end", children: [
|
|
447
740
|
/* @__PURE__ */ c(
|
|
448
|
-
|
|
741
|
+
V,
|
|
449
742
|
{
|
|
450
743
|
className: "univer-ml-3",
|
|
451
|
-
onClick: () =>
|
|
452
|
-
children:
|
|
744
|
+
onClick: () => je(),
|
|
745
|
+
children: r.t("sheets-sort.dialog.cancel")
|
|
453
746
|
}
|
|
454
747
|
),
|
|
455
748
|
/* @__PURE__ */ c(
|
|
456
|
-
|
|
749
|
+
V,
|
|
457
750
|
{
|
|
458
751
|
className: "univer-ml-3",
|
|
459
752
|
variant: "primary",
|
|
460
|
-
onClick: () =>
|
|
461
|
-
children:
|
|
753
|
+
onClick: () => z(m, o),
|
|
754
|
+
children: r.t("sheets-sort.dialog.confirm")
|
|
462
755
|
}
|
|
463
756
|
)
|
|
464
757
|
] })
|
|
465
758
|
] });
|
|
466
759
|
}
|
|
467
760
|
function qt(e) {
|
|
468
|
-
var
|
|
469
|
-
const { list: t, item:
|
|
470
|
-
o({ ...
|
|
471
|
-
}, [l,
|
|
472
|
-
|
|
761
|
+
var j;
|
|
762
|
+
const { list: t, item: r, titles: n, onChange: o, scrollPosition: s } = e, i = R(H), a = n.filter((h) => !t.some((z) => z.colIndex === h.index) || h.index === r.colIndex), l = t.findIndex((h) => h.colIndex === r.colIndex), u = T((h) => {
|
|
763
|
+
o({ ...r, colIndex: h.index }, l), v(!1);
|
|
764
|
+
}, [l, r, o]), [_, v] = P(!1), E = (h) => {
|
|
765
|
+
v(h);
|
|
473
766
|
};
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
}, [
|
|
477
|
-
const
|
|
767
|
+
Te(() => {
|
|
768
|
+
v(!1);
|
|
769
|
+
}, [s]);
|
|
770
|
+
const m = t.length > 1, A = (j = n.find((h) => h.index === r.colIndex)) == null ? void 0 : j.label;
|
|
478
771
|
return /* @__PURE__ */ g("div", { className: "univer-grid univer-grid-flow-col univer-grid-cols-2 univer-items-center univer-gap-2", children: [
|
|
479
772
|
/* @__PURE__ */ g("div", { className: "univer-flex univer-items-center", children: [
|
|
480
773
|
/* @__PURE__ */ c(
|
|
@@ -482,16 +775,16 @@ function qt(e) {
|
|
|
482
775
|
{
|
|
483
776
|
"data-u-comp": "sort-panel-item-handler",
|
|
484
777
|
className: "univer-flex univer-cursor-pointer univer-items-center univer-justify-center univer-text-base univer-text-gray-700",
|
|
485
|
-
children: /* @__PURE__ */ c(
|
|
778
|
+
children: /* @__PURE__ */ c(He, {})
|
|
486
779
|
}
|
|
487
780
|
),
|
|
488
781
|
/* @__PURE__ */ c(
|
|
489
|
-
|
|
782
|
+
_t,
|
|
490
783
|
{
|
|
491
784
|
overlay: /* @__PURE__ */ c(
|
|
492
785
|
"ul",
|
|
493
786
|
{
|
|
494
|
-
className:
|
|
787
|
+
className: X("univer-my-0 univer-box-border univer-grid univer-max-h-[310px] univer-w-[var(--radix-popper-anchor-width)] univer-items-center univer-gap-1 univer-overflow-y-auto univer-overflow-x-hidden univer-rounded-lg univer-border univer-bg-white univer-p-1 univer-text-base univer-shadow-lg", Re),
|
|
495
788
|
children: a.map((h) => /* @__PURE__ */ g(
|
|
496
789
|
"li",
|
|
497
790
|
{
|
|
@@ -499,19 +792,19 @@ function qt(e) {
|
|
|
499
792
|
className: "univer-relative univer-box-border univer-flex univer-h-7 univer-cursor-pointer univer-list-none univer-items-center univer-justify-between univer-rounded univer-px-2 univer-text-sm univer-transition-all hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700",
|
|
500
793
|
children: [
|
|
501
794
|
/* @__PURE__ */ c("span", { className: "univer-max-w-[220px] univer-truncate", children: h.label }),
|
|
502
|
-
/* @__PURE__ */ c("span", { children: h.index ===
|
|
795
|
+
/* @__PURE__ */ c("span", { children: h.index === r.colIndex && /* @__PURE__ */ c(Oe, {}) })
|
|
503
796
|
]
|
|
504
797
|
},
|
|
505
798
|
h.index
|
|
506
799
|
))
|
|
507
800
|
}
|
|
508
801
|
),
|
|
509
|
-
open:
|
|
510
|
-
onOpenChange:
|
|
802
|
+
open: _,
|
|
803
|
+
onOpenChange: E,
|
|
511
804
|
children: /* @__PURE__ */ g(
|
|
512
805
|
"div",
|
|
513
806
|
{
|
|
514
|
-
className:
|
|
807
|
+
className: X("univer-ml-2 univer-flex univer-w-full univer-items-center univer-justify-between univer-overflow-hidden univer-rounded-md univer-py-1.5 univer-text-sm univer-text-gray-900 dark:!univer-text-white"),
|
|
515
808
|
children: [
|
|
516
809
|
/* @__PURE__ */ c(
|
|
517
810
|
"span",
|
|
@@ -520,7 +813,7 @@ function qt(e) {
|
|
|
520
813
|
children: A
|
|
521
814
|
}
|
|
522
815
|
),
|
|
523
|
-
/* @__PURE__ */ c(
|
|
816
|
+
/* @__PURE__ */ c($e, {})
|
|
524
817
|
]
|
|
525
818
|
}
|
|
526
819
|
)
|
|
@@ -529,15 +822,15 @@ function qt(e) {
|
|
|
529
822
|
] }),
|
|
530
823
|
/* @__PURE__ */ g("div", { className: "univer-flex univer-items-center univer-justify-end univer-gap-2", children: [
|
|
531
824
|
/* @__PURE__ */ g(
|
|
532
|
-
|
|
825
|
+
Me,
|
|
533
826
|
{
|
|
534
|
-
value:
|
|
827
|
+
value: r.type,
|
|
535
828
|
onChange: (h) => {
|
|
536
|
-
o({ ...
|
|
829
|
+
o({ ...r, type: h }, l);
|
|
537
830
|
},
|
|
538
831
|
children: [
|
|
539
|
-
/* @__PURE__ */ c(
|
|
540
|
-
/* @__PURE__ */ c(
|
|
832
|
+
/* @__PURE__ */ c(F, { value: $.ASC, children: i.t("sheets-sort.general.sort-asc") }),
|
|
833
|
+
/* @__PURE__ */ c(F, { value: $.DESC, children: i.t("sheets-sort.general.sort-desc") })
|
|
541
834
|
]
|
|
542
835
|
}
|
|
543
836
|
),
|
|
@@ -546,328 +839,328 @@ function qt(e) {
|
|
|
546
839
|
{
|
|
547
840
|
className: "univer-flex univer-cursor-pointer univer-items-center univer-text-sm univer-transition-colors hover:univer-text-red-500",
|
|
548
841
|
onClick: () => o(null, l),
|
|
549
|
-
children: !
|
|
842
|
+
children: !m && /* @__PURE__ */ c(Le, {})
|
|
550
843
|
}
|
|
551
844
|
)
|
|
552
845
|
] })
|
|
553
846
|
] });
|
|
554
847
|
}
|
|
555
|
-
function
|
|
556
|
-
const { startColumn:
|
|
557
|
-
for (let
|
|
558
|
-
if (!o.has(
|
|
559
|
-
return
|
|
848
|
+
function zt(e, t) {
|
|
849
|
+
const { startColumn: r, endColumn: n } = e, o = new Set(t.map((s) => s == null ? void 0 : s.colIndex));
|
|
850
|
+
for (let s = r; s <= n; s++)
|
|
851
|
+
if (!o.has(s))
|
|
852
|
+
return s;
|
|
560
853
|
return null;
|
|
561
854
|
}
|
|
562
|
-
function
|
|
563
|
-
const { range: t, colIndex:
|
|
564
|
-
const { unitId: u, subUnitId:
|
|
565
|
-
if (t && u &&
|
|
566
|
-
const
|
|
567
|
-
o.triggerSortDirectly(l, !1, { unitId: u, subUnitId:
|
|
855
|
+
function Yt(e) {
|
|
856
|
+
const { range: t, colIndex: r, onClose: n } = e, o = R(C), s = R(xe), i = R(H), a = T((l) => {
|
|
857
|
+
const { unitId: u, subUnitId: _ } = nt(s) || {};
|
|
858
|
+
if (t && u && _) {
|
|
859
|
+
const v = { ...t, startRow: t.startRow + 1 };
|
|
860
|
+
o.triggerSortDirectly(l, !1, { unitId: u, subUnitId: _, range: v, colIndex: r });
|
|
568
861
|
} else
|
|
569
|
-
throw new Error(`Cannot find the target to sort. unitId: ${u}, subUnitId: ${
|
|
570
|
-
|
|
571
|
-
}, [t,
|
|
572
|
-
return /* @__PURE__ */ g(
|
|
573
|
-
/* @__PURE__ */ g(
|
|
574
|
-
/* @__PURE__ */ c(
|
|
575
|
-
|
|
862
|
+
throw new Error(`Cannot find the target to sort. unitId: ${u}, subUnitId: ${_}, range: ${t}, colIndex: ${r}`);
|
|
863
|
+
n();
|
|
864
|
+
}, [t, r, o, s, n]);
|
|
865
|
+
return /* @__PURE__ */ g(yt, { className: "univer-mb-3 univer-w-full univer-grid-cols-2", children: [
|
|
866
|
+
/* @__PURE__ */ g(V, { onClick: () => a(!0), children: [
|
|
867
|
+
/* @__PURE__ */ c(ae, {}),
|
|
868
|
+
i.t("sheets-sort.general.sort-asc")
|
|
576
869
|
] }),
|
|
577
|
-
/* @__PURE__ */ g(
|
|
578
|
-
/* @__PURE__ */ c(
|
|
579
|
-
|
|
870
|
+
/* @__PURE__ */ g(V, { onClick: () => a(!1), children: [
|
|
871
|
+
/* @__PURE__ */ c(le, {}),
|
|
872
|
+
i.t("sheets-sort.general.sort-desc")
|
|
580
873
|
] })
|
|
581
874
|
] });
|
|
582
875
|
}
|
|
583
|
-
const Ae = "sheet.menu.sheets-sort",
|
|
584
|
-
function
|
|
876
|
+
const Ae = "sheet.menu.sheets-sort", Ue = "sheet.menu.sheets-sort-ctx", Z = "AscendingIcon", de = "ExpandAscendingIcon", ue = "DescendingIcon", he = "ExpandDescendingIcon", ge = "CustomSortIcon";
|
|
877
|
+
function Xt(e) {
|
|
585
878
|
return {
|
|
586
879
|
id: Ae,
|
|
587
|
-
type:
|
|
880
|
+
type: f.SUBITEMS,
|
|
588
881
|
icon: Z,
|
|
589
882
|
tooltip: "sheets-sort.general.sort",
|
|
590
|
-
hidden$:
|
|
591
|
-
disabled$:
|
|
883
|
+
hidden$: we(e, q.UNIVER_SHEET),
|
|
884
|
+
disabled$: k(e, { workbookTypes: [L], worksheetTypes: [O, N], rangeTypes: [b] })
|
|
592
885
|
};
|
|
593
886
|
}
|
|
594
|
-
function
|
|
887
|
+
function Kt(e) {
|
|
595
888
|
return {
|
|
596
|
-
id:
|
|
889
|
+
id: J.id,
|
|
597
890
|
icon: Z,
|
|
598
891
|
title: "sheets-sort.general.sort-asc-cur",
|
|
599
|
-
type:
|
|
600
|
-
hidden$:
|
|
892
|
+
type: f.BUTTON,
|
|
893
|
+
hidden$: wt(e)
|
|
601
894
|
};
|
|
602
895
|
}
|
|
603
|
-
function
|
|
896
|
+
function Jt(e) {
|
|
604
897
|
return {
|
|
605
|
-
id:
|
|
898
|
+
id: Q.id,
|
|
606
899
|
title: "sheets-sort.general.sort-asc-ext",
|
|
607
|
-
icon:
|
|
608
|
-
type:
|
|
900
|
+
icon: de,
|
|
901
|
+
type: f.BUTTON
|
|
609
902
|
};
|
|
610
903
|
}
|
|
611
|
-
function
|
|
904
|
+
function Qt(e) {
|
|
612
905
|
return {
|
|
613
|
-
id:
|
|
906
|
+
id: ee.id,
|
|
614
907
|
title: "sheets-sort.general.sort-desc-cur",
|
|
615
|
-
icon:
|
|
616
|
-
type:
|
|
908
|
+
icon: ue,
|
|
909
|
+
type: f.BUTTON
|
|
617
910
|
};
|
|
618
911
|
}
|
|
619
|
-
function
|
|
912
|
+
function er(e) {
|
|
620
913
|
return {
|
|
621
|
-
id:
|
|
914
|
+
id: te.id,
|
|
622
915
|
title: "sheets-sort.general.sort-desc-ext",
|
|
623
|
-
icon:
|
|
624
|
-
type:
|
|
916
|
+
icon: he,
|
|
917
|
+
type: f.BUTTON
|
|
625
918
|
};
|
|
626
919
|
}
|
|
627
|
-
function
|
|
920
|
+
function tr(e) {
|
|
628
921
|
return {
|
|
629
|
-
id:
|
|
922
|
+
id: re.id,
|
|
630
923
|
title: "sheets-sort.general.sort-custom",
|
|
631
|
-
type:
|
|
632
|
-
icon:
|
|
924
|
+
type: f.BUTTON,
|
|
925
|
+
icon: ge
|
|
633
926
|
};
|
|
634
927
|
}
|
|
635
|
-
function
|
|
928
|
+
function rr(e) {
|
|
636
929
|
return {
|
|
637
|
-
id:
|
|
930
|
+
id: Ue,
|
|
638
931
|
title: "sheets-sort.general.sort",
|
|
639
|
-
type:
|
|
932
|
+
type: f.SUBITEMS,
|
|
640
933
|
icon: Z,
|
|
641
|
-
hidden$:
|
|
642
|
-
disabled$:
|
|
934
|
+
hidden$: we(e, q.UNIVER_SHEET),
|
|
935
|
+
disabled$: k(e, {
|
|
643
936
|
workbookTypes: [L],
|
|
644
|
-
worksheetTypes: [
|
|
937
|
+
worksheetTypes: [O, N],
|
|
645
938
|
rangeTypes: [b]
|
|
646
939
|
})
|
|
647
940
|
};
|
|
648
941
|
}
|
|
649
|
-
function
|
|
942
|
+
function nr(e) {
|
|
650
943
|
return {
|
|
651
|
-
id:
|
|
944
|
+
id: ne.id,
|
|
652
945
|
title: "sheets-sort.general.sort-asc-cur",
|
|
653
|
-
type:
|
|
946
|
+
type: f.BUTTON,
|
|
654
947
|
icon: Z,
|
|
655
|
-
disabled$:
|
|
948
|
+
disabled$: k(e, { workbookTypes: [L], worksheetTypes: [O, N], rangeTypes: [b] })
|
|
656
949
|
};
|
|
657
950
|
}
|
|
658
|
-
function
|
|
951
|
+
function or(e) {
|
|
659
952
|
return {
|
|
660
|
-
id:
|
|
953
|
+
id: oe.id,
|
|
661
954
|
title: "sheets-sort.general.sort-asc-ext",
|
|
662
|
-
type:
|
|
663
|
-
icon:
|
|
664
|
-
disabled$:
|
|
955
|
+
type: f.BUTTON,
|
|
956
|
+
icon: de,
|
|
957
|
+
disabled$: k(e, { workbookTypes: [L], worksheetTypes: [O, N], rangeTypes: [b] })
|
|
665
958
|
};
|
|
666
959
|
}
|
|
667
|
-
function
|
|
960
|
+
function sr(e) {
|
|
668
961
|
return {
|
|
669
962
|
id: se.id,
|
|
670
963
|
title: "sheets-sort.general.sort-desc-cur",
|
|
671
|
-
type:
|
|
672
|
-
icon:
|
|
673
|
-
disabled$:
|
|
964
|
+
type: f.BUTTON,
|
|
965
|
+
icon: ue,
|
|
966
|
+
disabled$: k(e, { workbookTypes: [L], worksheetTypes: [O, N], rangeTypes: [b] })
|
|
674
967
|
};
|
|
675
968
|
}
|
|
676
|
-
function
|
|
969
|
+
function ir(e) {
|
|
677
970
|
return {
|
|
678
|
-
id:
|
|
971
|
+
id: ie.id,
|
|
679
972
|
title: "sheets-sort.general.sort-desc-ext",
|
|
680
|
-
type:
|
|
681
|
-
icon:
|
|
682
|
-
disabled$:
|
|
973
|
+
type: f.BUTTON,
|
|
974
|
+
icon: he,
|
|
975
|
+
disabled$: k(e, { workbookTypes: [L], worksheetTypes: [O, N], rangeTypes: [b] })
|
|
683
976
|
};
|
|
684
977
|
}
|
|
685
|
-
function
|
|
978
|
+
function cr(e) {
|
|
686
979
|
return {
|
|
687
|
-
id:
|
|
980
|
+
id: ce.id,
|
|
688
981
|
title: "sheets-sort.general.sort-custom",
|
|
689
|
-
type:
|
|
690
|
-
icon:
|
|
691
|
-
disabled$:
|
|
982
|
+
type: f.BUTTON,
|
|
983
|
+
icon: ge,
|
|
984
|
+
disabled$: k(e, { workbookTypes: [L], worksheetTypes: [O, N], rangeTypes: [b] })
|
|
692
985
|
};
|
|
693
986
|
}
|
|
694
|
-
const
|
|
695
|
-
[
|
|
987
|
+
const ar = {
|
|
988
|
+
[dt.ORGANIZATION]: {
|
|
696
989
|
[Ae]: {
|
|
697
990
|
order: 3,
|
|
698
|
-
menuItemFactory:
|
|
699
|
-
[
|
|
991
|
+
menuItemFactory: Xt,
|
|
992
|
+
[J.id]: {
|
|
700
993
|
order: 0,
|
|
701
|
-
menuItemFactory:
|
|
994
|
+
menuItemFactory: Kt
|
|
702
995
|
},
|
|
703
|
-
[
|
|
996
|
+
[Q.id]: {
|
|
704
997
|
order: 1,
|
|
705
|
-
menuItemFactory:
|
|
998
|
+
menuItemFactory: Jt
|
|
706
999
|
},
|
|
707
|
-
[
|
|
1000
|
+
[ee.id]: {
|
|
708
1001
|
order: 2,
|
|
709
|
-
menuItemFactory:
|
|
1002
|
+
menuItemFactory: Qt
|
|
710
1003
|
},
|
|
711
|
-
[
|
|
1004
|
+
[te.id]: {
|
|
712
1005
|
order: 3,
|
|
713
|
-
menuItemFactory:
|
|
1006
|
+
menuItemFactory: er
|
|
714
1007
|
},
|
|
715
|
-
[
|
|
1008
|
+
[re.id]: {
|
|
716
1009
|
order: 4,
|
|
717
|
-
menuItemFactory:
|
|
1010
|
+
menuItemFactory: tr
|
|
718
1011
|
}
|
|
719
1012
|
}
|
|
720
1013
|
},
|
|
721
|
-
[
|
|
722
|
-
[
|
|
723
|
-
[
|
|
1014
|
+
[at.MAIN_AREA]: {
|
|
1015
|
+
[lt.DATA]: {
|
|
1016
|
+
[Ue]: {
|
|
724
1017
|
order: 0,
|
|
725
|
-
menuItemFactory:
|
|
726
|
-
[
|
|
1018
|
+
menuItemFactory: rr,
|
|
1019
|
+
[ne.id]: {
|
|
727
1020
|
order: 0,
|
|
728
|
-
menuItemFactory:
|
|
1021
|
+
menuItemFactory: nr
|
|
729
1022
|
},
|
|
730
|
-
[
|
|
1023
|
+
[oe.id]: {
|
|
731
1024
|
order: 1,
|
|
732
|
-
menuItemFactory:
|
|
1025
|
+
menuItemFactory: or
|
|
733
1026
|
},
|
|
734
1027
|
[se.id]: {
|
|
735
1028
|
order: 2,
|
|
736
|
-
menuItemFactory:
|
|
1029
|
+
menuItemFactory: sr
|
|
737
1030
|
},
|
|
738
|
-
[
|
|
1031
|
+
[ie.id]: {
|
|
739
1032
|
order: 3,
|
|
740
|
-
menuItemFactory:
|
|
1033
|
+
menuItemFactory: ir
|
|
741
1034
|
},
|
|
742
|
-
[
|
|
1035
|
+
[ce.id]: {
|
|
743
1036
|
order: 4,
|
|
744
|
-
menuItemFactory:
|
|
1037
|
+
menuItemFactory: cr
|
|
745
1038
|
}
|
|
746
1039
|
}
|
|
747
1040
|
}
|
|
748
1041
|
}
|
|
749
1042
|
};
|
|
750
|
-
var
|
|
751
|
-
for (var o =
|
|
752
|
-
(
|
|
1043
|
+
var lr = Object.getOwnPropertyDescriptor, dr = (e, t, r, n) => {
|
|
1044
|
+
for (var o = n > 1 ? void 0 : n ? lr(t, r) : t, s = e.length - 1, i; s >= 0; s--)
|
|
1045
|
+
(i = e[s]) && (o = i(o) || o);
|
|
753
1046
|
return o;
|
|
754
|
-
},
|
|
755
|
-
const
|
|
756
|
-
let
|
|
757
|
-
constructor(e, t,
|
|
758
|
-
super(), this._commandService = e, this._menuManagerService = t, this._dialogService =
|
|
1047
|
+
}, y = (e, t) => (r, n) => t(r, n, e);
|
|
1048
|
+
const Se = "custom-sort-dialog", Pe = 560, ur = 128;
|
|
1049
|
+
let G = class extends Ye {
|
|
1050
|
+
constructor(e, t, r, n, o, s, i, a, l, u) {
|
|
1051
|
+
super(), this._commandService = e, this._menuManagerService = t, this._dialogService = r, this._layoutService = n, this._uiPartsService = o, this._sheetRenderService = s, this._localeService = i, this._sheetsSortUIService = a, this._injector = l, this._componentManager = u, this._initCommands(), this._initMenu(), this._initUI();
|
|
759
1052
|
}
|
|
760
1053
|
_initMenu() {
|
|
761
|
-
this._menuManagerService.mergeMenu(
|
|
1054
|
+
this._menuManagerService.mergeMenu(ar);
|
|
762
1055
|
}
|
|
763
1056
|
_initCommands() {
|
|
764
1057
|
[
|
|
1058
|
+
J,
|
|
765
1059
|
Q,
|
|
766
1060
|
ee,
|
|
767
1061
|
te,
|
|
768
1062
|
re,
|
|
769
1063
|
ne,
|
|
770
1064
|
oe,
|
|
771
|
-
ie,
|
|
772
1065
|
se,
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
].forEach((e) => this.disposeWithMe(this._commandService.registerCommand(e))), this.disposeWithMe(this._sheetRenderService.registerSkeletonChangingMutations(
|
|
1066
|
+
ie,
|
|
1067
|
+
ce
|
|
1068
|
+
].forEach((e) => this.disposeWithMe(this._commandService.registerCommand(e))), this.disposeWithMe(this._sheetRenderService.registerSkeletonChangingMutations(ot.id));
|
|
776
1069
|
}
|
|
777
1070
|
_initUI() {
|
|
778
1071
|
this.disposeWithMe(
|
|
779
|
-
this._uiPartsService.registerComponent(
|
|
1072
|
+
this._uiPartsService.registerComponent(Rt.FILTER_PANEL_EMBED_POINT, () => vt(Yt, this._injector))
|
|
780
1073
|
), [
|
|
781
|
-
["CustomSortPanel",
|
|
782
|
-
[Z,
|
|
783
|
-
[
|
|
784
|
-
[
|
|
785
|
-
[
|
|
786
|
-
[
|
|
1074
|
+
["CustomSortPanel", Gt],
|
|
1075
|
+
[Z, ae],
|
|
1076
|
+
[de, ke],
|
|
1077
|
+
[ue, le],
|
|
1078
|
+
[he, De],
|
|
1079
|
+
[ge, Ne]
|
|
787
1080
|
].forEach(([e, t]) => {
|
|
788
1081
|
this.disposeWithMe(
|
|
789
1082
|
this._componentManager.register(e, t)
|
|
790
1083
|
);
|
|
791
|
-
}), this._sheetsSortUIService.customSortState$.pipe(
|
|
1084
|
+
}), this._sheetsSortUIService.customSortState$.pipe(St(this.dispose$)).subscribe((e) => {
|
|
792
1085
|
e && e.show && e.location ? this._openCustomSortPanel(e.location) : e && !(e != null && e.show) && this._closePanel();
|
|
793
1086
|
});
|
|
794
1087
|
}
|
|
795
1088
|
_openCustomSortPanel(e) {
|
|
796
1089
|
this._dialogService.open({
|
|
797
|
-
id:
|
|
1090
|
+
id: Se,
|
|
798
1091
|
draggable: !0,
|
|
799
|
-
width:
|
|
1092
|
+
width: Pe,
|
|
800
1093
|
title: { title: `${this._localeService.t("sheets-sort.general.sort-custom")}: ${It(e.range)}` },
|
|
801
1094
|
children: { label: "CustomSortPanel" },
|
|
802
1095
|
destroyOnClose: !0,
|
|
803
|
-
defaultPosition:
|
|
1096
|
+
defaultPosition: hr(),
|
|
804
1097
|
preservePositionOnDestroy: !1,
|
|
805
1098
|
onClose: () => this._closePanel(),
|
|
806
1099
|
mask: !0
|
|
807
1100
|
});
|
|
808
1101
|
}
|
|
809
1102
|
_closePanel() {
|
|
810
|
-
this._dialogService.close(
|
|
1103
|
+
this._dialogService.close(Se), queueMicrotask(() => this._layoutService.focus());
|
|
811
1104
|
}
|
|
812
1105
|
};
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
],
|
|
825
|
-
function
|
|
826
|
-
return { x: (window.innerWidth -
|
|
1106
|
+
G = dr([
|
|
1107
|
+
y(0, _e),
|
|
1108
|
+
y(1, ut),
|
|
1109
|
+
y(2, ht),
|
|
1110
|
+
y(3, gt),
|
|
1111
|
+
y(4, Ct),
|
|
1112
|
+
y(5, M(Mt)),
|
|
1113
|
+
y(6, M(H)),
|
|
1114
|
+
y(7, M(C)),
|
|
1115
|
+
y(8, M(ye)),
|
|
1116
|
+
y(9, M(mt))
|
|
1117
|
+
], G);
|
|
1118
|
+
function hr() {
|
|
1119
|
+
return { x: (window.innerWidth - Pe) / 2, y: ur };
|
|
827
1120
|
}
|
|
828
|
-
var
|
|
829
|
-
for (var o =
|
|
830
|
-
(
|
|
1121
|
+
var gr = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, mr = (e, t, r) => t in e ? gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vr = (e, t, r, n) => {
|
|
1122
|
+
for (var o = n > 1 ? void 0 : n ? Cr(t, r) : t, s = e.length - 1, i; s >= 0; s--)
|
|
1123
|
+
(i = e[s]) && (o = i(o) || o);
|
|
831
1124
|
return o;
|
|
832
|
-
},
|
|
833
|
-
const
|
|
834
|
-
let
|
|
835
|
-
constructor(e =
|
|
836
|
-
super(), this._config = e, this._injector = t, this._configService =
|
|
837
|
-
const { ...
|
|
1125
|
+
}, pe = (e, t) => (r, n) => t(r, n, e), Ze = (e, t, r) => mr(e, typeof t != "symbol" ? t + "" : t, r);
|
|
1126
|
+
const fr = "SHEET_SORT_UI_PLUGIN";
|
|
1127
|
+
let W = class extends Je {
|
|
1128
|
+
constructor(e = fe, t, r) {
|
|
1129
|
+
super(), this._config = e, this._injector = t, this._configService = r;
|
|
1130
|
+
const { ...n } = Qe(
|
|
838
1131
|
{},
|
|
839
|
-
|
|
1132
|
+
fe,
|
|
840
1133
|
this._config
|
|
841
1134
|
);
|
|
842
|
-
this._configService.setConfig(
|
|
1135
|
+
this._configService.setConfig(Nt, n);
|
|
843
1136
|
}
|
|
844
1137
|
onStarting() {
|
|
845
1138
|
[
|
|
846
|
-
[
|
|
847
|
-
[
|
|
1139
|
+
[C],
|
|
1140
|
+
[G]
|
|
848
1141
|
].forEach((e) => this._injector.add(e));
|
|
849
1142
|
}
|
|
850
1143
|
onRendered() {
|
|
851
|
-
this._injector.get(
|
|
1144
|
+
this._injector.get(G);
|
|
852
1145
|
}
|
|
853
1146
|
};
|
|
854
|
-
Ze(
|
|
855
|
-
Ze(
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
],
|
|
1147
|
+
Ze(W, "type", q.UNIVER_SHEET);
|
|
1148
|
+
Ze(W, "pluginName", fr);
|
|
1149
|
+
W = vr([
|
|
1150
|
+
Xe(st),
|
|
1151
|
+
pe(1, M(ye)),
|
|
1152
|
+
pe(2, Ke)
|
|
1153
|
+
], W);
|
|
861
1154
|
export {
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
1155
|
+
J as SortRangeAscCommand,
|
|
1156
|
+
Q as SortRangeAscExtCommand,
|
|
1157
|
+
oe as SortRangeAscExtInCtxMenuCommand,
|
|
1158
|
+
ne as SortRangeAscInCtxMenuCommand,
|
|
1159
|
+
re as SortRangeCustomCommand,
|
|
1160
|
+
ce as SortRangeCustomInCtxMenuCommand,
|
|
1161
|
+
ee as SortRangeDescCommand,
|
|
1162
|
+
te as SortRangeDescExtCommand,
|
|
1163
|
+
ie as SortRangeDescExtInCtxMenuCommand,
|
|
871
1164
|
se as SortRangeDescInCtxMenuCommand,
|
|
872
|
-
|
|
1165
|
+
W as UniverSheetsSortUIPlugin
|
|
873
1166
|
};
|