cps-ui-kit 17.20.0 → 17.22.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/esm2022/lib/components/cps-timepicker/cps-timepicker.component.mjs +7 -13
- package/esm2022/lib/services/cps-dialog/cps-dialog.service.mjs +32 -7
- package/fesm2022/cps-ui-kit.mjs +37 -18
- package/fesm2022/cps-ui-kit.mjs.map +1 -1
- package/lib/components/cps-timepicker/cps-timepicker.component.d.ts +1 -2
- package/lib/services/cps-dialog/cps-dialog.service.d.ts +9 -4
- package/package.json +1 -1
|
@@ -123,7 +123,7 @@ export declare class CpsTimepickerComponent implements OnInit, AfterViewInit, On
|
|
|
123
123
|
registerOnChange(fn: any): void;
|
|
124
124
|
registerOnTouched(fn: any): void;
|
|
125
125
|
setDisabledState(disabled: boolean): void;
|
|
126
|
-
writeValue(value: CpsTime): void;
|
|
126
|
+
writeValue(value: CpsTime | undefined): void;
|
|
127
127
|
onFieldBlur(): void;
|
|
128
128
|
updateHours(hours: string): void;
|
|
129
129
|
updateMinutes(minutes: string): void;
|
|
@@ -137,7 +137,6 @@ export declare class CpsTimepickerComponent implements OnInit, AfterViewInit, On
|
|
|
137
137
|
private _checkErrors;
|
|
138
138
|
private _initHoursOptions;
|
|
139
139
|
private _updateValue;
|
|
140
|
-
private _tryUpdateValue;
|
|
141
140
|
private _getRange;
|
|
142
141
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTimepickerComponent, [{ optional: true; self: true; }]>;
|
|
143
142
|
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTimepickerComponent, "cps-timepicker", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "use24HourTime": { "alias": "use24HourTime"; "required": false; }; "withSeconds": { "alias": "withSeconds"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "hideDetails": { "alias": "hideDetails"; "required": false; }; "infoTooltip": { "alias": "infoTooltip"; "required": false; }; "infoTooltipClass": { "alias": "infoTooltipClass"; "required": false; }; "infoTooltipMaxWidth": { "alias": "infoTooltipMaxWidth"; "required": false; }; "infoTooltipPersistent": { "alias": "infoTooltipPersistent"; "required": false; }; "infoTooltipPosition": { "alias": "infoTooltipPosition"; "required": false; }; "mandatoryValue": { "alias": "mandatoryValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Type, ComponentRef, ApplicationRef, EnvironmentInjector, Injector } from '@angular/core';
|
|
1
|
+
import { Type, ComponentRef, ApplicationRef, EnvironmentInjector, Injector, OnDestroy } from '@angular/core';
|
|
2
2
|
import { CpsDialogRef } from './utils/cps-dialog-ref';
|
|
3
3
|
import { CpsDialogConfig } from './utils/cps-dialog-config';
|
|
4
4
|
import { CpsDialogComponent } from './internal/components/cps-dialog/cps-dialog.component';
|
|
@@ -7,13 +7,16 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
* Service for showing CpsDialog.
|
|
8
8
|
* @group Services
|
|
9
9
|
*/
|
|
10
|
-
export declare class CpsDialogService {
|
|
10
|
+
export declare class CpsDialogService implements OnDestroy {
|
|
11
11
|
private _appRef;
|
|
12
12
|
private _environmentInjector;
|
|
13
13
|
private _injector;
|
|
14
14
|
private document;
|
|
15
|
+
private _parentDialogService;
|
|
16
|
+
get openDialogs(): CpsDialogRef<any>[];
|
|
15
17
|
dialogComponentRefMap: Map<CpsDialogRef, ComponentRef<CpsDialogComponent>>;
|
|
16
|
-
|
|
18
|
+
private _openDialogsAtThisLevel;
|
|
19
|
+
constructor(_appRef: ApplicationRef, _environmentInjector: EnvironmentInjector, _injector: Injector, document: Document, _parentDialogService: CpsDialogService);
|
|
17
20
|
/**
|
|
18
21
|
* Opens a dialog with a dynamically loaded component.
|
|
19
22
|
* @param {*} componentType - Dynamic component for content template.
|
|
@@ -37,6 +40,8 @@ export declare class CpsDialogService {
|
|
|
37
40
|
closeAll(force?: boolean): void;
|
|
38
41
|
private appendDialogComponentToBody;
|
|
39
42
|
private removeDialogComponentFromBody;
|
|
40
|
-
|
|
43
|
+
ngOnDestroy(): void;
|
|
44
|
+
private _reverseForEach;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CpsDialogService, [null, null, null, null, { optional: true; skipSelf: true; }]>;
|
|
41
46
|
static ɵprov: i0.ɵɵInjectableDeclaration<CpsDialogService>;
|
|
42
47
|
}
|