@univerjs/sheets 0.4.2 → 0.5.0-alpha.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.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -0
  2. package/lib/cjs/index.js +3 -3
  3. package/lib/cjs/locale/en-US.js +1 -0
  4. package/lib/cjs/locale/fa-IR.js +1 -0
  5. package/lib/cjs/locale/ru-RU.js +1 -0
  6. package/lib/cjs/locale/vi-VN.js +1 -0
  7. package/lib/cjs/locale/zh-CN.js +1 -0
  8. package/lib/cjs/locale/zh-TW.js +1 -0
  9. package/lib/es/facade.js +1806 -0
  10. package/lib/es/index.js +7447 -7530
  11. package/lib/es/locale/en-US.js +17 -0
  12. package/lib/es/locale/fa-IR.js +17 -0
  13. package/lib/es/locale/ru-RU.js +17 -0
  14. package/lib/es/locale/vi-VN.js +17 -0
  15. package/lib/es/locale/zh-CN.js +17 -0
  16. package/lib/es/locale/zh-TW.js +17 -0
  17. package/lib/types/commands/commands/add-worksheet-protection.command.d.ts +7 -0
  18. package/lib/types/commands/commands/delete-worksheet-protection.command.d.ts +8 -0
  19. package/lib/types/commands/commands/set-frozen.command.d.ts +13 -0
  20. package/lib/types/commands/commands/set-protection.command.d.ts +13 -0
  21. package/lib/types/commands/commands/set-worksheet-protection.command.d.ts +8 -0
  22. package/lib/types/commands/mutations/reorder-range.mutation.d.ts +1 -1
  23. package/lib/types/facade/__tests__/utils.spec.d.ts +16 -0
  24. package/lib/types/facade/f-permission.d.ts +106 -0
  25. package/lib/types/facade/f-range.d.ts +193 -0
  26. package/lib/types/facade/f-selection.d.ts +11 -0
  27. package/lib/types/facade/f-univer.d.ts +36 -0
  28. package/lib/types/facade/f-workbook.d.ts +105 -0
  29. package/lib/types/facade/f-worksheet.d.ts +408 -0
  30. package/lib/types/facade/index.d.ts +22 -0
  31. package/lib/types/facade/utils.d.ts +24 -0
  32. package/lib/types/index.d.ts +8 -5
  33. package/lib/types/model/range-protection-rule.model.d.ts +10 -1
  34. package/lib/types/services/permission/type.d.ts +3 -1
  35. package/lib/types/services/permission/worksheet-permission/worksheet-permission.service.d.ts +3 -2
  36. package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts +38 -7
  37. package/lib/umd/facade.js +1 -0
  38. package/lib/umd/index.js +3 -3
  39. package/lib/umd/locale/en-US.js +1 -0
  40. package/lib/umd/locale/fa-IR.js +1 -0
  41. package/lib/umd/locale/ru-RU.js +1 -0
  42. package/lib/umd/locale/vi-VN.js +1 -0
  43. package/lib/umd/locale/zh-CN.js +1 -0
  44. package/lib/umd/locale/zh-TW.js +1 -0
  45. package/package.json +36 -17
  46. package/lib/locale/en-US.json +0 -14
  47. package/lib/locale/fa-IR.json +0 -14
  48. package/lib/locale/ru-RU.json +0 -14
  49. package/lib/locale/vi-VN.json +0 -14
  50. package/lib/locale/zh-CN.json +0 -14
  51. package/lib/locale/zh-TW.json +0 -14
  52. package/lib/types/commands/commands/set-frozen-cancel.command.d.ts +0 -2
  53. package/lib/types/commands/commands/set-range-protection.command.d.ts +0 -8
