@ptsecurity/mosaic 17.2.7 → 17.2.9
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/core/locales/locale-service.d.ts +11 -0
- package/esm2022/core/locales/locale-service.mjs +34 -1
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/input/input-number.mjs +31 -59
- package/esm2022/input/input.mjs +3 -3
- package/fesm2022/ptsecurity-mosaic-core.mjs +35 -2
- package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-input.mjs +33 -61
- package/fesm2022/ptsecurity-mosaic-input.mjs.map +1 -1
- package/input/input-number.d.ts +10 -11
- package/input/input.d.ts +1 -1
- package/package.json +10 -10
package/input/input-number.d.ts
CHANGED
@@ -4,6 +4,11 @@ import { McLocaleService } from '@ptsecurity/mosaic/core';
|
|
4
4
|
import { McFormFieldControl } from '@ptsecurity/mosaic/form-field';
|
5
5
|
import { Subject } from 'rxjs';
|
6
6
|
import * as i0 from "@angular/core";
|
7
|
+
export declare const MC_INPUT_NUMBER_DEFAULT_CONFIGURATION: {
|
8
|
+
groupSeparator: string[];
|
9
|
+
fractionSeparator: string;
|
10
|
+
startFormattingFrom: number;
|
11
|
+
};
|
7
12
|
export declare const BIG_STEP = 10;
|
8
13
|
export declare const SMALL_STEP = 1;
|
9
14
|
export declare function normalizeSplitter(value: string): string;
|
@@ -16,7 +21,7 @@ export declare const MC_NUMBER_INPUT_VALUE_ACCESSOR: any;
|
|
16
21
|
export declare class McNumberInput implements McFormFieldControl<any>, ControlValueAccessor, OnDestroy {
|
17
22
|
private elementRef;
|
18
23
|
private readonly renderer;
|
19
|
-
private localeService
|
24
|
+
private localeService?;
|
20
25
|
/** Emits when the value changes (either due to user input or programmatic change). */
|
21
26
|
valueChange: EventEmitter<number | null>;
|
22
27
|
/** Emits when the disabled state has changed */
|
@@ -48,11 +53,9 @@ export declare class McNumberInput implements McFormFieldControl<any>, ControlVa
|
|
48
53
|
get viewValue(): string;
|
49
54
|
get ngControl(): any;
|
50
55
|
private control;
|
51
|
-
private
|
52
|
-
private numberLocaleConfig;
|
56
|
+
private config;
|
53
57
|
private valueFromPaste;
|
54
|
-
|
55
|
-
constructor(elementRef: ElementRef, renderer: Renderer2, step: string, bigStep: string, min: string, max: string, localeService: McLocaleService);
|
58
|
+
constructor(elementRef: ElementRef, renderer: Renderer2, step: string, bigStep: string, min: string, max: string, localeService?: McLocaleService | undefined);
|
56
59
|
ngOnDestroy(): void;
|
57
60
|
onContainerClick(): void;
|
58
61
|
focus(): void;
|
@@ -67,18 +70,14 @@ export declare class McNumberInput implements McFormFieldControl<any>, ControlVa
|
|
67
70
|
onPaste(event: ClipboardEvent): void;
|
68
71
|
stepUp(step: number): void;
|
69
72
|
stepDown(step: number): void;
|
73
|
+
private initDefaultParams;
|
70
74
|
private cvaOnChange;
|
71
75
|
private setViewValue;
|
72
76
|
private viewToModelUpdate;
|
73
77
|
private formatViewValue;
|
74
78
|
private formatNumber;
|
75
79
|
private createLocalizedNumberFromParts;
|
76
|
-
/**
|
77
|
-
* Method that returns a string representation of a number without localized separators
|
78
|
-
*/
|
79
|
-
private normalizeNumber;
|
80
80
|
private updateLocaleParams;
|
81
|
-
private checkAndNormalizeLocalizedNumber;
|
82
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<McNumberInput, [null, null, { attribute: "step"; }, { attribute: "big-step"; }, { attribute: "min"; }, { attribute: "max"; }, { optional: true; }]>;
|
83
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<McNumberInput, "input[
|
82
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McNumberInput, "input[mcNumberInput]", ["mcNumericalInput"], { "bigStep": { "alias": "bigStep"; "required": false; }; "step": { "alias": "step"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "withThousandSeparator": { "alias": "withThousandSeparator"; "required": false; }; "startFormattingFrom": { "alias": "startFormattingFrom"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
|
84
83
|
}
|
package/input/input.d.ts
CHANGED
@@ -109,7 +109,7 @@ export declare class McInput extends McInputMixinBase implements McFormFieldCont
|
|
109
109
|
/** Checks whether the input is invalid based on the native validation. */
|
110
110
|
protected isBadInput(): boolean;
|
111
111
|
static ɵfac: i0.ɵɵFactoryDeclaration<McInput, [null, { optional: true; self: true; }, { optional: true; self: true; }, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }]>;
|
112
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<McInput, "input[mcInput]", ["mcInput"], { "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "required": { "alias": "required"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
112
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McInput, "input[mcInput],input[mcNumberInput]", ["mcInput"], { "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "required": { "alias": "required"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
113
113
|
}
|
114
114
|
export declare class McInputMono {
|
115
115
|
static ɵfac: i0.ɵɵFactoryDeclaration<McInputMono, never>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ptsecurity/mosaic",
|
3
|
-
"version": "17.2.
|
3
|
+
"version": "17.2.9",
|
4
4
|
"description": "Mosaic",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -19,9 +19,9 @@
|
|
19
19
|
"peerDependencies": {
|
20
20
|
"@angular/cdk": "^17.2.0",
|
21
21
|
"@angular/forms": "^17.2.0",
|
22
|
-
"@ptsecurity/cdk": "^17.2.
|
23
|
-
"@ptsecurity/mosaic-moment-adapter": "^17.2.
|
24
|
-
"@ptsecurity/mosaic-luxon-adapter": "^17.2.
|
22
|
+
"@ptsecurity/cdk": "^17.2.9",
|
23
|
+
"@ptsecurity/mosaic-moment-adapter": "^17.2.9",
|
24
|
+
"@ptsecurity/mosaic-luxon-adapter": "^17.2.9",
|
25
25
|
"@mosaic-design/date-formatter": "^2.1.7",
|
26
26
|
"@ptsecurity/mosaic-icons": "^7.0.8",
|
27
27
|
"@mosaic-design/tokens-builder": "^3.1.0",
|
@@ -75,18 +75,18 @@
|
|
75
75
|
"esm": "./esm2022/button-toggle/ptsecurity-mosaic-button-toggle.mjs",
|
76
76
|
"default": "./fesm2022/ptsecurity-mosaic-button-toggle.mjs"
|
77
77
|
},
|
78
|
-
"./card": {
|
79
|
-
"types": "./card/index.d.ts",
|
80
|
-
"esm2022": "./esm2022/card/ptsecurity-mosaic-card.mjs",
|
81
|
-
"esm": "./esm2022/card/ptsecurity-mosaic-card.mjs",
|
82
|
-
"default": "./fesm2022/ptsecurity-mosaic-card.mjs"
|
83
|
-
},
|
84
78
|
"./checkbox": {
|
85
79
|
"types": "./checkbox/index.d.ts",
|
86
80
|
"esm2022": "./esm2022/checkbox/ptsecurity-mosaic-checkbox.mjs",
|
87
81
|
"esm": "./esm2022/checkbox/ptsecurity-mosaic-checkbox.mjs",
|
88
82
|
"default": "./fesm2022/ptsecurity-mosaic-checkbox.mjs"
|
89
83
|
},
|
84
|
+
"./card": {
|
85
|
+
"types": "./card/index.d.ts",
|
86
|
+
"esm2022": "./esm2022/card/ptsecurity-mosaic-card.mjs",
|
87
|
+
"esm": "./esm2022/card/ptsecurity-mosaic-card.mjs",
|
88
|
+
"default": "./fesm2022/ptsecurity-mosaic-card.mjs"
|
89
|
+
},
|
90
90
|
"./code-block": {
|
91
91
|
"types": "./code-block/index.d.ts",
|
92
92
|
"esm2022": "./esm2022/code-block/ptsecurity-mosaic-code-block.mjs",
|