@univerjs/sheets-sort-ui 0.2.5 → 0.2.7

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