@ptsecurity/mosaic 14.0.0 → 14.1.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.
- package/checkbox/checkbox.d.ts +5 -14
- package/core/formatters/date/formatter.pipe.d.ts +95 -0
- package/core/formatters/index.d.ts +3 -1
- package/core/pop-up/pop-up-trigger.d.ts +3 -1
- package/core/validation/validation.d.ts +1 -12
- package/datepicker/datepicker-input.directive.d.ts +4 -9
- package/design-tokens/legacy-2017/tokens/components/badge.json5 +46 -46
- package/design-tokens/legacy-2017/tokens/components/button-toggle.json5 +2 -1
- package/design-tokens/legacy-2017/tokens/components/checkbox.json5 +4 -0
- package/design-tokens/legacy-2017/tokens/components/progress-spinner.json5 +10 -1
- package/design-tokens/legacy-2017/tokens/components/timezone.json5 +1 -0
- package/design-tokens/legacy-2017/tokens.d.ts +44 -33
- package/design-tokens/pt-2022/tokens/components/button-toggle.json5 +2 -1
- package/design-tokens/pt-2022/tokens/components/checkbox.json5 +4 -0
- package/design-tokens/pt-2022/tokens/components/form-field.json5 +1 -1
- package/design-tokens/pt-2022/tokens/components/progress-spinner.json5 +10 -1
- package/design-tokens/pt-2022/tokens/components/timezone.json5 +1 -0
- package/design-tokens/pt-2022/tokens/properties/colors.json5 +8 -8
- package/design-tokens/pt-2022/tokens/properties/typography.json5 +17 -17
- package/design-tokens/pt-2022/tokens.d.ts +63 -52
- package/design-tokens/style-dictionary/formats/figma.js +2 -2
- package/esm2020/button-toggle/button-toggle.component.mjs +2 -2
- package/esm2020/checkbox/checkbox.mjs +17 -32
- package/esm2020/core/formatters/date/formatter.pipe.mjs +187 -0
- package/esm2020/core/formatters/index.mjs +62 -4
- package/esm2020/core/pop-up/pop-up-trigger.mjs +13 -11
- package/esm2020/core/validation/validation.mjs +1 -114
- package/esm2020/datepicker/datepicker-input.directive.mjs +8 -25
- package/esm2020/datepicker/datepicker.component.mjs +1 -1
- package/esm2020/design-tokens/legacy-2017/tokens.mjs +45 -34
- package/esm2020/design-tokens/pt-2022/tokens.mjs +64 -53
- package/esm2020/form-field/form-field.module.mjs +10 -5
- package/esm2020/form-field/public-api.mjs +2 -1
- package/esm2020/form-field/validate.directive.mjs +156 -0
- package/esm2020/input/input-password.mjs +8 -41
- package/esm2020/input/input.mjs +8 -41
- package/esm2020/loader-overlay/loader-overlay.component.mjs +7 -3
- package/esm2020/modal/modal.component.mjs +2 -2
- package/esm2020/modal/modal.service.mjs +2 -1
- package/esm2020/popover/popover-confirm.component.mjs +3 -3
- package/esm2020/popover/popover.component.mjs +13 -4
- package/esm2020/progress-spinner/progress-spinner.component.mjs +21 -6
- package/esm2020/radio/radio.component.mjs +42 -41
- package/esm2020/select/select.component.mjs +17 -37
- package/esm2020/sidepanel/sidepanel.service.mjs +2 -1
- package/esm2020/tags/tag-list.component.mjs +17 -32
- package/esm2020/textarea/textarea.component.mjs +17 -38
- package/esm2020/timepicker/timepicker.directive.mjs +8 -25
- package/esm2020/timezone/timezone.utils.mjs +15 -7
- package/esm2020/toast/toast-container.component.mjs +2 -2
- package/esm2020/toast/toast.service.mjs +12 -3
- package/esm2020/toggle/toggle.component.mjs +3 -3
- package/esm2020/tree-select/tree-select.component.mjs +21 -41
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +2 -2
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs +16 -31
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-core.mjs +258 -127
- package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs +4 -21
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +151 -118
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-form-field.mjs +164 -7
- package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-input.mjs +9 -75
- package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs +6 -2
- package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-modal.mjs +3 -2
- package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-popover.mjs +15 -6
- package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +20 -5
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-radio.mjs +42 -40
- package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-select.mjs +17 -37
- package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +1 -0
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tags.mjs +15 -30
- package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-textarea.mjs +17 -37
- package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs +6 -23
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-timezone.mjs +15 -6
- package/fesm2015/ptsecurity-mosaic-timezone.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-toast.mjs +13 -4
- package/fesm2015/ptsecurity-mosaic-toast.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-toggle.mjs +2 -2
- package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs +22 -42
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-button-toggle.mjs +2 -2
- package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-checkbox.mjs +16 -31
- package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-core.mjs +255 -127
- package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs +4 -21
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +151 -118
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-form-field.mjs +162 -7
- package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-input.mjs +9 -75
- package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs +6 -2
- package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-modal.mjs +3 -2
- package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-popover.mjs +15 -6
- package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +20 -5
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-radio.mjs +41 -40
- package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-select.mjs +15 -36
- package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +1 -0
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tags.mjs +14 -30
- package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-textarea.mjs +15 -36
- package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-timepicker.mjs +6 -23
- package/fesm2020/ptsecurity-mosaic-timepicker.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-timezone.mjs +14 -6
- package/fesm2020/ptsecurity-mosaic-timezone.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-toast.mjs +13 -4
- package/fesm2020/ptsecurity-mosaic-toast.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-toggle.mjs +2 -2
- package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs +19 -40
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/form-field/form-field.module.d.ts +4 -3
- package/form-field/public-api.d.ts +1 -0
- package/form-field/validate.directive.d.ts +32 -0
- package/input/input-password.d.ts +6 -12
- package/input/input.d.ts +6 -12
- package/loader-overlay/loader-overlay.component.d.ts +1 -0
- package/package.json +4 -4
- package/popover/popover.component.d.ts +1 -0
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/prebuilt-visual/default-visual.css +1 -1
- package/progress-spinner/progress-spinner.component.d.ts +6 -1
- package/radio/radio.component.d.ts +6 -12
- package/select/select.component.d.ts +6 -10
- package/tags/tag-list.component.d.ts +6 -8
- package/textarea/textarea.component.d.ts +7 -12
- package/timepicker/timepicker.directive.d.ts +4 -9
- package/timezone/timezone.utils.d.ts +1 -1
- package/toast/toast.service.d.ts +1 -0
- package/tree-select/tree-select.component.d.ts +4 -8
@@ -2,9 +2,9 @@ import { Directionality } from '@angular/cdk/bidi';
|
|
2
2
|
import { SelectionModel } from '@angular/cdk/collections';
|
3
3
|
import { CdkConnectedOverlay, ConnectedPosition } from '@angular/cdk/overlay';
|
4
4
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, QueryList, Renderer2, SimpleChanges } from '@angular/core';
|
5
|
-
import { ControlValueAccessor,
|
5
|
+
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
6
6
|
import { ActiveDescendantKeyManager } from '@ptsecurity/cdk/a11y';
|
7
|
-
import { CanDisable, CanDisableCtor, CanUpdateErrorState, CanUpdateErrorStateCtor, ErrorStateMatcher, HasTabIndex, HasTabIndexCtor, McOptgroup, McOption, McOptionSelectionChange
|
7
|
+
import { CanDisable, CanDisableCtor, CanUpdateErrorState, CanUpdateErrorStateCtor, ErrorStateMatcher, HasTabIndex, HasTabIndexCtor, McOptgroup, McOption, McOptionSelectionChange } from '@ptsecurity/mosaic/core';
|
8
8
|
import { McCleaner, McFormField, McFormFieldControl } from '@ptsecurity/mosaic/form-field';
|
9
9
|
import { McInput } from '@ptsecurity/mosaic/input';
|
10
10
|
import { McTag } from '@ptsecurity/mosaic/tags';
|
@@ -56,13 +56,9 @@ export declare class McSelect extends McSelectMixinBase implements AfterContentI
|
|
56
56
|
private readonly _changeDetectorRef;
|
57
57
|
private readonly _ngZone;
|
58
58
|
private readonly _renderer;
|
59
|
-
rawValidators: Validator[];
|
60
59
|
private readonly _dir;
|
61
|
-
private readonly
|
62
|
-
|
63
|
-
formControlName: FormControlName;
|
64
|
-
private readonly _scrollStrategyFactory;
|
65
|
-
private mcValidation;
|
60
|
+
private readonly parentFormField;
|
61
|
+
private readonly scrollStrategyFactory;
|
66
62
|
/** A name for this control that can be used by `mc-form-field`. */
|
67
63
|
controlType: string;
|
68
64
|
hiddenItems: number;
|
@@ -183,7 +179,7 @@ export declare class McSelect extends McSelectMixinBase implements AfterContentI
|
|
183
179
|
private readonly uid;
|
184
180
|
/** Emits whenever the component is destroyed. */
|
185
181
|
private readonly destroy;
|
186
|
-
constructor(_changeDetectorRef: ChangeDetectorRef, _ngZone: NgZone, _renderer: Renderer2, defaultErrorStateMatcher: ErrorStateMatcher, elementRef: ElementRef,
|
182
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, _ngZone: NgZone, _renderer: Renderer2, defaultErrorStateMatcher: ErrorStateMatcher, elementRef: ElementRef, _dir: Directionality, parentForm: NgForm, parentFormGroup: FormGroupDirective, parentFormField: McFormField, ngControl: NgControl, scrollStrategyFactory: any);
|
187
183
|
ngOnInit(): void;
|
188
184
|
ngAfterContentInit(): void;
|
189
185
|
ngAfterViewInit(): void;
|
@@ -310,7 +306,7 @@ export declare class McSelect extends McSelectMixinBase implements AfterContentI
|
|
310
306
|
private getOverlayWidth;
|
311
307
|
/** Comparison function to specify which option is displayed. Defaults to object equality. */
|
312
308
|
private _compareWith;
|
313
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McSelect, [null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true;
|
309
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSelect, [null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }, null]>;
|
314
310
|
static ɵcmp: i0.ɵɵComponentDeclaration<McSelect, "mc-select", ["mcSelect"], { "disabled": "disabled"; "tabIndex": "tabIndex"; "hiddenItemsText": "hiddenItemsText"; "panelClass": "panelClass"; "backdropClass": "backdropClass"; "errorStateMatcher": "errorStateMatcher"; "sortComparator": "sortComparator"; "hasBackdrop": "hasBackdrop"; "placeholder": "placeholder"; "required": "required"; "multiple": "multiple"; "compareWith": "compareWith"; "value": "value"; "id": "id"; "hiddenItemsTextFormatter": "hiddenItemsTextFormatter"; }, { "openedChange": "openedChange"; "openedStream": "opened"; "closedStream": "closed"; "selectionChange": "selectionChange"; "valueChange": "valueChange"; }, ["customTrigger", "cleaner", "search", "options", "optionGroups"], ["mc-select-trigger", "mc-cleaner", "[mcSelectSearch]", "[mc-select-search-empty-result]", "*"], false>;
|
315
311
|
}
|
316
312
|
export {};
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { Directionality } from '@angular/cdk/bidi';
|
2
2
|
import { SelectionModel } from '@angular/cdk/collections';
|
3
3
|
import { AfterContentInit, ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
4
|
-
import { ControlValueAccessor,
|
4
|
+
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
5
5
|
import { FocusKeyManager } from '@ptsecurity/cdk/a11y';
|
6
|
-
import { CanUpdateErrorState, CanUpdateErrorStateCtor, ErrorStateMatcher
|
6
|
+
import { CanUpdateErrorState, CanUpdateErrorStateCtor, ErrorStateMatcher } from '@ptsecurity/mosaic/core';
|
7
7
|
import { McCleaner, McFormFieldControl } from '@ptsecurity/mosaic/form-field';
|
8
8
|
import { Observable, Subject } from 'rxjs';
|
9
9
|
import { McTagTextControl } from './tag-text-control';
|
@@ -32,11 +32,7 @@ export declare class McTagListChange {
|
|
32
32
|
export declare class McTagList extends McTagListMixinBase implements McFormFieldControl<any>, ControlValueAccessor, AfterContentInit, DoCheck, OnInit, OnDestroy, CanUpdateErrorState {
|
33
33
|
protected elementRef: ElementRef<HTMLElement>;
|
34
34
|
private changeDetectorRef;
|
35
|
-
rawValidators: Validator[];
|
36
|
-
private mcValidation;
|
37
35
|
private dir;
|
38
|
-
ngModel: NgModel;
|
39
|
-
formControlName: FormControlName;
|
40
36
|
readonly controlType: string;
|
41
37
|
/** Combined stream of all of the child tags' selection change events. */
|
42
38
|
get tagSelectionChanges(): Observable<McTagSelectionChange>;
|
@@ -157,7 +153,7 @@ export declare class McTagList extends McTagListMixinBase implements McFormField
|
|
157
153
|
private tagSelectionSubscription;
|
158
154
|
/** Subscription to remove changes in tags. */
|
159
155
|
private tagRemoveSubscription;
|
160
|
-
constructor(elementRef: ElementRef<HTMLElement>, changeDetectorRef: ChangeDetectorRef, defaultErrorStateMatcher: ErrorStateMatcher,
|
156
|
+
constructor(elementRef: ElementRef<HTMLElement>, changeDetectorRef: ChangeDetectorRef, defaultErrorStateMatcher: ErrorStateMatcher, dir: Directionality, parentForm: NgForm, parentFormGroup: FormGroupDirective, ngControl: NgControl);
|
161
157
|
ngAfterContentInit(): void;
|
162
158
|
ngOnInit(): void;
|
163
159
|
ngDoCheck(): void;
|
@@ -241,6 +237,8 @@ export declare class McTagList extends McTagListMixinBase implements McFormField
|
|
241
237
|
private hasFocusedTag;
|
242
238
|
/** Syncs the list's disabled state with the individual tags. */
|
243
239
|
private syncTagsDisabledState;
|
244
|
-
|
240
|
+
/** Revalidate control. */
|
241
|
+
private revalidate;
|
242
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McTagList, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
|
245
243
|
static ɵcmp: i0.ɵɵComponentDeclaration<McTagList, "mc-tag-list", ["mcTagList"], { "multiple": "multiple"; "compareWith": "compareWith"; "value": "value"; "required": "required"; "placeholder": "placeholder"; "disabled": "disabled"; "selectable": "selectable"; "tabIndex": "tabIndex"; "errorStateMatcher": "errorStateMatcher"; "orientation": "orientation"; }, { "valueChange": "valueChange"; "change": "change"; }, ["cleaner", "tags"], ["*", "mc-cleaner"], false>;
|
246
244
|
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { DoCheck, ElementRef, OnChanges, OnDestroy, InjectionToken, NgZone, OnInit
|
2
|
-
import { FormGroupDirective, NgControl, NgForm
|
3
|
-
import { CanUpdateErrorState, CanUpdateErrorStateCtor, ErrorStateMatcher
|
1
|
+
import { DoCheck, ElementRef, OnChanges, OnDestroy, InjectionToken, NgZone, OnInit } from '@angular/core';
|
2
|
+
import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
3
|
+
import { CanUpdateErrorState, CanUpdateErrorStateCtor, ErrorStateMatcher } 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";
|
@@ -21,14 +21,9 @@ export declare class McTextareaBase {
|
|
21
21
|
constructor(defaultErrorStateMatcher: ErrorStateMatcher, parentForm: NgForm, parentFormGroup: FormGroupDirective, ngControl: NgControl);
|
22
22
|
}
|
23
23
|
export declare const McTextareaMixinBase: CanUpdateErrorStateCtor & typeof McTextareaBase;
|
24
|
-
export declare class McTextarea extends McTextareaMixinBase implements McFormFieldControl<any>, OnInit, OnChanges, OnDestroy, DoCheck, CanUpdateErrorState
|
24
|
+
export declare class McTextarea extends McTextareaMixinBase implements McFormFieldControl<any>, OnInit, OnChanges, OnDestroy, DoCheck, CanUpdateErrorState {
|
25
25
|
protected elementRef: ElementRef;
|
26
|
-
ngControl: NgControl;
|
27
|
-
rawValidators: Validator[];
|
28
|
-
private mcValidation;
|
29
|
-
ngModel: NgModel;
|
30
26
|
private ngZone;
|
31
|
-
private changeDetectorRef;
|
32
27
|
canGrow: boolean;
|
33
28
|
/** An object used to control when error messages are shown. */
|
34
29
|
errorStateMatcher: ErrorStateMatcher;
|
@@ -86,12 +81,12 @@ export declare class McTextarea extends McTextareaMixinBase implements McFormFie
|
|
86
81
|
private lineHeight;
|
87
82
|
private freeRowsHeight;
|
88
83
|
private minHeight;
|
89
|
-
constructor(elementRef: ElementRef, ngControl: NgControl, parentForm: NgForm,
|
84
|
+
constructor(elementRef: ElementRef, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, inputValueAccessor: any, ngZone: NgZone);
|
90
85
|
ngOnInit(): void;
|
91
86
|
ngOnChanges(): void;
|
92
87
|
ngOnDestroy(): void;
|
93
|
-
ngAfterContentInit(): void;
|
94
88
|
ngDoCheck(): void;
|
89
|
+
onBlur(): void;
|
95
90
|
/** Grow textarea height to avoid vertical scroll */
|
96
91
|
grow(): void;
|
97
92
|
/** Focuses the textarea. */
|
@@ -112,6 +107,6 @@ export declare class McTextarea extends McTextareaMixinBase implements McFormFie
|
|
112
107
|
protected dirtyCheckNativeValue(): void;
|
113
108
|
/** Checks whether the textarea is invalid based on the native validation. */
|
114
109
|
protected isBadInput(): boolean;
|
115
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McTextarea, [null, { optional: true; self: true; }, { optional: true; }, { optional: true;
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McTextarea, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }, null]>;
|
116
111
|
static ɵdir: i0.ɵɵDirectiveDeclaration<McTextarea, "textarea[mcTextarea]", ["mcTextarea"], { "canGrow": "canGrow"; "errorStateMatcher": "errorStateMatcher"; "disabled": "disabled"; "id": "id"; "placeholder": "placeholder"; "required": "required"; "value": "value"; }, {}, never, never, false>;
|
117
112
|
}
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import { AbstractControl, ControlValueAccessor,
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, Renderer2 } from '@angular/core';
|
2
|
+
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
3
3
|
import { DateAdapter } from '@ptsecurity/cdk/datetime';
|
4
|
-
import { McValidationOptions } from '@ptsecurity/mosaic/core';
|
5
4
|
import { McFormFieldControl } from '@ptsecurity/mosaic/form-field';
|
6
5
|
import { McWarningTooltipTrigger } from '@ptsecurity/mosaic/tooltip';
|
7
6
|
import { Subject } from 'rxjs';
|
@@ -13,11 +12,7 @@ export declare const MC_TIMEPICKER_VALUE_ACCESSOR: any;
|
|
13
12
|
export declare const MC_TIMEPICKER_VALIDATORS: any;
|
14
13
|
export declare class McTimepicker<D> implements McFormFieldControl<D>, ControlValueAccessor, Validator, OnDestroy {
|
15
14
|
private elementRef;
|
16
|
-
private changeDetectorRef;
|
17
15
|
private renderer;
|
18
|
-
private mcValidation;
|
19
|
-
parentForm: NgForm;
|
20
|
-
parentFormGroup: FormGroupDirective;
|
21
16
|
private dateAdapter;
|
22
17
|
/**
|
23
18
|
* Implemented as part of McFormFieldControl.
|
@@ -90,7 +85,7 @@ export declare class McTimepicker<D> implements McFormFieldControl<D>, ControlVa
|
|
90
85
|
private defaultPlaceholder;
|
91
86
|
private onChange;
|
92
87
|
private onTouched;
|
93
|
-
constructor(elementRef: ElementRef,
|
88
|
+
constructor(elementRef: ElementRef, renderer: Renderer2, dateAdapter: DateAdapter<any>);
|
94
89
|
ngOnDestroy(): void;
|
95
90
|
getSize(): number;
|
96
91
|
focus(): void;
|
@@ -141,6 +136,6 @@ export declare class McTimepicker<D> implements McFormFieldControl<D>, ControlVa
|
|
141
136
|
private updateView;
|
142
137
|
private setControl;
|
143
138
|
private validatorOnChange;
|
144
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McTimepicker<any>, [null, null,
|
139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McTimepicker<any>, [null, null, { optional: true; }]>;
|
145
140
|
static ɵdir: i0.ɵɵDirectiveDeclaration<McTimepicker<any>, "input[mcTimepicker]", ["mcTimepicker"], { "placeholder": "placeholder"; "disabled": "disabled"; "id": "id"; "required": "required"; "format": "format"; "min": "min"; "max": "max"; "value": "value"; "mcValidationTooltip": "mcValidationTooltip"; }, { "incorrectInput": "incorrectInput"; }, never, never, false>;
|
146
141
|
}
|
@@ -6,7 +6,7 @@ export declare function parseOffset(offset: string): number;
|
|
6
6
|
/**
|
7
7
|
* Grouping timezones by countries
|
8
8
|
*/
|
9
|
-
export declare function getZonesGroupedByCountry(data: McTimezoneZone[], priorityCountry?: string): McTimezoneGroup[];
|
9
|
+
export declare function getZonesGroupedByCountry(data: McTimezoneZone[], otherCountriesLabel?: string, priorityCountry?: string): McTimezoneGroup[];
|
10
10
|
export declare function offsetFormatter(value: string): string;
|
11
11
|
/**
|
12
12
|
* Comparator for timezone sorting. Sort by offset and country name
|
package/toast/toast.service.d.ts
CHANGED
@@ -2,8 +2,8 @@ import { Directionality } from '@angular/cdk/bidi';
|
|
2
2
|
import { SelectionModel } from '@angular/cdk/collections';
|
3
3
|
import { CdkConnectedOverlay, ConnectedPosition, ViewportRuler } from '@angular/cdk/overlay';
|
4
4
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, QueryList, Renderer2, SimpleChanges } from '@angular/core';
|
5
|
-
import { ControlValueAccessor,
|
6
|
-
import { CanDisable, CanUpdateErrorState, ErrorStateMatcher, HasTabIndex, CanDisableCtor, HasTabIndexCtor, CanUpdateErrorStateCtor
|
5
|
+
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
6
|
+
import { CanDisable, CanUpdateErrorState, ErrorStateMatcher, HasTabIndex, CanDisableCtor, HasTabIndexCtor, CanUpdateErrorStateCtor } from '@ptsecurity/mosaic/core';
|
7
7
|
import { McCleaner, McFormField, McFormFieldControl } from '@ptsecurity/mosaic/form-field';
|
8
8
|
import { McSelectSearch } from '@ptsecurity/mosaic/select';
|
9
9
|
import { McTag } from '@ptsecurity/mosaic/tags';
|
@@ -51,12 +51,8 @@ export declare class McTreeSelect extends McTreeSelectMixinBase implements After
|
|
51
51
|
private readonly ngZone;
|
52
52
|
private readonly renderer;
|
53
53
|
private readonly scrollStrategyFactory;
|
54
|
-
rawValidators: Validator[];
|
55
|
-
private mcValidation;
|
56
54
|
private readonly dir;
|
57
55
|
private readonly parentFormField;
|
58
|
-
ngModel: NgModel;
|
59
|
-
formControlName: FormControlName;
|
60
56
|
/** A name for this control that can be used by `mc-form-field`. */
|
61
57
|
controlType: string;
|
62
58
|
hiddenItems: number;
|
@@ -172,7 +168,7 @@ export declare class McTreeSelect extends McTreeSelectMixinBase implements After
|
|
172
168
|
/** Emits whenever the component is destroyed. */
|
173
169
|
private readonly destroy;
|
174
170
|
private tempValues;
|
175
|
-
constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, viewportRuler: ViewportRuler, ngZone: NgZone, renderer: Renderer2, defaultErrorStateMatcher: ErrorStateMatcher, scrollStrategyFactory: any,
|
171
|
+
constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, viewportRuler: ViewportRuler, ngZone: NgZone, renderer: Renderer2, defaultErrorStateMatcher: ErrorStateMatcher, scrollStrategyFactory: any, dir: Directionality, parentForm: NgForm, parentFormGroup: FormGroupDirective, parentFormField: McFormField, ngControl: NgControl);
|
176
172
|
ngOnInit(): void;
|
177
173
|
ngAfterContentInit(): void;
|
178
174
|
ngAfterViewInit(): void;
|
@@ -277,7 +273,7 @@ export declare class McTreeSelect extends McTreeSelectMixinBase implements After
|
|
277
273
|
/** Comparison function to specify which option is displayed. Defaults to object equality. */
|
278
274
|
private _compareWith;
|
279
275
|
private updateIsEmptySearchResult;
|
280
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McTreeSelect, [null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true;
|
276
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McTreeSelect, [null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
|
281
277
|
static ɵcmp: i0.ɵɵComponentDeclaration<McTreeSelect, "mc-tree-select", ["mcTreeSelect"], { "disabled": "disabled"; "tabIndex": "tabIndex"; "hiddenItemsText": "hiddenItemsText"; "panelClass": "panelClass"; "backdropClass": "backdropClass"; "errorStateMatcher": "errorStateMatcher"; "sortComparator": "sortComparator"; "placeholder": "placeholder"; "required": "required"; "multiple": "multiple"; "autoSelect": "autoSelect"; "compareWith": "compareWith"; "id": "id"; "hasBackdrop": "hasBackdrop"; "hiddenItemsTextFormatter": "hiddenItemsTextFormatter"; }, { "openedChange": "openedChange"; "openedStream": "opened"; "closedStream": "closed"; "selectionChange": "selectionChange"; "valueChange": "valueChange"; }, ["cleaner", "customTrigger", "tree", "search"], ["mc-tree-select-trigger", "mc-cleaner", "[mcSelectSearch]", "[mc-select-search-empty-result]", "mc-tree-selection", "[mc-tree-selection-footer]"], false>;
|
282
278
|
}
|
283
279
|
export {};
|