@skyux/core 6.0.0-beta.10 → 6.0.0-beta.11
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/documentation.json +655 -735
- package/esm2020/lib/modules/numeric/numeric.options.mjs +4 -35
- package/esm2020/lib/modules/numeric/numeric.pipe.mjs +3 -3
- package/fesm2015/skyux-core.mjs +5 -36
- package/fesm2015/skyux-core.mjs.map +1 -1
- package/fesm2020/skyux-core.mjs +5 -36
- package/fesm2020/skyux-core.mjs.map +1 -1
- package/lib/modules/numeric/numeric.options.d.ts +14 -13
- package/package.json +2 -2
@@ -1,27 +1,21 @@
|
|
1
1
|
/**
|
2
2
|
* Provides arguments for the number to format.
|
3
3
|
*/
|
4
|
-
export
|
4
|
+
export interface SkyNumericOptions {
|
5
5
|
/**
|
6
6
|
* Specifies the maximum number of digits after the decimal separator.
|
7
|
-
* @default 1
|
8
7
|
*/
|
9
8
|
digits?: number;
|
10
9
|
/**
|
11
10
|
* Specifies how to format the number. Options are `currency` or `number`.
|
12
|
-
* @default "number"
|
13
11
|
*/
|
14
12
|
format?: string;
|
15
13
|
/**
|
16
14
|
* Specifies the format of the currency.
|
17
|
-
* @default "standard"
|
18
15
|
*/
|
19
16
|
currencySign?: 'accounting' | 'standard';
|
20
17
|
/**
|
21
|
-
* Specifies the ISO4217 currency code to use for currency formatting.
|
22
|
-
* currency code, the component uses the browser's culture to determine the currency unless your
|
23
|
-
* SPA provides a different culture with `SkyAppLocaleProvider`.
|
24
|
-
* @default "USD"
|
18
|
+
* Specifies the ISO4217 currency code to use for currency formatting.
|
25
19
|
*/
|
26
20
|
iso?: string;
|
27
21
|
/**
|
@@ -40,14 +34,21 @@ export declare class SkyNumericOptions {
|
|
40
34
|
*/
|
41
35
|
truncate?: boolean;
|
42
36
|
/**
|
43
|
-
* Specifies the
|
44
|
-
* and abbreviation characters.
|
45
|
-
* @default 0
|
37
|
+
* Specifies the minimum value at which numbers are shortened to rounded numbers and abbreviation characters. Values less than `1000` are not truncated.
|
46
38
|
*/
|
47
39
|
truncateAfter?: number;
|
48
40
|
}
|
49
41
|
/**
|
50
|
-
*
|
42
|
+
* Provides arguments for the number to format.
|
43
|
+
* @deprecated Use the `SkyNumericOptions` interface instead.
|
51
44
|
*/
|
52
|
-
export declare class NumericOptions
|
45
|
+
export declare class NumericOptions implements SkyNumericOptions {
|
46
|
+
digits?: number;
|
47
|
+
format?: string;
|
48
|
+
currencySign?: 'accounting' | 'standard';
|
49
|
+
iso?: string;
|
50
|
+
locale?: string;
|
51
|
+
minDigits?: number;
|
52
|
+
truncate?: boolean;
|
53
|
+
truncateAfter?: number;
|
53
54
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@skyux/core",
|
3
|
-
"version": "6.0.0-beta.
|
3
|
+
"version": "6.0.0-beta.11",
|
4
4
|
"author": "Blackbaud, Inc.",
|
5
5
|
"keywords": [
|
6
6
|
"blackbaud",
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"@angular/core": "^13.3.2",
|
45
45
|
"@angular/platform-browser": "^13.3.2",
|
46
46
|
"@angular/router": "^13.3.2",
|
47
|
-
"@skyux/i18n": "6.0.0-beta.
|
47
|
+
"@skyux/i18n": "6.0.0-beta.11"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
50
|
"tslib": "^2.3.1"
|