@@ -0,0 +1 @@
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsEnUS=t())})(this,function(){"use strict";return{sheets:{tabs:{sheetCopy:"(Copy{0})",sheet:"Sheet"},info:{overlappingSelections:"Cannot use that command on overlapping selections",acrossMergedCell:"Across a merged cell",partOfCell:"Only part of a merged cell is selected",hideSheet:"No visible sheet after you hide this"}}}});
@@ -0,0 +1 @@
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFaIR=t())})(this,function(){"use strict";return{sheets:{tabs:{sheetCopy:"(کپی{0})",sheet:"برگ"},info:{overlappingSelections:"نمی‌توان از این دستور روی انتخاب‌های همپوشانی استفاده کرد",acrossMergedCell:"در سراسر سلول ادغام شده",partOfCell:"فقط بخشی از سلول ادغام شده انتخاب شده است",hideSheet:"پس از پنهان کردن این برگ، هیچ برگی قابل مشاهده نخواهد بود"}}}});
@@ -0,0 +1 @@
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsRuRU=t())})(this,function(){"use strict";return{sheets:{tabs:{sheetCopy:"(Копия{0})",sheet:"Лист"},info:{overlappingSelections:"Невозможно использовать эту команду на пересекающихся выделениях",acrossMergedCell:"Через объединенную ячейку",partOfCell:"Выделена только часть объединенной ячейки",hideSheet:"После скрытия этого листа не будет видно ни одного листа"}}}});
@@ -0,0 +1 @@
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsViVN=n())})(this,function(){"use strict";return{sheets:{tabs:{sheetCopy:"(Bản sao {0})",sheet:"Bảng tính"},info:{overlappingSelections:"Không thể sử dụng lệnh này trên các vùng chọn chồng chéo nhau",acrossMergedCell:"Không thể vượt qua các ô đã hợp nhất",partOfCell:"Chỉ chọn một phần của ô đã hợp nhất",hideSheet:"Không có bảng tính nào hiển thị sau khi ẩn"}}}});
@@ -0,0 +1 @@
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsZhCN=t())})(this,function(){"use strict";return{sheets:{tabs:{sheetCopy:"(副本{0})",sheet:"工作表"},info:{overlappingSelections:"无法对重叠选区使用该命令",acrossMergedCell:"无法跨越合并单元格",partOfCell:"仅选择了合并单元格的一部分",hideSheet:"隐藏后无可见工作表"}}}});
@@ -0,0 +1 @@
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsZhTW=t())})(this,function(){"use strict";return{sheets:{tabs:{sheetCopy:"(副本{0})",sheet:"工作表"},info:{overlappingSelections:"無法對重疊選區使用該命令",acrossMergedCell:"無法跨越合併儲存格",partOfCell:"僅選擇了合併儲存格的一部份",hideSheet:"隱藏後無可見工作表"}}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets",
3
- "version": "0.4.2",
3
+ "version": "0.5.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal base-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -31,11 +31,19 @@
31
31
  "require": "./lib/cjs/*",
32
32
  "types": "./lib/types/index.d.ts"
33
33
  },
34
- "./lib/*": "./lib/*",
35
- "./locale/*": "./lib/locale/*.json"
34
+ "./facade": {
35
+ "import": "./lib/es/facade.js",
36
+ "require": "./lib/cjs/facade.js",
37
+ "types": "./lib/types/facade/index.d.ts"
38
+ },
39
+ "./locale/*": {
40
+ "import": "./lib/es/locale/*.js",
41
+ "require": "./lib/cjs/locale/*.js",
42
+ "types": "./lib/types/locale/*.d.ts"
43
+ },
44
+ "./lib/*": "./lib/*"
36
45
  },
37
- "main": "./lib/cjs/index.js",
38
- "module": "./lib/es/index.js",
46
+ "main": "./lib/es/index.js",
39
47
  "types": "./lib/types/index.d.ts",
40
48
  "publishConfig": {
41
49
  "access": "public"
@@ -51,19 +59,20 @@
51
59
  },
52
60
  "dependencies": {
53
61
  "@univerjs/protocol": "0.1.39-alpha.38",
54
- "@univerjs/core": "0.4.2",
55
- "@univerjs/engine-formula": "0.4.2",
56
- "@univerjs/engine-numfmt": "0.4.2",
57
- "@univerjs/rpc": "0.4.2"
62
+ "@vitejs/plugin-react": "4.3.3",
63
+ "@univerjs/core": "0.5.0-alpha.0",
64
+ "@univerjs/engine-formula": "0.5.0-alpha.0",
65
+ "@univerjs/engine-numfmt": "0.5.0-alpha.0",
66
+ "@univerjs/rpc": "0.5.0-alpha.0"
58
67
  },
59
68
  "devDependencies": {
60
69
  "rxjs": "^7.8.1",
61
70
  "typescript": "^5.6.3",
62
- "vite": "^5.4.8",
63
- "vitest": "^2.1.2",
64
- "@univerjs-infra/shared": "0.4.2"
71
+ "vite": "^5.4.10",
72
+ "vitest": "^2.1.4",
73
+ "@univerjs-infra/shared": "0.5.0-alpha.0"
65
74
  },
66
- "univerSpace": {
75
+ "space": {
67
76
  ".": {
68
77
  "import": "./lib/es/index.js",
69
78
  "require": "./lib/cjs/index.js",
@@ -74,14 +83,24 @@
74
83
  "require": "./lib/cjs/*",
75
84
  "types": "./lib/types/index.d.ts"
76
85
  },
77
- "./lib/*": "./lib/*",
78
- "./locale/*": "./lib/locale/*.json"
86
+ "./facade": {
87
+ "import": "./lib/es/facade.js",
88
+ "require": "./lib/cjs/facade.js",
89
+ "types": "./lib/types/facade/index.d.ts"
90
+ },
91
+ "./locale/*": {
92
+ "import": "./lib/es/locale/*.js",
93
+ "require": "./lib/cjs/locale/*.js",
94
+ "types": "./lib/types/locale/*.d.ts"
95
+ },
96
+ "./lib/*": "./lib/*"
79
97
  },
80
98
  "scripts": {
81
99
  "test": "vitest run",
82
100
  "test:watch": "vitest",
83
101
  "coverage": "vitest run --coverage",
84
102
  "lint:types": "tsc --noEmit",
85
- "build": "tsc && vite build"
86
- }
103
+ "build": "tsx build.ts"
104
+ },
105
+ "module": "./lib/es/index.js"
87
106
  }
