@univerjs/sheets-numfmt 0.1.0-alpha.1
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/LICENSE +21 -0
- package/README.md +16 -0
- package/lib/cjs/index.js +2844 -0
- package/lib/cjs/locale/en-US.js +50 -0
- package/lib/cjs/locale/zh-CN.js +50 -0
- package/lib/esm/index.js +2832 -0
- package/lib/esm/locale/en-US.js +29 -0
- package/lib/esm/locale/zh-CN.js +29 -0
- package/lib/index.css +78 -0
- package/lib/types/base/const/CURRENCY-SYMBOLS.d.ts +2 -0
- package/lib/types/base/const/CURRENCY-SYMBOLS.d.ts.map +1 -0
- package/lib/types/base/const/FORMATDETAIL.d.ts +23 -0
- package/lib/types/base/const/FORMATDETAIL.d.ts.map +1 -0
- package/lib/types/base/const/PLUGIN_NAME.d.ts +2 -0
- package/lib/types/base/const/PLUGIN_NAME.d.ts.map +1 -0
- package/lib/types/base/types/index.d.ts +8 -0
- package/lib/types/base/types/index.d.ts.map +1 -0
- package/lib/types/commands/commands/add.decimal.command.d.ts +3 -0
- package/lib/types/commands/commands/add.decimal.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set.currency.command.d.ts +3 -0
- package/lib/types/commands/commands/set.currency.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set.numfmt.command.d.ts +12 -0
- package/lib/types/commands/commands/set.numfmt.command.d.ts.map +1 -0
- package/lib/types/commands/commands/subtract.decimal.command.d.ts +3 -0
- package/lib/types/commands/commands/subtract.decimal.command.d.ts.map +1 -0
- package/lib/types/commands/operators/close.numfmt.panel.operator.d.ts +3 -0
- package/lib/types/commands/operators/close.numfmt.panel.operator.d.ts.map +1 -0
- package/lib/types/commands/operators/open.numfmt.panel.operator.d.ts +3 -0
- package/lib/types/commands/operators/open.numfmt.panel.operator.d.ts.map +1 -0
- package/lib/types/components/accounting/index.d.ts +5 -0
- package/lib/types/components/accounting/index.d.ts.map +1 -0
- package/lib/types/components/currency/index.d.ts +6 -0
- package/lib/types/components/currency/index.d.ts.map +1 -0
- package/lib/types/components/date/index.d.ts +5 -0
- package/lib/types/components/date/index.d.ts.map +1 -0
- package/lib/types/components/general/index.d.ts +5 -0
- package/lib/types/components/general/index.d.ts.map +1 -0
- package/lib/types/components/index.d.ts +16 -0
- package/lib/types/components/index.d.ts.map +1 -0
- package/lib/types/components/more-numfmt-type/MoreNumfmtType.d.ts +6 -0
- package/lib/types/components/more-numfmt-type/MoreNumfmtType.d.ts.map +1 -0
- package/lib/types/components/thousandth-percentile/index.d.ts +5 -0
- package/lib/types/components/thousandth-percentile/index.d.ts.map +1 -0
- package/lib/types/context/user-habit.d.ts +3 -0
- package/lib/types/context/user-habit.d.ts.map +1 -0
- package/lib/types/controllers/numfmt.controller.d.ts +42 -0
- package/lib/types/controllers/numfmt.controller.d.ts.map +1 -0
- package/lib/types/controllers/numfmt.editor.controller.d.ts +22 -0
- package/lib/types/controllers/numfmt.editor.controller.d.ts.map +1 -0
- package/lib/types/controllers/numfmt.ref-range.controller.d.ts +16 -0
- package/lib/types/controllers/numfmt.ref-range.controller.d.ts.map +1 -0
- package/lib/types/controllers/numfmt.sheet.controller.d.ts +12 -0
- package/lib/types/controllers/numfmt.sheet.controller.d.ts.map +1 -0
- package/lib/types/controllers/type.d.ts +5 -0
- package/lib/types/controllers/type.d.ts.map +1 -0
- package/lib/types/controllers/user-habit.controller.d.ts +19 -0
- package/lib/types/controllers/user-habit.controller.d.ts.map +1 -0
- package/lib/types/hooks/useCurrencyOptions.d.ts +5 -0
- package/lib/types/hooks/useCurrencyOptions.d.ts.map +1 -0
- package/lib/types/hooks/useNextTick.d.ts +2 -0
- package/lib/types/hooks/useNextTick.d.ts.map +1 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/locale/en-US.d.ts +26 -0
- package/lib/types/locale/en-US.d.ts.map +1 -0
- package/lib/types/locale/index.d.ts +1 -0
- package/lib/types/locale/index.d.ts.map +1 -0
- package/lib/types/locale/zh-CN.d.ts +26 -0
- package/lib/types/locale/zh-CN.d.ts.map +1 -0
- package/lib/types/menu/menu.d.ts +32 -0
- package/lib/types/menu/menu.d.ts.map +1 -0
- package/lib/types/numfmt-plugin.d.ts +9 -0
- package/lib/types/numfmt-plugin.d.ts.map +1 -0
- package/lib/types/utils/currency.d.ts +2 -0
- package/lib/types/utils/currency.d.ts.map +1 -0
- package/lib/types/utils/decimal.d.ts +12 -0
- package/lib/types/utils/decimal.d.ts.map +1 -0
- package/lib/types/utils/options.d.ts +19 -0
- package/lib/types/utils/options.d.ts.map +1 -0
- package/lib/types/utils/pattern.d.ts +10 -0
- package/lib/types/utils/pattern.d.ts.map +1 -0
- package/package.json +68 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/locale/en-US.ts
|
|
21
|
+
var en_US_exports = {};
|
|
22
|
+
__export(en_US_exports, {
|
|
23
|
+
zhCn: () => zhCn
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(en_US_exports);
|
|
26
|
+
var zhCn = {
|
|
27
|
+
sheet: {
|
|
28
|
+
numfmt: {
|
|
29
|
+
title: "\u6570\u636E\u683C\u5F0F",
|
|
30
|
+
numfmtType: "\u683C\u5F0F\u7C7B\u578B",
|
|
31
|
+
cancel: "\u53D6\u6D88",
|
|
32
|
+
confirm: "\u786E\u8BA4",
|
|
33
|
+
general: "\u5E38\u89C4",
|
|
34
|
+
accounting: "\u4F1A\u8BA1",
|
|
35
|
+
currency: "\u8D27\u5E01",
|
|
36
|
+
date: "\u65E5\u671F",
|
|
37
|
+
thousandthPercentile: "\u5343\u5206\u4F4D\u7B26",
|
|
38
|
+
preview: "\u793A\u4F8B",
|
|
39
|
+
decimalLength: "\u5C0F\u6570\u4F4D\u6570",
|
|
40
|
+
currencyType: "\u8D27\u5E01\u7C7B\u578B",
|
|
41
|
+
currencyDes: "\u8D27\u5E01\u683C\u5F0F\u7528\u4E8E\u8868\u793A\u4E00\u822C\u8D27\u5E01\u6570\u503C\u3002\u4F1A\u8BA1\u683C\u5F0F\u53EF\u4EE5\u5BF9\u4E00\u5217\u6570\u503C\u8FDB\u884C\u5C0F\u6570\u70B9\u5BF9\u9F50",
|
|
42
|
+
accountingDes: "\u4F1A\u8BA1\u6570\u5B57\u683C\u5F0F\u53EF\u5BF9\u4E00\u5217\u6570\u503C\u8FDB\u884C\u8D27\u5E01\u7B26\u53F7\u548C\u5C0F\u6570\u70B9\u5BF9\u9F50",
|
|
43
|
+
dateType: "\u65E5\u671F\u7C7B\u578B",
|
|
44
|
+
dateDes: "\u65E5\u671F\u683C\u5F0F\u5C06\u65E5\u671F\u548C\u65F6\u95F4\u7CFB\u5217\u6570\u503C\u54C1\u793A\u4E3A\u65E5\u671F\u503C\u3002",
|
|
45
|
+
negType: "\u8D1F\u6570\u7C7B\u578B",
|
|
46
|
+
generalDes: "\u5E38\u89C4\u683C\u5F0F\u4E0D\u5305\u542B\u4EFB\u4F55\u7279\u5B9A\u7684\u6570\u5B57\u683C\u5F0F\u3002",
|
|
47
|
+
thousandthPercentileDes: "\u5343\u5206\u4F4D\u7B26\u683C\u5F0F\u7528\u4E8E\u4E00\u822C\u6570\u5B57\u7684\u8868\u793A\u3002\u8D27\u5E01\u548C\u4F1A\u8BA1\u683C\u5F0F\u5219\u63D0\u4F9B\u8D27\u5E01\u503C\u8BA1\u7B97\u7684\u4E13\u7528\u683C\u5F0F\u3002"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/locale/zh-CN.ts
|
|
21
|
+
var zh_CN_exports = {};
|
|
22
|
+
__export(zh_CN_exports, {
|
|
23
|
+
zhCn: () => zhCn
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(zh_CN_exports);
|
|
26
|
+
var zhCn = {
|
|
27
|
+
sheet: {
|
|
28
|
+
numfmt: {
|
|
29
|
+
title: "\u6570\u636E\u683C\u5F0F",
|
|
30
|
+
numfmtType: "\u683C\u5F0F\u7C7B\u578B",
|
|
31
|
+
cancel: "\u53D6\u6D88",
|
|
32
|
+
confirm: "\u786E\u8BA4",
|
|
33
|
+
general: "\u5E38\u89C4",
|
|
34
|
+
accounting: "\u4F1A\u8BA1",
|
|
35
|
+
currency: "\u8D27\u5E01",
|
|
36
|
+
date: "\u65E5\u671F",
|
|
37
|
+
thousandthPercentile: "\u5343\u5206\u4F4D\u7B26",
|
|
38
|
+
preview: "\u793A\u4F8B",
|
|
39
|
+
decimalLength: "\u5C0F\u6570\u4F4D\u6570",
|
|
40
|
+
currencyType: "\u8D27\u5E01\u7C7B\u578B",
|
|
41
|
+
currencyDes: "\u8D27\u5E01\u683C\u5F0F\u7528\u4E8E\u8868\u793A\u4E00\u822C\u8D27\u5E01\u6570\u503C\u3002\u4F1A\u8BA1\u683C\u5F0F\u53EF\u4EE5\u5BF9\u4E00\u5217\u6570\u503C\u8FDB\u884C\u5C0F\u6570\u70B9\u5BF9\u9F50",
|
|
42
|
+
accountingDes: "\u4F1A\u8BA1\u6570\u5B57\u683C\u5F0F\u53EF\u5BF9\u4E00\u5217\u6570\u503C\u8FDB\u884C\u8D27\u5E01\u7B26\u53F7\u548C\u5C0F\u6570\u70B9\u5BF9\u9F50",
|
|
43
|
+
dateType: "\u65E5\u671F\u7C7B\u578B",
|
|
44
|
+
dateDes: "\u65E5\u671F\u683C\u5F0F\u5C06\u65E5\u671F\u548C\u65F6\u95F4\u7CFB\u5217\u6570\u503C\u54C1\u793A\u4E3A\u65E5\u671F\u503C\u3002",
|
|
45
|
+
negType: "\u8D1F\u6570\u7C7B\u578B",
|
|
46
|
+
generalDes: "\u5E38\u89C4\u683C\u5F0F\u4E0D\u5305\u542B\u4EFB\u4F55\u7279\u5B9A\u7684\u6570\u5B57\u683C\u5F0F\u3002",
|
|
47
|
+
thousandthPercentileDes: "\u5343\u5206\u4F4D\u7B26\u683C\u5F0F\u7528\u4E8E\u4E00\u822C\u6570\u5B57\u7684\u8868\u793A\u3002\u8D27\u5E01\u548C\u4F1A\u8BA1\u683C\u5F0F\u5219\u63D0\u4F9B\u8D27\u5E01\u503C\u8BA1\u7B97\u7684\u4E13\u7528\u683C\u5F0F\u3002"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|