@js-smart/ng-kit 20.3.1 → 20.5.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 +374 -346
- package/fesm2022/js-smart-ng-kit.mjs.map +1 -1
- package/index.d.ts +85 -74
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ChangeDetectorRef, input, signal, output, effect, Component,
|
|
3
|
-
import
|
|
4
|
-
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
2
|
+
import { inject, ChangeDetectorRef, input, signal, output, effect, Component, Pipe, Injectable, HostListener, ViewChild, forwardRef, Input, Optional, Directive, ElementRef, Renderer2, Inject, computed } from '@angular/core';
|
|
3
|
+
import { trigger, state, transition, style, animate } from '@angular/animations';
|
|
5
4
|
import { BehaviorSubject, Subject, throttleTime } from 'rxjs';
|
|
6
5
|
import { filter, takeUntil, startWith, map } from 'rxjs/operators';
|
|
7
|
-
import
|
|
8
|
-
import * as i1$1 from '@angular/
|
|
6
|
+
import * as i1 from '@angular/platform-browser';
|
|
7
|
+
import * as i1$1 from '@angular/material/progress-spinner';
|
|
8
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
9
9
|
import { AsyncPipe } from '@angular/common';
|
|
10
10
|
import * as i1$2 from '@angular/forms';
|
|
11
11
|
import { FormControl, ReactiveFormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
@@ -38,31 +38,31 @@ class AlertComponent {
|
|
|
38
38
|
/**
|
|
39
39
|
* Type of the BootStrap Alert. Following values are supported. See BootStrap docs for more information
|
|
40
40
|
*/
|
|
41
|
-
this.type = input('info');
|
|
41
|
+
this.type = input('info', ...(ngDevMode ? [{ debugName: "type" }] : []));
|
|
42
42
|
/**
|
|
43
43
|
* Is alert visible or open
|
|
44
44
|
*/
|
|
45
|
-
this.isOpen = input(true);
|
|
45
|
+
this.isOpen = input(true, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
46
46
|
/**
|
|
47
47
|
* Writable signal for isOpen
|
|
48
48
|
*/
|
|
49
|
-
this.open = signal(this.isOpen());
|
|
49
|
+
this.open = signal(this.isOpen(), ...(ngDevMode ? [{ debugName: "open" }] : []));
|
|
50
50
|
/**
|
|
51
51
|
* If set, displays an inline “Close” button
|
|
52
52
|
*/
|
|
53
|
-
this.dismissible = input(true);
|
|
53
|
+
this.dismissible = input(true, ...(ngDevMode ? [{ debugName: "dismissible" }] : []));
|
|
54
54
|
/**
|
|
55
55
|
* If set, dismisses the alert after Dismiss Timeout
|
|
56
56
|
*/
|
|
57
|
-
this.dismissOnTimeout = input(true);
|
|
57
|
+
this.dismissOnTimeout = input(true, ...(ngDevMode ? [{ debugName: "dismissOnTimeout" }] : []));
|
|
58
58
|
/**
|
|
59
59
|
* Number in milliseconds, after which alert will be closed. Default value is 5000 ms
|
|
60
60
|
*/
|
|
61
|
-
this.dismissTimeout = input(5000);
|
|
61
|
+
this.dismissTimeout = input(5000, ...(ngDevMode ? [{ debugName: "dismissTimeout" }] : []));
|
|
62
62
|
/**
|
|
63
63
|
* Additional classes to be added to the alert. This can be used to add custom styles to the alert
|
|
64
64
|
*/
|
|
65
|
-
this.class = input('');
|
|
65
|
+
this.class = input('', ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
66
66
|
/**
|
|
67
67
|
* Emits when the alert is closed.
|
|
68
68
|
*/
|
|
@@ -109,41 +109,14 @@ class AlertComponent {
|
|
|
109
109
|
openAlert() {
|
|
110
110
|
this.open.set(true);
|
|
111
111
|
}
|
|
112
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
113
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
112
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
113
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.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"] }); }
|
|
114
114
|
}
|
|
115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: AlertComponent, decorators: [{
|
|
116
116
|
type: Component,
|
|
117
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
118
|
}], ctorParameters: () => [] });
|
|
119
119
|
|
|
120
|
-
class SpinnerComponent {
|
|
121
|
-
constructor() {
|
|
122
|
-
/**
|
|
123
|
-
* Use Boostrap Spinner. Default `true`
|
|
124
|
-
*/
|
|
125
|
-
this.bootstrapSpinner = input(true);
|
|
126
|
-
/**
|
|
127
|
-
* Diameter of the Angular Material spinner
|
|
128
|
-
*/
|
|
129
|
-
this.diameter = input(50);
|
|
130
|
-
/**
|
|
131
|
-
* Color of the Angular Material spinner
|
|
132
|
-
*/
|
|
133
|
-
this.color = input('primary');
|
|
134
|
-
/**
|
|
135
|
-
* Stroke Width of the Angular Material spinner
|
|
136
|
-
*/
|
|
137
|
-
this.strokeWidth = input(5);
|
|
138
|
-
}
|
|
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"] }] }); }
|
|
141
|
-
}
|
|
142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SpinnerComponent, decorators: [{
|
|
143
|
-
type: Component,
|
|
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"] }]
|
|
145
|
-
}] });
|
|
146
|
-
|
|
147
120
|
const LOADERS = {
|
|
148
121
|
'ball-clip-rotate': 1,
|
|
149
122
|
};
|
|
@@ -160,6 +133,27 @@ class NgxSpinner {
|
|
|
160
133
|
}
|
|
161
134
|
}
|
|
162
135
|
|
|
136
|
+
class SafeHtmlPipe {
|
|
137
|
+
constructor(_sanitizer) {
|
|
138
|
+
this._sanitizer = _sanitizer;
|
|
139
|
+
}
|
|
140
|
+
transform(v) {
|
|
141
|
+
if (v) {
|
|
142
|
+
return this._sanitizer.bypassSecurityTrustHtml(v);
|
|
143
|
+
}
|
|
144
|
+
return undefined;
|
|
145
|
+
}
|
|
146
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
147
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: SafeHtmlPipe, isStandalone: true, name: "safeHtml" }); }
|
|
148
|
+
}
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
150
|
+
type: Pipe,
|
|
151
|
+
args: [{
|
|
152
|
+
name: 'safeHtml',
|
|
153
|
+
standalone: true,
|
|
154
|
+
}]
|
|
155
|
+
}], ctorParameters: () => [{ type: i1.DomSanitizer }] });
|
|
156
|
+
|
|
163
157
|
class NgxSpinnerService {
|
|
164
158
|
constructor() {
|
|
165
159
|
/**
|
|
@@ -216,37 +210,16 @@ class NgxSpinnerService {
|
|
|
216
210
|
}, debounce);
|
|
217
211
|
});
|
|
218
212
|
}
|
|
219
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
220
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
213
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgxSpinnerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
214
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgxSpinnerService, providedIn: 'root' }); }
|
|
221
215
|
}
|
|
222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgxSpinnerService, decorators: [{
|
|
223
217
|
type: Injectable,
|
|
224
218
|
args: [{
|
|
225
219
|
providedIn: 'root',
|
|
226
220
|
}]
|
|
227
221
|
}] });
|
|
228
222
|
|
|
229
|
-
class SafeHtmlPipe {
|
|
230
|
-
constructor(_sanitizer) {
|
|
231
|
-
this._sanitizer = _sanitizer;
|
|
232
|
-
}
|
|
233
|
-
transform(v) {
|
|
234
|
-
if (v) {
|
|
235
|
-
return this._sanitizer.bypassSecurityTrustHtml(v);
|
|
236
|
-
}
|
|
237
|
-
return undefined;
|
|
238
|
-
}
|
|
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" }); }
|
|
241
|
-
}
|
|
242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
243
|
-
type: Pipe,
|
|
244
|
-
args: [{
|
|
245
|
-
name: 'safeHtml',
|
|
246
|
-
standalone: true,
|
|
247
|
-
}]
|
|
248
|
-
}], ctorParameters: () => [{ type: i1$1.DomSanitizer }] });
|
|
249
|
-
|
|
250
223
|
class NgxSpinnerComponent {
|
|
251
224
|
/**
|
|
252
225
|
* Creates an instance of NgxSpinnerComponent.
|
|
@@ -258,43 +231,43 @@ class NgxSpinnerComponent {
|
|
|
258
231
|
* To set backdrop color
|
|
259
232
|
* Only supports RGBA color format
|
|
260
233
|
*/
|
|
261
|
-
this.bdColor = input(DEFAULTS.BD_COLOR);
|
|
234
|
+
this.bdColor = input(DEFAULTS.BD_COLOR, ...(ngDevMode ? [{ debugName: "bdColor" }] : []));
|
|
262
235
|
/**
|
|
263
236
|
* To set spinner size
|
|
264
237
|
*/
|
|
265
|
-
this.size = input('large');
|
|
238
|
+
this.size = input('large', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
266
239
|
/**
|
|
267
240
|
* To set spinner color(DEFAULTS.SPINNER_COLOR)
|
|
268
241
|
*/
|
|
269
|
-
this.color = input(DEFAULTS.SPINNER_COLOR);
|
|
242
|
+
this.color = input(DEFAULTS.SPINNER_COLOR, ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
270
243
|
/**
|
|
271
244
|
* To set type of spinner
|
|
272
245
|
*/
|
|
273
|
-
this.type = input(DEFAULTS.SPINNER_TYPE);
|
|
246
|
+
this.type = input(DEFAULTS.SPINNER_TYPE, ...(ngDevMode ? [{ debugName: "type" }] : []));
|
|
274
247
|
/**
|
|
275
248
|
* To toggle fullscreen mode
|
|
276
249
|
*/
|
|
277
|
-
this.fullScreen = input(true);
|
|
250
|
+
this.fullScreen = input(true, ...(ngDevMode ? [{ debugName: "fullScreen" }] : []));
|
|
278
251
|
/**
|
|
279
252
|
* Spinner name
|
|
280
253
|
*/
|
|
281
|
-
this.name = input(PRIMARY_SPINNER);
|
|
254
|
+
this.name = input(PRIMARY_SPINNER, ...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
282
255
|
/**
|
|
283
256
|
* z-index value
|
|
284
257
|
*/
|
|
285
|
-
this.zIndex = input(DEFAULTS.Z_INDEX);
|
|
258
|
+
this.zIndex = input(DEFAULTS.Z_INDEX, ...(ngDevMode ? [{ debugName: "zIndex" }] : []));
|
|
286
259
|
/**
|
|
287
260
|
* Custom template for spinner/loader
|
|
288
261
|
*/
|
|
289
|
-
this.template = input('');
|
|
262
|
+
this.template = input('', ...(ngDevMode ? [{ debugName: "template" }] : []));
|
|
290
263
|
/**
|
|
291
264
|
* Show/Hide the spinner
|
|
292
265
|
*/
|
|
293
|
-
this.showSpinner = input(false);
|
|
266
|
+
this.showSpinner = input(false, ...(ngDevMode ? [{ debugName: "showSpinner" }] : []));
|
|
294
267
|
/**
|
|
295
268
|
* To enable/disable animation
|
|
296
269
|
*/
|
|
297
|
-
this.disableAnimation = input(false);
|
|
270
|
+
this.disableAnimation = input(false, ...(ngDevMode ? [{ debugName: "disableAnimation" }] : []));
|
|
298
271
|
/**
|
|
299
272
|
* Spinner Object
|
|
300
273
|
*/
|
|
@@ -396,8 +369,8 @@ class NgxSpinnerComponent {
|
|
|
396
369
|
this.ngUnsubscribe.next();
|
|
397
370
|
this.ngUnsubscribe.complete();
|
|
398
371
|
}
|
|
399
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
400
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
372
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgxSpinnerComponent, deps: [{ token: NgxSpinnerService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
373
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.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: [
|
|
401
374
|
trigger('fadeIn', [
|
|
402
375
|
state('in', style({ opacity: 1 })),
|
|
403
376
|
transition(':enter', [style({ opacity: 0 }), animate(300)]),
|
|
@@ -405,7 +378,7 @@ class NgxSpinnerComponent {
|
|
|
405
378
|
]),
|
|
406
379
|
] }); }
|
|
407
380
|
}
|
|
408
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgxSpinnerComponent, decorators: [{
|
|
409
382
|
type: Component,
|
|
410
383
|
args: [{ selector: 'ngx-spinner', imports: [SafeHtmlPipe], animations: [
|
|
411
384
|
trigger('fadeIn', [
|
|
@@ -422,6 +395,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
422
395
|
args: ['document:keydown', ['$event']]
|
|
423
396
|
}] } });
|
|
424
397
|
|
|
398
|
+
class SpinnerComponent {
|
|
399
|
+
constructor() {
|
|
400
|
+
/**
|
|
401
|
+
* Use Boostrap Spinner. Default `true`
|
|
402
|
+
*/
|
|
403
|
+
this.bootstrapSpinner = input(true, ...(ngDevMode ? [{ debugName: "bootstrapSpinner" }] : []));
|
|
404
|
+
/**
|
|
405
|
+
* Diameter of the Angular Material spinner
|
|
406
|
+
*/
|
|
407
|
+
this.diameter = input(50, ...(ngDevMode ? [{ debugName: "diameter" }] : []));
|
|
408
|
+
/**
|
|
409
|
+
* Color of the Angular Material spinner
|
|
410
|
+
*/
|
|
411
|
+
this.color = input('primary', ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
412
|
+
/**
|
|
413
|
+
* Stroke Width of the Angular Material spinner
|
|
414
|
+
*/
|
|
415
|
+
this.strokeWidth = input(5, ...(ngDevMode ? [{ debugName: "strokeWidth" }] : []));
|
|
416
|
+
}
|
|
417
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
418
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.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$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] }); }
|
|
419
|
+
}
|
|
420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SpinnerComponent, decorators: [{
|
|
421
|
+
type: Component,
|
|
422
|
+
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"] }]
|
|
423
|
+
}] });
|
|
424
|
+
|
|
425
425
|
/**
|
|
426
426
|
* Reusable Auto Complete component that extends MatAutoComplete to show Clear icon and Arrow buttons
|
|
427
427
|
*
|
|
@@ -438,27 +438,27 @@ class AutocompleteComponent {
|
|
|
438
438
|
/**
|
|
439
439
|
* Label of the AutoComplete
|
|
440
440
|
*/
|
|
441
|
-
this.label = input('');
|
|
441
|
+
this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
442
442
|
/**
|
|
443
443
|
* Placeholder of the AutoComplete
|
|
444
444
|
*/
|
|
445
|
-
this.placeHolder = input('');
|
|
445
|
+
this.placeHolder = input('', ...(ngDevMode ? [{ debugName: "placeHolder" }] : []));
|
|
446
446
|
/**
|
|
447
447
|
* Appearance of the AutoComplete, defaults to `fill`
|
|
448
448
|
*/
|
|
449
|
-
this.appearance = input('fill');
|
|
449
|
+
this.appearance = input('fill', ...(ngDevMode ? [{ debugName: "appearance" }] : []));
|
|
450
450
|
/**
|
|
451
451
|
* List of CSS classes that need to applied to autocomplete
|
|
452
452
|
*/
|
|
453
|
-
this.classes = input('');
|
|
453
|
+
this.classes = input('', ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
454
454
|
/**
|
|
455
455
|
* Attribute of the Object whose value would be shown when searching for data. Defaults to `ID`
|
|
456
456
|
*/
|
|
457
|
-
this.bindLabel = input('');
|
|
457
|
+
this.bindLabel = input('', ...(ngDevMode ? [{ debugName: "bindLabel" }] : []));
|
|
458
458
|
/**
|
|
459
459
|
* Attribute of the Object whose value would be used for search
|
|
460
460
|
*/
|
|
461
|
-
this.bindValue = input('id');
|
|
461
|
+
this.bindValue = input('id', ...(ngDevMode ? [{ debugName: "bindValue" }] : []));
|
|
462
462
|
/**
|
|
463
463
|
* Function that maps an option's control value to its display value in the trigger.
|
|
464
464
|
*/
|
|
@@ -466,15 +466,15 @@ class AutocompleteComponent {
|
|
|
466
466
|
/**
|
|
467
467
|
* Specifies if the autocomplete is required. Default is not required.
|
|
468
468
|
*/
|
|
469
|
-
this.required = input(false);
|
|
469
|
+
this.required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : []));
|
|
470
470
|
/**
|
|
471
471
|
* Specifies if the autocomplete is disabled. Default is not required.
|
|
472
472
|
*/
|
|
473
|
-
this.disabled = input(false);
|
|
473
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
474
474
|
/**
|
|
475
475
|
* List of Objects that need to be bind and searched for
|
|
476
476
|
*/
|
|
477
|
-
this.data = input();
|
|
477
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
478
478
|
/**
|
|
479
479
|
* Emit selected value on selection changes
|
|
480
480
|
*/
|
|
@@ -551,8 +551,8 @@ class AutocompleteComponent {
|
|
|
551
551
|
this.onChange($event.source.value);
|
|
552
552
|
this.onTouched();
|
|
553
553
|
}
|
|
554
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
555
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
554
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: AutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
555
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.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
556
|
{
|
|
557
557
|
provide: NG_VALUE_ACCESSOR,
|
|
558
558
|
useExisting: forwardRef(() => AutocompleteComponent),
|
|
@@ -560,7 +560,7 @@ class AutocompleteComponent {
|
|
|
560
560
|
},
|
|
561
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" }] }); }
|
|
562
562
|
}
|
|
563
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: AutocompleteComponent, decorators: [{
|
|
564
564
|
type: Component,
|
|
565
565
|
args: [{ selector: 'autocomplete, lib-autocomplete', imports: [ReactiveFormsModule, MatFormFieldModule, MatAutocompleteModule, MatInputModule, MatButtonModule, MatIconModule, AsyncPipe], providers: [
|
|
566
566
|
{
|
|
@@ -817,10 +817,10 @@ class NgxPrintDirective {
|
|
|
817
817
|
returnStyleValues() {
|
|
818
818
|
return `<style> ${this.printStyleArray.join(' ').replace(/,/g, ';')} </style>`;
|
|
819
819
|
}
|
|
820
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
821
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
820
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgxPrintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
821
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.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 }); }
|
|
822
822
|
}
|
|
823
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
823
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgxPrintDirective, decorators: [{
|
|
824
824
|
type: Directive,
|
|
825
825
|
args: [{
|
|
826
826
|
selector: 'button[ngxPrint], button[print]',
|
|
@@ -859,7 +859,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
859
859
|
|
|
860
860
|
class PreventMultipleClicksDirective {
|
|
861
861
|
constructor() {
|
|
862
|
-
this.throttleTime = input(2000);
|
|
862
|
+
this.throttleTime = input(2000, ...(ngDevMode ? [{ debugName: "throttleTime" }] : []));
|
|
863
863
|
this.throttleClick = output();
|
|
864
864
|
this.clicks = new Subject();
|
|
865
865
|
}
|
|
@@ -882,10 +882,10 @@ class PreventMultipleClicksDirective {
|
|
|
882
882
|
ngOnDestroy() {
|
|
883
883
|
this.subscription?.unsubscribe();
|
|
884
884
|
}
|
|
885
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
886
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.
|
|
885
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PreventMultipleClicksDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
886
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.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: "20.
|
|
888
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PreventMultipleClicksDirective, decorators: [{
|
|
889
889
|
type: Directive,
|
|
890
890
|
args: [{
|
|
891
891
|
selector: '[preventMultipleClicks]',
|
|
@@ -901,11 +901,11 @@ class BaseButtonComponent {
|
|
|
901
901
|
/**
|
|
902
902
|
* Is search in progress and loading the data
|
|
903
903
|
*/
|
|
904
|
-
this.loading = input(false, { transform: (value) => value ?? false });
|
|
904
|
+
this.loading = input(false, ...(ngDevMode ? [{ debugName: "loading", transform: (value) => value ?? false }] : [{ transform: (value) => value ?? false }]));
|
|
905
905
|
/**
|
|
906
906
|
* Is button disabled
|
|
907
907
|
*/
|
|
908
|
-
this.disabled = input(false);
|
|
908
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
909
909
|
/**
|
|
910
910
|
* Type of the button. Following values are supported. See BootStrap docs for more information
|
|
911
911
|
* <pre>
|
|
@@ -913,35 +913,35 @@ class BaseButtonComponent {
|
|
|
913
913
|
* 2. submit
|
|
914
914
|
* </pre>
|
|
915
915
|
*/
|
|
916
|
-
this.type = input('button');
|
|
916
|
+
this.type = input('button', ...(ngDevMode ? [{ debugName: "type" }] : []));
|
|
917
917
|
/**
|
|
918
918
|
* If set, shows when action in Progress
|
|
919
919
|
*/
|
|
920
|
-
this.loadingLabel = input('Saving...');
|
|
920
|
+
this.loadingLabel = input('Saving...', ...(ngDevMode ? [{ debugName: "loadingLabel" }] : []));
|
|
921
921
|
/**
|
|
922
922
|
* If set, shows when Delete is not in progress
|
|
923
923
|
*/
|
|
924
|
-
this.label = input('Save');
|
|
924
|
+
this.label = input('Save', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
925
925
|
/**
|
|
926
926
|
* If set, shows the icon. Otherwise, shows delete icon
|
|
927
927
|
*/
|
|
928
|
-
this.icon = input('save');
|
|
928
|
+
this.icon = input('save', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
929
929
|
/**
|
|
930
930
|
* If set, shows material icon otherwise hides the icons
|
|
931
931
|
*/
|
|
932
|
-
this.showIcon = input(true);
|
|
932
|
+
this.showIcon = input(true, ...(ngDevMode ? [{ debugName: "showIcon" }] : []));
|
|
933
933
|
/**
|
|
934
934
|
* If set, sets the style of the button
|
|
935
935
|
*/
|
|
936
|
-
this.style = input();
|
|
936
|
+
this.style = input(...(ngDevMode ? [undefined, { debugName: "style" }] : []));
|
|
937
937
|
/**
|
|
938
938
|
* If set, sets the class of the button
|
|
939
939
|
*/
|
|
940
|
-
this.classes = input('btn');
|
|
940
|
+
this.classes = input('btn', ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
941
941
|
/**
|
|
942
942
|
* If set, sets the data-cy attribute for the button
|
|
943
943
|
*/
|
|
944
|
-
this.dataCy = input('save-button');
|
|
944
|
+
this.dataCy = input('save-button', ...(ngDevMode ? [{ debugName: "dataCy" }] : []));
|
|
945
945
|
/**
|
|
946
946
|
* Output event when button is clicked
|
|
947
947
|
*/
|
|
@@ -963,10 +963,10 @@ class BaseButtonComponent {
|
|
|
963
963
|
*/
|
|
964
964
|
this.onKeyUp = output();
|
|
965
965
|
}
|
|
966
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
967
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
966
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: BaseButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
967
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.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 }); }
|
|
968
968
|
}
|
|
969
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
969
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: BaseButtonComponent, decorators: [{
|
|
970
970
|
type: Component,
|
|
971
971
|
args: [{
|
|
972
972
|
standalone: true,
|
|
@@ -977,12 +977,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
977
977
|
class BsLinkButtonComponent extends BaseButtonComponent {
|
|
978
978
|
constructor() {
|
|
979
979
|
super();
|
|
980
|
-
this.label = input('Edit');
|
|
981
|
-
this.icon = input('search');
|
|
982
|
-
this.classes = input('btn text-primary');
|
|
980
|
+
this.label = input('Edit', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
981
|
+
this.icon = input('search', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
982
|
+
this.classes = input('btn text-primary', ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
983
983
|
}
|
|
984
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
985
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
984
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: BsLinkButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
985
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.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: `
|
|
986
986
|
<a
|
|
987
987
|
type="{{ type() }}"
|
|
988
988
|
class="{{ classes() }}"
|
|
@@ -1001,7 +1001,7 @@ class BsLinkButtonComponent extends BaseButtonComponent {
|
|
|
1001
1001
|
</a>
|
|
1002
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"] }] }); }
|
|
1003
1003
|
}
|
|
1004
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1004
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: BsLinkButtonComponent, decorators: [{
|
|
1005
1005
|
type: Component,
|
|
1006
1006
|
args: [{ selector: 'bs-link-button', imports: [MatIcon, MatAnchor], template: `
|
|
1007
1007
|
<a
|
|
@@ -1023,16 +1023,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1023
1023
|
`, 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"] }]
|
|
1024
1024
|
}], ctorParameters: () => [] });
|
|
1025
1025
|
|
|
1026
|
+
class CloseButtonDirective {
|
|
1027
|
+
constructor() {
|
|
1028
|
+
this.elementRef = inject(ElementRef);
|
|
1029
|
+
this.renderer = inject(Renderer2);
|
|
1030
|
+
this.renderer.addClass(this.elementRef.nativeElement, 'secondary-button');
|
|
1031
|
+
}
|
|
1032
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: CloseButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1033
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.0", type: CloseButtonDirective, isStandalone: true, selector: "[closeButton]", ngImport: i0 }); }
|
|
1034
|
+
}
|
|
1035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: CloseButtonDirective, decorators: [{
|
|
1036
|
+
type: Directive,
|
|
1037
|
+
args: [{
|
|
1038
|
+
selector: '[closeButton]',
|
|
1039
|
+
}]
|
|
1040
|
+
}], ctorParameters: () => [] });
|
|
1041
|
+
|
|
1026
1042
|
class DeleteButtonComponent extends BaseButtonComponent {
|
|
1027
1043
|
constructor() {
|
|
1028
1044
|
super();
|
|
1029
|
-
this.loadingLabel = input('Deleting...');
|
|
1030
|
-
this.label = input('Delete');
|
|
1031
|
-
this.icon = input('delete');
|
|
1032
|
-
this.classes = input('delete-button');
|
|
1045
|
+
this.loadingLabel = input('Deleting...', ...(ngDevMode ? [{ debugName: "loadingLabel" }] : []));
|
|
1046
|
+
this.label = input('Delete', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
1047
|
+
this.icon = input('delete', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
1048
|
+
this.classes = input('delete-button', ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
1033
1049
|
}
|
|
1034
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1035
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
1050
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: DeleteButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1051
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.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: `
|
|
1036
1052
|
<button
|
|
1037
1053
|
mat-raised-button
|
|
1038
1054
|
class="btn {{ classes() }}"
|
|
@@ -1055,7 +1071,7 @@ class DeleteButtonComponent extends BaseButtonComponent {
|
|
|
1055
1071
|
</button>
|
|
1056
1072
|
`, 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"] }] }); }
|
|
1057
1073
|
}
|
|
1058
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: DeleteButtonComponent, decorators: [{
|
|
1059
1075
|
type: Component,
|
|
1060
1076
|
args: [{ selector: 'delete-button', imports: [MatButtonModule, MatIconModule], template: `
|
|
1061
1077
|
<button
|
|
@@ -1081,16 +1097,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1081
1097
|
`, 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"] }]
|
|
1082
1098
|
}], ctorParameters: () => [] });
|
|
1083
1099
|
|
|
1084
|
-
|
|
1100
|
+
const EDIT_ICON = `
|
|
1101
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
1102
|
+
<path d="M490.3 40.4C512.2 62.27 512.2 97.73 490.3 119.6L460.3 149.7L362.3 51.72L392.4 21.66C414.3-.2135 449.7-.2135 471.6 21.66L490.3 40.4zM172.4 241.7L339.7 74.34L437.7 172.3L270.3 339.6C264.2 345.8 256.7 350.4 248.4 353.2L159.6 382.8C150.1 385.6 141.5 383.4 135 376.1C128.6 370.5 126.4 361 129.2 352.4L158.8 263.6C161.6 255.3 166.2 247.8 172.4 241.7V241.7zM192 63.1C209.7 63.1 224 78.33 224 95.1C224 113.7 209.7 127.1 192 127.1H96C78.33 127.1 64 142.3 64 159.1V416C64 433.7 78.33 448 96 448H352C369.7 448 384 433.7 384 416V319.1C384 302.3 398.3 287.1 416 287.1C433.7 287.1 448 302.3 448 319.1V416C448 469 405 512 352 512H96C42.98 512 0 469 0 416V159.1C0 106.1 42.98 63.1 96 63.1H192z"/>
|
|
1103
|
+
</svg>
|
|
1104
|
+
`;
|
|
1105
|
+
class EditSolidSvgComponent {
|
|
1106
|
+
constructor(iconRegistry, sanitizer) {
|
|
1107
|
+
iconRegistry.addSvgIconLiteral('edit-solid', sanitizer.bypassSecurityTrustHtml(EDIT_ICON));
|
|
1108
|
+
}
|
|
1109
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: EditSolidSvgComponent, deps: [{ token: i1$4.MatIconRegistry }, { token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1110
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.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"] }] }); }
|
|
1111
|
+
}
|
|
1112
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: EditSolidSvgComponent, decorators: [{
|
|
1113
|
+
type: Component,
|
|
1114
|
+
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"] }]
|
|
1115
|
+
}], ctorParameters: () => [{ type: i1$4.MatIconRegistry }, { type: i1.DomSanitizer }] });
|
|
1116
|
+
|
|
1117
|
+
class EditBsButtonComponent extends BaseButtonComponent {
|
|
1085
1118
|
constructor() {
|
|
1086
1119
|
super();
|
|
1087
|
-
this.label = input('Edit');
|
|
1088
|
-
this.
|
|
1089
|
-
this.classes = input('primary-button');
|
|
1120
|
+
this.label = input('Edit', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
1121
|
+
this.classes = input('text-primary', ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
1090
1122
|
}
|
|
1091
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1092
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
1123
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: EditBsButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1124
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.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: `
|
|
1093
1125
|
<button
|
|
1126
|
+
color="primary"
|
|
1127
|
+
type="{{ type() }}"
|
|
1094
1128
|
class="{{ classes() }}"
|
|
1095
1129
|
(click)="onClick.emit($event)"
|
|
1096
1130
|
(focus)="onFocus.emit($event)"
|
|
@@ -1100,17 +1134,19 @@ class EditButtonComponent extends BaseButtonComponent {
|
|
|
1100
1134
|
[disabled]="disabled()"
|
|
1101
1135
|
[type]="type()"
|
|
1102
1136
|
[style]="style()"
|
|
1103
|
-
[attr.data-cy]="'edit-button'"
|
|
1104
|
-
mat-
|
|
1105
|
-
<
|
|
1137
|
+
[attr.data-cy]="'edit-bs-button'"
|
|
1138
|
+
mat-button>
|
|
1139
|
+
<edit-solid-svg></edit-solid-svg>
|
|
1106
1140
|
{{ label() }}
|
|
1107
1141
|
</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: "
|
|
1142
|
+
`, 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" }] }); }
|
|
1109
1143
|
}
|
|
1110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: EditBsButtonComponent, decorators: [{
|
|
1111
1145
|
type: Component,
|
|
1112
|
-
args: [{ selector: 'edit-button', imports: [
|
|
1146
|
+
args: [{ selector: 'edit-bs-button', imports: [MatButtonModule, MatIconModule, EditSolidSvgComponent], template: `
|
|
1113
1147
|
<button
|
|
1148
|
+
color="primary"
|
|
1149
|
+
type="{{ type() }}"
|
|
1114
1150
|
class="{{ classes() }}"
|
|
1115
1151
|
(click)="onClick.emit($event)"
|
|
1116
1152
|
(focus)="onFocus.emit($event)"
|
|
@@ -1120,42 +1156,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1120
1156
|
[disabled]="disabled()"
|
|
1121
1157
|
[type]="type()"
|
|
1122
1158
|
[style]="style()"
|
|
1123
|
-
[attr.data-cy]="'edit-button'"
|
|
1124
|
-
mat-
|
|
1125
|
-
<
|
|
1159
|
+
[attr.data-cy]="'edit-bs-button'"
|
|
1160
|
+
mat-button>
|
|
1161
|
+
<edit-solid-svg></edit-solid-svg>
|
|
1126
1162
|
{{ label() }}
|
|
1127
1163
|
</button>
|
|
1128
1164
|
`, 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"] }]
|
|
1129
1165
|
}], ctorParameters: () => [] });
|
|
1130
1166
|
|
|
1131
|
-
|
|
1132
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
1133
|
-
<path d="M490.3 40.4C512.2 62.27 512.2 97.73 490.3 119.6L460.3 149.7L362.3 51.72L392.4 21.66C414.3-.2135 449.7-.2135 471.6 21.66L490.3 40.4zM172.4 241.7L339.7 74.34L437.7 172.3L270.3 339.6C264.2 345.8 256.7 350.4 248.4 353.2L159.6 382.8C150.1 385.6 141.5 383.4 135 376.1C128.6 370.5 126.4 361 129.2 352.4L158.8 263.6C161.6 255.3 166.2 247.8 172.4 241.7V241.7zM192 63.1C209.7 63.1 224 78.33 224 95.1C224 113.7 209.7 127.1 192 127.1H96C78.33 127.1 64 142.3 64 159.1V416C64 433.7 78.33 448 96 448H352C369.7 448 384 433.7 384 416V319.1C384 302.3 398.3 287.1 416 287.1C433.7 287.1 448 302.3 448 319.1V416C448 469 405 512 352 512H96C42.98 512 0 469 0 416V159.1C0 106.1 42.98 63.1 96 63.1H192z"/>
|
|
1134
|
-
</svg>
|
|
1135
|
-
`;
|
|
1136
|
-
class EditSolidSvgComponent {
|
|
1137
|
-
constructor(iconRegistry, sanitizer) {
|
|
1138
|
-
iconRegistry.addSvgIconLiteral('edit-solid', sanitizer.bypassSecurityTrustHtml(EDIT_ICON));
|
|
1139
|
-
}
|
|
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"] }] }); }
|
|
1142
|
-
}
|
|
1143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: EditSolidSvgComponent, decorators: [{
|
|
1144
|
-
type: Component,
|
|
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"] }]
|
|
1146
|
-
}], ctorParameters: () => [{ type: i1$4.MatIconRegistry }, { type: i1$1.DomSanitizer }] });
|
|
1147
|
-
|
|
1148
|
-
class EditBsButtonComponent extends BaseButtonComponent {
|
|
1167
|
+
class EditButtonComponent extends BaseButtonComponent {
|
|
1149
1168
|
constructor() {
|
|
1150
1169
|
super();
|
|
1151
|
-
this.label = input('Edit');
|
|
1152
|
-
this.
|
|
1170
|
+
this.label = input('Edit', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
1171
|
+
this.icon = input('edit', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
1172
|
+
this.classes = input('primary-button', ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
1153
1173
|
}
|
|
1154
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1155
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
1174
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: EditButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1175
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.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: `
|
|
1156
1176
|
<button
|
|
1157
|
-
color="primary"
|
|
1158
|
-
type="{{ type() }}"
|
|
1159
1177
|
class="{{ classes() }}"
|
|
1160
1178
|
(click)="onClick.emit($event)"
|
|
1161
1179
|
(focus)="onFocus.emit($event)"
|
|
@@ -1165,19 +1183,17 @@ class EditBsButtonComponent extends BaseButtonComponent {
|
|
|
1165
1183
|
[disabled]="disabled()"
|
|
1166
1184
|
[type]="type()"
|
|
1167
1185
|
[style]="style()"
|
|
1168
|
-
[attr.data-cy]="'edit-
|
|
1169
|
-
mat-button>
|
|
1170
|
-
<
|
|
1186
|
+
[attr.data-cy]="'edit-button'"
|
|
1187
|
+
mat-raised-button>
|
|
1188
|
+
<mat-icon>{{ icon() }}</mat-icon>
|
|
1171
1189
|
{{ label() }}
|
|
1172
1190
|
</button>
|
|
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: "
|
|
1191
|
+
`, 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"] }] }); }
|
|
1174
1192
|
}
|
|
1175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: EditButtonComponent, decorators: [{
|
|
1176
1194
|
type: Component,
|
|
1177
|
-
args: [{ selector: 'edit-
|
|
1195
|
+
args: [{ selector: 'edit-button', imports: [MatButton, MatIcon], template: `
|
|
1178
1196
|
<button
|
|
1179
|
-
color="primary"
|
|
1180
|
-
type="{{ type() }}"
|
|
1181
1197
|
class="{{ classes() }}"
|
|
1182
1198
|
(click)="onClick.emit($event)"
|
|
1183
1199
|
(focus)="onFocus.emit($event)"
|
|
@@ -1187,9 +1203,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1187
1203
|
[disabled]="disabled()"
|
|
1188
1204
|
[type]="type()"
|
|
1189
1205
|
[style]="style()"
|
|
1190
|
-
[attr.data-cy]="'edit-
|
|
1191
|
-
mat-button>
|
|
1192
|
-
<
|
|
1206
|
+
[attr.data-cy]="'edit-button'"
|
|
1207
|
+
mat-raised-button>
|
|
1208
|
+
<mat-icon>{{ icon() }}</mat-icon>
|
|
1193
1209
|
{{ label() }}
|
|
1194
1210
|
</button>
|
|
1195
1211
|
`, 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"] }]
|
|
@@ -1198,12 +1214,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1198
1214
|
class EditSvgIconButtonComponent extends BaseButtonComponent {
|
|
1199
1215
|
constructor() {
|
|
1200
1216
|
super();
|
|
1201
|
-
this.label = input('Edit');
|
|
1202
|
-
this.icon = input('edit');
|
|
1203
|
-
this.classes = input('primary-button');
|
|
1217
|
+
this.label = input('Edit', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
1218
|
+
this.icon = input('edit', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
1219
|
+
this.classes = input('primary-button', ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
1204
1220
|
}
|
|
1205
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1206
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
1221
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: EditSvgIconButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1222
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.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: `
|
|
1207
1223
|
<button
|
|
1208
1224
|
type="{{ type() }}"
|
|
1209
1225
|
class="{{ classes() }}"
|
|
@@ -1222,7 +1238,7 @@ class EditSvgIconButtonComponent extends BaseButtonComponent {
|
|
|
1222
1238
|
</button>
|
|
1223
1239
|
`, 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" }] }); }
|
|
1224
1240
|
}
|
|
1225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: EditSvgIconButtonComponent, decorators: [{
|
|
1226
1242
|
type: Component,
|
|
1227
1243
|
args: [{ selector: 'edit-svg-icon-button', imports: [MatButton, EditSolidSvgComponent], template: `
|
|
1228
1244
|
<button
|
|
@@ -1244,15 +1260,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1244
1260
|
`, 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"] }]
|
|
1245
1261
|
}], ctorParameters: () => [] });
|
|
1246
1262
|
|
|
1263
|
+
class ExcelExportButtonComponent {
|
|
1264
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ExcelExportButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1265
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.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"] }] }); }
|
|
1266
|
+
}
|
|
1267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ExcelExportButtonComponent, decorators: [{
|
|
1268
|
+
type: Component,
|
|
1269
|
+
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"] }]
|
|
1270
|
+
}] });
|
|
1271
|
+
|
|
1247
1272
|
class ManageButtonComponent extends BaseButtonComponent {
|
|
1248
1273
|
constructor() {
|
|
1249
1274
|
super();
|
|
1250
|
-
this.label = input('Manage');
|
|
1251
|
-
this.icon = input('settings');
|
|
1252
|
-
this.classes = input('mr-3 btn btn-secondary secondary-button');
|
|
1275
|
+
this.label = input('Manage', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
1276
|
+
this.icon = input('settings', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
1277
|
+
this.classes = input('mr-3 btn btn-secondary secondary-button', ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
1253
1278
|
}
|
|
1254
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1255
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
1279
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ManageButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1280
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.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: `
|
|
1256
1281
|
<button
|
|
1257
1282
|
mat-raised-button
|
|
1258
1283
|
class="{{ classes() }}"
|
|
@@ -1268,7 +1293,7 @@ class ManageButtonComponent extends BaseButtonComponent {
|
|
|
1268
1293
|
</button>
|
|
1269
1294
|
`, 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"] }] }); }
|
|
1270
1295
|
}
|
|
1271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ManageButtonComponent, decorators: [{
|
|
1272
1297
|
type: Component,
|
|
1273
1298
|
args: [{ selector: 'manage-button', imports: [MatButton, MatIcon], template: `
|
|
1274
1299
|
<button
|
|
@@ -1287,16 +1312,84 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1287
1312
|
`, 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"] }]
|
|
1288
1313
|
}], ctorParameters: () => [] });
|
|
1289
1314
|
|
|
1315
|
+
class PdfExportButtonComponent {
|
|
1316
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PdfExportButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1317
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.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"] }] }); }
|
|
1318
|
+
}
|
|
1319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PdfExportButtonComponent, decorators: [{
|
|
1320
|
+
type: Component,
|
|
1321
|
+
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"] }]
|
|
1322
|
+
}] });
|
|
1323
|
+
|
|
1324
|
+
class PrimaryButtonComponent extends BaseButtonComponent {
|
|
1325
|
+
constructor() {
|
|
1326
|
+
super();
|
|
1327
|
+
this.loadingLabel = input('Saving...', ...(ngDevMode ? [{ debugName: "loadingLabel" }] : []));
|
|
1328
|
+
this.label = input('Save', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
1329
|
+
this.icon = input('save', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
1330
|
+
this.showIcon = input(false, ...(ngDevMode ? [{ debugName: "showIcon" }] : []));
|
|
1331
|
+
this.classes = input('btn-primary primary-button', ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
1332
|
+
}
|
|
1333
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PrimaryButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1334
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.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: `
|
|
1335
|
+
<button
|
|
1336
|
+
mat-raised-button
|
|
1337
|
+
class="btn {{ classes() }}"
|
|
1338
|
+
(click)="onClick.emit($event)"
|
|
1339
|
+
(focus)="onFocus.emit($event)"
|
|
1340
|
+
(blur)="onBlur.emit($event)"
|
|
1341
|
+
(keydown)="onKeyDown.emit($event)"
|
|
1342
|
+
(keyup)="onKeyUp.emit($event)"
|
|
1343
|
+
[disabled]="disabled() || loading()"
|
|
1344
|
+
[type]="type()"
|
|
1345
|
+
[style]="style()"
|
|
1346
|
+
[attr.data-cy]="'primary-button'">
|
|
1347
|
+
@if (loading()) {
|
|
1348
|
+
<span aria-hidden="true" class="spinner-border spinner-border-sm" role="status"></span>
|
|
1349
|
+
}
|
|
1350
|
+
@if (!loading() && showIcon()) {
|
|
1351
|
+
<mat-icon>{{ icon() }}</mat-icon>
|
|
1352
|
+
}
|
|
1353
|
+
{{ loading() ? loadingLabel() : label() }}
|
|
1354
|
+
</button>
|
|
1355
|
+
`, 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"] }] }); }
|
|
1356
|
+
}
|
|
1357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PrimaryButtonComponent, decorators: [{
|
|
1358
|
+
type: Component,
|
|
1359
|
+
args: [{ selector: 'primary-button', imports: [MatButton, MatIcon], template: `
|
|
1360
|
+
<button
|
|
1361
|
+
mat-raised-button
|
|
1362
|
+
class="btn {{ classes() }}"
|
|
1363
|
+
(click)="onClick.emit($event)"
|
|
1364
|
+
(focus)="onFocus.emit($event)"
|
|
1365
|
+
(blur)="onBlur.emit($event)"
|
|
1366
|
+
(keydown)="onKeyDown.emit($event)"
|
|
1367
|
+
(keyup)="onKeyUp.emit($event)"
|
|
1368
|
+
[disabled]="disabled() || loading()"
|
|
1369
|
+
[type]="type()"
|
|
1370
|
+
[style]="style()"
|
|
1371
|
+
[attr.data-cy]="'primary-button'">
|
|
1372
|
+
@if (loading()) {
|
|
1373
|
+
<span aria-hidden="true" class="spinner-border spinner-border-sm" role="status"></span>
|
|
1374
|
+
}
|
|
1375
|
+
@if (!loading() && showIcon()) {
|
|
1376
|
+
<mat-icon>{{ icon() }}</mat-icon>
|
|
1377
|
+
}
|
|
1378
|
+
{{ loading() ? loadingLabel() : label() }}
|
|
1379
|
+
</button>
|
|
1380
|
+
`, 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"] }]
|
|
1381
|
+
}], ctorParameters: () => [] });
|
|
1382
|
+
|
|
1290
1383
|
class SavePrimaryButtonComponent extends BaseButtonComponent {
|
|
1291
1384
|
constructor() {
|
|
1292
1385
|
super();
|
|
1293
|
-
this.loadingLabel = input('Saving...');
|
|
1294
|
-
this.label = input('Save');
|
|
1295
|
-
this.icon = input('save');
|
|
1296
|
-
this.classes = input('btn-primary primary-button');
|
|
1386
|
+
this.loadingLabel = input('Saving...', ...(ngDevMode ? [{ debugName: "loadingLabel" }] : []));
|
|
1387
|
+
this.label = input('Save', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
1388
|
+
this.icon = input('save', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
1389
|
+
this.classes = input('btn-primary primary-button', ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
1297
1390
|
}
|
|
1298
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1299
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
1391
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SavePrimaryButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1392
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.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: `
|
|
1300
1393
|
<button
|
|
1301
1394
|
mat-raised-button
|
|
1302
1395
|
class="btn {{ classes() }}"
|
|
@@ -1319,7 +1412,7 @@ class SavePrimaryButtonComponent extends BaseButtonComponent {
|
|
|
1319
1412
|
</button>
|
|
1320
1413
|
`, 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"] }] }); }
|
|
1321
1414
|
}
|
|
1322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1415
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SavePrimaryButtonComponent, decorators: [{
|
|
1323
1416
|
type: Component,
|
|
1324
1417
|
args: [{ selector: 'save-primary-button', imports: [MatButton, MatIcon], template: `
|
|
1325
1418
|
<button
|
|
@@ -1348,13 +1441,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1348
1441
|
class SearchButtonComponent extends BaseButtonComponent {
|
|
1349
1442
|
constructor() {
|
|
1350
1443
|
super();
|
|
1351
|
-
this.loadingLabel = input('Searching...');
|
|
1352
|
-
this.label = input('Search');
|
|
1353
|
-
this.icon = input('search');
|
|
1354
|
-
this.classes = input('btn-primary primary-button');
|
|
1444
|
+
this.loadingLabel = input('Searching...', ...(ngDevMode ? [{ debugName: "loadingLabel" }] : []));
|
|
1445
|
+
this.label = input('Search', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
1446
|
+
this.icon = input('search', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
1447
|
+
this.classes = input('btn-primary primary-button', ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
1355
1448
|
}
|
|
1356
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1357
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
1449
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SearchButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1450
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.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: `
|
|
1358
1451
|
<button
|
|
1359
1452
|
class="btn btn-primary primary-button {{ loading() || disabled() ? 'disabled' : '' }}"
|
|
1360
1453
|
(click)="onClick.emit($event)"
|
|
@@ -1375,7 +1468,7 @@ class SearchButtonComponent extends BaseButtonComponent {
|
|
|
1375
1468
|
</button>
|
|
1376
1469
|
`, 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"] }] }); }
|
|
1377
1470
|
}
|
|
1378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SearchButtonComponent, decorators: [{
|
|
1379
1472
|
type: Component,
|
|
1380
1473
|
args: [{ selector: 'search-button', imports: [MatButtonModule, MatIconModule], template: `
|
|
1381
1474
|
<button
|
|
@@ -1402,13 +1495,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1402
1495
|
class SuccessButtonComponent extends BaseButtonComponent {
|
|
1403
1496
|
constructor() {
|
|
1404
1497
|
super();
|
|
1405
|
-
this.loadingLabel = input('Updating...');
|
|
1406
|
-
this.label = input('Update');
|
|
1407
|
-
this.icon = input('save');
|
|
1408
|
-
this.classes = input('success-button');
|
|
1498
|
+
this.loadingLabel = input('Updating...', ...(ngDevMode ? [{ debugName: "loadingLabel" }] : []));
|
|
1499
|
+
this.label = input('Update', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
1500
|
+
this.icon = input('save', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
1501
|
+
this.classes = input('success-button', ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
1409
1502
|
}
|
|
1410
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1411
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
1503
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SuccessButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1504
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.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: `
|
|
1412
1505
|
<button
|
|
1413
1506
|
mat-raised-button
|
|
1414
1507
|
class="btn {{ classes() }}"
|
|
@@ -1431,7 +1524,7 @@ class SuccessButtonComponent extends BaseButtonComponent {
|
|
|
1431
1524
|
</button>
|
|
1432
1525
|
`, 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"] }] }); }
|
|
1433
1526
|
}
|
|
1434
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1527
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SuccessButtonComponent, decorators: [{
|
|
1435
1528
|
type: Component,
|
|
1436
1529
|
args: [{
|
|
1437
1530
|
selector: 'success-button',
|
|
@@ -1464,11 +1557,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1464
1557
|
class ViewButtonComponent extends BaseButtonComponent {
|
|
1465
1558
|
constructor() {
|
|
1466
1559
|
super();
|
|
1467
|
-
this.label = input('View');
|
|
1468
|
-
this.icon = input('visibility');
|
|
1560
|
+
this.label = input('View', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
1561
|
+
this.icon = input('visibility', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
1469
1562
|
}
|
|
1470
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1471
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
1563
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ViewButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1564
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.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: `
|
|
1472
1565
|
<button
|
|
1473
1566
|
color="primary"
|
|
1474
1567
|
(click)="onClick.emit($event)"
|
|
@@ -1483,7 +1576,7 @@ class ViewButtonComponent extends BaseButtonComponent {
|
|
|
1483
1576
|
</button>
|
|
1484
1577
|
`, 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"] }] }); }
|
|
1485
1578
|
}
|
|
1486
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ViewButtonComponent, decorators: [{
|
|
1487
1580
|
type: Component,
|
|
1488
1581
|
args: [{ selector: 'view-button', imports: [MatButton, MatIcon], template: `
|
|
1489
1582
|
<button
|
|
@@ -1504,12 +1597,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1504
1597
|
class ViewPrimaryButtonComponent extends BaseButtonComponent {
|
|
1505
1598
|
constructor() {
|
|
1506
1599
|
super();
|
|
1507
|
-
this.label = input('View');
|
|
1508
|
-
this.icon = input('visibility');
|
|
1509
|
-
this.classes = input('btn-primary primary-button');
|
|
1600
|
+
this.label = input('View', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
1601
|
+
this.icon = input('visibility', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
1602
|
+
this.classes = input('btn-primary primary-button', ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
1510
1603
|
}
|
|
1511
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1512
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
1604
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ViewPrimaryButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1605
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.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: `
|
|
1513
1606
|
<button
|
|
1514
1607
|
mat-raised-button
|
|
1515
1608
|
class="btn {{ classes() }}"
|
|
@@ -1527,7 +1620,7 @@ class ViewPrimaryButtonComponent extends BaseButtonComponent {
|
|
|
1527
1620
|
</button>
|
|
1528
1621
|
`, 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"] }] }); }
|
|
1529
1622
|
}
|
|
1530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1623
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ViewPrimaryButtonComponent, decorators: [{
|
|
1531
1624
|
type: Component,
|
|
1532
1625
|
args: [{ selector: 'view-primary-button', imports: [MatButton, MatIcon], template: `
|
|
1533
1626
|
<button
|
|
@@ -1548,83 +1641,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1548
1641
|
`, 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"] }]
|
|
1549
1642
|
}], ctorParameters: () => [] });
|
|
1550
1643
|
|
|
1551
|
-
class PrimaryButtonComponent extends BaseButtonComponent {
|
|
1552
|
-
constructor() {
|
|
1553
|
-
super();
|
|
1554
|
-
this.loadingLabel = input('Saving...');
|
|
1555
|
-
this.label = input('Save');
|
|
1556
|
-
this.icon = input('save');
|
|
1557
|
-
this.showIcon = input(false);
|
|
1558
|
-
this.classes = input('btn-primary primary-button');
|
|
1559
|
-
}
|
|
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: `
|
|
1562
|
-
<button
|
|
1563
|
-
mat-raised-button
|
|
1564
|
-
class="btn {{ classes() }}"
|
|
1565
|
-
(click)="onClick.emit($event)"
|
|
1566
|
-
(focus)="onFocus.emit($event)"
|
|
1567
|
-
(blur)="onBlur.emit($event)"
|
|
1568
|
-
(keydown)="onKeyDown.emit($event)"
|
|
1569
|
-
(keyup)="onKeyUp.emit($event)"
|
|
1570
|
-
[disabled]="disabled() || loading()"
|
|
1571
|
-
[type]="type()"
|
|
1572
|
-
[style]="style()"
|
|
1573
|
-
[attr.data-cy]="'primary-button'">
|
|
1574
|
-
@if (loading()) {
|
|
1575
|
-
<span aria-hidden="true" class="spinner-border spinner-border-sm" role="status"></span>
|
|
1576
|
-
}
|
|
1577
|
-
@if (!loading() && showIcon()) {
|
|
1578
|
-
<mat-icon>{{ icon() }}</mat-icon>
|
|
1579
|
-
}
|
|
1580
|
-
{{ loading() ? loadingLabel() : label() }}
|
|
1581
|
-
</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"] }] }); }
|
|
1583
|
-
}
|
|
1584
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: PrimaryButtonComponent, decorators: [{
|
|
1585
|
-
type: Component,
|
|
1586
|
-
args: [{ selector: 'primary-button', imports: [MatButton, MatIcon], template: `
|
|
1587
|
-
<button
|
|
1588
|
-
mat-raised-button
|
|
1589
|
-
class="btn {{ classes() }}"
|
|
1590
|
-
(click)="onClick.emit($event)"
|
|
1591
|
-
(focus)="onFocus.emit($event)"
|
|
1592
|
-
(blur)="onBlur.emit($event)"
|
|
1593
|
-
(keydown)="onKeyDown.emit($event)"
|
|
1594
|
-
(keyup)="onKeyUp.emit($event)"
|
|
1595
|
-
[disabled]="disabled() || loading()"
|
|
1596
|
-
[type]="type()"
|
|
1597
|
-
[style]="style()"
|
|
1598
|
-
[attr.data-cy]="'primary-button'">
|
|
1599
|
-
@if (loading()) {
|
|
1600
|
-
<span aria-hidden="true" class="spinner-border spinner-border-sm" role="status"></span>
|
|
1601
|
-
}
|
|
1602
|
-
@if (!loading() && showIcon()) {
|
|
1603
|
-
<mat-icon>{{ icon() }}</mat-icon>
|
|
1604
|
-
}
|
|
1605
|
-
{{ loading() ? loadingLabel() : label() }}
|
|
1606
|
-
</button>
|
|
1607
|
-
`, 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"] }]
|
|
1608
|
-
}], ctorParameters: () => [] });
|
|
1609
|
-
|
|
1610
|
-
class PdfExportButtonComponent {
|
|
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"] }] }); }
|
|
1613
|
-
}
|
|
1614
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: PdfExportButtonComponent, decorators: [{
|
|
1615
|
-
type: Component,
|
|
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"] }]
|
|
1617
|
-
}] });
|
|
1618
|
-
|
|
1619
|
-
class ExcelExportButtonComponent {
|
|
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"] }] }); }
|
|
1622
|
-
}
|
|
1623
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ExcelExportButtonComponent, decorators: [{
|
|
1624
|
-
type: Component,
|
|
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"] }]
|
|
1626
|
-
}] });
|
|
1627
|
-
|
|
1628
1644
|
class ConfirmDialogComponent {
|
|
1629
1645
|
constructor(data, dialogRef) {
|
|
1630
1646
|
this.data = data;
|
|
@@ -1641,8 +1657,8 @@ class ConfirmDialogComponent {
|
|
|
1641
1657
|
// Close the dialog, return true
|
|
1642
1658
|
this.dialogRef.close(true);
|
|
1643
1659
|
}
|
|
1644
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1645
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
1660
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ConfirmDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$5.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1661
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.0", type: ConfirmDialogComponent, isStandalone: true, selector: "app-confirm-dialog", ngImport: i0, template: `
|
|
1646
1662
|
<div class="mat-dialog-title" style="text-align: center">
|
|
1647
1663
|
<h3 class="m-3 mat-headline-5 ">{{ title }}</h3>
|
|
1648
1664
|
</div>
|
|
@@ -1658,7 +1674,7 @@ class ConfirmDialogComponent {
|
|
|
1658
1674
|
</div>
|
|
1659
1675
|
`, 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]" }] }); }
|
|
1660
1676
|
}
|
|
1661
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1677
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
|
|
1662
1678
|
type: Component,
|
|
1663
1679
|
args: [{ selector: 'app-confirm-dialog', imports: [MatButtonModule, MatDividerModule, MatDialogModule], template: `
|
|
1664
1680
|
<div class="mat-dialog-title" style="text-align: center">
|
|
@@ -1694,8 +1710,8 @@ class ErrorSnackBarComponent {
|
|
|
1694
1710
|
close() {
|
|
1695
1711
|
this.msb.dismissWithAction();
|
|
1696
1712
|
}
|
|
1697
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1698
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
1713
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ErrorSnackBarComponent, deps: [{ token: i1$6.MatSnackBarRef }, { token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1714
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.0", type: ErrorSnackBarComponent, isStandalone: true, selector: "app-error-snack-bar", ngImport: i0, template: `
|
|
1699
1715
|
<div class="app-flex-center error-snackbar">
|
|
1700
1716
|
<mat-icon style="font-size:1.3rem">error</mat-icon>
|
|
1701
1717
|
<label>{{ data.message }}</label>
|
|
@@ -1705,7 +1721,7 @@ class ErrorSnackBarComponent {
|
|
|
1705
1721
|
</div>
|
|
1706
1722
|
`, isInline: true, styles: [":root{--primary-color: #153d77;--secondary-color: #6c757d;--white-color: #fff;--success-color: #198754;--delete-color: #dc3545;--background-color: #f2f2f2}.success-snackbar{--mdc-snackbar-container-color: var(--success-color) !important;--mat-mdc-snack-bar-button-color: var(--white-color) !important}.success-snackbar .mdc-snackbar__surface{background-color:var(--success-color)!important;color:#fff!important}.success-snackbar .mat-mdc-snack-bar-action{color:var(--white-color)!important}.error-snackbar{--mdc-snackbar-container-color: var(--delete-color) !important;--mat-mdc-snack-bar-button-color: var(--white-color) !important}.error-snackbar .mdc-snackbar__surface{background-color:var(--delete-color)!important;color:#fff!important}.error-snackbar .mat-mdc-snack-bar-action{color:var(--white-color)!important}.light-success-snackbar{--mdc-snackbar-container-color: #d4edda !important;--mat-mdc-snack-bar-button-color: darkgreen !important}.light-success-snackbar .mdc-snackbar__surface{background-color:#d4edda!important;color:#155724!important}.light-success-snackbar .mat-mdc-snack-bar-action{color:#006400!important}.light-error-snackbar{--mdc-snackbar-container-color: #f8d7da !important;--mat-mdc-snack-bar-button-color: darkred !important}.light-error-snackbar .mdc-snackbar__surface{background-color:#f8d7da!important;color:#721c24!important;border:1px solid #f5c6cb}.info-snackbar{--mdc-snackbar-container-color: #0dcaf0 !important;--mat-mdc-snack-bar-button-color: white !important}.info-snackbar .mdc-snackbar__surface{background-color:#0dcaf0!important;color:#fff!important}.warning-snackbar{--mdc-snackbar-container-color: #ffc107 !important;--mat-mdc-snack-bar-button-color: #000 !important}.warning-snackbar .mdc-snackbar__surface{background-color:#ffc107!important;color:#000!important}.primary-snackbar{--mdc-snackbar-container-color: var(--primary-color) !important;--mat-mdc-snack-bar-button-color: white !important}.primary-snackbar .mdc-snackbar__surface{background-color:var(--primary-color)!important;color:#fff!important}\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"] }] }); }
|
|
1707
1723
|
}
|
|
1708
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ErrorSnackBarComponent, decorators: [{
|
|
1709
1725
|
type: Component,
|
|
1710
1726
|
args: [{ selector: 'app-error-snack-bar', imports: [MatIconModule, MatButtonModule], template: `
|
|
1711
1727
|
<div class="app-flex-center error-snackbar">
|
|
@@ -1735,8 +1751,8 @@ class SuccessSnackBarComponent {
|
|
|
1735
1751
|
close() {
|
|
1736
1752
|
this.msb.dismissWithAction();
|
|
1737
1753
|
}
|
|
1738
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1739
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
1754
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SuccessSnackBarComponent, deps: [{ token: i1$6.MatSnackBarRef }, { token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1755
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.0", type: SuccessSnackBarComponent, isStandalone: true, selector: "app-success-snack-bar", ngImport: i0, template: `
|
|
1740
1756
|
<div class="app-flex-center success-snackbar">
|
|
1741
1757
|
<mat-icon style="font-size:1.3rem">check_circle</mat-icon>
|
|
1742
1758
|
<label>{{ data.message }}</label>
|
|
@@ -1746,7 +1762,7 @@ class SuccessSnackBarComponent {
|
|
|
1746
1762
|
</div>
|
|
1747
1763
|
`, isInline: true, styles: [":root{--primary-color: #153d77;--secondary-color: #6c757d;--white-color: #fff;--success-color: #198754;--delete-color: #dc3545;--background-color: #f2f2f2}.success-snackbar{--mdc-snackbar-container-color: var(--success-color) !important;--mat-mdc-snack-bar-button-color: var(--white-color) !important}.success-snackbar .mdc-snackbar__surface{background-color:var(--success-color)!important;color:#fff!important}.success-snackbar .mat-mdc-snack-bar-action{color:var(--white-color)!important}.error-snackbar{--mdc-snackbar-container-color: var(--delete-color) !important;--mat-mdc-snack-bar-button-color: var(--white-color) !important}.error-snackbar .mdc-snackbar__surface{background-color:var(--delete-color)!important;color:#fff!important}.error-snackbar .mat-mdc-snack-bar-action{color:var(--white-color)!important}.light-success-snackbar{--mdc-snackbar-container-color: #d4edda !important;--mat-mdc-snack-bar-button-color: darkgreen !important}.light-success-snackbar .mdc-snackbar__surface{background-color:#d4edda!important;color:#155724!important}.light-success-snackbar .mat-mdc-snack-bar-action{color:#006400!important}.light-error-snackbar{--mdc-snackbar-container-color: #f8d7da !important;--mat-mdc-snack-bar-button-color: darkred !important}.light-error-snackbar .mdc-snackbar__surface{background-color:#f8d7da!important;color:#721c24!important;border:1px solid #f5c6cb}.info-snackbar{--mdc-snackbar-container-color: #0dcaf0 !important;--mat-mdc-snack-bar-button-color: white !important}.info-snackbar .mdc-snackbar__surface{background-color:#0dcaf0!important;color:#fff!important}.warning-snackbar{--mdc-snackbar-container-color: #ffc107 !important;--mat-mdc-snack-bar-button-color: #000 !important}.warning-snackbar .mdc-snackbar__surface{background-color:#ffc107!important;color:#000!important}.primary-snackbar{--mdc-snackbar-container-color: var(--primary-color) !important;--mat-mdc-snack-bar-button-color: white !important}.primary-snackbar .mdc-snackbar__surface{background-color:var(--primary-color)!important;color:#fff!important}\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"] }] }); }
|
|
1748
1764
|
}
|
|
1749
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1765
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SuccessSnackBarComponent, decorators: [{
|
|
1750
1766
|
type: Component,
|
|
1751
1767
|
args: [{ selector: 'app-success-snack-bar', imports: [MatButtonModule, MatIconModule], template: `
|
|
1752
1768
|
<div class="app-flex-center success-snackbar">
|
|
@@ -1829,43 +1845,10 @@ class MatSnackBarService {
|
|
|
1829
1845
|
verticalPosition: this.verticalPosition,
|
|
1830
1846
|
});
|
|
1831
1847
|
}
|
|
1832
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1833
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
1834
|
-
}
|
|
1835
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MatSnackBarService, decorators: [{
|
|
1836
|
-
type: Injectable,
|
|
1837
|
-
args: [{
|
|
1838
|
-
providedIn: 'root',
|
|
1839
|
-
}]
|
|
1840
|
-
}] });
|
|
1841
|
-
|
|
1842
|
-
/**
|
|
1843
|
-
* A core store class that can be used to store any object
|
|
1844
|
-
*
|
|
1845
|
-
* @author Pavan Kumar Jadda
|
|
1846
|
-
* @since 17.1.0
|
|
1847
|
-
*/
|
|
1848
|
-
class Store {
|
|
1849
|
-
constructor() {
|
|
1850
|
-
this._data = signal(undefined);
|
|
1851
|
-
// The data property is a computed property that returns the value of the _data signal
|
|
1852
|
-
this.data = computed(() => this._data());
|
|
1853
|
-
}
|
|
1854
|
-
/**
|
|
1855
|
-
* Update the data in the store with the new data
|
|
1856
|
-
*
|
|
1857
|
-
* @param newData The new data to be stored/updated
|
|
1858
|
-
*
|
|
1859
|
-
* @author Pavan Kumar Jadda
|
|
1860
|
-
* @since 17.1.0
|
|
1861
|
-
*/
|
|
1862
|
-
update(newData) {
|
|
1863
|
-
this._data.set(newData);
|
|
1864
|
-
}
|
|
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' }); }
|
|
1848
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: MatSnackBarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1849
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: MatSnackBarService, providedIn: 'root' }); }
|
|
1867
1850
|
}
|
|
1868
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: MatSnackBarService, decorators: [{
|
|
1869
1852
|
type: Injectable,
|
|
1870
1853
|
args: [{
|
|
1871
1854
|
providedIn: 'root',
|
|
@@ -1880,9 +1863,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1880
1863
|
*/
|
|
1881
1864
|
class EntityStore {
|
|
1882
1865
|
constructor() {
|
|
1883
|
-
this._data = signal([]);
|
|
1866
|
+
this._data = signal([], ...(ngDevMode ? [{ debugName: "_data" }] : []));
|
|
1884
1867
|
// The data property is a computed property that returns the value of the _data signal
|
|
1885
|
-
this.data = computed(() => this._data());
|
|
1868
|
+
this.data = computed(() => this._data(), ...(ngDevMode ? [{ debugName: "data" }] : []));
|
|
1886
1869
|
}
|
|
1887
1870
|
/**
|
|
1888
1871
|
* Find an item in the store by id
|
|
@@ -1949,10 +1932,55 @@ class EntityStore {
|
|
|
1949
1932
|
remove(id) {
|
|
1950
1933
|
this._data.update((currentData) => currentData.filter((item) => item.id !== id));
|
|
1951
1934
|
}
|
|
1952
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1953
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
1935
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: EntityStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1936
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: EntityStore, providedIn: 'root' }); }
|
|
1937
|
+
}
|
|
1938
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: EntityStore, decorators: [{
|
|
1939
|
+
type: Injectable,
|
|
1940
|
+
args: [{
|
|
1941
|
+
providedIn: 'root',
|
|
1942
|
+
}]
|
|
1943
|
+
}] });
|
|
1944
|
+
|
|
1945
|
+
/**
|
|
1946
|
+
* A core store class that can be used to store any object
|
|
1947
|
+
*
|
|
1948
|
+
* @author Pavan Kumar Jadda
|
|
1949
|
+
* @since 17.1.0
|
|
1950
|
+
*/
|
|
1951
|
+
class Store {
|
|
1952
|
+
constructor() {
|
|
1953
|
+
this._data = signal(null, ...(ngDevMode ? [{ debugName: "_data" }] : []));
|
|
1954
|
+
// The data property is a computed property that returns the value of the _data signal
|
|
1955
|
+
this.data = computed(() => this._data(), ...(ngDevMode ? [{ debugName: "data" }] : []));
|
|
1956
|
+
}
|
|
1957
|
+
// Add initialization method
|
|
1958
|
+
initialize(initialData) {
|
|
1959
|
+
this._data.set(initialData);
|
|
1960
|
+
}
|
|
1961
|
+
/**
|
|
1962
|
+
* Update the data in the store with the new data
|
|
1963
|
+
*
|
|
1964
|
+
* @param newData The new data to be stored/updated
|
|
1965
|
+
*
|
|
1966
|
+
* @author Pavan Kumar Jadda
|
|
1967
|
+
* @since 17.1.0
|
|
1968
|
+
*/
|
|
1969
|
+
update(newData) {
|
|
1970
|
+
this._data.set(newData);
|
|
1971
|
+
}
|
|
1972
|
+
// Add clear method
|
|
1973
|
+
clear() {
|
|
1974
|
+
this._data.set(null);
|
|
1975
|
+
}
|
|
1976
|
+
// Add getter with null check
|
|
1977
|
+
getData() {
|
|
1978
|
+
return this._data();
|
|
1979
|
+
}
|
|
1980
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: Store, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1981
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: Store, providedIn: 'root' }); }
|
|
1954
1982
|
}
|
|
1955
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1983
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: Store, decorators: [{
|
|
1956
1984
|
type: Injectable,
|
|
1957
1985
|
args: [{
|
|
1958
1986
|
providedIn: 'root',
|
|
@@ -2042,5 +2070,5 @@ const markError = (progressState, message) => {
|
|
|
2042
2070
|
* Generated bundle index. Do not edit.
|
|
2043
2071
|
*/
|
|
2044
2072
|
|
|
2045
|
-
export { AlertComponent, AutocompleteComponent, BsLinkButtonComponent, ConfirmDialogComponent, DeleteButtonComponent, EditBsButtonComponent, EditButtonComponent, EditSolidSvgComponent, EditSvgIconButtonComponent, EntityStore, ExcelExportButtonComponent, ManageButtonComponent, MatSnackBarService, NgxPrintDirective, NgxSpinnerComponent, NgxSpinnerService, PdfExportButtonComponent, PreventMultipleClicksDirective, PrimaryButtonComponent, SavePrimaryButtonComponent, SearchButtonComponent, SpinnerComponent, Store, SuccessButtonComponent, ViewButtonComponent, ViewPrimaryButtonComponent, initializeState, markError, markLoading, markSuccess };
|
|
2073
|
+
export { AlertComponent, AutocompleteComponent, BsLinkButtonComponent, CloseButtonDirective, ConfirmDialogComponent, DeleteButtonComponent, EditBsButtonComponent, EditButtonComponent, EditSolidSvgComponent, EditSvgIconButtonComponent, EntityStore, ExcelExportButtonComponent, ManageButtonComponent, MatSnackBarService, NgxPrintDirective, NgxSpinnerComponent, NgxSpinnerService, PdfExportButtonComponent, PreventMultipleClicksDirective, PrimaryButtonComponent, SavePrimaryButtonComponent, SearchButtonComponent, SpinnerComponent, Store, SuccessButtonComponent, ViewButtonComponent, ViewPrimaryButtonComponent, initializeState, markError, markLoading, markSuccess };
|
|
2046
2074
|
//# sourceMappingURL=js-smart-ng-kit.mjs.map
|