@js-smart/ng-kit 19.6.0 → 19.8.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/fesm2022/js-smart-ng-kit.mjs +297 -299
- package/fesm2022/js-smart-ng-kit.mjs.map +1 -1
- package/index.d.ts +939 -3
- package/package.json +1 -1
- package/lib/components/alert/alert.component.d.ts +0 -73
- package/lib/components/autocomplete/autocomplete.component.d.ts +0 -115
- package/lib/components/buttons/base-button/base-button.component.d.ts +0 -69
- package/lib/components/buttons/bs-link-button/bs-link-button.component.d.ts +0 -10
- package/lib/components/buttons/delete-button/delete-button.component.d.ts +0 -11
- package/lib/components/buttons/edit-bs-button/edit-bs-button.component.d.ts +0 -9
- package/lib/components/buttons/edit-button/edit-button.component.d.ts +0 -10
- package/lib/components/buttons/edit-svg-icon-button/edit-svg-icon-button.component.d.ts +0 -10
- package/lib/components/buttons/excel-export-button/excel-export-button.component.d.ts +0 -5
- package/lib/components/buttons/manage-button/manage-button.component.d.ts +0 -10
- package/lib/components/buttons/pdf-export-button/pdf-export-button.component.d.ts +0 -5
- package/lib/components/buttons/primary-button/primary-button.component.d.ts +0 -12
- package/lib/components/buttons/save-primary-button/save-primary-button.component.d.ts +0 -11
- package/lib/components/buttons/search-button/search-button.component.d.ts +0 -11
- package/lib/components/buttons/success-button/success-button.component.d.ts +0 -11
- package/lib/components/buttons/view-button/view-button.component.d.ts +0 -9
- package/lib/components/buttons/view-primary-button/view-primary-button.component.d.ts +0 -10
- package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +0 -20
- package/lib/components/ngx-spinner/ngx-spinner.component.d.ts +0 -109
- package/lib/components/ngx-spinner/ngx-spinner.enum.d.ts +0 -37
- package/lib/components/ngx-spinner/ngx-spinner.service.d.ts +0 -34
- package/lib/components/ngx-spinner/safe-html.pipe.d.ts +0 -10
- package/lib/components/snack-bar/error-snack-bar/error-snack-bar.component.d.ts +0 -22
- package/lib/components/snack-bar/success-snack-bar/success-snack-bar.component.d.ts +0 -22
- package/lib/components/spinner/spinner.component.d.ts +0 -22
- package/lib/directives/ngx-print.directive.d.ts +0 -157
- package/lib/directives/prevent-multiple-clicks.directive.d.ts +0 -21
- package/lib/pipes/type-of.pipe.d.ts +0 -7
- package/lib/services/mat-snack-bar.service.d.ts +0 -61
- package/lib/store/entity-store.d.ts +0 -61
- package/lib/store/store.d.ts +0 -22
- package/lib/svg-icons/edit-solid-svg/edit-solid-svg.component.d.ts +0 -8
- package/lib/types/id-type.d.ts +0 -3
- package/lib/types/progress-state.d.ts +0 -7
- package/lib/util/progress-util.d.ts +0 -39
- package/public-api.d.ts +0 -29
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, signal, Component, Injectable, Pipe,
|
|
3
|
-
import { CommonModule, AsyncPipe } from '@angular/common';
|
|
2
|
+
import { inject, ChangeDetectorRef, input, signal, output, effect, Component, Injectable, Pipe, HostListener, ViewChild, forwardRef, Input, Optional, Directive, Inject, computed } from '@angular/core';
|
|
4
3
|
import * as i1 from '@angular/material/progress-spinner';
|
|
5
4
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
6
5
|
import { BehaviorSubject, Subject, throttleTime } from 'rxjs';
|
|
7
6
|
import { filter, takeUntil, startWith, map } from 'rxjs/operators';
|
|
8
|
-
import { trigger, state,
|
|
7
|
+
import { trigger, state, transition, style, animate } from '@angular/animations';
|
|
9
8
|
import * as i1$1 from '@angular/platform-browser';
|
|
9
|
+
import { AsyncPipe } from '@angular/common';
|
|
10
10
|
import * as i1$2 from '@angular/forms';
|
|
11
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
11
|
+
import { FormControl, ReactiveFormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
12
12
|
import * as i3 from '@angular/material/autocomplete';
|
|
13
13
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
14
|
-
import * as i2 from '@angular/material/form-field';
|
|
15
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
16
|
-
import * as i5 from '@angular/material/input';
|
|
17
|
-
import { MatInputModule } from '@angular/material/input';
|
|
18
14
|
import * as i1$3 from '@angular/material/button';
|
|
19
15
|
import { MatButtonModule, MatAnchor, MatButton } from '@angular/material/button';
|
|
16
|
+
import * as i2 from '@angular/material/form-field';
|
|
17
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
20
18
|
import * as i1$4 from '@angular/material/icon';
|
|
21
19
|
import { MatIconModule, MatIcon } from '@angular/material/icon';
|
|
22
|
-
import * as i4 from '@angular/material/
|
|
20
|
+
import * as i4 from '@angular/material/input';
|
|
21
|
+
import { MatInputModule } from '@angular/material/input';
|
|
23
22
|
import * as i1$5 from '@angular/material/dialog';
|
|
24
23
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
25
24
|
import * as i3$1 from '@angular/material/divider';
|
|
26
25
|
import { MatDividerModule } from '@angular/material/divider';
|
|
27
26
|
import * as i1$6 from '@angular/material/snack-bar';
|
|
28
|
-
import { MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';
|
|
27
|
+
import { MAT_SNACK_BAR_DATA, MatSnackBar } from '@angular/material/snack-bar';
|
|
29
28
|
|
|
30
29
|
/**
|
|
31
30
|
* Boostrap Alert component that can be used to alert messages to the user
|
|
@@ -34,20 +33,10 @@ import { MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';
|
|
|
34
33
|
* @since 12.0.0
|
|
35
34
|
*/
|
|
36
35
|
class AlertComponent {
|
|
37
|
-
constructor(
|
|
38
|
-
this.cdr =
|
|
36
|
+
constructor() {
|
|
37
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
39
38
|
/**
|
|
40
39
|
* Type of the BootStrap Alert. Following values are supported. See BootStrap docs for more information
|
|
41
|
-
* <pre>
|
|
42
|
-
* 1. info
|
|
43
|
-
* 2. primary
|
|
44
|
-
* 3. secondary
|
|
45
|
-
* 4. success
|
|
46
|
-
* 5. warning
|
|
47
|
-
* 6. danger
|
|
48
|
-
* 7. dark
|
|
49
|
-
* 8. light
|
|
50
|
-
* </pre>
|
|
51
40
|
*/
|
|
52
41
|
this.type = input('info');
|
|
53
42
|
/**
|
|
@@ -74,6 +63,14 @@ class AlertComponent {
|
|
|
74
63
|
* Additional classes to be added to the alert. This can be used to add custom styles to the alert
|
|
75
64
|
*/
|
|
76
65
|
this.class = input('');
|
|
66
|
+
/**
|
|
67
|
+
* Emits when the alert is closed.
|
|
68
|
+
*/
|
|
69
|
+
this.closed = output();
|
|
70
|
+
// React to isOpen input changes
|
|
71
|
+
effect(() => {
|
|
72
|
+
this.open.set(this.isOpen());
|
|
73
|
+
});
|
|
77
74
|
}
|
|
78
75
|
/**
|
|
79
76
|
* Initialize the component and settings
|
|
@@ -101,6 +98,7 @@ class AlertComponent {
|
|
|
101
98
|
return;
|
|
102
99
|
}
|
|
103
100
|
this.open.set(false);
|
|
101
|
+
this.closed.emit();
|
|
104
102
|
}
|
|
105
103
|
/**
|
|
106
104
|
* Opens Bootstrap Alert
|
|
@@ -111,13 +109,13 @@ class AlertComponent {
|
|
|
111
109
|
openAlert() {
|
|
112
110
|
this.open.set(true);
|
|
113
111
|
}
|
|
114
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
115
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
112
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
113
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: AlertComponent, isStandalone: true, selector: "lib-alert, alert", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, dismissOnTimeout: { classPropertyName: "dismissOnTimeout", publicName: "dismissOnTimeout", isSignal: true, isRequired: false, transformFunction: null }, dismissTimeout: { classPropertyName: "dismissTimeout", publicName: "dismissTimeout", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, ngImport: i0, template: "@if (open()) {\n\t<div class=\"row {{ class() }}\">\n\t\t<div class=\"col-xs-12 col-sm-12 col-md-auto mx-auto\">\n\t\t\t<div class=\"alert alert-{{ type() }} alert-dismissible alert_div\" role=\"alert\">\n\t\t\t\t<ng-content></ng-content>\n\t\t\t\t@if (dismissible()) {\n\t\t\t\t\t<button (click)=\"closeAlert()\" aria-label=\"Close\" class=\"btn-close\" data-bs-dismiss=\"alert\" type=\"button\"></button>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t</div>\n}\n", styles: [".alert_div{display:flex;align-items:center;justify-content:center}\n"] }); }
|
|
116
114
|
}
|
|
117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: AlertComponent, decorators: [{
|
|
118
116
|
type: Component,
|
|
119
|
-
args: [{ selector: 'lib-alert, alert',
|
|
120
|
-
}], ctorParameters: () => [
|
|
117
|
+
args: [{ selector: 'lib-alert, alert', template: "@if (open()) {\n\t<div class=\"row {{ class() }}\">\n\t\t<div class=\"col-xs-12 col-sm-12 col-md-auto mx-auto\">\n\t\t\t<div class=\"alert alert-{{ type() }} alert-dismissible alert_div\" role=\"alert\">\n\t\t\t\t<ng-content></ng-content>\n\t\t\t\t@if (dismissible()) {\n\t\t\t\t\t<button (click)=\"closeAlert()\" aria-label=\"Close\" class=\"btn-close\" data-bs-dismiss=\"alert\" type=\"button\"></button>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t</div>\n}\n", styles: [".alert_div{display:flex;align-items:center;justify-content:center}\n"] }]
|
|
118
|
+
}], ctorParameters: () => [] });
|
|
121
119
|
|
|
122
120
|
class SpinnerComponent {
|
|
123
121
|
constructor() {
|
|
@@ -138,10 +136,10 @@ class SpinnerComponent {
|
|
|
138
136
|
*/
|
|
139
137
|
this.strokeWidth = input(5);
|
|
140
138
|
}
|
|
141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
142
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
139
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
140
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: SpinnerComponent, isStandalone: true, selector: "spinner,lib-spinner", inputs: { bootstrapSpinner: { classPropertyName: "bootstrapSpinner", publicName: "bootstrapSpinner", isSignal: true, isRequired: false, transformFunction: null }, diameter: { classPropertyName: "diameter", publicName: "diameter", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- Angular Material Spinner -->\n@if (!bootstrapSpinner()) {\n\t<mat-spinner [color]=\"color()\" [diameter]=\"diameter()\" [strokeWidth]=\"strokeWidth()\" class=\"mx-auto\"> </mat-spinner>\n}\n\n<!-- Bootstrap Spinner -->\n@if (bootstrapSpinner()) {\n\t<div class=\"d-flex justify-content-center\">\n\t\t<div class=\"spinner-border bs-spinner\" role=\"status\"></div>\n\t</div>\n}\n", styles: [".bs-spinner-sm{color:#3f51b5;margin-bottom:20px}.bs-spinner{color:#3f51b5;width:3rem;height:3rem;margin-bottom:20px}.bs-spinner-lg{color:#3f51b5;width:5rem;height:5rem;margin-bottom:20px}\n"], dependencies: [{ kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] }); }
|
|
143
141
|
}
|
|
144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SpinnerComponent, decorators: [{
|
|
145
143
|
type: Component,
|
|
146
144
|
args: [{ selector: 'spinner,lib-spinner', imports: [MatProgressSpinnerModule], template: "<!-- Angular Material Spinner -->\n@if (!bootstrapSpinner()) {\n\t<mat-spinner [color]=\"color()\" [diameter]=\"diameter()\" [strokeWidth]=\"strokeWidth()\" class=\"mx-auto\"> </mat-spinner>\n}\n\n<!-- Bootstrap Spinner -->\n@if (bootstrapSpinner()) {\n\t<div class=\"d-flex justify-content-center\">\n\t\t<div class=\"spinner-border bs-spinner\" role=\"status\"></div>\n\t</div>\n}\n", styles: [".bs-spinner-sm{color:#3f51b5;margin-bottom:20px}.bs-spinner{color:#3f51b5;width:3rem;height:3rem;margin-bottom:20px}.bs-spinner-lg{color:#3f51b5;width:5rem;height:5rem;margin-bottom:20px}\n"] }]
|
|
147
145
|
}] });
|
|
@@ -218,10 +216,10 @@ class NgxSpinnerService {
|
|
|
218
216
|
}, debounce);
|
|
219
217
|
});
|
|
220
218
|
}
|
|
221
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
222
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
219
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: NgxSpinnerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
220
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: NgxSpinnerService, providedIn: 'root' }); }
|
|
223
221
|
}
|
|
224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: NgxSpinnerService, decorators: [{
|
|
225
223
|
type: Injectable,
|
|
226
224
|
args: [{
|
|
227
225
|
providedIn: 'root',
|
|
@@ -238,10 +236,10 @@ class SafeHtmlPipe {
|
|
|
238
236
|
}
|
|
239
237
|
return undefined;
|
|
240
238
|
}
|
|
241
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
242
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
239
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
240
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.0", ngImport: i0, type: SafeHtmlPipe, isStandalone: true, name: "safeHtml" }); }
|
|
243
241
|
}
|
|
244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
245
243
|
type: Pipe,
|
|
246
244
|
args: [{
|
|
247
245
|
name: 'safeHtml',
|
|
@@ -256,14 +254,63 @@ class NgxSpinnerComponent {
|
|
|
256
254
|
constructor(spinnerService, changeDetector) {
|
|
257
255
|
this.spinnerService = spinnerService;
|
|
258
256
|
this.changeDetector = changeDetector;
|
|
257
|
+
/**
|
|
258
|
+
* To set backdrop color
|
|
259
|
+
* Only supports RGBA color format
|
|
260
|
+
*/
|
|
261
|
+
this.bdColor = input(DEFAULTS.BD_COLOR);
|
|
262
|
+
/**
|
|
263
|
+
* To set spinner size
|
|
264
|
+
*/
|
|
265
|
+
this.size = input('large');
|
|
266
|
+
/**
|
|
267
|
+
* To set spinner color(DEFAULTS.SPINNER_COLOR)
|
|
268
|
+
*/
|
|
269
|
+
this.color = input(DEFAULTS.SPINNER_COLOR);
|
|
270
|
+
/**
|
|
271
|
+
* To set type of spinner
|
|
272
|
+
*/
|
|
273
|
+
this.type = input(DEFAULTS.SPINNER_TYPE);
|
|
274
|
+
/**
|
|
275
|
+
* To toggle fullscreen mode
|
|
276
|
+
*/
|
|
277
|
+
this.fullScreen = input(true);
|
|
278
|
+
/**
|
|
279
|
+
* Spinner name
|
|
280
|
+
*/
|
|
281
|
+
this.name = input(PRIMARY_SPINNER);
|
|
282
|
+
/**
|
|
283
|
+
* z-index value
|
|
284
|
+
*/
|
|
285
|
+
this.zIndex = input(DEFAULTS.Z_INDEX);
|
|
286
|
+
/**
|
|
287
|
+
* Custom template for spinner/loader
|
|
288
|
+
*/
|
|
289
|
+
this.template = input('');
|
|
290
|
+
/**
|
|
291
|
+
* Show/Hide the spinner
|
|
292
|
+
*/
|
|
293
|
+
this.showSpinner = input(false);
|
|
259
294
|
/**
|
|
260
295
|
* To enable/disable animation
|
|
261
296
|
*/
|
|
262
|
-
this.disableAnimation = false;
|
|
297
|
+
this.disableAnimation = input(false);
|
|
263
298
|
/**
|
|
264
299
|
* Spinner Object
|
|
265
300
|
*/
|
|
266
301
|
this.spinner = new NgxSpinner();
|
|
302
|
+
/**
|
|
303
|
+
* Array for spinner's div
|
|
304
|
+
*/
|
|
305
|
+
this.divArray = [];
|
|
306
|
+
/**
|
|
307
|
+
* Counter for div
|
|
308
|
+
*/
|
|
309
|
+
this.divCount = 0;
|
|
310
|
+
/**
|
|
311
|
+
* Show spinner
|
|
312
|
+
**/
|
|
313
|
+
this.show = false;
|
|
267
314
|
/**
|
|
268
315
|
* Unsubscribe from spinner's observable
|
|
269
316
|
**/
|
|
@@ -273,48 +320,34 @@ class NgxSpinnerComponent {
|
|
|
273
320
|
*/
|
|
274
321
|
this.setDefaultOptions = () => {
|
|
275
322
|
this.spinner = new NgxSpinner({
|
|
276
|
-
name: this.name,
|
|
277
|
-
bdColor: this.bdColor,
|
|
278
|
-
size: this.size,
|
|
279
|
-
color: this.color,
|
|
280
|
-
type: this.type,
|
|
281
|
-
fullScreen: this.fullScreen,
|
|
323
|
+
name: this.name(),
|
|
324
|
+
bdColor: this.bdColor(),
|
|
325
|
+
size: this.size(),
|
|
326
|
+
color: this.color(),
|
|
327
|
+
type: this.type(),
|
|
328
|
+
fullScreen: this.fullScreen(),
|
|
282
329
|
divArray: this.divArray,
|
|
283
330
|
divCount: this.divCount,
|
|
284
331
|
show: this.show,
|
|
285
|
-
zIndex: this.zIndex,
|
|
286
|
-
template: this.template,
|
|
287
|
-
showSpinner: this.showSpinner,
|
|
332
|
+
zIndex: this.zIndex(),
|
|
333
|
+
template: this.template(),
|
|
334
|
+
showSpinner: this.showSpinner(),
|
|
288
335
|
});
|
|
289
336
|
};
|
|
290
|
-
this.bdColor = DEFAULTS.BD_COLOR;
|
|
291
|
-
this.zIndex = DEFAULTS.Z_INDEX;
|
|
292
|
-
this.color = DEFAULTS.SPINNER_COLOR;
|
|
293
|
-
this.type = DEFAULTS.SPINNER_TYPE;
|
|
294
|
-
this.size = 'large';
|
|
295
|
-
this.fullScreen = true;
|
|
296
|
-
this.name = PRIMARY_SPINNER;
|
|
297
|
-
// @ts-ignore
|
|
298
|
-
this.template = null;
|
|
299
|
-
this.showSpinner = false;
|
|
300
|
-
this.divArray = [];
|
|
301
|
-
this.divCount = 0;
|
|
302
|
-
this.show = false;
|
|
303
337
|
}
|
|
304
338
|
handleKeyboardEvent(event) {
|
|
305
|
-
if (this.spinnerDOM
|
|
339
|
+
if (this.spinnerDOM?.nativeElement) {
|
|
306
340
|
event.returnValue = false;
|
|
307
341
|
event.preventDefault();
|
|
308
342
|
}
|
|
309
343
|
}
|
|
310
344
|
/**
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
*/
|
|
345
|
+
* Initialization method
|
|
346
|
+
*/
|
|
314
347
|
ngOnInit() {
|
|
315
348
|
this.setDefaultOptions();
|
|
316
349
|
this.spinnerService
|
|
317
|
-
.getSpinner(this.name)
|
|
350
|
+
.getSpinner(this.name())
|
|
318
351
|
.pipe(takeUntil(this.ngUnsubscribe))
|
|
319
352
|
.subscribe((spinner) => {
|
|
320
353
|
this.setDefaultOptions();
|
|
@@ -325,33 +358,6 @@ class NgxSpinnerComponent {
|
|
|
325
358
|
this.changeDetector.detectChanges();
|
|
326
359
|
});
|
|
327
360
|
}
|
|
328
|
-
/**
|
|
329
|
-
* On changes event for input variables
|
|
330
|
-
*/
|
|
331
|
-
ngOnChanges(changes) {
|
|
332
|
-
for (const propName in changes) {
|
|
333
|
-
if (propName) {
|
|
334
|
-
const changedProp = changes[propName];
|
|
335
|
-
if (changedProp.isFirstChange()) {
|
|
336
|
-
return;
|
|
337
|
-
}
|
|
338
|
-
else if (typeof changedProp.currentValue !== 'undefined' && changedProp.currentValue !== changedProp.previousValue) {
|
|
339
|
-
if (changedProp.currentValue !== '') {
|
|
340
|
-
// @ts-ignore
|
|
341
|
-
this.spinner[propName] = changedProp.currentValue;
|
|
342
|
-
if (propName === 'showSpinner') {
|
|
343
|
-
if (changedProp.currentValue) {
|
|
344
|
-
this.spinnerService.show(this.spinner.name, this.spinner);
|
|
345
|
-
}
|
|
346
|
-
else {
|
|
347
|
-
this.spinnerService.hide(this.spinner.name);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
361
|
/**
|
|
356
362
|
* To get class for spinner
|
|
357
363
|
*/
|
|
@@ -360,7 +366,7 @@ class NgxSpinnerComponent {
|
|
|
360
366
|
this.spinner.divCount = LOADERS[type];
|
|
361
367
|
this.spinner.divArray = Array(this.spinner.divCount)
|
|
362
368
|
.fill(0)
|
|
363
|
-
.map((
|
|
369
|
+
.map((_x, i) => i);
|
|
364
370
|
let sizeClass = '';
|
|
365
371
|
switch (size.toLowerCase()) {
|
|
366
372
|
case 'small':
|
|
@@ -390,8 +396,8 @@ class NgxSpinnerComponent {
|
|
|
390
396
|
this.ngUnsubscribe.next();
|
|
391
397
|
this.ngUnsubscribe.complete();
|
|
392
398
|
}
|
|
393
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
394
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
399
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: NgxSpinnerComponent, deps: [{ token: NgxSpinnerService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
400
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: NgxSpinnerComponent, isStandalone: true, selector: "ngx-spinner", inputs: { bdColor: { classPropertyName: "bdColor", publicName: "bdColor", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, fullScreen: { classPropertyName: "fullScreen", publicName: "fullScreen", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, zIndex: { classPropertyName: "zIndex", publicName: "zIndex", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, showSpinner: { classPropertyName: "showSpinner", publicName: "showSpinner", isSignal: true, isRequired: false, transformFunction: null }, disableAnimation: { classPropertyName: "disableAnimation", publicName: "disableAnimation", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:keydown": "handleKeyboardEvent($event)" } }, viewQueries: [{ propertyName: "spinnerDOM", first: true, predicate: ["overlay"], descendants: true }], ngImport: i0, template: "@if (spinner.show) {\n\t<div\n\t\t#overlay\n\t\t[@.disabled]=\"disableAnimation()\"\n\t\t[@fadeIn]=\"'in'\"\n\t\t[style.background-color]=\"spinner.bdColor\"\n\t\t[style.position]=\"spinner.fullScreen ? 'fixed' : 'absolute'\"\n\t\t[style.z-index]=\"spinner.zIndex\"\n\t\tclass=\"ngx-spinner-overlay\">\n\t\t@if (spinner.show) {\n\t\t\t<div [class]=\"spinner.class\" [style.color]=\"spinner.color\">\n\t\t\t\t@for (index of spinner.divArray; track index) {\n\t\t\t\t\t<div></div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t}\n\t\t@if (template()) {\n\t\t\t<div [innerHTML]=\"template() | safeHtml\"></div>\n\t\t}\n\t\t<div [style.z-index]=\"spinner.zIndex\" class=\"loading-text\">\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t</div>\n}\n", styles: [".la-ball-clip-rotate,.la-ball-clip-rotate>div{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.la-ball-clip-rotate{display:block;font-size:0;color:#fff}.la-ball-clip-rotate.la-dark{color:#333}.la-ball-clip-rotate>div{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor}.la-ball-clip-rotate{width:32px;height:32px}.la-ball-clip-rotate>div{width:32px;height:32px;background:transparent;border-width:2px;border-bottom-color:transparent;border-radius:100%;-webkit-animation:ball-clip-rotate .75s linear infinite;-moz-animation:ball-clip-rotate .75s linear infinite;-o-animation:ball-clip-rotate .75s linear infinite;animation:ball-clip-rotate .75s linear infinite}.la-ball-clip-rotate.la-sm{width:16px;height:16px}.la-ball-clip-rotate.la-sm>div{width:16px;height:16px;border-width:1px}.la-ball-clip-rotate.la-2x{width:64px;height:64px}.la-ball-clip-rotate.la-2x>div{width:64px;height:64px;border-width:4px}.la-ball-clip-rotate.la-3x{width:96px;height:96px}.la-ball-clip-rotate.la-3x>div{width:96px;height:96px;border-width:6px}@-webkit-keyframes ball-clip-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes ball-clip-rotate{0%{-moz-transform:rotate(0deg);transform:rotate(0)}50%{-moz-transform:rotate(180deg);transform:rotate(180deg)}to{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes ball-clip-rotate{0%{-o-transform:rotate(0deg);transform:rotate(0)}50%{-o-transform:rotate(180deg);transform:rotate(180deg)}to{-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes ball-clip-rotate{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}50%{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}.ngx-spinner-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ngx-spinner-overlay>div:not(.loading-text){top:50%;left:50%;margin:0;position:absolute;transform:translate(-50%,-50%)}.loading-text{position:absolute;top:60%;left:50%;transform:translate(-50%,-60%)}\n/*!\n * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)\n * Copyright 2015 Daniel Cardoso <@DanielCardoso>\n * Licensed under MIT\n */\n"], dependencies: [{ kind: "pipe", type: SafeHtmlPipe, name: "safeHtml" }], animations: [
|
|
395
401
|
trigger('fadeIn', [
|
|
396
402
|
state('in', style({ opacity: 1 })),
|
|
397
403
|
transition(':enter', [style({ opacity: 0 }), animate(300)]),
|
|
@@ -399,7 +405,7 @@ class NgxSpinnerComponent {
|
|
|
399
405
|
]),
|
|
400
406
|
] }); }
|
|
401
407
|
}
|
|
402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
408
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: NgxSpinnerComponent, decorators: [{
|
|
403
409
|
type: Component,
|
|
404
410
|
args: [{ selector: 'ngx-spinner', imports: [SafeHtmlPipe], animations: [
|
|
405
411
|
trigger('fadeIn', [
|
|
@@ -407,28 +413,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
407
413
|
transition(':enter', [style({ opacity: 0 }), animate(300)]),
|
|
408
414
|
transition(':leave', animate(200, style({ opacity: 0 }))),
|
|
409
415
|
]),
|
|
410
|
-
], template: "@if (spinner.show) {\n\t<div\n\t\t#overlay\n\t\t[@.disabled]=\"disableAnimation\"\n\t\t[@fadeIn]=\"'in'\"\n\t\t[style.background-color]=\"spinner.bdColor\"\n\t\t[style.position]=\"spinner.fullScreen ? 'fixed' : 'absolute'\"\n\t\t[style.z-index]=\"spinner.zIndex\"\n\t\tclass=\"ngx-spinner-overlay\">\n\t\t@if (spinner.show) {\n\t\t\t<div [class]=\"spinner.class\" [style.color]=\"spinner.color\">\n\t\t\t\t@for (index of spinner.divArray; track index) {\n\t\t\t\t\t<div></div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t}\n\t\t@if (template) {\n\t\t\t<div [innerHTML]=\"template | safeHtml\"></div>\n\t\t}\n\t\t<div [style.z-index]=\"spinner.zIndex\" class=\"loading-text\">\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t</div>\n}\n", styles: [".la-ball-clip-rotate,.la-ball-clip-rotate>div{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.la-ball-clip-rotate{display:block;font-size:0;color:#fff}.la-ball-clip-rotate.la-dark{color:#333}.la-ball-clip-rotate>div{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor}.la-ball-clip-rotate{width:32px;height:32px}.la-ball-clip-rotate>div{width:32px;height:32px;background:transparent;border-width:2px;border-bottom-color:transparent;border-radius:100%;-webkit-animation:ball-clip-rotate .75s linear infinite;-moz-animation:ball-clip-rotate .75s linear infinite;-o-animation:ball-clip-rotate .75s linear infinite;animation:ball-clip-rotate .75s linear infinite}.la-ball-clip-rotate.la-sm{width:16px;height:16px}.la-ball-clip-rotate.la-sm>div{width:16px;height:16px;border-width:1px}.la-ball-clip-rotate.la-2x{width:64px;height:64px}.la-ball-clip-rotate.la-2x>div{width:64px;height:64px;border-width:4px}.la-ball-clip-rotate.la-3x{width:96px;height:96px}.la-ball-clip-rotate.la-3x>div{width:96px;height:96px;border-width:6px}@-webkit-keyframes ball-clip-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes ball-clip-rotate{0%{-moz-transform:rotate(0deg);transform:rotate(0)}50%{-moz-transform:rotate(180deg);transform:rotate(180deg)}to{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes ball-clip-rotate{0%{-o-transform:rotate(0deg);transform:rotate(0)}50%{-o-transform:rotate(180deg);transform:rotate(180deg)}to{-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes ball-clip-rotate{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}50%{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}.ngx-spinner-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ngx-spinner-overlay>div:not(.loading-text){top:50%;left:50%;margin:0;position:absolute;transform:translate(-50%,-50%)}.loading-text{position:absolute;top:60%;left:50%;transform:translate(-50%,-60%)}\n/*!\n * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)\n * Copyright 2015 Daniel Cardoso <@DanielCardoso>\n * Licensed under MIT\n */\n"] }]
|
|
411
|
-
}], ctorParameters: () => [{ type: NgxSpinnerService }, { type: i0.ChangeDetectorRef }], propDecorators: {
|
|
412
|
-
type: Input
|
|
413
|
-
}], size: [{
|
|
414
|
-
type: Input
|
|
415
|
-
}], color: [{
|
|
416
|
-
type: Input
|
|
417
|
-
}], type: [{
|
|
418
|
-
type: Input
|
|
419
|
-
}], fullScreen: [{
|
|
420
|
-
type: Input
|
|
421
|
-
}], name: [{
|
|
422
|
-
type: Input
|
|
423
|
-
}], zIndex: [{
|
|
424
|
-
type: Input
|
|
425
|
-
}], template: [{
|
|
426
|
-
type: Input
|
|
427
|
-
}], showSpinner: [{
|
|
428
|
-
type: Input
|
|
429
|
-
}], disableAnimation: [{
|
|
430
|
-
type: Input
|
|
431
|
-
}], spinnerDOM: [{
|
|
416
|
+
], template: "@if (spinner.show) {\n\t<div\n\t\t#overlay\n\t\t[@.disabled]=\"disableAnimation()\"\n\t\t[@fadeIn]=\"'in'\"\n\t\t[style.background-color]=\"spinner.bdColor\"\n\t\t[style.position]=\"spinner.fullScreen ? 'fixed' : 'absolute'\"\n\t\t[style.z-index]=\"spinner.zIndex\"\n\t\tclass=\"ngx-spinner-overlay\">\n\t\t@if (spinner.show) {\n\t\t\t<div [class]=\"spinner.class\" [style.color]=\"spinner.color\">\n\t\t\t\t@for (index of spinner.divArray; track index) {\n\t\t\t\t\t<div></div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t}\n\t\t@if (template()) {\n\t\t\t<div [innerHTML]=\"template() | safeHtml\"></div>\n\t\t}\n\t\t<div [style.z-index]=\"spinner.zIndex\" class=\"loading-text\">\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t</div>\n}\n", styles: [".la-ball-clip-rotate,.la-ball-clip-rotate>div{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.la-ball-clip-rotate{display:block;font-size:0;color:#fff}.la-ball-clip-rotate.la-dark{color:#333}.la-ball-clip-rotate>div{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor}.la-ball-clip-rotate{width:32px;height:32px}.la-ball-clip-rotate>div{width:32px;height:32px;background:transparent;border-width:2px;border-bottom-color:transparent;border-radius:100%;-webkit-animation:ball-clip-rotate .75s linear infinite;-moz-animation:ball-clip-rotate .75s linear infinite;-o-animation:ball-clip-rotate .75s linear infinite;animation:ball-clip-rotate .75s linear infinite}.la-ball-clip-rotate.la-sm{width:16px;height:16px}.la-ball-clip-rotate.la-sm>div{width:16px;height:16px;border-width:1px}.la-ball-clip-rotate.la-2x{width:64px;height:64px}.la-ball-clip-rotate.la-2x>div{width:64px;height:64px;border-width:4px}.la-ball-clip-rotate.la-3x{width:96px;height:96px}.la-ball-clip-rotate.la-3x>div{width:96px;height:96px;border-width:6px}@-webkit-keyframes ball-clip-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes ball-clip-rotate{0%{-moz-transform:rotate(0deg);transform:rotate(0)}50%{-moz-transform:rotate(180deg);transform:rotate(180deg)}to{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes ball-clip-rotate{0%{-o-transform:rotate(0deg);transform:rotate(0)}50%{-o-transform:rotate(180deg);transform:rotate(180deg)}to{-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes ball-clip-rotate{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}50%{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}.ngx-spinner-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ngx-spinner-overlay>div:not(.loading-text){top:50%;left:50%;margin:0;position:absolute;transform:translate(-50%,-50%)}.loading-text{position:absolute;top:60%;left:50%;transform:translate(-50%,-60%)}\n/*!\n * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)\n * Copyright 2015 Daniel Cardoso <@DanielCardoso>\n * Licensed under MIT\n */\n"] }]
|
|
417
|
+
}], ctorParameters: () => [{ type: NgxSpinnerService }, { type: i0.ChangeDetectorRef }], propDecorators: { spinnerDOM: [{
|
|
432
418
|
type: ViewChild,
|
|
433
419
|
args: ['overlay']
|
|
434
420
|
}], handleKeyboardEvent: [{
|
|
@@ -436,21 +422,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
436
422
|
args: ['document:keydown', ['$event']]
|
|
437
423
|
}] } });
|
|
438
424
|
|
|
439
|
-
class TypeOfPipe {
|
|
440
|
-
transform(value) {
|
|
441
|
-
return typeof value;
|
|
442
|
-
}
|
|
443
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TypeOfPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
444
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0", ngImport: i0, type: TypeOfPipe, isStandalone: true, name: "typeOf" }); }
|
|
445
|
-
}
|
|
446
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TypeOfPipe, decorators: [{
|
|
447
|
-
type: Pipe,
|
|
448
|
-
args: [{
|
|
449
|
-
name: 'typeOf',
|
|
450
|
-
standalone: true,
|
|
451
|
-
}]
|
|
452
|
-
}] });
|
|
453
|
-
|
|
454
425
|
/**
|
|
455
426
|
* Reusable Auto Complete component that extends MatAutoComplete to show Clear icon and Arrow buttons
|
|
456
427
|
*
|
|
@@ -458,8 +429,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
458
429
|
* @since 12.0.0
|
|
459
430
|
*/
|
|
460
431
|
class AutocompleteComponent {
|
|
461
|
-
constructor(
|
|
462
|
-
this.cdRef =
|
|
432
|
+
constructor() {
|
|
433
|
+
this.cdRef = inject(ChangeDetectorRef);
|
|
434
|
+
/**
|
|
435
|
+
* Internal form control for the autocomplete
|
|
436
|
+
*/
|
|
437
|
+
this.control = new FormControl('');
|
|
463
438
|
/**
|
|
464
439
|
* Label of the AutoComplete
|
|
465
440
|
*/
|
|
@@ -492,118 +467,133 @@ class AutocompleteComponent {
|
|
|
492
467
|
* Specifies if the autocomplete is required. Default is not required.
|
|
493
468
|
*/
|
|
494
469
|
this.required = input(false);
|
|
470
|
+
/**
|
|
471
|
+
* Specifies if the autocomplete is disabled. Default is not required.
|
|
472
|
+
*/
|
|
473
|
+
this.disabled = input(false);
|
|
495
474
|
/**
|
|
496
475
|
* List of Objects that need to be bind and searched for
|
|
497
476
|
*/
|
|
498
477
|
this.data = input();
|
|
499
478
|
/**
|
|
500
479
|
* Emit selected value on selection changes
|
|
501
|
-
*
|
|
502
|
-
* @author Pavan Kumar Jadda
|
|
503
|
-
* @since 13.0.3
|
|
504
480
|
*/
|
|
505
481
|
this.onSelectionChange = output();
|
|
506
482
|
/**
|
|
507
483
|
* BehaviorSubject that shows the current active arrow icon
|
|
508
484
|
*/
|
|
509
485
|
this.arrowIconSubject = new BehaviorSubject('arrow_drop_down');
|
|
486
|
+
// ControlValueAccessor implementation
|
|
487
|
+
this.onChange = () => { };
|
|
488
|
+
this.onTouched = () => { };
|
|
489
|
+
}
|
|
490
|
+
writeValue(value) {
|
|
491
|
+
this.control.setValue(value, { emitEvent: false });
|
|
492
|
+
}
|
|
493
|
+
registerOnChange(fn) {
|
|
494
|
+
this.onChange = fn;
|
|
495
|
+
// Forward value changes from internal control to parent form
|
|
496
|
+
this.control.valueChanges.subscribe((value) => fn(value));
|
|
497
|
+
}
|
|
498
|
+
registerOnTouched(fn) {
|
|
499
|
+
this.onTouched = fn;
|
|
500
|
+
}
|
|
501
|
+
setDisabledState(isDisabled) {
|
|
502
|
+
if (isDisabled) {
|
|
503
|
+
this.control.disable();
|
|
504
|
+
}
|
|
505
|
+
else {
|
|
506
|
+
this.control.enable();
|
|
507
|
+
}
|
|
510
508
|
}
|
|
511
509
|
ngAfterContentChecked() {
|
|
512
510
|
this.cdRef.detectChanges();
|
|
513
511
|
}
|
|
514
|
-
/**
|
|
515
|
-
* Define autocomplete search filter on search text changes
|
|
516
|
-
*
|
|
517
|
-
* @author Pavan Kumar Jadda
|
|
518
|
-
* @since 12.0.0
|
|
519
|
-
*/
|
|
520
512
|
ngOnInit() {
|
|
521
|
-
this.filteredOptions = this.
|
|
513
|
+
this.filteredOptions = this.control.valueChanges.pipe(startWith(''), map((value) => (typeof value === 'string' ? value : value !== null ? value[this.bindLabel()] : '')), map((propertyName) => this.data()?.filter((option) => {
|
|
522
514
|
return typeof option === 'string'
|
|
523
|
-
? option?.toLowerCase().
|
|
515
|
+
? option?.toLowerCase().startsWith(propertyName.toLowerCase())
|
|
524
516
|
: option[this.bindLabel()]?.toLowerCase().indexOf(propertyName.toLowerCase()) === 0;
|
|
525
517
|
}) ?? this.data()?.slice()));
|
|
526
518
|
}
|
|
527
519
|
ngOnChanges(_changes) {
|
|
528
520
|
this.displayFn = this.displayFn.bind(this);
|
|
529
521
|
}
|
|
530
|
-
/**
|
|
531
|
-
* Clear input and Reset autocomplete form control
|
|
532
|
-
*
|
|
533
|
-
* @author Pavan Kumar Jadda
|
|
534
|
-
* @since 12.0.0
|
|
535
|
-
*/
|
|
536
522
|
clearInput(evt) {
|
|
537
523
|
evt.stopPropagation();
|
|
538
|
-
this.
|
|
524
|
+
this.control.reset();
|
|
525
|
+
this.onChange(null);
|
|
539
526
|
this.inputAutoComplete?.nativeElement.focus();
|
|
540
527
|
}
|
|
541
|
-
/**
|
|
542
|
-
* Open or Close panel
|
|
543
|
-
*
|
|
544
|
-
* @author Pavan Kumar Jadda
|
|
545
|
-
* @since 12.0.0
|
|
546
|
-
*/
|
|
547
528
|
openOrClosePanel(evt, trigger) {
|
|
548
529
|
evt.stopPropagation();
|
|
549
|
-
if (trigger.panelOpen)
|
|
530
|
+
if (trigger.panelOpen) {
|
|
550
531
|
trigger.closePanel();
|
|
551
|
-
|
|
532
|
+
}
|
|
533
|
+
else {
|
|
552
534
|
trigger.openPanel();
|
|
535
|
+
}
|
|
553
536
|
}
|
|
554
|
-
/**
|
|
555
|
-
* Display function that is used to show the values
|
|
556
|
-
*
|
|
557
|
-
* @author Pavan Kumar Jadda
|
|
558
|
-
* @since 12.0.0
|
|
559
|
-
*/
|
|
560
537
|
displayFn(object) {
|
|
561
538
|
if (this.displayWith !== undefined && this.displayWith !== null && typeof this.displayWith === 'function') {
|
|
562
539
|
this.displayFn = this.displayWith.bind(this);
|
|
563
540
|
return this.displayWith(object);
|
|
564
541
|
}
|
|
565
542
|
else {
|
|
566
|
-
if (typeof object === 'string')
|
|
543
|
+
if (typeof object === 'string') {
|
|
567
544
|
return object;
|
|
568
|
-
|
|
545
|
+
}
|
|
546
|
+
return object?.[this.bindLabel()] ? object[this.bindLabel()] : '';
|
|
569
547
|
}
|
|
570
548
|
}
|
|
571
|
-
/**
|
|
572
|
-
* Emit selected value
|
|
573
|
-
* @param $event - Event emitted by autocomplete
|
|
574
|
-
*
|
|
575
|
-
* @author Pavan Kumar Jadda
|
|
576
|
-
* @since 13.0.3
|
|
577
|
-
*/
|
|
578
549
|
emitSelectedValue($event) {
|
|
579
550
|
this.onSelectionChange.emit($event.source.value);
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
551
|
+
this.onChange($event.source.value);
|
|
552
|
+
this.onTouched();
|
|
553
|
+
}
|
|
554
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: AutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
555
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: AutocompleteComponent, isStandalone: true, selector: "autocomplete, lib-autocomplete", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeHolder: { classPropertyName: "placeHolder", publicName: "placeHolder", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, bindLabel: { classPropertyName: "bindLabel", publicName: "bindLabel", isSignal: true, isRequired: false, transformFunction: null }, bindValue: { classPropertyName: "bindValue", publicName: "bindValue", isSignal: true, isRequired: false, transformFunction: null }, displayWith: { classPropertyName: "displayWith", publicName: "displayWith", isSignal: false, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSelectionChange: "onSelectionChange" }, providers: [
|
|
556
|
+
{
|
|
557
|
+
provide: NG_VALUE_ACCESSOR,
|
|
558
|
+
useExisting: forwardRef(() => AutocompleteComponent),
|
|
559
|
+
multi: true,
|
|
560
|
+
},
|
|
561
|
+
], viewQueries: [{ propertyName: "inputAutoComplete", first: true, predicate: ["inputAutoComplete"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div>\n\t<mat-form-field appearance=\"fill\" class=\"{{ classes() }}\">\n\t\t<mat-label>{{ label() }}</mat-label>\n\t\t<input\n\t\t\t#inputAutoComplete\n\t\t\t#trigger=\"matAutocompleteTrigger\"\n\t\t\t[formControl]=\"control\"\n\t\t\t[matAutocomplete]=\"auto\"\n\t\t\t[placeholder]=\"placeHolder()\"\n\t\t\t[required]=\"required()\"\n\t\t\tmatInput\n\t\t\ttype=\"text\" />\n\n\t\t<div matSuffix style=\"display: flex\">\n\t\t\t@if (control.value) {\n\t\t\t\t<button (click)=\"clearInput($event)\" aria-label=\"Clear\" mat-icon-button type=\"button\">\n\t\t\t\t\t<mat-icon>clear</mat-icon>\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button (click)=\"openOrClosePanel($event, trigger)\" aria-label=\"Clear\" mat-icon-button type=\"button\">\n\t\t\t\t<mat-icon>{{ arrowIconSubject.getValue() }}</mat-icon>\n\t\t\t</button>\n\t\t</div>\n\n\t\t<mat-autocomplete\n\t\t\t#auto=\"matAutocomplete\"\n\t\t\t(closed)=\"arrowIconSubject.next('arrow_drop_down')\"\n\t\t\t(opened)=\"arrowIconSubject.next('arrow_drop_up')\"\n\t\t\t(optionSelected)=\"arrowIconSubject.next('arrow_drop_down')\"\n\t\t\t[displayWith]=\"displayFn\">\n\t\t\t@for (option of filteredOptions | async; track option[bindValue()]) {\n\t\t\t\t<mat-option (onSelectionChange)=\"emitSelectedValue($event)\" [value]=\"option\">\n\t\t\t\t\t@if (typeof option === 'string') {\n\t\t\t\t\t\t<ng-container>{{ option }}</ng-container>\n\t\t\t\t\t} @else if (typeof option === 'object') {\n\t\t\t\t\t\t<ng-container>{{ option[bindLabel()] }}</ng-container>\n\t\t\t\t\t}\n\t\t\t\t</mat-option>\n\t\t\t}\n\t\t</mat-autocomplete>\n\t</mat-form-field>\n</div>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "component", type: i3.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i3.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i3.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }] }); }
|
|
583
562
|
}
|
|
584
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: AutocompleteComponent, decorators: [{
|
|
585
564
|
type: Component,
|
|
586
|
-
args: [{ selector: 'autocomplete, lib-autocomplete', imports: [
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
AsyncPipe,
|
|
595
|
-
], template: "<div [formGroup]=\"inputFormGroup\">\n\t<mat-form-field appearance=\"fill\" class=\"{{ classes() }}\">\n\t\t<mat-label>{{ label() }}</mat-label>\n\t\t<input\n\t\t\t#inputAutoComplete\n\t\t\t#trigger=\"matAutocompleteTrigger\"\n\t\t\t[matAutocomplete]=\"auto\"\n\t\t\t[placeholder]=\"placeHolder()\"\n\t\t\t[required]=\"required()\"\n\t\t\tformControlName=\"autocomplete\"\n\t\t\tmatInput\n\t\t\ttype=\"text\" />\n\n\t\t<div matSuffix style=\"display: flex\">\n\t\t\t@if (!!inputFormGroup.get('autocomplete')?.value) {\n\t\t\t\t<button (click)=\"clearInput($event)\" aria-label=\"Clear\" mat-icon-button type=\"button\">\n\t\t\t\t\t<mat-icon>clear</mat-icon>\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button (click)=\"openOrClosePanel($event, trigger)\" aria-label=\"Clear\" mat-icon-button type=\"button\">\n\t\t\t\t<mat-icon>{{ arrowIconSubject.getValue() }}</mat-icon>\n\t\t\t</button>\n\t\t</div>\n\n\t\t<mat-autocomplete\n\t\t\t#auto=\"matAutocomplete\"\n\t\t\t(closed)=\"arrowIconSubject.next('arrow_drop_down')\"\n\t\t\t(opened)=\"arrowIconSubject.next('arrow_drop_up')\"\n\t\t\t(optionSelected)=\"arrowIconSubject.next('arrow_drop_down')\"\n\t\t\t[displayWith]=\"displayFn\">\n\t\t\t@for (option of filteredOptions | async; track option[bindValue()]) {\n\t\t\t\t<mat-option (onSelectionChange)=\"emitSelectedValue($event)\" [value]=\"option\">\n\t\t\t\t\t@if ((option | typeOf) === 'string') {\n\t\t\t\t\t\t<ng-container>{{ option }}</ng-container>\n\t\t\t\t\t} @else if ((option | typeOf) === 'object') {\n\t\t\t\t\t\t<ng-container>{{ option[bindLabel()] }}</ng-container>\n\t\t\t\t\t}\n\t\t\t\t</mat-option>\n\t\t\t}\n\t\t</mat-autocomplete>\n\t</mat-form-field>\n</div>\n" }]
|
|
596
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { inputAutoComplete: [{
|
|
565
|
+
args: [{ selector: 'autocomplete, lib-autocomplete', imports: [ReactiveFormsModule, MatFormFieldModule, MatAutocompleteModule, MatInputModule, MatButtonModule, MatIconModule, AsyncPipe], providers: [
|
|
566
|
+
{
|
|
567
|
+
provide: NG_VALUE_ACCESSOR,
|
|
568
|
+
useExisting: forwardRef(() => AutocompleteComponent),
|
|
569
|
+
multi: true,
|
|
570
|
+
},
|
|
571
|
+
], template: "<div>\n\t<mat-form-field appearance=\"fill\" class=\"{{ classes() }}\">\n\t\t<mat-label>{{ label() }}</mat-label>\n\t\t<input\n\t\t\t#inputAutoComplete\n\t\t\t#trigger=\"matAutocompleteTrigger\"\n\t\t\t[formControl]=\"control\"\n\t\t\t[matAutocomplete]=\"auto\"\n\t\t\t[placeholder]=\"placeHolder()\"\n\t\t\t[required]=\"required()\"\n\t\t\tmatInput\n\t\t\ttype=\"text\" />\n\n\t\t<div matSuffix style=\"display: flex\">\n\t\t\t@if (control.value) {\n\t\t\t\t<button (click)=\"clearInput($event)\" aria-label=\"Clear\" mat-icon-button type=\"button\">\n\t\t\t\t\t<mat-icon>clear</mat-icon>\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button (click)=\"openOrClosePanel($event, trigger)\" aria-label=\"Clear\" mat-icon-button type=\"button\">\n\t\t\t\t<mat-icon>{{ arrowIconSubject.getValue() }}</mat-icon>\n\t\t\t</button>\n\t\t</div>\n\n\t\t<mat-autocomplete\n\t\t\t#auto=\"matAutocomplete\"\n\t\t\t(closed)=\"arrowIconSubject.next('arrow_drop_down')\"\n\t\t\t(opened)=\"arrowIconSubject.next('arrow_drop_up')\"\n\t\t\t(optionSelected)=\"arrowIconSubject.next('arrow_drop_down')\"\n\t\t\t[displayWith]=\"displayFn\">\n\t\t\t@for (option of filteredOptions | async; track option[bindValue()]) {\n\t\t\t\t<mat-option (onSelectionChange)=\"emitSelectedValue($event)\" [value]=\"option\">\n\t\t\t\t\t@if (typeof option === 'string') {\n\t\t\t\t\t\t<ng-container>{{ option }}</ng-container>\n\t\t\t\t\t} @else if (typeof option === 'object') {\n\t\t\t\t\t\t<ng-container>{{ option[bindLabel()] }}</ng-container>\n\t\t\t\t\t}\n\t\t\t\t</mat-option>\n\t\t\t}\n\t\t</mat-autocomplete>\n\t</mat-form-field>\n</div>\n" }]
|
|
572
|
+
}], propDecorators: { inputAutoComplete: [{
|
|
597
573
|
type: ViewChild,
|
|
598
574
|
args: ['inputAutoComplete']
|
|
599
|
-
}], inputFormGroup: [{
|
|
600
|
-
type: Input
|
|
601
575
|
}], displayWith: [{
|
|
602
576
|
type: Input
|
|
603
577
|
}, {
|
|
604
578
|
type: Optional
|
|
605
579
|
}] } });
|
|
606
580
|
|
|
581
|
+
class PrintOptions {
|
|
582
|
+
constructor(options) {
|
|
583
|
+
this.printSectionId = '';
|
|
584
|
+
this.printTitle = '';
|
|
585
|
+
this.useExistingCss = false;
|
|
586
|
+
this.bodyClass = '';
|
|
587
|
+
this.openNewTab = false;
|
|
588
|
+
this.previewOnly = false;
|
|
589
|
+
this.closeWindow = true;
|
|
590
|
+
this.printDelay = 0;
|
|
591
|
+
if (options) {
|
|
592
|
+
Object.assign(this, options);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
|
|
607
597
|
/**
|
|
608
598
|
* Reusable Angular directory that prints given contents of HTML element
|
|
609
599
|
*
|
|
@@ -655,6 +645,7 @@ class NgxPrintDirective {
|
|
|
655
645
|
*/
|
|
656
646
|
this.hideMatTablePaginator = false;
|
|
657
647
|
this.printStyleArray = [];
|
|
648
|
+
this.printOptions = new PrintOptions();
|
|
658
649
|
/**
|
|
659
650
|
* List of Style sheet files
|
|
660
651
|
*
|
|
@@ -663,6 +654,14 @@ class NgxPrintDirective {
|
|
|
663
654
|
*/
|
|
664
655
|
this.styleSheetFileArray = '';
|
|
665
656
|
}
|
|
657
|
+
/**
|
|
658
|
+
* Prevents the print dialog from opening on the window
|
|
659
|
+
*
|
|
660
|
+
* @memberof NgxPrintDirective
|
|
661
|
+
*/
|
|
662
|
+
set previewOnly(value) {
|
|
663
|
+
this.printOptions = { ...this.printOptions, previewOnly: value };
|
|
664
|
+
}
|
|
666
665
|
/**
|
|
667
666
|
* List of CSS properties that needs to be applied while printing the document
|
|
668
667
|
*
|
|
@@ -818,13 +817,12 @@ class NgxPrintDirective {
|
|
|
818
817
|
returnStyleValues() {
|
|
819
818
|
return `<style> ${this.printStyleArray.join(' ').replace(/,/g, ';')} </style>`;
|
|
820
819
|
}
|
|
821
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
822
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
820
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: NgxPrintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
821
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0", type: NgxPrintDirective, isStandalone: true, selector: "button[ngxPrint], button[print]", inputs: { printSectionId: "printSectionId", printTitle: "printTitle", useExistingCss: "useExistingCss", printDelay: "printDelay", matTableDataSource: "matTableDataSource", paginator: "paginator", paginatorId: "paginatorId", inputFilterId: "inputFilterId", isMatTable: "isMatTable", hideMatTablePaginator: "hideMatTablePaginator", previewOnly: "previewOnly", printStyle: "printStyle", styleSheetFile: "styleSheetFile" }, host: { listeners: { "click": "print()" } }, ngImport: i0 }); }
|
|
823
822
|
}
|
|
824
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
823
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: NgxPrintDirective, decorators: [{
|
|
825
824
|
type: Directive,
|
|
826
825
|
args: [{
|
|
827
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
828
826
|
selector: 'button[ngxPrint], button[print]',
|
|
829
827
|
standalone: true,
|
|
830
828
|
}]
|
|
@@ -848,6 +846,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
848
846
|
type: Input
|
|
849
847
|
}], hideMatTablePaginator: [{
|
|
850
848
|
type: Input
|
|
849
|
+
}], previewOnly: [{
|
|
850
|
+
type: Input
|
|
851
851
|
}], printStyle: [{
|
|
852
852
|
type: Input
|
|
853
853
|
}], styleSheetFile: [{
|
|
@@ -860,7 +860,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
860
860
|
class PreventMultipleClicksDirective {
|
|
861
861
|
constructor() {
|
|
862
862
|
this.throttleTime = input(2000);
|
|
863
|
-
this.throttleClick =
|
|
863
|
+
this.throttleClick = output();
|
|
864
864
|
this.clicks = new Subject();
|
|
865
865
|
}
|
|
866
866
|
/**
|
|
@@ -882,18 +882,16 @@ class PreventMultipleClicksDirective {
|
|
|
882
882
|
ngOnDestroy() {
|
|
883
883
|
this.subscription?.unsubscribe();
|
|
884
884
|
}
|
|
885
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
886
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
885
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: PreventMultipleClicksDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
886
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.0", type: PreventMultipleClicksDirective, isStandalone: true, selector: "[preventMultipleClicks]", inputs: { throttleTime: { classPropertyName: "throttleTime", publicName: "throttleTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { throttleClick: "throttleClick" }, host: { listeners: { "click": "clickEvent($event)" } }, ngImport: i0 }); }
|
|
887
887
|
}
|
|
888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
888
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: PreventMultipleClicksDirective, decorators: [{
|
|
889
889
|
type: Directive,
|
|
890
890
|
args: [{
|
|
891
891
|
selector: '[preventMultipleClicks]',
|
|
892
892
|
standalone: true,
|
|
893
893
|
}]
|
|
894
|
-
}], propDecorators: {
|
|
895
|
-
type: Output
|
|
896
|
-
}], clickEvent: [{
|
|
894
|
+
}], propDecorators: { clickEvent: [{
|
|
897
895
|
type: HostListener,
|
|
898
896
|
args: ['click', ['$event']]
|
|
899
897
|
}] } });
|
|
@@ -965,10 +963,10 @@ class BaseButtonComponent {
|
|
|
965
963
|
*/
|
|
966
964
|
this.onKeyUp = output();
|
|
967
965
|
}
|
|
968
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
969
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
966
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: BaseButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
967
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.0", type: BaseButtonComponent, isStandalone: true, selector: "ng-component", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, loadingLabel: { classPropertyName: "loadingLabel", publicName: "loadingLabel", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, dataCy: { classPropertyName: "dataCy", publicName: "dataCy", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick", onFocus: "onFocus", onBlur: "onBlur", onKeyDown: "onKeyDown", onKeyUp: "onKeyUp" }, ngImport: i0, template: ``, isInline: true }); }
|
|
970
968
|
}
|
|
971
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
969
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: BaseButtonComponent, decorators: [{
|
|
972
970
|
type: Component,
|
|
973
971
|
args: [{
|
|
974
972
|
standalone: true,
|
|
@@ -983,8 +981,8 @@ class BsLinkButtonComponent extends BaseButtonComponent {
|
|
|
983
981
|
this.icon = input('search');
|
|
984
982
|
this.classes = input('btn text-primary');
|
|
985
983
|
}
|
|
986
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
987
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
984
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: BsLinkButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
985
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.0", type: BsLinkButtonComponent, isStandalone: true, selector: "bs-link-button", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
988
986
|
<a
|
|
989
987
|
type="{{ type() }}"
|
|
990
988
|
class="{{ classes() }}"
|
|
@@ -996,14 +994,14 @@ class BsLinkButtonComponent extends BaseButtonComponent {
|
|
|
996
994
|
[disabled]="disabled()"
|
|
997
995
|
[type]="type()"
|
|
998
996
|
[style]="style()"
|
|
999
|
-
[attr.data-cy]="'
|
|
997
|
+
[attr.data-cy]="'bs-link-button'"
|
|
1000
998
|
mat-button>
|
|
1001
999
|
<mat-icon>{{ icon() }}</mat-icon>
|
|
1002
1000
|
{{ label() }}
|
|
1003
1001
|
</a>
|
|
1004
|
-
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatAnchor, selector: "a[mat-button],
|
|
1002
|
+
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatAnchor, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }] }); }
|
|
1005
1003
|
}
|
|
1006
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1004
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: BsLinkButtonComponent, decorators: [{
|
|
1007
1005
|
type: Component,
|
|
1008
1006
|
args: [{ selector: 'bs-link-button', imports: [MatIcon, MatAnchor], template: `
|
|
1009
1007
|
<a
|
|
@@ -1017,7 +1015,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
1017
1015
|
[disabled]="disabled()"
|
|
1018
1016
|
[type]="type()"
|
|
1019
1017
|
[style]="style()"
|
|
1020
|
-
[attr.data-cy]="'
|
|
1018
|
+
[attr.data-cy]="'bs-link-button'"
|
|
1021
1019
|
mat-button>
|
|
1022
1020
|
<mat-icon>{{ icon() }}</mat-icon>
|
|
1023
1021
|
{{ label() }}
|
|
@@ -1033,8 +1031,8 @@ class DeleteButtonComponent extends BaseButtonComponent {
|
|
|
1033
1031
|
this.icon = input('delete');
|
|
1034
1032
|
this.classes = input('delete-button');
|
|
1035
1033
|
}
|
|
1036
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1037
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1034
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: DeleteButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1035
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: DeleteButtonComponent, isStandalone: true, selector: "delete-button", inputs: { loadingLabel: { classPropertyName: "loadingLabel", publicName: "loadingLabel", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
1038
1036
|
<button
|
|
1039
1037
|
mat-raised-button
|
|
1040
1038
|
class="btn {{ classes() }}"
|
|
@@ -1055,9 +1053,9 @@ class DeleteButtonComponent extends BaseButtonComponent {
|
|
|
1055
1053
|
}
|
|
1056
1054
|
{{ loading() ? loadingLabel() : label() }}
|
|
1057
1055
|
</button>
|
|
1058
|
-
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$3.MatButton, selector: " button[mat-button], button[mat-raised-button],
|
|
1056
|
+
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
1059
1057
|
}
|
|
1060
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: DeleteButtonComponent, decorators: [{
|
|
1061
1059
|
type: Component,
|
|
1062
1060
|
args: [{ selector: 'delete-button', imports: [MatButtonModule, MatIconModule], template: `
|
|
1063
1061
|
<button
|
|
@@ -1090,8 +1088,8 @@ class EditButtonComponent extends BaseButtonComponent {
|
|
|
1090
1088
|
this.icon = input('edit');
|
|
1091
1089
|
this.classes = input('primary-button');
|
|
1092
1090
|
}
|
|
1093
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1094
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1091
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: EditButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1092
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.0", type: EditButtonComponent, isStandalone: true, selector: "edit-button", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
1095
1093
|
<button
|
|
1096
1094
|
class="{{ classes() }}"
|
|
1097
1095
|
(click)="onClick.emit($event)"
|
|
@@ -1107,9 +1105,9 @@ class EditButtonComponent extends BaseButtonComponent {
|
|
|
1107
1105
|
<mat-icon>{{ icon() }}</mat-icon>
|
|
1108
1106
|
{{ label() }}
|
|
1109
1107
|
</button>
|
|
1110
|
-
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button],
|
|
1108
|
+
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
1111
1109
|
}
|
|
1112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: EditButtonComponent, decorators: [{
|
|
1113
1111
|
type: Component,
|
|
1114
1112
|
args: [{ selector: 'edit-button', imports: [MatButton, MatIcon], template: `
|
|
1115
1113
|
<button
|
|
@@ -1139,10 +1137,10 @@ class EditSolidSvgComponent {
|
|
|
1139
1137
|
constructor(iconRegistry, sanitizer) {
|
|
1140
1138
|
iconRegistry.addSvgIconLiteral('edit-solid', sanitizer.bypassSecurityTrustHtml(EDIT_ICON));
|
|
1141
1139
|
}
|
|
1142
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1143
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1140
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: EditSolidSvgComponent, deps: [{ token: i1$4.MatIconRegistry }, { token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1141
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0", type: EditSolidSvgComponent, isStandalone: true, selector: "edit-solid-svg", ngImport: i0, template: ` <mat-icon aria-hidden="false" aria-label="Edit" svgIcon="edit-solid"></mat-icon> `, isInline: true, styles: [".mat-icon{vertical-align:bottom;padding-left:5px}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
1144
1142
|
}
|
|
1145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: EditSolidSvgComponent, decorators: [{
|
|
1146
1144
|
type: Component,
|
|
1147
1145
|
args: [{ selector: 'edit-solid-svg', imports: [MatIconModule], template: ` <mat-icon aria-hidden="false" aria-label="Edit" svgIcon="edit-solid"></mat-icon> `, styles: [".mat-icon{vertical-align:bottom;padding-left:5px}\n"] }]
|
|
1148
1146
|
}], ctorParameters: () => [{ type: i1$4.MatIconRegistry }, { type: i1$1.DomSanitizer }] });
|
|
@@ -1153,8 +1151,8 @@ class EditBsButtonComponent extends BaseButtonComponent {
|
|
|
1153
1151
|
this.label = input('Edit');
|
|
1154
1152
|
this.classes = input('text-primary');
|
|
1155
1153
|
}
|
|
1156
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1157
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1154
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: EditBsButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1155
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.0", type: EditBsButtonComponent, isStandalone: true, selector: "edit-bs-button", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
1158
1156
|
<button
|
|
1159
1157
|
color="primary"
|
|
1160
1158
|
type="{{ type() }}"
|
|
@@ -1172,11 +1170,11 @@ class EditBsButtonComponent extends BaseButtonComponent {
|
|
|
1172
1170
|
<edit-solid-svg></edit-solid-svg>
|
|
1173
1171
|
{{ label() }}
|
|
1174
1172
|
</button>
|
|
1175
|
-
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "ngmodule", type:
|
|
1173
|
+
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: EditSolidSvgComponent, selector: "edit-solid-svg" }] }); }
|
|
1176
1174
|
}
|
|
1177
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: EditBsButtonComponent, decorators: [{
|
|
1178
1176
|
type: Component,
|
|
1179
|
-
args: [{ selector: 'edit-bs-button', imports: [
|
|
1177
|
+
args: [{ selector: 'edit-bs-button', imports: [MatButtonModule, MatIconModule, EditSolidSvgComponent], template: `
|
|
1180
1178
|
<button
|
|
1181
1179
|
color="primary"
|
|
1182
1180
|
type="{{ type() }}"
|
|
@@ -1204,8 +1202,8 @@ class EditSvgIconButtonComponent extends BaseButtonComponent {
|
|
|
1204
1202
|
this.icon = input('edit');
|
|
1205
1203
|
this.classes = input('primary-button');
|
|
1206
1204
|
}
|
|
1207
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1208
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1205
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: EditSvgIconButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1206
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.0", type: EditSvgIconButtonComponent, isStandalone: true, selector: "edit-svg-icon-button", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
1209
1207
|
<button
|
|
1210
1208
|
type="{{ type() }}"
|
|
1211
1209
|
class="{{ classes() }}"
|
|
@@ -1222,9 +1220,9 @@ class EditSvgIconButtonComponent extends BaseButtonComponent {
|
|
|
1222
1220
|
<edit-solid-svg></edit-solid-svg>
|
|
1223
1221
|
{{ label() }}
|
|
1224
1222
|
</button>
|
|
1225
|
-
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button],
|
|
1223
|
+
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: EditSolidSvgComponent, selector: "edit-solid-svg" }] }); }
|
|
1226
1224
|
}
|
|
1227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: EditSvgIconButtonComponent, decorators: [{
|
|
1228
1226
|
type: Component,
|
|
1229
1227
|
args: [{ selector: 'edit-svg-icon-button', imports: [MatButton, EditSolidSvgComponent], template: `
|
|
1230
1228
|
<button
|
|
@@ -1253,8 +1251,8 @@ class ManageButtonComponent extends BaseButtonComponent {
|
|
|
1253
1251
|
this.icon = input('settings');
|
|
1254
1252
|
this.classes = input('mr-3 btn btn-secondary secondary-button');
|
|
1255
1253
|
}
|
|
1256
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1257
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1254
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ManageButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1255
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.0", type: ManageButtonComponent, isStandalone: true, selector: "manage-button", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
1258
1256
|
<button
|
|
1259
1257
|
mat-raised-button
|
|
1260
1258
|
class="{{ classes() }}"
|
|
@@ -1268,9 +1266,9 @@ class ManageButtonComponent extends BaseButtonComponent {
|
|
|
1268
1266
|
<mat-icon>{{ icon() }}</mat-icon>
|
|
1269
1267
|
{{ label() }}
|
|
1270
1268
|
</button>
|
|
1271
|
-
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button],
|
|
1269
|
+
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
1272
1270
|
}
|
|
1273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ManageButtonComponent, decorators: [{
|
|
1274
1272
|
type: Component,
|
|
1275
1273
|
args: [{ selector: 'manage-button', imports: [MatButton, MatIcon], template: `
|
|
1276
1274
|
<button
|
|
@@ -1297,8 +1295,8 @@ class SavePrimaryButtonComponent extends BaseButtonComponent {
|
|
|
1297
1295
|
this.icon = input('save');
|
|
1298
1296
|
this.classes = input('btn-primary primary-button');
|
|
1299
1297
|
}
|
|
1300
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1301
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1298
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SavePrimaryButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1299
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: SavePrimaryButtonComponent, isStandalone: true, selector: "save-primary-button", inputs: { loadingLabel: { classPropertyName: "loadingLabel", publicName: "loadingLabel", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
1302
1300
|
<button
|
|
1303
1301
|
mat-raised-button
|
|
1304
1302
|
class="btn {{ classes() }}"
|
|
@@ -1319,9 +1317,9 @@ class SavePrimaryButtonComponent extends BaseButtonComponent {
|
|
|
1319
1317
|
}
|
|
1320
1318
|
{{ loading() ? loadingLabel() : label() }}
|
|
1321
1319
|
</button>
|
|
1322
|
-
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button],
|
|
1320
|
+
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
1323
1321
|
}
|
|
1324
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SavePrimaryButtonComponent, decorators: [{
|
|
1325
1323
|
type: Component,
|
|
1326
1324
|
args: [{ selector: 'save-primary-button', imports: [MatButton, MatIcon], template: `
|
|
1327
1325
|
<button
|
|
@@ -1355,8 +1353,8 @@ class SearchButtonComponent extends BaseButtonComponent {
|
|
|
1355
1353
|
this.icon = input('search');
|
|
1356
1354
|
this.classes = input('btn-primary primary-button');
|
|
1357
1355
|
}
|
|
1358
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1359
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1356
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SearchButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1357
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: SearchButtonComponent, isStandalone: true, selector: "search-button", inputs: { loadingLabel: { classPropertyName: "loadingLabel", publicName: "loadingLabel", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
1360
1358
|
<button
|
|
1361
1359
|
class="btn btn-primary primary-button {{ loading() || disabled() ? 'disabled' : '' }}"
|
|
1362
1360
|
(click)="onClick.emit($event)"
|
|
@@ -1375,11 +1373,11 @@ class SearchButtonComponent extends BaseButtonComponent {
|
|
|
1375
1373
|
}
|
|
1376
1374
|
{{ loading() ? loadingLabel() : label() }}
|
|
1377
1375
|
</button>
|
|
1378
|
-
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "ngmodule", type:
|
|
1376
|
+
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
1379
1377
|
}
|
|
1380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SearchButtonComponent, decorators: [{
|
|
1381
1379
|
type: Component,
|
|
1382
|
-
args: [{ selector: 'search-button', imports: [
|
|
1380
|
+
args: [{ selector: 'search-button', imports: [MatButtonModule, MatIconModule], template: `
|
|
1383
1381
|
<button
|
|
1384
1382
|
class="btn btn-primary primary-button {{ loading() || disabled() ? 'disabled' : '' }}"
|
|
1385
1383
|
(click)="onClick.emit($event)"
|
|
@@ -1409,8 +1407,8 @@ class SuccessButtonComponent extends BaseButtonComponent {
|
|
|
1409
1407
|
this.icon = input('save');
|
|
1410
1408
|
this.classes = input('success-button');
|
|
1411
1409
|
}
|
|
1412
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1413
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1410
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SuccessButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1411
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: SuccessButtonComponent, isStandalone: true, selector: "success-button", inputs: { loadingLabel: { classPropertyName: "loadingLabel", publicName: "loadingLabel", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
1414
1412
|
<button
|
|
1415
1413
|
mat-raised-button
|
|
1416
1414
|
class="btn {{ classes() }}"
|
|
@@ -1431,9 +1429,9 @@ class SuccessButtonComponent extends BaseButtonComponent {
|
|
|
1431
1429
|
}
|
|
1432
1430
|
{{ loading() ? loadingLabel() : label() }}
|
|
1433
1431
|
</button>
|
|
1434
|
-
`, isInline: true, dependencies: [{ kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button],
|
|
1432
|
+
`, isInline: true, dependencies: [{ kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
1435
1433
|
}
|
|
1436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SuccessButtonComponent, decorators: [{
|
|
1437
1435
|
type: Component,
|
|
1438
1436
|
args: [{
|
|
1439
1437
|
selector: 'success-button',
|
|
@@ -1469,8 +1467,8 @@ class ViewButtonComponent extends BaseButtonComponent {
|
|
|
1469
1467
|
this.label = input('View');
|
|
1470
1468
|
this.icon = input('visibility');
|
|
1471
1469
|
}
|
|
1472
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1473
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1470
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ViewButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1471
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.0", type: ViewButtonComponent, isStandalone: true, selector: "view-button", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
1474
1472
|
<button
|
|
1475
1473
|
color="primary"
|
|
1476
1474
|
(click)="onClick.emit($event)"
|
|
@@ -1483,9 +1481,9 @@ class ViewButtonComponent extends BaseButtonComponent {
|
|
|
1483
1481
|
<mat-icon>{{ icon() }}</mat-icon>
|
|
1484
1482
|
{{ label() }}
|
|
1485
1483
|
</button>
|
|
1486
|
-
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button],
|
|
1484
|
+
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
1487
1485
|
}
|
|
1488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1486
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ViewButtonComponent, decorators: [{
|
|
1489
1487
|
type: Component,
|
|
1490
1488
|
args: [{ selector: 'view-button', imports: [MatButton, MatIcon], template: `
|
|
1491
1489
|
<button
|
|
@@ -1510,8 +1508,8 @@ class ViewPrimaryButtonComponent extends BaseButtonComponent {
|
|
|
1510
1508
|
this.icon = input('visibility');
|
|
1511
1509
|
this.classes = input('btn-primary primary-button');
|
|
1512
1510
|
}
|
|
1513
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1514
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1511
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ViewPrimaryButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1512
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.0", type: ViewPrimaryButtonComponent, isStandalone: true, selector: "view-primary-button", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
1515
1513
|
<button
|
|
1516
1514
|
mat-raised-button
|
|
1517
1515
|
class="btn {{ classes() }}"
|
|
@@ -1527,9 +1525,9 @@ class ViewPrimaryButtonComponent extends BaseButtonComponent {
|
|
|
1527
1525
|
<mat-icon>{{ icon() }}</mat-icon>
|
|
1528
1526
|
{{ label() }}
|
|
1529
1527
|
</button>
|
|
1530
|
-
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button],
|
|
1528
|
+
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
1531
1529
|
}
|
|
1532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ViewPrimaryButtonComponent, decorators: [{
|
|
1533
1531
|
type: Component,
|
|
1534
1532
|
args: [{ selector: 'view-primary-button', imports: [MatButton, MatIcon], template: `
|
|
1535
1533
|
<button
|
|
@@ -1559,8 +1557,8 @@ class PrimaryButtonComponent extends BaseButtonComponent {
|
|
|
1559
1557
|
this.showIcon = input(false);
|
|
1560
1558
|
this.classes = input('btn-primary primary-button');
|
|
1561
1559
|
}
|
|
1562
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1563
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1560
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: PrimaryButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1561
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: PrimaryButtonComponent, isStandalone: true, selector: "primary-button", inputs: { loadingLabel: { classPropertyName: "loadingLabel", publicName: "loadingLabel", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
1564
1562
|
<button
|
|
1565
1563
|
mat-raised-button
|
|
1566
1564
|
class="btn {{ classes() }}"
|
|
@@ -1581,9 +1579,9 @@ class PrimaryButtonComponent extends BaseButtonComponent {
|
|
|
1581
1579
|
}
|
|
1582
1580
|
{{ loading() ? loadingLabel() : label() }}
|
|
1583
1581
|
</button>
|
|
1584
|
-
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button],
|
|
1582
|
+
`, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
1585
1583
|
}
|
|
1586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: PrimaryButtonComponent, decorators: [{
|
|
1587
1585
|
type: Component,
|
|
1588
1586
|
args: [{ selector: 'primary-button', imports: [MatButton, MatIcon], template: `
|
|
1589
1587
|
<button
|
|
@@ -1610,21 +1608,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
1610
1608
|
}], ctorParameters: () => [] });
|
|
1611
1609
|
|
|
1612
1610
|
class PdfExportButtonComponent {
|
|
1613
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1614
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1611
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: PdfExportButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1612
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0", type: PdfExportButtonComponent, isStandalone: true, selector: "pdf-export-button", ngImport: i0, template: ` <button class="pdf-export-button" mat-raised-button type="button" data-cy="pdf-export-button">PDF</button> `, isInline: true, styles: [".pdf-export-button{margin-left:20px!important;width:100px;color:#fff!important;background-color:#a3071b!important;border-radius:24px!important}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }] }); }
|
|
1615
1613
|
}
|
|
1616
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: PdfExportButtonComponent, decorators: [{
|
|
1617
1615
|
type: Component,
|
|
1618
1616
|
args: [{ selector: 'pdf-export-button', imports: [MatButtonModule], template: ` <button class="pdf-export-button" mat-raised-button type="button" data-cy="pdf-export-button">PDF</button> `, styles: [".pdf-export-button{margin-left:20px!important;width:100px;color:#fff!important;background-color:#a3071b!important;border-radius:24px!important}\n"] }]
|
|
1619
1617
|
}] });
|
|
1620
1618
|
|
|
1621
1619
|
class ExcelExportButtonComponent {
|
|
1622
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1623
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1620
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ExcelExportButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1621
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0", type: ExcelExportButtonComponent, isStandalone: true, selector: "excel-export-button", ngImport: i0, template: ` <button class="excel-export-button" mat-raised-button type="button" data-cy="excel-export-button">Excel</button> `, isInline: true, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n", ".excel-export-button{margin-left:20px!important;margin-right:20px!important;width:100px;color:#fff!important;background-color:#006400!important;border-radius:24px!important}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }] }); }
|
|
1624
1622
|
}
|
|
1625
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1623
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ExcelExportButtonComponent, decorators: [{
|
|
1626
1624
|
type: Component,
|
|
1627
|
-
args: [{ selector: 'excel-export-button', imports: [
|
|
1625
|
+
args: [{ selector: 'excel-export-button', imports: [MatButtonModule], template: ` <button class="excel-export-button" mat-raised-button type="button" data-cy="excel-export-button">Excel</button> `, styles: [".primary-button,.primary-button:hover,.primary-button:active,.primary-button:visited{color:#fff!important;background-color:var(--primary-color)!important}.secondary-button,.secondary-button:hover,.secondary-button:active,.secondary-button:visited{color:#fff!important;background-color:var(--secondary-color)!important}.success-button,.success-button:hover,.success-button:active,.success-button:visited{color:#fff!important;background-color:var(--success-color)!important}.delete-button,.delete-button:hover,.delete-button:active,.success-button:visited{color:#fff!important;background-color:var(--delete-color)!important}\n", ".excel-export-button{margin-left:20px!important;margin-right:20px!important;width:100px;color:#fff!important;background-color:#006400!important;border-radius:24px!important}\n"] }]
|
|
1628
1626
|
}] });
|
|
1629
1627
|
|
|
1630
1628
|
class ConfirmDialogComponent {
|
|
@@ -1643,8 +1641,8 @@ class ConfirmDialogComponent {
|
|
|
1643
1641
|
// Close the dialog, return true
|
|
1644
1642
|
this.dialogRef.close(true);
|
|
1645
1643
|
}
|
|
1646
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1647
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1644
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ConfirmDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$5.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1645
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0", type: ConfirmDialogComponent, isStandalone: true, selector: "app-confirm-dialog", ngImport: i0, template: `
|
|
1648
1646
|
<div class="mat-dialog-title" style="text-align: center">
|
|
1649
1647
|
<h3 class="m-3 mat-headline-5 ">{{ title }}</h3>
|
|
1650
1648
|
</div>
|
|
@@ -1658,9 +1656,9 @@ class ConfirmDialogComponent {
|
|
|
1658
1656
|
<button (click)="onDismiss()" mat-raised-button>No</button>
|
|
1659
1657
|
<button (click)="onConfirm()" class="primary-button" mat-raised-button>Yes</button>
|
|
1660
1658
|
</div>
|
|
1661
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$3.MatButton, selector: " button[mat-button], button[mat-raised-button],
|
|
1659
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i3$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$5.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$5.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }] }); }
|
|
1662
1660
|
}
|
|
1663
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
|
|
1664
1662
|
type: Component,
|
|
1665
1663
|
args: [{ selector: 'app-confirm-dialog', imports: [MatButtonModule, MatDividerModule, MatDialogModule], template: `
|
|
1666
1664
|
<div class="mat-dialog-title" style="text-align: center">
|
|
@@ -1696,8 +1694,8 @@ class ErrorSnackBarComponent {
|
|
|
1696
1694
|
close() {
|
|
1697
1695
|
this.msb.dismissWithAction();
|
|
1698
1696
|
}
|
|
1699
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1700
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1697
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ErrorSnackBarComponent, deps: [{ token: i1$6.MatSnackBarRef }, { token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1698
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0", type: ErrorSnackBarComponent, isStandalone: true, selector: "app-error-snack-bar", ngImport: i0, template: `
|
|
1701
1699
|
<div class="custom-flex-center error-snackbar">
|
|
1702
1700
|
<mat-icon>error</mat-icon>
|
|
1703
1701
|
<label>{{ data.message }}</label>
|
|
@@ -1705,11 +1703,11 @@ class ErrorSnackBarComponent {
|
|
|
1705
1703
|
<mat-icon>close</mat-icon>
|
|
1706
1704
|
</button>
|
|
1707
1705
|
</div>
|
|
1708
|
-
`, isInline: true, styles: [":root{--primary-color: #153d77;--secondary-color: #6c757d;--white-color: #fff;--success-color: #198754;--delete-color: #dc3545;--background-color: #f2f2f2}.success-snackbar{color:#fff;--mdc-snackbar-container-color: var(--success-color);--mat-mdc-snack-bar-button-color: var(--white-color)}.error-snackbar{color:#fff;--mdc-snackbar-container-color: var(--delete-color);--mat-mdc-snack-bar-button-color: var(--white-color)}.light-success-snackbar{color:#155724;background-color:#d4edda;--mdc-snackbar-container-color: #d4edda;--mat-mdc-snack-bar-button-color: darkgreen}.light-error-snackbar{color:#721c24;--mdc-snackbar-container-color: var(--success-color);--mat-mdc-snack-bar-button-color: darkred;border-color:#f5c6cb}\n"], dependencies: [{ kind: "ngmodule", type:
|
|
1706
|
+
`, isInline: true, styles: [":root{--primary-color: #153d77;--secondary-color: #6c757d;--white-color: #fff;--success-color: #198754;--delete-color: #dc3545;--background-color: #f2f2f2}.success-snackbar{color:#fff;--mdc-snackbar-container-color: var(--success-color);--mat-mdc-snack-bar-button-color: var(--white-color)}.error-snackbar{color:#fff;--mdc-snackbar-container-color: var(--delete-color);--mat-mdc-snack-bar-button-color: var(--white-color)}.light-success-snackbar{color:#155724;background-color:#d4edda;--mdc-snackbar-container-color: #d4edda;--mat-mdc-snack-bar-button-color: darkgreen}.light-error-snackbar{color:#721c24;--mdc-snackbar-container-color: var(--success-color);--mat-mdc-snack-bar-button-color: darkred;border-color:#f5c6cb}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }] }); }
|
|
1709
1707
|
}
|
|
1710
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1708
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ErrorSnackBarComponent, decorators: [{
|
|
1711
1709
|
type: Component,
|
|
1712
|
-
args: [{ selector: 'app-error-snack-bar', imports: [
|
|
1710
|
+
args: [{ selector: 'app-error-snack-bar', imports: [MatIconModule, MatButtonModule], template: `
|
|
1713
1711
|
<div class="custom-flex-center error-snackbar">
|
|
1714
1712
|
<mat-icon>error</mat-icon>
|
|
1715
1713
|
<label>{{ data.message }}</label>
|
|
@@ -1737,8 +1735,8 @@ class SuccessSnackBarComponent {
|
|
|
1737
1735
|
close() {
|
|
1738
1736
|
this.msb.dismissWithAction();
|
|
1739
1737
|
}
|
|
1740
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1741
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1738
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SuccessSnackBarComponent, deps: [{ token: i1$6.MatSnackBarRef }, { token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1739
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0", type: SuccessSnackBarComponent, isStandalone: true, selector: "app-success-snack-bar", ngImport: i0, template: `
|
|
1742
1740
|
<div class="custom-flex-center success-snackbar">
|
|
1743
1741
|
<mat-icon>check_circle</mat-icon>
|
|
1744
1742
|
<label>{{ data.message }}</label>
|
|
@@ -1746,11 +1744,11 @@ class SuccessSnackBarComponent {
|
|
|
1746
1744
|
<mat-icon>close</mat-icon>
|
|
1747
1745
|
</button>
|
|
1748
1746
|
</div>
|
|
1749
|
-
`, isInline: true, styles: [":root{--primary-color: #153d77;--secondary-color: #6c757d;--white-color: #fff;--success-color: #198754;--delete-color: #dc3545;--background-color: #f2f2f2}.success-snackbar{color:#fff;--mdc-snackbar-container-color: var(--success-color);--mat-mdc-snack-bar-button-color: var(--white-color)}.error-snackbar{color:#fff;--mdc-snackbar-container-color: var(--delete-color);--mat-mdc-snack-bar-button-color: var(--white-color)}.light-success-snackbar{color:#155724;background-color:#d4edda;--mdc-snackbar-container-color: #d4edda;--mat-mdc-snack-bar-button-color: darkgreen}.light-error-snackbar{color:#721c24;--mdc-snackbar-container-color: var(--success-color);--mat-mdc-snack-bar-button-color: darkred;border-color:#f5c6cb}\n"], dependencies: [{ kind: "ngmodule", type:
|
|
1747
|
+
`, isInline: true, styles: [":root{--primary-color: #153d77;--secondary-color: #6c757d;--white-color: #fff;--success-color: #198754;--delete-color: #dc3545;--background-color: #f2f2f2}.success-snackbar{color:#fff;--mdc-snackbar-container-color: var(--success-color);--mat-mdc-snack-bar-button-color: var(--white-color)}.error-snackbar{color:#fff;--mdc-snackbar-container-color: var(--delete-color);--mat-mdc-snack-bar-button-color: var(--white-color)}.light-success-snackbar{color:#155724;background-color:#d4edda;--mdc-snackbar-container-color: #d4edda;--mat-mdc-snack-bar-button-color: darkgreen}.light-error-snackbar{color:#721c24;--mdc-snackbar-container-color: var(--success-color);--mat-mdc-snack-bar-button-color: darkred;border-color:#f5c6cb}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
1750
1748
|
}
|
|
1751
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1749
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SuccessSnackBarComponent, decorators: [{
|
|
1752
1750
|
type: Component,
|
|
1753
|
-
args: [{ selector: 'app-success-snack-bar', imports: [
|
|
1751
|
+
args: [{ selector: 'app-success-snack-bar', imports: [MatButtonModule, MatIconModule], template: `
|
|
1754
1752
|
<div class="custom-flex-center success-snackbar">
|
|
1755
1753
|
<mat-icon>check_circle</mat-icon>
|
|
1756
1754
|
<label>{{ data.message }}</label>
|
|
@@ -1765,18 +1763,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
1765
1763
|
}] }] });
|
|
1766
1764
|
|
|
1767
1765
|
class MatSnackBarService {
|
|
1768
|
-
constructor(
|
|
1769
|
-
this.snackBar =
|
|
1766
|
+
constructor() {
|
|
1767
|
+
this.snackBar = inject(MatSnackBar);
|
|
1770
1768
|
/**
|
|
1771
|
-
* Duration (in milliseconds) of the Snack Bar to be open. Defaults to 5 seconds(5000 milliseconds)
|
|
1769
|
+
* Duration (in milliseconds) of the Snack Bar to be open. Defaults to 5 seconds (5000 milliseconds)
|
|
1772
1770
|
*/
|
|
1773
|
-
this.duration =
|
|
1771
|
+
this.duration = 5000;
|
|
1774
1772
|
/**
|
|
1775
|
-
* Horizontal Position of the MatSnackBar. Defaults to
|
|
1773
|
+
* Horizontal Position of the MatSnackBar. Defaults to right side
|
|
1776
1774
|
*/
|
|
1777
1775
|
this.horizontalPosition = 'right';
|
|
1778
1776
|
/**
|
|
1779
|
-
* Vertical Position of the MatSnackBar. Defaults to page
|
|
1777
|
+
* Vertical Position of the MatSnackBar. Defaults to top of the page
|
|
1780
1778
|
*/
|
|
1781
1779
|
this.verticalPosition = 'top';
|
|
1782
1780
|
}
|
|
@@ -1810,7 +1808,7 @@ class MatSnackBarService {
|
|
|
1810
1808
|
error(message, options) {
|
|
1811
1809
|
this.snackBar.openFromComponent(ErrorSnackBarComponent, {
|
|
1812
1810
|
data: { message },
|
|
1813
|
-
duration: options?.duration ??
|
|
1811
|
+
duration: options?.duration ?? this.duration,
|
|
1814
1812
|
panelClass: options?.panelClass ?? 'error-snackbar',
|
|
1815
1813
|
horizontalPosition: options?.horizontalPosition ?? this.horizontalPosition,
|
|
1816
1814
|
verticalPosition: options?.verticalPosition ?? this.verticalPosition,
|
|
@@ -1831,15 +1829,15 @@ class MatSnackBarService {
|
|
|
1831
1829
|
verticalPosition: this.verticalPosition,
|
|
1832
1830
|
});
|
|
1833
1831
|
}
|
|
1834
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1835
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1832
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MatSnackBarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1833
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MatSnackBarService, providedIn: 'root' }); }
|
|
1836
1834
|
}
|
|
1837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1835
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MatSnackBarService, decorators: [{
|
|
1838
1836
|
type: Injectable,
|
|
1839
1837
|
args: [{
|
|
1840
1838
|
providedIn: 'root',
|
|
1841
1839
|
}]
|
|
1842
|
-
}]
|
|
1840
|
+
}] });
|
|
1843
1841
|
|
|
1844
1842
|
/**
|
|
1845
1843
|
* A core store class that can be used to store any object
|
|
@@ -1864,10 +1862,10 @@ class Store {
|
|
|
1864
1862
|
update(newData) {
|
|
1865
1863
|
this._data.set(newData);
|
|
1866
1864
|
}
|
|
1867
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1868
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1865
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: Store, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1866
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: Store, providedIn: 'root' }); }
|
|
1869
1867
|
}
|
|
1870
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: Store, decorators: [{
|
|
1871
1869
|
type: Injectable,
|
|
1872
1870
|
args: [{
|
|
1873
1871
|
providedIn: 'root',
|
|
@@ -1951,10 +1949,10 @@ class EntityStore {
|
|
|
1951
1949
|
remove(id) {
|
|
1952
1950
|
this._data.update((currentData) => currentData.filter((item) => item.id !== id));
|
|
1953
1951
|
}
|
|
1954
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1955
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1952
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: EntityStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1953
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: EntityStore, providedIn: 'root' }); }
|
|
1956
1954
|
}
|
|
1957
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1955
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: EntityStore, decorators: [{
|
|
1958
1956
|
type: Injectable,
|
|
1959
1957
|
args: [{
|
|
1960
1958
|
providedIn: 'root',
|