@@ -1,14 +0,0 @@
1
- {
2
- "sheets": {
3
- "tabs": {
4
- "sheetCopy": "(Copy{0})",
5
- "sheet": "Sheet"
6
- },
7
- "info": {
8
- "overlappingSelections": "Cannot use that command on overlapping selections",
9
- "acrossMergedCell": "Across a merged cell",
10
- "partOfCell": "Only part of a merged cell is selected",
11
- "hideSheet": "No visible sheet after you hide this"
12
- }
13
- }
14
- }
@@ -1,14 +0,0 @@
1
- {
2
- "sheets": {
3
- "tabs": {
4
- "sheetCopy": "(کپی{0})",
5
- "sheet": "برگ"
6
- },
7
- "info": {
8
- "overlappingSelections": "نمی‌توان از این دستور روی انتخاب‌های همپوشانی استفاده کرد",
9
- "acrossMergedCell": "در سراسر سلول ادغام شده",
10
- "partOfCell": "فقط بخشی از سلول ادغام شده انتخاب شده است",
11
- "hideSheet": "پس از پنهان کردن این برگ، هیچ برگی قابل مشاهده نخواهد بود"
12
- }
13
- }
14
- }
@@ -1,14 +0,0 @@
1
- {
2
- "sheets": {
3
- "tabs": {
4
- "sheetCopy": "(Копия{0})",
5
- "sheet": "Лист"
6
- },
7
- "info": {
8
- "overlappingSelections": "Невозможно использовать эту команду на пересекающихся выделениях",
9
- "acrossMergedCell": "Через объединенную ячейку",
10
- "partOfCell": "Выделена только часть объединенной ячейки",
11
- "hideSheet": "После скрытия этого листа не будет видно ни одного листа"
12
- }
13
- }
14
- }
@@ -1,14 +0,0 @@
1
- {
2
- "sheets": {
3
- "tabs": {
4
- "sheetCopy": "(Bản sao {0})",
5
- "sheet": "Bảng tính"
6
- },
7
- "info": {
8
- "overlappingSelections": "Không thể sử dụng lệnh này trên các vùng chọn chồng chéo nhau",
9
- "acrossMergedCell": "Không thể vượt qua các ô đã hợp nhất",
10
- "partOfCell": "Chỉ chọn một phần của ô đã hợp nhất",
11
- "hideSheet": "Không có bảng tính nào hiển thị sau khi ẩn"
12
- }
13
- }
14
- }
@@ -1,14 +0,0 @@
1
- {
2
- "sheets": {
3
- "tabs": {
4
- "sheetCopy": "(副本{0})",
5
- "sheet": "工作表"
6
- },
7
- "info": {
8
- "overlappingSelections": "无法对重叠选区使用该命令",
9
- "acrossMergedCell": "无法跨越合并单元格",
10
- "partOfCell": "仅选择了合并单元格的一部分",
11
- "hideSheet": "隐藏后无可见工作表"
12
- }
13
- }
14
- }
@@ -1,14 +0,0 @@
1
- {
2
- "sheets": {
3
- "tabs": {
4
- "sheetCopy": "(副本{0})",
5
- "sheet": "工作表"
6
- },
7
- "info": {
8
- "overlappingSelections": "無法對重疊選區使用該命令",
9
- "acrossMergedCell": "無法跨越合併儲存格",
10
- "partOfCell": "僅選擇了合併儲存格的一部份",
11
- "hideSheet": "隱藏後無可見工作表"
12
- }
13
- }
14
- }
@@ -1,2 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- export declare const SetFrozenCancelCommand: ICommand;
@@ -1,8 +0,0 @@
1
- import { ICommand } from '@univerjs/core';
2
- import { IRangeProtectionRule } from '../../model/range-protection-rule.model';
3
- export interface ISetRangeProtectionCommandParams {
4
- permissionId: string;
5
- rule: IRangeProtectionRule;
6
- oldRule: IRangeProtectionRule;
7
- }
8
- export declare const SetRangeProtectionCommand: ICommand<ISetRangeProtectionCommandParams>;