@univerjs/sheets-sort 0.17.0 → 0.18.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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -102
- package/lib/es/index.js +1 -252
- package/lib/es/locale/ca-ES.js +1 -18
- package/lib/es/locale/en-US.js +1 -18
- package/lib/es/locale/es-ES.js +1 -18
- package/lib/es/locale/fa-IR.js +1 -18
- package/lib/es/locale/fr-FR.js +1 -18
- package/lib/es/locale/ja-JP.js +1 -18
- package/lib/es/locale/ko-KR.js +1 -18
- package/lib/es/locale/ru-RU.js +1 -18
- package/lib/es/locale/sk-SK.js +1 -18
- package/lib/es/locale/vi-VN.js +1 -18
- package/lib/es/locale/zh-CN.js +1 -18
- package/lib/es/locale/zh-TW.js +1 -18
- package/lib/facade.js +1 -102
- package/lib/index.js +1 -252
- package/lib/locale/ca-ES.js +1 -18
- package/lib/locale/en-US.js +1 -18
- package/lib/locale/es-ES.js +1 -18
- package/lib/locale/fa-IR.js +1 -18
- package/lib/locale/fr-FR.js +1 -18
- package/lib/locale/ja-JP.js +1 -18
- package/lib/locale/ko-KR.js +1 -18
- package/lib/locale/ru-RU.js +1 -18
- package/lib/locale/sk-SK.js +1 -18
- package/lib/locale/vi-VN.js +1 -18
- package/lib/locale/zh-CN.js +1 -18
- package/lib/locale/zh-TW.js +1 -18
- package/lib/types/commands/commands/sheets-sort.command.d.ts +18 -3
- package/lib/types/controllers/sheets-sort.controller.d.ts +15 -0
- package/lib/types/controllers/utils.d.ts +17 -2
- package/lib/types/facade/f-event.d.ts +17 -2
- package/lib/types/facade/f-range.d.ts +15 -0
- package/lib/types/facade/f-worksheet.d.ts +15 -0
- package/lib/types/locale/ca-ES.d.ts +16 -1
- package/lib/types/locale/es-ES.d.ts +16 -1
- package/lib/types/locale/fa-IR.d.ts +16 -1
- package/lib/types/locale/fr-FR.d.ts +16 -1
- package/lib/types/locale/ja-JP.d.ts +16 -1
- package/lib/types/locale/ko-KR.d.ts +16 -1
- package/lib/types/locale/ru-RU.d.ts +16 -1
- package/lib/types/locale/sk-SK.d.ts +16 -1
- package/lib/types/locale/vi-VN.d.ts +16 -1
- package/lib/types/locale/zh-CN.d.ts +16 -1
- package/lib/types/locale/zh-TW.d.ts +16 -1
- package/lib/types/plugin.d.ts +16 -1
- package/lib/types/services/interface.d.ts +16 -1
- package/lib/types/services/sheets-sort.service.d.ts +18 -3
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- 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/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- 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-TW.js +1 -1
- package/package.json +9 -8
package/lib/es/locale/ja-JP.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
sheetsSort: {
|
|
3
|
-
title: "並べ替え",
|
|
4
|
-
toolbar: {
|
|
5
|
-
"sort-asc": "昇順",
|
|
6
|
-
"sort-desc": "降順",
|
|
7
|
-
"sort-custom": "カスタム順序"
|
|
8
|
-
},
|
|
9
|
-
"context-menu": {
|
|
10
|
-
"sort-asc": "昇順",
|
|
11
|
-
"sort-desc": "降順",
|
|
12
|
-
"sort-custom": "カスタム順序"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
t as default
|
|
18
|
-
};
|
|
1
|
+
const e={sheetsSort:{title:`並べ替え`,toolbar:{"sort-asc":`昇順`,"sort-desc":`降順`,"sort-custom":`カスタム順序`},"context-menu":{"sort-asc":`昇順`,"sort-desc":`降順`,"sort-custom":`カスタム順序`}}};export{e as default};
|
package/lib/es/locale/ko-KR.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
sheetsSort: {
|
|
3
|
-
title: "정렬",
|
|
4
|
-
toolbar: {
|
|
5
|
-
"sort-asc": "오름차순",
|
|
6
|
-
"sort-desc": "내림차순",
|
|
7
|
-
"sort-custom": "사용자 정의 순서"
|
|
8
|
-
},
|
|
9
|
-
"context-menu": {
|
|
10
|
-
"sort-asc": "오름차순",
|
|
11
|
-
"sort-desc": "내림차순",
|
|
12
|
-
"sort-custom": "사용자 정의 순서"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
t as default
|
|
18
|
-
};
|
|
1
|
+
const e={sheetsSort:{title:`정렬`,toolbar:{"sort-asc":`오름차순`,"sort-desc":`내림차순`,"sort-custom":`사용자 정의 순서`},"context-menu":{"sort-asc":`오름차순`,"sort-desc":`내림차순`,"sort-custom":`사용자 정의 순서`}}};export{e as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
sheetsSort: {
|
|
3
|
-
title: "Sort",
|
|
4
|
-
toolbar: {
|
|
5
|
-
"sort-asc": "по возрастанию",
|
|
6
|
-
"sort-desc": "по убыванию",
|
|
7
|
-
"sort-custom": "пользовательский выбор"
|
|
8
|
-
},
|
|
9
|
-
"context-menu": {
|
|
10
|
-
"sort-asc": "по возрастанию",
|
|
11
|
-
"sort-desc": "по убыванию",
|
|
12
|
-
"sort-custom": "пользовательский выбор"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
t as default
|
|
18
|
-
};
|
|
1
|
+
const e={sheetsSort:{title:`Sort`,toolbar:{"sort-asc":`по возрастанию`,"sort-desc":`по убыванию`,"sort-custom":`пользовательский выбор`},"context-menu":{"sort-asc":`по возрастанию`,"sort-desc":`по убыванию`,"sort-custom":`пользовательский выбор`}}};export{e as default};
|
package/lib/es/locale/sk-SK.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
sheetsSort: {
|
|
3
|
-
title: "Triedenie",
|
|
4
|
-
toolbar: {
|
|
5
|
-
"sort-asc": "vzostupné poradie",
|
|
6
|
-
"sort-desc": "zostupné poradie",
|
|
7
|
-
"sort-custom": "vlastné poradie"
|
|
8
|
-
},
|
|
9
|
-
"context-menu": {
|
|
10
|
-
"sort-asc": "vzostupné poradie",
|
|
11
|
-
"sort-desc": "zostupné poradie",
|
|
12
|
-
"sort-custom": "vlastné poradie"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
o as default
|
|
18
|
-
};
|
|
1
|
+
const e={sheetsSort:{title:`Triedenie`,toolbar:{"sort-asc":`vzostupné poradie`,"sort-desc":`zostupné poradie`,"sort-custom":`vlastné poradie`},"context-menu":{"sort-asc":`vzostupné poradie`,"sort-desc":`zostupné poradie`,"sort-custom":`vlastné poradie`}}};export{e as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
sheetsSort: {
|
|
3
|
-
title: "Sort",
|
|
4
|
-
toolbar: {
|
|
5
|
-
"sort-asc": "ascending order",
|
|
6
|
-
"sort-desc": "descending order",
|
|
7
|
-
"sort-custom": "custom order"
|
|
8
|
-
},
|
|
9
|
-
"context-menu": {
|
|
10
|
-
"sort-asc": "ascending order",
|
|
11
|
-
"sort-desc": "descending order",
|
|
12
|
-
"sort-custom": "custom order"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
o as default
|
|
18
|
-
};
|
|
1
|
+
const e={sheetsSort:{title:`Sort`,toolbar:{"sort-asc":`ascending order`,"sort-desc":`descending order`,"sort-custom":`custom order`},"context-menu":{"sort-asc":`ascending order`,"sort-desc":`descending order`,"sort-custom":`custom order`}}};export{e as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
sheetsSort: {
|
|
3
|
-
title: "排序",
|
|
4
|
-
toolbar: {
|
|
5
|
-
"sort-asc": "升序",
|
|
6
|
-
"sort-desc": "降序",
|
|
7
|
-
"sort-custom": "自定义排序"
|
|
8
|
-
},
|
|
9
|
-
"context-menu": {
|
|
10
|
-
"sort-asc": "升序",
|
|
11
|
-
"sort-desc": "降序",
|
|
12
|
-
"sort-custom": "自定义排序"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
t as default
|
|
18
|
-
};
|
|
1
|
+
const e={sheetsSort:{title:`排序`,toolbar:{"sort-asc":`升序`,"sort-desc":`降序`,"sort-custom":`自定义排序`},"context-menu":{"sort-asc":`升序`,"sort-desc":`降序`,"sort-custom":`自定义排序`}}};export{e as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
sheetsSort: {
|
|
3
|
-
title: "Sắp xếp",
|
|
4
|
-
toolbar: {
|
|
5
|
-
"sort-asc": "Tăng dần",
|
|
6
|
-
"sort-desc": "Giảm dần",
|
|
7
|
-
"sort-custom": "Sắp xếp tùy chỉnh"
|
|
8
|
-
},
|
|
9
|
-
"context-menu": {
|
|
10
|
-
"sort-asc": "Tăng dần",
|
|
11
|
-
"sort-desc": "Giảm dần",
|
|
12
|
-
"sort-custom": "Sắp xếp tùy chỉnh"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
t as default
|
|
18
|
-
};
|
|
1
|
+
const e={sheetsSort:{title:`Sắp xếp`,toolbar:{"sort-asc":`Tăng dần`,"sort-desc":`Giảm dần`,"sort-custom":`Sắp xếp tùy chỉnh`},"context-menu":{"sort-asc":`Tăng dần`,"sort-desc":`Giảm dần`,"sort-custom":`Sắp xếp tùy chỉnh`}}};export{e as default};
|
package/lib/facade.js
CHANGED
|
@@ -1,102 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { FRange as u, FWorksheet as l, FSheetEventName as f } from "@univerjs/sheets/facade";
|
|
3
|
-
import { RANGE_TYPE as k, ICommandService as v } from "@univerjs/core";
|
|
4
|
-
import { FEventName as R, FUniver as C } from "@univerjs/core/facade";
|
|
5
|
-
class E extends u {
|
|
6
|
-
sort(o) {
|
|
7
|
-
const e = this._range.startColumn, r = (Array.isArray(o) ? o : [o]).map((n) => typeof n == "number" ? { colIndex: n + e, type: s.ASC } : {
|
|
8
|
-
colIndex: n.column + e,
|
|
9
|
-
type: n.ascending ? s.ASC : s.DESC
|
|
10
|
-
});
|
|
11
|
-
return this._commandService.syncExecuteCommand(h.id, {
|
|
12
|
-
orderRules: r,
|
|
13
|
-
range: this._range,
|
|
14
|
-
hasTitle: !1,
|
|
15
|
-
unitId: this._workbook.getUnitId(),
|
|
16
|
-
subUnitId: this._worksheet.getSheetId()
|
|
17
|
-
}), this;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
u.extend(E);
|
|
21
|
-
class p extends l {
|
|
22
|
-
sort(o, e = !0) {
|
|
23
|
-
const t = [{
|
|
24
|
-
colIndex: o,
|
|
25
|
-
type: e ? s.ASC : s.DESC
|
|
26
|
-
}], r = {
|
|
27
|
-
startRow: 0,
|
|
28
|
-
startColumn: 0,
|
|
29
|
-
endRow: this._worksheet.getRowCount() - 1,
|
|
30
|
-
endColumn: this._worksheet.getColumnCount() - 1,
|
|
31
|
-
rangeType: k.ALL
|
|
32
|
-
};
|
|
33
|
-
return this._commandService.syncExecuteCommand(h.id, {
|
|
34
|
-
orderRules: t,
|
|
35
|
-
range: r,
|
|
36
|
-
hasTitle: !1,
|
|
37
|
-
unitId: this._workbook.getUnitId(),
|
|
38
|
-
subUnitId: this._worksheet.getSheetId()
|
|
39
|
-
}), this;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
l.extend(p);
|
|
43
|
-
class w {
|
|
44
|
-
get SheetRangeSorted() {
|
|
45
|
-
return "SheetRangeSorted";
|
|
46
|
-
}
|
|
47
|
-
get SheetBeforeRangeSort() {
|
|
48
|
-
return "SheetBeforeRangeSort";
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
R.extend(f);
|
|
52
|
-
class x extends C {
|
|
53
|
-
/**
|
|
54
|
-
* @ignore
|
|
55
|
-
*/
|
|
56
|
-
_initialize(o) {
|
|
57
|
-
const e = o.get(v);
|
|
58
|
-
this.disposeWithMe(
|
|
59
|
-
this.registerEventHandler(
|
|
60
|
-
this.Event.SheetBeforeRangeSort,
|
|
61
|
-
() => e.beforeCommandExecuted((t) => {
|
|
62
|
-
t.id === h.id && this._beforeRangeSort(t);
|
|
63
|
-
})
|
|
64
|
-
)
|
|
65
|
-
), this.disposeWithMe(
|
|
66
|
-
this.registerEventHandler(
|
|
67
|
-
this.Event.SheetRangeSorted,
|
|
68
|
-
() => e.onCommandExecuted((t) => {
|
|
69
|
-
t.id === h.id && this._onRangeSorted(t);
|
|
70
|
-
})
|
|
71
|
-
)
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
_beforeRangeSort(o) {
|
|
75
|
-
const e = o.params, t = this.getUniverSheet(e.unitId), r = t.getSheetBySheetId(e.subUnitId), { startColumn: n, endColumn: g, startRow: a, endRow: S } = e.range, c = r.getRange(a, n, S - a + 1, g - n + 1), i = {
|
|
76
|
-
workbook: t,
|
|
77
|
-
worksheet: r,
|
|
78
|
-
range: c,
|
|
79
|
-
sortColumn: e.orderRules.map((d) => ({
|
|
80
|
-
column: d.colIndex - n,
|
|
81
|
-
ascending: d.type === s.ASC
|
|
82
|
-
}))
|
|
83
|
-
};
|
|
84
|
-
if (this.fireEvent(this.Event.SheetBeforeRangeSort, i), i.cancel)
|
|
85
|
-
throw new Error("SortRangeCommand canceled.");
|
|
86
|
-
}
|
|
87
|
-
_onRangeSorted(o) {
|
|
88
|
-
const e = o.params, t = this.getUniverSheet(e.unitId), r = t.getSheetBySheetId(e.subUnitId), { startColumn: n, endColumn: g, startRow: a, endRow: S } = e.range, c = r.getRange(a, n, S - a + 1, g - n + 1), i = {
|
|
89
|
-
workbook: t,
|
|
90
|
-
worksheet: r,
|
|
91
|
-
range: c,
|
|
92
|
-
sortColumn: e.orderRules.map((d) => ({
|
|
93
|
-
column: d.colIndex - n,
|
|
94
|
-
ascending: d.type === s.ASC
|
|
95
|
-
}))
|
|
96
|
-
};
|
|
97
|
-
if (this.fireEvent(this.Event.SheetRangeSorted, i), i.cancel)
|
|
98
|
-
throw new Error("SortRangeCommand canceled.");
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
C.extend(x);
|
|
102
|
-
R.extend(w);
|
|
1
|
+
import{SortRangeCommand as e,SortType as t}from"@univerjs/sheets-sort";import{FRange as n,FSheetEventName as r,FWorksheet as i}from"@univerjs/sheets/facade";import{ICommandService as a,RANGE_TYPE as o}from"@univerjs/core";import{FEventName as s,FUniver as c}from"@univerjs/core/facade";var l=class extends n{sort(n){let r=this._range.startColumn,i=(Array.isArray(n)?n:[n]).map(e=>typeof e==`number`?{colIndex:e+r,type:t.ASC}:{colIndex:e.column+r,type:e.ascending?t.ASC:t.DESC});return this._commandService.syncExecuteCommand(e.id,{orderRules:i,range:this._range,hasTitle:!1,unitId:this._workbook.getUnitId(),subUnitId:this._worksheet.getSheetId()}),this}};n.extend(l);var u=class extends i{sort(n,r=!0){let i=[{colIndex:n,type:r?t.ASC:t.DESC}],a={startRow:0,startColumn:0,endRow:this._worksheet.getRowCount()-1,endColumn:this._worksheet.getColumnCount()-1,rangeType:o.ALL};return this._commandService.syncExecuteCommand(e.id,{orderRules:i,range:a,hasTitle:!1,unitId:this._workbook.getUnitId(),subUnitId:this._worksheet.getSheetId()}),this}};i.extend(u);var d=class{get SheetRangeSorted(){return`SheetRangeSorted`}get SheetBeforeRangeSort(){return`SheetBeforeRangeSort`}};s.extend(r);var f=class extends c{_initialize(t){let n=t.get(a);this.disposeWithMe(this.registerEventHandler(this.Event.SheetBeforeRangeSort,()=>n.beforeCommandExecuted(t=>{t.id===e.id&&this._beforeRangeSort(t)}))),this.disposeWithMe(this.registerEventHandler(this.Event.SheetRangeSorted,()=>n.onCommandExecuted(t=>{t.id===e.id&&this._onRangeSorted(t)})))}_beforeRangeSort(e){let n=e.params,r=this.getUniverSheet(n.unitId),i=r.getSheetBySheetId(n.subUnitId),{startColumn:a,endColumn:o,startRow:s,endRow:c}=n.range,l={workbook:r,worksheet:i,range:i.getRange(s,a,c-s+1,o-a+1),sortColumn:n.orderRules.map(e=>({column:e.colIndex-a,ascending:e.type===t.ASC}))};if(this.fireEvent(this.Event.SheetBeforeRangeSort,l),l.cancel)throw Error(`SortRangeCommand canceled.`)}_onRangeSorted(e){let n=e.params,r=this.getUniverSheet(n.unitId),i=r.getSheetBySheetId(n.subUnitId),{startColumn:a,endColumn:o,startRow:s,endRow:c}=n.range,l={workbook:r,worksheet:i,range:i.getRange(s,a,c-s+1,o-a+1),sortColumn:n.orderRules.map(e=>({column:e.colIndex-a,ascending:e.type===t.ASC}))};if(this.fireEvent(this.Event.SheetRangeSorted,l),l.cancel)throw Error(`SortRangeCommand canceled.`)}};c.extend(f),s.extend(d);export{};
|
package/lib/index.js
CHANGED
|
@@ -1,252 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
var k = (e, t, r) => t in e ? q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
-
var N = (e, t, r) => k(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { IUniverInstanceService as P, ICommandService as w, Inject as I, Disposable as U, Rectangle as R, CommandType as K, sequenceExecute as W, CellValueType as h, UniverInstanceType as Y, DependentOn as z, Injector as J, IConfigService as Q, Plugin as X, merge as Z } from "@univerjs/core";
|
|
5
|
-
import { getSheetCommandTarget as T, ReorderRangeCommand as ee, UniverSheetsPlugin as te } from "@univerjs/sheets";
|
|
6
|
-
import { FormulaDataModel as re, UniverFormulaEnginePlugin as ne } from "@univerjs/engine-formula";
|
|
7
|
-
var m = /* @__PURE__ */ ((e) => (e.DESC = "desc", e.ASC = "asc", e))(m || {});
|
|
8
|
-
const D = (e) => e.replace(/-/gi, "").replace(/'/gi, ""), oe = (e, t) => {
|
|
9
|
-
const r = e === null || e === "", n = t === null || t === "";
|
|
10
|
-
return r && n ? 0 : r ? 1 : n ? -1 : null;
|
|
11
|
-
}, se = (e, t, r) => {
|
|
12
|
-
const n = typeof e == "number", o = typeof t == "number";
|
|
13
|
-
return n && o ? e < t ? r === m.ASC ? -1 : 1 : e > t ? r === m.ASC ? 1 : -1 : 0 : n ? r === m.ASC ? 1 : -1 : o ? r === m.ASC ? -1 : 1 : null;
|
|
14
|
-
}, ie = (e, t, r) => {
|
|
15
|
-
const n = typeof e == "string", o = typeof t == "string";
|
|
16
|
-
if (n && (e = D(e.toLocaleLowerCase())), o && (t = D(t.toLocaleLowerCase())), !n && !o)
|
|
17
|
-
return null;
|
|
18
|
-
if (n && o) {
|
|
19
|
-
const s = e, i = t;
|
|
20
|
-
return s < i ? r === m.ASC ? -1 : 1 : s > i ? r === m.ASC ? 1 : -1 : 0;
|
|
21
|
-
}
|
|
22
|
-
return n ? r === m.ASC ? 1 : -1 : o ? r === m.ASC ? -1 : 1 : null;
|
|
23
|
-
}, M = (e) => !e || Object.keys(e).length === 0 || (e == null ? void 0 : e.v) == null && (e == null ? void 0 : e.p) == null;
|
|
24
|
-
var ue = Object.getOwnPropertyDescriptor, le = (e, t, r, n) => {
|
|
25
|
-
for (var o = n > 1 ? void 0 : n ? ue(t, r) : t, s = e.length - 1, i; s >= 0; s--)
|
|
26
|
-
(i = e[s]) && (o = i(o) || o);
|
|
27
|
-
return o;
|
|
28
|
-
}, p = (e, t) => (r, n) => t(r, n, e);
|
|
29
|
-
let d = class extends U {
|
|
30
|
-
constructor(t, r, n) {
|
|
31
|
-
super();
|
|
32
|
-
N(this, "_compareFns", []);
|
|
33
|
-
this._univerInstanceService = t, this._commandService = r, this._formulaDataModel = n;
|
|
34
|
-
}
|
|
35
|
-
mergeCheck(t) {
|
|
36
|
-
var l;
|
|
37
|
-
const { unitId: r, subUnitId: n, range: o } = t, s = (l = this._univerInstanceService.getUnit(r)) == null ? void 0 : l.getSheetBySheetId(n);
|
|
38
|
-
if (!s)
|
|
39
|
-
return !1;
|
|
40
|
-
const i = s.getMergeData().filter((u) => R.contains(o, u));
|
|
41
|
-
return i.length === 0 ? !0 : ce(o, i);
|
|
42
|
-
}
|
|
43
|
-
emptyCheck(t) {
|
|
44
|
-
var i;
|
|
45
|
-
const { unitId: r, subUnitId: n, range: o } = t, s = (i = this._univerInstanceService.getUnit(r)) == null ? void 0 : i.getSheetBySheetId(n);
|
|
46
|
-
if (!s)
|
|
47
|
-
return !1;
|
|
48
|
-
for (let l = o.startRow; l <= o.endRow; l++)
|
|
49
|
-
for (let u = o.startColumn; u <= o.endColumn; u++)
|
|
50
|
-
if (!M(s.getCellRaw(l, u)))
|
|
51
|
-
return !0;
|
|
52
|
-
return !1;
|
|
53
|
-
}
|
|
54
|
-
singleCheck(t) {
|
|
55
|
-
return t.range.startRow !== t.range.endRow;
|
|
56
|
-
}
|
|
57
|
-
formulaCheck(t) {
|
|
58
|
-
var i, l;
|
|
59
|
-
const { unitId: r, subUnitId: n, range: o } = t, s = (l = (i = this._formulaDataModel.getArrayFormulaRange()) == null ? void 0 : i[r]) == null ? void 0 : l[n];
|
|
60
|
-
for (const u in s) {
|
|
61
|
-
const a = s[Number(u)];
|
|
62
|
-
for (const f in a) {
|
|
63
|
-
const v = a[Number(f)];
|
|
64
|
-
if (v && R.intersects(o, v))
|
|
65
|
-
return !1;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return !0;
|
|
69
|
-
}
|
|
70
|
-
registerCompareFn(t) {
|
|
71
|
-
this._compareFns.unshift(t);
|
|
72
|
-
}
|
|
73
|
-
getAllCompareFns() {
|
|
74
|
-
return this._compareFns;
|
|
75
|
-
}
|
|
76
|
-
applySort(t, r, n) {
|
|
77
|
-
var i;
|
|
78
|
-
const { unitId: o, subUnitId: s } = T(this._univerInstanceService) || {};
|
|
79
|
-
this._commandService.executeCommand(x.id, {
|
|
80
|
-
orderRules: t.orderRules,
|
|
81
|
-
range: t.range,
|
|
82
|
-
hasTitle: (i = t.hasTitle) != null ? i : !1,
|
|
83
|
-
unitId: r || o,
|
|
84
|
-
subUnitId: n || s
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
d = le([
|
|
89
|
-
p(0, P),
|
|
90
|
-
p(1, w),
|
|
91
|
-
p(2, I(re))
|
|
92
|
-
], d);
|
|
93
|
-
function ce(e, t) {
|
|
94
|
-
const r = e.endRow - e.startRow + 1, n = e.endColumn - e.startColumn + 1;
|
|
95
|
-
let o = null, s = null;
|
|
96
|
-
const i = r * n;
|
|
97
|
-
let l = 0;
|
|
98
|
-
for (const u of t)
|
|
99
|
-
if (u.startRow >= e.startRow && u.endRow <= e.endRow && u.startColumn >= e.startColumn && u.endColumn <= e.endColumn) {
|
|
100
|
-
const a = u.endRow - u.startRow + 1, f = u.endColumn - u.startColumn + 1;
|
|
101
|
-
if (o === null && s === null)
|
|
102
|
-
o = a, s = f;
|
|
103
|
-
else if (a !== o || f !== s)
|
|
104
|
-
return !1;
|
|
105
|
-
l += a * f;
|
|
106
|
-
}
|
|
107
|
-
return l === i;
|
|
108
|
-
}
|
|
109
|
-
const x = {
|
|
110
|
-
id: "sheet.command.sort-range",
|
|
111
|
-
type: K.COMMAND,
|
|
112
|
-
handler: (e, t) => {
|
|
113
|
-
const { range: r, orderRules: n, hasTitle: o, unitId: s, subUnitId: i } = t, l = e.get(d), u = e.get(P), { worksheet: a } = T(u, t) || {};
|
|
114
|
-
if (!a)
|
|
115
|
-
return !1;
|
|
116
|
-
const f = a.getMergeData().filter((c) => R.contains(r, c)), v = f.map((c) => c.startRow), { startRow: b, endRow: j } = r, V = o ? b + 1 : b, S = [], A = [];
|
|
117
|
-
for (let c = V; c <= j; c++)
|
|
118
|
-
a.getRowFiltered(c) || a.getRowRawVisible(c) !== !1 && (f.length && !v.includes(c) || (S.push({
|
|
119
|
-
index: c,
|
|
120
|
-
value: ae(a, c, n)
|
|
121
|
-
}), A.push(c)));
|
|
122
|
-
const L = l.getAllCompareFns();
|
|
123
|
-
S.sort(fe(n, me(L)));
|
|
124
|
-
const F = {};
|
|
125
|
-
S.forEach(({ index: c, value: Ie }, H) => {
|
|
126
|
-
F[A[H]] = c;
|
|
127
|
-
});
|
|
128
|
-
const G = {
|
|
129
|
-
id: ee.id,
|
|
130
|
-
params: {
|
|
131
|
-
unitId: s,
|
|
132
|
-
subUnitId: i,
|
|
133
|
-
range: r,
|
|
134
|
-
order: F
|
|
135
|
-
}
|
|
136
|
-
}, B = e.get(w);
|
|
137
|
-
return W([G], B).result;
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
function ae(e, t, r) {
|
|
141
|
-
const n = [];
|
|
142
|
-
return r.forEach(({ colIndex: o }) => {
|
|
143
|
-
n.push(e.getCellRaw(t, o));
|
|
144
|
-
}), n;
|
|
145
|
-
}
|
|
146
|
-
function me(e) {
|
|
147
|
-
return (t, r, n) => {
|
|
148
|
-
for (let o = 0; o < e.length; o++) {
|
|
149
|
-
const s = e[o](t, r, n);
|
|
150
|
-
if (s != null)
|
|
151
|
-
return s;
|
|
152
|
-
}
|
|
153
|
-
return 0;
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
function fe(e, t) {
|
|
157
|
-
return function(r, n) {
|
|
158
|
-
let o = null;
|
|
159
|
-
for (let s = 0; s < e.length; s++) {
|
|
160
|
-
const i = r.value[s], l = n.value[s];
|
|
161
|
-
if (o = t(e[s].type, i, l), o !== 0 && o !== null && o !== void 0)
|
|
162
|
-
return o;
|
|
163
|
-
}
|
|
164
|
-
return 0;
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
const ge = "@univerjs/sheets-sort", de = "0.17.0", $ = {
|
|
168
|
-
name: ge,
|
|
169
|
-
version: de
|
|
170
|
-
}, ve = "sheets-sort.config", y = {};
|
|
171
|
-
var he = Object.getOwnPropertyDescriptor, Ce = (e, t, r, n) => {
|
|
172
|
-
for (var o = n > 1 ? void 0 : n ? he(t, r) : t, s = e.length - 1, i; s >= 0; s--)
|
|
173
|
-
(i = e[s]) && (o = i(o) || o);
|
|
174
|
-
return o;
|
|
175
|
-
}, E = (e, t) => (r, n) => t(r, n, e);
|
|
176
|
-
let C = class extends U {
|
|
177
|
-
constructor(e, t) {
|
|
178
|
-
super(), this._commandService = e, this._sortService = t, this._initCommands(), this._registerCompareFns();
|
|
179
|
-
}
|
|
180
|
-
_initCommands() {
|
|
181
|
-
[
|
|
182
|
-
x
|
|
183
|
-
].forEach((e) => this.disposeWithMe(this._commandService.registerCommand(e)));
|
|
184
|
-
}
|
|
185
|
-
_registerCompareFns() {
|
|
186
|
-
const e = (t, r, n) => {
|
|
187
|
-
const o = this._getCommonValue(r), s = this._getCommonValue(n), i = [
|
|
188
|
-
oe,
|
|
189
|
-
ie,
|
|
190
|
-
se
|
|
191
|
-
];
|
|
192
|
-
for (let l = 0; l < i.length; l++) {
|
|
193
|
-
const u = i[l](o, s, t);
|
|
194
|
-
if (u !== null)
|
|
195
|
-
return u;
|
|
196
|
-
}
|
|
197
|
-
return null;
|
|
198
|
-
};
|
|
199
|
-
this._sortService.registerCompareFn(e);
|
|
200
|
-
}
|
|
201
|
-
_getCommonValue(e) {
|
|
202
|
-
var r, n;
|
|
203
|
-
if (M(e))
|
|
204
|
-
return null;
|
|
205
|
-
const t = (n = (r = e == null ? void 0 : e.p) == null ? void 0 : r.body) == null ? void 0 : n.dataStream;
|
|
206
|
-
return t || ((e == null ? void 0 : e.t) === h.NUMBER ? Number.parseFloat(`${e.v}`) : (e == null ? void 0 : e.t) === h.STRING ? typeof e.v == "number" ? e.v : `${e.v}` : (e == null ? void 0 : e.t) === h.BOOLEAN ? `${e.v}` : (e == null ? void 0 : e.t) === h.FORCE_STRING ? Number.parseFloat(`${e.v}`) : `${e == null ? void 0 : e.v}`);
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
C = Ce([
|
|
210
|
-
E(0, w),
|
|
211
|
-
E(1, I(d))
|
|
212
|
-
], C);
|
|
213
|
-
var _e = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, pe = (e, t, r) => t in e ? _e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Re = (e, t, r, n) => {
|
|
214
|
-
for (var o = n > 1 ? void 0 : n ? Se(t, r) : t, s = e.length - 1, i; s >= 0; s--)
|
|
215
|
-
(i = e[s]) && (o = i(o) || o);
|
|
216
|
-
return o;
|
|
217
|
-
}, O = (e, t) => (r, n) => t(r, n, e), _ = (e, t, r) => pe(e, typeof t != "symbol" ? t + "" : t, r);
|
|
218
|
-
let g = class extends X {
|
|
219
|
-
constructor(e = y, t, r) {
|
|
220
|
-
super(), this._config = e, this._injector = t, this._configService = r;
|
|
221
|
-
const { ...n } = Z(
|
|
222
|
-
{},
|
|
223
|
-
y,
|
|
224
|
-
this._config
|
|
225
|
-
);
|
|
226
|
-
this._configService.setConfig(ve, n);
|
|
227
|
-
}
|
|
228
|
-
onStarting() {
|
|
229
|
-
[
|
|
230
|
-
[C],
|
|
231
|
-
[d]
|
|
232
|
-
].forEach((e) => this._injector.add(e));
|
|
233
|
-
}
|
|
234
|
-
onReady() {
|
|
235
|
-
this._injector.get(C);
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
_(g, "type", Y.UNIVER_SHEET);
|
|
239
|
-
_(g, "pluginName", "SHEET_SORT_PLUGIN");
|
|
240
|
-
_(g, "packageName", $.name);
|
|
241
|
-
_(g, "version", $.version);
|
|
242
|
-
g = Re([
|
|
243
|
-
z(te, ne),
|
|
244
|
-
O(1, I(J)),
|
|
245
|
-
O(2, Q)
|
|
246
|
-
], g);
|
|
247
|
-
export {
|
|
248
|
-
d as SheetsSortService,
|
|
249
|
-
x as SortRangeCommand,
|
|
250
|
-
m as SortType,
|
|
251
|
-
g as UniverSheetsSortPlugin
|
|
252
|
-
};
|
|
1
|
+
import{CellValueType as e,CommandType as t,DependentOn as n,Disposable as r,ICommandService as i,IConfigService as a,IUniverInstanceService as o,Inject as s,Injector as c,Plugin as l,Rectangle as u,UniverInstanceType as d,merge as f,sequenceExecute as p}from"@univerjs/core";import{ReorderRangeCommand as m,UniverSheetsPlugin as h,getSheetCommandTarget as g}from"@univerjs/sheets";import{FormulaDataModel as _,UniverFormulaEnginePlugin as v}from"@univerjs/engine-formula";let y=function(e){return e.DESC=`desc`,e.ASC=`asc`,e}({}),b=function(e){return e[e.POSITIVE=1]=`POSITIVE`,e[e.NEGATIVE=-1]=`NEGATIVE`,e[e.ZERO=0]=`ZERO`,e}({});const x=e=>e.replace(/-/gi,``).replace(/'/gi,``),S=(e,t)=>{let n=e===null||e===``,r=t===null||t===``;return n&&r?b.ZERO:n?b.POSITIVE:r?b.NEGATIVE:null},C=(e,t,n)=>{let r=typeof e==`number`,i=typeof t==`number`;return r&&i?e<t?n===y.ASC?b.NEGATIVE:b.POSITIVE:e>t?n===y.ASC?b.POSITIVE:b.NEGATIVE:b.ZERO:r?n===y.ASC?b.POSITIVE:b.NEGATIVE:i?n===y.ASC?b.NEGATIVE:b.POSITIVE:null},w=(e,t,n)=>{let r=typeof e==`string`,i=typeof t==`string`;if(r&&(e=x(e.toLocaleLowerCase())),i&&(t=x(t.toLocaleLowerCase())),!r&&!i)return null;if(r&&i){let r=e,i=t;return r<i?n===y.ASC?b.NEGATIVE:b.POSITIVE:r>i?n===y.ASC?b.POSITIVE:b.NEGATIVE:b.ZERO}return r?n===y.ASC?b.POSITIVE:b.NEGATIVE:i?n===y.ASC?b.NEGATIVE:b.POSITIVE:null},T=e=>!e||Object.keys(e).length===0||(e==null?void 0:e.v)==null&&(e==null?void 0:e.p)==null;function E(e){"@babel/helpers - typeof";return E=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},E(e)}function D(e,t){if(E(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(E(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function O(e){var t=D(e,`string`);return E(t)==`symbol`?t:t+``}function k(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){return function(n,r){t(n,r,e)}}function j(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}let M=class extends r{constructor(e,t,n){super(),this._univerInstanceService=e,this._commandService=t,this._formulaDataModel=n,k(this,`_compareFns`,[])}mergeCheck(e){var t;let{unitId:n,subUnitId:r,range:i}=e,a=(t=this._univerInstanceService.getUnit(n))==null?void 0:t.getSheetBySheetId(r);if(!a)return!1;let o=a.getMergeData().filter(e=>u.contains(i,e));return o.length===0?!0:N(i,o)}emptyCheck(e){var t;let{unitId:n,subUnitId:r,range:i}=e,a=(t=this._univerInstanceService.getUnit(n))==null?void 0:t.getSheetBySheetId(r);if(!a)return!1;for(let e=i.startRow;e<=i.endRow;e++)for(let t=i.startColumn;t<=i.endColumn;t++)if(!T(a.getCellRaw(e,t)))return!0;return!1}singleCheck(e){return e.range.startRow!==e.range.endRow}formulaCheck(e){var t;let{unitId:n,subUnitId:r,range:i}=e,a=(t=this._formulaDataModel.getArrayFormulaRange())==null||(t=t[n])==null?void 0:t[r];for(let e in a){let t=a[Number(e)];for(let e in t){let n=t[Number(e)];if(n&&u.intersects(i,n))return!1}}return!0}registerCompareFn(e){this._compareFns.unshift(e)}getAllCompareFns(){return this._compareFns}applySort(e,t,n){var r;let{unitId:i,subUnitId:a}=g(this._univerInstanceService)||{};this._commandService.executeCommand(P.id,{orderRules:e.orderRules,range:e.range,hasTitle:(r=e.hasTitle)==null?!1:r,unitId:t||i,subUnitId:n||a})}};M=j([A(0,o),A(1,i),A(2,s(_))],M);function N(e,t){let n=e.endRow-e.startRow+1,r=e.endColumn-e.startColumn+1,i=null,a=null,o=n*r,s=0;for(let n of t)if(n.startRow>=e.startRow&&n.endRow<=e.endRow&&n.startColumn>=e.startColumn&&n.endColumn<=e.endColumn){let e=n.endRow-n.startRow+1,t=n.endColumn-n.startColumn+1;if(i===null&&a===null)i=e,a=t;else if(e!==i||t!==a)return!1;s+=e*t}return s===o}const P={id:`sheet.command.sort-range`,type:t.COMMAND,handler:(e,t)=>{let{range:n,orderRules:r,hasTitle:a,unitId:s,subUnitId:c}=t,l=e.get(M),{worksheet:d}=g(e.get(o),t)||{};if(!d)return!1;let f=d.getMergeData().filter(e=>u.contains(n,e)),h=f.map(e=>e.startRow),{startRow:_,endRow:v}=n,y=a?_+1:_,b=[],x=[];for(let e=y;e<=v;e++)d.getRowFiltered(e)||d.getRowRawVisible(e)!==!1&&(f.length&&!h.includes(e)||(b.push({index:e,value:F(d,e,r)}),x.push(e)));let S=l.getAllCompareFns();b.sort(L(r,I(S)));let C={};b.forEach(({index:e,value:t},n)=>{C[x[n]]=e});let w={id:m.id,params:{unitId:s,subUnitId:c,range:n,order:C}},T=e.get(i);return p([w],T).result}};function F(e,t,n){let r=[];return n.forEach(({colIndex:n})=>{r.push(e.getCellRaw(t,n))}),r}function I(e){return(t,n,r)=>{for(let i=0;i<e.length;i++){let a=e[i](t,n,r);if(a!=null)return a}return 0}}function L(e,t){return function(n,r){let i=null;for(let a=0;a<e.length;a++){let o=n.value[a],s=r.value[a];if(i=t(e[a].type,o,s),i!==0&&i!=null)return i}return 0}}var R=`@univerjs/sheets-sort`,z=`0.18.0`;const B=`sheets-sort.config`;Symbol(B);const V={};let H=class extends r{constructor(e,t){super(),this._commandService=e,this._sortService=t,this._initCommands(),this._registerCompareFns()}_initCommands(){[P].forEach(e=>this.disposeWithMe(this._commandService.registerCommand(e)))}_registerCompareFns(){this._sortService.registerCompareFn((e,t,n)=>{let r=this._getCommonValue(t),i=this._getCommonValue(n),a=[S,w,C];for(let t=0;t<a.length;t++){let n=a[t](r,i,e);if(n!==null)return n}return null})}_getCommonValue(t){var n;return T(t)?null:(t==null||(n=t.p)==null||(n=n.body)==null?void 0:n.dataStream)||((t==null?void 0:t.t)===e.NUMBER?Number.parseFloat(`${t.v}`):(t==null?void 0:t.t)===e.STRING?typeof t.v==`number`?t.v:`${t.v}`:(t==null?void 0:t.t)===e.BOOLEAN?`${t.v}`:(t==null?void 0:t.t)===e.FORCE_STRING?Number.parseFloat(`${t.v}`):`${t==null?void 0:t.v}`)}};H=j([A(0,i),A(1,s(M))],H);let U=class extends l{constructor(e=V,t,n){super(),this._config=e,this._injector=t,this._configService=n;let{...r}=f({},V,this._config);this._configService.setConfig(B,r)}onStarting(){[[H],[M]].forEach(e=>this._injector.add(e))}onReady(){this._injector.get(H)}};k(U,`type`,d.UNIVER_SHEET),k(U,`pluginName`,`SHEET_SORT_PLUGIN`),k(U,`packageName`,R),k(U,`version`,z),U=j([n(h,v),A(1,s(c)),A(2,a)],U);export{M as SheetsSortService,P as SortRangeCommand,y as SortType,U as UniverSheetsSortPlugin};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
const e
|
|
2
|
-
sheetsSort: {
|
|
3
|
-
title: "Ordena",
|
|
4
|
-
toolbar: {
|
|
5
|
-
"sort-asc": "ordre ascendent",
|
|
6
|
-
"sort-desc": "ordre descendent",
|
|
7
|
-
"sort-custom": "ordre personalitzat"
|
|
8
|
-
},
|
|
9
|
-
"context-menu": {
|
|
10
|
-
"sort-asc": "ordre ascendent",
|
|
11
|
-
"sort-desc": "ordre descendent",
|
|
12
|
-
"sort-custom": "ordre personalitzat"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
e as default
|
|
18
|
-
};
|
|
1
|
+
const e={sheetsSort:{title:`Ordena`,toolbar:{"sort-asc":`ordre ascendent`,"sort-desc":`ordre descendent`,"sort-custom":`ordre personalitzat`},"context-menu":{"sort-asc":`ordre ascendent`,"sort-desc":`ordre descendent`,"sort-custom":`ordre personalitzat`}}};export{e as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
sheetsSort: {
|
|
3
|
-
title: "Sort",
|
|
4
|
-
toolbar: {
|
|
5
|
-
"sort-asc": "ascending order",
|
|
6
|
-
"sort-desc": "descending order",
|
|
7
|
-
"sort-custom": "custom order"
|
|
8
|
-
},
|
|
9
|
-
"context-menu": {
|
|
10
|
-
"sort-asc": "ascending order",
|
|
11
|
-
"sort-desc": "descending order",
|
|
12
|
-
"sort-custom": "custom order"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
o as default
|
|
18
|
-
};
|
|
1
|
+
const e={sheetsSort:{title:`Sort`,toolbar:{"sort-asc":`ascending order`,"sort-desc":`descending order`,"sort-custom":`custom order`},"context-menu":{"sort-asc":`ascending order`,"sort-desc":`descending order`,"sort-custom":`custom order`}}};export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
const e
|
|
2
|
-
sheetsSort: {
|
|
3
|
-
title: "Ordenar",
|
|
4
|
-
toolbar: {
|
|
5
|
-
"sort-asc": "orden ascendente",
|
|
6
|
-
"sort-desc": "orden descendente",
|
|
7
|
-
"sort-custom": "orden personalizado"
|
|
8
|
-
},
|
|
9
|
-
"context-menu": {
|
|
10
|
-
"sort-asc": "orden ascendente",
|
|
11
|
-
"sort-desc": "orden descendente",
|
|
12
|
-
"sort-custom": "orden personalizado"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
e as default
|
|
18
|
-
};
|
|
1
|
+
const e={sheetsSort:{title:`Ordenar`,toolbar:{"sort-asc":`orden ascendente`,"sort-desc":`orden descendente`,"sort-custom":`orden personalizado`},"context-menu":{"sort-asc":`orden ascendente`,"sort-desc":`orden descendente`,"sort-custom":`orden personalizado`}}};export{e as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
sheetsSort: {
|
|
3
|
-
title: "مرتبسازی",
|
|
4
|
-
toolbar: {
|
|
5
|
-
"sort-asc": "ترتیب صعودی",
|
|
6
|
-
"sort-desc": "ترتیب نزولی",
|
|
7
|
-
"sort-custom": "ترتیب سفارشی"
|
|
8
|
-
},
|
|
9
|
-
"context-menu": {
|
|
10
|
-
"sort-asc": "ترتیب صعودی",
|
|
11
|
-
"sort-desc": "ترتیب نزولی",
|
|
12
|
-
"sort-custom": "ترتیب سفارشی"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
t as default
|
|
18
|
-
};
|
|
1
|
+
const e={sheetsSort:{title:`مرتبسازی`,toolbar:{"sort-asc":`ترتیب صعودی`,"sort-desc":`ترتیب نزولی`,"sort-custom":`ترتیب سفارشی`},"context-menu":{"sort-asc":`ترتیب صعودی`,"sort-desc":`ترتیب نزولی`,"sort-custom":`ترتیب سفارشی`}}};export{e as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
sheetsSort: {
|
|
3
|
-
title: "Trier",
|
|
4
|
-
toolbar: {
|
|
5
|
-
"sort-asc": "ordre croissant",
|
|
6
|
-
"sort-desc": "ordre décroissant",
|
|
7
|
-
"sort-custom": "ordre personnalisé"
|
|
8
|
-
},
|
|
9
|
-
"context-menu": {
|
|
10
|
-
"sort-asc": "ordre croissant",
|
|
11
|
-
"sort-desc": "ordre décroissant",
|
|
12
|
-
"sort-custom": "ordre personnalisé"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
r as default
|
|
18
|
-
};
|
|
1
|
+
const e={sheetsSort:{title:`Trier`,toolbar:{"sort-asc":`ordre croissant`,"sort-desc":`ordre décroissant`,"sort-custom":`ordre personnalisé`},"context-menu":{"sort-asc":`ordre croissant`,"sort-desc":`ordre décroissant`,"sort-custom":`ordre personnalisé`}}};export{e as default};
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
sheetsSort: {
|
|
3
|
-
title: "並べ替え",
|
|
4
|
-
toolbar: {
|
|
5
|
-
"sort-asc": "昇順",
|
|
6
|
-
"sort-desc": "降順",
|
|
7
|
-
"sort-custom": "カスタム順序"
|
|
8
|
-
},
|
|
9
|
-
"context-menu": {
|
|
10
|
-
"sort-asc": "昇順",
|
|
11
|
-
"sort-desc": "降順",
|
|
12
|
-
"sort-custom": "カスタム順序"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
t as default
|
|
18
|
-
};
|
|
1
|
+
const e={sheetsSort:{title:`並べ替え`,toolbar:{"sort-asc":`昇順`,"sort-desc":`降順`,"sort-custom":`カスタム順序`},"context-menu":{"sort-asc":`昇順`,"sort-desc":`降順`,"sort-custom":`カスタム順序`}}};export{e as default};
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
sheetsSort: {
|
|
3
|
-
title: "정렬",
|
|
4
|
-
toolbar: {
|
|
5
|
-
"sort-asc": "오름차순",
|
|
6
|
-
"sort-desc": "내림차순",
|
|
7
|
-
"sort-custom": "사용자 정의 순서"
|
|
8
|
-
},
|
|
9
|
-
"context-menu": {
|
|
10
|
-
"sort-asc": "오름차순",
|
|
11
|
-
"sort-desc": "내림차순",
|
|
12
|
-
"sort-custom": "사용자 정의 순서"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
t as default
|
|
18
|
-
};
|
|
1
|
+
const e={sheetsSort:{title:`정렬`,toolbar:{"sort-asc":`오름차순`,"sort-desc":`내림차순`,"sort-custom":`사용자 정의 순서`},"context-menu":{"sort-asc":`오름차순`,"sort-desc":`내림차순`,"sort-custom":`사용자 정의 순서`}}};export{e as default};
|