cmat 0.0.80 → 0.0.81
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/fesm2022/cmat-components-carousel.mjs +34 -9
- package/fesm2022/cmat-components-carousel.mjs.map +1 -1
- package/fesm2022/cmat-components-drawer.mjs +49 -14
- package/fesm2022/cmat-components-drawer.mjs.map +1 -1
- package/fesm2022/cmat-components-material-datetimepicker.mjs +49 -27
- package/fesm2022/cmat-components-material-datetimepicker.mjs.map +1 -1
- package/fesm2022/cmat-components-navigation.mjs +149 -169
- package/fesm2022/cmat-components-navigation.mjs.map +1 -1
- package/fesm2022/cmat-components-opt-input.mjs +73 -63
- package/fesm2022/cmat-components-opt-input.mjs.map +1 -1
- package/fesm2022/cmat-components-popover.mjs +25 -14
- package/fesm2022/cmat-components-popover.mjs.map +1 -1
- package/fesm2022/cmat-components-select-search.mjs +9 -19
- package/fesm2022/cmat-components-select-search.mjs.map +1 -1
- package/fesm2022/cmat-components-speed-dial.mjs +45 -5
- package/fesm2022/cmat-components-speed-dial.mjs.map +1 -1
- package/fesm2022/cmat-components-toast.mjs +69 -18
- package/fesm2022/cmat-components-toast.mjs.map +1 -1
- package/fesm2022/cmat-components-treetable.mjs.map +1 -1
- package/fesm2022/cmat-directives-arrow-cursor.mjs +66 -43
- package/fesm2022/cmat-directives-arrow-cursor.mjs.map +1 -1
- package/fesm2022/cmat.mjs +559 -374
- package/fesm2022/cmat.mjs.map +1 -1
- package/package.json +1 -1
- package/types/cmat-components-carousel.d.ts +16 -9
- package/types/cmat-components-drawer.d.ts +6 -0
- package/types/cmat-components-material-datetimepicker.d.ts +10 -7
- package/types/cmat-components-navigation.d.ts +13 -8
- package/types/cmat-components-opt-input.d.ts +11 -8
- package/types/cmat-components-popover.d.ts +3 -3
- package/types/cmat-components-select-search.d.ts +1 -1
- package/types/cmat-components-speed-dial.d.ts +5 -1
- package/types/cmat-components-toast.d.ts +12 -2
- package/types/cmat-directives-arrow-cursor.d.ts +9 -4
- package/types/cmat.d.ts +83 -40
package/package.json
CHANGED
|
@@ -74,22 +74,29 @@ declare class CmatCarouselComponent implements AfterContentInit, OnChanges, Afte
|
|
|
74
74
|
headerFacet: QueryList<CmatCarouselHeaderComponent> | undefined;
|
|
75
75
|
footerFacet: QueryList<CmatCarouselFooterComponent> | undefined;
|
|
76
76
|
templates: QueryList<CmatCarouselTemplateDirective> | undefined;
|
|
77
|
-
prevState:
|
|
77
|
+
prevState: {
|
|
78
|
+
numScroll: number;
|
|
79
|
+
numVisible: number;
|
|
80
|
+
value: any[];
|
|
81
|
+
};
|
|
78
82
|
defaultNumScroll: number;
|
|
79
83
|
defaultNumVisible: number;
|
|
80
|
-
carouselStyle:
|
|
84
|
+
carouselStyle: HTMLStyleElement | null;
|
|
81
85
|
id: string | undefined;
|
|
82
86
|
totalShiftedItems: number;
|
|
83
87
|
isRemainingItemsAdded: boolean;
|
|
84
|
-
animationTimeout:
|
|
85
|
-
translateTimeout:
|
|
88
|
+
animationTimeout: number | null;
|
|
89
|
+
translateTimeout: number | null;
|
|
86
90
|
remainingItems: number;
|
|
87
|
-
startPos:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
startPos: {
|
|
92
|
+
x: number;
|
|
93
|
+
y: number;
|
|
94
|
+
} | null;
|
|
95
|
+
documentResizeListener: VoidFunction | null;
|
|
96
|
+
clonedItemsForStarting: any[];
|
|
97
|
+
clonedItemsForFinishing: any[];
|
|
91
98
|
allowAutoplay: boolean | undefined;
|
|
92
|
-
interval:
|
|
99
|
+
interval: number | null;
|
|
93
100
|
isCreated: boolean | undefined;
|
|
94
101
|
swipeThreshold: number;
|
|
95
102
|
itemTemplate: TemplateRef<any> | null;
|
|
@@ -27,6 +27,9 @@ declare class CmatDrawerComponent implements OnChanges, OnInit, OnDestroy {
|
|
|
27
27
|
private _hovered;
|
|
28
28
|
private _overlay;
|
|
29
29
|
private _overlayClickDestroyFn;
|
|
30
|
+
private _overlayLeaveTimeoutId;
|
|
31
|
+
private _modeChangeTimeoutId;
|
|
32
|
+
private _destroyed;
|
|
30
33
|
get classList(): any;
|
|
31
34
|
get styleList(): any;
|
|
32
35
|
onMouseenter(): void;
|
|
@@ -37,6 +40,9 @@ declare class CmatDrawerComponent implements OnChanges, OnInit, OnDestroy {
|
|
|
37
40
|
open(): void;
|
|
38
41
|
close(): void;
|
|
39
42
|
toggle(): void;
|
|
43
|
+
private _removeOverlayElement;
|
|
44
|
+
private _cleanupOverlay;
|
|
45
|
+
private _clearOverlayLeaveTimeout;
|
|
40
46
|
private _enableAnimations;
|
|
41
47
|
private _disableAnimations;
|
|
42
48
|
private _showOverlay;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { AfterContentInit,
|
|
2
|
+
import { AfterContentInit, OnDestroy, EventEmitter, ElementRef, InjectionToken, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { ScrollStrategy, Overlay } from '@angular/cdk/overlay';
|
|
4
4
|
import { ThemePalette } from '@angular/material/core';
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
@@ -25,7 +25,7 @@ declare const CLOCK_RADIUS = 50;
|
|
|
25
25
|
declare const CLOCK_INNER_RADIUS = 27.5;
|
|
26
26
|
declare const CLOCK_OUTER_RADIUS = 41.25;
|
|
27
27
|
declare const CLOCK_TICK_RADIUS = 7.0833;
|
|
28
|
-
declare class CmatDatetimepickerClockComponent<D> implements AfterContentInit {
|
|
28
|
+
declare class CmatDatetimepickerClockComponent<D> implements AfterContentInit, OnDestroy {
|
|
29
29
|
userSelection: EventEmitter<void>;
|
|
30
30
|
dateFilter: (date: D, type: CmatDatetimepickerFilterType) => boolean;
|
|
31
31
|
interval: number;
|
|
@@ -61,8 +61,10 @@ declare class CmatDatetimepickerClockComponent<D> implements AfterContentInit {
|
|
|
61
61
|
get hand(): any;
|
|
62
62
|
handleMousedown(event: MouseEvent): void;
|
|
63
63
|
ngAfterContentInit(): void;
|
|
64
|
-
|
|
64
|
+
ngOnDestroy(): void;
|
|
65
|
+
handleMousemove(event: MouseEvent | TouchEvent): void;
|
|
65
66
|
handleMouseup(): void;
|
|
67
|
+
private _removeDocumentListeners;
|
|
66
68
|
private _init;
|
|
67
69
|
private _setTime;
|
|
68
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerClockComponent<any>, never>;
|
|
@@ -91,8 +93,8 @@ declare class CmatDatetimepickerCalendarComponent<D> implements AfterContentInit
|
|
|
91
93
|
private _intl;
|
|
92
94
|
private _adapter;
|
|
93
95
|
private _dateFormats;
|
|
96
|
+
private readonly _destroyRef;
|
|
94
97
|
private _currentView;
|
|
95
|
-
private _intlChanges;
|
|
96
98
|
private _clampedActiveDate;
|
|
97
99
|
private _type;
|
|
98
100
|
private _startAt;
|
|
@@ -212,6 +214,7 @@ declare class CmatDatetimepickerInputDirective<D> implements AfterContentInit, C
|
|
|
212
214
|
private _formField;
|
|
213
215
|
private _datepickerSubscription;
|
|
214
216
|
private _localeSubscription;
|
|
217
|
+
private _valueChangeTimeoutId;
|
|
215
218
|
private _lastValueValid;
|
|
216
219
|
private _value;
|
|
217
220
|
private _min;
|
|
@@ -310,6 +313,7 @@ declare class CmatDatetimepickerComponent<D> implements OnDestroy {
|
|
|
310
313
|
private _focusedElementBeforeOpen;
|
|
311
314
|
private _backdropHarnessClass;
|
|
312
315
|
private _inputStateChanges;
|
|
316
|
+
private _closeAnimationTimeoutId;
|
|
313
317
|
private _multiYearSelector;
|
|
314
318
|
private _twelvehour;
|
|
315
319
|
private _panelClass;
|
|
@@ -396,7 +400,7 @@ declare class CmatDatetimepickerToggleIconDirective {
|
|
|
396
400
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerToggleIconDirective, never>;
|
|
397
401
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatDatetimepickerToggleIconDirective, "[cmatDatetimepickerToggleIcon]", never, {}, {}, never, never, true, never>;
|
|
398
402
|
}
|
|
399
|
-
declare class CmatDatetimepickerToggleComponent<D> implements AfterContentInit, OnChanges
|
|
403
|
+
declare class CmatDatetimepickerToggleComponent<D> implements AfterContentInit, OnChanges {
|
|
400
404
|
datetimepicker: CmatDatetimepickerComponent<D>;
|
|
401
405
|
tabIndex: number;
|
|
402
406
|
ariaLabel?: string;
|
|
@@ -406,12 +410,11 @@ declare class CmatDatetimepickerToggleComponent<D> implements AfterContentInit,
|
|
|
406
410
|
class: string;
|
|
407
411
|
readonly refreshVersion: i0.WritableSignal<number>;
|
|
408
412
|
protected intl: CmatDatetimepickerIntl;
|
|
409
|
-
private
|
|
413
|
+
private readonly _destroyRef;
|
|
410
414
|
private _disabled;
|
|
411
415
|
get disabled(): boolean;
|
|
412
416
|
set disabled(value: boolean);
|
|
413
417
|
ngOnChanges(changes: SimpleChanges): void;
|
|
414
|
-
ngOnDestroy(): void;
|
|
415
418
|
ngAfterContentInit(): void;
|
|
416
419
|
open(event: Event): void;
|
|
417
420
|
private _watchStateChanges;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges, OnInit, OnDestroy, EventEmitter, SimpleChanges, AfterViewInit
|
|
2
|
+
import { OnChanges, OnInit, OnDestroy, EventEmitter, SimpleChanges, AfterViewInit } from '@angular/core';
|
|
3
3
|
import { IsActiveMatchOptions } from '@angular/router';
|
|
4
4
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
5
5
|
import { ReplaySubject } from 'rxjs';
|
|
@@ -85,6 +85,7 @@ declare class CmatVerticalNavigationComponent implements OnChanges, OnInit, Afte
|
|
|
85
85
|
readonly positionChanged: EventEmitter<CmatVerticalNavigationPosition>;
|
|
86
86
|
readonly editSelectedItemChanged: EventEmitter<CmatNavigationItem>;
|
|
87
87
|
readonly activeAsideItemId: i0.WritableSignal<string | null>;
|
|
88
|
+
readonly asideOverlayVisible: i0.WritableSignal<boolean>;
|
|
88
89
|
onCollapsableItemCollapsed: ReplaySubject<CmatNavigationItem>;
|
|
89
90
|
onCollapsableItemExpanded: ReplaySubject<CmatNavigationItem>;
|
|
90
91
|
readonly refreshToken: i0.WritableSignal<number>;
|
|
@@ -97,10 +98,14 @@ declare class CmatVerticalNavigationComponent implements OnChanges, OnInit, Afte
|
|
|
97
98
|
private readonly _destroyRef;
|
|
98
99
|
private _animationsEnabled;
|
|
99
100
|
private _asideOverlay;
|
|
100
|
-
private
|
|
101
|
+
private _asideOverlayClickDestroyFn;
|
|
102
|
+
private _asideOverlayLeaveTimeoutId;
|
|
101
103
|
private readonly _handleOverlayClick;
|
|
102
104
|
private _hovered;
|
|
103
105
|
private _overlay;
|
|
106
|
+
private _overlayClickDestroyFn;
|
|
107
|
+
private _overlayLeaveTimeoutId;
|
|
108
|
+
private _modeChangeTimeoutId;
|
|
104
109
|
private _scrollStrategy;
|
|
105
110
|
constructor();
|
|
106
111
|
onMouseenter(): void;
|
|
@@ -120,6 +125,12 @@ declare class CmatVerticalNavigationComponent implements OnChanges, OnInit, Afte
|
|
|
120
125
|
selectItem(item: CmatNavigationItem): void;
|
|
121
126
|
goToRouterLink(link: string): void;
|
|
122
127
|
isItemVisible(item: CmatNavigationItem): boolean;
|
|
128
|
+
private _removeOverlayElement;
|
|
129
|
+
private _removeAsideOverlayElement;
|
|
130
|
+
private _forceCleanupOverlay;
|
|
131
|
+
private _forceCleanupAsideOverlay;
|
|
132
|
+
private _clearOverlayLeaveTimeout;
|
|
133
|
+
private _clearAsideOverlayLeaveTimeout;
|
|
123
134
|
private _enableAnimations;
|
|
124
135
|
private _disableAnimations;
|
|
125
136
|
private _showOverlay;
|
|
@@ -130,8 +141,6 @@ declare class CmatVerticalNavigationComponent implements OnChanges, OnInit, Afte
|
|
|
130
141
|
private _setNavigationOpened;
|
|
131
142
|
private _applyOpenedState;
|
|
132
143
|
private _setAsideActive;
|
|
133
|
-
private _removeOverlayElement;
|
|
134
|
-
private _removeOverlayAfterTransition;
|
|
135
144
|
private _syncHostBindings;
|
|
136
145
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatVerticalNavigationComponent, never>;
|
|
137
146
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatVerticalNavigationComponent, "cmat-vertical-navigation", ["cmatVerticalNavigation"], { "appearance": { "alias": "appearance"; "required": false; }; "autoCollapse": { "alias": "autoCollapse"; "required": false; }; "editState": { "alias": "editState"; "required": false; }; "inner": { "alias": "inner"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "name": { "alias": "name"; "required": false; }; "navigation": { "alias": "navigation"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "position": { "alias": "position"; "required": false; }; "transparentOverlay": { "alias": "transparentOverlay"; "required": false; }; "hasRouteReuseStrategy": { "alias": "hasRouteReuseStrategy"; "required": false; }; }, { "routeReuseStrategyEmitUrl": "routeReuseStrategyEmitUrl"; "appearanceChanged": "appearanceChanged"; "modeChanged": "modeChanged"; "openedChanged": "openedChanged"; "positionChanged": "positionChanged"; "editSelectedItemChanged": "editSelectedItemChanged"; }, never, ["[cmatVerticalNavigationHeader]", "[cmatVerticalNavigationContentHeader]", "[cmatVerticalNavigationContentFooter]", "[cmatVerticalNavigationFooter]"], true, never>;
|
|
@@ -139,14 +148,10 @@ declare class CmatVerticalNavigationComponent implements OnChanges, OnInit, Afte
|
|
|
139
148
|
|
|
140
149
|
declare class CmatNavigationService {
|
|
141
150
|
private readonly _componentRegistry;
|
|
142
|
-
private readonly _refreshTokenRegistry;
|
|
143
151
|
private readonly _navigationStore;
|
|
144
152
|
registerComponent(name: string, component: unknown): void;
|
|
145
153
|
deregisterComponent(name: string): void;
|
|
146
154
|
getComponent<T = unknown>(name: string): T;
|
|
147
|
-
registerRefreshToken(name: string, refreshToken: Signal<number>): void;
|
|
148
|
-
deregisterRefreshToken(name: string): void;
|
|
149
|
-
getRefreshToken(name: string): Signal<number> | undefined;
|
|
150
155
|
storeNavigation(key: string, navigation: CmatNavigationItem[]): void;
|
|
151
156
|
getNavigation(key: string): CmatNavigationItem[];
|
|
152
157
|
deleteNavigation(key: string): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { AfterViewInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { AfterViewInit, OnDestroy, OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
|
|
4
4
|
import { ControlValueAccessor, UntypedFormGroup, NgControl, FormControl } from '@angular/forms';
|
|
5
5
|
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
@@ -22,8 +22,8 @@ declare class OptInputConfig {
|
|
|
22
22
|
|
|
23
23
|
declare class CmatOtpInputComponent implements MatFormFieldControl<any>, AfterViewInit, OnDestroy, OnChanges, ControlValueAccessor {
|
|
24
24
|
id: string;
|
|
25
|
-
onBlur:
|
|
26
|
-
onInputChange:
|
|
25
|
+
onBlur: EventEmitter<void>;
|
|
26
|
+
onInputChange: EventEmitter<string | null>;
|
|
27
27
|
config: OptInputConfig;
|
|
28
28
|
otpForm: UntypedFormGroup;
|
|
29
29
|
currentVal: string | null;
|
|
@@ -34,7 +34,9 @@ declare class CmatOtpInputComponent implements MatFormFieldControl<any>, AfterVi
|
|
|
34
34
|
private _document;
|
|
35
35
|
private _formBuilder;
|
|
36
36
|
private readonly _destroyRef;
|
|
37
|
+
private _valueChangesSub;
|
|
37
38
|
private _activeFocusCount;
|
|
39
|
+
private _pendingTimeouts;
|
|
38
40
|
constructor();
|
|
39
41
|
get inputType(): string;
|
|
40
42
|
get controlKeys(): string[];
|
|
@@ -64,17 +66,18 @@ declare class CmatOtpInputComponent implements MatFormFieldControl<any>, AfterVi
|
|
|
64
66
|
protected _disabled: boolean;
|
|
65
67
|
setDescribedByIds(ids: string[]): void;
|
|
66
68
|
onContainerClick(): void;
|
|
67
|
-
onKeyDown($event:
|
|
68
|
-
onInput($event:
|
|
69
|
-
onKeyUp($event:
|
|
70
|
-
validateNumber(val: string): boolean
|
|
69
|
+
onKeyDown($event: KeyboardEvent, inputIdx: number): void;
|
|
70
|
+
onInput($event: Event, inputIdx: number): void;
|
|
71
|
+
onKeyUp($event: KeyboardEvent, inputIdx: number): void;
|
|
72
|
+
validateNumber(val: string): boolean;
|
|
71
73
|
getBoxId(idx: string | number): string;
|
|
72
74
|
focusTo(eleId: string): void;
|
|
73
75
|
setValue(value: any): void;
|
|
74
|
-
handlePaste(e:
|
|
76
|
+
handlePaste(e: ClipboardEvent): void;
|
|
75
77
|
getFormControl(key: string): FormControl;
|
|
76
78
|
private _onModelChange;
|
|
77
79
|
private _onTouchedChange;
|
|
80
|
+
private _removePendingTimeout;
|
|
78
81
|
private _getControlName;
|
|
79
82
|
private _clearInput;
|
|
80
83
|
private _setSelected;
|
|
@@ -135,9 +135,8 @@ declare class CmatPopoverTriggerDirective implements OnChanges, AfterViewInit, O
|
|
|
135
135
|
private _overlayRef;
|
|
136
136
|
private _popoverOpen;
|
|
137
137
|
private _halt;
|
|
138
|
-
private _backdropSubscription;
|
|
139
138
|
private _positionSubscription;
|
|
140
|
-
private
|
|
139
|
+
private _leaveTimeoutId;
|
|
141
140
|
private _mouseoverTimer;
|
|
142
141
|
private _openedByMouse;
|
|
143
142
|
get popoverOpen(): boolean;
|
|
@@ -166,7 +165,8 @@ declare class CmatPopoverTriggerDirective implements OnChanges, AfterViewInit, O
|
|
|
166
165
|
private _getOverlayScrollStrategy;
|
|
167
166
|
private _subscribeToPositions;
|
|
168
167
|
private _getPosition;
|
|
169
|
-
private
|
|
168
|
+
private _cleanUpPositionSubscription;
|
|
169
|
+
private _clearLeaveTimeout;
|
|
170
170
|
private _setCurrentConfig;
|
|
171
171
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatPopoverTriggerDirective, never>;
|
|
172
172
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatPopoverTriggerDirective, "[cmatPopoverTriggerFor],[cmatPopoverTargetAt],[cmatPopoverTriggerOn]", ["cmatPopoverTrigger"], { "popover": { "alias": "cmatPopoverTriggerFor"; "required": false; }; "targetElement": { "alias": "cmatPopoverTargetAt"; "required": false; }; "triggerEvent": { "alias": "cmatPopoverTriggerOn"; "required": false; }; }, { "popoverOpened": "popoverOpened"; "popoverClosed": "popoverClosed"; }, never, never, true, never>;
|
|
@@ -60,7 +60,7 @@ declare class CmatSelectSearchComponent implements OnInit, ControlValueAccessor
|
|
|
60
60
|
get value(): string;
|
|
61
61
|
get _options(): QueryList<MatOption> | null;
|
|
62
62
|
set _options(_options: QueryList<MatOption>);
|
|
63
|
-
onTouched: () =>
|
|
63
|
+
onTouched: () => void;
|
|
64
64
|
ngOnInit(): void;
|
|
65
65
|
emitSelectAllBooleanToParent(state: boolean): void;
|
|
66
66
|
isToggleAllCheckboxVisible(): boolean;
|
|
@@ -3,18 +3,22 @@ import { AfterContentInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
|
3
3
|
|
|
4
4
|
type Direction = 'up' | 'down' | 'left' | 'right';
|
|
5
5
|
type AnimationMode = 'fling' | 'scale';
|
|
6
|
-
declare class CmatSpeedDialActionsComponent implements AfterContentInit {
|
|
6
|
+
declare class CmatSpeedDialActionsComponent implements AfterContentInit, OnDestroy {
|
|
7
7
|
private _buttons;
|
|
8
8
|
readonly miniFabVisible: i0.WritableSignal<boolean>;
|
|
9
9
|
private readonly _renderer;
|
|
10
|
+
private readonly _destroyRef;
|
|
10
11
|
private readonly _parent;
|
|
11
12
|
private _showMiniFabAnimation;
|
|
12
13
|
private _hideMiniFab;
|
|
14
|
+
private _hideTimeoutId;
|
|
13
15
|
ngAfterContentInit(): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
14
17
|
show(): void;
|
|
15
18
|
hide(): void;
|
|
16
19
|
private _initButtonStates;
|
|
17
20
|
private _resetAnimationState;
|
|
21
|
+
private _clearHideTimeout;
|
|
18
22
|
private _getTranslateFunction;
|
|
19
23
|
private _changeElementStyle;
|
|
20
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSpeedDialActionsComponent, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { AfterViewInit, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { AfterViewInit, OnDestroy, EventEmitter, OnInit } from '@angular/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
|
|
5
5
|
type Prefixable = keyof Pick<CmatToastModel, 'theme' | 'position' | 'type'>;
|
|
@@ -30,16 +30,26 @@ interface CmatToastModel extends GlobalConfigModel {
|
|
|
30
30
|
message: string;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
declare class CmatToastModalComponent implements AfterViewInit {
|
|
33
|
+
declare class CmatToastModalComponent implements AfterViewInit, OnDestroy {
|
|
34
34
|
toast: CmatToastModel;
|
|
35
35
|
closeToastEvent: EventEmitter<number>;
|
|
36
36
|
readonly progressPercent: i0.WritableSignal<number>;
|
|
37
|
+
readonly displayTitle: i0.WritableSignal<string>;
|
|
38
|
+
readonly displayType: i0.WritableSignal<string>;
|
|
39
|
+
readonly displayMessage: i0.WritableSignal<string>;
|
|
40
|
+
readonly leaving: i0.WritableSignal<boolean>;
|
|
37
41
|
timeout: number;
|
|
38
42
|
private _progressInterval;
|
|
39
43
|
private _startTime;
|
|
44
|
+
private _leaveTimeoutId;
|
|
45
|
+
private _elementRef;
|
|
40
46
|
ngAfterViewInit(): void;
|
|
47
|
+
ngOnDestroy(): void;
|
|
41
48
|
handleProgress(): void;
|
|
42
49
|
close(toast: CmatToastModel): void;
|
|
50
|
+
private _emitClose;
|
|
51
|
+
private _clearInterval;
|
|
52
|
+
private _clearLeaveTimeout;
|
|
43
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatToastModalComponent, never>;
|
|
44
54
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatToastModalComponent, "cmat-toast-modal", ["cmatToastModal"], { "toast": { "alias": "toast"; "required": false; }; }, { "closeToastEvent": "closeToastEvent"; }, never, never, true, never>;
|
|
45
55
|
}
|
|
@@ -7,7 +7,7 @@ declare class CmatArrowCursorDirective implements AfterViewInit, OnDestroy {
|
|
|
7
7
|
enabled: boolean;
|
|
8
8
|
selector: string;
|
|
9
9
|
clickEvent: EventEmitter<string | null>;
|
|
10
|
-
cursorAnimationFrame:
|
|
10
|
+
cursorAnimationFrame: number | null;
|
|
11
11
|
isPhone: boolean;
|
|
12
12
|
arrowCursor: HTMLDivElement | null;
|
|
13
13
|
cursorClientX: number;
|
|
@@ -18,13 +18,18 @@ declare class CmatArrowCursorDirective implements AfterViewInit, OnDestroy {
|
|
|
18
18
|
private _document;
|
|
19
19
|
private _cmatMediaWatcherService;
|
|
20
20
|
private readonly _destroyRef;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
private _isCursorActive;
|
|
22
|
+
private readonly _boundMoveCursor;
|
|
23
|
+
onMouseEnter(event: MouseEvent): void;
|
|
24
|
+
onMouseLeave(event: MouseEvent): void;
|
|
25
|
+
onMouseOver(event: MouseEvent): void;
|
|
24
26
|
onClick(event: Event): void;
|
|
25
27
|
ngAfterViewInit(): void;
|
|
26
28
|
ngOnDestroy(): void;
|
|
27
29
|
moveCursor(): void;
|
|
30
|
+
private _startCursorLoop;
|
|
31
|
+
private _stopCursorLoop;
|
|
32
|
+
private _applyCursorRotation;
|
|
28
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatArrowCursorDirective, never>;
|
|
29
34
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatArrowCursorDirective, "[cmatArrowCursor]", never, { "animationDuration": { "alias": "animationDuration"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "selector": { "alias": "selector"; "required": false; }; }, { "clickEvent": "clickEvent"; }, never, never, true, never>;
|
|
30
35
|
}
|