@andre1502/react-utilities 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +340 -0
- package/dist/Config/Config.d.ts +28 -0
- package/dist/Config/Config.js +200 -0
- package/dist/Config/Config.js.map +1 -0
- package/dist/Config/GoogleAuth.d.ts +15 -0
- package/dist/Config/GoogleAuth.js +71 -0
- package/dist/Config/GoogleAuth.js.map +1 -0
- package/dist/Config/Locales.d.ts +18 -0
- package/dist/Config/Locales.js +62 -0
- package/dist/Config/Locales.js.map +1 -0
- package/dist/Config/Output.d.ts +10 -0
- package/dist/Config/Output.js +28 -0
- package/dist/Config/Output.js.map +1 -0
- package/dist/Config/Sitemap.d.ts +13 -0
- package/dist/Config/Sitemap.js +73 -0
- package/dist/Config/Sitemap.js.map +1 -0
- package/dist/Format/NumberFormat.d.ts +6 -0
- package/dist/Format/NumberFormat.js +77 -0
- package/dist/Format/NumberFormat.js.map +1 -0
- package/dist/Format/NumberParser.d.ts +9 -0
- package/dist/Format/NumberParser.js +51 -0
- package/dist/Format/NumberParser.js.map +1 -0
- package/dist/React-BaJ1KfGF.js +87 -0
- package/dist/React-BaJ1KfGF.js.map +1 -0
- package/dist/React-qUl0CBmE.js +109 -0
- package/dist/React-qUl0CBmE.js.map +1 -0
- package/dist/ReactNative-CqUrY2ZJ.js +3856 -0
- package/dist/ReactNative-CqUrY2ZJ.js.map +1 -0
- package/dist/ReactNative-mNnws-b5.js +3834 -0
- package/dist/ReactNative-mNnws-b5.js.map +1 -0
- package/dist/Sentry/Build.d.ts +9 -0
- package/dist/Sentry/Build.js +88 -0
- package/dist/Sentry/Build.js.map +1 -0
- package/dist/Sentry/React.d.ts +18 -0
- package/dist/Sentry/React.js +104 -0
- package/dist/Sentry/React.js.map +1 -0
- package/dist/Sentry/ReactNative.d.ts +18 -0
- package/dist/Sentry/ReactNative.js +114 -0
- package/dist/Sentry/ReactNative.js.map +1 -0
- package/dist/Sentry/Utils.d.ts +2 -0
- package/dist/Sentry/Utils.js +24 -0
- package/dist/Sentry/Utils.js.map +1 -0
- package/dist/Utils/Files.d.ts +7 -0
- package/dist/Utils/Files.js +52 -0
- package/dist/Utils/Files.js.map +1 -0
- package/dist/Utils-Cq948gfa.js +20 -0
- package/dist/Utils-Cq948gfa.js.map +1 -0
- package/dist/Utils-Dilye04y.js +22 -0
- package/dist/Utils-Dilye04y.js.map +1 -0
- package/dist/config-cli.cjs +471 -0
- package/dist/config-cli.cjs.map +1 -0
- package/dist/config-cli.d.ts +34 -0
- package/dist/config-cli.js +220 -0
- package/dist/config-cli.js.map +1 -0
- package/dist/config-cli.mjs +443 -0
- package/dist/config-cli.mjs.map +1 -0
- package/dist/enums/CurrencySymbolEnum.d.ts +5 -0
- package/dist/enums/CurrencySymbolEnum.js +13 -0
- package/dist/enums/CurrencySymbolEnum.js.map +1 -0
- package/dist/format.cjs +122 -0
- package/dist/format.cjs.map +1 -0
- package/dist/format.d.ts +3 -0
- package/dist/format.js +55 -0
- package/dist/format.js.map +1 -0
- package/dist/format.mjs +117 -0
- package/dist/format.mjs.map +1 -0
- package/dist/index-cli.cjs +24 -0
- package/dist/index-cli.cjs.map +1 -0
- package/dist/index-cli.d.ts +2 -0
- package/dist/index-cli.js +28 -0
- package/dist/index-cli.js.map +1 -0
- package/dist/index-cli.mjs +12 -0
- package/dist/index-cli.mjs.map +1 -0
- package/dist/index-fmt.cjs +16 -0
- package/dist/index-fmt.cjs.map +1 -0
- package/dist/index-fmt.d.ts +1 -0
- package/dist/index-fmt.js +17 -0
- package/dist/index-fmt.js.map +1 -0
- package/dist/index-fmt.mjs +3 -0
- package/dist/index-fmt.mjs.map +1 -0
- package/dist/index-rn.cjs +21 -0
- package/dist/index-rn.cjs.map +1 -0
- package/dist/index-rn.d.ts +2 -0
- package/dist/index-rn.js +28 -0
- package/dist/index-rn.js.map +1 -0
- package/dist/index-rn.mjs +6 -0
- package/dist/index-rn.mjs.map +1 -0
- package/dist/index.cjs +21 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -0
- package/dist/interfaces/Config/ConfigOptions.d.ts +8 -0
- package/dist/interfaces/Config/ConfigOptions.js +6 -0
- package/dist/interfaces/Config/ConfigOptions.js.map +1 -0
- package/dist/interfaces/Config/OutputMap.d.ts +3 -0
- package/dist/interfaces/Config/OutputMap.js +6 -0
- package/dist/interfaces/Config/OutputMap.js.map +1 -0
- package/dist/interfaces/Config/OutputOptions.d.ts +7 -0
- package/dist/interfaces/Config/OutputOptions.js +6 -0
- package/dist/interfaces/Config/OutputOptions.js.map +1 -0
- package/dist/interfaces/Config/SitemapMap.d.ts +5 -0
- package/dist/interfaces/Config/SitemapMap.js +6 -0
- package/dist/interfaces/Config/SitemapMap.js.map +1 -0
- package/dist/interfaces/Config/StringMap.d.ts +3 -0
- package/dist/interfaces/Config/StringMap.js +6 -0
- package/dist/interfaces/Config/StringMap.js.map +1 -0
- package/dist/interfaces/Format/FormatOptions.d.ts +14 -0
- package/dist/interfaces/Format/FormatOptions.js +6 -0
- package/dist/interfaces/Format/FormatOptions.js.map +1 -0
- package/dist/interfaces/Sentry/InitOptions.d.ts +20 -0
- package/dist/interfaces/Sentry/InitOptions.js +6 -0
- package/dist/interfaces/Sentry/InitOptions.js.map +1 -0
- package/dist/interfaces/Sentry/InitOptionsRN.d.ts +4 -0
- package/dist/interfaces/Sentry/InitOptionsRN.js +6 -0
- package/dist/interfaces/Sentry/InitOptionsRN.js.map +1 -0
- package/dist/interfaces/Sentry/SourceMapOptions.d.ts +7 -0
- package/dist/interfaces/Sentry/SourceMapOptions.js +6 -0
- package/dist/interfaces/Sentry/SourceMapOptions.js.map +1 -0
- package/dist/sentry-cli.cjs +119 -0
- package/dist/sentry-cli.cjs.map +1 -0
- package/dist/sentry-cli.d.ts +9 -0
- package/dist/sentry-cli.js +50 -0
- package/dist/sentry-cli.js.map +1 -0
- package/dist/sentry-cli.mjs +98 -0
- package/dist/sentry-cli.mjs.map +1 -0
- package/dist/sentry-rn.cjs +11 -0
- package/dist/sentry-rn.cjs.map +1 -0
- package/dist/sentry-rn.d.ts +2 -0
- package/dist/sentry-rn.js +28 -0
- package/dist/sentry-rn.js.map +1 -0
- package/dist/sentry-rn.mjs +4 -0
- package/dist/sentry-rn.mjs.map +1 -0
- package/dist/sentry.cjs +11 -0
- package/dist/sentry.cjs.map +1 -0
- package/dist/sentry.d.ts +2 -0
- package/dist/sentry.js +28 -0
- package/dist/sentry.js.map +1 -0
- package/dist/sentry.mjs +4 -0
- package/dist/sentry.mjs.map +1 -0
- package/dist/types/Config/OptionType.d.ts +2 -0
- package/dist/types/Config/OptionType.js +6 -0
- package/dist/types/Config/OptionType.js.map +1 -0
- package/dist/types/Format/OptionType.d.ts +3 -0
- package/dist/types/Format/OptionType.js +6 -0
- package/dist/types/Format/OptionType.js.map +1 -0
- package/dist/types/Sentry/OptionType.d.ts +1 -0
- package/dist/types/Sentry/OptionType.js +6 -0
- package/dist/types/Sentry/OptionType.js.map +1 -0
- package/package.json +139 -0
- package/src/Config/Config.ts +258 -0
- package/src/Config/GoogleAuth.ts +54 -0
- package/src/Config/Locales.ts +72 -0
- package/src/Config/Output.ts +29 -0
- package/src/Config/Sitemap.ts +67 -0
- package/src/Format/NumberFormat.ts +96 -0
- package/src/Format/NumberParser.ts +42 -0
- package/src/Sentry/Build.ts +67 -0
- package/src/Sentry/React.ts +127 -0
- package/src/Sentry/ReactNative.ts +133 -0
- package/src/Sentry/Utils.ts +26 -0
- package/src/Utils/Files.ts +51 -0
- package/src/config-cli.ts +152 -0
- package/src/enums/CurrencySymbolEnum.ts +5 -0
- package/src/format.ts +39 -0
- package/src/index-cli.ts +2 -0
- package/src/index-fmt.ts +1 -0
- package/src/index-rn.ts +2 -0
- package/src/index.ts +2 -0
- package/src/interfaces/Config/ConfigOptions.ts +9 -0
- package/src/interfaces/Config/OutputMap.ts +3 -0
- package/src/interfaces/Config/OutputOptions.ts +8 -0
- package/src/interfaces/Config/SitemapMap.ts +5 -0
- package/src/interfaces/Config/StringMap.ts +3 -0
- package/src/interfaces/Format/FormatOptions.ts +19 -0
- package/src/interfaces/Sentry/InitOptions.ts +23 -0
- package/src/interfaces/Sentry/InitOptionsRN.ts +5 -0
- package/src/interfaces/Sentry/SourceMapOptions.ts +7 -0
- package/src/sentry-cli.ts +16 -0
- package/src/sentry-rn.ts +2 -0
- package/src/sentry.ts +2 -0
- package/src/types/Config/OptionType.ts +2 -0
- package/src/types/Format/OptionType.ts +15 -0
- package/src/types/Sentry/OptionType.ts +1 -0
package/dist/format.js
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
var _exportNames = {
|
7
|
+
CurrencySymbolEnum: true
|
8
|
+
};
|
9
|
+
Object.defineProperty(exports, "CurrencySymbolEnum", {
|
10
|
+
enumerable: true,
|
11
|
+
get: function get() {
|
12
|
+
return _CurrencySymbolEnum.CurrencySymbolEnum;
|
13
|
+
}
|
14
|
+
});
|
15
|
+
var _CurrencySymbolEnum = require("./enums/CurrencySymbolEnum");
|
16
|
+
var _NumberFormat = require("./Format/NumberFormat");
|
17
|
+
Object.keys(_NumberFormat).forEach(function (key) {
|
18
|
+
if (key === "default" || key === "__esModule") return;
|
19
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
20
|
+
if (key in exports && exports[key] === _NumberFormat[key]) return;
|
21
|
+
Object.defineProperty(exports, key, {
|
22
|
+
enumerable: true,
|
23
|
+
get: function get() {
|
24
|
+
return _NumberFormat[key];
|
25
|
+
}
|
26
|
+
});
|
27
|
+
});
|
28
|
+
require('@formatjs/intl-getcanonicallocales/polyfill');
|
29
|
+
require('@formatjs/intl-locale/polyfill');
|
30
|
+
require('@formatjs/intl-pluralrules/polyfill');
|
31
|
+
require('@formatjs/intl-pluralrules/locale-data/en');
|
32
|
+
require('@formatjs/intl-pluralrules/locale-data/vi');
|
33
|
+
require('@formatjs/intl-pluralrules/locale-data/zh');
|
34
|
+
require('@formatjs/intl-displaynames/polyfill');
|
35
|
+
require('@formatjs/intl-displaynames/locale-data/en');
|
36
|
+
require('@formatjs/intl-displaynames/locale-data/vi');
|
37
|
+
require('@formatjs/intl-displaynames/locale-data/zh');
|
38
|
+
require('@formatjs/intl-listformat/polyfill');
|
39
|
+
require('@formatjs/intl-listformat/locale-data/en');
|
40
|
+
require('@formatjs/intl-listformat/locale-data/vi');
|
41
|
+
require('@formatjs/intl-listformat/locale-data/zh');
|
42
|
+
require('@formatjs/intl-numberformat/polyfill');
|
43
|
+
require('@formatjs/intl-numberformat/locale-data/en');
|
44
|
+
require('@formatjs/intl-numberformat/locale-data/vi');
|
45
|
+
require('@formatjs/intl-numberformat/locale-data/zh');
|
46
|
+
require('@formatjs/intl-relativetimeformat/polyfill');
|
47
|
+
require('@formatjs/intl-relativetimeformat/locale-data/en');
|
48
|
+
require('@formatjs/intl-relativetimeformat/locale-data/vi');
|
49
|
+
require('@formatjs/intl-relativetimeformat/locale-data/zh');
|
50
|
+
require('@formatjs/intl-datetimeformat/polyfill');
|
51
|
+
require('@formatjs/intl-datetimeformat/locale-data/en');
|
52
|
+
require('@formatjs/intl-datetimeformat/locale-data/vi');
|
53
|
+
require('@formatjs/intl-datetimeformat/locale-data/zh');
|
54
|
+
require('@formatjs/intl-datetimeformat/add-golden-tz.js');
|
55
|
+
//# sourceMappingURL=format.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"format.js","names":["_CurrencySymbolEnum","require","_NumberFormat","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get"],"sources":["../src/format.ts"],"sourcesContent":["import { CurrencySymbolEnum } from './enums/CurrencySymbolEnum';\n\nrequire('@formatjs/intl-getcanonicallocales/polyfill');\nrequire('@formatjs/intl-locale/polyfill');\n\nrequire('@formatjs/intl-pluralrules/polyfill');\nrequire('@formatjs/intl-pluralrules/locale-data/en');\nrequire('@formatjs/intl-pluralrules/locale-data/vi');\nrequire('@formatjs/intl-pluralrules/locale-data/zh');\n\nrequire('@formatjs/intl-displaynames/polyfill');\nrequire('@formatjs/intl-displaynames/locale-data/en');\nrequire('@formatjs/intl-displaynames/locale-data/vi');\nrequire('@formatjs/intl-displaynames/locale-data/zh');\n\nrequire('@formatjs/intl-listformat/polyfill');\nrequire('@formatjs/intl-listformat/locale-data/en');\nrequire('@formatjs/intl-listformat/locale-data/vi');\nrequire('@formatjs/intl-listformat/locale-data/zh');\n\nrequire('@formatjs/intl-numberformat/polyfill');\nrequire('@formatjs/intl-numberformat/locale-data/en');\nrequire('@formatjs/intl-numberformat/locale-data/vi');\nrequire('@formatjs/intl-numberformat/locale-data/zh');\n\nrequire('@formatjs/intl-relativetimeformat/polyfill');\nrequire('@formatjs/intl-relativetimeformat/locale-data/en');\nrequire('@formatjs/intl-relativetimeformat/locale-data/vi');\nrequire('@formatjs/intl-relativetimeformat/locale-data/zh');\n\nrequire('@formatjs/intl-datetimeformat/polyfill');\nrequire('@formatjs/intl-datetimeformat/locale-data/en');\nrequire('@formatjs/intl-datetimeformat/locale-data/vi');\nrequire('@formatjs/intl-datetimeformat/locale-data/zh');\n\nrequire('@formatjs/intl-datetimeformat/add-golden-tz.js');\n\nexport * from './Format/NumberFormat';\nexport { CurrencySymbolEnum };\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAqCA,IAAAC,aAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,aAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,aAAA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encySymbolEnum) {
|
5
|
+
CurrencySymbolEnum["TWD"] = "NT$";
|
6
|
+
CurrencySymbolEnum["USD"] = "US$";
|
7
|
+
CurrencySymbolEnum["VND"] = "\u20AB";
|
8
|
+
})(CurrencySymbolEnum || (CurrencySymbolEnum = {}));
|
9
|
+
|
10
|
+
class NumberParser {
|
11
|
+
constructor(locale) {
|
12
|
+
const parts = new NumberFormat(locale).formatToParts(12345.6);
|
13
|
+
const numerals = [...new NumberFormat(locale, {
|
14
|
+
useGrouping: false
|
15
|
+
}).format(9876543210)].reverse();
|
16
|
+
const index = new Map(numerals.map((d, i) => [d, i]));
|
17
|
+
this._group = new RegExp(`[${parts.find(d => d.type === 'group')?.value}]`, 'g');
|
18
|
+
this._decimal = new RegExp(`[${parts.find(d => d.type === 'decimal')?.value}]`);
|
19
|
+
this._numeral = new RegExp(`[${numerals.join('')}]`, 'g');
|
20
|
+
this._index = d => index.get(d);
|
21
|
+
}
|
22
|
+
parse(value) {
|
23
|
+
value = value?.trim()?.replace(this._group, '')?.replace(this._decimal, '.')?.replace(this._numeral, this._index);
|
24
|
+
return value ? +value : NaN;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
const formatAccountNumber = function (accountNumber) {
|
29
|
+
let separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
|
30
|
+
return accountNumber?.replace(/\s?/g, '').replace(/(\d{4})/g, `$1${separator}`).trim();
|
31
|
+
};
|
32
|
+
const getCurrencySymbol = function (currency) {
|
33
|
+
let showCurrency = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
34
|
+
let symbol;
|
35
|
+
switch (currency) {
|
36
|
+
case 'TWD':
|
37
|
+
symbol = CurrencySymbolEnum.TWD;
|
38
|
+
break;
|
39
|
+
case 'USD':
|
40
|
+
symbol = CurrencySymbolEnum.USD;
|
41
|
+
break;
|
42
|
+
case 'VND':
|
43
|
+
symbol = CurrencySymbolEnum.VND;
|
44
|
+
break;
|
45
|
+
default:
|
46
|
+
symbol = '';
|
47
|
+
}
|
48
|
+
if (!showCurrency) {
|
49
|
+
symbol = '';
|
50
|
+
}
|
51
|
+
return symbol;
|
52
|
+
};
|
53
|
+
const formatNumber = options => {
|
54
|
+
options.value = options.value ?? 0;
|
55
|
+
options.styleCurrency = options.styleCurrency ?? 'currency';
|
56
|
+
options.currencyDisplay = options.currencyDisplay ?? 'code';
|
57
|
+
options.showValue = options.showValue ?? true;
|
58
|
+
options.showCurrency = options.showCurrency ?? true;
|
59
|
+
options.minimumFractionDigits = options.minimumFractionDigits ?? 0;
|
60
|
+
options.maximumFractionDigits = options.maximumFractionDigits ?? 0;
|
61
|
+
options.trailingZeroDisplay = options.trailingZeroDisplay ?? 'stripIfInteger';
|
62
|
+
// console.log(`options: ${JSON.stringify(options)}.`);
|
63
|
+
let formatOptions = {
|
64
|
+
style: options.styleCurrency,
|
65
|
+
currency: options.currency,
|
66
|
+
currencyDisplay: options.currencyDisplay,
|
67
|
+
minimumFractionDigits: options.minimumFractionDigits,
|
68
|
+
maximumFractionDigits: options.maximumFractionDigits,
|
69
|
+
trailingZeroDisplay: options.trailingZeroDisplay
|
70
|
+
};
|
71
|
+
if (options.options) {
|
72
|
+
formatOptions = {
|
73
|
+
...formatOptions,
|
74
|
+
...options.options
|
75
|
+
};
|
76
|
+
}
|
77
|
+
let localizedNumber = NumberFormat(options.lang, formatOptions).format(options.value).replace(/^([\d,.]+)(\s*)([A-Z]{3})$/, '$3$2$1').replace(/([\d,.]+)$/, options.showValue ? ' $1' : ' ********').replace(options.currency, getCurrencySymbol(options.currency, options.showCurrency)).trim();
|
78
|
+
// console.log(`localizedNumber: ${localizedNumber}.`);
|
79
|
+
return localizedNumber;
|
80
|
+
};
|
81
|
+
const parseFormatNumber = (lang, value) => {
|
82
|
+
if (!value) {
|
83
|
+
return null;
|
84
|
+
}
|
85
|
+
return new NumberParser(lang).parse(value);
|
86
|
+
};
|
87
|
+
|
88
|
+
require('@formatjs/intl-getcanonicallocales/polyfill');
|
89
|
+
require('@formatjs/intl-locale/polyfill');
|
90
|
+
require('@formatjs/intl-pluralrules/polyfill');
|
91
|
+
require('@formatjs/intl-pluralrules/locale-data/en');
|
92
|
+
require('@formatjs/intl-pluralrules/locale-data/vi');
|
93
|
+
require('@formatjs/intl-pluralrules/locale-data/zh');
|
94
|
+
require('@formatjs/intl-displaynames/polyfill');
|
95
|
+
require('@formatjs/intl-displaynames/locale-data/en');
|
96
|
+
require('@formatjs/intl-displaynames/locale-data/vi');
|
97
|
+
require('@formatjs/intl-displaynames/locale-data/zh');
|
98
|
+
require('@formatjs/intl-listformat/polyfill');
|
99
|
+
require('@formatjs/intl-listformat/locale-data/en');
|
100
|
+
require('@formatjs/intl-listformat/locale-data/vi');
|
101
|
+
require('@formatjs/intl-listformat/locale-data/zh');
|
102
|
+
require('@formatjs/intl-numberformat/polyfill');
|
103
|
+
require('@formatjs/intl-numberformat/locale-data/en');
|
104
|
+
require('@formatjs/intl-numberformat/locale-data/vi');
|
105
|
+
require('@formatjs/intl-numberformat/locale-data/zh');
|
106
|
+
require('@formatjs/intl-relativetimeformat/polyfill');
|
107
|
+
require('@formatjs/intl-relativetimeformat/locale-data/en');
|
108
|
+
require('@formatjs/intl-relativetimeformat/locale-data/vi');
|
109
|
+
require('@formatjs/intl-relativetimeformat/locale-data/zh');
|
110
|
+
require('@formatjs/intl-datetimeformat/polyfill');
|
111
|
+
require('@formatjs/intl-datetimeformat/locale-data/en');
|
112
|
+
require('@formatjs/intl-datetimeformat/locale-data/vi');
|
113
|
+
require('@formatjs/intl-datetimeformat/locale-data/zh');
|
114
|
+
require('@formatjs/intl-datetimeformat/add-golden-tz.js');
|
115
|
+
|
116
|
+
export { CurrencySymbolEnum, formatAccountNumber, formatNumber, getCurrencySymbol, parseFormatNumber };
|
117
|
+
//# sourceMappingURL=format.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"format.mjs","sources":["../src/enums/CurrencySymbolEnum.ts","../src/Format/NumberParser.ts","../src/Format/NumberFormat.ts","../src/format.ts"],"sourcesContent":[null,null,null,null],"names":["CurrencySymbolEnum","NumberParser","constructor","locale","parts","NumberFormat","formatToParts","numerals","useGrouping","format","reverse","index","Map","map","d","i","_group","RegExp","find","type","value","_decimal","_numeral","join","_index","get","parse","trim","replace","NaN","formatAccountNumber","accountNumber","separator","arguments","length","undefined","getCurrencySymbol","currency","showCurrency","symbol","TWD","USD","VND","formatNumber","options","styleCurrency","currencyDisplay","showValue","minimumFractionDigits","maximumFractionDigits","trailingZeroDisplay","formatOptions","style","localizedNumber","lang","parseFormatNumber","require"],"mappings":";;IAAYA,mBAIX;AAJD,CAAA,UAAYA,kBAAkB,EAAA;AAC5BA,EAAAA,kBAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACXA,EAAAA,kBAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACXA,EAAAA,kBAAA,CAAA,KAAA,CAAA,GAAA,QAAS,CAAA;AACX,CAAC,EAJWA,kBAAkB,KAAlBA,kBAAkB,GAI7B,EAAA,CAAA,CAAA;;ACFD,MAAMC,YAAY,CAAA;EAMhBC,WAAAA,CAAYC,MAAc,EAAA;IACxB,MAAMC,KAAK,GAAG,IAAIC,YAAY,CAACF,MAAM,CAAC,CAACG,aAAa,CAAC,OAAO,CAAC,CAAA;IAE7D,MAAMC,QAAQ,GAAG,CACf,GAAG,IAAIF,YAAY,CAACF,MAAM,EAAE;AAAEK,MAAAA,WAAW,EAAE,KAAA;KAAO,CAAC,CAACC,MAAM,CAAC,UAAU,CAAC,CACvE,CAACC,OAAO,EAAE,CAAA;IAEX,MAAMC,KAAK,GAAG,IAAIC,GAAG,CAACL,QAAQ,CAACM,GAAG,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAK,CAACD,CAAC,EAAEC,CAAC,CAAC,CAAC,CAAC,CAAA;IAErD,IAAI,CAACC,MAAM,GAAG,IAAIC,MAAM,CACtB,CAAIb,CAAAA,EAAAA,KAAK,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1
|
+
'use strict';
|
2
|
+
|
3
|
+
var configCli = require('./config-cli.cjs');
|
4
|
+
var sentryCli = require('./sentry-cli.cjs');
|
5
|
+
require('lodash');
|
6
|
+
require('fs');
|
7
|
+
require('google-auth-library');
|
8
|
+
require('googleapis');
|
9
|
+
require('path');
|
10
|
+
require('process');
|
11
|
+
require('sitemap');
|
12
|
+
require('stream');
|
13
|
+
require('@sentry/cli');
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
exports.fetchAll = configCli.fetchAll;
|
18
|
+
exports.fetchConfig = configCli.fetchConfig;
|
19
|
+
exports.fetchLocales = configCli.fetchLocales;
|
20
|
+
exports.fetchRawValue = configCli.fetchRawValue;
|
21
|
+
exports.transformConfig = configCli.transformConfig;
|
22
|
+
exports.transformSitemap = configCli.transformSitemap;
|
23
|
+
exports.releaseSentrySourceMap = sentryCli.releaseSentrySourceMap;
|
24
|
+
//# sourceMappingURL=index-cli.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-cli.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
var _configCli = require("./config-cli");
|
7
|
+
Object.keys(_configCli).forEach(function (key) {
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
9
|
+
if (key in exports && exports[key] === _configCli[key]) return;
|
10
|
+
Object.defineProperty(exports, key, {
|
11
|
+
enumerable: true,
|
12
|
+
get: function get() {
|
13
|
+
return _configCli[key];
|
14
|
+
}
|
15
|
+
});
|
16
|
+
});
|
17
|
+
var _sentryCli = require("./sentry-cli");
|
18
|
+
Object.keys(_sentryCli).forEach(function (key) {
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
20
|
+
if (key in exports && exports[key] === _sentryCli[key]) return;
|
21
|
+
Object.defineProperty(exports, key, {
|
22
|
+
enumerable: true,
|
23
|
+
get: function get() {
|
24
|
+
return _sentryCli[key];
|
25
|
+
}
|
26
|
+
});
|
27
|
+
});
|
28
|
+
//# sourceMappingURL=index-cli.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-cli.js","names":["_configCli","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_sentryCli"],"sources":["../src/index-cli.ts"],"sourcesContent":["export * from './config-cli';\nexport * from './sentry-cli';\n"],"mappings":";;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,UAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,UAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,UAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export { fetchAll, fetchConfig, fetchLocales, fetchRawValue, transformConfig, transformSitemap } from './config-cli.mjs';
|
2
|
+
export { releaseSentrySourceMap } from './sentry-cli.mjs';
|
3
|
+
import 'lodash';
|
4
|
+
import 'fs';
|
5
|
+
import 'google-auth-library';
|
6
|
+
import 'googleapis';
|
7
|
+
import 'path';
|
8
|
+
import 'process';
|
9
|
+
import 'sitemap';
|
10
|
+
import 'stream';
|
11
|
+
import '@sentry/cli';
|
12
|
+
//# sourceMappingURL=index-cli.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-cli.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var format = require('./format.cjs');
|
4
|
+
require('@formatjs/intl-numberformat');
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
Object.defineProperty(exports, "CurrencySymbolEnum", {
|
9
|
+
enumerable: true,
|
10
|
+
get: function () { return format.CurrencySymbolEnum; }
|
11
|
+
});
|
12
|
+
exports.formatAccountNumber = format.formatAccountNumber;
|
13
|
+
exports.formatNumber = format.formatNumber;
|
14
|
+
exports.getCurrencySymbol = format.getCurrencySymbol;
|
15
|
+
exports.parseFormatNumber = format.parseFormatNumber;
|
16
|
+
//# sourceMappingURL=index-fmt.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-fmt.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './format';
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
var _format = require("./format");
|
7
|
+
Object.keys(_format).forEach(function (key) {
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
9
|
+
if (key in exports && exports[key] === _format[key]) return;
|
10
|
+
Object.defineProperty(exports, key, {
|
11
|
+
enumerable: true,
|
12
|
+
get: function get() {
|
13
|
+
return _format[key];
|
14
|
+
}
|
15
|
+
});
|
16
|
+
});
|
17
|
+
//# sourceMappingURL=index-fmt.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-fmt.js","names":["_format","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../src/index-fmt.ts"],"sourcesContent":["export * from './format';\n"],"mappings":";;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-fmt.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var format = require('./format.cjs');
|
4
|
+
var ReactNative = require('./ReactNative-CqUrY2ZJ.js');
|
5
|
+
require('@formatjs/intl-numberformat');
|
6
|
+
require('@sentry/react-native');
|
7
|
+
require('./Utils-Dilye04y.js');
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
Object.defineProperty(exports, "CurrencySymbolEnum", {
|
12
|
+
enumerable: true,
|
13
|
+
get: function () { return format.CurrencySymbolEnum; }
|
14
|
+
});
|
15
|
+
exports.formatAccountNumber = format.formatAccountNumber;
|
16
|
+
exports.formatNumber = format.formatNumber;
|
17
|
+
exports.getCurrencySymbol = format.getCurrencySymbol;
|
18
|
+
exports.parseFormatNumber = format.parseFormatNumber;
|
19
|
+
exports.initSentry = ReactNative.initSentry;
|
20
|
+
exports.recordAdditionalSentryHttp = ReactNative.recordAdditionalSentryHttp;
|
21
|
+
//# sourceMappingURL=index-rn.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-rn.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|
package/dist/index-rn.js
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
var _format = require("./format");
|
7
|
+
Object.keys(_format).forEach(function (key) {
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
9
|
+
if (key in exports && exports[key] === _format[key]) return;
|
10
|
+
Object.defineProperty(exports, key, {
|
11
|
+
enumerable: true,
|
12
|
+
get: function get() {
|
13
|
+
return _format[key];
|
14
|
+
}
|
15
|
+
});
|
16
|
+
});
|
17
|
+
var _sentryRn = require("./sentry-rn");
|
18
|
+
Object.keys(_sentryRn).forEach(function (key) {
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
20
|
+
if (key in exports && exports[key] === _sentryRn[key]) return;
|
21
|
+
Object.defineProperty(exports, key, {
|
22
|
+
enumerable: true,
|
23
|
+
get: function get() {
|
24
|
+
return _sentryRn[key];
|
25
|
+
}
|
26
|
+
});
|
27
|
+
});
|
28
|
+
//# sourceMappingURL=index-rn.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-rn.js","names":["_format","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_sentryRn"],"sources":["../src/index-rn.ts"],"sourcesContent":["export * from './format';\nexport * from './sentry-rn';\n"],"mappings":";;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,SAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,SAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,SAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,SAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export { CurrencySymbolEnum, formatAccountNumber, formatNumber, getCurrencySymbol, parseFormatNumber } from './format.mjs';
|
2
|
+
export { i as initSentry, r as recordAdditionalSentryHttp } from './ReactNative-mNnws-b5.js';
|
3
|
+
import '@formatjs/intl-numberformat';
|
4
|
+
import '@sentry/react-native';
|
5
|
+
import './Utils-Cq948gfa.js';
|
6
|
+
//# sourceMappingURL=index-rn.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-rn.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index.cjs
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var format = require('./format.cjs');
|
4
|
+
var React = require('./React-qUl0CBmE.js');
|
5
|
+
require('@formatjs/intl-numberformat');
|
6
|
+
require('@sentry/react');
|
7
|
+
require('./Utils-Dilye04y.js');
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
Object.defineProperty(exports, "CurrencySymbolEnum", {
|
12
|
+
enumerable: true,
|
13
|
+
get: function () { return format.CurrencySymbolEnum; }
|
14
|
+
});
|
15
|
+
exports.formatAccountNumber = format.formatAccountNumber;
|
16
|
+
exports.formatNumber = format.formatNumber;
|
17
|
+
exports.getCurrencySymbol = format.getCurrencySymbol;
|
18
|
+
exports.parseFormatNumber = format.parseFormatNumber;
|
19
|
+
exports.initSentry = React.initSentry;
|
20
|
+
exports.recordAdditionalSentryHttp = React.recordAdditionalSentryHttp;
|
21
|
+
//# sourceMappingURL=index.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
var _format = require("./format");
|
7
|
+
Object.keys(_format).forEach(function (key) {
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
9
|
+
if (key in exports && exports[key] === _format[key]) return;
|
10
|
+
Object.defineProperty(exports, key, {
|
11
|
+
enumerable: true,
|
12
|
+
get: function get() {
|
13
|
+
return _format[key];
|
14
|
+
}
|
15
|
+
});
|
16
|
+
});
|
17
|
+
var _sentry = require("./sentry");
|
18
|
+
Object.keys(_sentry).forEach(function (key) {
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
20
|
+
if (key in exports && exports[key] === _sentry[key]) return;
|
21
|
+
Object.defineProperty(exports, key, {
|
22
|
+
enumerable: true,
|
23
|
+
get: function get() {
|
24
|
+
return _sentry[key];
|
25
|
+
}
|
26
|
+
});
|
27
|
+
});
|
28
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","names":["_format","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_sentry"],"sources":["../src/index.ts"],"sourcesContent":["export * from './format';\nexport * from './sentry';\n"],"mappings":";;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
package/dist/index.mjs
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
export { CurrencySymbolEnum, formatAccountNumber, formatNumber, getCurrencySymbol, parseFormatNumber } from './format.mjs';
|
2
|
+
export { i as initSentry, r as recordAdditionalSentryHttp } from './React-BaJ1KfGF.js';
|
3
|
+
import '@formatjs/intl-numberformat';
|
4
|
+
import '@sentry/react';
|
5
|
+
import './Utils-Cq948gfa.js';
|
6
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ConfigOptions.js","names":[],"sources":["../../../src/interfaces/Config/ConfigOptions.ts"],"sourcesContent":["import { FormatAs } from '../../types/Config/OptionType';\nimport { OutputOptions } from './OutputOptions';\n\nexport interface ConfigOptions {\n spreadsheetId: string;\n spreadsheetTab: string;\n formatAs: FormatAs;\n output: OutputOptions;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"OutputMap.js","names":[],"sources":["../../../src/interfaces/Config/OutputMap.ts"],"sourcesContent":["export interface OutputMap {\n [key: string]: any;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"OutputOptions.js","names":[],"sources":["../../../src/interfaces/Config/OutputOptions.ts"],"sourcesContent":["import { ExportAs } from '../../types/Config/OptionType';\n\nexport interface OutputOptions {\n folder: string;\n filename: string;\n isFilenameLowercase?: boolean;\n exportAs?: ExportAs;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SitemapMap.js","names":[],"sources":["../../../src/interfaces/Config/SitemapMap.ts"],"sourcesContent":["export interface SitemapMap {\n url: string;\n changeFreq: string;\n priority: number;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"StringMap.js","names":[],"sources":["../../../src/interfaces/Config/StringMap.ts"],"sourcesContent":["export interface StringMap {\n [key: string]: string;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { CurrencyDisplay, StyleCurrency, TrailingZeroDisplay } from '../../types/Format/OptionType';
|
2
|
+
export interface FormatOptions {
|
3
|
+
lang: string;
|
4
|
+
currency: string;
|
5
|
+
value: number;
|
6
|
+
styleCurrency?: StyleCurrency;
|
7
|
+
currencyDisplay?: CurrencyDisplay;
|
8
|
+
showValue?: boolean;
|
9
|
+
showCurrency?: boolean;
|
10
|
+
minimumFractionDigits?: number;
|
11
|
+
maximumFractionDigits?: number;
|
12
|
+
trailingZeroDisplay?: TrailingZeroDisplay;
|
13
|
+
options?: any;
|
14
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FormatOptions.js","names":[],"sources":["../../../src/interfaces/Format/FormatOptions.ts"],"sourcesContent":["import {\n CurrencyDisplay,\n StyleCurrency,\n TrailingZeroDisplay,\n} from '../../types/Format/OptionType';\n\nexport interface FormatOptions {\n lang: string;\n currency: string;\n value: number;\n styleCurrency?: StyleCurrency;\n currencyDisplay?: CurrencyDisplay;\n showValue?: boolean;\n showCurrency?: boolean;\n minimumFractionDigits?: number;\n maximumFractionDigits?: number;\n trailingZeroDisplay?: TrailingZeroDisplay;\n options?: any;\n}\n"],"mappings":"","ignoreList":[]}
|