@univerjs/sheets-sort-ui 0.8.2 → 0.8.3-nightly.202507010644
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/cjs/locale/ko-KR.js +1 -0
- package/lib/es/index.js +213 -214
- package/lib/es/locale/ko-KR.js +33 -0
- package/lib/index.js +213 -214
- package/lib/locale/ko-KR.js +33 -0
- package/lib/types/index.d.ts +2 -1
- package/lib/types/locale/ko-KR.d.ts +3 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -0
- package/package.json +11 -11
- package/LICENSE +0 -176
package/lib/es/index.js
CHANGED
|
@@ -2,143 +2,16 @@ var Ve = Object.defineProperty;
|
|
|
2
2
|
var Ge = (e, t, n) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var K = (e, t, n) => Ge(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { LocaleService as P, IUniverInstanceService as xe, Inject as R, ICommandService as _e, Disposable as We, UniverInstanceType as Y, Tools as ze, LocaleType as J, CommandType as M, throttle as Ye, Injector as Ie, RxDisposable as qe, DependentOn as Xe, IConfigService as Ke, Plugin as Je, merge as Qe } from "@univerjs/core";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { jsxs as C, jsx as c } from "react/jsx-runtime";
|
|
6
|
+
import { SheetsSelectionsService as et, getPrimaryForRange as tt, SetSelectionsOperation as rt, expandToContinuousRange as fe, getSheetCommandTarget as nt, RangeProtectionPermissionEditPoint as O, WorksheetSortPermission as N, WorksheetEditPermission as k, WorkbookEditablePermission as L } from "@univerjs/sheets";
|
|
7
|
+
import { SheetsSortService as we, SortType as U, SortRangeCommand as ot, UniverSheetsSortPlugin as it } from "@univerjs/sheets-sort";
|
|
8
8
|
import { useDependency as E, IConfirmService as st, useObservable as ct, MenuItemType as S, getMenuHiddenObservable as Me, 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
9
|
import { BehaviorSubject as ft, takeUntil as St } from "rxjs";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
const Et =
|
|
15
|
-
var f = function() {
|
|
16
|
-
return f = Object.assign || function(e) {
|
|
17
|
-
for (var t, n = 1, r = arguments.length; n < r; n++) {
|
|
18
|
-
t = arguments[n];
|
|
19
|
-
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
|
|
20
|
-
}
|
|
21
|
-
return e;
|
|
22
|
-
}, f.apply(this, arguments);
|
|
23
|
-
}, Tt = function(e, t) {
|
|
24
|
-
var n = {};
|
|
25
|
-
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
26
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
27
|
-
for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
|
|
28
|
-
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
29
|
-
return n;
|
|
30
|
-
}, _ = y(function(e, t) {
|
|
31
|
-
var n = e.icon, r = e.id, o = e.className, i = e.extend, s = Tt(e, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(r, " ").concat(o || "").trim(), l = be("_".concat(Nt()));
|
|
32
|
-
return Ne(n, "".concat(r), { defIds: n.defIds, idSuffix: l.current }, f({ ref: t, className: a }, s), i);
|
|
33
|
-
});
|
|
34
|
-
function Ne(e, t, n, r, o) {
|
|
35
|
-
return x(e.tag, f(f({ key: t }, bt(e, n, o)), r), (Ot(e, n).children || []).map(function(i, s) {
|
|
36
|
-
return Ne(i, "".concat(t, "-").concat(e.tag, "-").concat(s), n, void 0, o);
|
|
37
|
-
}));
|
|
38
|
-
}
|
|
39
|
-
function bt(e, t, n) {
|
|
40
|
-
var r = f({}, e.attrs);
|
|
41
|
-
n != null && n.colorChannel1 && r.fill === "colorChannel1" && (r.fill = n.colorChannel1), e.tag === "mask" && r.id && (r.id = r.id + t.idSuffix), Object.entries(r).forEach(function(i) {
|
|
42
|
-
var s = i[0], a = i[1];
|
|
43
|
-
s === "mask" && typeof a == "string" && (r[s] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
|
|
44
|
-
});
|
|
45
|
-
var o = t.defIds;
|
|
46
|
-
return !o || o.length === 0 || (e.tag === "use" && r["xlink:href"] && (r["xlink:href"] = r["xlink:href"] + t.idSuffix), Object.entries(r).forEach(function(i) {
|
|
47
|
-
var s = i[0], a = i[1];
|
|
48
|
-
typeof a == "string" && (r[s] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
|
|
49
|
-
})), r;
|
|
50
|
-
}
|
|
51
|
-
function Ot(e, t) {
|
|
52
|
-
var n, r = t.defIds;
|
|
53
|
-
return !r || r.length === 0 ? e : e.tag === "defs" && (!((n = e.children) === null || n === void 0) && n.length) ? f(f({}, e), { children: e.children.map(function(o) {
|
|
54
|
-
return typeof o.attrs.id == "string" && r && r.includes(o.attrs.id) ? f(f({}, o), { attrs: f(f({}, o.attrs), { id: o.attrs.id + t.idSuffix }) }) : o;
|
|
55
|
-
}) }) : e;
|
|
56
|
-
}
|
|
57
|
-
function Nt() {
|
|
58
|
-
return Math.random().toString(36).substring(2, 8);
|
|
59
|
-
}
|
|
60
|
-
_.displayName = "UniverIcon";
|
|
61
|
-
var kt = { 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: "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" } }, { tag: "path", attrs: { fill: "currentColor", 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", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", 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", fillRule: "evenodd", clipRule: "evenodd" } }] }, ee = y(function(e, t) {
|
|
62
|
-
return x(_, Object.assign({}, e, {
|
|
63
|
-
id: "ascending-icon",
|
|
64
|
-
ref: t,
|
|
65
|
-
icon: kt
|
|
66
|
-
}));
|
|
67
|
-
});
|
|
68
|
-
ee.displayName = "AscendingIcon";
|
|
69
|
-
var Lt = { 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: "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", fillRule: "evenodd", clipRule: "evenodd" } }] }, ke = y(function(e, t) {
|
|
70
|
-
return x(_, Object.assign({}, e, {
|
|
71
|
-
id: "check-mark-icon",
|
|
72
|
-
ref: t,
|
|
73
|
-
icon: Lt
|
|
74
|
-
}));
|
|
75
|
-
});
|
|
76
|
-
ke.displayName = "CheckMarkIcon";
|
|
77
|
-
var Dt = { 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: "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" } }, { tag: "path", attrs: { fill: "currentColor", 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" } }, { tag: "path", attrs: { fill: "currentColor", 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", fillRule: "evenodd", clipRule: "evenodd" } }] }, Le = y(function(e, t) {
|
|
78
|
-
return x(_, Object.assign({}, e, {
|
|
79
|
-
id: "custom-sort-icon",
|
|
80
|
-
ref: t,
|
|
81
|
-
icon: Dt
|
|
82
|
-
}));
|
|
83
|
-
});
|
|
84
|
-
Le.displayName = "CustomSortIcon";
|
|
85
|
-
var Ht = { 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: "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" } }, { tag: "path", attrs: { fill: "currentColor", 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" } }, { tag: "path", attrs: { fill: "currentColor", 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", fillRule: "evenodd", clipRule: "evenodd" } }] }, De = y(function(e, t) {
|
|
86
|
-
return x(_, Object.assign({}, e, {
|
|
87
|
-
id: "delete-empty-icon",
|
|
88
|
-
ref: t,
|
|
89
|
-
icon: Ht
|
|
90
|
-
}));
|
|
91
|
-
});
|
|
92
|
-
De.displayName = "DeleteEmptyIcon";
|
|
93
|
-
var Ut = { 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: "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" } }, { tag: "path", attrs: { fill: "currentColor", 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", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", 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", fillRule: "evenodd", clipRule: "evenodd" } }] }, te = y(function(e, t) {
|
|
94
|
-
return x(_, Object.assign({}, e, {
|
|
95
|
-
id: "descending-icon",
|
|
96
|
-
ref: t,
|
|
97
|
-
icon: Ut
|
|
98
|
-
}));
|
|
99
|
-
});
|
|
100
|
-
te.displayName = "DescendingIcon";
|
|
101
|
-
var Pt = { 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: "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", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", 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" } }] }, He = y(function(e, t) {
|
|
102
|
-
return x(_, Object.assign({}, e, {
|
|
103
|
-
id: "expand-ascending-icon",
|
|
104
|
-
ref: t,
|
|
105
|
-
icon: Pt
|
|
106
|
-
}));
|
|
107
|
-
});
|
|
108
|
-
He.displayName = "ExpandAscendingIcon";
|
|
109
|
-
var At = { 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: "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", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", 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" } }] }, Ue = y(function(e, t) {
|
|
110
|
-
return x(_, Object.assign({}, e, {
|
|
111
|
-
id: "expand-descending-icon",
|
|
112
|
-
ref: t,
|
|
113
|
-
icon: At
|
|
114
|
-
}));
|
|
115
|
-
});
|
|
116
|
-
Ue.displayName = "ExpandDescendingIcon";
|
|
117
|
-
var $t = { 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.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" } }] }, Q = y(function(e, t) {
|
|
118
|
-
return x(_, Object.assign({}, e, {
|
|
119
|
-
id: "increase-icon",
|
|
120
|
-
ref: t,
|
|
121
|
-
icon: $t
|
|
122
|
-
}));
|
|
123
|
-
});
|
|
124
|
-
Q.displayName = "IncreaseIcon";
|
|
125
|
-
var Zt = { 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: "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", fillRule: "evenodd", clipRule: "evenodd" } }] }, Pe = y(function(e, t) {
|
|
126
|
-
return x(_, Object.assign({}, e, {
|
|
127
|
-
id: "more-down-icon",
|
|
128
|
-
ref: t,
|
|
129
|
-
icon: Zt
|
|
130
|
-
}));
|
|
131
|
-
});
|
|
132
|
-
Pe.displayName = "MoreDownIcon";
|
|
133
|
-
var jt = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_622_8", width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { fill: "currentColor", mask: "url(#mask0_622_8)" }, children: [{ tag: "path", attrs: { 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" } }, { tag: "path", attrs: { 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" } }, { tag: "path", attrs: { 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" } }, { tag: "path", attrs: { 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" } }, { tag: "path", attrs: { 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" } }, { tag: "path", attrs: { 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" } }] }] }, Ae = y(function(e, t) {
|
|
134
|
-
return x(_, Object.assign({}, e, {
|
|
135
|
-
id: "sequence-icon",
|
|
136
|
-
ref: t,
|
|
137
|
-
icon: jt
|
|
138
|
-
}));
|
|
139
|
-
});
|
|
140
|
-
Ae.displayName = "SequenceIcon";
|
|
141
|
-
const Bt = (e) => {
|
|
10
|
+
import { RadioGroup as Re, Radio as V, Checkbox as pt, clsx as Ee, DraggableList as yt, scrollbarClassName as Te, Button as G, Dropdown as xt, ButtonGroup as _t } from "@univerjs/design";
|
|
11
|
+
import { useState as Z, forwardRef as y, useRef as be, createElement as x, useCallback as b, useEffect as Oe } from "react";
|
|
12
|
+
import { serializeRange as It } from "@univerjs/engine-formula";
|
|
13
|
+
import { getCurrentRangeDisable$ as D, getCurrentExclusiveRangeInterest$ as wt, SheetsRenderService as Mt, SheetsUIPart as Rt } from "@univerjs/sheets-ui";
|
|
14
|
+
const Et = (e) => {
|
|
142
15
|
const [t, n] = Z("0"), r = E(P);
|
|
143
16
|
return /* @__PURE__ */ C("div", { className: "univer-text-sm", children: [
|
|
144
17
|
/* @__PURE__ */ c("div", { className: "extend-confirm-desc", children: r.t("sheets-sort.dialog.sort-reminder-desc") }),
|
|
@@ -159,8 +32,8 @@ const Bt = (e) => {
|
|
|
159
32
|
)
|
|
160
33
|
] });
|
|
161
34
|
};
|
|
162
|
-
var
|
|
163
|
-
for (var o = r > 1 ? void 0 : r ?
|
|
35
|
+
var Tt = Object.getOwnPropertyDescriptor, bt = (e, t, n, r) => {
|
|
36
|
+
for (var o = r > 1 ? void 0 : r ? Tt(t, n) : t, i = e.length - 1, s; i >= 0; i--)
|
|
164
37
|
(s = e[i]) && (o = s(o) || o);
|
|
165
38
|
return o;
|
|
166
39
|
}, H = (e, t) => (n, r) => t(n, r, e);
|
|
@@ -205,7 +78,7 @@ let g = class extends We {
|
|
|
205
78
|
const { unitId: r, subUnitId: o, range: i } = n, s = (u = this._univerInstanceService.getUnit(r)) == null ? void 0 : u.getSheetBySheetId(o);
|
|
206
79
|
if (!s)
|
|
207
80
|
return [];
|
|
208
|
-
const a =
|
|
81
|
+
const a = Ot(this._localeService);
|
|
209
82
|
return Array.from({ length: i.endColumn - i.startColumn + 1 }, (I, v) => {
|
|
210
83
|
var m;
|
|
211
84
|
const T = (m = s.getCell(i.startRow, v + i.startColumn)) == null ? void 0 : m.v;
|
|
@@ -223,9 +96,9 @@ let g = class extends We {
|
|
|
223
96
|
const i = {
|
|
224
97
|
unitId: t,
|
|
225
98
|
subUnitId: n,
|
|
226
|
-
selections: [{ range: r, primary:
|
|
99
|
+
selections: [{ range: r, primary: tt(r, o), style: null }]
|
|
227
100
|
};
|
|
228
|
-
this._commandService.executeCommand(
|
|
101
|
+
this._commandService.executeCommand(rt.id, i);
|
|
229
102
|
}
|
|
230
103
|
async showCheckError(t) {
|
|
231
104
|
return await this._confirmService.confirm({
|
|
@@ -249,7 +122,7 @@ let g = class extends We {
|
|
|
249
122
|
},
|
|
250
123
|
children: {
|
|
251
124
|
title: /* @__PURE__ */ c(
|
|
252
|
-
|
|
125
|
+
Et,
|
|
253
126
|
{
|
|
254
127
|
onChange: (r) => {
|
|
255
128
|
t = r === "1";
|
|
@@ -294,15 +167,15 @@ let g = class extends We {
|
|
|
294
167
|
};
|
|
295
168
|
}
|
|
296
169
|
};
|
|
297
|
-
g =
|
|
170
|
+
g = bt([
|
|
298
171
|
H(0, xe),
|
|
299
172
|
H(1, st),
|
|
300
|
-
H(2, R(
|
|
173
|
+
H(2, R(et)),
|
|
301
174
|
H(3, R(we)),
|
|
302
175
|
H(4, R(P)),
|
|
303
176
|
H(5, _e)
|
|
304
177
|
], g);
|
|
305
|
-
function
|
|
178
|
+
function Ot(e) {
|
|
306
179
|
return (t) => {
|
|
307
180
|
const n = ze.chatAtABC(t);
|
|
308
181
|
switch (e.getCurrentLocale()) {
|
|
@@ -315,47 +188,173 @@ function Gt(e) {
|
|
|
315
188
|
}
|
|
316
189
|
};
|
|
317
190
|
}
|
|
318
|
-
const
|
|
191
|
+
const ee = {
|
|
319
192
|
id: "sheet.command.sort-range-asc",
|
|
320
193
|
type: M.COMMAND,
|
|
321
194
|
handler: async (e) => await e.get(g).triggerSortDirectly(!0, !1)
|
|
322
|
-
},
|
|
195
|
+
}, te = {
|
|
323
196
|
id: "sheet.command.sort-range-asc-ext",
|
|
324
197
|
type: M.COMMAND,
|
|
325
198
|
handler: async (e) => await e.get(g).triggerSortDirectly(!0, !0)
|
|
326
|
-
},
|
|
199
|
+
}, re = {
|
|
327
200
|
id: "sheet.command.sort-range-desc",
|
|
328
201
|
type: M.COMMAND,
|
|
329
202
|
handler: async (e) => await e.get(g).triggerSortDirectly(!1, !1)
|
|
330
|
-
},
|
|
203
|
+
}, ne = {
|
|
331
204
|
id: "sheet.command.sort-range-desc-ext",
|
|
332
205
|
type: M.COMMAND,
|
|
333
206
|
handler: async (e) => await e.get(g).triggerSortDirectly(!1, !0)
|
|
334
|
-
},
|
|
207
|
+
}, oe = {
|
|
335
208
|
id: "sheet.command.sort-range-custom",
|
|
336
209
|
type: M.COMMAND,
|
|
337
210
|
handler: async (e) => await e.get(g).triggerSortCustomize()
|
|
338
|
-
},
|
|
211
|
+
}, ie = {
|
|
339
212
|
id: "sheet.command.sort-range-asc-ctx",
|
|
340
213
|
type: M.COMMAND,
|
|
341
214
|
handler: async (e) => await e.get(g).triggerSortDirectly(!0, !1)
|
|
342
|
-
},
|
|
215
|
+
}, se = {
|
|
343
216
|
id: "sheet.command.sort-range-asc-ext-ctx",
|
|
344
217
|
type: M.COMMAND,
|
|
345
218
|
handler: async (e) => await e.get(g).triggerSortDirectly(!0, !0)
|
|
346
|
-
},
|
|
219
|
+
}, ce = {
|
|
347
220
|
id: "sheet.command.sort-range-desc-ctx",
|
|
348
221
|
type: M.COMMAND,
|
|
349
222
|
handler: async (e) => await e.get(g).triggerSortDirectly(!1, !1)
|
|
350
|
-
},
|
|
223
|
+
}, ae = {
|
|
351
224
|
id: "sheet.command.sort-range-desc-ext-ctx",
|
|
352
225
|
type: M.COMMAND,
|
|
353
226
|
handler: async (e) => await e.get(g).triggerSortDirectly(!1, !0)
|
|
354
|
-
},
|
|
227
|
+
}, le = {
|
|
355
228
|
id: "sheet.command.sort-range-custom-ctx",
|
|
356
229
|
type: M.COMMAND,
|
|
357
230
|
handler: async (e) => await e.get(g).triggerSortCustomize()
|
|
358
|
-
};
|
|
231
|
+
}, Nt = "sheets-sort-ui.config", Se = {};
|
|
232
|
+
var f = function() {
|
|
233
|
+
return f = Object.assign || function(e) {
|
|
234
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) {
|
|
235
|
+
t = arguments[n];
|
|
236
|
+
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
|
|
237
|
+
}
|
|
238
|
+
return e;
|
|
239
|
+
}, f.apply(this, arguments);
|
|
240
|
+
}, kt = function(e, t) {
|
|
241
|
+
var n = {};
|
|
242
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
243
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
244
|
+
for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
|
|
245
|
+
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
246
|
+
return n;
|
|
247
|
+
}, _ = y(function(e, t) {
|
|
248
|
+
var n = e.icon, r = e.id, o = e.className, i = e.extend, s = kt(e, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(r, " ").concat(o || "").trim(), l = be("_".concat(Ht()));
|
|
249
|
+
return Ne(n, "".concat(r), { defIds: n.defIds, idSuffix: l.current }, f({ ref: t, className: a }, s), i);
|
|
250
|
+
});
|
|
251
|
+
function Ne(e, t, n, r, o) {
|
|
252
|
+
return x(e.tag, f(f({ key: t }, Lt(e, n, o)), r), (Dt(e, n).children || []).map(function(i, s) {
|
|
253
|
+
return Ne(i, "".concat(t, "-").concat(e.tag, "-").concat(s), n, void 0, o);
|
|
254
|
+
}));
|
|
255
|
+
}
|
|
256
|
+
function Lt(e, t, n) {
|
|
257
|
+
var r = f({}, e.attrs);
|
|
258
|
+
n != null && n.colorChannel1 && r.fill === "colorChannel1" && (r.fill = n.colorChannel1), e.tag === "mask" && r.id && (r.id = r.id + t.idSuffix), Object.entries(r).forEach(function(i) {
|
|
259
|
+
var s = i[0], a = i[1];
|
|
260
|
+
s === "mask" && typeof a == "string" && (r[s] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
|
|
261
|
+
});
|
|
262
|
+
var o = t.defIds;
|
|
263
|
+
return !o || o.length === 0 || (e.tag === "use" && r["xlink:href"] && (r["xlink:href"] = r["xlink:href"] + t.idSuffix), Object.entries(r).forEach(function(i) {
|
|
264
|
+
var s = i[0], a = i[1];
|
|
265
|
+
typeof a == "string" && (r[s] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
|
|
266
|
+
})), r;
|
|
267
|
+
}
|
|
268
|
+
function Dt(e, t) {
|
|
269
|
+
var n, r = t.defIds;
|
|
270
|
+
return !r || r.length === 0 ? e : e.tag === "defs" && (!((n = e.children) === null || n === void 0) && n.length) ? f(f({}, e), { children: e.children.map(function(o) {
|
|
271
|
+
return typeof o.attrs.id == "string" && r && r.includes(o.attrs.id) ? f(f({}, o), { attrs: f(f({}, o.attrs), { id: o.attrs.id + t.idSuffix }) }) : o;
|
|
272
|
+
}) }) : e;
|
|
273
|
+
}
|
|
274
|
+
function Ht() {
|
|
275
|
+
return Math.random().toString(36).substring(2, 8);
|
|
276
|
+
}
|
|
277
|
+
_.displayName = "UniverIcon";
|
|
278
|
+
var Ut = { 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: "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" } }, { tag: "path", attrs: { fill: "currentColor", 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", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", 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", fillRule: "evenodd", clipRule: "evenodd" } }] }, de = y(function(e, t) {
|
|
279
|
+
return x(_, Object.assign({}, e, {
|
|
280
|
+
id: "ascending-icon",
|
|
281
|
+
ref: t,
|
|
282
|
+
icon: Ut
|
|
283
|
+
}));
|
|
284
|
+
});
|
|
285
|
+
de.displayName = "AscendingIcon";
|
|
286
|
+
var Pt = { 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: "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", fillRule: "evenodd", clipRule: "evenodd" } }] }, ke = y(function(e, t) {
|
|
287
|
+
return x(_, Object.assign({}, e, {
|
|
288
|
+
id: "check-mark-icon",
|
|
289
|
+
ref: t,
|
|
290
|
+
icon: Pt
|
|
291
|
+
}));
|
|
292
|
+
});
|
|
293
|
+
ke.displayName = "CheckMarkIcon";
|
|
294
|
+
var At = { 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: "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" } }, { tag: "path", attrs: { fill: "currentColor", 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" } }, { tag: "path", attrs: { fill: "currentColor", 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", fillRule: "evenodd", clipRule: "evenodd" } }] }, Le = y(function(e, t) {
|
|
295
|
+
return x(_, Object.assign({}, e, {
|
|
296
|
+
id: "custom-sort-icon",
|
|
297
|
+
ref: t,
|
|
298
|
+
icon: At
|
|
299
|
+
}));
|
|
300
|
+
});
|
|
301
|
+
Le.displayName = "CustomSortIcon";
|
|
302
|
+
var $t = { 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: "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" } }, { tag: "path", attrs: { fill: "currentColor", 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" } }, { tag: "path", attrs: { fill: "currentColor", 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", fillRule: "evenodd", clipRule: "evenodd" } }] }, De = y(function(e, t) {
|
|
303
|
+
return x(_, Object.assign({}, e, {
|
|
304
|
+
id: "delete-empty-icon",
|
|
305
|
+
ref: t,
|
|
306
|
+
icon: $t
|
|
307
|
+
}));
|
|
308
|
+
});
|
|
309
|
+
De.displayName = "DeleteEmptyIcon";
|
|
310
|
+
var Zt = { 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: "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" } }, { tag: "path", attrs: { fill: "currentColor", 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", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", 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", fillRule: "evenodd", clipRule: "evenodd" } }] }, ue = y(function(e, t) {
|
|
311
|
+
return x(_, Object.assign({}, e, {
|
|
312
|
+
id: "descending-icon",
|
|
313
|
+
ref: t,
|
|
314
|
+
icon: Zt
|
|
315
|
+
}));
|
|
316
|
+
});
|
|
317
|
+
ue.displayName = "DescendingIcon";
|
|
318
|
+
var jt = { 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: "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", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", 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" } }] }, He = y(function(e, t) {
|
|
319
|
+
return x(_, Object.assign({}, e, {
|
|
320
|
+
id: "expand-ascending-icon",
|
|
321
|
+
ref: t,
|
|
322
|
+
icon: jt
|
|
323
|
+
}));
|
|
324
|
+
});
|
|
325
|
+
He.displayName = "ExpandAscendingIcon";
|
|
326
|
+
var Bt = { 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: "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", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", 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" } }] }, Ue = y(function(e, t) {
|
|
327
|
+
return x(_, Object.assign({}, e, {
|
|
328
|
+
id: "expand-descending-icon",
|
|
329
|
+
ref: t,
|
|
330
|
+
icon: Bt
|
|
331
|
+
}));
|
|
332
|
+
});
|
|
333
|
+
Ue.displayName = "ExpandDescendingIcon";
|
|
334
|
+
var Ft = { 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.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" } }] }, Q = y(function(e, t) {
|
|
335
|
+
return x(_, Object.assign({}, e, {
|
|
336
|
+
id: "increase-icon",
|
|
337
|
+
ref: t,
|
|
338
|
+
icon: Ft
|
|
339
|
+
}));
|
|
340
|
+
});
|
|
341
|
+
Q.displayName = "IncreaseIcon";
|
|
342
|
+
var Vt = { 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: "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", fillRule: "evenodd", clipRule: "evenodd" } }] }, Pe = y(function(e, t) {
|
|
343
|
+
return x(_, Object.assign({}, e, {
|
|
344
|
+
id: "more-down-icon",
|
|
345
|
+
ref: t,
|
|
346
|
+
icon: Vt
|
|
347
|
+
}));
|
|
348
|
+
});
|
|
349
|
+
Pe.displayName = "MoreDownIcon";
|
|
350
|
+
var Gt = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_622_8", width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { fill: "currentColor", mask: "url(#mask0_622_8)" }, children: [{ tag: "path", attrs: { 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" } }, { tag: "path", attrs: { 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" } }, { tag: "path", attrs: { 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" } }, { tag: "path", attrs: { 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" } }, { tag: "path", attrs: { 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" } }, { tag: "path", attrs: { 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" } }] }] }, Ae = y(function(e, t) {
|
|
351
|
+
return x(_, Object.assign({}, e, {
|
|
352
|
+
id: "sequence-icon",
|
|
353
|
+
ref: t,
|
|
354
|
+
icon: Gt
|
|
355
|
+
}));
|
|
356
|
+
});
|
|
357
|
+
Ae.displayName = "SequenceIcon";
|
|
359
358
|
function Wt() {
|
|
360
359
|
const e = E(g), t = ct(e.customSortState$);
|
|
361
360
|
return !t || !t.location ? null : /* @__PURE__ */ c(zt, { state: t });
|
|
@@ -388,7 +387,7 @@ function zt({ state: e }) {
|
|
|
388
387
|
d.stopPropagation();
|
|
389
388
|
}, children: [
|
|
390
389
|
/* @__PURE__ */ C("div", { className: "univer-flex univer-items-center univer-justify-between", children: [
|
|
391
|
-
/* @__PURE__ */ c(
|
|
390
|
+
/* @__PURE__ */ c(pt, { checked: o, onChange: (d) => Be(!!d), children: n.t("sheets-sort.dialog.first-row-check") }),
|
|
392
391
|
Fe ? /* @__PURE__ */ C(
|
|
393
392
|
"div",
|
|
394
393
|
{
|
|
@@ -420,7 +419,7 @@ function zt({ state: e }) {
|
|
|
420
419
|
a(p);
|
|
421
420
|
},
|
|
422
421
|
children: /* @__PURE__ */ c(
|
|
423
|
-
|
|
422
|
+
yt,
|
|
424
423
|
{
|
|
425
424
|
list: ve,
|
|
426
425
|
onListChange: A,
|
|
@@ -486,7 +485,7 @@ function Yt(e) {
|
|
|
486
485
|
}
|
|
487
486
|
),
|
|
488
487
|
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(
|
|
489
|
-
|
|
488
|
+
xt,
|
|
490
489
|
{
|
|
491
490
|
align: "start",
|
|
492
491
|
overlay: /* @__PURE__ */ c(
|
|
@@ -554,7 +553,7 @@ function qt(e, t) {
|
|
|
554
553
|
}
|
|
555
554
|
function Xt(e) {
|
|
556
555
|
const { range: t, colIndex: n, onClose: r } = e, o = E(g), i = E(xe), s = E(P), a = b((l) => {
|
|
557
|
-
const { unitId: u, subUnitId: I } =
|
|
556
|
+
const { unitId: u, subUnitId: I } = nt(i) || {};
|
|
558
557
|
if (t && u && I) {
|
|
559
558
|
const v = { ...t, startRow: t.startRow + 1 };
|
|
560
559
|
o.triggerSortDirectly(l, !1, { unitId: u, subUnitId: I, range: v, colIndex: n });
|
|
@@ -562,13 +561,13 @@ function Xt(e) {
|
|
|
562
561
|
throw new Error(`Cannot find the target to sort. unitId: ${u}, subUnitId: ${I}, range: ${t}, colIndex: ${n}`);
|
|
563
562
|
r();
|
|
564
563
|
}, [t, n, o, i, r]);
|
|
565
|
-
return /* @__PURE__ */ C(
|
|
564
|
+
return /* @__PURE__ */ C(_t, { className: "univer-mb-3 univer-w-full univer-grid-cols-2", children: [
|
|
566
565
|
/* @__PURE__ */ C(G, { onClick: () => a(!0), children: [
|
|
567
|
-
/* @__PURE__ */ c(
|
|
566
|
+
/* @__PURE__ */ c(de, {}),
|
|
568
567
|
s.t("sheets-sort.general.sort-asc")
|
|
569
568
|
] }),
|
|
570
569
|
/* @__PURE__ */ C(G, { onClick: () => a(!1), children: [
|
|
571
|
-
/* @__PURE__ */ c(
|
|
570
|
+
/* @__PURE__ */ c(ue, {}),
|
|
572
571
|
s.t("sheets-sort.general.sort-desc")
|
|
573
572
|
] })
|
|
574
573
|
] });
|
|
@@ -581,21 +580,21 @@ function Kt(e) {
|
|
|
581
580
|
icon: j,
|
|
582
581
|
tooltip: "sheets-sort.general.sort",
|
|
583
582
|
hidden$: Me(e, Y.UNIVER_SHEET),
|
|
584
|
-
disabled$:
|
|
583
|
+
disabled$: D(e, { workbookTypes: [L], worksheetTypes: [N, k], rangeTypes: [O] })
|
|
585
584
|
};
|
|
586
585
|
}
|
|
587
586
|
function Jt(e) {
|
|
588
587
|
return {
|
|
589
|
-
id:
|
|
588
|
+
id: ee.id,
|
|
590
589
|
icon: j,
|
|
591
590
|
title: "sheets-sort.general.sort-asc-cur",
|
|
592
591
|
type: S.BUTTON,
|
|
593
|
-
hidden$:
|
|
592
|
+
hidden$: wt(e)
|
|
594
593
|
};
|
|
595
594
|
}
|
|
596
595
|
function Qt(e) {
|
|
597
596
|
return {
|
|
598
|
-
id:
|
|
597
|
+
id: te.id,
|
|
599
598
|
title: "sheets-sort.general.sort-asc-ext",
|
|
600
599
|
icon: he,
|
|
601
600
|
type: S.BUTTON
|
|
@@ -603,7 +602,7 @@ function Qt(e) {
|
|
|
603
602
|
}
|
|
604
603
|
function er(e) {
|
|
605
604
|
return {
|
|
606
|
-
id:
|
|
605
|
+
id: re.id,
|
|
607
606
|
title: "sheets-sort.general.sort-desc-cur",
|
|
608
607
|
icon: ge,
|
|
609
608
|
type: S.BUTTON
|
|
@@ -611,7 +610,7 @@ function er(e) {
|
|
|
611
610
|
}
|
|
612
611
|
function tr(e) {
|
|
613
612
|
return {
|
|
614
|
-
id:
|
|
613
|
+
id: ne.id,
|
|
615
614
|
title: "sheets-sort.general.sort-desc-ext",
|
|
616
615
|
icon: Ce,
|
|
617
616
|
type: S.BUTTON
|
|
@@ -619,7 +618,7 @@ function tr(e) {
|
|
|
619
618
|
}
|
|
620
619
|
function rr(e) {
|
|
621
620
|
return {
|
|
622
|
-
id:
|
|
621
|
+
id: oe.id,
|
|
623
622
|
title: "sheets-sort.general.sort-custom",
|
|
624
623
|
type: S.BUTTON,
|
|
625
624
|
icon: me
|
|
@@ -632,56 +631,56 @@ function nr(e) {
|
|
|
632
631
|
type: S.SUBITEMS,
|
|
633
632
|
icon: j,
|
|
634
633
|
hidden$: Me(e, Y.UNIVER_SHEET),
|
|
635
|
-
disabled$:
|
|
636
|
-
workbookTypes: [
|
|
637
|
-
worksheetTypes: [
|
|
638
|
-
rangeTypes: [
|
|
634
|
+
disabled$: D(e, {
|
|
635
|
+
workbookTypes: [L],
|
|
636
|
+
worksheetTypes: [N, k],
|
|
637
|
+
rangeTypes: [O]
|
|
639
638
|
})
|
|
640
639
|
};
|
|
641
640
|
}
|
|
642
641
|
function or(e) {
|
|
643
642
|
return {
|
|
644
|
-
id:
|
|
643
|
+
id: ie.id,
|
|
645
644
|
title: "sheets-sort.general.sort-asc-cur",
|
|
646
645
|
type: S.BUTTON,
|
|
647
646
|
icon: j,
|
|
648
|
-
disabled$:
|
|
647
|
+
disabled$: D(e, { workbookTypes: [L], worksheetTypes: [N, k], rangeTypes: [O] })
|
|
649
648
|
};
|
|
650
649
|
}
|
|
651
650
|
function ir(e) {
|
|
652
651
|
return {
|
|
653
|
-
id:
|
|
652
|
+
id: se.id,
|
|
654
653
|
title: "sheets-sort.general.sort-asc-ext",
|
|
655
654
|
type: S.BUTTON,
|
|
656
655
|
icon: he,
|
|
657
|
-
disabled$:
|
|
656
|
+
disabled$: D(e, { workbookTypes: [L], worksheetTypes: [N, k], rangeTypes: [O] })
|
|
658
657
|
};
|
|
659
658
|
}
|
|
660
659
|
function sr(e) {
|
|
661
660
|
return {
|
|
662
|
-
id:
|
|
661
|
+
id: ce.id,
|
|
663
662
|
title: "sheets-sort.general.sort-desc-cur",
|
|
664
663
|
type: S.BUTTON,
|
|
665
664
|
icon: ge,
|
|
666
|
-
disabled$:
|
|
665
|
+
disabled$: D(e, { workbookTypes: [L], worksheetTypes: [N, k], rangeTypes: [O] })
|
|
667
666
|
};
|
|
668
667
|
}
|
|
669
668
|
function cr(e) {
|
|
670
669
|
return {
|
|
671
|
-
id:
|
|
670
|
+
id: ae.id,
|
|
672
671
|
title: "sheets-sort.general.sort-desc-ext",
|
|
673
672
|
type: S.BUTTON,
|
|
674
673
|
icon: Ce,
|
|
675
|
-
disabled$:
|
|
674
|
+
disabled$: D(e, { workbookTypes: [L], worksheetTypes: [N, k], rangeTypes: [O] })
|
|
676
675
|
};
|
|
677
676
|
}
|
|
678
677
|
function ar(e) {
|
|
679
678
|
return {
|
|
680
|
-
id:
|
|
679
|
+
id: le.id,
|
|
681
680
|
title: "sheets-sort.general.sort-custom",
|
|
682
681
|
type: S.BUTTON,
|
|
683
682
|
icon: me,
|
|
684
|
-
disabled$:
|
|
683
|
+
disabled$: D(e, { workbookTypes: [L], worksheetTypes: [N, k], rangeTypes: [O] })
|
|
685
684
|
};
|
|
686
685
|
}
|
|
687
686
|
const lr = {
|
|
@@ -689,23 +688,23 @@ const lr = {
|
|
|
689
688
|
[$e]: {
|
|
690
689
|
order: 3,
|
|
691
690
|
menuItemFactory: Kt,
|
|
692
|
-
[
|
|
691
|
+
[ee.id]: {
|
|
693
692
|
order: 0,
|
|
694
693
|
menuItemFactory: Jt
|
|
695
694
|
},
|
|
696
|
-
[
|
|
695
|
+
[te.id]: {
|
|
697
696
|
order: 1,
|
|
698
697
|
menuItemFactory: Qt
|
|
699
698
|
},
|
|
700
|
-
[
|
|
699
|
+
[re.id]: {
|
|
701
700
|
order: 2,
|
|
702
701
|
menuItemFactory: er
|
|
703
702
|
},
|
|
704
|
-
[
|
|
703
|
+
[ne.id]: {
|
|
705
704
|
order: 3,
|
|
706
705
|
menuItemFactory: tr
|
|
707
706
|
},
|
|
708
|
-
[
|
|
707
|
+
[oe.id]: {
|
|
709
708
|
order: 4,
|
|
710
709
|
menuItemFactory: rr
|
|
711
710
|
}
|
|
@@ -716,23 +715,23 @@ const lr = {
|
|
|
716
715
|
[Ze]: {
|
|
717
716
|
order: 0,
|
|
718
717
|
menuItemFactory: nr,
|
|
719
|
-
[
|
|
718
|
+
[ie.id]: {
|
|
720
719
|
order: 0,
|
|
721
720
|
menuItemFactory: or
|
|
722
721
|
},
|
|
723
|
-
[
|
|
722
|
+
[se.id]: {
|
|
724
723
|
order: 1,
|
|
725
724
|
menuItemFactory: ir
|
|
726
725
|
},
|
|
727
|
-
[
|
|
726
|
+
[ce.id]: {
|
|
728
727
|
order: 2,
|
|
729
728
|
menuItemFactory: sr
|
|
730
729
|
},
|
|
731
|
-
[
|
|
730
|
+
[ae.id]: {
|
|
732
731
|
order: 3,
|
|
733
732
|
menuItemFactory: cr
|
|
734
733
|
},
|
|
735
|
-
[
|
|
734
|
+
[le.id]: {
|
|
736
735
|
order: 4,
|
|
737
736
|
menuItemFactory: ar
|
|
738
737
|
}
|
|
@@ -755,6 +754,8 @@ let W = class extends qe {
|
|
|
755
754
|
}
|
|
756
755
|
_initCommands() {
|
|
757
756
|
[
|
|
757
|
+
ee,
|
|
758
|
+
te,
|
|
758
759
|
re,
|
|
759
760
|
ne,
|
|
760
761
|
oe,
|
|
@@ -762,19 +763,17 @@ let W = class extends qe {
|
|
|
762
763
|
se,
|
|
763
764
|
ce,
|
|
764
765
|
ae,
|
|
765
|
-
le
|
|
766
|
-
|
|
767
|
-
ue
|
|
768
|
-
].forEach((e) => this.disposeWithMe(this._commandService.registerCommand(e))), this.disposeWithMe(this._sheetRenderService.registerSkeletonChangingMutations(et.id));
|
|
766
|
+
le
|
|
767
|
+
].forEach((e) => this.disposeWithMe(this._commandService.registerCommand(e))), this.disposeWithMe(this._sheetRenderService.registerSkeletonChangingMutations(ot.id));
|
|
769
768
|
}
|
|
770
769
|
_initUI() {
|
|
771
770
|
this.disposeWithMe(
|
|
772
|
-
this._uiPartsService.registerComponent(
|
|
771
|
+
this._uiPartsService.registerComponent(Rt.FILTER_PANEL_EMBED_POINT, () => vt(Xt, this._injector))
|
|
773
772
|
), [
|
|
774
773
|
["CustomSortPanel", Wt],
|
|
775
|
-
[j,
|
|
774
|
+
[j, de],
|
|
776
775
|
[he, He],
|
|
777
|
-
[ge,
|
|
776
|
+
[ge, ue],
|
|
778
777
|
[Ce, Ue],
|
|
779
778
|
[me, Le]
|
|
780
779
|
].forEach(([e, t]) => {
|
|
@@ -790,7 +789,7 @@ let W = class extends qe {
|
|
|
790
789
|
id: pe,
|
|
791
790
|
draggable: !0,
|
|
792
791
|
width: hr,
|
|
793
|
-
title: { title: `${this._localeService.t("sheets-sort.general.sort-custom")}: ${
|
|
792
|
+
title: { title: `${this._localeService.t("sheets-sort.general.sort-custom")}: ${It(e.range)}` },
|
|
794
793
|
children: { label: "CustomSortPanel" },
|
|
795
794
|
destroyOnClose: !0,
|
|
796
795
|
defaultPosition: gr(),
|
|
@@ -809,7 +808,7 @@ W = ur([
|
|
|
809
808
|
w(2, ht),
|
|
810
809
|
w(3, gt),
|
|
811
810
|
w(4, Ct),
|
|
812
|
-
w(5, R(
|
|
811
|
+
w(5, R(Mt)),
|
|
813
812
|
w(6, R(P)),
|
|
814
813
|
w(7, R(g)),
|
|
815
814
|
w(8, R(Ie)),
|
|
@@ -832,7 +831,7 @@ let z = class extends Je {
|
|
|
832
831
|
Se,
|
|
833
832
|
this._config
|
|
834
833
|
);
|
|
835
|
-
this._configService.setConfig(
|
|
834
|
+
this._configService.setConfig(Nt, r);
|
|
836
835
|
}
|
|
837
836
|
onStarting() {
|
|
838
837
|
[
|
|
@@ -847,20 +846,20 @@ let z = class extends Je {
|
|
|
847
846
|
je(z, "type", Y.UNIVER_SHEET);
|
|
848
847
|
je(z, "pluginName", Sr);
|
|
849
848
|
z = fr([
|
|
850
|
-
Xe(
|
|
849
|
+
Xe(it),
|
|
851
850
|
ye(1, R(Ie)),
|
|
852
851
|
ye(2, Ke)
|
|
853
852
|
], z);
|
|
854
853
|
export {
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
854
|
+
ee as SortRangeAscCommand,
|
|
855
|
+
te as SortRangeAscExtCommand,
|
|
856
|
+
se as SortRangeAscExtInCtxMenuCommand,
|
|
857
|
+
ie as SortRangeAscInCtxMenuCommand,
|
|
858
|
+
oe as SortRangeCustomCommand,
|
|
859
|
+
le as SortRangeCustomInCtxMenuCommand,
|
|
860
|
+
re as SortRangeDescCommand,
|
|
861
|
+
ne as SortRangeDescExtCommand,
|
|
862
|
+
ae as SortRangeDescExtInCtxMenuCommand,
|
|
863
|
+
ce as SortRangeDescInCtxMenuCommand,
|
|
865
864
|
z as UniverSheetsSortUIPlugin
|
|
866
865
|
};
|