@univerjs/sheets-sort-ui 0.4.2 → 0.5.0-nightly.202411091605

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1,806 +1,849 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value;
3
- var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
4
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
5
- import { useDependency, LocaleService, Inject, Disposable, UniverInstanceType, IUniverInstanceService, ILogService, ICommandService, Tools, LocaleType, CommandType, throttle, Injector, RxDisposable, connectInjector, DependentOn, Plugin, IConfigService } from "@univerjs/core";
6
- import { SheetsSortService, SortType, SortRangeCommand, UniverSheetsSortPlugin } from "@univerjs/sheets-sort";
7
- import { serializeRange } from "@univerjs/engine-formula";
8
- import { getCurrentRangeDisable$, getCurrentExclusiveRangeInterest$, SheetsRenderService, SheetsUIPart } from "@univerjs/sheets-ui";
9
- import { IConfirmService, MenuItemType, getMenuHiddenObservable, RibbonStartGroup, ContextMenuPosition, ContextMenuGroup, ComponentManager, IMenuManagerService, IDialogService, ILayoutService, IUIPartsService } from "@univerjs/ui";
10
- import { BehaviorSubject, takeUntil } from "rxjs";
11
- import { SheetsSelectionsService, getPrimaryForRange, SetSelectionsOperation, expandToContinuousRange, getSheetCommandTarget, WorkbookEditablePermission, WorksheetSortPermission, WorksheetEditPermission, RangeProtectionPermissionEditPoint } from "@univerjs/sheets";
12
- import React, { forwardRef, useRef, createElement, useState, useCallback, useEffect } from "react";
13
- import { RadioGroup, Radio, Checkbox, DraggableList, Button, Dropdown } from "@univerjs/design";
14
- const PLUGIN_CONFIG_KEY = "sheets-sort-ui.config", defaultPluginConfig = {};
15
- var __assign = function() {
16
- return __assign = Object.assign || function(t) {
17
- for (var s, i = 1, n = arguments.length; i < n; i++) {
18
- s = arguments[i];
19
- for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && (t[p] = s[p]);
1
+ var Ze = Object.defineProperty;
2
+ var Ge = (e, t, n) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var K = (e, t, n) => Ge(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { useDependency as O, LocaleService as H, Inject as b, Disposable as We, UniverInstanceType as W, IUniverInstanceService as xe, ILogService as qe, ICommandService as Ie, Tools as Ye, LocaleType as J, CommandType as R, throttle as Xe, Injector as ye, RxDisposable as Ke, connectInjector as Je, DependentOn as Qe, Plugin as et, IConfigService as tt } from "@univerjs/core";
5
+ import { SheetsSortService as Me, SortType as k, SortRangeCommand as nt, UniverSheetsSortPlugin as rt } from "@univerjs/sheets-sort";
6
+ import { serializeRange as ot } from "@univerjs/engine-formula";
7
+ import { getCurrentRangeDisable$ as w, getCurrentExclusiveRangeInterest$ as st, SheetsRenderService as it, SheetsUIPart as ct } from "@univerjs/sheets-ui";
8
+ import { IConfirmService as at, MenuItemType as v, getMenuHiddenObservable as Re, RibbonStartGroup as lt, ContextMenuPosition as dt, ContextMenuGroup as ut, ComponentManager as mt, IMenuManagerService as ht, IDialogService as gt, ILayoutService as Ct, IUIPartsService as St } from "@univerjs/ui";
9
+ import { BehaviorSubject as ft, takeUntil as vt } from "rxjs";
10
+ import pt, { forwardRef as _, useRef as be, createElement as x, useState as A, useCallback as P, useEffect as Ee } from "react";
11
+ import { SheetsSelectionsService as _t, getPrimaryForRange as xt, SetSelectionsOperation as It, expandToContinuousRange as fe, getSheetCommandTarget as yt, WorkbookEditablePermission as N, WorksheetSortPermission as L, WorksheetEditPermission as j, RangeProtectionPermissionEditPoint as D } from "@univerjs/sheets";
12
+ import { RadioGroup as Oe, Radio as z, Checkbox as Mt, DraggableList as Rt, Button as ve, Dropdown as bt } from "@univerjs/design";
13
+ const Et = "sheets-sort-ui.config", Ot = {};
14
+ var f = function() {
15
+ return f = Object.assign || function(e) {
16
+ for (var t, n = 1, r = arguments.length; n < r; n++) {
17
+ t = arguments[n];
18
+ for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
20
19
  }
21
- return t;
22
- }, __assign.apply(this, arguments);
23
- }, __rest = function(s, e) {
24
- var t = {};
25
- for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
26
- if (s != null && typeof Object.getOwnPropertySymbols == "function")
27
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
28
- e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
29
- return t;
30
- }, IconBase = forwardRef(function(props, ref) {
31
- var icon = props.icon, id = props.id, className = props.className, extend = props.extend, restProps = __rest(props, ["icon", "id", "className", "extend"]), cls = "univerjs-icon univerjs-icon-".concat(id, " ").concat(className || "").trim(), idSuffix = useRef("_".concat(generateShortUuid()));
32
- return render(icon, "".concat(id), { defIds: icon.defIds, idSuffix: idSuffix.current }, __assign({ ref, className: cls }, restProps), extend);
20
+ return e;
21
+ }, f.apply(this, arguments);
22
+ }, Tt = function(e, t) {
23
+ var n = {};
24
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
25
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
26
+ for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
27
+ t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
28
+ return n;
29
+ }, I = _(function(e, t) {
30
+ var n = e.icon, r = e.id, o = e.className, s = e.extend, c = Tt(e, ["icon", "id", "className", "extend"]), l = "univerjs-icon univerjs-icon-".concat(r, " ").concat(o || "").trim(), u = be("_".concat(Nt()));
31
+ return Te(n, "".concat(r), { defIds: n.defIds, idSuffix: u.current }, f({ ref: t, className: l }, c), s);
33
32
  });
34
- function render(node, id, runtimeProps, rootProps, extend) {
35
- return createElement(node.tag, __assign(__assign({ key: id }, replaceRuntimeIdsAndExtInAttrs(node, runtimeProps, extend)), rootProps), (replaceRuntimeIdsInDefs(node, runtimeProps).children || []).map(function(child, index) {
36
- return render(child, "".concat(id, "-").concat(node.tag, "-").concat(index), runtimeProps, void 0, extend);
33
+ function Te(e, t, n, r, o) {
34
+ return x(e.tag, f(f({ key: t }, Pt(e, n, o)), r), (wt(e, n).children || []).map(function(s, c) {
35
+ return Te(s, "".concat(t, "-").concat(e.tag, "-").concat(c), n, void 0, o);
37
36
  }));
38
37
  }
39
- __name(render, "render");
40
- function replaceRuntimeIdsAndExtInAttrs(node, runtimeProps, extend) {
41
- var attrs = __assign({}, node.attrs);
42
- extend != null && extend.colorChannel1 && attrs.fill === "colorChannel1" && (attrs.fill = extend.colorChannel1);
43
- var defIds = runtimeProps.defIds;
44
- return !defIds || defIds.length === 0 || (node.tag === "use" && attrs["xlink:href"] && (attrs["xlink:href"] = attrs["xlink:href"] + runtimeProps.idSuffix), Object.entries(attrs).forEach(function(_a4) {
45
- var key = _a4[0], value = _a4[1];
46
- typeof value == "string" && (attrs[key] = value.replace(/url\(#(.*)\)/, "url(#$1".concat(runtimeProps.idSuffix, ")")));
47
- })), attrs;
38
+ function Pt(e, t, n) {
39
+ var r = f({}, e.attrs);
40
+ n != null && n.colorChannel1 && r.fill === "colorChannel1" && (r.fill = n.colorChannel1);
41
+ var o = t.defIds;
42
+ return !o || o.length === 0 || (e.tag === "use" && r["xlink:href"] && (r["xlink:href"] = r["xlink:href"] + t.idSuffix), Object.entries(r).forEach(function(s) {
43
+ var c = s[0], l = s[1];
44
+ typeof l == "string" && (r[c] = l.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
45
+ })), r;
48
46
  }
49
- __name(replaceRuntimeIdsAndExtInAttrs, "replaceRuntimeIdsAndExtInAttrs");
50
- function replaceRuntimeIdsInDefs(node, runtimeProps) {
51
- var _a4, defIds = runtimeProps.defIds;
52
- return !defIds || defIds.length === 0 ? node : node.tag === "defs" && (!((_a4 = node.children) === null || _a4 === void 0) && _a4.length) ? __assign(__assign({}, node), { children: node.children.map(function(child) {
53
- return typeof child.attrs.id == "string" && defIds && defIds.indexOf(child.attrs.id) > -1 ? __assign(__assign({}, child), { attrs: __assign(__assign({}, child.attrs), { id: child.attrs.id + runtimeProps.idSuffix }) }) : child;
54
- }) }) : node;
47
+ function wt(e, t) {
48
+ var n, r = t.defIds;
49
+ 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) {
50
+ return typeof o.attrs.id == "string" && r && r.indexOf(o.attrs.id) > -1 ? f(f({}, o), { attrs: f(f({}, o.attrs), { id: o.attrs.id + t.idSuffix }) }) : o;
51
+ }) }) : e;
55
52
  }
56
- __name(replaceRuntimeIdsInDefs, "replaceRuntimeIdsInDefs");
57
- function generateShortUuid() {
53
+ function Nt() {
58
54
  return Math.random().toString(36).substring(2, 8);
59
55
  }
60
- __name(generateShortUuid, "generateShortUuid");
61
- IconBase.displayName = "UniverIcon";
62
- var element$9 = { tag: "svg", attrs: { 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.67983 1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022 7.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.1916 7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212 1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967zM5.1846 1.86439C4.8641.989866 3.62725.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655 2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055 3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655 7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439zM4.98996 4.82056L4.24567 2.78971 3.50138 4.82056H4.98996z", fillRule: "evenodd", clipRule: "evenodd" } }] }, AscendingSingle = forwardRef(function(props, ref) {
63
- return createElement(IconBase, Object.assign({}, props, {
56
+ I.displayName = "UniverIcon";
57
+ var Lt = { tag: "svg", attrs: { 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.67983 1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022 7.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.1916 7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212 1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967zM5.1846 1.86439C4.8641.989866 3.62725.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655 2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055 3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655 7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439zM4.98996 4.82056L4.24567 2.78971 3.50138 4.82056H4.98996z", fillRule: "evenodd", clipRule: "evenodd" } }] }, ee = _(function(e, t) {
58
+ return x(I, Object.assign({}, e, {
64
59
  id: "ascending- single",
65
- ref,
66
- icon: element$9
60
+ ref: t,
61
+ icon: Lt
67
62
  }));
68
63
  });
69
- AscendingSingle.displayName = "AscendingSingle";
70
- var element$8 = { tag: "svg", attrs: { 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" } }] }, CheckMarkSingle = forwardRef(function(props, ref) {
71
- return createElement(IconBase, Object.assign({}, props, {
64
+ ee.displayName = "AscendingSingle";
65
+ var jt = { tag: "svg", attrs: { 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" } }] }, Pe = _(function(e, t) {
66
+ return x(I, Object.assign({}, e, {
72
67
  id: "check-mark-single",
73
- ref,
74
- icon: element$8
68
+ ref: t,
69
+ icon: jt
75
70
  }));
76
71
  });
77
- CheckMarkSingle.displayName = "CheckMarkSingle";
78
- var element$7 = { tag: "svg", attrs: { 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.5574 8.84322 12.5574 8.57458 12.2888 8.57457 11.9574L8.57439 7.79509C8.57438 7.46372 8.84299 7.19508 9.17436 7.19507 9.3281 7.19493 9.48196 7.25351 9.59925 7.3708L11.3465 9.11808C11.5808 9.3524 11.5808 9.7323 11.3465 9.96661 11.1122 10.2009 10.7323 10.2009 10.498 9.96661L9.77445 9.24306zM6.22584 10.5094L6.22572 7.79514C6.22571 7.46377 6.49433 7.19513 6.8257 7.19512 7.15707 7.1951 7.42571 7.46372 7.42572 7.79509L7.4259 11.9574C7.42592 12.2888 7.1573 12.5574 6.82593 12.5574 6.67228 12.5575 6.51828 12.4989 6.40104 12.3817L4.65376 10.6344C4.41945 10.4001 4.41945 10.0202 4.65376 9.78588 4.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" } }] }, CustomSortSingle = forwardRef(function(props, ref) {
79
- return createElement(IconBase, Object.assign({}, props, {
72
+ Pe.displayName = "CheckMarkSingle";
73
+ var Dt = { tag: "svg", attrs: { 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.5574 8.84322 12.5574 8.57458 12.2888 8.57457 11.9574L8.57439 7.79509C8.57438 7.46372 8.84299 7.19508 9.17436 7.19507 9.3281 7.19493 9.48196 7.25351 9.59925 7.3708L11.3465 9.11808C11.5808 9.3524 11.5808 9.7323 11.3465 9.96661 11.1122 10.2009 10.7323 10.2009 10.498 9.96661L9.77445 9.24306zM6.22584 10.5094L6.22572 7.79514C6.22571 7.46377 6.49433 7.19513 6.8257 7.19512 7.15707 7.1951 7.42571 7.46372 7.42572 7.79509L7.4259 11.9574C7.42592 12.2888 7.1573 12.5574 6.82593 12.5574 6.67228 12.5575 6.51828 12.4989 6.40104 12.3817L4.65376 10.6344C4.41945 10.4001 4.41945 10.0202 4.65376 9.78588 4.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" } }] }, we = _(function(e, t) {
74
+ return x(I, Object.assign({}, e, {
80
75
  id: "custom-sort-single",
81
- ref,
82
- icon: element$7
76
+ ref: t,
77
+ icon: Dt
83
78
  }));
84
79
  });
85
- CustomSortSingle.displayName = "CustomSortSingle";
86
- var element$6 = { tag: "svg", attrs: { 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.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.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.64443 14.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" } }] }, DeleteEmptySingle = forwardRef(function(props, ref) {
87
- return createElement(IconBase, Object.assign({}, props, {
80
+ we.displayName = "CustomSortSingle";
81
+ var kt = { tag: "svg", attrs: { 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.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.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.64443 14.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" } }] }, Ne = _(function(e, t) {
82
+ return x(I, Object.assign({}, e, {
88
83
  id: "delete-empty-single",
89
- ref,
90
- icon: element$6
84
+ ref: t,
85
+ icon: kt
91
86
  }));
92
87
  });
93
- DeleteEmptySingle.displayName = "DeleteEmptySingle";
94
- var element$5 = { tag: "svg", attrs: { 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.67983 1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022 7.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.1916 7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212 1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967zM5.1846 1.86439C4.8641.989866 3.62725.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655 2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055 3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655 7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439zM4.98996 4.82056L4.24567 2.78971 3.50138 4.82056H4.98996z", fillRule: "evenodd", clipRule: "evenodd" } }] }, DescendingSingle = forwardRef(function(props, ref) {
95
- return createElement(IconBase, Object.assign({}, props, {
88
+ Ne.displayName = "DeleteEmptySingle";
89
+ var Ht = { tag: "svg", attrs: { 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.67983 1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022 7.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.1916 7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212 1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967zM5.1846 1.86439C4.8641.989866 3.62725.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655 2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055 3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655 7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439zM4.98996 4.82056L4.24567 2.78971 3.50138 4.82056H4.98996z", fillRule: "evenodd", clipRule: "evenodd" } }] }, te = _(function(e, t) {
90
+ return x(I, Object.assign({}, e, {
96
91
  id: "descending-single",
97
- ref,
98
- icon: element$5
92
+ ref: t,
93
+ icon: Ht
99
94
  }));
100
95
  });
101
- DescendingSingle.displayName = "DescendingSingle";
102
- var element$4 = { tag: "svg", attrs: { 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" } }] }, ExpandAscendingSingle = forwardRef(function(props, ref) {
103
- return createElement(IconBase, Object.assign({}, props, {
96
+ te.displayName = "DescendingSingle";
97
+ var $t = { tag: "svg", attrs: { 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" } }] }, Le = _(function(e, t) {
98
+ return x(I, Object.assign({}, e, {
104
99
  id: "expand-ascending-single",
105
- ref,
106
- icon: element$4
100
+ ref: t,
101
+ icon: $t
107
102
  }));
108
103
  });
109
- ExpandAscendingSingle.displayName = "ExpandAscendingSingle";
110
- var element$3 = { tag: "svg", attrs: { 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" } }] }, ExpandDescendingSingle = forwardRef(function(props, ref) {
111
- return createElement(IconBase, Object.assign({}, props, {
104
+ Le.displayName = "ExpandAscendingSingle";
105
+ var Ut = { tag: "svg", attrs: { 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" } }] }, je = _(function(e, t) {
106
+ return x(I, Object.assign({}, e, {
112
107
  id: "expand-descending-single",
113
- ref,
114
- icon: element$3
108
+ ref: t,
109
+ icon: Ut
115
110
  }));
116
111
  });
117
- ExpandDescendingSingle.displayName = "ExpandDescendingSingle";
118
- var element$2 = { tag: "svg", attrs: { 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" } }] }, IncreaseSingle = forwardRef(function(props, ref) {
119
- return createElement(IconBase, Object.assign({}, props, {
112
+ je.displayName = "ExpandDescendingSingle";
113
+ var At = { tag: "svg", attrs: { 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 = _(function(e, t) {
114
+ return x(I, Object.assign({}, e, {
120
115
  id: "increase-single",
121
- ref,
122
- icon: element$2
116
+ ref: t,
117
+ icon: At
123
118
  }));
124
119
  });
125
- IncreaseSingle.displayName = "IncreaseSingle";
126
- var element$1 = { tag: "svg", attrs: { 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" } }] }, MoreDownSingle = forwardRef(function(props, ref) {
127
- return createElement(IconBase, Object.assign({}, props, {
120
+ Q.displayName = "IncreaseSingle";
121
+ var Bt = { tag: "svg", attrs: { 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" } }] }, De = _(function(e, t) {
122
+ return x(I, Object.assign({}, e, {
128
123
  id: "more-down-single",
129
- ref,
130
- icon: element$1
124
+ ref: t,
125
+ icon: Bt
131
126
  }));
132
127
  });
133
- MoreDownSingle.displayName = "MoreDownSingle";
134
- var element = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_622_8", style: { maskType: "alpha" }, 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 4 7 3.44772 6.55228 3 6 3 5.44772 3 5 3.44772 5 4 5 4.55228 5.44772 5 6 5zM6 9C6.55228 9 7 8.55229 7 8 7 7.44772 6.55228 7 6 7 5.44772 7 5 7.44772 5 8 5 8.55229 5.44772 9 6 9zM7 12C7 12.5523 6.55228 13 6 13 5.44772 13 5 12.5523 5 12 5 11.4477 5.44772 11 6 11 6.55228 11 7 11.4477 7 12zM10 5C10.5523 5 11 4.55228 11 4 11 3.44772 10.5523 3 10 3 9.44771 3 9 3.44772 9 4 9 4.55228 9.44771 5 10 5zM11 8C11 8.55229 10.5523 9 10 9 9.44771 9 9 8.55229 9 8 9 7.44772 9.44771 7 10 7 10.5523 7 11 7.44772 11 8zM10 13C10.5523 13 11 12.5523 11 12 11 11.4477 10.5523 11 10 11 9.44771 11 9 11.4477 9 12 9 12.5523 9.44771 13 10 13z" } }] }] }, SequenceSingle = forwardRef(function(props, ref) {
135
- return createElement(IconBase, Object.assign({}, props, {
128
+ De.displayName = "MoreDownSingle";
129
+ var Ft = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_622_8", style: { maskType: "alpha" }, 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 4 7 3.44772 6.55228 3 6 3 5.44772 3 5 3.44772 5 4 5 4.55228 5.44772 5 6 5zM6 9C6.55228 9 7 8.55229 7 8 7 7.44772 6.55228 7 6 7 5.44772 7 5 7.44772 5 8 5 8.55229 5.44772 9 6 9zM7 12C7 12.5523 6.55228 13 6 13 5.44772 13 5 12.5523 5 12 5 11.4477 5.44772 11 6 11 6.55228 11 7 11.4477 7 12zM10 5C10.5523 5 11 4.55228 11 4 11 3.44772 10.5523 3 10 3 9.44771 3 9 3.44772 9 4 9 4.55228 9.44771 5 10 5zM11 8C11 8.55229 10.5523 9 10 9 9.44771 9 9 8.55229 9 8 9 7.44772 9.44771 7 10 7 10.5523 7 11 7.44772 11 8zM10 13C10.5523 13 11 12.5523 11 12 11 11.4477 10.5523 11 10 11 9.44771 11 9 11.4477 9 12 9 12.5523 9.44771 13 10 13z" } }] }] }, ke = _(function(e, t) {
130
+ return x(I, Object.assign({}, e, {
136
131
  id: "sequence-single",
137
- ref,
138
- icon: element
132
+ ref: t,
133
+ icon: Ft
139
134
  }));
140
135
  });
141
- SequenceSingle.displayName = "SequenceSingle";
142
- const extendConfirmContent = "univer-extend-confirm-content", extendConfirmRadioGroup = "univer-extend-confirm-radio-group", customSortPanelContainer = "univer-custom-sort-panel-container", customSortPanelExt = "univer-custom-sort-panel-ext", addCondition = "univer-add-condition", addConditionText = "univer-add-condition-text", addConditionDisable = "univer-add-condition-disable", customSortPanelFooter = "univer-custom-sort-panel-footer", customSortPanelFooterBtn = "univer-custom-sort-panel-footer-btn", customSortPanelItem = "univer-custom-sort-panel-item", customSortPanelItemHead = "univer-custom-sort-panel-item-head", customSortPanelItemHandler = "univer-custom-sort-panel-item-handler", customSortPanelItemRemove = "univer-custom-sort-panel-item-remove", customSortPanelItemColumnInput = "univer-custom-sort-panel-item-column-input", customSortPanelItemColumnInputDropdown = "univer-custom-sort-panel-item-column-input-dropdown", customSortPanelItemColumnInputText = "univer-custom-sort-panel-item-column-input-text", customSortPanelItemOrderRadio = "univer-custom-sort-panel-item-order-radio", customSortPanelItemOrderRadioCn = "univer-custom-sort-panel-item-order-radio-cn", conditionList = "univer-condition-list", embedSortBtnContainer = "univer-embed-sort-btn-container", embedSortBtn = "univer-embed-sort-btn", embedSortBtnAsc = "univer-embed-sort-btn-asc", embedSortBtnDesc = "univer-embed-sort-btn-desc", embedSortBtnIcon = "univer-embed-sort-btn-icon", customSortColMenu = "univer-custom-sort-col-menu", customSortColMenuItem = "univer-custom-sort-col-menu-item", customSortColMenuItemDesc = "univer-custom-sort-col-menu-item-desc", styles = {
143
- extendConfirmContent,
144
- extendConfirmRadioGroup,
145
- customSortPanelContainer,
146
- customSortPanelExt,
147
- addCondition,
148
- addConditionText,
149
- addConditionDisable,
150
- customSortPanelFooter,
151
- customSortPanelFooterBtn,
152
- customSortPanelItem,
153
- customSortPanelItemHead,
154
- customSortPanelItemHandler,
155
- customSortPanelItemRemove,
156
- customSortPanelItemColumnInput,
157
- customSortPanelItemColumnInputDropdown,
158
- customSortPanelItemColumnInputText,
159
- customSortPanelItemOrderRadio,
160
- customSortPanelItemOrderRadioCn,
161
- conditionList,
162
- embedSortBtnContainer,
163
- embedSortBtn,
164
- embedSortBtnAsc,
165
- embedSortBtnDesc,
166
- embedSortBtnIcon,
167
- customSortColMenu,
168
- customSortColMenuItem,
169
- customSortColMenuItemDesc
170
- }, ExtendConfirm = /* @__PURE__ */ __name((props) => {
171
- const [extend, setExtend] = useState("0"), localeService = useDependency(LocaleService);
172
- return /* @__PURE__ */ React.createElement("div", { className: styles.extendConfirmContent }, /* @__PURE__ */ React.createElement("div", { className: "extend-confirm-desc" }, localeService.t("sheets-sort.dialog.sort-reminder-desc")), /* @__PURE__ */ React.createElement(
173
- RadioGroup,
174
- {
175
- className: styles.extendConfirmRadioGroup,
176
- value: extend,
177
- direction: "vertical",
178
- onChange: /* @__PURE__ */ __name((value) => {
179
- setExtend(value), props.onChange(value);
180
- }, "onChange")
181
- },
182
- /* @__PURE__ */ React.createElement(
183
- Radio,
136
+ ke.displayName = "SequenceSingle";
137
+ var He = { exports: {} }, q = {};
138
+ /**
139
+ * @license React
140
+ * react-jsx-runtime.production.min.js
141
+ *
142
+ * Copyright (c) Facebook, Inc. and its affiliates.
143
+ *
144
+ * This source code is licensed under the MIT license found in the
145
+ * LICENSE file in the root directory of this source tree.
146
+ */
147
+ var Vt = pt, zt = Symbol.for("react.element"), Zt = Symbol.for("react.fragment"), Gt = Object.prototype.hasOwnProperty, Wt = Vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, qt = { key: !0, ref: !0, __self: !0, __source: !0 };
148
+ function $e(e, t, n) {
149
+ var r, o = {}, s = null, c = null;
150
+ n !== void 0 && (s = "" + n), t.key !== void 0 && (s = "" + t.key), t.ref !== void 0 && (c = t.ref);
151
+ for (r in t) Gt.call(t, r) && !qt.hasOwnProperty(r) && (o[r] = t[r]);
152
+ if (e && e.defaultProps) for (r in t = e.defaultProps, t) o[r] === void 0 && (o[r] = t[r]);
153
+ return { $$typeof: zt, type: e, key: s, ref: c, props: o, _owner: Wt.current };
154
+ }
155
+ q.Fragment = Zt;
156
+ q.jsx = $e;
157
+ q.jsxs = $e;
158
+ He.exports = q;
159
+ var i = He.exports;
160
+ const Yt = "univer-extend-confirm-content", Xt = "univer-extend-confirm-radio-group", Kt = "univer-custom-sort-panel-container", Jt = "univer-custom-sort-panel-ext", Qt = "univer-add-condition", en = "univer-add-condition-text", tn = "univer-add-condition-disable", nn = "univer-custom-sort-panel-footer", rn = "univer-custom-sort-panel-footer-btn", on = "univer-custom-sort-panel-item", sn = "univer-custom-sort-panel-item-head", cn = "univer-custom-sort-panel-item-handler", an = "univer-custom-sort-panel-item-remove", ln = "univer-custom-sort-panel-item-column-input", dn = "univer-custom-sort-panel-item-column-input-dropdown", un = "univer-custom-sort-panel-item-column-input-text", mn = "univer-custom-sort-panel-item-order-radio", hn = "univer-custom-sort-panel-item-order-radio-cn", gn = "univer-condition-list", Cn = "univer-embed-sort-btn-container", Sn = "univer-embed-sort-btn", fn = "univer-embed-sort-btn-asc", vn = "univer-embed-sort-btn-desc", pn = "univer-embed-sort-btn-icon", _n = "univer-custom-sort-col-menu", xn = "univer-custom-sort-col-menu-item", In = "univer-custom-sort-col-menu-item-desc", a = {
161
+ extendConfirmContent: Yt,
162
+ extendConfirmRadioGroup: Xt,
163
+ customSortPanelContainer: Kt,
164
+ customSortPanelExt: Jt,
165
+ addCondition: Qt,
166
+ addConditionText: en,
167
+ addConditionDisable: tn,
168
+ customSortPanelFooter: nn,
169
+ customSortPanelFooterBtn: rn,
170
+ customSortPanelItem: on,
171
+ customSortPanelItemHead: sn,
172
+ customSortPanelItemHandler: cn,
173
+ customSortPanelItemRemove: an,
174
+ customSortPanelItemColumnInput: ln,
175
+ customSortPanelItemColumnInputDropdown: dn,
176
+ customSortPanelItemColumnInputText: un,
177
+ customSortPanelItemOrderRadio: mn,
178
+ customSortPanelItemOrderRadioCn: hn,
179
+ conditionList: gn,
180
+ embedSortBtnContainer: Cn,
181
+ embedSortBtn: Sn,
182
+ embedSortBtnAsc: fn,
183
+ embedSortBtnDesc: vn,
184
+ embedSortBtnIcon: pn,
185
+ customSortColMenu: _n,
186
+ customSortColMenuItem: xn,
187
+ customSortColMenuItemDesc: In
188
+ }, yn = (e) => {
189
+ const [t, n] = A("0"), r = O(H);
190
+ return /* @__PURE__ */ i.jsxs("div", { className: a.extendConfirmContent, children: [
191
+ /* @__PURE__ */ i.jsx("div", { className: "extend-confirm-desc", children: r.t("sheets-sort.dialog.sort-reminder-desc") }),
192
+ /* @__PURE__ */ i.jsxs(
193
+ Oe,
184
194
  {
185
- value: "0"
186
- },
187
- localeService.t("sheets-sort.dialog.sort-reminder-no")
188
- ),
189
- /* @__PURE__ */ React.createElement(Radio, { value: "1" }, localeService.t("sheets-sort.dialog.sort-reminder-ext"))
190
- ));
191
- }, "ExtendConfirm");
192
- var __defProp$2 = Object.defineProperty, __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor, __decorateClass$2 = /* @__PURE__ */ __name((decorators, target, key, kind) => {
193
- for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
194
- (decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
195
- return kind && result && __defProp$2(target, key, result), result;
196
- }, "__decorateClass$2"), __decorateParam$2 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$2");
197
- const SORT_ERROR_MESSAGE = {
195
+ className: a.extendConfirmRadioGroup,
196
+ value: t,
197
+ direction: "vertical",
198
+ onChange: (o) => {
199
+ n(o), e.onChange(o);
200
+ },
201
+ children: [
202
+ /* @__PURE__ */ i.jsx(
203
+ z,
204
+ {
205
+ value: "0",
206
+ children: r.t("sheets-sort.dialog.sort-reminder-no")
207
+ }
208
+ ),
209
+ /* @__PURE__ */ i.jsx(z, { value: "1", children: r.t("sheets-sort.dialog.sort-reminder-ext") })
210
+ ]
211
+ }
212
+ )
213
+ ] });
214
+ };
215
+ var Mn = Object.defineProperty, Rn = Object.getOwnPropertyDescriptor, bn = (e, t, n, r) => {
216
+ for (var o = r > 1 ? void 0 : r ? Rn(t, n) : t, s = e.length - 1, c; s >= 0; s--)
217
+ (c = e[s]) && (o = (r ? c(t, n, o) : c(o)) || o);
218
+ return r && o && Mn(t, n, o), o;
219
+ }, T = (e, t) => (n, r) => t(n, r, e);
220
+ const V = {
198
221
  MERGE_ERROR: "sheets-sort.error.merge-size",
199
222
  EMPTY_ERROR: "sheets-sort.error.empty",
200
223
  SINGLE_ERROR: "sheets-sort.error.single",
201
224
  FORMULA_ARRAY: "sheets-sort.error.formula-array"
202
225
  };
203
- var _a;
204
- let SheetsSortUIService = (_a = class extends Disposable {
205
- constructor(_univerInstanceService, _confirmService, _logService, _selectionManagerService, _sheetsSortService, _localeService, _commandService) {
226
+ let g = class extends We {
227
+ constructor(t, n, r, o, s, c, l) {
206
228
  super();
207
- __publicField(this, "_customSortState$", new BehaviorSubject(null));
208
- __publicField(this, "customSortState$", this._customSortState$.asObservable());
209
- this._univerInstanceService = _univerInstanceService, this._confirmService = _confirmService, this._logService = _logService, this._selectionManagerService = _selectionManagerService, this._sheetsSortService = _sheetsSortService, this._localeService = _localeService, this._commandService = _commandService;
229
+ K(this, "_customSortState$", new ft(null));
230
+ K(this, "customSortState$", this._customSortState$.asObservable());
231
+ this._univerInstanceService = t, this._confirmService = n, this._logService = r, this._selectionManagerService = o, this._sheetsSortService = s, this._localeService = c, this._commandService = l;
210
232
  }
211
- async triggerSortDirectly(asc, extend, sheetRangeLocation) {
212
- const location = sheetRangeLocation || await this._detectSortLocation(extend);
213
- if (!location || !this._check(location))
233
+ async triggerSortDirectly(t, n, r) {
234
+ const o = r || await this._detectSortLocation(n);
235
+ if (!o || !this._check(o))
214
236
  return !1;
215
- const sortOption = {
237
+ const c = {
216
238
  orderRules: [{
217
- type: asc ? SortType.ASC : SortType.DESC,
218
- colIndex: location.colIndex
239
+ type: t ? k.ASC : k.DESC,
240
+ colIndex: o.colIndex
219
241
  }],
220
- range: location.range
242
+ range: o.range
221
243
  };
222
- return this._sheetsSortService.applySort(sortOption, location.unitId, location.subUnitId), !0;
244
+ return this._sheetsSortService.applySort(c, o.unitId, o.subUnitId), !0;
223
245
  }
224
246
  async triggerSortCustomize() {
225
- const location = await this._detectSortLocation();
226
- return !location || !this._check(location) ? !1 : (this.showCustomSortPanel(location), !0);
247
+ const t = await this._detectSortLocation();
248
+ return !t || !this._check(t) ? !1 : (this.showCustomSortPanel(t), !0);
227
249
  }
228
250
  customSortState() {
229
251
  return this._customSortState$.getValue();
230
252
  }
231
- getTitles(hasTitle) {
232
- var _a4, _b;
233
- const location = (_a4 = this.customSortState()) == null ? void 0 : _a4.location;
234
- if (!location)
253
+ getTitles(t) {
254
+ var u, m;
255
+ const n = (u = this.customSortState()) == null ? void 0 : u.location;
256
+ if (!n)
235
257
  return [];
236
- const { unitId, subUnitId, range } = location, worksheet = (_b = this._univerInstanceService.getUnit(unitId)) == null ? void 0 : _b.getSheetBySheetId(subUnitId);
237
- if (!worksheet)
258
+ const { unitId: r, subUnitId: o, range: s } = n, c = (m = this._univerInstanceService.getUnit(r)) == null ? void 0 : m.getSheetBySheetId(o);
259
+ if (!c)
238
260
  return [];
239
- const colTranslator = colIndexTranslator(this._localeService);
261
+ const l = En(this._localeService);
240
262
  return Array.from(
241
- { length: range.endColumn - range.startColumn + 1 },
242
- (_, i) => {
243
- var _a5;
244
- const cellValue = (_a5 = worksheet.getCell(range.startRow, i + range.startColumn)) == null ? void 0 : _a5.v;
263
+ { length: s.endColumn - s.startColumn + 1 },
264
+ (y, S) => {
265
+ var C;
266
+ const E = (C = c.getCell(s.startRow, S + s.startColumn)) == null ? void 0 : C.v;
245
267
  return {
246
- index: i + range.startColumn,
247
- label: hasTitle ? `${cellValue != null ? cellValue : colTranslator(i + range.startColumn)}` : colTranslator(i + range.startColumn)
268
+ index: S + s.startColumn,
269
+ label: t ? `${E != null ? E : l(S + s.startColumn)}` : l(S + s.startColumn)
248
270
  };
249
271
  }
250
272
  );
251
273
  }
252
- setSelection(unitId, subUnitId, range) {
253
- var _a4;
254
- const worksheet = (_a4 = this._univerInstanceService.getUnit(unitId)) == null ? void 0 : _a4.getSheetBySheetId(subUnitId);
255
- if (!worksheet)
274
+ setSelection(t, n, r) {
275
+ var c;
276
+ const o = (c = this._univerInstanceService.getUnit(t)) == null ? void 0 : c.getSheetBySheetId(n);
277
+ if (!o)
256
278
  return;
257
- const setSelectionsOperationParams = {
258
- unitId,
259
- subUnitId,
260
- selections: [{ range, primary: getPrimaryForRange(range, worksheet), style: null }]
279
+ const s = {
280
+ unitId: t,
281
+ subUnitId: n,
282
+ selections: [{ range: r, primary: xt(r, o), style: null }]
261
283
  };
262
- this._commandService.executeCommand(SetSelectionsOperation.id, setSelectionsOperationParams);
284
+ this._commandService.executeCommand(It.id, s);
263
285
  }
264
- async showCheckError(content) {
286
+ async showCheckError(t) {
265
287
  return await this._confirmService.confirm({
266
288
  id: "sort-range-check-error",
267
289
  title: {
268
290
  title: this._localeService.t("info.tooltip")
269
291
  },
270
292
  children: {
271
- title: /* @__PURE__ */ React.createElement("div", null, this._localeService.t(content))
293
+ title: /* @__PURE__ */ i.jsx("div", { children: this._localeService.t(t) })
272
294
  }
273
295
  });
274
296
  }
275
297
  async showExtendConfirm() {
276
- let shouldExtend = !1;
298
+ let t = !1;
277
299
  return await this._confirmService.confirm({
278
300
  id: "extend-sort-range-dialog",
279
301
  title: {
280
302
  title: this._localeService.t("sheets-sort.dialog.sort-reminder")
281
303
  },
282
304
  children: {
283
- title: /* @__PURE__ */ React.createElement(
284
- ExtendConfirm,
305
+ title: /* @__PURE__ */ i.jsx(
306
+ yn,
285
307
  {
286
- onChange: /* @__PURE__ */ __name((value) => {
287
- shouldExtend = value === "1";
288
- }, "onChange")
308
+ onChange: (r) => {
309
+ t = r === "1";
310
+ }
289
311
  }
290
312
  )
291
313
  },
292
314
  width: 400
293
- }) ? shouldExtend ? "extend" : "keep" : "cancel";
315
+ }) ? t ? "extend" : "keep" : "cancel";
294
316
  }
295
- showCustomSortPanel(location) {
296
- this._customSortState$.next({ location, show: !0 });
317
+ showCustomSortPanel(t) {
318
+ this._customSortState$.next({ location: t, show: !0 });
297
319
  }
298
320
  closeCustomSortPanel() {
299
321
  this._customSortState$.next({ show: !1 });
300
322
  }
301
- _check(location) {
302
- return this._sheetsSortService.singleCheck(location) ? this._sheetsSortService.mergeCheck(location) ? this._sheetsSortService.formulaCheck(location) ? this._sheetsSortService.emptyCheck(location) ? !0 : (this.showCheckError(SORT_ERROR_MESSAGE.EMPTY_ERROR), !1) : (this.showCheckError(SORT_ERROR_MESSAGE.FORMULA_ARRAY), !1) : (this.showCheckError(SORT_ERROR_MESSAGE.MERGE_ERROR), !1) : (this.showCheckError(SORT_ERROR_MESSAGE.SINGLE_ERROR), !1);
323
+ _check(t) {
324
+ return this._sheetsSortService.singleCheck(t) ? this._sheetsSortService.mergeCheck(t) ? this._sheetsSortService.formulaCheck(t) ? this._sheetsSortService.emptyCheck(t) ? !0 : (this.showCheckError(V.EMPTY_ERROR), !1) : (this.showCheckError(V.FORMULA_ARRAY), !1) : (this.showCheckError(V.MERGE_ERROR), !1) : (this.showCheckError(V.SINGLE_ERROR), !1);
303
325
  }
304
- async _detectSortLocation(extend) {
305
- const workbook = this._univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET), worksheet = workbook.getActiveSheet(), unitId = workbook.getUnitId(), subUnitId = worksheet.getSheetId(), selection = this._selectionManagerService.getCurrentLastSelection();
306
- if (!selection)
326
+ async _detectSortLocation(t) {
327
+ const n = this._univerInstanceService.getCurrentUnitForType(W.UNIVER_SHEET), r = n.getActiveSheet(), o = n.getUnitId(), s = r.getSheetId(), c = this._selectionManagerService.getCurrentLastSelection();
328
+ if (!c)
307
329
  return null;
308
- let range;
309
- if (extend === !0)
310
- range = expandToContinuousRange(selection.range, { up: !0, down: !0, left: !0, right: !0 }, worksheet), this.setSelection(unitId, subUnitId, range);
311
- else if (extend === !1)
312
- range = selection.range;
330
+ let l;
331
+ if (t === !0)
332
+ l = fe(c.range, { up: !0, down: !0, left: !0, right: !0 }, r), this.setSelection(o, s, l);
333
+ else if (t === !1)
334
+ l = c.range;
313
335
  else {
314
- const confirmRes = await this.showExtendConfirm();
315
- if (confirmRes === "cancel")
336
+ const u = await this.showExtendConfirm();
337
+ if (u === "cancel")
316
338
  return null;
317
- confirmRes === "keep" ? range = selection.range : (range = expandToContinuousRange(selection.range, { up: !0, down: !0, left: !0, right: !0 }, worksheet), this.setSelection(unitId, subUnitId, range));
339
+ u === "keep" ? l = c.range : (l = fe(c.range, { up: !0, down: !0, left: !0, right: !0 }, r), this.setSelection(o, s, l));
318
340
  }
319
341
  return {
320
- range,
321
- unitId,
322
- subUnitId,
323
- colIndex: selection.primary.actualColumn
342
+ range: l,
343
+ unitId: o,
344
+ subUnitId: s,
345
+ colIndex: c.primary.actualColumn
324
346
  };
325
347
  }
326
- }, __name(_a, "SheetsSortUIService"), _a);
327
- SheetsSortUIService = __decorateClass$2([
328
- __decorateParam$2(0, IUniverInstanceService),
329
- __decorateParam$2(1, IConfirmService),
330
- __decorateParam$2(2, ILogService),
331
- __decorateParam$2(3, Inject(SheetsSelectionsService)),
332
- __decorateParam$2(4, Inject(SheetsSortService)),
333
- __decorateParam$2(5, Inject(LocaleService)),
334
- __decorateParam$2(6, ICommandService)
335
- ], SheetsSortUIService);
336
- function colIndexTranslator(localeService) {
337
- return (colIndex) => {
338
- const colName = Tools.chatAtABC(colIndex);
339
- switch (localeService.getCurrentLocale()) {
340
- case LocaleType.ZH_CN:
341
- return `"${colName}"列`;
342
- case LocaleType.EN_US:
343
- return `Column "${colName}"`;
348
+ };
349
+ g = bn([
350
+ T(0, xe),
351
+ T(1, at),
352
+ T(2, qe),
353
+ T(3, b(_t)),
354
+ T(4, b(Me)),
355
+ T(5, b(H)),
356
+ T(6, Ie)
357
+ ], g);
358
+ function En(e) {
359
+ return (t) => {
360
+ const n = Ye.chatAtABC(t);
361
+ switch (e.getCurrentLocale()) {
362
+ case J.ZH_CN:
363
+ return `"${n}"列`;
364
+ case J.EN_US:
365
+ return `Column "${n}"`;
344
366
  default:
345
- return `Column "${colName}"`;
367
+ return `Column "${n}"`;
346
368
  }
347
369
  };
348
370
  }
349
- __name(colIndexTranslator, "colIndexTranslator");
350
- const SortRangeAscCommand = {
371
+ const ne = {
351
372
  id: "sheet.command.sort-range-asc",
352
- type: CommandType.COMMAND,
353
- handler: /* @__PURE__ */ __name(async (accessor) => await accessor.get(SheetsSortUIService).triggerSortDirectly(!0, !1), "handler")
354
- }, SortRangeAscExtCommand = {
373
+ type: R.COMMAND,
374
+ handler: async (e) => await e.get(g).triggerSortDirectly(!0, !1)
375
+ }, re = {
355
376
  id: "sheet.command.sort-range-asc-ext",
356
- type: CommandType.COMMAND,
357
- handler: /* @__PURE__ */ __name(async (accessor) => await accessor.get(SheetsSortUIService).triggerSortDirectly(!0, !0), "handler")
358
- }, SortRangeDescCommand = {
377
+ type: R.COMMAND,
378
+ handler: async (e) => await e.get(g).triggerSortDirectly(!0, !0)
379
+ }, oe = {
359
380
  id: "sheet.command.sort-range-desc",
360
- type: CommandType.COMMAND,
361
- handler: /* @__PURE__ */ __name(async (accessor) => await accessor.get(SheetsSortUIService).triggerSortDirectly(!1, !1), "handler")
362
- }, SortRangeDescExtCommand = {
381
+ type: R.COMMAND,
382
+ handler: async (e) => await e.get(g).triggerSortDirectly(!1, !1)
383
+ }, se = {
363
384
  id: "sheet.command.sort-range-desc-ext",
364
- type: CommandType.COMMAND,
365
- handler: /* @__PURE__ */ __name(async (accessor) => await accessor.get(SheetsSortUIService).triggerSortDirectly(!1, !0), "handler")
366
- }, SortRangeCustomCommand = {
385
+ type: R.COMMAND,
386
+ handler: async (e) => await e.get(g).triggerSortDirectly(!1, !0)
387
+ }, ie = {
367
388
  id: "sheet.command.sort-range-custom",
368
- type: CommandType.COMMAND,
369
- handler: /* @__PURE__ */ __name(async (accessor) => await accessor.get(SheetsSortUIService).triggerSortCustomize(), "handler")
370
- }, SortRangeAscInCtxMenuCommand = {
389
+ type: R.COMMAND,
390
+ handler: async (e) => await e.get(g).triggerSortCustomize()
391
+ }, ce = {
371
392
  id: "sheet.command.sort-range-asc-ctx",
372
- type: CommandType.COMMAND,
373
- handler: /* @__PURE__ */ __name(async (accessor) => await accessor.get(SheetsSortUIService).triggerSortDirectly(!0, !1), "handler")
374
- }, SortRangeAscExtInCtxMenuCommand = {
393
+ type: R.COMMAND,
394
+ handler: async (e) => await e.get(g).triggerSortDirectly(!0, !1)
395
+ }, ae = {
375
396
  id: "sheet.command.sort-range-asc-ext-ctx",
376
- type: CommandType.COMMAND,
377
- handler: /* @__PURE__ */ __name(async (accessor) => await accessor.get(SheetsSortUIService).triggerSortDirectly(!0, !0), "handler")
378
- }, SortRangeDescInCtxMenuCommand = {
397
+ type: R.COMMAND,
398
+ handler: async (e) => await e.get(g).triggerSortDirectly(!0, !0)
399
+ }, le = {
379
400
  id: "sheet.command.sort-range-desc-ctx",
380
- type: CommandType.COMMAND,
381
- handler: /* @__PURE__ */ __name(async (accessor) => await accessor.get(SheetsSortUIService).triggerSortDirectly(!1, !1), "handler")
382
- }, SortRangeDescExtInCtxMenuCommand = {
401
+ type: R.COMMAND,
402
+ handler: async (e) => await e.get(g).triggerSortDirectly(!1, !1)
403
+ }, de = {
383
404
  id: "sheet.command.sort-range-desc-ext-ctx",
384
- type: CommandType.COMMAND,
385
- handler: /* @__PURE__ */ __name(async (accessor) => await accessor.get(SheetsSortUIService).triggerSortDirectly(!1, !0), "handler")
386
- }, SortRangeCustomInCtxMenuCommand = {
405
+ type: R.COMMAND,
406
+ handler: async (e) => await e.get(g).triggerSortDirectly(!1, !0)
407
+ }, ue = {
387
408
  id: "sheet.command.sort-range-custom-ctx",
388
- type: CommandType.COMMAND,
389
- handler: /* @__PURE__ */ __name(async (accessor) => await accessor.get(SheetsSortUIService).triggerSortCustomize(), "handler")
409
+ type: R.COMMAND,
410
+ handler: async (e) => await e.get(g).triggerSortCustomize()
390
411
  };
391
- function CustomSortPanel() {
392
- const sheetsSortUIService = useDependency(SheetsSortUIService), sheetsSortService = useDependency(SheetsSortService), localeService = useDependency(LocaleService), [hasTitle, setHasTitle] = useState(!1), [scrollPosition, setScrollPosition] = useState(0), listEndRef = useRef(null), state = sheetsSortUIService.customSortState();
393
- if (!state || !state.location)
412
+ function On() {
413
+ const e = O(g), t = O(Me), n = O(H), [r, o] = A(!1), [s, c] = A(0), l = be(null), u = e.customSortState();
414
+ if (!u || !u.location)
394
415
  return null;
395
- const { range, unitId, subUnitId } = state.location, titles = sheetsSortUIService.getTitles(hasTitle), [list, setList] = useState([
396
- { type: SortType.ASC, colIndex: range.startColumn }
397
- ]), onItemChange = useCallback((index, value) => {
398
- const newList = [...list];
399
- value === null ? newList.splice(index, 1) : newList[index] = value, setList(newList);
400
- }, [list]), newItem = useCallback(
401
- throttle(() => {
402
- const newList = [...list], nextColIndex = findNextColIndex(range, list);
403
- nextColIndex !== null && (newList.push({ type: SortType.ASC, colIndex: nextColIndex }), setList(newList));
416
+ const { range: m, unitId: y, subUnitId: S } = u.location, E = e.getTitles(r), [C, $] = A([
417
+ { type: k.ASC, colIndex: m.startColumn }
418
+ ]), Y = P((d, p) => {
419
+ const U = [...C];
420
+ p === null ? U.splice(d, 1) : U[d] = p, $(U);
421
+ }, [C]), F = P(
422
+ Xe(() => {
423
+ const d = [...C], p = Pn(m, C);
424
+ p !== null && (d.push({ type: k.ASC, colIndex: p }), $(d));
404
425
  }, 200),
405
- [list, range]
406
- ), apply = useCallback((orderRules, hasTitle2) => {
407
- sheetsSortService.applySort({ range, orderRules, hasTitle: hasTitle2 }), sheetsSortUIService.closeCustomSortPanel();
408
- }, [sheetsSortService, sheetsSortUIService, range]), cancel = useCallback(() => {
409
- sheetsSortUIService.closeCustomSortPanel();
410
- }, [sheetsSortUIService]), setTitle = useCallback((value) => {
411
- setHasTitle(value), value ? sheetsSortUIService.setSelection(unitId, subUnitId, { ...range, startRow: range.startRow + 1 }) : sheetsSortUIService.setSelection(unitId, subUnitId, range);
412
- }, [sheetsSortUIService, range, subUnitId, unitId]);
413
- useEffect(() => {
414
- listEndRef.current && list.length > 5 && (listEndRef.current.scrollTop = listEndRef.current.scrollHeight);
415
- }, [list]);
416
- const canNew = list.length < titles.length, dragList = list.map((item) => ({ ...item, id: `${item.colIndex}` }));
417
- return /* @__PURE__ */ React.createElement("div", { className: styles.customSortPanelContainer }, /* @__PURE__ */ React.createElement("div", { className: styles.customSortPanelContent, onMouseDown: /* @__PURE__ */ __name((e) => {
418
- e.stopPropagation();
419
- }, "onMouseDown") }, /* @__PURE__ */ React.createElement("div", { className: styles.customSortPanelExt }, /* @__PURE__ */ React.createElement("div", { className: styles.firstRowCheck }, /* @__PURE__ */ React.createElement(Checkbox, { checked: hasTitle, onChange: /* @__PURE__ */ __name((value) => setTitle(!!value), "onChange") }, localeService.t("sheets-sort.dialog.first-row-check"))), canNew ? /* @__PURE__ */ React.createElement("div", { className: styles.addCondition, onClick: newItem }, /* @__PURE__ */ React.createElement(IncreaseSingle, null), /* @__PURE__ */ React.createElement("span", { className: styles.addConditionText }, localeService.t("sheets-sort.dialog.add-condition"))) : /* @__PURE__ */ React.createElement("div", { className: `${styles.addCondition} ${styles.addConditionDisable}` }, /* @__PURE__ */ React.createElement(IncreaseSingle, null), /* @__PURE__ */ React.createElement("span", { className: styles.addConditionText }, localeService.t("sheets-sort.dialog.add-condition")))), /* @__PURE__ */ React.createElement(
420
- "div",
421
- {
422
- className: styles.conditionList,
423
- onScroll: /* @__PURE__ */ __name((e) => {
424
- const position = e.currentTarget.scrollTop;
425
- setScrollPosition(position);
426
- }, "onScroll"),
427
- ref: listEndRef
428
- },
429
- /* @__PURE__ */ React.createElement(
430
- DraggableList,
431
- {
432
- list: dragList,
433
- onListChange: setList,
434
- idKey: "id",
435
- draggableHandle: `.${styles.customSortPanelItemHandler}`,
436
- itemRender: /* @__PURE__ */ __name((item) => /* @__PURE__ */ React.createElement(
437
- SortOptionItem,
438
- {
439
- titles,
440
- list: dragList,
441
- item,
442
- onChange: /* @__PURE__ */ __name((value, index) => onItemChange(index, value), "onChange"),
443
- scrollPosition
444
- }
445
- ), "itemRender"),
446
- rowHeight: 32,
447
- margin: [0, 12]
448
- }
449
- )
450
- )), /* @__PURE__ */ React.createElement("div", { className: styles.customSortPanelFooter }, /* @__PURE__ */ React.createElement(Button, { className: styles.customSortPanelFooterBtn, type: "default", onClick: /* @__PURE__ */ __name(() => cancel(), "onClick") }, localeService.t("sheets-sort.dialog.cancel")), /* @__PURE__ */ React.createElement(Button, { className: styles.customSortPanelFooterBtn, type: "primary", onClick: /* @__PURE__ */ __name(() => apply(list, hasTitle), "onClick") }, localeService.t("sheets-sort.dialog.confirm"))));
426
+ [C, m]
427
+ ), h = P((d, p) => {
428
+ t.applySort({ range: m, orderRules: d, hasTitle: p }), e.closeCustomSortPanel();
429
+ }, [t, e, m]), X = P(() => {
430
+ e.closeCustomSortPanel();
431
+ }, [e]), Ve = P((d) => {
432
+ o(d), d ? e.setSelection(y, S, { ...m, startRow: m.startRow + 1 }) : e.setSelection(y, S, m);
433
+ }, [e, m, S, y]);
434
+ Ee(() => {
435
+ l.current && C.length > 5 && (l.current.scrollTop = l.current.scrollHeight);
436
+ }, [C]);
437
+ const ze = C.length < E.length, Se = C.map((d) => ({ ...d, id: `${d.colIndex}` }));
438
+ return /* @__PURE__ */ i.jsxs("div", { className: a.customSortPanelContainer, children: [
439
+ /* @__PURE__ */ i.jsxs("div", { className: a.customSortPanelContent, onMouseDown: (d) => {
440
+ d.stopPropagation();
441
+ }, children: [
442
+ /* @__PURE__ */ i.jsxs("div", { className: a.customSortPanelExt, children: [
443
+ /* @__PURE__ */ i.jsx("div", { className: a.firstRowCheck, children: /* @__PURE__ */ i.jsx(Mt, { checked: r, onChange: (d) => Ve(!!d), children: n.t("sheets-sort.dialog.first-row-check") }) }),
444
+ ze ? /* @__PURE__ */ i.jsxs("div", { className: a.addCondition, onClick: F, children: [
445
+ /* @__PURE__ */ i.jsx(Q, {}),
446
+ /* @__PURE__ */ i.jsx("span", { className: a.addConditionText, children: n.t("sheets-sort.dialog.add-condition") })
447
+ ] }) : /* @__PURE__ */ i.jsxs("div", { className: `${a.addCondition} ${a.addConditionDisable}`, children: [
448
+ /* @__PURE__ */ i.jsx(Q, {}),
449
+ /* @__PURE__ */ i.jsx("span", { className: a.addConditionText, children: n.t("sheets-sort.dialog.add-condition") })
450
+ ] })
451
+ ] }),
452
+ /* @__PURE__ */ i.jsx(
453
+ "div",
454
+ {
455
+ className: a.conditionList,
456
+ onScroll: (d) => {
457
+ const p = d.currentTarget.scrollTop;
458
+ c(p);
459
+ },
460
+ ref: l,
461
+ children: /* @__PURE__ */ i.jsx(
462
+ Rt,
463
+ {
464
+ list: Se,
465
+ onListChange: $,
466
+ idKey: "id",
467
+ draggableHandle: `.${a.customSortPanelItemHandler}`,
468
+ itemRender: (d) => /* @__PURE__ */ i.jsx(
469
+ Tn,
470
+ {
471
+ titles: E,
472
+ list: Se,
473
+ item: d,
474
+ onChange: (p, U) => Y(U, p),
475
+ scrollPosition: s
476
+ }
477
+ ),
478
+ rowHeight: 32,
479
+ margin: [0, 12]
480
+ }
481
+ )
482
+ }
483
+ )
484
+ ] }),
485
+ /* @__PURE__ */ i.jsxs("div", { className: a.customSortPanelFooter, children: [
486
+ /* @__PURE__ */ i.jsx(ve, { className: a.customSortPanelFooterBtn, type: "default", onClick: () => X(), children: n.t("sheets-sort.dialog.cancel") }),
487
+ /* @__PURE__ */ i.jsx(ve, { className: a.customSortPanelFooterBtn, type: "primary", onClick: () => h(C, r), children: n.t("sheets-sort.dialog.confirm") })
488
+ ] })
489
+ ] });
451
490
  }
452
- __name(CustomSortPanel, "CustomSortPanel");
453
- function SortOptionItem(props) {
454
- var _a4;
455
- const { list, item, titles, onChange, scrollPosition } = props, localeService = useDependency(LocaleService), availableMenu = titles.filter((title) => !list.some((item2) => item2.colIndex === title.index) || title.index === item.colIndex), currentIndex = list.findIndex((listItem) => listItem.colIndex === item.colIndex), handleChangeColIndex = useCallback((menuItem) => {
456
- onChange({ ...item, colIndex: menuItem.index }, currentIndex), setVisible(!1);
457
- }, [currentIndex, item, onChange]), [visible, setVisible] = useState(!1), onVisibleChange = /* @__PURE__ */ __name((visible2) => {
458
- setVisible(visible2);
459
- }, "onVisibleChange");
460
- useEffect(() => {
461
- setVisible(!1);
462
- }, [scrollPosition]);
463
- const showDelete = list.length > 1, itemLabel = (_a4 = titles.find((title) => title.index === item.colIndex)) == null ? void 0 : _a4.label, radioClass = localeService.getCurrentLocale() === LocaleType.ZH_CN ? styles.customSortPanelItemOrderRadioCn : styles.customSortPanelItemOrderRadio;
464
- return /* @__PURE__ */ React.createElement("div", { className: styles.customSortPanelItem }, /* @__PURE__ */ React.createElement("div", { className: styles.customSortPanelItemHead }, /* @__PURE__ */ React.createElement("div", { className: styles.customSortPanelItemHandler }, /* @__PURE__ */ React.createElement(SequenceSingle, null)), /* @__PURE__ */ React.createElement("div", { className: styles.customSortPanelItemColumn }, /* @__PURE__ */ React.createElement(
465
- Dropdown,
466
- {
467
- placement: "bottomLeft",
468
- trigger: ["click"],
469
- visible,
470
- onVisibleChange,
471
- overlay: /* @__PURE__ */ React.createElement("ul", { className: styles.customSortColMenu }, availableMenu.map((menuItem) => /* @__PURE__ */ React.createElement(
472
- "li",
491
+ function Tn(e) {
492
+ var F;
493
+ const { list: t, item: n, titles: r, onChange: o, scrollPosition: s } = e, c = O(H), l = r.filter((h) => !t.some((X) => X.colIndex === h.index) || h.index === n.colIndex), u = t.findIndex((h) => h.colIndex === n.colIndex), m = P((h) => {
494
+ o({ ...n, colIndex: h.index }, u), S(!1);
495
+ }, [u, n, o]), [y, S] = A(!1), E = (h) => {
496
+ S(h);
497
+ };
498
+ Ee(() => {
499
+ S(!1);
500
+ }, [s]);
501
+ const C = t.length > 1, $ = (F = r.find((h) => h.index === n.colIndex)) == null ? void 0 : F.label, Y = c.getCurrentLocale() === J.ZH_CN ? a.customSortPanelItemOrderRadioCn : a.customSortPanelItemOrderRadio;
502
+ return /* @__PURE__ */ i.jsxs("div", { className: a.customSortPanelItem, children: [
503
+ /* @__PURE__ */ i.jsxs("div", { className: a.customSortPanelItemHead, children: [
504
+ /* @__PURE__ */ i.jsx("div", { className: a.customSortPanelItemHandler, children: /* @__PURE__ */ i.jsx(ke, {}) }),
505
+ /* @__PURE__ */ i.jsx("div", { className: a.customSortPanelItemColumn, children: /* @__PURE__ */ i.jsx(
506
+ bt,
473
507
  {
474
- key: menuItem.index,
475
- onClick: /* @__PURE__ */ __name(() => handleChangeColIndex(menuItem), "onClick"),
476
- className: styles.customSortColMenuItem
508
+ placement: "bottomLeft",
509
+ trigger: ["click"],
510
+ visible: y,
511
+ onVisibleChange: E,
512
+ overlay: /* @__PURE__ */ i.jsx("ul", { className: a.customSortColMenu, children: l.map((h) => /* @__PURE__ */ i.jsxs(
513
+ "li",
514
+ {
515
+ onClick: () => m(h),
516
+ className: a.customSortColMenuItem,
517
+ children: [
518
+ /* @__PURE__ */ i.jsx("span", { className: a.customSortColMenuItemDesc, children: h.label }),
519
+ /* @__PURE__ */ i.jsx("span", { className: a.customSortColMenuItemCheck, children: h.index === n.colIndex && /* @__PURE__ */ i.jsx(Pe, {}) })
520
+ ]
521
+ },
522
+ h.index
523
+ )) }),
524
+ children: /* @__PURE__ */ i.jsxs("div", { className: a.customSortPanelItemColumnInput, children: [
525
+ /* @__PURE__ */ i.jsx("span", { className: a.customSortPanelItemColumnInputText, children: $ }),
526
+ /* @__PURE__ */ i.jsx(De, { className: a.customSortPanelItemColumnInputDropdown })
527
+ ] })
528
+ }
529
+ ) })
530
+ ] }),
531
+ /* @__PURE__ */ i.jsx("div", { className: a.customSortPanelItemOrder, children: /* @__PURE__ */ i.jsxs(
532
+ Oe,
533
+ {
534
+ className: Y,
535
+ value: n.type,
536
+ onChange: (h) => {
537
+ o({ ...n, type: h }, u);
477
538
  },
478
- /* @__PURE__ */ React.createElement("span", { className: styles.customSortColMenuItemDesc }, menuItem.label),
479
- /* @__PURE__ */ React.createElement("span", { className: styles.customSortColMenuItemCheck }, menuItem.index === item.colIndex && /* @__PURE__ */ React.createElement(CheckMarkSingle, null))
480
- )))
481
- },
482
- /* @__PURE__ */ React.createElement("div", { className: styles.customSortPanelItemColumnInput }, /* @__PURE__ */ React.createElement("span", { className: styles.customSortPanelItemColumnInputText }, itemLabel), /* @__PURE__ */ React.createElement(MoreDownSingle, { className: styles.customSortPanelItemColumnInputDropdown }))
483
- ))), /* @__PURE__ */ React.createElement("div", { className: styles.customSortPanelItemOrder }, /* @__PURE__ */ React.createElement(
484
- RadioGroup,
485
- {
486
- className: radioClass,
487
- value: item.type,
488
- onChange: /* @__PURE__ */ __name((value) => {
489
- onChange({ ...item, type: value }, currentIndex);
490
- }, "onChange")
491
- },
492
- /* @__PURE__ */ React.createElement(Radio, { value: SortType.ASC }, localeService.t("sheets-sort.general.sort-asc")),
493
- /* @__PURE__ */ React.createElement(Radio, { value: SortType.DESC }, localeService.t("sheets-sort.general.sort-desc"))
494
- )), /* @__PURE__ */ React.createElement("div", { className: styles.customSortPanelItemRemove }, showDelete && /* @__PURE__ */ React.createElement(DeleteEmptySingle, { onClick: /* @__PURE__ */ __name(() => onChange(null, currentIndex), "onClick") })));
539
+ children: [
540
+ /* @__PURE__ */ i.jsx(z, { value: k.ASC, children: c.t("sheets-sort.general.sort-asc") }),
541
+ /* @__PURE__ */ i.jsx(z, { value: k.DESC, children: c.t("sheets-sort.general.sort-desc") })
542
+ ]
543
+ }
544
+ ) }),
545
+ /* @__PURE__ */ i.jsx("div", { className: a.customSortPanelItemRemove, children: C && /* @__PURE__ */ i.jsx(Ne, { onClick: () => o(null, u) }) })
546
+ ] });
495
547
  }
496
- __name(SortOptionItem, "SortOptionItem");
497
- function findNextColIndex(range, list) {
498
- const { startColumn, endColumn } = range, used = new Set(list.map((item) => item == null ? void 0 : item.colIndex));
499
- for (let i = startColumn; i <= endColumn; i++)
500
- if (!used.has(i))
501
- return i;
548
+ function Pn(e, t) {
549
+ const { startColumn: n, endColumn: r } = e, o = new Set(t.map((s) => s == null ? void 0 : s.colIndex));
550
+ for (let s = n; s <= r; s++)
551
+ if (!o.has(s))
552
+ return s;
502
553
  return null;
503
554
  }
504
- __name(findNextColIndex, "findNextColIndex");
505
- function EmbedSortBtn(props) {
506
- const { range, colIndex, onClose } = props, sheetsSortUIService = useDependency(SheetsSortUIService), univerInstanceService = useDependency(IUniverInstanceService), localeService = useDependency(LocaleService), apply = useCallback((asc) => {
507
- const { unitId, subUnitId } = getSheetCommandTarget(univerInstanceService) || {};
508
- if (range && unitId && subUnitId) {
509
- const noTitleRange = { ...range, startRow: range.startRow + 1 };
510
- sheetsSortUIService.triggerSortDirectly(asc, !1, { unitId, subUnitId, range: noTitleRange, colIndex });
555
+ function wn(e) {
556
+ const { range: t, colIndex: n, onClose: r } = e, o = O(g), s = O(xe), c = O(H), l = P((u) => {
557
+ const { unitId: m, subUnitId: y } = yt(s) || {};
558
+ if (t && m && y) {
559
+ const S = { ...t, startRow: t.startRow + 1 };
560
+ o.triggerSortDirectly(u, !1, { unitId: m, subUnitId: y, range: S, colIndex: n });
511
561
  } else
512
- console.warn(`Cannot find the target to sort. unitId: ${unitId}, subUnitId: ${subUnitId}, range: ${range}, colIndex: ${colIndex}`);
513
- onClose();
514
- }, [range, colIndex, sheetsSortUIService, univerInstanceService, onClose]);
515
- return /* @__PURE__ */ React.createElement("div", { className: styles.embedSortBtnContainer }, /* @__PURE__ */ React.createElement("div", { className: `${styles.embedSortBtn} ${styles.embedSortBtnAsc}`, onClick: /* @__PURE__ */ __name(() => apply(!0), "onClick") }, /* @__PURE__ */ React.createElement(AscendingSingle, { className: styles.embedSortBtnIcon }), localeService.t("sheets-sort.general.sort-asc")), /* @__PURE__ */ React.createElement("div", { className: `${styles.embedSortBtn} ${styles.embedSortBtnDesc}`, onClick: /* @__PURE__ */ __name(() => apply(!1), "onClick") }, /* @__PURE__ */ React.createElement(DescendingSingle, { className: styles.embedSortBtnIcon }), localeService.t("sheets-sort.general.sort-desc")));
562
+ console.warn(`Cannot find the target to sort. unitId: ${m}, subUnitId: ${y}, range: ${t}, colIndex: ${n}`);
563
+ r();
564
+ }, [t, n, o, s, r]);
565
+ return /* @__PURE__ */ i.jsxs("div", { className: a.embedSortBtnContainer, children: [
566
+ /* @__PURE__ */ i.jsxs("div", { className: `${a.embedSortBtn} ${a.embedSortBtnAsc}`, onClick: () => l(!0), children: [
567
+ /* @__PURE__ */ i.jsx(ee, { className: a.embedSortBtnIcon }),
568
+ c.t("sheets-sort.general.sort-asc")
569
+ ] }),
570
+ /* @__PURE__ */ i.jsxs("div", { className: `${a.embedSortBtn} ${a.embedSortBtnDesc}`, onClick: () => l(!1), children: [
571
+ /* @__PURE__ */ i.jsx(te, { className: a.embedSortBtnIcon }),
572
+ c.t("sheets-sort.general.sort-desc")
573
+ ] })
574
+ ] });
516
575
  }
517
- __name(EmbedSortBtn, "EmbedSortBtn");
518
- const SHEETS_SORT_MENU_ID = "sheet.menu.sheets-sort", SHEETS_SORT_CTX_MENU_ID = "sheet.menu.sheets-sort-ctx", SHEETS_SORT_ASC_ICON = "AscendingSingle", SHEETS_SORT_ASC_EXT_ICON = "ExpandAscendingSingle", SHEETS_SORT_DESC_ICON = "DescendingSingle", SHEETS_SORT_DESC_EXT_ICON = "ExpandDescendingSingle", SHEETS_SORT_CUSTOM_ICON = "CustomSortSingle";
519
- function sortRangeMenuFactory(accessor) {
576
+ const Ue = "sheet.menu.sheets-sort", Ae = "sheet.menu.sheets-sort-ctx", B = "AscendingSingle", me = "ExpandAscendingSingle", he = "DescendingSingle", ge = "ExpandDescendingSingle", Ce = "CustomSortSingle";
577
+ function Nn(e) {
520
578
  return {
521
- id: SHEETS_SORT_MENU_ID,
522
- type: MenuItemType.SUBITEMS,
523
- icon: SHEETS_SORT_ASC_ICON,
579
+ id: Ue,
580
+ type: v.SUBITEMS,
581
+ icon: B,
524
582
  tooltip: "sheets-sort.general.sort",
525
- hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
526
- disabled$: getCurrentRangeDisable$(accessor, { workbookTypes: [WorkbookEditablePermission], worksheetTypes: [WorksheetSortPermission, WorksheetEditPermission], rangeTypes: [RangeProtectionPermissionEditPoint] })
583
+ hidden$: Re(e, W.UNIVER_SHEET),
584
+ disabled$: w(e, { workbookTypes: [N], worksheetTypes: [L, j], rangeTypes: [D] })
527
585
  };
528
586
  }
529
- __name(sortRangeMenuFactory, "sortRangeMenuFactory");
530
- function sortRangeAscMenuFactory(_accessor) {
587
+ function Ln(e) {
531
588
  return {
532
- id: SortRangeAscCommand.id,
533
- icon: SHEETS_SORT_ASC_ICON,
589
+ id: ne.id,
590
+ icon: B,
534
591
  title: "sheets-sort.general.sort-asc-cur",
535
- type: MenuItemType.BUTTON,
536
- hidden$: getCurrentExclusiveRangeInterest$(_accessor)
592
+ type: v.BUTTON,
593
+ hidden$: st(e)
537
594
  };
538
595
  }
539
- __name(sortRangeAscMenuFactory, "sortRangeAscMenuFactory");
540
- function sortRangeAscExtMenuFactory(_accessor) {
596
+ function jn(e) {
541
597
  return {
542
- id: SortRangeAscExtCommand.id,
598
+ id: re.id,
543
599
  title: "sheets-sort.general.sort-asc-ext",
544
- icon: SHEETS_SORT_ASC_EXT_ICON,
545
- type: MenuItemType.BUTTON
600
+ icon: me,
601
+ type: v.BUTTON
546
602
  };
547
603
  }
548
- __name(sortRangeAscExtMenuFactory, "sortRangeAscExtMenuFactory");
549
- function sortRangeDescMenuFactory(_accessor) {
604
+ function Dn(e) {
550
605
  return {
551
- id: SortRangeDescCommand.id,
606
+ id: oe.id,
552
607
  title: "sheets-sort.general.sort-desc-cur",
553
- icon: SHEETS_SORT_DESC_ICON,
554
- type: MenuItemType.BUTTON
608
+ icon: he,
609
+ type: v.BUTTON
555
610
  };
556
611
  }
557
- __name(sortRangeDescMenuFactory, "sortRangeDescMenuFactory");
558
- function sortRangeDescExtMenuFactory(_accessor) {
612
+ function kn(e) {
559
613
  return {
560
- id: SortRangeDescExtCommand.id,
614
+ id: se.id,
561
615
  title: "sheets-sort.general.sort-desc-ext",
562
- icon: SHEETS_SORT_DESC_EXT_ICON,
563
- type: MenuItemType.BUTTON
616
+ icon: ge,
617
+ type: v.BUTTON
564
618
  };
565
619
  }
566
- __name(sortRangeDescExtMenuFactory, "sortRangeDescExtMenuFactory");
567
- function sortRangeCustomMenuFactory(_accessor) {
620
+ function Hn(e) {
568
621
  return {
569
- id: SortRangeCustomCommand.id,
622
+ id: ie.id,
570
623
  title: "sheets-sort.general.sort-custom",
571
- type: MenuItemType.BUTTON,
572
- icon: SHEETS_SORT_CUSTOM_ICON
624
+ type: v.BUTTON,
625
+ icon: Ce
573
626
  };
574
627
  }
575
- __name(sortRangeCustomMenuFactory, "sortRangeCustomMenuFactory");
576
- function sortRangeCtxMenuFactory(accessor) {
628
+ function $n(e) {
577
629
  return {
578
- id: SHEETS_SORT_CTX_MENU_ID,
630
+ id: Ae,
579
631
  title: "sheets-sort.general.sort",
580
- type: MenuItemType.SUBITEMS,
581
- icon: SHEETS_SORT_ASC_ICON,
582
- hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
583
- disabled$: getCurrentRangeDisable$(accessor, {
584
- workbookTypes: [WorkbookEditablePermission],
585
- worksheetTypes: [WorksheetSortPermission, WorksheetEditPermission],
586
- rangeTypes: [RangeProtectionPermissionEditPoint]
632
+ type: v.SUBITEMS,
633
+ icon: B,
634
+ hidden$: Re(e, W.UNIVER_SHEET),
635
+ disabled$: w(e, {
636
+ workbookTypes: [N],
637
+ worksheetTypes: [L, j],
638
+ rangeTypes: [D]
587
639
  })
588
640
  };
589
641
  }
590
- __name(sortRangeCtxMenuFactory, "sortRangeCtxMenuFactory");
591
- function sortRangeAscCtxMenuFactory(_accessor) {
642
+ function Un(e) {
592
643
  return {
593
- id: SortRangeAscInCtxMenuCommand.id,
644
+ id: ce.id,
594
645
  title: "sheets-sort.general.sort-asc-cur",
595
- type: MenuItemType.BUTTON,
596
- icon: SHEETS_SORT_ASC_ICON,
597
- disabled$: getCurrentRangeDisable$(_accessor, { workbookTypes: [WorkbookEditablePermission], worksheetTypes: [WorksheetSortPermission, WorksheetEditPermission], rangeTypes: [RangeProtectionPermissionEditPoint] })
646
+ type: v.BUTTON,
647
+ icon: B,
648
+ disabled$: w(e, { workbookTypes: [N], worksheetTypes: [L, j], rangeTypes: [D] })
598
649
  };
599
650
  }
600
- __name(sortRangeAscCtxMenuFactory, "sortRangeAscCtxMenuFactory");
601
- function sortRangeAscExtCtxMenuFactory(_accessor) {
651
+ function An(e) {
602
652
  return {
603
- id: SortRangeAscExtInCtxMenuCommand.id,
653
+ id: ae.id,
604
654
  title: "sheets-sort.general.sort-asc-ext",
605
- type: MenuItemType.BUTTON,
606
- icon: SHEETS_SORT_ASC_EXT_ICON,
607
- disabled$: getCurrentRangeDisable$(_accessor, { workbookTypes: [WorkbookEditablePermission], worksheetTypes: [WorksheetSortPermission, WorksheetEditPermission], rangeTypes: [RangeProtectionPermissionEditPoint] })
655
+ type: v.BUTTON,
656
+ icon: me,
657
+ disabled$: w(e, { workbookTypes: [N], worksheetTypes: [L, j], rangeTypes: [D] })
608
658
  };
609
659
  }
610
- __name(sortRangeAscExtCtxMenuFactory, "sortRangeAscExtCtxMenuFactory");
611
- function sortRangeDescCtxMenuFactory(_accessor) {
660
+ function Bn(e) {
612
661
  return {
613
- id: SortRangeDescInCtxMenuCommand.id,
662
+ id: le.id,
614
663
  title: "sheets-sort.general.sort-desc-cur",
615
- type: MenuItemType.BUTTON,
616
- icon: SHEETS_SORT_DESC_ICON,
617
- disabled$: getCurrentRangeDisable$(_accessor, { workbookTypes: [WorkbookEditablePermission], worksheetTypes: [WorksheetSortPermission, WorksheetEditPermission], rangeTypes: [RangeProtectionPermissionEditPoint] })
664
+ type: v.BUTTON,
665
+ icon: he,
666
+ disabled$: w(e, { workbookTypes: [N], worksheetTypes: [L, j], rangeTypes: [D] })
618
667
  };
619
668
  }
620
- __name(sortRangeDescCtxMenuFactory, "sortRangeDescCtxMenuFactory");
621
- function sortRangeDescExtCtxMenuFactory(_accessor) {
669
+ function Fn(e) {
622
670
  return {
623
- id: SortRangeDescExtInCtxMenuCommand.id,
671
+ id: de.id,
624
672
  title: "sheets-sort.general.sort-desc-ext",
625
- type: MenuItemType.BUTTON,
626
- icon: SHEETS_SORT_DESC_EXT_ICON,
627
- disabled$: getCurrentRangeDisable$(_accessor, { workbookTypes: [WorkbookEditablePermission], worksheetTypes: [WorksheetSortPermission, WorksheetEditPermission], rangeTypes: [RangeProtectionPermissionEditPoint] })
673
+ type: v.BUTTON,
674
+ icon: ge,
675
+ disabled$: w(e, { workbookTypes: [N], worksheetTypes: [L, j], rangeTypes: [D] })
628
676
  };
629
677
  }
630
- __name(sortRangeDescExtCtxMenuFactory, "sortRangeDescExtCtxMenuFactory");
631
- function sortRangeCustomCtxMenuFactory(_accessor) {
678
+ function Vn(e) {
632
679
  return {
633
- id: SortRangeCustomInCtxMenuCommand.id,
680
+ id: ue.id,
634
681
  title: "sheets-sort.general.sort-custom",
635
- type: MenuItemType.BUTTON,
636
- icon: SHEETS_SORT_CUSTOM_ICON,
637
- disabled$: getCurrentRangeDisable$(_accessor, { workbookTypes: [WorkbookEditablePermission], worksheetTypes: [WorksheetSortPermission, WorksheetEditPermission], rangeTypes: [RangeProtectionPermissionEditPoint] })
682
+ type: v.BUTTON,
683
+ icon: Ce,
684
+ disabled$: w(e, { workbookTypes: [N], worksheetTypes: [L, j], rangeTypes: [D] })
638
685
  };
639
686
  }
640
- __name(sortRangeCustomCtxMenuFactory, "sortRangeCustomCtxMenuFactory");
641
- const menuSchema = {
642
- [RibbonStartGroup.FORMULAS_INSERT]: {
643
- [SHEETS_SORT_MENU_ID]: {
687
+ const zn = {
688
+ [lt.FORMULAS_INSERT]: {
689
+ [Ue]: {
644
690
  order: 2,
645
- menuItemFactory: sortRangeMenuFactory,
646
- [SortRangeAscCommand.id]: {
691
+ menuItemFactory: Nn,
692
+ [ne.id]: {
647
693
  order: 0,
648
- menuItemFactory: sortRangeAscMenuFactory
694
+ menuItemFactory: Ln
649
695
  },
650
- [SortRangeAscExtCommand.id]: {
696
+ [re.id]: {
651
697
  order: 1,
652
- menuItemFactory: sortRangeAscExtMenuFactory
698
+ menuItemFactory: jn
653
699
  },
654
- [SortRangeDescCommand.id]: {
700
+ [oe.id]: {
655
701
  order: 2,
656
- menuItemFactory: sortRangeDescMenuFactory
702
+ menuItemFactory: Dn
657
703
  },
658
- [SortRangeDescExtCommand.id]: {
704
+ [se.id]: {
659
705
  order: 3,
660
- menuItemFactory: sortRangeDescExtMenuFactory
706
+ menuItemFactory: kn
661
707
  },
662
- [SortRangeCustomCommand.id]: {
708
+ [ie.id]: {
663
709
  order: 4,
664
- menuItemFactory: sortRangeCustomMenuFactory
710
+ menuItemFactory: Hn
665
711
  }
666
712
  }
667
713
  },
668
- [ContextMenuPosition.MAIN_AREA]: {
669
- [ContextMenuGroup.DATA]: {
670
- [SHEETS_SORT_CTX_MENU_ID]: {
714
+ [dt.MAIN_AREA]: {
715
+ [ut.DATA]: {
716
+ [Ae]: {
671
717
  order: 0,
672
- menuItemFactory: sortRangeCtxMenuFactory,
673
- [SortRangeAscInCtxMenuCommand.id]: {
718
+ menuItemFactory: $n,
719
+ [ce.id]: {
674
720
  order: 0,
675
- menuItemFactory: sortRangeAscCtxMenuFactory
721
+ menuItemFactory: Un
676
722
  },
677
- [SortRangeAscExtInCtxMenuCommand.id]: {
723
+ [ae.id]: {
678
724
  order: 1,
679
- menuItemFactory: sortRangeAscExtCtxMenuFactory
725
+ menuItemFactory: An
680
726
  },
681
- [SortRangeDescInCtxMenuCommand.id]: {
727
+ [le.id]: {
682
728
  order: 2,
683
- menuItemFactory: sortRangeDescCtxMenuFactory
729
+ menuItemFactory: Bn
684
730
  },
685
- [SortRangeDescExtInCtxMenuCommand.id]: {
731
+ [de.id]: {
686
732
  order: 3,
687
- menuItemFactory: sortRangeDescExtCtxMenuFactory
733
+ menuItemFactory: Fn
688
734
  },
689
- [SortRangeCustomInCtxMenuCommand.id]: {
735
+ [ue.id]: {
690
736
  order: 4,
691
- menuItemFactory: sortRangeCustomCtxMenuFactory
737
+ menuItemFactory: Vn
692
738
  }
693
739
  }
694
740
  }
695
741
  }
696
742
  };
697
- var __defProp$1 = Object.defineProperty, __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor, __decorateClass$1 = /* @__PURE__ */ __name((decorators, target, key, kind) => {
698
- for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
699
- (decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
700
- return kind && result && __defProp$1(target, key, result), result;
701
- }, "__decorateClass$1"), __decorateParam$1 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$1");
702
- const CUSTOM_SORT_DIALOG_ID = "custom-sort-dialog", CUSTOM_SORT_PANEL_WIDTH = 560;
703
- var _a2;
704
- let SheetsSortUIController = (_a2 = class extends RxDisposable {
705
- constructor(_commandService, _menuManagerService, _dialogService, _layoutService, _uiPartsService, _sheetRenderService, _localeService, _sheetsSortUIService, _injector, _componentManager) {
706
- super(), this._commandService = _commandService, this._menuManagerService = _menuManagerService, this._dialogService = _dialogService, this._layoutService = _layoutService, this._uiPartsService = _uiPartsService, this._sheetRenderService = _sheetRenderService, this._localeService = _localeService, this._sheetsSortUIService = _sheetsSortUIService, this._injector = _injector, this._componentManager = _componentManager, this._initCommands(), this._initMenu(), this._initUI();
743
+ var Zn = Object.defineProperty, Gn = Object.getOwnPropertyDescriptor, Wn = (e, t, n, r) => {
744
+ for (var o = r > 1 ? void 0 : r ? Gn(t, n) : t, s = e.length - 1, c; s >= 0; s--)
745
+ (c = e[s]) && (o = (r ? c(t, n, o) : c(o)) || o);
746
+ return r && o && Zn(t, n, o), o;
747
+ }, M = (e, t) => (n, r) => t(n, r, e);
748
+ const pe = "custom-sort-dialog", qn = 560;
749
+ let Z = class extends Ke {
750
+ constructor(e, t, n, r, o, s, c, l, u, m) {
751
+ super(), this._commandService = e, this._menuManagerService = t, this._dialogService = n, this._layoutService = r, this._uiPartsService = o, this._sheetRenderService = s, this._localeService = c, this._sheetsSortUIService = l, this._injector = u, this._componentManager = m, this._initCommands(), this._initMenu(), this._initUI();
707
752
  }
708
753
  _initMenu() {
709
- this._menuManagerService.mergeMenu(menuSchema);
754
+ this._menuManagerService.mergeMenu(zn);
710
755
  }
711
756
  _initCommands() {
712
757
  [
713
- SortRangeAscCommand,
714
- SortRangeAscExtCommand,
715
- SortRangeDescCommand,
716
- SortRangeDescExtCommand,
717
- SortRangeCustomCommand,
718
- SortRangeAscInCtxMenuCommand,
719
- SortRangeAscExtInCtxMenuCommand,
720
- SortRangeDescInCtxMenuCommand,
721
- SortRangeDescExtInCtxMenuCommand,
722
- SortRangeCustomInCtxMenuCommand
723
- ].forEach((command) => this.disposeWithMe(this._commandService.registerCommand(command))), this.disposeWithMe(this._sheetRenderService.registerSkeletonChangingMutations(SortRangeCommand.id));
758
+ ne,
759
+ re,
760
+ oe,
761
+ se,
762
+ ie,
763
+ ce,
764
+ ae,
765
+ le,
766
+ de,
767
+ ue
768
+ ].forEach((e) => this.disposeWithMe(this._commandService.registerCommand(e))), this.disposeWithMe(this._sheetRenderService.registerSkeletonChangingMutations(nt.id));
724
769
  }
725
770
  _initUI() {
726
- this.disposeWithMe(this._componentManager.register("CustomSortPanel", CustomSortPanel)), this.disposeWithMe(this._uiPartsService.registerComponent(SheetsUIPart.FILTER_PANEL_EMBED_POINT, () => connectInjector(EmbedSortBtn, this._injector))), this.disposeWithMe(this._componentManager.register(SHEETS_SORT_ASC_ICON, AscendingSingle)), this.disposeWithMe(this._componentManager.register(SHEETS_SORT_ASC_EXT_ICON, ExpandAscendingSingle)), this.disposeWithMe(this._componentManager.register(SHEETS_SORT_DESC_ICON, DescendingSingle)), this.disposeWithMe(this._componentManager.register(SHEETS_SORT_DESC_EXT_ICON, ExpandDescendingSingle)), this.disposeWithMe(this._componentManager.register(SHEETS_SORT_CUSTOM_ICON, CustomSortSingle)), this._sheetsSortUIService.customSortState$.pipe(takeUntil(this.dispose$)).subscribe((newState) => {
727
- newState && newState.show && newState.location ? this._openCustomSortPanel(newState.location) : newState && !(newState != null && newState.show) && this._closePanel();
771
+ this.disposeWithMe(this._componentManager.register("CustomSortPanel", On)), this.disposeWithMe(this._uiPartsService.registerComponent(ct.FILTER_PANEL_EMBED_POINT, () => Je(wn, this._injector))), this.disposeWithMe(this._componentManager.register(B, ee)), this.disposeWithMe(this._componentManager.register(me, Le)), this.disposeWithMe(this._componentManager.register(he, te)), this.disposeWithMe(this._componentManager.register(ge, je)), this.disposeWithMe(this._componentManager.register(Ce, we)), this._sheetsSortUIService.customSortState$.pipe(vt(this.dispose$)).subscribe((e) => {
772
+ e && e.show && e.location ? this._openCustomSortPanel(e.location) : e && !(e != null && e.show) && this._closePanel();
728
773
  });
729
774
  }
730
- _openCustomSortPanel(location) {
775
+ _openCustomSortPanel(e) {
731
776
  this._dialogService.open({
732
- id: CUSTOM_SORT_DIALOG_ID,
777
+ id: pe,
733
778
  draggable: !0,
734
- width: CUSTOM_SORT_PANEL_WIDTH,
735
- title: { title: `${this._localeService.t("sheets-sort.general.sort-custom")}: ${serializeRange(location.range)}` },
779
+ width: qn,
780
+ title: { title: `${this._localeService.t("sheets-sort.general.sort-custom")}: ${ot(e.range)}` },
736
781
  children: { label: "CustomSortPanel" },
737
782
  destroyOnClose: !0,
738
- defaultPosition: getCustomSortDialogDefaultPosition(),
783
+ defaultPosition: Yn(),
739
784
  preservePositionOnDestroy: !1,
740
- onClose: /* @__PURE__ */ __name(() => this._closePanel(), "onClose"),
785
+ onClose: () => this._closePanel(),
741
786
  mask: !0
742
787
  });
743
788
  }
744
789
  _closePanel() {
745
- this._dialogService.close(CUSTOM_SORT_DIALOG_ID), queueMicrotask(() => this._layoutService.focus());
790
+ this._dialogService.close(pe), queueMicrotask(() => this._layoutService.focus());
746
791
  }
747
- }, __name(_a2, "SheetsSortUIController"), _a2);
748
- SheetsSortUIController = __decorateClass$1([
749
- __decorateParam$1(0, ICommandService),
750
- __decorateParam$1(1, IMenuManagerService),
751
- __decorateParam$1(2, IDialogService),
752
- __decorateParam$1(3, ILayoutService),
753
- __decorateParam$1(4, IUIPartsService),
754
- __decorateParam$1(5, Inject(SheetsRenderService)),
755
- __decorateParam$1(6, Inject(LocaleService)),
756
- __decorateParam$1(7, Inject(SheetsSortUIService)),
757
- __decorateParam$1(8, Inject(Injector)),
758
- __decorateParam$1(9, Inject(ComponentManager))
759
- ], SheetsSortUIController);
760
- function getCustomSortDialogDefaultPosition() {
792
+ };
793
+ Z = Wn([
794
+ M(0, Ie),
795
+ M(1, ht),
796
+ M(2, gt),
797
+ M(3, Ct),
798
+ M(4, St),
799
+ M(5, b(it)),
800
+ M(6, b(H)),
801
+ M(7, b(g)),
802
+ M(8, b(ye)),
803
+ M(9, b(mt))
804
+ ], Z);
805
+ function Yn() {
761
806
  return { x: 0, y: 0 };
762
807
  }
763
- __name(getCustomSortDialogDefaultPosition, "getCustomSortDialogDefaultPosition");
764
- var __defProp2 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __defNormalProp2 = /* @__PURE__ */ __name((obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, "__defNormalProp"), __decorateClass = /* @__PURE__ */ __name((decorators, target, key, kind) => {
765
- for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
766
- (decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
767
- return kind && result && __defProp2(target, key, result), result;
768
- }, "__decorateClass"), __decorateParam = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam"), __publicField2 = /* @__PURE__ */ __name((obj, key, value) => __defNormalProp2(obj, typeof key != "symbol" ? key + "" : key, value), "__publicField");
769
- const NAME = "SHEET_SORT_UI_PLUGIN";
770
- var _a3;
771
- let UniverSheetsSortUIPlugin = (_a3 = class extends Plugin {
772
- constructor(_config = defaultPluginConfig, _injector, _configService) {
773
- super(), this._config = _config, this._injector = _injector, this._configService = _configService;
774
- const { ...rest } = this._config;
775
- this._configService.setConfig(PLUGIN_CONFIG_KEY, rest);
808
+ var Be = Object.defineProperty, Xn = Object.getOwnPropertyDescriptor, Kn = (e, t, n) => t in e ? Be(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Jn = (e, t, n, r) => {
809
+ for (var o = r > 1 ? void 0 : r ? Xn(t, n) : t, s = e.length - 1, c; s >= 0; s--)
810
+ (c = e[s]) && (o = (r ? c(t, n, o) : c(o)) || o);
811
+ return r && o && Be(t, n, o), o;
812
+ }, _e = (e, t) => (n, r) => t(n, r, e), Fe = (e, t, n) => Kn(e, typeof t != "symbol" ? t + "" : t, n);
813
+ const Qn = "SHEET_SORT_UI_PLUGIN";
814
+ let G = class extends et {
815
+ constructor(e = Ot, t, n) {
816
+ super(), this._config = e, this._injector = t, this._configService = n;
817
+ const { ...r } = this._config;
818
+ this._configService.setConfig(Et, r);
776
819
  }
777
820
  onStarting() {
778
821
  [
779
- [SheetsSortUIService],
780
- [SheetsSortUIController]
781
- ].forEach((d) => this._injector.add(d));
822
+ [g],
823
+ [Z]
824
+ ].forEach((e) => this._injector.add(e));
782
825
  }
783
826
  onRendered() {
784
- this._injector.get(SheetsSortUIController);
827
+ this._injector.get(Z);
785
828
  }
786
- }, __name(_a3, "UniverSheetsSortUIPlugin"), _a3);
787
- __publicField2(UniverSheetsSortUIPlugin, "type", UniverInstanceType.UNIVER_SHEET);
788
- __publicField2(UniverSheetsSortUIPlugin, "pluginName", NAME);
789
- UniverSheetsSortUIPlugin = __decorateClass([
790
- DependentOn(UniverSheetsSortPlugin),
791
- __decorateParam(1, Inject(Injector)),
792
- __decorateParam(2, IConfigService)
793
- ], UniverSheetsSortUIPlugin);
829
+ };
830
+ Fe(G, "type", W.UNIVER_SHEET);
831
+ Fe(G, "pluginName", Qn);
832
+ G = Jn([
833
+ Qe(rt),
834
+ _e(1, b(ye)),
835
+ _e(2, tt)
836
+ ], G);
794
837
  export {
795
- SortRangeAscCommand,
796
- SortRangeAscExtCommand,
797
- SortRangeAscExtInCtxMenuCommand,
798
- SortRangeAscInCtxMenuCommand,
799
- SortRangeCustomCommand,
800
- SortRangeCustomInCtxMenuCommand,
801
- SortRangeDescCommand,
802
- SortRangeDescExtCommand,
803
- SortRangeDescExtInCtxMenuCommand,
804
- SortRangeDescInCtxMenuCommand,
805
- UniverSheetsSortUIPlugin
838
+ ne as SortRangeAscCommand,
839
+ re as SortRangeAscExtCommand,
840
+ ae as SortRangeAscExtInCtxMenuCommand,
841
+ ce as SortRangeAscInCtxMenuCommand,
842
+ ie as SortRangeCustomCommand,
843
+ ue as SortRangeCustomInCtxMenuCommand,
844
+ oe as SortRangeDescCommand,
845
+ se as SortRangeDescExtCommand,
846
+ de as SortRangeDescExtInCtxMenuCommand,
847
+ le as SortRangeDescInCtxMenuCommand,
848
+ G as UniverSheetsSortUIPlugin
806
849
  };