@js-smart/ng-kit 20.6.2-beta.1 → 20.6.2
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/js-smart-ng-kit.mjs +2443 -0
- package/fesm2022/js-smart-ng-kit.mjs.map +1 -0
- package/index.d.ts +1100 -0
- package/package.json +13 -2
- package/eslint.config.js +0 -18
- package/karma.conf.js +0 -35
- package/ng-package.json +0 -11
- package/src/assets/app-buttons.css +0 -33
- package/src/assets/app-mat-snack-bar.css +0 -89
- package/src/assets/app-variables.css +0 -10
- package/src/assets/general.scss +0 -77
- package/src/assets/styles.scss +0 -5
- package/src/lib/components/alert/alert.component.html +0 -12
- package/src/lib/components/alert/alert.component.scss +0 -5
- package/src/lib/components/alert/alert.component.ts +0 -105
- package/src/lib/components/autocomplete/autocomplete.component.html +0 -42
- package/src/lib/components/autocomplete/autocomplete.component.ts +0 -207
- package/src/lib/components/buttons/base-button/base-button.component.html +0 -0
- package/src/lib/components/buttons/base-button/base-button.component.ts +0 -86
- package/src/lib/components/buttons/base-button/base-button.directive.ts +0 -87
- package/src/lib/components/buttons/bs-link-button/bs-link-button.component.ts +0 -37
- package/src/lib/components/buttons/bs-link-button/bs-link-button.directive.ts +0 -28
- package/src/lib/components/buttons/close-button/close-button.directive.ts +0 -12
- package/src/lib/components/buttons/delete-button/delete-button.component.ts +0 -42
- package/src/lib/components/buttons/delete-button/delete-button.directive.ts +0 -15
- package/src/lib/components/buttons/edit-bs-button/edit-bs-button.component.ts +0 -39
- package/src/lib/components/buttons/edit-bs-button/edit-bs-button.directive.ts +0 -37
- package/src/lib/components/buttons/edit-button/edit-button.component.ts +0 -37
- package/src/lib/components/buttons/edit-button/edit-button.directive.ts +0 -15
- package/src/lib/components/buttons/edit-svg-icon-button/edit-svg-icon-button.component.ts +0 -37
- package/src/lib/components/buttons/edit-svg-icon-button/edit-svg-icon-button.directive.ts +0 -39
- package/src/lib/components/buttons/excel-export-button/excel-export-button.component.ts +0 -23
- package/src/lib/components/buttons/excel-export-button/excel-export-button.directive.ts +0 -23
- package/src/lib/components/buttons/manage-button/manage-button.component.ts +0 -35
- package/src/lib/components/buttons/manage-button/manage-button.directive.ts +0 -15
- package/src/lib/components/buttons/pdf-export-button/pdf-export-button.component.ts +0 -20
- package/src/lib/components/buttons/pdf-export-button/pdf-export-button.directive.ts +0 -22
- package/src/lib/components/buttons/primary-button/primary-button.component.ts +0 -43
- package/src/lib/components/buttons/primary-button/primary-button.directive.ts +0 -16
- package/src/lib/components/buttons/save-primary-button/save-primary-button.component.ts +0 -43
- package/src/lib/components/buttons/save-primary-button/save-primary-button.directive.ts +0 -16
- package/src/lib/components/buttons/search-button/search-button.component.ts +0 -41
- package/src/lib/components/buttons/success-button/success-button.component.ts +0 -41
- package/src/lib/components/buttons/success-button/success-button.directive.ts +0 -15
- package/src/lib/components/buttons/view-button/view-button.component.ts +0 -32
- package/src/lib/components/buttons/view-button/view-button.directive.ts +0 -14
- package/src/lib/components/buttons/view-primary-button/view-primary-button.component.ts +0 -37
- package/src/lib/components/buttons/view-primary-button/view-primary-button.directive.ts +0 -15
- package/src/lib/components/confirm-dialog/confirm-dialog.component.ts +0 -56
- package/src/lib/components/ngx-spinner/ngx-spinner.component.css +0 -169
- package/src/lib/components/ngx-spinner/ngx-spinner.component.html +0 -24
- package/src/lib/components/ngx-spinner/ngx-spinner.component.spec.ts +0 -186
- package/src/lib/components/ngx-spinner/ngx-spinner.component.ts +0 -199
- package/src/lib/components/ngx-spinner/ngx-spinner.enum.ts +0 -45
- package/src/lib/components/ngx-spinner/ngx-spinner.service.ts +0 -66
- package/src/lib/components/ngx-spinner/safe-html.pipe.ts +0 -17
- package/src/lib/components/snack-bar/error-snack-bar/error-snack-bar.component.ts +0 -36
- package/src/lib/components/snack-bar/success-snack-bar/success-snack-bar.component.ts +0 -35
- package/src/lib/components/spinner/spinner.component.html +0 -11
- package/src/lib/components/spinner/spinner.component.scss +0 -18
- package/src/lib/components/spinner/spinner.component.ts +0 -31
- package/src/lib/directives/ngx-print/ngx-print.directive.ts +0 -281
- package/src/lib/directives/ngx-print/print-options.ts +0 -16
- package/src/lib/directives/prevent-multiple-clicks/prevent-multiple-clicks.directive.spec.ts +0 -99
- package/src/lib/directives/prevent-multiple-clicks/prevent-multiple-clicks.directive.ts +0 -36
- package/src/lib/services/mat-snack-bar.service.ts +0 -102
- package/src/lib/store/entity-store.spec.ts +0 -128
- package/src/lib/store/entity-store.ts +0 -88
- package/src/lib/store/store.spec.ts +0 -47
- package/src/lib/store/store.ts +0 -44
- package/src/lib/svg-icons/edit-solid-svg/edit-solid-svg.component.ts +0 -20
- package/src/lib/types/id-type.ts +0 -3
- package/src/lib/types/progress-state.ts +0 -7
- package/src/lib/util/progress-util.ts +0 -84
- package/src/public-api.ts +0 -64
- package/test.ts +0 -11
- package/tsconfig.lib.json +0 -12
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -10
package/index.d.ts
ADDED
|
@@ -0,0 +1,1100 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit, ChangeDetectorRef, OnDestroy, OnChanges, AfterContentChecked, ElementRef, SimpleChanges, ViewContainerRef, ComponentRef, WritableSignal } from '@angular/core';
|
|
3
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
4
|
+
import { ThemePalette, MatOptionSelectionChange } from '@angular/material/core';
|
|
5
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
6
|
+
import { MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
7
|
+
import { MatPaginator } from '@angular/material/paginator';
|
|
8
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
9
|
+
import { MatIconRegistry } from '@angular/material/icon';
|
|
10
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
11
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
12
|
+
import { MatSnackBar, MatSnackBarHorizontalPosition, MatSnackBarVerticalPosition } from '@angular/material/snack-bar';
|
|
13
|
+
|
|
14
|
+
interface ProgressState {
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
isSuccess: boolean;
|
|
17
|
+
isError: boolean;
|
|
18
|
+
isComplete?: boolean;
|
|
19
|
+
message: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
type AlertType = 'info' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'dark' | 'light';
|
|
23
|
+
/**
|
|
24
|
+
* Boostrap Alert component that can be used to alert messages to the user
|
|
25
|
+
*
|
|
26
|
+
* @author Pavan Kumar Jadda
|
|
27
|
+
* @since 12.0.0
|
|
28
|
+
*/
|
|
29
|
+
declare class AlertComponent implements OnInit {
|
|
30
|
+
cdr: ChangeDetectorRef;
|
|
31
|
+
/**
|
|
32
|
+
* Type of the BootStrap Alert. Following values are supported. See BootStrap docs for more information
|
|
33
|
+
*/
|
|
34
|
+
type: _angular_core.InputSignal<AlertType>;
|
|
35
|
+
/**
|
|
36
|
+
* Is alert visible or open
|
|
37
|
+
*/
|
|
38
|
+
isOpen: _angular_core.InputSignal<boolean>;
|
|
39
|
+
/**
|
|
40
|
+
* Writable signal for isOpen
|
|
41
|
+
*/
|
|
42
|
+
open: _angular_core.WritableSignal<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* If set, displays an inline “Close” button
|
|
45
|
+
*/
|
|
46
|
+
dismissible: _angular_core.InputSignal<boolean>;
|
|
47
|
+
/**
|
|
48
|
+
* If set, dismisses the alert after Dismiss Timeout
|
|
49
|
+
*/
|
|
50
|
+
dismissOnTimeout: _angular_core.InputSignal<boolean>;
|
|
51
|
+
/**
|
|
52
|
+
* Number in milliseconds, after which alert will be closed. Default value is 5000 ms
|
|
53
|
+
*/
|
|
54
|
+
dismissTimeout: _angular_core.InputSignal<number>;
|
|
55
|
+
/**
|
|
56
|
+
* Additional classes to be added to the alert. This can be used to add custom styles to the alert
|
|
57
|
+
*/
|
|
58
|
+
class: _angular_core.InputSignal<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Emits when the alert is closed.
|
|
61
|
+
*/
|
|
62
|
+
closed: _angular_core.OutputEmitterRef<void>;
|
|
63
|
+
constructor();
|
|
64
|
+
/**
|
|
65
|
+
* Initialize the component and settings
|
|
66
|
+
*
|
|
67
|
+
* @author Pavan Kumar Jadda
|
|
68
|
+
* @since 12.0.0
|
|
69
|
+
*/
|
|
70
|
+
ngOnInit(): void;
|
|
71
|
+
/**
|
|
72
|
+
* Closes BootStrap Alert if not open
|
|
73
|
+
*
|
|
74
|
+
* @author Pavan Kumar Jadda
|
|
75
|
+
* @since 12.0.0
|
|
76
|
+
*/
|
|
77
|
+
closeAlert(): void;
|
|
78
|
+
/**
|
|
79
|
+
* Opens Bootstrap Alert
|
|
80
|
+
*
|
|
81
|
+
* @author Pavan Kumar Jadda
|
|
82
|
+
* @since 12.0.0
|
|
83
|
+
*/
|
|
84
|
+
private openAlert;
|
|
85
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
86
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AlertComponent, "lib-alert, alert", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "dismissOnTimeout": { "alias": "dismissOnTimeout"; "required": false; "isSignal": true; }; "dismissTimeout": { "alias": "dismissTimeout"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
type Size = 'default' | 'small' | 'medium' | 'large';
|
|
90
|
+
interface Spinner {
|
|
91
|
+
bdColor?: string;
|
|
92
|
+
size?: Size;
|
|
93
|
+
color?: string;
|
|
94
|
+
type?: string;
|
|
95
|
+
fullScreen?: boolean;
|
|
96
|
+
zIndex?: number;
|
|
97
|
+
template?: string;
|
|
98
|
+
showSpinner?: boolean;
|
|
99
|
+
}
|
|
100
|
+
declare class NgxSpinner {
|
|
101
|
+
name?: string;
|
|
102
|
+
bdColor?: string;
|
|
103
|
+
size?: Size;
|
|
104
|
+
color?: string;
|
|
105
|
+
type?: string;
|
|
106
|
+
class?: string;
|
|
107
|
+
divCount?: number;
|
|
108
|
+
divArray?: number[];
|
|
109
|
+
fullScreen?: boolean;
|
|
110
|
+
show?: boolean;
|
|
111
|
+
zIndex?: number;
|
|
112
|
+
template?: string;
|
|
113
|
+
showSpinner?: boolean;
|
|
114
|
+
constructor(init?: Partial<NgxSpinner>);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
declare class NgxSpinnerService {
|
|
118
|
+
/**
|
|
119
|
+
* Spinner observable
|
|
120
|
+
*
|
|
121
|
+
* @memberof NgxSpinnerService
|
|
122
|
+
*/
|
|
123
|
+
spinnerObservable: BehaviorSubject<NgxSpinner | undefined>;
|
|
124
|
+
/**
|
|
125
|
+
* Creates an instance of NgxSpinnerService.
|
|
126
|
+
* @memberof NgxSpinnerService
|
|
127
|
+
*/
|
|
128
|
+
/**
|
|
129
|
+
* Get subscription of desired spinner
|
|
130
|
+
* @memberof NgxSpinnerService
|
|
131
|
+
**/
|
|
132
|
+
getSpinner(name: string): Observable<NgxSpinner>;
|
|
133
|
+
/**
|
|
134
|
+
* To show spinner
|
|
135
|
+
*
|
|
136
|
+
* @memberof NgxSpinnerService
|
|
137
|
+
*/
|
|
138
|
+
show(name?: string, spinner?: Spinner): Promise<unknown>;
|
|
139
|
+
/**
|
|
140
|
+
* To hide spinner
|
|
141
|
+
*
|
|
142
|
+
* @memberof NgxSpinnerService
|
|
143
|
+
*/
|
|
144
|
+
hide(name?: string, debounce?: number): Promise<unknown>;
|
|
145
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxSpinnerService, never>;
|
|
146
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NgxSpinnerService>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
declare class NgxSpinnerComponent implements OnDestroy, OnInit {
|
|
150
|
+
private readonly spinnerService;
|
|
151
|
+
private readonly changeDetector;
|
|
152
|
+
/**
|
|
153
|
+
* To set backdrop color
|
|
154
|
+
* Only supports RGBA color format
|
|
155
|
+
*/
|
|
156
|
+
bdColor: _angular_core.InputSignal<string>;
|
|
157
|
+
/**
|
|
158
|
+
* To set spinner size
|
|
159
|
+
*/
|
|
160
|
+
size: _angular_core.InputSignal<Size>;
|
|
161
|
+
/**
|
|
162
|
+
* To set spinner color(DEFAULTS.SPINNER_COLOR)
|
|
163
|
+
*/
|
|
164
|
+
color: _angular_core.InputSignal<string>;
|
|
165
|
+
/**
|
|
166
|
+
* To set type of spinner
|
|
167
|
+
*/
|
|
168
|
+
type: _angular_core.InputSignal<string>;
|
|
169
|
+
/**
|
|
170
|
+
* To toggle fullscreen mode
|
|
171
|
+
*/
|
|
172
|
+
fullScreen: _angular_core.InputSignal<boolean>;
|
|
173
|
+
/**
|
|
174
|
+
* Spinner name
|
|
175
|
+
*/
|
|
176
|
+
name: _angular_core.InputSignal<string>;
|
|
177
|
+
/**
|
|
178
|
+
* z-index value
|
|
179
|
+
*/
|
|
180
|
+
zIndex: _angular_core.InputSignal<number>;
|
|
181
|
+
/**
|
|
182
|
+
* Custom template for spinner/loader
|
|
183
|
+
*/
|
|
184
|
+
template: _angular_core.InputSignal<string>;
|
|
185
|
+
/**
|
|
186
|
+
* Show/Hide the spinner
|
|
187
|
+
*/
|
|
188
|
+
showSpinner: _angular_core.InputSignal<boolean>;
|
|
189
|
+
/**
|
|
190
|
+
* To enable/disable animation
|
|
191
|
+
*/
|
|
192
|
+
disableAnimation: _angular_core.InputSignal<boolean>;
|
|
193
|
+
/**
|
|
194
|
+
* Spinner Object
|
|
195
|
+
*/
|
|
196
|
+
spinner: NgxSpinner;
|
|
197
|
+
/**
|
|
198
|
+
* Array for spinner's div
|
|
199
|
+
*/
|
|
200
|
+
divArray: number[];
|
|
201
|
+
/**
|
|
202
|
+
* Counter for div
|
|
203
|
+
*/
|
|
204
|
+
divCount: number;
|
|
205
|
+
/**
|
|
206
|
+
* Show spinner
|
|
207
|
+
**/
|
|
208
|
+
show: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Unsubscribe from spinner's observable
|
|
211
|
+
**/
|
|
212
|
+
ngUnsubscribe: Subject<void>;
|
|
213
|
+
/**
|
|
214
|
+
* Element Reference
|
|
215
|
+
*/
|
|
216
|
+
spinnerDOM: any;
|
|
217
|
+
/**
|
|
218
|
+
* Creates an instance of NgxSpinnerComponent.
|
|
219
|
+
*/
|
|
220
|
+
constructor(spinnerService: NgxSpinnerService, changeDetector: ChangeDetectorRef);
|
|
221
|
+
handleKeyboardEvent(event: KeyboardEvent): void;
|
|
222
|
+
/**
|
|
223
|
+
* Initialization method
|
|
224
|
+
*/
|
|
225
|
+
ngOnInit(): void;
|
|
226
|
+
/**
|
|
227
|
+
* To set default ngx-spinner options
|
|
228
|
+
*/
|
|
229
|
+
setDefaultOptions: () => void;
|
|
230
|
+
/**
|
|
231
|
+
* To get class for spinner
|
|
232
|
+
*/
|
|
233
|
+
getClass(type: string, size: Size): string;
|
|
234
|
+
/**
|
|
235
|
+
* Check if input variables have changed
|
|
236
|
+
*/
|
|
237
|
+
onInputChange(): void;
|
|
238
|
+
/**
|
|
239
|
+
* Component destroy event
|
|
240
|
+
*/
|
|
241
|
+
ngOnDestroy(): void;
|
|
242
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxSpinnerComponent, never>;
|
|
243
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxSpinnerComponent, "ngx-spinner", never, { "bdColor": { "alias": "bdColor"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "fullScreen": { "alias": "fullScreen"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "zIndex": { "alias": "zIndex"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; "showSpinner": { "alias": "showSpinner"; "required": false; "isSignal": true; }; "disableAnimation": { "alias": "disableAnimation"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
declare class SpinnerComponent {
|
|
247
|
+
/**
|
|
248
|
+
* Use Boostrap Spinner. Default `true`
|
|
249
|
+
*/
|
|
250
|
+
bootstrapSpinner: _angular_core.InputSignal<boolean>;
|
|
251
|
+
/**
|
|
252
|
+
* Diameter of the Angular Material spinner
|
|
253
|
+
*/
|
|
254
|
+
diameter: _angular_core.InputSignal<number>;
|
|
255
|
+
/**
|
|
256
|
+
* Color of the Angular Material spinner
|
|
257
|
+
*/
|
|
258
|
+
color: _angular_core.InputSignal<ThemePalette>;
|
|
259
|
+
/**
|
|
260
|
+
* Stroke Width of the Angular Material spinner
|
|
261
|
+
*/
|
|
262
|
+
strokeWidth: _angular_core.InputSignal<number>;
|
|
263
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpinnerComponent, never>;
|
|
264
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpinnerComponent, "spinner,lib-spinner", never, { "bootstrapSpinner": { "alias": "bootstrapSpinner"; "required": false; "isSignal": true; }; "diameter": { "alias": "diameter"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Reusable Auto Complete component that extends MatAutoComplete to show Clear icon and Arrow buttons
|
|
269
|
+
*
|
|
270
|
+
* @author Pavan Kumar Jadda
|
|
271
|
+
* @since 12.0.0
|
|
272
|
+
*/
|
|
273
|
+
declare class AutocompleteComponent implements OnInit, OnChanges, AfterContentChecked, ControlValueAccessor {
|
|
274
|
+
/**
|
|
275
|
+
* Gets reference inputAutoComplete HTML attribute
|
|
276
|
+
*/
|
|
277
|
+
inputAutoComplete: ElementRef;
|
|
278
|
+
cdRef: ChangeDetectorRef;
|
|
279
|
+
/**
|
|
280
|
+
* Internal form control for the autocomplete
|
|
281
|
+
*/
|
|
282
|
+
control: FormControl<string | null>;
|
|
283
|
+
/**
|
|
284
|
+
* Label of the AutoComplete
|
|
285
|
+
*/
|
|
286
|
+
label: _angular_core.InputSignal<string>;
|
|
287
|
+
/**
|
|
288
|
+
* Placeholder of the AutoComplete
|
|
289
|
+
*/
|
|
290
|
+
placeHolder: _angular_core.InputSignal<string>;
|
|
291
|
+
/**
|
|
292
|
+
* Appearance of the AutoComplete, defaults to `fill`
|
|
293
|
+
*/
|
|
294
|
+
appearance: _angular_core.InputSignal<string>;
|
|
295
|
+
/**
|
|
296
|
+
* List of CSS classes that need to applied to autocomplete
|
|
297
|
+
*/
|
|
298
|
+
classes: _angular_core.InputSignal<string>;
|
|
299
|
+
/**
|
|
300
|
+
* Attribute of the Object whose value would be shown when searching for data. Defaults to `ID`
|
|
301
|
+
*/
|
|
302
|
+
bindLabel: _angular_core.InputSignal<string>;
|
|
303
|
+
/**
|
|
304
|
+
* Attribute of the Object whose value would be used for search
|
|
305
|
+
*/
|
|
306
|
+
bindValue: _angular_core.InputSignal<string>;
|
|
307
|
+
/**
|
|
308
|
+
* Function that maps an option's control value to its display value in the trigger.
|
|
309
|
+
*/
|
|
310
|
+
displayWith: ((value: any) => string) | null;
|
|
311
|
+
/**
|
|
312
|
+
* Specifies if the autocomplete is required. Default is not required.
|
|
313
|
+
*/
|
|
314
|
+
required: _angular_core.InputSignal<boolean>;
|
|
315
|
+
/**
|
|
316
|
+
* Specifies if the autocomplete is disabled. Default is not required.
|
|
317
|
+
*/
|
|
318
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
319
|
+
/**
|
|
320
|
+
* List of Objects that need to be bind and searched for
|
|
321
|
+
*/
|
|
322
|
+
data: _angular_core.InputSignal<any[] | string[] | undefined>;
|
|
323
|
+
/**
|
|
324
|
+
* Emit selected value on selection changes
|
|
325
|
+
*/
|
|
326
|
+
onSelectionChange: _angular_core.OutputEmitterRef<any>;
|
|
327
|
+
/**
|
|
328
|
+
* BehaviorSubject that shows the current active arrow icon
|
|
329
|
+
*/
|
|
330
|
+
arrowIconSubject: BehaviorSubject<string>;
|
|
331
|
+
/**
|
|
332
|
+
* Filtered options when user types
|
|
333
|
+
*/
|
|
334
|
+
filteredOptions: Observable<any[] | undefined> | undefined;
|
|
335
|
+
writeValue(value: any): void;
|
|
336
|
+
registerOnChange(fn: any): void;
|
|
337
|
+
registerOnTouched(fn: any): void;
|
|
338
|
+
setDisabledState(isDisabled: boolean): void;
|
|
339
|
+
ngAfterContentChecked(): void;
|
|
340
|
+
ngOnInit(): void;
|
|
341
|
+
ngOnChanges(_changes: SimpleChanges): void;
|
|
342
|
+
clearInput(evt: any): void;
|
|
343
|
+
openOrClosePanel(evt: any, trigger: MatAutocompleteTrigger): void;
|
|
344
|
+
displayFn(object: any): string;
|
|
345
|
+
emitSelectedValue($event: MatOptionSelectionChange): void;
|
|
346
|
+
private onChange;
|
|
347
|
+
private onTouched;
|
|
348
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
|
|
349
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AutocompleteComponent, "autocomplete, lib-autocomplete", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeHolder": { "alias": "placeHolder"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; "bindLabel": { "alias": "bindLabel"; "required": false; "isSignal": true; }; "bindValue": { "alias": "bindValue"; "required": false; "isSignal": true; }; "displayWith": { "alias": "displayWith"; "required": false; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; }, { "onSelectionChange": "onSelectionChange"; }, never, never, true, never>;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
declare class PrintOptions {
|
|
353
|
+
printSectionId: string;
|
|
354
|
+
printTitle: string;
|
|
355
|
+
useExistingCss: boolean;
|
|
356
|
+
bodyClass: string;
|
|
357
|
+
openNewTab: boolean;
|
|
358
|
+
previewOnly: boolean;
|
|
359
|
+
closeWindow: boolean;
|
|
360
|
+
printDelay: number;
|
|
361
|
+
constructor(options?: Partial<PrintOptions>);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Reusable Angular directory that prints given contents of HTML element
|
|
366
|
+
*
|
|
367
|
+
* @since 12.0.0
|
|
368
|
+
* @author Pavan Kumar Jadda
|
|
369
|
+
*/
|
|
370
|
+
declare class NgxPrintDirective<T = unknown> {
|
|
371
|
+
document: Document;
|
|
372
|
+
/**
|
|
373
|
+
* ID of the HTML element those contents need to be printed
|
|
374
|
+
*
|
|
375
|
+
* @since 12.0.0
|
|
376
|
+
* @author Pavan Kumar Jadda
|
|
377
|
+
*/
|
|
378
|
+
printSectionId: string | undefined;
|
|
379
|
+
/**
|
|
380
|
+
* Title of the HTML element those contents need to be printed
|
|
381
|
+
*
|
|
382
|
+
* @since 12.0.0
|
|
383
|
+
* @author Pavan Kumar Jadda
|
|
384
|
+
*/
|
|
385
|
+
printTitle: string | undefined;
|
|
386
|
+
/**
|
|
387
|
+
* If `true`, uses CSS of HTMl element, otherwise no CSS applied
|
|
388
|
+
*
|
|
389
|
+
* @since 12.0.0
|
|
390
|
+
* @author Pavan Kumar Jadda
|
|
391
|
+
*/
|
|
392
|
+
useExistingCss: boolean;
|
|
393
|
+
/**
|
|
394
|
+
* A delay in milliseconds to force the print dialog to wait before opened. Default: 0
|
|
395
|
+
*
|
|
396
|
+
* @since 12.0.0
|
|
397
|
+
* @author Pavan Kumar Jadda
|
|
398
|
+
*/
|
|
399
|
+
printDelay: number;
|
|
400
|
+
/**
|
|
401
|
+
* Instance of the Mat Table Data Source
|
|
402
|
+
*
|
|
403
|
+
* @since 12.0.0
|
|
404
|
+
* @author Pavan Kumar Jadda
|
|
405
|
+
*/
|
|
406
|
+
matTableDataSource: MatTableDataSource<T>;
|
|
407
|
+
/**
|
|
408
|
+
* Instance of the Mat Paginator
|
|
409
|
+
*
|
|
410
|
+
* @since 12.0.0
|
|
411
|
+
* @author Pavan Kumar Jadda
|
|
412
|
+
*/
|
|
413
|
+
paginator: MatPaginator;
|
|
414
|
+
/**
|
|
415
|
+
* ID of the Mat Paginator
|
|
416
|
+
*
|
|
417
|
+
* @since 12.0.0
|
|
418
|
+
* @author Pavan Kumar Jadda
|
|
419
|
+
*/
|
|
420
|
+
paginatorId: string;
|
|
421
|
+
/**
|
|
422
|
+
* HTML tag ID of the Mat-Table Input Filter
|
|
423
|
+
*
|
|
424
|
+
* @since 12.0.0
|
|
425
|
+
* @author Pavan Kumar Jadda
|
|
426
|
+
*/
|
|
427
|
+
inputFilterId: string;
|
|
428
|
+
/**
|
|
429
|
+
* If `true`, referenced table is Mat-Table
|
|
430
|
+
*
|
|
431
|
+
* @since 12.0.0
|
|
432
|
+
* @author Pavan Kumar Jadda
|
|
433
|
+
*/
|
|
434
|
+
isMatTable: boolean;
|
|
435
|
+
/**
|
|
436
|
+
* If `true` Mat-Table paginator will be hidden
|
|
437
|
+
*
|
|
438
|
+
* @since 12.0.0
|
|
439
|
+
* @author Pavan Kumar Jadda
|
|
440
|
+
*/
|
|
441
|
+
hideMatTablePaginator: boolean;
|
|
442
|
+
printStyleArray: string[];
|
|
443
|
+
printOptions: PrintOptions;
|
|
444
|
+
/**
|
|
445
|
+
* List of Style sheet files
|
|
446
|
+
*
|
|
447
|
+
* @since 12.0.0
|
|
448
|
+
* @author Pavan Kumar Jadda
|
|
449
|
+
*/
|
|
450
|
+
private styleSheetFileArray;
|
|
451
|
+
/**
|
|
452
|
+
* Prevents the print dialog from opening on the window
|
|
453
|
+
*
|
|
454
|
+
* @memberof NgxPrintDirective
|
|
455
|
+
*/
|
|
456
|
+
set previewOnly(value: boolean);
|
|
457
|
+
/**
|
|
458
|
+
* List of CSS properties that needs to be applied while printing the document
|
|
459
|
+
*
|
|
460
|
+
* @since 12.0.0
|
|
461
|
+
* @author Pavan Kumar Jadda
|
|
462
|
+
*/
|
|
463
|
+
set printStyle({ values }: PrintStyleParams);
|
|
464
|
+
/**
|
|
465
|
+
* Sets given style sheet files to print document
|
|
466
|
+
*
|
|
467
|
+
* @param cssList Comma separated value of CSS file names
|
|
468
|
+
*
|
|
469
|
+
* @since 12.0.0
|
|
470
|
+
* @author Pavan Kumar Jadda
|
|
471
|
+
*/
|
|
472
|
+
set styleSheetFile(cssList: string);
|
|
473
|
+
/**
|
|
474
|
+
* Build link HTMl tag based on given file name
|
|
475
|
+
*
|
|
476
|
+
* @since 12.0.0
|
|
477
|
+
* @author Pavan Kumar Jadda
|
|
478
|
+
*/
|
|
479
|
+
private static linkTagFn;
|
|
480
|
+
/**
|
|
481
|
+
* Gets HTML element by tag name
|
|
482
|
+
*
|
|
483
|
+
* @since 12.0.0
|
|
484
|
+
* @author Pavan Kumar Jadda
|
|
485
|
+
*/
|
|
486
|
+
private static getElementTag;
|
|
487
|
+
/**
|
|
488
|
+
* Print the element upon clicking the button
|
|
489
|
+
*
|
|
490
|
+
* @since 12.0.0
|
|
491
|
+
* @author Pavan Kumar Jadda
|
|
492
|
+
*/
|
|
493
|
+
print(): void;
|
|
494
|
+
/**
|
|
495
|
+
* Hide Mat Paginator before Printing
|
|
496
|
+
*
|
|
497
|
+
* @since 12.0.1
|
|
498
|
+
* @author Pavan Kumar Jadda
|
|
499
|
+
*/
|
|
500
|
+
private hideMatPaginatorBeforePrinting;
|
|
501
|
+
/**
|
|
502
|
+
* Show Mat Paginator after Printing
|
|
503
|
+
*
|
|
504
|
+
* @since 12.0.1
|
|
505
|
+
* @author Pavan Kumar Jadda
|
|
506
|
+
*/
|
|
507
|
+
private showMatPaginatorAfterPrinting;
|
|
508
|
+
/**
|
|
509
|
+
* @returns the string that create the stylesheet which will be injected later within <style></style> tag. Join/replace to transform an array objects to css-styled string
|
|
510
|
+
*
|
|
511
|
+
* @since 12.0.0
|
|
512
|
+
* @author Pavan Kumar Jadda
|
|
513
|
+
*/
|
|
514
|
+
private returnStyleValues;
|
|
515
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxPrintDirective<any>, never>;
|
|
516
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgxPrintDirective<any>, "button[ngxPrint], button[print]", never, { "printSectionId": { "alias": "printSectionId"; "required": false; }; "printTitle": { "alias": "printTitle"; "required": false; }; "useExistingCss": { "alias": "useExistingCss"; "required": false; }; "printDelay": { "alias": "printDelay"; "required": false; }; "matTableDataSource": { "alias": "matTableDataSource"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "paginatorId": { "alias": "paginatorId"; "required": false; }; "inputFilterId": { "alias": "inputFilterId"; "required": false; }; "isMatTable": { "alias": "isMatTable"; "required": false; }; "hideMatTablePaginator": { "alias": "hideMatTablePaginator"; "required": false; }; "previewOnly": { "alias": "previewOnly"; "required": false; }; "printStyle": { "alias": "printStyle"; "required": false; }; "styleSheetFile": { "alias": "styleSheetFile"; "required": false; }; }, {}, never, never, true, never>;
|
|
517
|
+
}
|
|
518
|
+
interface PrintStyleParams {
|
|
519
|
+
values: Record<string, Record<string, string>>;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
declare class PreventMultipleClicksDirective implements OnInit, OnDestroy {
|
|
523
|
+
throttleTime: _angular_core.InputSignal<number>;
|
|
524
|
+
throttleClick: _angular_core.OutputEmitterRef<Event>;
|
|
525
|
+
private readonly clicks;
|
|
526
|
+
private subscription;
|
|
527
|
+
/**
|
|
528
|
+
* Intercepts click event and stops default navigation. After first click set {@link throttleTime} to 2000 to prevent duplicate clicks
|
|
529
|
+
*
|
|
530
|
+
* @param event DOM event
|
|
531
|
+
*
|
|
532
|
+
* @author Pavan Kumar Jadda
|
|
533
|
+
* @since 2.3.27
|
|
534
|
+
*/
|
|
535
|
+
clickEvent(event: Event): void;
|
|
536
|
+
ngOnInit(): void;
|
|
537
|
+
ngOnDestroy(): void;
|
|
538
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PreventMultipleClicksDirective, never>;
|
|
539
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PreventMultipleClicksDirective, "[preventMultipleClicks]", never, { "throttleTime": { "alias": "throttleTime"; "required": false; "isSignal": true; }; }, { "throttleClick": "throttleClick"; }, never, never, true, never>;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
declare abstract class BaseButtonDirective implements OnInit {
|
|
543
|
+
icon: _angular_core.InputSignal<string>;
|
|
544
|
+
loadingLabel: _angular_core.InputSignal<string>;
|
|
545
|
+
loading: _angular_core.InputSignal<boolean>;
|
|
546
|
+
elementRef: ElementRef<any>;
|
|
547
|
+
document: Document;
|
|
548
|
+
protected originalText: _angular_core.WritableSignal<string>;
|
|
549
|
+
protected iconSpan: _angular_core.WritableSignal<HTMLElement | null>;
|
|
550
|
+
constructor();
|
|
551
|
+
ngOnInit(): void;
|
|
552
|
+
/**
|
|
553
|
+
* Create icon element if icon name is provided
|
|
554
|
+
*/
|
|
555
|
+
protected createIcon(): void;
|
|
556
|
+
/**
|
|
557
|
+
* Update content of the button
|
|
558
|
+
*/
|
|
559
|
+
protected updateContent(): void;
|
|
560
|
+
/**
|
|
561
|
+
* Show loading state. Add spinner and loadingLabel text
|
|
562
|
+
*/
|
|
563
|
+
protected showLoadingState(element: HTMLElement): void;
|
|
564
|
+
/**
|
|
565
|
+
* Show normal state. Add icon and original text
|
|
566
|
+
*/
|
|
567
|
+
protected showNormalState(element: HTMLElement): void;
|
|
568
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseButtonDirective, never>;
|
|
569
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseButtonDirective, never, never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
declare class BaseButtonComponent {
|
|
573
|
+
/**
|
|
574
|
+
* Is search in progress and loading the data
|
|
575
|
+
*/
|
|
576
|
+
loading: _angular_core.InputSignalWithTransform<boolean, boolean | undefined>;
|
|
577
|
+
/**
|
|
578
|
+
* Is button disabled
|
|
579
|
+
*/
|
|
580
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
581
|
+
/**
|
|
582
|
+
* Type of the button. Following values are supported. See BootStrap docs for more information
|
|
583
|
+
* <pre>
|
|
584
|
+
* 1. button
|
|
585
|
+
* 2. submit
|
|
586
|
+
* </pre>
|
|
587
|
+
*/
|
|
588
|
+
type: _angular_core.InputSignal<string>;
|
|
589
|
+
/**
|
|
590
|
+
* If set, shows when action in Progress
|
|
591
|
+
*/
|
|
592
|
+
loadingLabel: _angular_core.InputSignal<string>;
|
|
593
|
+
/**
|
|
594
|
+
* If set, shows when Delete is not in progress
|
|
595
|
+
*/
|
|
596
|
+
label: _angular_core.InputSignal<string>;
|
|
597
|
+
/**
|
|
598
|
+
* If set, shows the icon. Otherwise, shows delete icon
|
|
599
|
+
*/
|
|
600
|
+
icon: _angular_core.InputSignal<string>;
|
|
601
|
+
/**
|
|
602
|
+
* If set, shows material icon otherwise hides the icons
|
|
603
|
+
*/
|
|
604
|
+
showIcon: _angular_core.InputSignal<boolean>;
|
|
605
|
+
/**
|
|
606
|
+
* If set, sets the style of the button
|
|
607
|
+
*/
|
|
608
|
+
style: _angular_core.InputSignal<any>;
|
|
609
|
+
/**
|
|
610
|
+
* If set, sets the class of the button
|
|
611
|
+
*/
|
|
612
|
+
classes: _angular_core.InputSignal<string>;
|
|
613
|
+
/**
|
|
614
|
+
* If set, sets the data-cy attribute for the button
|
|
615
|
+
*/
|
|
616
|
+
dataCy: _angular_core.InputSignal<string>;
|
|
617
|
+
/**
|
|
618
|
+
* Output event when button is clicked
|
|
619
|
+
*/
|
|
620
|
+
onClick: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
621
|
+
/**
|
|
622
|
+
* Output event when button is focused
|
|
623
|
+
*/
|
|
624
|
+
onFocus: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
625
|
+
/**
|
|
626
|
+
* Output event when button is blurred
|
|
627
|
+
*/
|
|
628
|
+
onBlur: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
629
|
+
/**
|
|
630
|
+
* Output event when key is pressed
|
|
631
|
+
*/
|
|
632
|
+
onKeyDown: _angular_core.OutputEmitterRef<KeyboardEvent>;
|
|
633
|
+
/**
|
|
634
|
+
* Output event when key is up
|
|
635
|
+
*/
|
|
636
|
+
onKeyUp: _angular_core.OutputEmitterRef<KeyboardEvent>;
|
|
637
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseButtonComponent, never>;
|
|
638
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseButtonComponent, "ng-component", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; "dataCy": { "alias": "dataCy"; "required": false; "isSignal": true; }; }, { "onClick": "onClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onKeyDown": "onKeyDown"; "onKeyUp": "onKeyUp"; }, never, never, true, never>;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
declare class BsLinkButtonComponent extends BaseButtonComponent {
|
|
642
|
+
label: _angular_core.InputSignal<string>;
|
|
643
|
+
icon: _angular_core.InputSignal<string>;
|
|
644
|
+
classes: _angular_core.InputSignal<string>;
|
|
645
|
+
constructor();
|
|
646
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsLinkButtonComponent, never>;
|
|
647
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsLinkButtonComponent, "bs-link-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
declare class BsLinkButtonDirective {
|
|
651
|
+
icon: _angular_core.InputSignal<string>;
|
|
652
|
+
elementRef: ElementRef<any>;
|
|
653
|
+
document: Document;
|
|
654
|
+
constructor();
|
|
655
|
+
private updateContent;
|
|
656
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsLinkButtonDirective, never>;
|
|
657
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsLinkButtonDirective, "[bsLinkButton]", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
declare class CloseButtonDirective {
|
|
661
|
+
elementRef: ElementRef<any>;
|
|
662
|
+
constructor();
|
|
663
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CloseButtonDirective, never>;
|
|
664
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CloseButtonDirective, "[closeButton]", never, {}, {}, never, never, true, never>;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
declare class DeleteButtonComponent extends BaseButtonComponent {
|
|
668
|
+
loadingLabel: _angular_core.InputSignal<string>;
|
|
669
|
+
label: _angular_core.InputSignal<string>;
|
|
670
|
+
icon: _angular_core.InputSignal<string>;
|
|
671
|
+
classes: _angular_core.InputSignal<string>;
|
|
672
|
+
constructor();
|
|
673
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DeleteButtonComponent, never>;
|
|
674
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DeleteButtonComponent, "delete-button", never, { "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
declare class DeleteButtonDirective extends BaseButtonDirective {
|
|
678
|
+
icon: _angular_core.InputSignal<string>;
|
|
679
|
+
loadingLabel: _angular_core.InputSignal<string>;
|
|
680
|
+
constructor();
|
|
681
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DeleteButtonDirective, never>;
|
|
682
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DeleteButtonDirective, "[deleteButton]", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
declare class EditBsButtonComponent extends BaseButtonComponent {
|
|
686
|
+
label: _angular_core.InputSignal<string>;
|
|
687
|
+
classes: _angular_core.InputSignal<string>;
|
|
688
|
+
constructor();
|
|
689
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditBsButtonComponent, never>;
|
|
690
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EditBsButtonComponent, "edit-bs-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
declare class EditSolidSvgComponent {
|
|
694
|
+
constructor(iconRegistry: MatIconRegistry, sanitizer: DomSanitizer);
|
|
695
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditSolidSvgComponent, never>;
|
|
696
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EditSolidSvgComponent, "edit-solid-svg", never, {}, {}, never, never, true, never>;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
declare class EditBsButtonDirective implements OnInit {
|
|
700
|
+
elementRef: ElementRef<any>;
|
|
701
|
+
viewContainerRef: ViewContainerRef;
|
|
702
|
+
document: Document;
|
|
703
|
+
protected originalText: _angular_core.WritableSignal<string>;
|
|
704
|
+
protected iconComponentRef: _angular_core.WritableSignal<ComponentRef<EditSolidSvgComponent> | null>;
|
|
705
|
+
ngOnInit(): void;
|
|
706
|
+
private updateContent;
|
|
707
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditBsButtonDirective, never>;
|
|
708
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EditBsButtonDirective, "[editBsButton]", never, {}, {}, never, never, true, never>;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
declare class EditButtonComponent extends BaseButtonComponent {
|
|
712
|
+
label: _angular_core.InputSignal<string>;
|
|
713
|
+
icon: _angular_core.InputSignal<string>;
|
|
714
|
+
classes: _angular_core.InputSignal<string>;
|
|
715
|
+
constructor();
|
|
716
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditButtonComponent, never>;
|
|
717
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EditButtonComponent, "edit-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
declare class EditButtonDirective extends BaseButtonDirective {
|
|
721
|
+
icon: _angular_core.InputSignal<string>;
|
|
722
|
+
loadingLabel: _angular_core.InputSignal<string>;
|
|
723
|
+
constructor();
|
|
724
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditButtonDirective, never>;
|
|
725
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EditButtonDirective, "[editButton]", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
declare class EditSvgIconButtonComponent extends BaseButtonComponent {
|
|
729
|
+
label: _angular_core.InputSignal<string>;
|
|
730
|
+
icon: _angular_core.InputSignal<string>;
|
|
731
|
+
classes: _angular_core.InputSignal<string>;
|
|
732
|
+
constructor();
|
|
733
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditSvgIconButtonComponent, never>;
|
|
734
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EditSvgIconButtonComponent, "edit-svg-icon-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
declare class EditSvgIconButtonDirective implements OnInit {
|
|
738
|
+
elementRef: ElementRef<any>;
|
|
739
|
+
viewContainerRef: ViewContainerRef;
|
|
740
|
+
document: Document;
|
|
741
|
+
protected originalText: _angular_core.WritableSignal<string>;
|
|
742
|
+
protected iconComponentRef: _angular_core.WritableSignal<ComponentRef<EditSolidSvgComponent> | null>;
|
|
743
|
+
ngOnInit(): void;
|
|
744
|
+
private updateContent;
|
|
745
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditSvgIconButtonDirective, never>;
|
|
746
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EditSvgIconButtonDirective, "[editSvgIconButton]", never, {}, {}, never, never, true, never>;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
declare class ExcelExportButtonComponent {
|
|
750
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ExcelExportButtonComponent, never>;
|
|
751
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ExcelExportButtonComponent, "excel-export-button", never, {}, {}, never, never, true, never>;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
declare class ExcelExportButtonDirective extends BaseButtonDirective {
|
|
755
|
+
constructor();
|
|
756
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ExcelExportButtonDirective, never>;
|
|
757
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ExcelExportButtonDirective, "[excelExportButton]", never, {}, {}, never, never, true, never>;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
declare class ManageButtonComponent extends BaseButtonComponent {
|
|
761
|
+
label: _angular_core.InputSignal<string>;
|
|
762
|
+
icon: _angular_core.InputSignal<string>;
|
|
763
|
+
classes: _angular_core.InputSignal<string>;
|
|
764
|
+
constructor();
|
|
765
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ManageButtonComponent, never>;
|
|
766
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManageButtonComponent, "manage-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
declare class ManageButtonDirective extends BaseButtonDirective {
|
|
770
|
+
icon: _angular_core.InputSignal<string>;
|
|
771
|
+
constructor();
|
|
772
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ManageButtonDirective, never>;
|
|
773
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ManageButtonDirective, "[manageButton]", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
declare class PdfExportButtonComponent {
|
|
777
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PdfExportButtonComponent, never>;
|
|
778
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PdfExportButtonComponent, "pdf-export-button", never, {}, {}, never, never, true, never>;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
declare class PdfExportButtonDirective extends BaseButtonDirective {
|
|
782
|
+
constructor();
|
|
783
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PdfExportButtonDirective, never>;
|
|
784
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PdfExportButtonDirective, "[pdfExportButton]", never, {}, {}, never, never, true, never>;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
declare class PrimaryButtonComponent extends BaseButtonComponent {
|
|
788
|
+
loadingLabel: _angular_core.InputSignal<string>;
|
|
789
|
+
label: _angular_core.InputSignal<string>;
|
|
790
|
+
icon: _angular_core.InputSignal<string>;
|
|
791
|
+
showIcon: _angular_core.InputSignal<boolean>;
|
|
792
|
+
classes: _angular_core.InputSignal<string>;
|
|
793
|
+
constructor();
|
|
794
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PrimaryButtonComponent, never>;
|
|
795
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PrimaryButtonComponent, "primary-button", never, { "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
declare class PrimaryButtonDirective extends BaseButtonDirective {
|
|
799
|
+
icon: _angular_core.InputSignal<string>;
|
|
800
|
+
loadingLabel: _angular_core.InputSignal<string>;
|
|
801
|
+
constructor();
|
|
802
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PrimaryButtonDirective, never>;
|
|
803
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PrimaryButtonDirective, "[primaryButton]", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
declare class SavePrimaryButtonComponent extends BaseButtonComponent {
|
|
807
|
+
loadingLabel: _angular_core.InputSignal<string>;
|
|
808
|
+
label: _angular_core.InputSignal<string>;
|
|
809
|
+
icon: _angular_core.InputSignal<string>;
|
|
810
|
+
classes: _angular_core.InputSignal<string>;
|
|
811
|
+
constructor();
|
|
812
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SavePrimaryButtonComponent, never>;
|
|
813
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SavePrimaryButtonComponent, "save-primary-button", never, { "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
declare class SavePrimaryButtonDirective extends BaseButtonDirective {
|
|
817
|
+
icon: _angular_core.InputSignal<string>;
|
|
818
|
+
loadingLabel: _angular_core.InputSignal<string>;
|
|
819
|
+
constructor();
|
|
820
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SavePrimaryButtonDirective, never>;
|
|
821
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SavePrimaryButtonDirective, "[savePrimaryButton]", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
declare class SearchButtonComponent extends BaseButtonComponent {
|
|
825
|
+
loadingLabel: _angular_core.InputSignal<string>;
|
|
826
|
+
label: _angular_core.InputSignal<string>;
|
|
827
|
+
icon: _angular_core.InputSignal<string>;
|
|
828
|
+
classes: _angular_core.InputSignal<string>;
|
|
829
|
+
constructor();
|
|
830
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SearchButtonComponent, never>;
|
|
831
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SearchButtonComponent, "search-button", never, { "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
declare class SuccessButtonComponent extends BaseButtonComponent {
|
|
835
|
+
loadingLabel: _angular_core.InputSignal<string>;
|
|
836
|
+
label: _angular_core.InputSignal<string>;
|
|
837
|
+
icon: _angular_core.InputSignal<string>;
|
|
838
|
+
classes: _angular_core.InputSignal<string>;
|
|
839
|
+
constructor();
|
|
840
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SuccessButtonComponent, never>;
|
|
841
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SuccessButtonComponent, "success-button", never, { "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
declare class SuccessButtonDirective extends BaseButtonDirective {
|
|
845
|
+
icon: _angular_core.InputSignal<string>;
|
|
846
|
+
loadingLabel: _angular_core.InputSignal<string>;
|
|
847
|
+
constructor();
|
|
848
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SuccessButtonDirective, never>;
|
|
849
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SuccessButtonDirective, "[successButton]", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
declare class ViewButtonComponent extends BaseButtonComponent {
|
|
853
|
+
label: _angular_core.InputSignal<string>;
|
|
854
|
+
icon: _angular_core.InputSignal<string>;
|
|
855
|
+
constructor();
|
|
856
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ViewButtonComponent, never>;
|
|
857
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ViewButtonComponent, "view-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
declare class ViewButtonDirective extends BaseButtonDirective {
|
|
861
|
+
icon: _angular_core.InputSignal<string>;
|
|
862
|
+
loadingLabel: _angular_core.InputSignal<string>;
|
|
863
|
+
constructor();
|
|
864
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ViewButtonDirective, never>;
|
|
865
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ViewButtonDirective, "[viewButton]", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
declare class ViewPrimaryButtonComponent extends BaseButtonComponent {
|
|
869
|
+
label: _angular_core.InputSignal<string>;
|
|
870
|
+
icon: _angular_core.InputSignal<string>;
|
|
871
|
+
classes: _angular_core.InputSignal<string>;
|
|
872
|
+
constructor();
|
|
873
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ViewPrimaryButtonComponent, never>;
|
|
874
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ViewPrimaryButtonComponent, "view-primary-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
declare class ViewPrimaryButtonDirective extends BaseButtonDirective {
|
|
878
|
+
icon: _angular_core.InputSignal<string>;
|
|
879
|
+
constructor();
|
|
880
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ViewPrimaryButtonDirective, never>;
|
|
881
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ViewPrimaryButtonDirective, "[viewPrimaryButton]", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
declare class ConfirmDialogComponent {
|
|
885
|
+
data: ConfirmDialogData;
|
|
886
|
+
dialogRef: MatDialogRef<ConfirmDialogComponent>;
|
|
887
|
+
title: string;
|
|
888
|
+
message: string;
|
|
889
|
+
constructor(data: ConfirmDialogData, dialogRef: MatDialogRef<ConfirmDialogComponent>);
|
|
890
|
+
onDismiss(): void;
|
|
891
|
+
onConfirm(): void;
|
|
892
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
|
|
893
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ConfirmDialogComponent, "app-confirm-dialog", never, {}, {}, never, never, true, never>;
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* Class to represent confirm dialog model.
|
|
897
|
+
*/
|
|
898
|
+
interface ConfirmDialogData {
|
|
899
|
+
title: string;
|
|
900
|
+
message: string;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
declare class MatSnackBarService {
|
|
904
|
+
snackBar: MatSnackBar;
|
|
905
|
+
/**
|
|
906
|
+
* Duration (in milliseconds) of the Snack Bar to be open. Defaults to 5 seconds (5000 milliseconds)
|
|
907
|
+
*/
|
|
908
|
+
duration: number;
|
|
909
|
+
/**
|
|
910
|
+
* Horizontal Position of the MatSnackBar. Defaults to right side
|
|
911
|
+
*/
|
|
912
|
+
horizontalPosition: MatSnackBarHorizontalPosition;
|
|
913
|
+
/**
|
|
914
|
+
* Vertical Position of the MatSnackBar. Defaults to top of the page
|
|
915
|
+
*/
|
|
916
|
+
verticalPosition: MatSnackBarVerticalPosition;
|
|
917
|
+
/**
|
|
918
|
+
* Opens Success Snack Bar
|
|
919
|
+
*
|
|
920
|
+
* @param message Message to display on Snack Bar
|
|
921
|
+
* @param options Options of the Snack Bar
|
|
922
|
+
*
|
|
923
|
+
* @author Pavan Kumar Jadda
|
|
924
|
+
* @since 2.2.3
|
|
925
|
+
*/
|
|
926
|
+
success(message: string, options?: MatSnackBarOptions): void;
|
|
927
|
+
/**
|
|
928
|
+
* Opens Error Snack Bar
|
|
929
|
+
*
|
|
930
|
+
* @param message Message to display on Snack Bar
|
|
931
|
+
* @param options Options of the Snack Bar
|
|
932
|
+
*
|
|
933
|
+
* @author Pavan Kumar Jadda
|
|
934
|
+
* @since 2.2.3
|
|
935
|
+
*/
|
|
936
|
+
error(message: string, options?: MatSnackBarOptions): void;
|
|
937
|
+
/**
|
|
938
|
+
* Opens Generic Snack Bar
|
|
939
|
+
*
|
|
940
|
+
* @param message Message to display on Snack Bar
|
|
941
|
+
*
|
|
942
|
+
* @author Pavan Kumar Jadda
|
|
943
|
+
* @since 2.2.3
|
|
944
|
+
*/
|
|
945
|
+
open(message: string): void;
|
|
946
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatSnackBarService, never>;
|
|
947
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<MatSnackBarService>;
|
|
948
|
+
}
|
|
949
|
+
/**
|
|
950
|
+
* MatSnackBarOptions for Snack Bar
|
|
951
|
+
*
|
|
952
|
+
* Available panelClass options:
|
|
953
|
+
* - 'success-snackbar': Green background (default for success)
|
|
954
|
+
* - 'error-snackbar': Red background (default for error)
|
|
955
|
+
* - 'light-success-snackbar': Light green background
|
|
956
|
+
* - 'light-error-snackbar': Light red background
|
|
957
|
+
* - 'primary-snackbar': Primary theme color
|
|
958
|
+
* - 'info-snackbar': Blue background
|
|
959
|
+
* - 'warning-snackbar': Yellow background
|
|
960
|
+
* - Custom CSS class names for additional styling
|
|
961
|
+
*
|
|
962
|
+
* @author Pavan Kumar Jadda
|
|
963
|
+
* @since 2.7.19
|
|
964
|
+
*/
|
|
965
|
+
interface MatSnackBarOptions {
|
|
966
|
+
duration?: number;
|
|
967
|
+
horizontalPosition?: MatSnackBarHorizontalPosition;
|
|
968
|
+
verticalPosition?: MatSnackBarVerticalPosition;
|
|
969
|
+
panelClass?: string | string[];
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
interface IdType {
|
|
973
|
+
id: number;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* A core entity store class that stores a list of objects. This has list of methods to perform CRUD operations on the list of objects.
|
|
978
|
+
*
|
|
979
|
+
* @author Pavan Kumar Jadda
|
|
980
|
+
* @since 17.1.0
|
|
981
|
+
*/
|
|
982
|
+
declare class EntityStore<T extends IdType> {
|
|
983
|
+
_data: _angular_core.WritableSignal<T[]>;
|
|
984
|
+
data: _angular_core.Signal<T[]>;
|
|
985
|
+
/**
|
|
986
|
+
* Find an item in the store by id
|
|
987
|
+
*
|
|
988
|
+
* @param id The id of the item to be found
|
|
989
|
+
*
|
|
990
|
+
* @returns The item if found, undefined otherwise
|
|
991
|
+
*
|
|
992
|
+
* @author Pavan Kumar Jadda
|
|
993
|
+
* @since 17.1.0
|
|
994
|
+
*/
|
|
995
|
+
findById(id: number): T | undefined;
|
|
996
|
+
/**
|
|
997
|
+
* Set the list of items in the store with the new data
|
|
998
|
+
*
|
|
999
|
+
* @param data The new list of items to be stored
|
|
1000
|
+
*
|
|
1001
|
+
* @author Pavan Kumar Jadda
|
|
1002
|
+
* @since 17.1.0
|
|
1003
|
+
*/
|
|
1004
|
+
setData(data: T[]): void;
|
|
1005
|
+
/**
|
|
1006
|
+
* Update an item in the store. If the item does not exist in new list, add it. Otherwise, update it.
|
|
1007
|
+
*
|
|
1008
|
+
* @param data The item to added or updated
|
|
1009
|
+
*
|
|
1010
|
+
* @author Pavan Kumar Jadda
|
|
1011
|
+
* @since 17.1.0
|
|
1012
|
+
*/
|
|
1013
|
+
upsert(data: T): void;
|
|
1014
|
+
/**
|
|
1015
|
+
* Update or insert the given list of items in the store
|
|
1016
|
+
*
|
|
1017
|
+
* @param newData The list of items to be updated or inserted
|
|
1018
|
+
*
|
|
1019
|
+
* @author Pavan Kumar Jadda
|
|
1020
|
+
* @since 17.1.0
|
|
1021
|
+
*/
|
|
1022
|
+
upsertMulti(newData: T[]): void;
|
|
1023
|
+
/**
|
|
1024
|
+
* Remove an item from the store
|
|
1025
|
+
*
|
|
1026
|
+
* @param id The id of the item to be removed
|
|
1027
|
+
*
|
|
1028
|
+
* @author Pavan Kumar Jadda
|
|
1029
|
+
* @since 17.1.0
|
|
1030
|
+
*/
|
|
1031
|
+
remove(id: number): void;
|
|
1032
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityStore<any>, never>;
|
|
1033
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<EntityStore<any>>;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* A core store class that can be used to store any object
|
|
1038
|
+
*
|
|
1039
|
+
* @author Pavan Kumar Jadda
|
|
1040
|
+
* @since 17.1.0
|
|
1041
|
+
*/
|
|
1042
|
+
declare class Store<T extends object> {
|
|
1043
|
+
_data: _angular_core.WritableSignal<T | null>;
|
|
1044
|
+
data: _angular_core.Signal<T | null>;
|
|
1045
|
+
initialize(initialData: T): void;
|
|
1046
|
+
/**
|
|
1047
|
+
* Update the data in the store with the new data
|
|
1048
|
+
*
|
|
1049
|
+
* @param newData The new data to be stored/updated
|
|
1050
|
+
*
|
|
1051
|
+
* @author Pavan Kumar Jadda
|
|
1052
|
+
* @since 17.1.0
|
|
1053
|
+
*/
|
|
1054
|
+
update(newData: T): void;
|
|
1055
|
+
clear(): void;
|
|
1056
|
+
getData(): T | null;
|
|
1057
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Store<any>, never>;
|
|
1058
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<Store<any>>;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* Initialize Loading or Update ProgressState
|
|
1063
|
+
*
|
|
1064
|
+
* @return Updated State Object
|
|
1065
|
+
*
|
|
1066
|
+
* @author Pavan Kumar Jadda
|
|
1067
|
+
* @since 2.7.16
|
|
1068
|
+
*/
|
|
1069
|
+
declare const initializeState: () => WritableSignal<ProgressState>;
|
|
1070
|
+
/**
|
|
1071
|
+
* Initialize Loading or Update ProgressState
|
|
1072
|
+
*
|
|
1073
|
+
* @param progressState Object to initialize
|
|
1074
|
+
* @return ProgressState Updated State Object
|
|
1075
|
+
*
|
|
1076
|
+
* @author Pavan Kumar Jadda
|
|
1077
|
+
* @since 2.7.16
|
|
1078
|
+
*/
|
|
1079
|
+
declare const markLoading: (progressState: WritableSignal<ProgressState>) => void;
|
|
1080
|
+
/**
|
|
1081
|
+
* Update state as isSuccess
|
|
1082
|
+
*
|
|
1083
|
+
* @return ProgressState Updated State Object
|
|
1084
|
+
*
|
|
1085
|
+
* @author Pavan Kumar Jadda
|
|
1086
|
+
* @since 2.7.16
|
|
1087
|
+
*/
|
|
1088
|
+
declare const markSuccess: (progressState: WritableSignal<ProgressState>, message?: string) => void;
|
|
1089
|
+
/**
|
|
1090
|
+
* Update state as failure or isError
|
|
1091
|
+
*
|
|
1092
|
+
* @return ProgressState Updated State Object
|
|
1093
|
+
*
|
|
1094
|
+
* @author Pavan Kumar Jadda
|
|
1095
|
+
* @since 2.7.16
|
|
1096
|
+
*/
|
|
1097
|
+
declare const markError: (progressState: WritableSignal<ProgressState>, message?: string) => void;
|
|
1098
|
+
|
|
1099
|
+
export { AlertComponent, AutocompleteComponent, BaseButtonDirective, BsLinkButtonComponent, BsLinkButtonDirective, CloseButtonDirective, ConfirmDialogComponent, DeleteButtonComponent, DeleteButtonDirective, EditBsButtonComponent, EditBsButtonDirective, EditButtonComponent, EditButtonDirective, EditSolidSvgComponent, EditSvgIconButtonComponent, EditSvgIconButtonDirective, EntityStore, ExcelExportButtonComponent, ExcelExportButtonDirective, ManageButtonComponent, ManageButtonDirective, MatSnackBarService, NgxPrintDirective, NgxSpinnerComponent, NgxSpinnerService, PdfExportButtonComponent, PdfExportButtonDirective, PreventMultipleClicksDirective, PrimaryButtonComponent, PrimaryButtonDirective, SavePrimaryButtonComponent, SavePrimaryButtonDirective, SearchButtonComponent, SpinnerComponent, Store, SuccessButtonComponent, SuccessButtonDirective, ViewButtonComponent, ViewButtonDirective, ViewPrimaryButtonComponent, ViewPrimaryButtonDirective, initializeState, markError, markLoading, markSuccess };
|
|
1100
|
+
export type { AlertType, ConfirmDialogData, MatSnackBarOptions, ProgressState };
|