@univerjs/sheets-sort-ui 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +42 -42
- package/lib/cjs/locale/ar-SA.js +34 -0
- package/lib/cjs/locale/ca-ES.js +3 -2
- package/lib/cjs/locale/de-DE.js +34 -0
- package/lib/cjs/locale/en-US.js +3 -2
- package/lib/cjs/locale/es-ES.js +3 -2
- package/lib/cjs/locale/fa-IR.js +3 -2
- package/lib/cjs/locale/fr-FR.js +3 -2
- package/lib/cjs/locale/id-ID.js +34 -0
- package/lib/cjs/locale/it-IT.js +34 -0
- package/lib/cjs/locale/ja-JP.js +3 -2
- package/lib/cjs/locale/ko-KR.js +3 -2
- package/lib/cjs/locale/pl-PL.js +34 -0
- package/lib/cjs/locale/pt-BR.js +34 -0
- package/lib/cjs/locale/ru-RU.js +3 -2
- package/lib/cjs/locale/sk-SK.js +3 -2
- package/lib/cjs/locale/vi-VN.js +3 -2
- package/lib/cjs/locale/zh-CN.js +3 -2
- package/lib/cjs/locale/zh-HK.js +34 -0
- package/lib/cjs/locale/zh-TW.js +3 -2
- package/lib/es/index.js +42 -42
- package/lib/es/locale/ar-SA.js +33 -0
- package/lib/es/locale/ca-ES.js +3 -2
- package/lib/es/locale/de-DE.js +33 -0
- package/lib/es/locale/en-US.js +3 -2
- package/lib/es/locale/es-ES.js +3 -2
- package/lib/es/locale/fa-IR.js +3 -2
- package/lib/es/locale/fr-FR.js +3 -2
- package/lib/es/locale/id-ID.js +33 -0
- package/lib/es/locale/it-IT.js +33 -0
- package/lib/es/locale/ja-JP.js +3 -2
- package/lib/es/locale/ko-KR.js +3 -2
- package/lib/es/locale/pl-PL.js +33 -0
- package/lib/es/locale/pt-BR.js +33 -0
- package/lib/es/locale/ru-RU.js +3 -2
- package/lib/es/locale/sk-SK.js +3 -2
- package/lib/es/locale/vi-VN.js +3 -2
- package/lib/es/locale/zh-CN.js +3 -2
- package/lib/es/locale/zh-HK.js +33 -0
- package/lib/es/locale/zh-TW.js +3 -2
- package/lib/index.js +42 -42
- package/lib/locale/ar-SA.js +33 -0
- package/lib/locale/ca-ES.js +3 -2
- package/lib/locale/de-DE.js +33 -0
- package/lib/locale/en-US.js +3 -2
- package/lib/locale/es-ES.js +3 -2
- package/lib/locale/fa-IR.js +3 -2
- package/lib/locale/fr-FR.js +3 -2
- package/lib/locale/id-ID.js +33 -0
- package/lib/locale/it-IT.js +33 -0
- package/lib/locale/ja-JP.js +3 -2
- package/lib/locale/ko-KR.js +3 -2
- package/lib/locale/pl-PL.js +33 -0
- package/lib/locale/pt-BR.js +33 -0
- package/lib/locale/ru-RU.js +3 -2
- package/lib/locale/sk-SK.js +3 -2
- package/lib/locale/vi-VN.js +3 -2
- package/lib/locale/zh-CN.js +3 -2
- package/lib/locale/zh-HK.js +33 -0
- package/lib/locale/zh-TW.js +3 -2
- package/lib/types/locale/ar-SA.d.ts +18 -0
- package/lib/types/locale/de-DE.d.ts +18 -0
- package/lib/types/locale/en-US.d.ts +4 -1
- package/lib/types/locale/id-ID.d.ts +18 -0
- package/lib/types/locale/it-IT.d.ts +18 -0
- package/lib/types/locale/pl-PL.d.ts +18 -0
- package/lib/types/locale/pt-BR.d.ts +18 -0
- package/lib/types/locale/zh-HK.d.ts +18 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +12 -12
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/sk-SK.ts
|
|
3
|
-
const locale = { "sheets-sort": {
|
|
3
|
+
const locale = { "sheets-sort-ui": {
|
|
4
4
|
general: {
|
|
5
5
|
sort: "Triediť",
|
|
6
6
|
"sort-asc": "Vzostupne",
|
|
@@ -26,7 +26,8 @@ const locale = { "sheets-sort": {
|
|
|
26
26
|
"add-condition": "Pridať podmienku",
|
|
27
27
|
cancel: "Zrušiť",
|
|
28
28
|
confirm: "Potvrdiť"
|
|
29
|
-
}
|
|
29
|
+
},
|
|
30
|
+
info: { tooltip: "Bublinový tip" }
|
|
30
31
|
} };
|
|
31
32
|
|
|
32
33
|
//#endregion
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/vi-VN.ts
|
|
3
|
-
const locale = { "sheets-sort": {
|
|
3
|
+
const locale = { "sheets-sort-ui": {
|
|
4
4
|
general: {
|
|
5
5
|
sort: "Sắp xếp",
|
|
6
6
|
"sort-asc": "Tăng dần",
|
|
@@ -26,7 +26,8 @@ const locale = { "sheets-sort": {
|
|
|
26
26
|
"add-condition": "Thêm điều kiện sắp xếp",
|
|
27
27
|
cancel: "Hủy bỏ",
|
|
28
28
|
confirm: "Xác nhận"
|
|
29
|
-
}
|
|
29
|
+
},
|
|
30
|
+
info: { tooltip: "Tooltip" }
|
|
30
31
|
} };
|
|
31
32
|
|
|
32
33
|
//#endregion
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/zh-CN.ts
|
|
3
|
-
const locale = { "sheets-sort": {
|
|
3
|
+
const locale = { "sheets-sort-ui": {
|
|
4
4
|
general: {
|
|
5
5
|
sort: "排序",
|
|
6
6
|
"sort-asc": "升序",
|
|
@@ -26,7 +26,8 @@ const locale = { "sheets-sort": {
|
|
|
26
26
|
"add-condition": "添加排序条件",
|
|
27
27
|
cancel: "取消",
|
|
28
28
|
confirm: "确认"
|
|
29
|
-
}
|
|
29
|
+
},
|
|
30
|
+
info: { tooltip: "提示" }
|
|
30
31
|
} };
|
|
31
32
|
|
|
32
33
|
//#endregion
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/zh-HK.ts
|
|
3
|
+
const locale = { "sheets-sort-ui": {
|
|
4
|
+
general: {
|
|
5
|
+
sort: "排序",
|
|
6
|
+
"sort-asc": "升序",
|
|
7
|
+
"sort-desc": "降序",
|
|
8
|
+
"sort-custom": "自訂排序",
|
|
9
|
+
"sort-asc-ext": "拓展區域升序",
|
|
10
|
+
"sort-desc-ext": "拓展區域降序",
|
|
11
|
+
"sort-asc-cur": "目前區域升序",
|
|
12
|
+
"sort-desc-cur": "當前區域降序"
|
|
13
|
+
},
|
|
14
|
+
error: {
|
|
15
|
+
"merge-size": "所選區域的合併儲存格的大小不一致,無法排序。 ",
|
|
16
|
+
empty: "所選區域無內容,無法排序。 ",
|
|
17
|
+
single: "所選區域只有一列,無法排序。 ",
|
|
18
|
+
"formula-array": "所選區域含陣列公式,無法排序。 "
|
|
19
|
+
},
|
|
20
|
+
dialog: {
|
|
21
|
+
"sort-reminder": "排序提醒",
|
|
22
|
+
"sort-reminder-desc": "目前只會對選取區域進行排序,是否拓展排序範圍? ",
|
|
23
|
+
"sort-reminder-ext": "拓展排序範圍",
|
|
24
|
+
"sort-reminder-no": "保持所選排序範圍",
|
|
25
|
+
"first-row-check": "標題不參與排序",
|
|
26
|
+
"add-condition": "新增排序條件",
|
|
27
|
+
cancel: "取消",
|
|
28
|
+
confirm: "確認"
|
|
29
|
+
},
|
|
30
|
+
info: { tooltip: "提示" }
|
|
31
|
+
} };
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
module.exports = locale;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/zh-TW.ts
|
|
3
|
-
const locale = { "sheets-sort": {
|
|
3
|
+
const locale = { "sheets-sort-ui": {
|
|
4
4
|
general: {
|
|
5
5
|
sort: "排序",
|
|
6
6
|
"sort-asc": "升序",
|
|
@@ -26,7 +26,8 @@ const locale = { "sheets-sort": {
|
|
|
26
26
|
"add-condition": "新增排序條件",
|
|
27
27
|
cancel: "取消",
|
|
28
28
|
confirm: "確認"
|
|
29
|
-
}
|
|
29
|
+
},
|
|
30
|
+
info: { tooltip: "提示" }
|
|
30
31
|
} };
|
|
31
32
|
|
|
32
33
|
//#endregion
|
package/lib/es/index.js
CHANGED
|
@@ -33,7 +33,7 @@ const ExtendConfirm = (props) => {
|
|
|
33
33
|
className: "univer-text-sm",
|
|
34
34
|
children: [/* @__PURE__ */ jsx("div", {
|
|
35
35
|
className: "extend-confirm-desc",
|
|
36
|
-
children: localeService.t("sheets-sort.dialog.sort-reminder-desc")
|
|
36
|
+
children: localeService.t("sheets-sort-ui.dialog.sort-reminder-desc")
|
|
37
37
|
}), /* @__PURE__ */ jsxs(RadioGroup, {
|
|
38
38
|
className: "univer-mt-4",
|
|
39
39
|
value: extend,
|
|
@@ -44,17 +44,17 @@ const ExtendConfirm = (props) => {
|
|
|
44
44
|
},
|
|
45
45
|
children: [/* @__PURE__ */ jsx(Radio, {
|
|
46
46
|
value: "0",
|
|
47
|
-
children: localeService.t("sheets-sort.dialog.sort-reminder-no")
|
|
47
|
+
children: localeService.t("sheets-sort-ui.dialog.sort-reminder-no")
|
|
48
48
|
}), /* @__PURE__ */ jsx(Radio, {
|
|
49
49
|
value: "1",
|
|
50
|
-
children: localeService.t("sheets-sort.dialog.sort-reminder-ext")
|
|
50
|
+
children: localeService.t("sheets-sort-ui.dialog.sort-reminder-ext")
|
|
51
51
|
})]
|
|
52
52
|
})]
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
//#endregion
|
|
57
|
-
//#region \0@oxc-project+runtime@0.
|
|
57
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
|
|
58
58
|
function _typeof(o) {
|
|
59
59
|
"@babel/helpers - typeof";
|
|
60
60
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -65,7 +65,7 @@ function _typeof(o) {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
//#endregion
|
|
68
|
-
//#region \0@oxc-project+runtime@0.
|
|
68
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
|
|
69
69
|
function toPrimitive(t, r) {
|
|
70
70
|
if ("object" != _typeof(t) || !t) return t;
|
|
71
71
|
var e = t[Symbol.toPrimitive];
|
|
@@ -78,14 +78,14 @@ function toPrimitive(t, r) {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
//#endregion
|
|
81
|
-
//#region \0@oxc-project+runtime@0.
|
|
81
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
|
|
82
82
|
function toPropertyKey(t) {
|
|
83
83
|
var i = toPrimitive(t, "string");
|
|
84
84
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
//#endregion
|
|
88
|
-
//#region \0@oxc-project+runtime@0.
|
|
88
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
|
|
89
89
|
function _defineProperty(e, r, t) {
|
|
90
90
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
91
91
|
value: t,
|
|
@@ -96,7 +96,7 @@ function _defineProperty(e, r, t) {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
//#endregion
|
|
99
|
-
//#region \0@oxc-project+runtime@0.
|
|
99
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
|
|
100
100
|
function __decorateParam(paramIndex, decorator) {
|
|
101
101
|
return function(target, key) {
|
|
102
102
|
decorator(target, key, paramIndex);
|
|
@@ -104,7 +104,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
//#endregion
|
|
107
|
-
//#region \0@oxc-project+runtime@0.
|
|
107
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
|
|
108
108
|
function __decorate(decorators, target, key, desc) {
|
|
109
109
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
110
110
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -115,10 +115,10 @@ function __decorate(decorators, target, key, desc) {
|
|
|
115
115
|
//#endregion
|
|
116
116
|
//#region src/services/sheets-sort-ui.service.tsx
|
|
117
117
|
const SORT_ERROR_MESSAGE = {
|
|
118
|
-
MERGE_ERROR: "sheets-sort.error.merge-size",
|
|
119
|
-
EMPTY_ERROR: "sheets-sort.error.empty",
|
|
120
|
-
SINGLE_ERROR: "sheets-sort.error.single",
|
|
121
|
-
FORMULA_ARRAY: "sheets-sort.error.formula-array"
|
|
118
|
+
MERGE_ERROR: "sheets-sort-ui.error.merge-size",
|
|
119
|
+
EMPTY_ERROR: "sheets-sort-ui.error.empty",
|
|
120
|
+
SINGLE_ERROR: "sheets-sort-ui.error.single",
|
|
121
|
+
FORMULA_ARRAY: "sheets-sort-ui.error.formula-array"
|
|
122
122
|
};
|
|
123
123
|
let SheetsSortUIService = class SheetsSortUIService extends Disposable {
|
|
124
124
|
constructor(_univerInstanceService, _confirmService, _selectionManagerService, _sheetsSortService, _localeService, _commandService) {
|
|
@@ -191,23 +191,23 @@ let SheetsSortUIService = class SheetsSortUIService extends Disposable {
|
|
|
191
191
|
async showCheckError(content) {
|
|
192
192
|
return await this._confirmService.confirm({
|
|
193
193
|
id: "sort-range-check-error",
|
|
194
|
-
title: { title: this._localeService.t("info.tooltip") },
|
|
194
|
+
title: { title: this._localeService.t("sheets-sort-ui.info.tooltip") },
|
|
195
195
|
children: { title: /* @__PURE__ */ jsx("div", { children: this._localeService.t(content) }) },
|
|
196
|
-
cancelText: this._localeService.t("sheets-sort.dialog.cancel"),
|
|
197
|
-
confirmText: this._localeService.t("sheets-sort.dialog.confirm")
|
|
196
|
+
cancelText: this._localeService.t("sheets-sort-ui.dialog.cancel"),
|
|
197
|
+
confirmText: this._localeService.t("sheets-sort-ui.dialog.confirm")
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
200
|
async showExtendConfirm() {
|
|
201
201
|
let shouldExtend = false;
|
|
202
202
|
if (await this._confirmService.confirm({
|
|
203
203
|
id: "extend-sort-range-dialog",
|
|
204
|
-
title: { title: this._localeService.t("sheets-sort.dialog.sort-reminder") },
|
|
204
|
+
title: { title: this._localeService.t("sheets-sort-ui.dialog.sort-reminder") },
|
|
205
205
|
children: { title: /* @__PURE__ */ jsx(ExtendConfirm, { onChange: (value) => {
|
|
206
206
|
shouldExtend = value === "1";
|
|
207
207
|
} }) },
|
|
208
208
|
width: 400,
|
|
209
|
-
cancelText: this._localeService.t("sheets-sort.dialog.cancel"),
|
|
210
|
-
confirmText: this._localeService.t("sheets-sort.dialog.confirm")
|
|
209
|
+
cancelText: this._localeService.t("sheets-sort-ui.dialog.cancel"),
|
|
210
|
+
confirmText: this._localeService.t("sheets-sort-ui.dialog.confirm")
|
|
211
211
|
})) return shouldExtend ? "extend" : "keep";
|
|
212
212
|
return "cancel";
|
|
213
213
|
}
|
|
@@ -373,7 +373,7 @@ const SortRangeCustomInCtxMenuCommand = {
|
|
|
373
373
|
//#endregion
|
|
374
374
|
//#region package.json
|
|
375
375
|
var name = "@univerjs/sheets-sort-ui";
|
|
376
|
-
var version = "0.
|
|
376
|
+
var version = "0.25.0";
|
|
377
377
|
|
|
378
378
|
//#endregion
|
|
379
379
|
//#region src/config/config.ts
|
|
@@ -395,7 +395,7 @@ function sortRangeMenuFactory(accessor) {
|
|
|
395
395
|
id: SHEETS_SORT_MENU_ID,
|
|
396
396
|
type: MenuItemType.SUBITEMS,
|
|
397
397
|
icon: SHEETS_SORT_ASC_ICON,
|
|
398
|
-
tooltip: "sheets-sort.general.sort",
|
|
398
|
+
tooltip: "sheets-sort-ui.general.sort",
|
|
399
399
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
|
|
400
400
|
disabled$: getCurrentRangeDisable$(accessor, {
|
|
401
401
|
workbookTypes: [WorkbookEditablePermission],
|
|
@@ -408,7 +408,7 @@ function sortRangeAscMenuFactory(_accessor) {
|
|
|
408
408
|
return {
|
|
409
409
|
id: SortRangeAscCommand.id,
|
|
410
410
|
icon: SHEETS_SORT_ASC_ICON,
|
|
411
|
-
title: "sheets-sort.general.sort-asc-cur",
|
|
411
|
+
title: "sheets-sort-ui.general.sort-asc-cur",
|
|
412
412
|
type: MenuItemType.BUTTON,
|
|
413
413
|
hidden$: getCurrentExclusiveRangeInterest$(_accessor)
|
|
414
414
|
};
|
|
@@ -416,7 +416,7 @@ function sortRangeAscMenuFactory(_accessor) {
|
|
|
416
416
|
function sortRangeAscExtMenuFactory(_accessor) {
|
|
417
417
|
return {
|
|
418
418
|
id: SortRangeAscExtCommand.id,
|
|
419
|
-
title: "sheets-sort.general.sort-asc-ext",
|
|
419
|
+
title: "sheets-sort-ui.general.sort-asc-ext",
|
|
420
420
|
icon: SHEETS_SORT_ASC_EXT_ICON,
|
|
421
421
|
type: MenuItemType.BUTTON
|
|
422
422
|
};
|
|
@@ -424,7 +424,7 @@ function sortRangeAscExtMenuFactory(_accessor) {
|
|
|
424
424
|
function sortRangeDescMenuFactory(_accessor) {
|
|
425
425
|
return {
|
|
426
426
|
id: SortRangeDescCommand.id,
|
|
427
|
-
title: "sheets-sort.general.sort-desc-cur",
|
|
427
|
+
title: "sheets-sort-ui.general.sort-desc-cur",
|
|
428
428
|
icon: SHEETS_SORT_DESC_ICON,
|
|
429
429
|
type: MenuItemType.BUTTON
|
|
430
430
|
};
|
|
@@ -432,7 +432,7 @@ function sortRangeDescMenuFactory(_accessor) {
|
|
|
432
432
|
function sortRangeDescExtMenuFactory(_accessor) {
|
|
433
433
|
return {
|
|
434
434
|
id: SortRangeDescExtCommand.id,
|
|
435
|
-
title: "sheets-sort.general.sort-desc-ext",
|
|
435
|
+
title: "sheets-sort-ui.general.sort-desc-ext",
|
|
436
436
|
icon: SHEETS_SORT_DESC_EXT_ICON,
|
|
437
437
|
type: MenuItemType.BUTTON
|
|
438
438
|
};
|
|
@@ -440,7 +440,7 @@ function sortRangeDescExtMenuFactory(_accessor) {
|
|
|
440
440
|
function sortRangeCustomMenuFactory(_accessor) {
|
|
441
441
|
return {
|
|
442
442
|
id: SortRangeCustomCommand.id,
|
|
443
|
-
title: "sheets-sort.general.sort-custom",
|
|
443
|
+
title: "sheets-sort-ui.general.sort-custom",
|
|
444
444
|
type: MenuItemType.BUTTON,
|
|
445
445
|
icon: SHEETS_SORT_CUSTOM_ICON
|
|
446
446
|
};
|
|
@@ -448,7 +448,7 @@ function sortRangeCustomMenuFactory(_accessor) {
|
|
|
448
448
|
function sortRangeCtxMenuFactory(accessor) {
|
|
449
449
|
return {
|
|
450
450
|
id: SHEETS_SORT_CTX_MENU_ID,
|
|
451
|
-
title: "sheets-sort.general.sort",
|
|
451
|
+
title: "sheets-sort-ui.general.sort",
|
|
452
452
|
type: MenuItemType.SUBITEMS,
|
|
453
453
|
icon: SHEETS_SORT_ASC_ICON,
|
|
454
454
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
|
|
@@ -462,7 +462,7 @@ function sortRangeCtxMenuFactory(accessor) {
|
|
|
462
462
|
function sortRangeAscCtxMenuFactory(_accessor) {
|
|
463
463
|
return {
|
|
464
464
|
id: SortRangeAscInCtxMenuCommand.id,
|
|
465
|
-
title: "sheets-sort.general.sort-asc-cur",
|
|
465
|
+
title: "sheets-sort-ui.general.sort-asc-cur",
|
|
466
466
|
type: MenuItemType.BUTTON,
|
|
467
467
|
icon: SHEETS_SORT_ASC_ICON,
|
|
468
468
|
disabled$: getCurrentRangeDisable$(_accessor, {
|
|
@@ -475,7 +475,7 @@ function sortRangeAscCtxMenuFactory(_accessor) {
|
|
|
475
475
|
function sortRangeAscExtCtxMenuFactory(_accessor) {
|
|
476
476
|
return {
|
|
477
477
|
id: SortRangeAscExtInCtxMenuCommand.id,
|
|
478
|
-
title: "sheets-sort.general.sort-asc-ext",
|
|
478
|
+
title: "sheets-sort-ui.general.sort-asc-ext",
|
|
479
479
|
type: MenuItemType.BUTTON,
|
|
480
480
|
icon: SHEETS_SORT_ASC_EXT_ICON,
|
|
481
481
|
disabled$: getCurrentRangeDisable$(_accessor, {
|
|
@@ -488,7 +488,7 @@ function sortRangeAscExtCtxMenuFactory(_accessor) {
|
|
|
488
488
|
function sortRangeDescCtxMenuFactory(_accessor) {
|
|
489
489
|
return {
|
|
490
490
|
id: SortRangeDescInCtxMenuCommand.id,
|
|
491
|
-
title: "sheets-sort.general.sort-desc-cur",
|
|
491
|
+
title: "sheets-sort-ui.general.sort-desc-cur",
|
|
492
492
|
type: MenuItemType.BUTTON,
|
|
493
493
|
icon: SHEETS_SORT_DESC_ICON,
|
|
494
494
|
disabled$: getCurrentRangeDisable$(_accessor, {
|
|
@@ -501,7 +501,7 @@ function sortRangeDescCtxMenuFactory(_accessor) {
|
|
|
501
501
|
function sortRangeDescExtCtxMenuFactory(_accessor) {
|
|
502
502
|
return {
|
|
503
503
|
id: SortRangeDescExtInCtxMenuCommand.id,
|
|
504
|
-
title: "sheets-sort.general.sort-desc-ext",
|
|
504
|
+
title: "sheets-sort-ui.general.sort-desc-ext",
|
|
505
505
|
type: MenuItemType.BUTTON,
|
|
506
506
|
icon: SHEETS_SORT_DESC_EXT_ICON,
|
|
507
507
|
disabled$: getCurrentRangeDisable$(_accessor, {
|
|
@@ -514,7 +514,7 @@ function sortRangeDescExtCtxMenuFactory(_accessor) {
|
|
|
514
514
|
function sortRangeCustomCtxMenuFactory(_accessor) {
|
|
515
515
|
return {
|
|
516
516
|
id: SortRangeCustomInCtxMenuCommand.id,
|
|
517
|
-
title: "sheets-sort.general.sort-custom",
|
|
517
|
+
title: "sheets-sort-ui.general.sort-custom",
|
|
518
518
|
type: MenuItemType.BUTTON,
|
|
519
519
|
icon: SHEETS_SORT_CUSTOM_ICON,
|
|
520
520
|
disabled$: getCurrentRangeDisable$(_accessor, {
|
|
@@ -660,19 +660,19 @@ function CustomSortPanelImpl({ state }) {
|
|
|
660
660
|
children: [/* @__PURE__ */ jsx(Checkbox, {
|
|
661
661
|
checked: hasTitle,
|
|
662
662
|
onChange: (value) => setTitle(!!value),
|
|
663
|
-
children: localeService.t("sheets-sort.dialog.first-row-check")
|
|
663
|
+
children: localeService.t("sheets-sort-ui.dialog.first-row-check")
|
|
664
664
|
}), canNew ? /* @__PURE__ */ jsxs("div", {
|
|
665
665
|
className: "univer-flex univer-cursor-pointer univer-select-none univer-items-center univer-text-base",
|
|
666
666
|
onClick: newItem,
|
|
667
667
|
children: [/* @__PURE__ */ jsx(IncreaseIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
668
668
|
className: "univer-ml-1.5",
|
|
669
|
-
children: localeService.t("sheets-sort.dialog.add-condition")
|
|
669
|
+
children: localeService.t("sheets-sort-ui.dialog.add-condition")
|
|
670
670
|
})]
|
|
671
671
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
672
672
|
className: "univer-flex univer-cursor-pointer univer-select-none univer-items-center univer-text-base univer-text-primary-500 disabled:univer-cursor-not-allowed disabled:univer-divide-opacity-30 disabled:univer-text-gray-800",
|
|
673
673
|
children: [/* @__PURE__ */ jsx(IncreaseIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
674
674
|
className: "univer-ml-1.5 univer-text-xs",
|
|
675
|
-
children: localeService.t("sheets-sort.dialog.add-condition")
|
|
675
|
+
children: localeService.t("sheets-sort-ui.dialog.add-condition")
|
|
676
676
|
})]
|
|
677
677
|
})]
|
|
678
678
|
}), /* @__PURE__ */ jsx("div", {
|
|
@@ -703,12 +703,12 @@ function CustomSortPanelImpl({ state }) {
|
|
|
703
703
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
704
704
|
className: "univer-ml-3",
|
|
705
705
|
onClick: () => cancel(),
|
|
706
|
-
children: localeService.t("sheets-sort.dialog.cancel")
|
|
706
|
+
children: localeService.t("sheets-sort-ui.dialog.cancel")
|
|
707
707
|
}), /* @__PURE__ */ jsx(Button, {
|
|
708
708
|
className: "univer-ml-3",
|
|
709
709
|
variant: "primary",
|
|
710
710
|
onClick: () => apply(list, hasTitle),
|
|
711
|
-
children: localeService.t("sheets-sort.dialog.confirm")
|
|
711
|
+
children: localeService.t("sheets-sort-ui.dialog.confirm")
|
|
712
712
|
})]
|
|
713
713
|
})] });
|
|
714
714
|
}
|
|
@@ -780,10 +780,10 @@ function SortOptionItem(props) {
|
|
|
780
780
|
},
|
|
781
781
|
children: [/* @__PURE__ */ jsx(Radio, {
|
|
782
782
|
value: SortType.ASC,
|
|
783
|
-
children: localeService.t("sheets-sort.general.sort-asc")
|
|
783
|
+
children: localeService.t("sheets-sort-ui.general.sort-asc")
|
|
784
784
|
}), /* @__PURE__ */ jsx(Radio, {
|
|
785
785
|
value: SortType.DESC,
|
|
786
|
-
children: localeService.t("sheets-sort.general.sort-desc")
|
|
786
|
+
children: localeService.t("sheets-sort-ui.general.sort-desc")
|
|
787
787
|
})]
|
|
788
788
|
}), /* @__PURE__ */ jsx("a", {
|
|
789
789
|
className: "univer-flex univer-cursor-pointer univer-items-center univer-text-sm univer-transition-colors hover:univer-text-red-500",
|
|
@@ -833,10 +833,10 @@ function EmbedSortBtn(props) {
|
|
|
833
833
|
className: "univer-mb-3 univer-w-full univer-grid-cols-2",
|
|
834
834
|
children: [/* @__PURE__ */ jsxs(Button, {
|
|
835
835
|
onClick: () => apply(true),
|
|
836
|
-
children: [/* @__PURE__ */ jsx(AscendingIcon, {}), localeService.t("sheets-sort.general.sort-asc")]
|
|
836
|
+
children: [/* @__PURE__ */ jsx(AscendingIcon, {}), localeService.t("sheets-sort-ui.general.sort-asc")]
|
|
837
837
|
}), /* @__PURE__ */ jsxs(Button, {
|
|
838
838
|
onClick: () => apply(false),
|
|
839
|
-
children: [/* @__PURE__ */ jsx(DescendingIcon, {}), localeService.t("sheets-sort.general.sort-desc")]
|
|
839
|
+
children: [/* @__PURE__ */ jsx(DescendingIcon, {}), localeService.t("sheets-sort-ui.general.sort-desc")]
|
|
840
840
|
})]
|
|
841
841
|
});
|
|
842
842
|
}
|
|
@@ -903,7 +903,7 @@ let SheetsSortUIController = class SheetsSortUIController extends RxDisposable {
|
|
|
903
903
|
id: CUSTOM_SORT_DIALOG_ID,
|
|
904
904
|
draggable: true,
|
|
905
905
|
width: CUSTOM_SORT_PANEL_WIDTH,
|
|
906
|
-
title: { title: `${this._localeService.t("sheets-sort.general.sort-custom")}: ${serializeRange(location.range)}` },
|
|
906
|
+
title: { title: `${this._localeService.t("sheets-sort-ui.general.sort-custom")}: ${serializeRange(location.range)}` },
|
|
907
907
|
children: { label: "CustomSortPanel" },
|
|
908
908
|
destroyOnClose: true,
|
|
909
909
|
defaultPosition: getCustomSortDialogDefaultPosition(),
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region src/locale/ar-SA.ts
|
|
2
|
+
const locale = { "sheets-sort-ui": {
|
|
3
|
+
general: {
|
|
4
|
+
sort: "فرز",
|
|
5
|
+
"sort-asc": "تصاعدي",
|
|
6
|
+
"sort-desc": "تنازلي",
|
|
7
|
+
"sort-custom": "فرز مخصص",
|
|
8
|
+
"sort-asc-ext": "فرز تصاعدي ممتد",
|
|
9
|
+
"sort-desc-ext": "فرز تنازلي ممتد",
|
|
10
|
+
"sort-asc-cur": "تصاعدي",
|
|
11
|
+
"sort-desc-cur": "تنازلي"
|
|
12
|
+
},
|
|
13
|
+
error: {
|
|
14
|
+
"merge-size": "يحتوي النطاق المحدد على خلايا مدمجة بأحجام مختلفة ولا يمكن فرزها.",
|
|
15
|
+
empty: "النطاق المحدد فارغ ولا يمكن فرزه.",
|
|
16
|
+
single: "يحتوي النطاق المحدد على صف واحد فقط ولا يمكن فرزه.",
|
|
17
|
+
"formula-array": "يحتوي النطاق المحدد على صيغ مصفوفة ولا يمكن فرزه."
|
|
18
|
+
},
|
|
19
|
+
dialog: {
|
|
20
|
+
"sort-reminder": "تذكير الفرز",
|
|
21
|
+
"sort-reminder-desc": "توسيع نطاق الفرز أم الاحتفاظ بنطاق الفرز الحالي؟",
|
|
22
|
+
"sort-reminder-ext": "توسيع نطاق الفرز",
|
|
23
|
+
"sort-reminder-no": "الاحتفاظ بنطاق الفرز",
|
|
24
|
+
"first-row-check": "الصف الأول لا يشارك في الفرز",
|
|
25
|
+
"add-condition": "إضافة شرط",
|
|
26
|
+
cancel: "إلغاء",
|
|
27
|
+
confirm: "تأكيد"
|
|
28
|
+
},
|
|
29
|
+
info: { tooltip: "تلميح" }
|
|
30
|
+
} };
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { locale as default };
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/locale/ca-ES.ts
|
|
2
|
-
const locale = { "sheets-sort": {
|
|
2
|
+
const locale = { "sheets-sort-ui": {
|
|
3
3
|
general: {
|
|
4
4
|
sort: "Ordena",
|
|
5
5
|
"sort-asc": "Ascendent",
|
|
@@ -25,7 +25,8 @@ const locale = { "sheets-sort": {
|
|
|
25
25
|
"add-condition": "Afegeix condició",
|
|
26
26
|
cancel: "Cancel·lar",
|
|
27
27
|
confirm: "Confirmar"
|
|
28
|
-
}
|
|
28
|
+
},
|
|
29
|
+
info: { tooltip: "Informació sobre l'eina" }
|
|
29
30
|
} };
|
|
30
31
|
|
|
31
32
|
//#endregion
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region src/locale/de-DE.ts
|
|
2
|
+
const locale = { "sheets-sort-ui": {
|
|
3
|
+
general: {
|
|
4
|
+
sort: "Sortieren",
|
|
5
|
+
"sort-asc": "Aufsteigend",
|
|
6
|
+
"sort-desc": "Absteigend",
|
|
7
|
+
"sort-custom": "Benutzerdefiniertes Sortieren",
|
|
8
|
+
"sort-asc-ext": "Aufsteigend erweitern",
|
|
9
|
+
"sort-desc-ext": "Absteigend erweitern",
|
|
10
|
+
"sort-asc-cur": "Aufsteigend",
|
|
11
|
+
"sort-desc-cur": "Absteigend"
|
|
12
|
+
},
|
|
13
|
+
error: {
|
|
14
|
+
"merge-size": "Der ausgewählte Bereich enthält verbundene Zellen unterschiedlicher Größe und kann nicht sortiert werden.",
|
|
15
|
+
empty: "Der ausgewählte Bereich hat keinen Inhalt und kann nicht sortiert werden.",
|
|
16
|
+
single: "Der ausgewählte Bereich hat nur eine Zeile und kann nicht sortiert werden.",
|
|
17
|
+
"formula-array": "Der ausgewählte Bereich enthält Matrixformeln und kann nicht sortiert werden."
|
|
18
|
+
},
|
|
19
|
+
dialog: {
|
|
20
|
+
"sort-reminder": "Sortierhinweis",
|
|
21
|
+
"sort-reminder-desc": "Bereichssortierung erweitern oder beibehalten?",
|
|
22
|
+
"sort-reminder-ext": "Bereichssortierung erweitern",
|
|
23
|
+
"sort-reminder-no": "Bereichssortierung beibehalten",
|
|
24
|
+
"first-row-check": "Erste Zeile nimmt nicht am Sortieren teil",
|
|
25
|
+
"add-condition": "Bedingung hinzufügen",
|
|
26
|
+
cancel: "Abbrechen",
|
|
27
|
+
confirm: "Bestätigen"
|
|
28
|
+
},
|
|
29
|
+
info: { tooltip: "Tooltip" }
|
|
30
|
+
} };
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { locale as default };
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
const locale = { "sheets-sort": {
|
|
17
|
+
const locale = { "sheets-sort-ui": {
|
|
18
18
|
general: {
|
|
19
19
|
sort: "Sort",
|
|
20
20
|
"sort-asc": "Ascending",
|
|
@@ -40,7 +40,8 @@ const locale = { "sheets-sort": {
|
|
|
40
40
|
"add-condition": "Add condition",
|
|
41
41
|
cancel: "Cancel",
|
|
42
42
|
confirm: "Confirm"
|
|
43
|
-
}
|
|
43
|
+
},
|
|
44
|
+
info: { tooltip: "Tooltip" }
|
|
44
45
|
} };
|
|
45
46
|
|
|
46
47
|
//#endregion
|
package/lib/es/locale/es-ES.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/locale/es-ES.ts
|
|
2
|
-
const locale = { "sheets-sort": {
|
|
2
|
+
const locale = { "sheets-sort-ui": {
|
|
3
3
|
general: {
|
|
4
4
|
sort: "Ordenar",
|
|
5
5
|
"sort-asc": "Ascendente",
|
|
@@ -25,7 +25,8 @@ const locale = { "sheets-sort": {
|
|
|
25
25
|
"add-condition": "Agregar condición",
|
|
26
26
|
cancel: "Cancelar",
|
|
27
27
|
confirm: "Confirmar"
|
|
28
|
-
}
|
|
28
|
+
},
|
|
29
|
+
info: { tooltip: "Información sobre la herramienta" }
|
|
29
30
|
} };
|
|
30
31
|
|
|
31
32
|
//#endregion
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/locale/fa-IR.ts
|
|
2
|
-
const locale = { "sheets-sort": {
|
|
2
|
+
const locale = { "sheets-sort-ui": {
|
|
3
3
|
general: {
|
|
4
4
|
sort: "مرتبسازی",
|
|
5
5
|
"sort-asc": "صعودی",
|
|
@@ -25,7 +25,8 @@ const locale = { "sheets-sort": {
|
|
|
25
25
|
"add-condition": "افزودن شرط",
|
|
26
26
|
cancel: "انصراف",
|
|
27
27
|
confirm: "تایید"
|
|
28
|
-
}
|
|
28
|
+
},
|
|
29
|
+
info: { tooltip: "راهنما" }
|
|
29
30
|
} };
|
|
30
31
|
|
|
31
32
|
//#endregion
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/locale/fr-FR.ts
|
|
2
|
-
const locale = { "sheets-sort": {
|
|
2
|
+
const locale = { "sheets-sort-ui": {
|
|
3
3
|
general: {
|
|
4
4
|
sort: "Trier",
|
|
5
5
|
"sort-asc": "Croissant",
|
|
@@ -25,7 +25,8 @@ const locale = { "sheets-sort": {
|
|
|
25
25
|
"add-condition": "Ajouter une condition",
|
|
26
26
|
cancel: "Annuler",
|
|
27
27
|
confirm: "Confirmer"
|
|
28
|
-
}
|
|
28
|
+
},
|
|
29
|
+
info: { tooltip: "Info-bulle" }
|
|
29
30
|
} };
|
|
30
31
|
|
|
31
32
|
//#endregion
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region src/locale/id-ID.ts
|
|
2
|
+
const locale = { "sheets-sort-ui": {
|
|
3
|
+
general: {
|
|
4
|
+
sort: "Urutkan",
|
|
5
|
+
"sort-asc": "Menaik",
|
|
6
|
+
"sort-desc": "Menurun",
|
|
7
|
+
"sort-custom": "Urutan Kustom",
|
|
8
|
+
"sort-asc-ext": "Perluas Menaik",
|
|
9
|
+
"sort-desc-ext": "Perluas Menurun",
|
|
10
|
+
"sort-asc-cur": "Menaik",
|
|
11
|
+
"sort-desc-cur": "Menurun"
|
|
12
|
+
},
|
|
13
|
+
error: {
|
|
14
|
+
"merge-size": "Rentang yang dipilih mengandung sel yang digabungkan dengan ukuran berbeda, yang tidak dapat diurutkan.",
|
|
15
|
+
empty: "Rentang yang dipilih tidak memiliki konten dan tidak dapat diurutkan.",
|
|
16
|
+
single: "Rentang yang dipilih hanya memiliki satu baris dan tidak dapat diurutkan.",
|
|
17
|
+
"formula-array": "Rentang yang dipilih memiliki rumus array dan tidak dapat diurutkan."
|
|
18
|
+
},
|
|
19
|
+
dialog: {
|
|
20
|
+
"sort-reminder": "Pengingat Urutan",
|
|
21
|
+
"sort-reminder-desc": "Perluas pengurutan rentang atau pertahankan pengurutan rentang?",
|
|
22
|
+
"sort-reminder-ext": "Perluas pengurutan rentang",
|
|
23
|
+
"sort-reminder-no": "Pertahankan pengurutan rentang",
|
|
24
|
+
"first-row-check": "Baris pertama tidak ikut dalam pengurutan",
|
|
25
|
+
"add-condition": "Tambah kondisi",
|
|
26
|
+
cancel: "Batal",
|
|
27
|
+
confirm: "Konfirmasi"
|
|
28
|
+
},
|
|
29
|
+
info: { tooltip: "Tooltip" }
|
|
30
|
+
} };
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { locale as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region src/locale/it-IT.ts
|
|
2
|
+
const locale = { "sheets-sort-ui": {
|
|
3
|
+
general: {
|
|
4
|
+
sort: "Ordinamento",
|
|
5
|
+
"sort-asc": "Crescente",
|
|
6
|
+
"sort-desc": "Decrescente",
|
|
7
|
+
"sort-custom": "Ordinamento personalizzato",
|
|
8
|
+
"sort-asc-ext": "Espandi crescente",
|
|
9
|
+
"sort-desc-ext": "Espandi decrescente",
|
|
10
|
+
"sort-asc-cur": "Crescente",
|
|
11
|
+
"sort-desc-cur": "Decrescente"
|
|
12
|
+
},
|
|
13
|
+
error: {
|
|
14
|
+
"merge-size": "L'intervallo selezionato contiene celle unite di dimensioni diverse e non può essere ordinato.",
|
|
15
|
+
empty: "L'intervallo selezionato non ha contenuto e non può essere ordinato.",
|
|
16
|
+
single: "L'intervallo selezionato ha una sola riga e non può essere ordinato.",
|
|
17
|
+
"formula-array": "L'intervallo selezionato contiene formule matriciali e non può essere ordinato."
|
|
18
|
+
},
|
|
19
|
+
dialog: {
|
|
20
|
+
"sort-reminder": "Promemoria ordinamento",
|
|
21
|
+
"sort-reminder-desc": "Estendere l'ordinamento all'intervallo o mantenerlo?",
|
|
22
|
+
"sort-reminder-ext": "Estendi ordinamento intervallo",
|
|
23
|
+
"sort-reminder-no": "Mantieni ordinamento intervallo",
|
|
24
|
+
"first-row-check": "La prima riga non partecipa all'ordinamento",
|
|
25
|
+
"add-condition": "Aggiungi condizione",
|
|
26
|
+
cancel: "Annulla",
|
|
27
|
+
confirm: "Conferma"
|
|
28
|
+
},
|
|
29
|
+
info: { tooltip: "Suggerimento" }
|
|
30
|
+
} };
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { locale as default };
|
package/lib/es/locale/ja-JP.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/locale/ja-JP.ts
|
|
2
|
-
const locale = { "sheets-sort": {
|
|
2
|
+
const locale = { "sheets-sort-ui": {
|
|
3
3
|
general: {
|
|
4
4
|
sort: "並べ替え",
|
|
5
5
|
"sort-asc": "昇順",
|
|
@@ -25,7 +25,8 @@ const locale = { "sheets-sort": {
|
|
|
25
25
|
"add-condition": "条件を追加",
|
|
26
26
|
cancel: "キャンセル",
|
|
27
27
|
confirm: "確認"
|
|
28
|
-
}
|
|
28
|
+
},
|
|
29
|
+
info: { tooltip: "ツールチップ" }
|
|
29
30
|
} };
|
|
30
31
|
|
|
31
32
|
//#endregion
|