@univerjs/sheets-sort-ui 0.6.10 → 0.7.0-beta.0

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/index.js CHANGED
@@ -1,228 +1,194 @@
1
- var Ve = Object.defineProperty;
2
- var ze = (e, t, n) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var K = (e, t, n) => ze(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { LocaleService as A, IUniverInstanceService as ye, ILogService as Ze, Inject as E, ICommandService as xe, Disposable as Ge, UniverInstanceType as Y, Tools as We, LocaleType as J, CommandType as b, throttle as Ye, Injector as Me, RxDisposable as qe, DependentOn as Xe, IConfigService as Ke, Plugin as Je, merge as Qe } from "@univerjs/core";
5
- import { SheetsSortService as Re, SortType as U, SortRangeCommand as et, UniverSheetsSortPlugin as tt } from "@univerjs/sheets-sort";
6
- import { serializeRange as nt } from "@univerjs/engine-formula";
7
- import { getCurrentRangeDisable$ as P, getCurrentExclusiveRangeInterest$ as rt, SheetsRenderService as ot, SheetsUIPart as st } from "@univerjs/sheets-ui";
8
- import { useDependency as O, IConfirmService as it, MenuItemType as p, getMenuHiddenObservable as be, ContextMenuPosition as ct, ContextMenuGroup as at, RibbonStartGroup as lt, IMenuManagerService as dt, IDialogService as ut, ILayoutService as mt, IUIPartsService as ht, ComponentManager as gt, connectInjector as Ct } from "@univerjs/ui";
9
- import { BehaviorSubject as St, takeUntil as ft } from "rxjs";
10
- import { jsxs as g, jsx as a } from "react/jsx-runtime";
11
- import { SheetsSelectionsService as vt, getPrimaryForRange as pt, SetSelectionsOperation as _t, expandToContinuousRange as fe, getSheetCommandTarget as It, RangeProtectionPermissionEditPoint as k, WorksheetSortPermission as D, WorksheetEditPermission as L, WorkbookEditablePermission as H } from "@univerjs/sheets";
12
- import { RadioGroup as Ee, Radio as Z, Checkbox as yt, DraggableList as xt, Button as ve, Dropdown as Mt, clsx as Rt } from "@univerjs/design";
13
- import { forwardRef as I, useRef as Te, createElement as y, useState as F, useCallback as N, useEffect as Oe } from "react";
14
- const bt = "sheets-sort-ui.config", pe = {};
15
- var v = function() {
16
- return v = Object.assign || function(e) {
1
+ var Be = Object.defineProperty;
2
+ var Ve = (e, t, n) => t in e ? Be(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var K = (e, t, n) => Ve(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { LocaleService as P, IUniverInstanceService as _e, ILogService as ze, Inject as R, ICommandService as xe, Disposable as Ze, UniverInstanceType as Y, Tools as Ge, LocaleType as J, CommandType as w, throttle as We, Injector as Me, RxDisposable as Ye, DependentOn as qe, IConfigService as Xe, Plugin as Ke, merge as Je } from "@univerjs/core";
5
+ import { SheetsSortService as Ie, SortType as U, SortRangeCommand as Qe, UniverSheetsSortPlugin as et } from "@univerjs/sheets-sort";
6
+ import { serializeRange as tt } from "@univerjs/engine-formula";
7
+ import { getCurrentRangeDisable$ as N, getCurrentExclusiveRangeInterest$ as rt, SheetsRenderService as nt, SheetsUIPart as it } from "@univerjs/sheets-ui";
8
+ import { useDependency as E, IConfirmService as st, useObservable as ot, MenuItemType as S, getMenuHiddenObservable as we, ContextMenuPosition as at, ContextMenuGroup as ct, RibbonStartGroup as lt, IMenuManagerService as ut, IDialogService as dt, ILayoutService as ht, IUIPartsService as gt, ComponentManager as mt, connectInjector as vt } from "@univerjs/ui";
9
+ import { BehaviorSubject as Ct, takeUntil as ft } from "rxjs";
10
+ import { jsxs as m, jsx as a } from "react/jsx-runtime";
11
+ import { SheetsSelectionsService as St, getPrimaryForRange as pt, SetSelectionsOperation as yt, expandToContinuousRange as fe, getSheetCommandTarget as _t, RangeProtectionPermissionEditPoint as k, WorksheetSortPermission as L, WorksheetEditPermission as D, WorkbookEditablePermission as H } from "@univerjs/sheets";
12
+ import { RadioGroup as Re, Radio as z, Checkbox as xt, DraggableList as Mt, Button as Z, Dropdown as It, ButtonGroup as wt } from "@univerjs/design";
13
+ import { forwardRef as y, useRef as Ee, createElement as _, useState as j, useCallback as O, useEffect as Te } from "react";
14
+ const Rt = "sheets-sort-ui.config", Se = {};
15
+ var f = function() {
16
+ return f = Object.assign || function(e) {
17
17
  for (var t, n = 1, r = arguments.length; n < r; n++) {
18
18
  t = arguments[n];
19
- for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
19
+ for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
20
20
  }
21
21
  return e;
22
- }, v.apply(this, arguments);
22
+ }, f.apply(this, arguments);
23
23
  }, Et = function(e, t) {
24
24
  var n = {};
25
25
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
26
26
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
27
- for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
28
- t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
27
+ for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
28
+ t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
29
29
  return n;
30
- }, x = I(function(e, t) {
31
- var n = e.icon, r = e.id, o = e.className, s = e.extend, i = Et(e, ["icon", "id", "className", "extend"]), l = "univerjs-icon univerjs-icon-".concat(r, " ").concat(o || "").trim(), u = Te("_".concat(wt()));
32
- return we(n, "".concat(r), { defIds: n.defIds, idSuffix: u.current }, v({ ref: t, className: l }, i), s);
30
+ }, x = y(function(e, t) {
31
+ var n = e.icon, r = e.id, i = e.className, s = e.extend, o = Et(e, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(r, " ").concat(i || "").trim(), l = Ee("_".concat(Ot()));
32
+ return be(n, "".concat(r), { defIds: n.defIds, idSuffix: l.current }, f({ ref: t, className: c }, o), s);
33
33
  });
34
- function we(e, t, n, r, o) {
35
- return y(e.tag, v(v({ key: t }, Tt(e, n, o)), r), (Ot(e, n).children || []).map(function(s, i) {
36
- return we(s, "".concat(t, "-").concat(e.tag, "-").concat(i), n, void 0, o);
34
+ function be(e, t, n, r, i) {
35
+ return _(e.tag, f(f({ key: t }, Tt(e, n, i)), r), (bt(e, n).children || []).map(function(s, o) {
36
+ return be(s, "".concat(t, "-").concat(e.tag, "-").concat(o), n, void 0, i);
37
37
  }));
38
38
  }
39
39
  function Tt(e, t, n) {
40
- var r = v({}, e.attrs);
40
+ var r = f({}, e.attrs);
41
41
  n != null && n.colorChannel1 && r.fill === "colorChannel1" && (r.fill = n.colorChannel1), e.tag === "mask" && r.id && (r.id = r.id + t.idSuffix), Object.entries(r).forEach(function(s) {
42
- var i = s[0], l = s[1];
43
- i === "mask" && typeof l == "string" && (r[i] = l.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
42
+ var o = s[0], c = s[1];
43
+ o === "mask" && typeof c == "string" && (r[o] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
44
44
  });
45
- var o = t.defIds;
46
- return !o || o.length === 0 || (e.tag === "use" && r["xlink:href"] && (r["xlink:href"] = r["xlink:href"] + t.idSuffix), Object.entries(r).forEach(function(s) {
47
- var i = s[0], l = s[1];
48
- typeof l == "string" && (r[i] = l.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
45
+ var i = t.defIds;
46
+ return !i || i.length === 0 || (e.tag === "use" && r["xlink:href"] && (r["xlink:href"] = r["xlink:href"] + t.idSuffix), Object.entries(r).forEach(function(s) {
47
+ var o = s[0], c = s[1];
48
+ typeof c == "string" && (r[o] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
49
49
  })), r;
50
50
  }
51
- function Ot(e, t) {
51
+ function bt(e, t) {
52
52
  var n, r = t.defIds;
53
- return !r || r.length === 0 ? e : e.tag === "defs" && (!((n = e.children) === null || n === void 0) && n.length) ? v(v({}, e), { children: e.children.map(function(o) {
54
- return typeof o.attrs.id == "string" && r && r.indexOf(o.attrs.id) > -1 ? v(v({}, o), { attrs: v(v({}, o.attrs), { id: o.attrs.id + t.idSuffix }) }) : o;
53
+ return !r || r.length === 0 ? e : e.tag === "defs" && (!((n = e.children) === null || n === void 0) && n.length) ? f(f({}, e), { children: e.children.map(function(i) {
54
+ return typeof i.attrs.id == "string" && r && r.indexOf(i.attrs.id) > -1 ? f(f({}, i), { attrs: f(f({}, i.attrs), { id: i.attrs.id + t.idSuffix }) }) : i;
55
55
  }) }) : e;
56
56
  }
57
- function wt() {
57
+ function Ot() {
58
58
  return Math.random().toString(36).substring(2, 8);
59
59
  }
60
60
  x.displayName = "UniverIcon";
61
- var Nt = { 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 = I(function(e, t) {
62
- return y(x, Object.assign({}, e, {
61
+ var Nt = { 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 = y(function(e, t) {
62
+ return _(x, Object.assign({}, e, {
63
63
  id: "ascending- single",
64
64
  ref: t,
65
65
  icon: Nt
66
66
  }));
67
67
  });
68
68
  ee.displayName = "AscendingSingle";
69
- var Pt = { 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" } }] }, Ne = I(function(e, t) {
70
- return y(x, Object.assign({}, e, {
69
+ var kt = { 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" } }] }, Oe = y(function(e, t) {
70
+ return _(x, Object.assign({}, e, {
71
71
  id: "check-mark-single",
72
72
  ref: t,
73
- icon: Pt
73
+ icon: kt
74
74
  }));
75
75
  });
76
- Ne.displayName = "CheckMarkSingle";
77
- var kt = { 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" } }] }, Pe = I(function(e, t) {
78
- return y(x, Object.assign({}, e, {
76
+ Oe.displayName = "CheckMarkSingle";
77
+ var Lt = { 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" } }] }, Ne = y(function(e, t) {
78
+ return _(x, Object.assign({}, e, {
79
79
  id: "custom-sort-single",
80
80
  ref: t,
81
- icon: kt
81
+ icon: Lt
82
82
  }));
83
83
  });
84
- Pe.displayName = "CustomSortSingle";
85
- var Dt = { 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" } }] }, ke = I(function(e, t) {
86
- return y(x, Object.assign({}, e, {
84
+ Ne.displayName = "CustomSortSingle";
85
+ var Dt = { 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" } }] }, ke = y(function(e, t) {
86
+ return _(x, Object.assign({}, e, {
87
87
  id: "delete-empty-single",
88
88
  ref: t,
89
89
  icon: Dt
90
90
  }));
91
91
  });
92
92
  ke.displayName = "DeleteEmptySingle";
93
- 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 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 = I(function(e, t) {
94
- return y(x, Object.assign({}, e, {
93
+ 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 = y(function(e, t) {
94
+ return _(x, Object.assign({}, e, {
95
95
  id: "descending-single",
96
96
  ref: t,
97
- icon: Lt
97
+ icon: Ht
98
98
  }));
99
99
  });
100
100
  te.displayName = "DescendingSingle";
101
- var Ht = { 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" } }] }, De = I(function(e, t) {
102
- return y(x, Object.assign({}, e, {
101
+ 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 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 = y(function(e, t) {
102
+ return _(x, Object.assign({}, e, {
103
103
  id: "expand-ascending-single",
104
104
  ref: t,
105
- icon: Ht
105
+ icon: Ut
106
106
  }));
107
107
  });
108
- De.displayName = "ExpandAscendingSingle";
109
- 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" } }] }, Le = I(function(e, t) {
110
- return y(x, Object.assign({}, e, {
108
+ Le.displayName = "ExpandAscendingSingle";
109
+ var Pt = { 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" } }] }, De = y(function(e, t) {
110
+ return _(x, Object.assign({}, e, {
111
111
  id: "expand-descending-single",
112
112
  ref: t,
113
- icon: Ut
113
+ icon: Pt
114
114
  }));
115
115
  });
116
- Le.displayName = "ExpandDescendingSingle";
117
- 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 = I(function(e, t) {
118
- return y(x, Object.assign({}, e, {
116
+ De.displayName = "ExpandDescendingSingle";
117
+ 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 = y(function(e, t) {
118
+ return _(x, Object.assign({}, e, {
119
119
  id: "increase-single",
120
120
  ref: t,
121
121
  icon: At
122
122
  }));
123
123
  });
124
124
  Q.displayName = "IncreaseSingle";
125
- var $t = { 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" } }] }, He = I(function(e, t) {
126
- return y(x, Object.assign({}, e, {
125
+ var $t = { 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" } }] }, He = y(function(e, t) {
126
+ return _(x, Object.assign({}, e, {
127
127
  id: "more-down-single",
128
128
  ref: t,
129
129
  icon: $t
130
130
  }));
131
131
  });
132
132
  He.displayName = "MoreDownSingle";
133
- var Bt = { 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" } }] }] }, Ue = I(function(e, t) {
134
- return y(x, Object.assign({}, e, {
133
+ var jt = { 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" } }] }] }, Ue = y(function(e, t) {
134
+ return _(x, Object.assign({}, e, {
135
135
  id: "sequence-single",
136
136
  ref: t,
137
- icon: Bt
137
+ icon: jt
138
138
  }));
139
139
  });
140
140
  Ue.displayName = "SequenceSingle";
141
- const Ft = "univer-extend-confirm-content", jt = "univer-extend-confirm-radio-group", Vt = "univer-custom-sort-panel-container", zt = "univer-custom-sort-panel-ext", Zt = "univer-add-condition", Gt = "univer-add-condition-text", Wt = "univer-add-condition-disable", Yt = "univer-custom-sort-panel-footer", qt = "univer-custom-sort-panel-footer-btn", Xt = "univer-custom-sort-panel-item", Kt = "univer-custom-sort-panel-item-head", Jt = "univer-custom-sort-panel-item-handler", Qt = "univer-custom-sort-panel-item-remove", en = "univer-custom-sort-panel-item-column-input", tn = "univer-custom-sort-panel-item-column-input-dropdown", nn = "univer-custom-sort-panel-item-column-input-text", rn = "univer-custom-sort-panel-item-order-radio", on = "univer-custom-sort-panel-item-order-radio-cn", sn = "univer-condition-list", cn = "univer-embed-sort-btn-container", an = "univer-embed-sort-btn", ln = "univer-embed-sort-btn-asc", dn = "univer-embed-sort-btn-desc", un = "univer-embed-sort-btn-icon", mn = "univer-custom-sort-col-menu", hn = "univer-custom-sort-col-menu-item", gn = "univer-custom-sort-col-menu-item-desc", c = {
142
- extendConfirmContent: Ft,
143
- extendConfirmRadioGroup: jt,
144
- customSortPanelContainer: Vt,
145
- customSortPanelExt: zt,
146
- addCondition: Zt,
147
- addConditionText: Gt,
148
- addConditionDisable: Wt,
149
- customSortPanelFooter: Yt,
150
- customSortPanelFooterBtn: qt,
151
- customSortPanelItem: Xt,
152
- customSortPanelItemHead: Kt,
153
- customSortPanelItemHandler: Jt,
154
- customSortPanelItemRemove: Qt,
155
- customSortPanelItemColumnInput: en,
156
- customSortPanelItemColumnInputDropdown: tn,
157
- customSortPanelItemColumnInputText: nn,
158
- customSortPanelItemOrderRadio: rn,
159
- customSortPanelItemOrderRadioCn: on,
160
- conditionList: sn,
161
- embedSortBtnContainer: cn,
162
- embedSortBtn: an,
163
- embedSortBtnAsc: ln,
164
- embedSortBtnDesc: dn,
165
- embedSortBtnIcon: un,
166
- customSortColMenu: mn,
167
- customSortColMenuItem: hn,
168
- customSortColMenuItemDesc: gn
169
- }, Cn = (e) => {
170
- const [t, n] = F("0"), r = O(A);
171
- return /* @__PURE__ */ g("div", { className: c.extendConfirmContent, children: [
141
+ const Ft = (e) => {
142
+ const [t, n] = j("0"), r = E(P);
143
+ return /* @__PURE__ */ m("div", { className: "univer-text-sm univer-theme", children: [
172
144
  /* @__PURE__ */ a("div", { className: "extend-confirm-desc", children: r.t("sheets-sort.dialog.sort-reminder-desc") }),
173
- /* @__PURE__ */ g(
174
- Ee,
145
+ /* @__PURE__ */ m(
146
+ Re,
175
147
  {
176
- className: c.extendConfirmRadioGroup,
148
+ className: "univer-mt-4",
177
149
  value: t,
178
150
  direction: "vertical",
179
- onChange: (o) => {
180
- n(o), e.onChange(o);
151
+ onChange: (i) => {
152
+ n(i), e.onChange(i);
181
153
  },
182
154
  children: [
183
- /* @__PURE__ */ a(
184
- Z,
185
- {
186
- value: "0",
187
- children: r.t("sheets-sort.dialog.sort-reminder-no")
188
- }
189
- ),
190
- /* @__PURE__ */ a(Z, { value: "1", children: r.t("sheets-sort.dialog.sort-reminder-ext") })
155
+ /* @__PURE__ */ a(z, { value: "0", children: r.t("sheets-sort.dialog.sort-reminder-no") }),
156
+ /* @__PURE__ */ a(z, { value: "1", children: r.t("sheets-sort.dialog.sort-reminder-ext") })
191
157
  ]
192
158
  }
193
159
  )
194
160
  ] });
195
161
  };
196
- var Sn = Object.getOwnPropertyDescriptor, fn = (e, t, n, r) => {
197
- for (var o = r > 1 ? void 0 : r ? Sn(t, n) : t, s = e.length - 1, i; s >= 0; s--)
198
- (i = e[s]) && (o = i(o) || o);
199
- return o;
200
- }, w = (e, t) => (n, r) => t(n, r, e);
201
- const z = {
162
+ var Bt = Object.getOwnPropertyDescriptor, Vt = (e, t, n, r) => {
163
+ for (var i = r > 1 ? void 0 : r ? Bt(t, n) : t, s = e.length - 1, o; s >= 0; s--)
164
+ (o = e[s]) && (i = o(i) || i);
165
+ return i;
166
+ }, b = (e, t) => (n, r) => t(n, r, e);
167
+ const V = {
202
168
  MERGE_ERROR: "sheets-sort.error.merge-size",
203
169
  EMPTY_ERROR: "sheets-sort.error.empty",
204
170
  SINGLE_ERROR: "sheets-sort.error.single",
205
171
  FORMULA_ARRAY: "sheets-sort.error.formula-array"
206
172
  };
207
- let C = class extends Ge {
208
- constructor(t, n, r, o, s, i, l) {
173
+ let g = class extends Ze {
174
+ constructor(t, n, r, i, s, o, c) {
209
175
  super();
210
- K(this, "_customSortState$", new St(null));
176
+ K(this, "_customSortState$", new Ct(null));
211
177
  K(this, "customSortState$", this._customSortState$.asObservable());
212
- this._univerInstanceService = t, this._confirmService = n, this._logService = r, this._selectionManagerService = o, this._sheetsSortService = s, this._localeService = i, this._commandService = l;
178
+ this._univerInstanceService = t, this._confirmService = n, this._logService = r, this._selectionManagerService = i, this._sheetsSortService = s, this._localeService = o, this._commandService = c;
213
179
  }
214
180
  async triggerSortDirectly(t, n, r) {
215
- const o = r || await this._detectSortLocation(n);
216
- if (!o || !this._check(o))
181
+ const i = r || await this._detectSortLocation(n);
182
+ if (!i || !this._check(i))
217
183
  return !1;
218
- const i = {
184
+ const o = {
219
185
  orderRules: [{
220
186
  type: t ? U.ASC : U.DESC,
221
- colIndex: o.colIndex
187
+ colIndex: i.colIndex
222
188
  }],
223
- range: o.range
189
+ range: i.range
224
190
  };
225
- return this._sheetsSortService.applySort(i, o.unitId, o.subUnitId), !0;
191
+ return this._sheetsSortService.applySort(o, i.unitId, i.subUnitId), !0;
226
192
  }
227
193
  async triggerSortCustomize() {
228
194
  const t = await this._detectSortLocation();
@@ -232,34 +198,34 @@ let C = class extends Ge {
232
198
  return this._customSortState$.getValue();
233
199
  }
234
200
  getTitles(t) {
235
- var u, m;
236
- const n = (u = this.customSortState()) == null ? void 0 : u.location;
201
+ var l, d;
202
+ const n = (l = this.customSortState()) == null ? void 0 : l.location;
237
203
  if (!n)
238
204
  return [];
239
- const { unitId: r, subUnitId: o, range: s } = n, i = (m = this._univerInstanceService.getUnit(r)) == null ? void 0 : m.getSheetBySheetId(o);
240
- if (!i)
205
+ const { unitId: r, subUnitId: i, range: s } = n, o = (d = this._univerInstanceService.getUnit(r)) == null ? void 0 : d.getSheetBySheetId(i);
206
+ if (!o)
241
207
  return [];
242
- const l = vn(this._localeService);
243
- return Array.from({ length: s.endColumn - s.startColumn + 1 }, (M, f) => {
244
- var S;
245
- const T = (S = i.getCell(s.startRow, f + s.startColumn)) == null ? void 0 : S.v;
208
+ const c = zt(this._localeService);
209
+ return Array.from({ length: s.endColumn - s.startColumn + 1 }, (M, C) => {
210
+ var v;
211
+ const T = (v = o.getCell(s.startRow, C + s.startColumn)) == null ? void 0 : v.v;
246
212
  return {
247
- index: f + s.startColumn,
248
- label: t ? `${T != null ? T : l(f + s.startColumn)}` : l(f + s.startColumn)
213
+ index: C + s.startColumn,
214
+ label: t ? `${T != null ? T : c(C + s.startColumn)}` : c(C + s.startColumn)
249
215
  };
250
216
  });
251
217
  }
252
218
  setSelection(t, n, r) {
253
- var i;
254
- const o = (i = this._univerInstanceService.getUnit(t)) == null ? void 0 : i.getSheetBySheetId(n);
255
- if (!o)
219
+ var o;
220
+ const i = (o = this._univerInstanceService.getUnit(t)) == null ? void 0 : o.getSheetBySheetId(n);
221
+ if (!i)
256
222
  return;
257
223
  const s = {
258
224
  unitId: t,
259
225
  subUnitId: n,
260
- selections: [{ range: r, primary: pt(r, o), style: null }]
226
+ selections: [{ range: r, primary: pt(r, i), style: null }]
261
227
  };
262
- this._commandService.executeCommand(_t.id, s);
228
+ this._commandService.executeCommand(yt.id, s);
263
229
  }
264
230
  async showCheckError(t) {
265
231
  return await this._confirmService.confirm({
@@ -281,7 +247,7 @@ let C = class extends Ge {
281
247
  },
282
248
  children: {
283
249
  title: /* @__PURE__ */ a(
284
- Cn,
250
+ Ft,
285
251
  {
286
252
  onChange: (r) => {
287
253
  t = r === "1";
@@ -299,43 +265,43 @@ let C = class extends Ge {
299
265
  this._customSortState$.next({ show: !1 });
300
266
  }
301
267
  _check(t) {
302
- return this._sheetsSortService.singleCheck(t) ? this._sheetsSortService.mergeCheck(t) ? this._sheetsSortService.formulaCheck(t) ? this._sheetsSortService.emptyCheck(t) ? !0 : (this.showCheckError(z.EMPTY_ERROR), !1) : (this.showCheckError(z.FORMULA_ARRAY), !1) : (this.showCheckError(z.MERGE_ERROR), !1) : (this.showCheckError(z.SINGLE_ERROR), !1);
268
+ 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
269
  }
304
270
  async _detectSortLocation(t) {
305
- const n = this._univerInstanceService.getCurrentUnitForType(Y.UNIVER_SHEET), r = n.getActiveSheet(), o = n.getUnitId(), s = r.getSheetId(), i = this._selectionManagerService.getCurrentLastSelection();
306
- if (!i)
271
+ const n = this._univerInstanceService.getCurrentUnitForType(Y.UNIVER_SHEET), r = n.getActiveSheet(), i = n.getUnitId(), s = r.getSheetId(), o = this._selectionManagerService.getCurrentLastSelection();
272
+ if (!o)
307
273
  return null;
308
- let l;
274
+ let c;
309
275
  if (t === !0)
310
- l = fe(i.range, { up: !0, down: !0, left: !0, right: !0 }, r), this.setSelection(o, s, l);
276
+ c = fe(o.range, { up: !0, down: !0, left: !0, right: !0 }, r), this.setSelection(i, s, c);
311
277
  else if (t === !1)
312
- l = i.range;
278
+ c = o.range;
313
279
  else {
314
- const u = await this.showExtendConfirm();
315
- if (u === "cancel")
280
+ const l = await this.showExtendConfirm();
281
+ if (l === "cancel")
316
282
  return null;
317
- u === "keep" ? l = i.range : (l = fe(i.range, { up: !0, down: !0, left: !0, right: !0 }, r), this.setSelection(o, s, l));
283
+ l === "keep" ? c = o.range : (c = fe(o.range, { up: !0, down: !0, left: !0, right: !0 }, r), this.setSelection(i, s, c));
318
284
  }
319
285
  return {
320
- range: l,
321
- unitId: o,
286
+ range: c,
287
+ unitId: i,
322
288
  subUnitId: s,
323
- colIndex: i.primary.actualColumn
289
+ colIndex: o.primary.actualColumn
324
290
  };
325
291
  }
326
292
  };
327
- C = fn([
328
- w(0, ye),
329
- w(1, it),
330
- w(2, Ze),
331
- w(3, E(vt)),
332
- w(4, E(Re)),
333
- w(5, E(A)),
334
- w(6, xe)
335
- ], C);
336
- function vn(e) {
293
+ g = Vt([
294
+ b(0, _e),
295
+ b(1, st),
296
+ b(2, ze),
297
+ b(3, R(St)),
298
+ b(4, R(Ie)),
299
+ b(5, R(P)),
300
+ b(6, xe)
301
+ ], g);
302
+ function zt(e) {
337
303
  return (t) => {
338
- const n = We.chatAtABC(t);
304
+ const n = Ge.chatAtABC(t);
339
305
  switch (e.getCurrentLocale()) {
340
306
  case J.ZH_CN:
341
307
  return `"${n}"列`;
@@ -346,92 +312,105 @@ function vn(e) {
346
312
  }
347
313
  };
348
314
  }
349
- const ne = {
315
+ const re = {
350
316
  id: "sheet.command.sort-range-asc",
351
- type: b.COMMAND,
352
- handler: async (e) => await e.get(C).triggerSortDirectly(!0, !1)
353
- }, re = {
317
+ type: w.COMMAND,
318
+ handler: async (e) => await e.get(g).triggerSortDirectly(!0, !1)
319
+ }, ne = {
354
320
  id: "sheet.command.sort-range-asc-ext",
355
- type: b.COMMAND,
356
- handler: async (e) => await e.get(C).triggerSortDirectly(!0, !0)
357
- }, oe = {
321
+ type: w.COMMAND,
322
+ handler: async (e) => await e.get(g).triggerSortDirectly(!0, !0)
323
+ }, ie = {
358
324
  id: "sheet.command.sort-range-desc",
359
- type: b.COMMAND,
360
- handler: async (e) => await e.get(C).triggerSortDirectly(!1, !1)
325
+ type: w.COMMAND,
326
+ handler: async (e) => await e.get(g).triggerSortDirectly(!1, !1)
361
327
  }, se = {
362
328
  id: "sheet.command.sort-range-desc-ext",
363
- type: b.COMMAND,
364
- handler: async (e) => await e.get(C).triggerSortDirectly(!1, !0)
365
- }, ie = {
329
+ type: w.COMMAND,
330
+ handler: async (e) => await e.get(g).triggerSortDirectly(!1, !0)
331
+ }, oe = {
366
332
  id: "sheet.command.sort-range-custom",
367
- type: b.COMMAND,
368
- handler: async (e) => await e.get(C).triggerSortCustomize()
369
- }, ce = {
370
- id: "sheet.command.sort-range-asc-ctx",
371
- type: b.COMMAND,
372
- handler: async (e) => await e.get(C).triggerSortDirectly(!0, !1)
333
+ type: w.COMMAND,
334
+ handler: async (e) => await e.get(g).triggerSortCustomize()
373
335
  }, ae = {
336
+ id: "sheet.command.sort-range-asc-ctx",
337
+ type: w.COMMAND,
338
+ handler: async (e) => await e.get(g).triggerSortDirectly(!0, !1)
339
+ }, ce = {
374
340
  id: "sheet.command.sort-range-asc-ext-ctx",
375
- type: b.COMMAND,
376
- handler: async (e) => await e.get(C).triggerSortDirectly(!0, !0)
341
+ type: w.COMMAND,
342
+ handler: async (e) => await e.get(g).triggerSortDirectly(!0, !0)
377
343
  }, le = {
378
344
  id: "sheet.command.sort-range-desc-ctx",
379
- type: b.COMMAND,
380
- handler: async (e) => await e.get(C).triggerSortDirectly(!1, !1)
381
- }, de = {
382
- id: "sheet.command.sort-range-desc-ext-ctx",
383
- type: b.COMMAND,
384
- handler: async (e) => await e.get(C).triggerSortDirectly(!1, !0)
345
+ type: w.COMMAND,
346
+ handler: async (e) => await e.get(g).triggerSortDirectly(!1, !1)
385
347
  }, ue = {
348
+ id: "sheet.command.sort-range-desc-ext-ctx",
349
+ type: w.COMMAND,
350
+ handler: async (e) => await e.get(g).triggerSortDirectly(!1, !0)
351
+ }, de = {
386
352
  id: "sheet.command.sort-range-custom-ctx",
387
- type: b.COMMAND,
388
- handler: async (e) => await e.get(C).triggerSortCustomize()
353
+ type: w.COMMAND,
354
+ handler: async (e) => await e.get(g).triggerSortCustomize()
389
355
  };
390
- function pn() {
391
- const e = O(C), t = O(Re), n = O(A), [r, o] = F(!1), [s, i] = F(0), l = Te(null), u = e.customSortState();
392
- if (!u || !u.location)
393
- return null;
394
- const { range: m, unitId: M, subUnitId: f } = u.location, T = e.getTitles(r), [S, $] = F([
395
- { type: U.ASC, colIndex: m.startColumn }
396
- ]), q = N((d, _) => {
397
- const B = [...S];
398
- _ === null ? B.splice(d, 1) : B[d] = _, $(B);
399
- }, [S]), V = N(
400
- Ye(() => {
401
- const d = [...S], _ = In(m, S);
402
- _ !== null && (d.push({ type: U.ASC, colIndex: _ }), $(d));
356
+ function Zt() {
357
+ const e = E(g), t = ot(e.customSortState$);
358
+ return !t || !t.location ? null : /* @__PURE__ */ a(Gt, { state: t });
359
+ }
360
+ function Gt({ state: e }) {
361
+ const t = E(Ie), n = E(P), r = E(g), [i, s] = j(!1), [o, c] = j(0), l = Ee(null), { range: d, unitId: M, subUnitId: C } = e.location, T = r.getTitles(i), [v, A] = j([
362
+ { type: U.ASC, colIndex: d.startColumn }
363
+ ]), q = O((u, p) => {
364
+ const $ = [...v];
365
+ p === null ? $.splice(u, 1) : $[u] = p, A($);
366
+ }, [v]), B = O(
367
+ We(() => {
368
+ const u = [...v], p = Yt(d, v);
369
+ p !== null && (u.push({ type: U.ASC, colIndex: p }), A(u));
403
370
  }, 200),
404
- [S, m]
405
- ), h = N((d, _) => {
406
- t.applySort({ range: m, orderRules: d, hasTitle: _ }), e.closeCustomSortPanel();
407
- }, [t, e, m]), X = N(() => {
408
- e.closeCustomSortPanel();
409
- }, [e]), Fe = N((d) => {
410
- o(d), d ? e.setSelection(M, f, { ...m, startRow: m.startRow + 1 }) : e.setSelection(M, f, m);
411
- }, [e, m, f, M]);
412
- Oe(() => {
413
- l.current && S.length > 5 && (l.current.scrollTop = l.current.scrollHeight);
414
- }, [S]);
415
- const je = S.length < T.length, Se = S.map((d) => ({ ...d, id: `${d.colIndex}` }));
416
- return /* @__PURE__ */ g("div", { className: c.customSortPanelContainer, children: [
417
- /* @__PURE__ */ g("div", { className: c.customSortPanelContent, onMouseDown: (d) => {
418
- d.stopPropagation();
371
+ [v, d]
372
+ ), h = O((u, p) => {
373
+ t.applySort({ range: d, orderRules: u, hasTitle: p }), r.closeCustomSortPanel();
374
+ }, [t, r, d]), X = O(() => {
375
+ r.closeCustomSortPanel();
376
+ }, [r]), je = O((u) => {
377
+ s(u), u ? r.setSelection(M, C, { ...d, startRow: d.startRow + 1 }) : r.setSelection(M, C, d);
378
+ }, [r, d, C, M]);
379
+ Te(() => {
380
+ l.current && v.length > 5 && (l.current.scrollTop = l.current.scrollHeight);
381
+ }, [v]);
382
+ const Fe = v.length < T.length, Ce = v.map((u) => ({ ...u, id: `${u.colIndex}` }));
383
+ return /* @__PURE__ */ m("div", { children: [
384
+ /* @__PURE__ */ m("div", { onMouseDown: (u) => {
385
+ u.stopPropagation();
419
386
  }, children: [
420
- /* @__PURE__ */ g("div", { className: c.customSortPanelExt, children: [
421
- /* @__PURE__ */ a("div", { className: c.firstRowCheck, children: /* @__PURE__ */ a(yt, { checked: r, onChange: (d) => Fe(!!d), children: n.t("sheets-sort.dialog.first-row-check") }) }),
422
- je ? /* @__PURE__ */ g("div", { className: c.addCondition, onClick: V, children: [
423
- /* @__PURE__ */ a(Q, {}),
424
- /* @__PURE__ */ a("span", { className: c.addConditionText, children: n.t("sheets-sort.dialog.add-condition") })
425
- ] }) : /* @__PURE__ */ g(
387
+ /* @__PURE__ */ m("div", { className: "univer-flex univer-items-center univer-justify-between", children: [
388
+ /* @__PURE__ */ a(xt, { checked: i, onChange: (u) => je(!!u), children: n.t("sheets-sort.dialog.first-row-check") }),
389
+ Fe ? /* @__PURE__ */ m(
426
390
  "div",
427
391
  {
428
392
  className: `
429
- ${c.addCondition}
430
- ${c.addConditionDisable}
393
+ univer-flex univer-cursor-pointer univer-select-none univer-items-center
394
+ univer-text-base
431
395
  `,
396
+ onClick: B,
432
397
  children: [
433
398
  /* @__PURE__ */ a(Q, {}),
434
- /* @__PURE__ */ a("span", { className: c.addConditionText, children: n.t("sheets-sort.dialog.add-condition") })
399
+ /* @__PURE__ */ a("span", { className: "univer-ml-1.5", children: n.t("sheets-sort.dialog.add-condition") })
400
+ ]
401
+ }
402
+ ) : /* @__PURE__ */ m(
403
+ "div",
404
+ {
405
+ className: `
406
+ univer-flex univer-cursor-pointer univer-select-none univer-items-center
407
+ univer-text-base univer-text-primary-500
408
+ disabled:univer-cursor-not-allowed disabled:univer-divide-opacity-30
409
+ disabled:univer-text-gray-800
410
+ `,
411
+ children: [
412
+ /* @__PURE__ */ a(Q, {}),
413
+ /* @__PURE__ */ a("span", { className: "univer-ml-1.5 univer-text-xs", children: n.t("sheets-sort.dialog.add-condition") })
435
414
  ]
436
415
  }
437
416
  )
@@ -439,27 +418,27 @@ function pn() {
439
418
  /* @__PURE__ */ a(
440
419
  "div",
441
420
  {
442
- className: c.conditionList,
443
- onScroll: (d) => {
444
- const _ = d.currentTarget.scrollTop;
445
- i(_);
421
+ className: "univer-max-h-[310px] univer-overflow-y-auto univer-overflow-x-hidden",
422
+ onScroll: (u) => {
423
+ const p = u.currentTarget.scrollTop;
424
+ c(p);
446
425
  },
447
426
  ref: l,
448
427
  children: /* @__PURE__ */ a(
449
- xt,
428
+ Mt,
450
429
  {
451
- list: Se,
452
- onListChange: $,
430
+ list: Ce,
431
+ onListChange: A,
453
432
  idKey: "id",
454
- draggableHandle: `.${c.customSortPanelItemHandler}`,
455
- itemRender: (d) => /* @__PURE__ */ a(
456
- _n,
433
+ draggableHandle: '[data-u-comp="sort-panel-item-handler"]',
434
+ itemRender: (u) => /* @__PURE__ */ a(
435
+ Wt,
457
436
  {
458
437
  titles: T,
459
- list: Se,
460
- item: d,
461
- onChange: (_, B) => q(B, _),
462
- scrollPosition: s
438
+ list: Ce,
439
+ item: u,
440
+ onChange: (p, $) => q($, p),
441
+ scrollPosition: o
463
442
  }
464
443
  ),
465
444
  rowHeight: 32,
@@ -469,382 +448,413 @@ function pn() {
469
448
  }
470
449
  )
471
450
  ] }),
472
- /* @__PURE__ */ g("div", { className: c.customSortPanelFooter, children: [
451
+ /* @__PURE__ */ m("div", { className: "univer-mt-5 univer-flex univer-justify-end", children: [
473
452
  /* @__PURE__ */ a(
474
- ve,
453
+ Z,
475
454
  {
476
- className: c.customSortPanelFooterBtn,
455
+ className: "univer-ml-3",
477
456
  onClick: () => X(),
478
457
  children: n.t("sheets-sort.dialog.cancel")
479
458
  }
480
459
  ),
481
460
  /* @__PURE__ */ a(
482
- ve,
461
+ Z,
483
462
  {
484
- className: c.customSortPanelFooterBtn,
463
+ className: "univer-ml-3",
485
464
  variant: "primary",
486
- onClick: () => h(S, r),
465
+ onClick: () => h(v, i),
487
466
  children: n.t("sheets-sort.dialog.confirm")
488
467
  }
489
468
  )
490
469
  ] })
491
470
  ] });
492
471
  }
493
- function _n(e) {
494
- var V;
495
- const { list: t, item: n, titles: r, onChange: o, scrollPosition: s } = e, i = O(A), l = r.filter((h) => !t.some((X) => X.colIndex === h.index) || h.index === n.colIndex), u = t.findIndex((h) => h.colIndex === n.colIndex), m = N((h) => {
496
- o({ ...n, colIndex: h.index }, u), f(!1);
497
- }, [u, n, o]), [M, f] = F(!1), T = (h) => {
498
- f(h);
472
+ function Wt(e) {
473
+ var B;
474
+ const { list: t, item: n, titles: r, onChange: i, scrollPosition: s } = e, o = E(P), c = r.filter((h) => !t.some((X) => X.colIndex === h.index) || h.index === n.colIndex), l = t.findIndex((h) => h.colIndex === n.colIndex), d = O((h) => {
475
+ i({ ...n, colIndex: h.index }, l), C(!1);
476
+ }, [l, n, i]), [M, C] = j(!1), T = (h) => {
477
+ C(h);
499
478
  };
500
- Oe(() => {
501
- f(!1);
479
+ Te(() => {
480
+ C(!1);
502
481
  }, [s]);
503
- const S = t.length > 1, $ = (V = r.find((h) => h.index === n.colIndex)) == null ? void 0 : V.label, q = i.getCurrentLocale() === J.ZH_CN ? c.customSortPanelItemOrderRadioCn : c.customSortPanelItemOrderRadio;
504
- return /* @__PURE__ */ g("div", { className: c.customSortPanelItem, children: [
505
- /* @__PURE__ */ g("div", { className: c.customSortPanelItemHead, children: [
506
- /* @__PURE__ */ a("div", { className: c.customSortPanelItemHandler, children: /* @__PURE__ */ a(Ue, {}) }),
507
- /* @__PURE__ */ a("div", { className: c.customSortPanelItemColumn, children: /* @__PURE__ */ a(
508
- Mt,
482
+ const v = t.length > 1, A = (B = r.find((h) => h.index === n.colIndex)) == null ? void 0 : B.label, q = o.getCurrentLocale() === J.ZH_CN ? "univer-flex univer-px-5" : "univer-flex univer-px-2.5";
483
+ return /* @__PURE__ */ m("div", { className: "univer-flex univer-items-center", children: [
484
+ /* @__PURE__ */ m("div", { className: "univer-flex univer-items-center", children: [
485
+ /* @__PURE__ */ a(
486
+ "div",
487
+ {
488
+ "data-u-comp": "sort-panel-item-handler",
489
+ className: `
490
+ univer-flex univer-cursor-pointer univer-items-center univer-justify-center univer-text-base
491
+ univer-text-gray-700
492
+ `,
493
+ children: /* @__PURE__ */ a(Ue, {})
494
+ }
495
+ ),
496
+ /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
497
+ It,
509
498
  {
510
499
  align: "start",
511
- overlay: /* @__PURE__ */ a("ul", { className: Rt(c.customSortColMenu, "univer-theme"), children: l.map((h) => /* @__PURE__ */ g(
512
- "li",
500
+ overlay: /* @__PURE__ */ a(
501
+ "ul",
513
502
  {
514
- onClick: () => m(h),
515
- className: c.customSortColMenuItem,
516
- children: [
517
- /* @__PURE__ */ a("span", { className: c.customSortColMenuItemDesc, children: h.label }),
518
- /* @__PURE__ */ a("span", { className: c.customSortColMenuItemCheck, children: h.index === n.colIndex && /* @__PURE__ */ a(Ne, {}) })
519
- ]
520
- },
521
- h.index
522
- )) }),
503
+ className: `
504
+ univer-my-0 univer-box-border univer-grid univer-max-h-[310px] univer-items-center
505
+ univer-gap-1 univer-overflow-y-auto univer-overflow-x-hidden univer-rounded-lg
506
+ univer-p-1 univer-theme univer-border univer-bg-white univer-text-base
507
+ univer-shadow-lg
508
+ `,
509
+ children: c.map((h) => /* @__PURE__ */ m(
510
+ "li",
511
+ {
512
+ onClick: () => d(h),
513
+ className: `
514
+ univer-relative univer-box-border univer-flex univer-h-7 univer-cursor-pointer
515
+ univer-list-none univer-items-center univer-justify-between univer-rounded
516
+ univer-px-2 univer-text-sm univer-transition-all
517
+ hover:univer-bg-gray-100
518
+ `,
519
+ children: [
520
+ /* @__PURE__ */ a(
521
+ "span",
522
+ {
523
+ className: "univer-max-w-[220px] univer-truncate",
524
+ children: h.label
525
+ }
526
+ ),
527
+ /* @__PURE__ */ a("span", { children: h.index === n.colIndex && /* @__PURE__ */ a(Oe, {}) })
528
+ ]
529
+ },
530
+ h.index
531
+ ))
532
+ }
533
+ ),
523
534
  open: M,
524
535
  onOpenChange: T,
525
- children: /* @__PURE__ */ g("div", { className: c.customSortPanelItemColumnInput, children: [
526
- /* @__PURE__ */ a("span", { className: c.customSortPanelItemColumnInputText, children: $ }),
527
- /* @__PURE__ */ a(He, { className: c.customSortPanelItemColumnInputDropdown })
528
- ] })
536
+ children: /* @__PURE__ */ m(
537
+ "div",
538
+ {
539
+ className: `
540
+ univer-ml-2 univer-flex univer-w-[236px] univer-items-center univer-justify-between
541
+ univer-overflow-hidden univer-rounded-md univer-border univer-border-gray-200
542
+ univer-px-2.5 univer-py-1.5 univer-text-sm univer-text-gray-900
543
+ `,
544
+ children: [
545
+ /* @__PURE__ */ a(
546
+ "span",
547
+ {
548
+ className: `
549
+ univer-max-w-[220px] univer-overflow-hidden univer-text-ellipsis
550
+ univer-whitespace-nowrap
551
+ `,
552
+ children: A
553
+ }
554
+ ),
555
+ /* @__PURE__ */ a(He, { className: "univer-size-4 univer-text-gray-600" })
556
+ ]
557
+ }
558
+ )
529
559
  }
530
560
  ) })
531
561
  ] }),
532
- /* @__PURE__ */ a("div", { className: c.customSortPanelItemOrder, children: /* @__PURE__ */ g(
533
- Ee,
562
+ /* @__PURE__ */ a("div", { children: /* @__PURE__ */ m(
563
+ Re,
534
564
  {
535
565
  className: q,
536
566
  value: n.type,
537
567
  onChange: (h) => {
538
- o({ ...n, type: h }, u);
568
+ i({ ...n, type: h }, l);
539
569
  },
540
570
  children: [
541
- /* @__PURE__ */ a(Z, { value: U.ASC, children: i.t("sheets-sort.general.sort-asc") }),
542
- /* @__PURE__ */ a(Z, { value: U.DESC, children: i.t("sheets-sort.general.sort-desc") })
571
+ /* @__PURE__ */ a(z, { value: U.ASC, children: o.t("sheets-sort.general.sort-asc") }),
572
+ /* @__PURE__ */ a(z, { value: U.DESC, children: o.t("sheets-sort.general.sort-desc") })
543
573
  ]
544
574
  }
545
575
  ) }),
546
- /* @__PURE__ */ a("div", { className: c.customSortPanelItemRemove, children: S && /* @__PURE__ */ a(ke, { onClick: () => o(null, u) }) })
576
+ /* @__PURE__ */ a("div", { className: "univer-absolute univer-right-0 univer-cursor-pointer univer-text-sm univer-s-[14px]", children: v && /* @__PURE__ */ a(ke, { onClick: () => i(null, l) }) })
547
577
  ] });
548
578
  }
549
- function In(e, t) {
550
- const { startColumn: n, endColumn: r } = e, o = new Set(t.map((s) => s == null ? void 0 : s.colIndex));
579
+ function Yt(e, t) {
580
+ const { startColumn: n, endColumn: r } = e, i = new Set(t.map((s) => s == null ? void 0 : s.colIndex));
551
581
  for (let s = n; s <= r; s++)
552
- if (!o.has(s))
582
+ if (!i.has(s))
553
583
  return s;
554
584
  return null;
555
585
  }
556
- function yn(e) {
557
- const { range: t, colIndex: n, onClose: r } = e, o = O(C), s = O(ye), i = O(A), l = N((u) => {
558
- const { unitId: m, subUnitId: M } = It(s) || {};
559
- if (t && m && M) {
560
- const f = { ...t, startRow: t.startRow + 1 };
561
- o.triggerSortDirectly(u, !1, { unitId: m, subUnitId: M, range: f, colIndex: n });
586
+ function qt(e) {
587
+ const { range: t, colIndex: n, onClose: r } = e, i = E(g), s = E(_e), o = E(P), c = O((l) => {
588
+ const { unitId: d, subUnitId: M } = _t(s) || {};
589
+ if (t && d && M) {
590
+ const C = { ...t, startRow: t.startRow + 1 };
591
+ i.triggerSortDirectly(l, !1, { unitId: d, subUnitId: M, range: C, colIndex: n });
562
592
  } else
563
- console.warn(`Cannot find the target to sort. unitId: ${m}, subUnitId: ${M}, range: ${t}, colIndex: ${n}`);
593
+ throw new Error(`Cannot find the target to sort. unitId: ${d}, subUnitId: ${M}, range: ${t}, colIndex: ${n}`);
564
594
  r();
565
- }, [t, n, o, s, r]);
566
- return /* @__PURE__ */ g("div", { className: c.embedSortBtnContainer, children: [
567
- /* @__PURE__ */ g(
568
- "div",
569
- {
570
- className: `
571
- ${c.embedSortBtn}
572
- ${c.embedSortBtnAsc}
573
- `,
574
- onClick: () => l(!0),
575
- children: [
576
- /* @__PURE__ */ a(ee, { className: c.embedSortBtnIcon }),
577
- i.t("sheets-sort.general.sort-asc")
578
- ]
579
- }
580
- ),
581
- /* @__PURE__ */ g(
582
- "div",
583
- {
584
- className: `
585
- ${c.embedSortBtn}
586
- ${c.embedSortBtnDesc}
587
- `,
588
- onClick: () => l(!1),
589
- children: [
590
- /* @__PURE__ */ a(te, { className: c.embedSortBtnIcon }),
591
- i.t("sheets-sort.general.sort-desc")
592
- ]
593
- }
594
- )
595
+ }, [t, n, i, s, r]);
596
+ return /* @__PURE__ */ m(wt, { className: "univer-mb-3 univer-w-full", children: [
597
+ /* @__PURE__ */ m(Z, { className: "univer-w-1/2", onClick: () => c(!0), children: [
598
+ /* @__PURE__ */ a(ee, { className: "univer-mr-1" }),
599
+ o.t("sheets-sort.general.sort-asc")
600
+ ] }),
601
+ /* @__PURE__ */ m(Z, { className: "univer-w-1/2", onClick: () => c(!1), children: [
602
+ /* @__PURE__ */ a(te, { className: "univer-mr-1" }),
603
+ o.t("sheets-sort.general.sort-desc")
604
+ ] })
595
605
  ] });
596
606
  }
597
- const Ae = "sheet.menu.sheets-sort", $e = "sheet.menu.sheets-sort-ctx", j = "AscendingSingle", me = "ExpandAscendingSingle", he = "DescendingSingle", ge = "ExpandDescendingSingle", Ce = "CustomSortSingle";
598
- function xn(e) {
607
+ const Pe = "sheet.menu.sheets-sort", Ae = "sheet.menu.sheets-sort-ctx", F = "AscendingSingle", he = "ExpandAscendingSingle", ge = "DescendingSingle", me = "ExpandDescendingSingle", ve = "CustomSortSingle";
608
+ function Xt(e) {
599
609
  return {
600
- id: Ae,
601
- type: p.SUBITEMS,
602
- icon: j,
610
+ id: Pe,
611
+ type: S.SUBITEMS,
612
+ icon: F,
603
613
  tooltip: "sheets-sort.general.sort",
604
- hidden$: be(e, Y.UNIVER_SHEET),
605
- disabled$: P(e, { workbookTypes: [H], worksheetTypes: [D, L], rangeTypes: [k] })
614
+ hidden$: we(e, Y.UNIVER_SHEET),
615
+ disabled$: N(e, { workbookTypes: [H], worksheetTypes: [L, D], rangeTypes: [k] })
606
616
  };
607
617
  }
608
- function Mn(e) {
618
+ function Kt(e) {
609
619
  return {
610
- id: ne.id,
611
- icon: j,
620
+ id: re.id,
621
+ icon: F,
612
622
  title: "sheets-sort.general.sort-asc-cur",
613
- type: p.BUTTON,
623
+ type: S.BUTTON,
614
624
  hidden$: rt(e)
615
625
  };
616
626
  }
617
- function Rn(e) {
627
+ function Jt(e) {
618
628
  return {
619
- id: re.id,
629
+ id: ne.id,
620
630
  title: "sheets-sort.general.sort-asc-ext",
621
- icon: me,
622
- type: p.BUTTON
631
+ icon: he,
632
+ type: S.BUTTON
623
633
  };
624
634
  }
625
- function bn(e) {
635
+ function Qt(e) {
626
636
  return {
627
- id: oe.id,
637
+ id: ie.id,
628
638
  title: "sheets-sort.general.sort-desc-cur",
629
- icon: he,
630
- type: p.BUTTON
639
+ icon: ge,
640
+ type: S.BUTTON
631
641
  };
632
642
  }
633
- function En(e) {
643
+ function er(e) {
634
644
  return {
635
645
  id: se.id,
636
646
  title: "sheets-sort.general.sort-desc-ext",
637
- icon: ge,
638
- type: p.BUTTON
647
+ icon: me,
648
+ type: S.BUTTON
639
649
  };
640
650
  }
641
- function Tn(e) {
651
+ function tr(e) {
642
652
  return {
643
- id: ie.id,
653
+ id: oe.id,
644
654
  title: "sheets-sort.general.sort-custom",
645
- type: p.BUTTON,
646
- icon: Ce
655
+ type: S.BUTTON,
656
+ icon: ve
647
657
  };
648
658
  }
649
- function On(e) {
659
+ function rr(e) {
650
660
  return {
651
- id: $e,
661
+ id: Ae,
652
662
  title: "sheets-sort.general.sort",
653
- type: p.SUBITEMS,
654
- icon: j,
655
- hidden$: be(e, Y.UNIVER_SHEET),
656
- disabled$: P(e, {
663
+ type: S.SUBITEMS,
664
+ icon: F,
665
+ hidden$: we(e, Y.UNIVER_SHEET),
666
+ disabled$: N(e, {
657
667
  workbookTypes: [H],
658
- worksheetTypes: [D, L],
668
+ worksheetTypes: [L, D],
659
669
  rangeTypes: [k]
660
670
  })
661
671
  };
662
672
  }
663
- function wn(e) {
673
+ function nr(e) {
664
674
  return {
665
- id: ce.id,
675
+ id: ae.id,
666
676
  title: "sheets-sort.general.sort-asc-cur",
667
- type: p.BUTTON,
668
- icon: j,
669
- disabled$: P(e, { workbookTypes: [H], worksheetTypes: [D, L], rangeTypes: [k] })
677
+ type: S.BUTTON,
678
+ icon: F,
679
+ disabled$: N(e, { workbookTypes: [H], worksheetTypes: [L, D], rangeTypes: [k] })
670
680
  };
671
681
  }
672
- function Nn(e) {
682
+ function ir(e) {
673
683
  return {
674
- id: ae.id,
684
+ id: ce.id,
675
685
  title: "sheets-sort.general.sort-asc-ext",
676
- type: p.BUTTON,
677
- icon: me,
678
- disabled$: P(e, { workbookTypes: [H], worksheetTypes: [D, L], rangeTypes: [k] })
686
+ type: S.BUTTON,
687
+ icon: he,
688
+ disabled$: N(e, { workbookTypes: [H], worksheetTypes: [L, D], rangeTypes: [k] })
679
689
  };
680
690
  }
681
- function Pn(e) {
691
+ function sr(e) {
682
692
  return {
683
693
  id: le.id,
684
694
  title: "sheets-sort.general.sort-desc-cur",
685
- type: p.BUTTON,
686
- icon: he,
687
- disabled$: P(e, { workbookTypes: [H], worksheetTypes: [D, L], rangeTypes: [k] })
695
+ type: S.BUTTON,
696
+ icon: ge,
697
+ disabled$: N(e, { workbookTypes: [H], worksheetTypes: [L, D], rangeTypes: [k] })
688
698
  };
689
699
  }
690
- function kn(e) {
700
+ function or(e) {
691
701
  return {
692
- id: de.id,
702
+ id: ue.id,
693
703
  title: "sheets-sort.general.sort-desc-ext",
694
- type: p.BUTTON,
695
- icon: ge,
696
- disabled$: P(e, { workbookTypes: [H], worksheetTypes: [D, L], rangeTypes: [k] })
704
+ type: S.BUTTON,
705
+ icon: me,
706
+ disabled$: N(e, { workbookTypes: [H], worksheetTypes: [L, D], rangeTypes: [k] })
697
707
  };
698
708
  }
699
- function Dn(e) {
709
+ function ar(e) {
700
710
  return {
701
- id: ue.id,
711
+ id: de.id,
702
712
  title: "sheets-sort.general.sort-custom",
703
- type: p.BUTTON,
704
- icon: Ce,
705
- disabled$: P(e, { workbookTypes: [H], worksheetTypes: [D, L], rangeTypes: [k] })
713
+ type: S.BUTTON,
714
+ icon: ve,
715
+ disabled$: N(e, { workbookTypes: [H], worksheetTypes: [L, D], rangeTypes: [k] })
706
716
  };
707
717
  }
708
- const Ln = {
718
+ const cr = {
709
719
  [lt.FORMULAS_INSERT]: {
710
- [Ae]: {
720
+ [Pe]: {
711
721
  order: 2,
712
- menuItemFactory: xn,
713
- [ne.id]: {
722
+ menuItemFactory: Xt,
723
+ [re.id]: {
714
724
  order: 0,
715
- menuItemFactory: Mn
725
+ menuItemFactory: Kt
716
726
  },
717
- [re.id]: {
727
+ [ne.id]: {
718
728
  order: 1,
719
- menuItemFactory: Rn
729
+ menuItemFactory: Jt
720
730
  },
721
- [oe.id]: {
731
+ [ie.id]: {
722
732
  order: 2,
723
- menuItemFactory: bn
733
+ menuItemFactory: Qt
724
734
  },
725
735
  [se.id]: {
726
736
  order: 3,
727
- menuItemFactory: En
737
+ menuItemFactory: er
728
738
  },
729
- [ie.id]: {
739
+ [oe.id]: {
730
740
  order: 4,
731
- menuItemFactory: Tn
741
+ menuItemFactory: tr
732
742
  }
733
743
  }
734
744
  },
735
- [ct.MAIN_AREA]: {
736
- [at.DATA]: {
737
- [$e]: {
745
+ [at.MAIN_AREA]: {
746
+ [ct.DATA]: {
747
+ [Ae]: {
738
748
  order: 0,
739
- menuItemFactory: On,
740
- [ce.id]: {
749
+ menuItemFactory: rr,
750
+ [ae.id]: {
741
751
  order: 0,
742
- menuItemFactory: wn
752
+ menuItemFactory: nr
743
753
  },
744
- [ae.id]: {
754
+ [ce.id]: {
745
755
  order: 1,
746
- menuItemFactory: Nn
756
+ menuItemFactory: ir
747
757
  },
748
758
  [le.id]: {
749
759
  order: 2,
750
- menuItemFactory: Pn
760
+ menuItemFactory: sr
751
761
  },
752
- [de.id]: {
762
+ [ue.id]: {
753
763
  order: 3,
754
- menuItemFactory: kn
764
+ menuItemFactory: or
755
765
  },
756
- [ue.id]: {
766
+ [de.id]: {
757
767
  order: 4,
758
- menuItemFactory: Dn
768
+ menuItemFactory: ar
759
769
  }
760
770
  }
761
771
  }
762
772
  }
763
773
  };
764
- var Hn = Object.getOwnPropertyDescriptor, Un = (e, t, n, r) => {
765
- for (var o = r > 1 ? void 0 : r ? Hn(t, n) : t, s = e.length - 1, i; s >= 0; s--)
766
- (i = e[s]) && (o = i(o) || o);
767
- return o;
768
- }, R = (e, t) => (n, r) => t(n, r, e);
769
- const _e = "custom-sort-dialog", An = 560;
770
- let G = class extends qe {
771
- constructor(e, t, n, r, o, s, i, l, u, m) {
772
- super(), this._commandService = e, this._menuManagerService = t, this._dialogService = n, this._layoutService = r, this._uiPartsService = o, this._sheetRenderService = s, this._localeService = i, this._sheetsSortUIService = l, this._injector = u, this._componentManager = m, this._initCommands(), this._initMenu(), this._initUI();
774
+ var lr = Object.getOwnPropertyDescriptor, ur = (e, t, n, r) => {
775
+ for (var i = r > 1 ? void 0 : r ? lr(t, n) : t, s = e.length - 1, o; s >= 0; s--)
776
+ (o = e[s]) && (i = o(i) || i);
777
+ return i;
778
+ }, I = (e, t) => (n, r) => t(n, r, e);
779
+ const pe = "custom-sort-dialog", dr = 560;
780
+ let G = class extends Ye {
781
+ constructor(e, t, n, r, i, s, o, c, l, d) {
782
+ super(), this._commandService = e, this._menuManagerService = t, this._dialogService = n, this._layoutService = r, this._uiPartsService = i, this._sheetRenderService = s, this._localeService = o, this._sheetsSortUIService = c, this._injector = l, this._componentManager = d, this._initCommands(), this._initMenu(), this._initUI();
773
783
  }
774
784
  _initMenu() {
775
- this._menuManagerService.mergeMenu(Ln);
785
+ this._menuManagerService.mergeMenu(cr);
776
786
  }
777
787
  _initCommands() {
778
788
  [
779
- ne,
780
789
  re,
781
- oe,
782
- se,
790
+ ne,
783
791
  ie,
784
- ce,
792
+ se,
793
+ oe,
785
794
  ae,
795
+ ce,
786
796
  le,
787
- de,
788
- ue
789
- ].forEach((e) => this.disposeWithMe(this._commandService.registerCommand(e))), this.disposeWithMe(this._sheetRenderService.registerSkeletonChangingMutations(et.id));
797
+ ue,
798
+ de
799
+ ].forEach((e) => this.disposeWithMe(this._commandService.registerCommand(e))), this.disposeWithMe(this._sheetRenderService.registerSkeletonChangingMutations(Qe.id));
790
800
  }
791
801
  _initUI() {
792
- this.disposeWithMe(this._componentManager.register("CustomSortPanel", pn)), this.disposeWithMe(this._uiPartsService.registerComponent(st.FILTER_PANEL_EMBED_POINT, () => Ct(yn, this._injector))), this.disposeWithMe(this._componentManager.register(j, ee)), this.disposeWithMe(this._componentManager.register(me, De)), this.disposeWithMe(this._componentManager.register(he, te)), this.disposeWithMe(this._componentManager.register(ge, Le)), this.disposeWithMe(this._componentManager.register(Ce, Pe)), this._sheetsSortUIService.customSortState$.pipe(ft(this.dispose$)).subscribe((e) => {
802
+ this.disposeWithMe(this._componentManager.register("CustomSortPanel", Zt)), this.disposeWithMe(this._uiPartsService.registerComponent(it.FILTER_PANEL_EMBED_POINT, () => vt(qt, this._injector))), this.disposeWithMe(this._componentManager.register(F, ee)), this.disposeWithMe(this._componentManager.register(he, Le)), this.disposeWithMe(this._componentManager.register(ge, te)), this.disposeWithMe(this._componentManager.register(me, De)), this.disposeWithMe(this._componentManager.register(ve, Ne)), this._sheetsSortUIService.customSortState$.pipe(ft(this.dispose$)).subscribe((e) => {
793
803
  e && e.show && e.location ? this._openCustomSortPanel(e.location) : e && !(e != null && e.show) && this._closePanel();
794
804
  });
795
805
  }
796
806
  _openCustomSortPanel(e) {
797
807
  this._dialogService.open({
798
- id: _e,
808
+ id: pe,
799
809
  draggable: !0,
800
- width: An,
801
- title: { title: `${this._localeService.t("sheets-sort.general.sort-custom")}: ${nt(e.range)}` },
810
+ width: dr,
811
+ title: { title: `${this._localeService.t("sheets-sort.general.sort-custom")}: ${tt(e.range)}` },
802
812
  children: { label: "CustomSortPanel" },
803
813
  destroyOnClose: !0,
804
- defaultPosition: $n(),
814
+ defaultPosition: hr(),
805
815
  preservePositionOnDestroy: !1,
806
816
  onClose: () => this._closePanel(),
807
817
  mask: !0
808
818
  });
809
819
  }
810
820
  _closePanel() {
811
- this._dialogService.close(_e), queueMicrotask(() => this._layoutService.focus());
821
+ this._dialogService.close(pe), queueMicrotask(() => this._layoutService.focus());
812
822
  }
813
823
  };
814
- G = Un([
815
- R(0, xe),
816
- R(1, dt),
817
- R(2, ut),
818
- R(3, mt),
819
- R(4, ht),
820
- R(5, E(ot)),
821
- R(6, E(A)),
822
- R(7, E(C)),
823
- R(8, E(Me)),
824
- R(9, E(gt))
824
+ G = ur([
825
+ I(0, xe),
826
+ I(1, ut),
827
+ I(2, dt),
828
+ I(3, ht),
829
+ I(4, gt),
830
+ I(5, R(nt)),
831
+ I(6, R(P)),
832
+ I(7, R(g)),
833
+ I(8, R(Me)),
834
+ I(9, R(mt))
825
835
  ], G);
826
- function $n() {
836
+ function hr() {
827
837
  return { x: 0, y: 0 };
828
838
  }
829
- var Bn = Object.defineProperty, Fn = Object.getOwnPropertyDescriptor, jn = (e, t, n) => t in e ? Bn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Vn = (e, t, n, r) => {
830
- for (var o = r > 1 ? void 0 : r ? Fn(t, n) : t, s = e.length - 1, i; s >= 0; s--)
831
- (i = e[s]) && (o = i(o) || o);
832
- return o;
833
- }, Ie = (e, t) => (n, r) => t(n, r, e), Be = (e, t, n) => jn(e, typeof t != "symbol" ? t + "" : t, n);
834
- const zn = "SHEET_SORT_UI_PLUGIN";
835
- let W = class extends Je {
836
- constructor(e = pe, t, n) {
839
+ var gr = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, vr = (e, t, n) => t in e ? gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Cr = (e, t, n, r) => {
840
+ for (var i = r > 1 ? void 0 : r ? mr(t, n) : t, s = e.length - 1, o; s >= 0; s--)
841
+ (o = e[s]) && (i = o(i) || i);
842
+ return i;
843
+ }, ye = (e, t) => (n, r) => t(n, r, e), $e = (e, t, n) => vr(e, typeof t != "symbol" ? t + "" : t, n);
844
+ const fr = "SHEET_SORT_UI_PLUGIN";
845
+ let W = class extends Ke {
846
+ constructor(e = Se, t, n) {
837
847
  super(), this._config = e, this._injector = t, this._configService = n;
838
- const { ...r } = Qe(
848
+ const { ...r } = Je(
839
849
  {},
840
- pe,
850
+ Se,
841
851
  this._config
842
852
  );
843
- this._configService.setConfig(bt, r);
853
+ this._configService.setConfig(Rt, r);
844
854
  }
845
855
  onStarting() {
846
856
  [
847
- [C],
857
+ [g],
848
858
  [G]
849
859
  ].forEach((e) => this._injector.add(e));
850
860
  }
@@ -852,23 +862,23 @@ let W = class extends Je {
852
862
  this._injector.get(G);
853
863
  }
854
864
  };
855
- Be(W, "type", Y.UNIVER_SHEET);
856
- Be(W, "pluginName", zn);
857
- W = Vn([
858
- Xe(tt),
859
- Ie(1, E(Me)),
860
- Ie(2, Ke)
865
+ $e(W, "type", Y.UNIVER_SHEET);
866
+ $e(W, "pluginName", fr);
867
+ W = Cr([
868
+ qe(et),
869
+ ye(1, R(Me)),
870
+ ye(2, Xe)
861
871
  ], W);
862
872
  export {
863
- ne as SortRangeAscCommand,
864
- re as SortRangeAscExtCommand,
865
- ae as SortRangeAscExtInCtxMenuCommand,
866
- ce as SortRangeAscInCtxMenuCommand,
867
- ie as SortRangeCustomCommand,
868
- ue as SortRangeCustomInCtxMenuCommand,
869
- oe as SortRangeDescCommand,
873
+ re as SortRangeAscCommand,
874
+ ne as SortRangeAscExtCommand,
875
+ ce as SortRangeAscExtInCtxMenuCommand,
876
+ ae as SortRangeAscInCtxMenuCommand,
877
+ oe as SortRangeCustomCommand,
878
+ de as SortRangeCustomInCtxMenuCommand,
879
+ ie as SortRangeDescCommand,
870
880
  se as SortRangeDescExtCommand,
871
- de as SortRangeDescExtInCtxMenuCommand,
881
+ ue as SortRangeDescExtInCtxMenuCommand,
872
882
  le as SortRangeDescInCtxMenuCommand,
873
883
  W as UniverSheetsSortUIPlugin
874
884
  };