turbogui-angular 12.1.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/main/controller/dialog.service.mjs +41 -12
- package/esm2022/main/controller/http.service.mjs +6 -2
- package/esm2022/main/model/modules/turbogui-angular.module.mjs +14 -1
- package/esm2022/main/view/components/dialog-date-selection/dialog-date-selection.component.mjs +46 -0
- package/esm2022/public_api.mjs +2 -1
- package/fesm2022/turbogui-angular.mjs +146 -61
- package/fesm2022/turbogui-angular.mjs.map +1 -1
- package/main/controller/dialog.service.d.ts +20 -5
- package/main/controller/dialog.service.d.ts.map +1 -1
- package/main/controller/http.service.d.ts.map +1 -1
- package/main/model/modules/turbogui-angular.module.d.ts +22 -19
- package/main/model/modules/turbogui-angular.module.d.ts.map +1 -1
- package/main/view/components/dialog-date-selection/dialog-date-selection.component.d.ts +16 -0
- package/main/view/components/dialog-date-selection/dialog-date-selection.component.d.ts.map +1 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/public_api.d.ts.map +1 -1
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, Component, HostBinding, Inject, ViewContainerRef, Input, ViewChild, Directive, HostListener, EventEmitter, Output, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1
|
|
3
|
+
import * as i1 from '@angular/material/dialog';
|
|
4
4
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
5
5
|
import * as i3$1 from '@angular/material/input';
|
|
6
6
|
import { MatInputModule } from '@angular/material/input';
|
|
7
|
-
import * as i1 from '@angular/material/snack-bar';
|
|
7
|
+
import * as i1$1 from '@angular/material/snack-bar';
|
|
8
8
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
9
|
-
import * as i2 from '@angular/material/button';
|
|
9
|
+
import * as i2$1 from '@angular/material/button';
|
|
10
10
|
import { MatButtonModule } from '@angular/material/button';
|
|
11
11
|
import * as i4 from '@angular/material/form-field';
|
|
12
12
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
13
|
+
import * as i2 from '@angular/material/datepicker';
|
|
14
|
+
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
15
|
+
import { MatNativeDateModule } from '@angular/material/core';
|
|
13
16
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
14
17
|
import { style, animate, transition, trigger } from '@angular/animations';
|
|
15
18
|
import { ArrayUtils, NumericUtils, LocalizationManager, HTTPManager, StringUtils, HTTPManagerPostRequest, ConversionUtils, BrowserManager, HTTPManagerGetRequest } from 'turbocommons-ts';
|
|
@@ -84,6 +87,74 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImpor
|
|
|
84
87
|
args: ['@busyStateBaseFade']
|
|
85
88
|
}] } });
|
|
86
89
|
|
|
90
|
+
/**
|
|
91
|
+
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
92
|
+
*
|
|
93
|
+
* Website : -> http://www.turbogui.org
|
|
94
|
+
* License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
|
|
95
|
+
* License Url : -> http://www.apache.org/licenses/LICENSE-2.0
|
|
96
|
+
* CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
|
|
97
|
+
*/
|
|
98
|
+
/**
|
|
99
|
+
* This is the base class for all the dialog components that can be loaded by the dialog service class
|
|
100
|
+
*/
|
|
101
|
+
class DialogBaseComponent {
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
106
|
+
*
|
|
107
|
+
* Website : -> http://www.turbogui.org
|
|
108
|
+
* License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
|
|
109
|
+
* License Url : -> http://www.apache.org/licenses/LICENSE-2.0
|
|
110
|
+
* CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
|
|
111
|
+
*/
|
|
112
|
+
/**
|
|
113
|
+
* This is the base class for all the dialog components that show one or more options for the user to select
|
|
114
|
+
*/
|
|
115
|
+
class DialogOptionsBaseComponent extends DialogBaseComponent {
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
120
|
+
*
|
|
121
|
+
* Website : -> http://www.turbogui.org
|
|
122
|
+
* License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
|
|
123
|
+
* License Url : -> http://www.apache.org/licenses/LICENSE-2.0
|
|
124
|
+
* CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
|
|
125
|
+
*/
|
|
126
|
+
/**
|
|
127
|
+
* A dialog component with a calendar that allows us to select a single date value
|
|
128
|
+
*/
|
|
129
|
+
class DialogDateSelectionComponent extends DialogOptionsBaseComponent {
|
|
130
|
+
constructor(dialogRef, data) {
|
|
131
|
+
super();
|
|
132
|
+
this.dialogRef = dialogRef;
|
|
133
|
+
this.data = data;
|
|
134
|
+
// if (data.texts.length < 1) {
|
|
135
|
+
//
|
|
136
|
+
// throw new Error('DialogErrorComponent expects 2 texts: The title and optionally a description');
|
|
137
|
+
// }
|
|
138
|
+
//
|
|
139
|
+
// if (data.options.length !== 1) {
|
|
140
|
+
//
|
|
141
|
+
// throw new Error('DialogErrorComponent expects only one option');
|
|
142
|
+
// }
|
|
143
|
+
}
|
|
144
|
+
onDateSelected(event) {
|
|
145
|
+
alert(`Selected: ${event}`);
|
|
146
|
+
}
|
|
147
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogDateSelectionComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
148
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: DialogDateSelectionComponent, selector: "tg-dialog-date-selection", usesInheritance: true, ngImport: i0, template: "<h2>{{data.texts[0]}}</h2>\r\n\r\n<mat-calendar #calendar\r\n (selectedChange)=\"onDateSelected($event)\">\r\n</mat-calendar>", styles: [":host{position:relative;min-height:300px}h1{margin-top:0;margin-bottom:25px;width:82%}\n"], dependencies: [{ kind: "component", type: i2.MatCalendar, selector: "mat-calendar", inputs: ["headerComponent", "startAt", "startView", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedChange", "yearSelected", "monthSelected", "viewChanged", "_userSelection", "_userDragDrop"], exportAs: ["matCalendar"] }] }); }
|
|
149
|
+
}
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogDateSelectionComponent, decorators: [{
|
|
151
|
+
type: Component,
|
|
152
|
+
args: [{ selector: 'tg-dialog-date-selection', template: "<h2>{{data.texts[0]}}</h2>\r\n\r\n<mat-calendar #calendar\r\n (selectedChange)=\"onDateSelected($event)\">\r\n</mat-calendar>", styles: [":host{position:relative;min-height:300px}h1{margin-top:0;margin-bottom:25px;width:82%}\n"] }]
|
|
153
|
+
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
|
|
154
|
+
type: Inject,
|
|
155
|
+
args: [MAT_DIALOG_DATA]
|
|
156
|
+
}] }] });
|
|
157
|
+
|
|
87
158
|
/**
|
|
88
159
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
89
160
|
*
|
|
@@ -300,34 +371,42 @@ class DialogService {
|
|
|
300
371
|
reduced if the available screen is not enough, and will reach the desired value otherwise. Note that height will be adapted to the contents
|
|
301
372
|
of the dialog and cannot be specified here. We can set a pixels, % or any other css accepted value. For example: '400px', '50%', etc.
|
|
302
373
|
* @param texts A list with strings containing the dialog texts, sorted by importance. When dialog has a title, this should
|
|
303
|
-
* be placed first, subtitle second and so (Each dialog may accept different
|
|
374
|
+
* be placed first, subtitle second and so (Each dialog may accept different number of texts).
|
|
304
375
|
* @param options A list of strings that will be used as button captions for each one of the accepted dialog options
|
|
305
376
|
* @param dialogComponentClass A class for a component that extends DialogOptionsBaseComponent, which will be the
|
|
306
377
|
* dialog visual element that is shown to the user.
|
|
307
378
|
* @param callback A function that will be called after the dialog is closed and will receive an object with the numeric index and value for
|
|
308
|
-
* the option that's been selected by the user.
|
|
379
|
+
* the option that's been selected by the user. if no option was selected, the value will be -1
|
|
309
380
|
* @param modal True (default) if selecting an option is mandatory to close the dialog, false if the dialog can be closed
|
|
310
381
|
* by the user by clicking outside it
|
|
311
382
|
* @param maxWidth Defines the maximum width that the dialog will have regarding the viewport. We can specify it in % or vw, just like is done in
|
|
312
383
|
* css. By default it is defined as 96vw, which will fit 96% of the viewport on small devices
|
|
313
384
|
*/
|
|
314
|
-
addDialog(
|
|
385
|
+
addDialog(dialogComponentClass, options, callback = null) {
|
|
315
386
|
if (!this._isEnabled) {
|
|
316
387
|
return;
|
|
317
388
|
}
|
|
389
|
+
// Set the default values for all non specified visual options
|
|
390
|
+
options.width = options.hasOwnProperty('width') ? options.width : "50%";
|
|
391
|
+
options.maxWidth = options.hasOwnProperty('maxWidth') ? options.maxWidth : "96vw";
|
|
392
|
+
options.height = options.hasOwnProperty('height') ? options.height : "50%";
|
|
393
|
+
options.maxHeight = options.hasOwnProperty('maxHeight') ? options.maxHeight : "92vw";
|
|
394
|
+
options.modal = options.hasOwnProperty('modal') ? options.modal : true;
|
|
395
|
+
options.texts = options.hasOwnProperty('texts') ? options.texts : [];
|
|
396
|
+
options.captions = options.hasOwnProperty('captions') ? options.captions : [];
|
|
318
397
|
// Generate a string to uniquely identify this dialog on the list of active dialogs
|
|
319
|
-
const dialogHash = texts.join('') + options.join('') + dialogComponentClass.name;
|
|
398
|
+
const dialogHash = options.texts.join('') + options.captions.join('') + dialogComponentClass.name;
|
|
320
399
|
// identical dialogs won't be allowed at the same time
|
|
321
400
|
if (this._activeDialogs.includes(dialogHash)) {
|
|
322
401
|
return;
|
|
323
402
|
}
|
|
324
403
|
const dialogRef = this.matDialog.open(dialogComponentClass, {
|
|
325
|
-
width: width,
|
|
326
|
-
maxWidth: maxWidth,
|
|
327
|
-
disableClose: modal,
|
|
404
|
+
width: options.width,
|
|
405
|
+
maxWidth: options.maxWidth,
|
|
406
|
+
disableClose: options.modal,
|
|
328
407
|
autoFocus: false,
|
|
329
|
-
closeOnNavigation: !modal,
|
|
330
|
-
data: { texts: texts, options: options }
|
|
408
|
+
closeOnNavigation: !options.modal,
|
|
409
|
+
data: { texts: options.texts, options: options.captions }
|
|
331
410
|
});
|
|
332
411
|
this._activeDialogs.push(dialogHash);
|
|
333
412
|
this._activeDialogInstances.push(dialogRef);
|
|
@@ -335,7 +414,7 @@ class DialogService {
|
|
|
335
414
|
this._activeDialogs = ArrayUtils.removeElement(this._activeDialogs, dialogHash);
|
|
336
415
|
this._activeDialogInstances = ArrayUtils.removeElement(this._activeDialogInstances, dialogRef);
|
|
337
416
|
if (!NumericUtils.isInteger(selectedOptionIndex)) {
|
|
338
|
-
if (modal) {
|
|
417
|
+
if (options.modal) {
|
|
339
418
|
throw new Error(`dialogRef.close() expects int value`);
|
|
340
419
|
}
|
|
341
420
|
else {
|
|
@@ -345,7 +424,7 @@ class DialogService {
|
|
|
345
424
|
if (callback !== null) {
|
|
346
425
|
let selectedOption = { index: selectedOptionIndex, value: '' };
|
|
347
426
|
if (selectedOptionIndex >= 0) {
|
|
348
|
-
selectedOption.value = options[selectedOptionIndex];
|
|
427
|
+
selectedOption.value = options.captions[selectedOptionIndex];
|
|
349
428
|
}
|
|
350
429
|
callback(selectedOption);
|
|
351
430
|
}
|
|
@@ -366,6 +445,26 @@ class DialogService {
|
|
|
366
445
|
this._activeDialogs = [];
|
|
367
446
|
this._activeDialogInstances = [];
|
|
368
447
|
}
|
|
448
|
+
addDateSelectionDialog(options, title, callback) {
|
|
449
|
+
if (!this._isEnabled) {
|
|
450
|
+
return;
|
|
451
|
+
}
|
|
452
|
+
this.addDialog(DialogDateSelectionComponent, {
|
|
453
|
+
width: options.width,
|
|
454
|
+
maxWidth: options.maxWidth,
|
|
455
|
+
height: options.height,
|
|
456
|
+
maxHeight: options.maxHeight,
|
|
457
|
+
modal: options.modal,
|
|
458
|
+
texts: [title]
|
|
459
|
+
}, (selectedOption) => {
|
|
460
|
+
if (selectedOption.index < 0) {
|
|
461
|
+
callback(null);
|
|
462
|
+
}
|
|
463
|
+
else {
|
|
464
|
+
callback(selectedOption.value);
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
}
|
|
369
468
|
/**
|
|
370
469
|
* Block all the user interactions with the application (keyboard, touch, mouse, ...)
|
|
371
470
|
*/
|
|
@@ -397,12 +496,12 @@ class DialogService {
|
|
|
397
496
|
this._documentMousedownUnlisten = null;
|
|
398
497
|
}
|
|
399
498
|
}
|
|
400
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogService, deps: [{ token: i0.RendererFactory2 }, { token: i1.MatSnackBar }, { token: i1
|
|
499
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogService, deps: [{ token: i0.RendererFactory2 }, { token: i1$1.MatSnackBar }, { token: i1.MatDialog }, { token: i0.Injector }, { token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
401
500
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogService }); }
|
|
402
501
|
}
|
|
403
502
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogService, decorators: [{
|
|
404
503
|
type: Injectable
|
|
405
|
-
}], ctorParameters: () => [{ type: i0.RendererFactory2 }, { type: i1.MatSnackBar }, { type: i1
|
|
504
|
+
}], ctorParameters: () => [{ type: i0.RendererFactory2 }, { type: i1$1.MatSnackBar }, { type: i1.MatDialog }, { type: i0.Injector }, { type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }] });
|
|
406
505
|
|
|
407
506
|
/**
|
|
408
507
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -423,34 +522,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImpor
|
|
|
423
522
|
type: Injectable
|
|
424
523
|
}] });
|
|
425
524
|
|
|
426
|
-
/**
|
|
427
|
-
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
428
|
-
*
|
|
429
|
-
* Website : -> http://www.turbogui.org
|
|
430
|
-
* License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
|
|
431
|
-
* License Url : -> http://www.apache.org/licenses/LICENSE-2.0
|
|
432
|
-
* CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
|
|
433
|
-
*/
|
|
434
|
-
/**
|
|
435
|
-
* This is the base class for all the dialog components that can be loaded by the dialog service class
|
|
436
|
-
*/
|
|
437
|
-
class DialogBaseComponent {
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
442
|
-
*
|
|
443
|
-
* Website : -> http://www.turbogui.org
|
|
444
|
-
* License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
|
|
445
|
-
* License Url : -> http://www.apache.org/licenses/LICENSE-2.0
|
|
446
|
-
* CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
|
|
447
|
-
*/
|
|
448
|
-
/**
|
|
449
|
-
* This is the base class for all the dialog components that show one or more options for the user to select
|
|
450
|
-
*/
|
|
451
|
-
class DialogOptionsBaseComponent extends DialogBaseComponent {
|
|
452
|
-
}
|
|
453
|
-
|
|
454
525
|
/**
|
|
455
526
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
456
527
|
*
|
|
@@ -474,13 +545,13 @@ class DialogErrorComponent extends DialogOptionsBaseComponent {
|
|
|
474
545
|
throw new Error('DialogErrorComponent expects only one option');
|
|
475
546
|
}
|
|
476
547
|
}
|
|
477
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogErrorComponent, deps: [{ token: i1
|
|
478
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: DialogErrorComponent, selector: "tg-dialog-error", usesInheritance: true, ngImport: i0, template: "<div class=\"titleAndIconContainer\">\r\n <h3>\r\n {{data.texts[0]}}\r\n </h3>\r\n \r\n <!-- error icon -->\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\">\r\n <path d=\"M0 0h24v24H0z\" fill=\"none\"/>\r\n <path d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" fill=\"#ff0000\" />\r\n </svg>\r\n \r\n</div>\r\n\r\n<p *ngIf=\"data.texts.length > 1\">\r\n {{data.texts[1]}}\r\n</p>\r\n\r\n<button mat-raised-button color=\"warn\"\r\n (click)=\"dialogRef.close(0)\">\r\n \r\n {{data.options[0]}}\r\n \r\n</button>", styles: [":host{position:relative;min-height:300px}.titleAndIconContainer{display:flex;flex-direction:row;align-items:center}h3{margin-top:0;margin-bottom:25px;width:82%}svg{width:18%;height:auto}p{margin-bottom:52px}button{float:right;width:50%;min-width:50px}\n"], dependencies: [{ kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
548
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogErrorComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
549
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: DialogErrorComponent, selector: "tg-dialog-error", usesInheritance: true, ngImport: i0, template: "<div class=\"titleAndIconContainer\">\r\n <h3>\r\n {{data.texts[0]}}\r\n </h3>\r\n \r\n <!-- error icon -->\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\">\r\n <path d=\"M0 0h24v24H0z\" fill=\"none\"/>\r\n <path d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" fill=\"#ff0000\" />\r\n </svg>\r\n \r\n</div>\r\n\r\n<p *ngIf=\"data.texts.length > 1\">\r\n {{data.texts[1]}}\r\n</p>\r\n\r\n<button mat-raised-button color=\"warn\"\r\n (click)=\"dialogRef.close(0)\">\r\n \r\n {{data.options[0]}}\r\n \r\n</button>", styles: [":host{position:relative;min-height:300px}.titleAndIconContainer{display:flex;flex-direction:row;align-items:center}h3{margin-top:0;margin-bottom:25px;width:82%}svg{width:18%;height:auto}p{margin-bottom:52px}button{float:right;width:50%;min-width:50px}\n"], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
479
550
|
}
|
|
480
551
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogErrorComponent, decorators: [{
|
|
481
552
|
type: Component,
|
|
482
553
|
args: [{ selector: 'tg-dialog-error', template: "<div class=\"titleAndIconContainer\">\r\n <h3>\r\n {{data.texts[0]}}\r\n </h3>\r\n \r\n <!-- error icon -->\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\">\r\n <path d=\"M0 0h24v24H0z\" fill=\"none\"/>\r\n <path d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\" fill=\"#ff0000\" />\r\n </svg>\r\n \r\n</div>\r\n\r\n<p *ngIf=\"data.texts.length > 1\">\r\n {{data.texts[1]}}\r\n</p>\r\n\r\n<button mat-raised-button color=\"warn\"\r\n (click)=\"dialogRef.close(0)\">\r\n \r\n {{data.options[0]}}\r\n \r\n</button>", styles: [":host{position:relative;min-height:300px}.titleAndIconContainer{display:flex;flex-direction:row;align-items:center}h3{margin-top:0;margin-bottom:25px;width:82%}svg{width:18%;height:auto}p{margin-bottom:52px}button{float:right;width:50%;min-width:50px}\n"] }]
|
|
483
|
-
}], ctorParameters: () => [{ type: i1
|
|
554
|
+
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
|
|
484
555
|
type: Inject,
|
|
485
556
|
args: [MAT_DIALOG_DATA]
|
|
486
557
|
}] }] });
|
|
@@ -534,7 +605,11 @@ class HTTPService extends HTTPManager {
|
|
|
534
605
|
if (StringUtils.isEmpty(errorMsg)) {
|
|
535
606
|
errorMsg = 'Unknown error. Make sure Internet connection is available';
|
|
536
607
|
}
|
|
537
|
-
this.dialogService.addDialog(
|
|
608
|
+
this.dialogService.addDialog(DialogErrorComponent, {
|
|
609
|
+
width: '600px',
|
|
610
|
+
texts: ['Error: ' + result.code, errorMsg],
|
|
611
|
+
captions: ['Ok']
|
|
612
|
+
});
|
|
538
613
|
}
|
|
539
614
|
}
|
|
540
615
|
}
|
|
@@ -1187,13 +1262,13 @@ class DialogSingleOptionComponent extends DialogOptionsBaseComponent {
|
|
|
1187
1262
|
throw new Error('DialogSingleOptionComponent expects only one option');
|
|
1188
1263
|
}
|
|
1189
1264
|
}
|
|
1190
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogSingleOptionComponent, deps: [{ token: i1
|
|
1191
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: DialogSingleOptionComponent, selector: "tg-dialog-single-option", usesInheritance: true, ngImport: i0, template: "<h3>\r\n {{data.texts[0]}}\r\n</h3>\r\n\r\n<p *ngIf=\"data.texts.length > 1\">\r\n {{data.texts[1]}}\r\n</p>\r\n\r\n<button mat-raised-button color=\"primary\"\r\n (click)=\"dialogRef.close(0)\">\r\n \r\n {{data.options[0]}}\r\n \r\n</button>", styles: [":host{min-height:300px}h3{margin-bottom:25px}p{margin-bottom:52px}button{float:right}\n"], dependencies: [{ kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
1265
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogSingleOptionComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1266
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: DialogSingleOptionComponent, selector: "tg-dialog-single-option", usesInheritance: true, ngImport: i0, template: "<h3>\r\n {{data.texts[0]}}\r\n</h3>\r\n\r\n<p *ngIf=\"data.texts.length > 1\">\r\n {{data.texts[1]}}\r\n</p>\r\n\r\n<button mat-raised-button color=\"primary\"\r\n (click)=\"dialogRef.close(0)\">\r\n \r\n {{data.options[0]}}\r\n \r\n</button>", styles: [":host{min-height:300px}h3{margin-bottom:25px}p{margin-bottom:52px}button{float:right}\n"], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
1192
1267
|
}
|
|
1193
1268
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogSingleOptionComponent, decorators: [{
|
|
1194
1269
|
type: Component,
|
|
1195
1270
|
args: [{ selector: 'tg-dialog-single-option', template: "<h3>\r\n {{data.texts[0]}}\r\n</h3>\r\n\r\n<p *ngIf=\"data.texts.length > 1\">\r\n {{data.texts[1]}}\r\n</p>\r\n\r\n<button mat-raised-button color=\"primary\"\r\n (click)=\"dialogRef.close(0)\">\r\n \r\n {{data.options[0]}}\r\n \r\n</button>", styles: [":host{min-height:300px}h3{margin-bottom:25px}p{margin-bottom:52px}button{float:right}\n"] }]
|
|
1196
|
-
}], ctorParameters: () => [{ type: i1
|
|
1271
|
+
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
|
|
1197
1272
|
type: Inject,
|
|
1198
1273
|
args: [MAT_DIALOG_DATA]
|
|
1199
1274
|
}] }] });
|
|
@@ -1222,13 +1297,13 @@ class DialogTwoOptionComponent extends DialogOptionsBaseComponent {
|
|
|
1222
1297
|
throw new Error('DialogTwoOptionComponent expects only two options');
|
|
1223
1298
|
}
|
|
1224
1299
|
}
|
|
1225
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogTwoOptionComponent, deps: [{ token: i1
|
|
1226
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: DialogTwoOptionComponent, selector: "tg-dialog-two-option", usesInheritance: true, ngImport: i0, template: "<h3>\r\n {{data.texts[0]}}\r\n</h3>\r\n\r\n<p *ngIf=\"data.texts.length > 1\">\r\n {{data.texts[1]}}\r\n</p>\r\n\r\n<div class=\"buttonsContainer\">\r\n\r\n <button mat-raised-button color=\"primary\" class=\"primaryButton\"\r\n (click)=\"dialogRef.close(0)\">\r\n \r\n {{data.options[0]}}\r\n \r\n </button>\r\n \r\n <button mat-button\r\n (click)=\"dialogRef.close(1)\">\r\n \r\n {{data.options[1]}}\r\n \r\n </button>\r\n \r\n</div>\r\n", styles: [":host{min-height:300px}h3{margin-bottom:25px}p{margin-bottom:52px}.buttonsContainer{width:100%;max-width:530px;display:flex;flex-direction:row-reverse;float:right}button{width:50%;padding:0}.primaryButton{margin-left:2%}\n"], dependencies: [{ kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
1300
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogTwoOptionComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1301
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: DialogTwoOptionComponent, selector: "tg-dialog-two-option", usesInheritance: true, ngImport: i0, template: "<h3>\r\n {{data.texts[0]}}\r\n</h3>\r\n\r\n<p *ngIf=\"data.texts.length > 1\">\r\n {{data.texts[1]}}\r\n</p>\r\n\r\n<div class=\"buttonsContainer\">\r\n\r\n <button mat-raised-button color=\"primary\" class=\"primaryButton\"\r\n (click)=\"dialogRef.close(0)\">\r\n \r\n {{data.options[0]}}\r\n \r\n </button>\r\n \r\n <button mat-button\r\n (click)=\"dialogRef.close(1)\">\r\n \r\n {{data.options[1]}}\r\n \r\n </button>\r\n \r\n</div>\r\n", styles: [":host{min-height:300px}h3{margin-bottom:25px}p{margin-bottom:52px}.buttonsContainer{width:100%;max-width:530px;display:flex;flex-direction:row-reverse;float:right}button{width:50%;padding:0}.primaryButton{margin-left:2%}\n"], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
1227
1302
|
}
|
|
1228
1303
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogTwoOptionComponent, decorators: [{
|
|
1229
1304
|
type: Component,
|
|
1230
1305
|
args: [{ selector: 'tg-dialog-two-option', template: "<h3>\r\n {{data.texts[0]}}\r\n</h3>\r\n\r\n<p *ngIf=\"data.texts.length > 1\">\r\n {{data.texts[1]}}\r\n</p>\r\n\r\n<div class=\"buttonsContainer\">\r\n\r\n <button mat-raised-button color=\"primary\" class=\"primaryButton\"\r\n (click)=\"dialogRef.close(0)\">\r\n \r\n {{data.options[0]}}\r\n \r\n </button>\r\n \r\n <button mat-button\r\n (click)=\"dialogRef.close(1)\">\r\n \r\n {{data.options[1]}}\r\n \r\n </button>\r\n \r\n</div>\r\n", styles: [":host{min-height:300px}h3{margin-bottom:25px}p{margin-bottom:52px}.buttonsContainer{width:100%;max-width:530px;display:flex;flex-direction:row-reverse;float:right}button{width:50%;padding:0}.primaryButton{margin-left:2%}\n"] }]
|
|
1231
|
-
}], ctorParameters: () => [{ type: i1
|
|
1306
|
+
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
|
|
1232
1307
|
type: Inject,
|
|
1233
1308
|
args: [MAT_DIALOG_DATA]
|
|
1234
1309
|
}] }] });
|
|
@@ -1403,13 +1478,13 @@ class DialogSingleSelectionListComponent extends DialogOptionsBaseComponent {
|
|
|
1403
1478
|
}
|
|
1404
1479
|
}
|
|
1405
1480
|
}
|
|
1406
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogSingleSelectionListComponent, deps: [{ token: i1
|
|
1407
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: DialogSingleSelectionListComponent, selector: "tg-dialog-single-selection-list", usesInheritance: true, ngImport: i0, template: "<h3>\r\n {{data.texts[0]}}\r\n</h3>\r\n\r\n<p *ngIf=\"data.texts.length > 1 && !stringUtils.isEmpty(data.texts[1])\">\r\n {{data.texts[1]}}\r\n</p>\r\n\r\n<mat-form-field *ngIf=\"data.texts.length > 2 && !stringUtils.isEmpty(data.texts[2])\"\r\n class=\"searchItemInputContainer\">\r\n \r\n <mat-label>{{data.texts[2]}}</mat-label>\r\n <input matInput autoFocusOnDisplay\r\n (input)=\"onSearchChange($event.target)\">\r\n \r\n</mat-form-field>\r\n\r\n<div class=\"listItemsContainer\"\r\n [style.max-height]=\"getListItemsContainerMaxheight()\">\r\n\r\n <div class=\"listItemContainer\"\r\n [style.background-color]=\"selectedItemIndex === i ? '#90d1ffad' : (i % 2 === 0 ? 'initial' : '#00000009')\"\r\n *ngFor=\"let item of filteredOptions; let i = index; trackBy: trackByFn\"\r\n (click)=\"data.texts.length < 4 ? dialogRef.close(i) : selectedItemIndex = i\">\r\n \r\n <p *ngIf=\"item !== ''\">\r\n {{item}}\r\n </p>\r\n \r\n </div>\r\n\r\n</div>\r\n\r\n<button mat-raised-button color=\"primary\"\r\n [disabled]=\"selectedItemIndex < 0\"\r\n (click)=\"dialogRef.close(selectedItemIndex)\"\r\n *ngIf=\"data.texts.length > 3\">\r\n\r\n {{data.texts[3]}}\r\n \r\n</button>", styles: [":host{min-height:300px}h3{margin-top:0;margin-bottom:10px}p{margin-top:0;margin-bottom:5px}.searchItemInputContainer{width:100%;margin-top:0;margin-bottom:0}.listItemsContainer{overflow-y:auto;border:1px solid rgba(0,0,0,.2);border-radius:4px;margin-bottom:5px}.listItemContainer p{line-height:36px;width:calc(100% - 12px);margin:0 0 0 6px}button{float:right}\n"], dependencies: [{ kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: AutoFocusOnDisplayDirective, selector: "[autoFocusOnDisplay]" }] }); }
|
|
1481
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogSingleSelectionListComponent, deps: [{ token: i1.MatDialogRef }, { token: BrowserService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1482
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: DialogSingleSelectionListComponent, selector: "tg-dialog-single-selection-list", usesInheritance: true, ngImport: i0, template: "<h3>\r\n {{data.texts[0]}}\r\n</h3>\r\n\r\n<p *ngIf=\"data.texts.length > 1 && !stringUtils.isEmpty(data.texts[1])\">\r\n {{data.texts[1]}}\r\n</p>\r\n\r\n<mat-form-field *ngIf=\"data.texts.length > 2 && !stringUtils.isEmpty(data.texts[2])\"\r\n class=\"searchItemInputContainer\">\r\n \r\n <mat-label>{{data.texts[2]}}</mat-label>\r\n <input matInput autoFocusOnDisplay\r\n (input)=\"onSearchChange($event.target)\">\r\n \r\n</mat-form-field>\r\n\r\n<div class=\"listItemsContainer\"\r\n [style.max-height]=\"getListItemsContainerMaxheight()\">\r\n\r\n <div class=\"listItemContainer\"\r\n [style.background-color]=\"selectedItemIndex === i ? '#90d1ffad' : (i % 2 === 0 ? 'initial' : '#00000009')\"\r\n *ngFor=\"let item of filteredOptions; let i = index; trackBy: trackByFn\"\r\n (click)=\"data.texts.length < 4 ? dialogRef.close(i) : selectedItemIndex = i\">\r\n \r\n <p *ngIf=\"item !== ''\">\r\n {{item}}\r\n </p>\r\n \r\n </div>\r\n\r\n</div>\r\n\r\n<button mat-raised-button color=\"primary\"\r\n [disabled]=\"selectedItemIndex < 0\"\r\n (click)=\"dialogRef.close(selectedItemIndex)\"\r\n *ngIf=\"data.texts.length > 3\">\r\n\r\n {{data.texts[3]}}\r\n \r\n</button>", styles: [":host{min-height:300px}h3{margin-top:0;margin-bottom:10px}p{margin-top:0;margin-bottom:5px}.searchItemInputContainer{width:100%;margin-top:0;margin-bottom:0}.listItemsContainer{overflow-y:auto;border:1px solid rgba(0,0,0,.2);border-radius:4px;margin-bottom:5px}.listItemContainer p{line-height:36px;width:calc(100% - 12px);margin:0 0 0 6px}button{float:right}\n"], dependencies: [{ kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: AutoFocusOnDisplayDirective, selector: "[autoFocusOnDisplay]" }] }); }
|
|
1408
1483
|
}
|
|
1409
1484
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogSingleSelectionListComponent, decorators: [{
|
|
1410
1485
|
type: Component,
|
|
1411
1486
|
args: [{ selector: 'tg-dialog-single-selection-list', template: "<h3>\r\n {{data.texts[0]}}\r\n</h3>\r\n\r\n<p *ngIf=\"data.texts.length > 1 && !stringUtils.isEmpty(data.texts[1])\">\r\n {{data.texts[1]}}\r\n</p>\r\n\r\n<mat-form-field *ngIf=\"data.texts.length > 2 && !stringUtils.isEmpty(data.texts[2])\"\r\n class=\"searchItemInputContainer\">\r\n \r\n <mat-label>{{data.texts[2]}}</mat-label>\r\n <input matInput autoFocusOnDisplay\r\n (input)=\"onSearchChange($event.target)\">\r\n \r\n</mat-form-field>\r\n\r\n<div class=\"listItemsContainer\"\r\n [style.max-height]=\"getListItemsContainerMaxheight()\">\r\n\r\n <div class=\"listItemContainer\"\r\n [style.background-color]=\"selectedItemIndex === i ? '#90d1ffad' : (i % 2 === 0 ? 'initial' : '#00000009')\"\r\n *ngFor=\"let item of filteredOptions; let i = index; trackBy: trackByFn\"\r\n (click)=\"data.texts.length < 4 ? dialogRef.close(i) : selectedItemIndex = i\">\r\n \r\n <p *ngIf=\"item !== ''\">\r\n {{item}}\r\n </p>\r\n \r\n </div>\r\n\r\n</div>\r\n\r\n<button mat-raised-button color=\"primary\"\r\n [disabled]=\"selectedItemIndex < 0\"\r\n (click)=\"dialogRef.close(selectedItemIndex)\"\r\n *ngIf=\"data.texts.length > 3\">\r\n\r\n {{data.texts[3]}}\r\n \r\n</button>", styles: [":host{min-height:300px}h3{margin-top:0;margin-bottom:10px}p{margin-top:0;margin-bottom:5px}.searchItemInputContainer{width:100%;margin-top:0;margin-bottom:0}.listItemsContainer{overflow-y:auto;border:1px solid rgba(0,0,0,.2);border-radius:4px;margin-bottom:5px}.listItemContainer p{line-height:36px;width:calc(100% - 12px);margin:0 0 0 6px}button{float:right}\n"] }]
|
|
1412
|
-
}], ctorParameters: () => [{ type: i1
|
|
1487
|
+
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: BrowserService }, { type: undefined, decorators: [{
|
|
1413
1488
|
type: Inject,
|
|
1414
1489
|
args: [MAT_DIALOG_DATA]
|
|
1415
1490
|
}] }] });
|
|
@@ -1434,13 +1509,13 @@ class DialogMultipleOptionComponent extends DialogOptionsBaseComponent {
|
|
|
1434
1509
|
throw new Error('DialogMultipleOptionComponent expects 2 texts: The title and optionally a description');
|
|
1435
1510
|
}
|
|
1436
1511
|
}
|
|
1437
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogMultipleOptionComponent, deps: [{ token: i1
|
|
1438
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: DialogMultipleOptionComponent, selector: "tg-dialog-multiple-option", usesInheritance: true, ngImport: i0, template: "<h3>\r\n {{data.texts[0]}}\r\n</h3>\r\n\r\n<p *ngIf=\"data.texts.length > 1\">\r\n {{data.texts[1]}}\r\n</p>\r\n\r\n<button mat-raised-button color=\"primary\"\r\n *ngFor=\"let option of data.options; let i = index\"\r\n (click)=\"dialogRef.close(i)\">\r\n \r\n {{option}}\r\n \r\n</button>", styles: [":host{display:flex;flex-direction:column;min-height:193px}h3{margin-bottom:45px}button{margin-bottom:25px}\n"], dependencies: [{ kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
1512
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogMultipleOptionComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1513
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: DialogMultipleOptionComponent, selector: "tg-dialog-multiple-option", usesInheritance: true, ngImport: i0, template: "<h3>\r\n {{data.texts[0]}}\r\n</h3>\r\n\r\n<p *ngIf=\"data.texts.length > 1\">\r\n {{data.texts[1]}}\r\n</p>\r\n\r\n<button mat-raised-button color=\"primary\"\r\n *ngFor=\"let option of data.options; let i = index\"\r\n (click)=\"dialogRef.close(i)\">\r\n \r\n {{option}}\r\n \r\n</button>", styles: [":host{display:flex;flex-direction:column;min-height:193px}h3{margin-bottom:45px}button{margin-bottom:25px}\n"], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
1439
1514
|
}
|
|
1440
1515
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: DialogMultipleOptionComponent, decorators: [{
|
|
1441
1516
|
type: Component,
|
|
1442
1517
|
args: [{ selector: 'tg-dialog-multiple-option', template: "<h3>\r\n {{data.texts[0]}}\r\n</h3>\r\n\r\n<p *ngIf=\"data.texts.length > 1\">\r\n {{data.texts[1]}}\r\n</p>\r\n\r\n<button mat-raised-button color=\"primary\"\r\n *ngFor=\"let option of data.options; let i = index\"\r\n (click)=\"dialogRef.close(i)\">\r\n \r\n {{option}}\r\n \r\n</button>", styles: [":host{display:flex;flex-direction:column;min-height:193px}h3{margin-bottom:45px}button{margin-bottom:25px}\n"] }]
|
|
1443
|
-
}], ctorParameters: () => [{ type: i1
|
|
1518
|
+
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
|
|
1444
1519
|
type: Inject,
|
|
1445
1520
|
args: [MAT_DIALOG_DATA]
|
|
1446
1521
|
}] }] });
|
|
@@ -1576,6 +1651,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImpor
|
|
|
1576
1651
|
class TurboGuiAngularModule {
|
|
1577
1652
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TurboGuiAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1578
1653
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.8", ngImport: i0, type: TurboGuiAngularModule, declarations: [BusyStateBaseComponent,
|
|
1654
|
+
DialogDateSelectionComponent,
|
|
1579
1655
|
DialogErrorComponent,
|
|
1580
1656
|
DialogSingleOptionComponent,
|
|
1581
1657
|
DialogTwoOptionComponent,
|
|
@@ -1592,10 +1668,13 @@ class TurboGuiAngularModule {
|
|
|
1592
1668
|
MatInputModule,
|
|
1593
1669
|
MatButtonModule,
|
|
1594
1670
|
MatFormFieldModule,
|
|
1671
|
+
MatDatepickerModule,
|
|
1672
|
+
MatNativeDateModule,
|
|
1595
1673
|
BrowserAnimationsModule], exports: [BusyStateBaseComponent,
|
|
1596
1674
|
ViewsContainerComponent,
|
|
1597
1675
|
ButtonImageComponent,
|
|
1598
1676
|
ButtonContainerComponent,
|
|
1677
|
+
DialogDateSelectionComponent,
|
|
1599
1678
|
DialogErrorComponent,
|
|
1600
1679
|
DialogSingleOptionComponent,
|
|
1601
1680
|
DialogTwoOptionComponent,
|
|
@@ -1618,6 +1697,8 @@ class TurboGuiAngularModule {
|
|
|
1618
1697
|
MatInputModule,
|
|
1619
1698
|
MatButtonModule,
|
|
1620
1699
|
MatFormFieldModule,
|
|
1700
|
+
MatDatepickerModule,
|
|
1701
|
+
MatNativeDateModule,
|
|
1621
1702
|
BrowserAnimationsModule] }); }
|
|
1622
1703
|
}
|
|
1623
1704
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TurboGuiAngularModule, decorators: [{
|
|
@@ -1629,10 +1710,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImpor
|
|
|
1629
1710
|
MatInputModule,
|
|
1630
1711
|
MatButtonModule,
|
|
1631
1712
|
MatFormFieldModule,
|
|
1713
|
+
MatDatepickerModule,
|
|
1714
|
+
MatNativeDateModule,
|
|
1632
1715
|
BrowserAnimationsModule
|
|
1633
1716
|
],
|
|
1634
1717
|
declarations: [
|
|
1635
1718
|
BusyStateBaseComponent,
|
|
1719
|
+
DialogDateSelectionComponent,
|
|
1636
1720
|
DialogErrorComponent,
|
|
1637
1721
|
DialogSingleOptionComponent,
|
|
1638
1722
|
DialogTwoOptionComponent,
|
|
@@ -1661,6 +1745,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImpor
|
|
|
1661
1745
|
ViewsContainerComponent,
|
|
1662
1746
|
ButtonImageComponent,
|
|
1663
1747
|
ButtonContainerComponent,
|
|
1748
|
+
DialogDateSelectionComponent,
|
|
1664
1749
|
DialogErrorComponent,
|
|
1665
1750
|
DialogSingleOptionComponent,
|
|
1666
1751
|
DialogTwoOptionComponent,
|
|
@@ -1940,5 +2025,5 @@ class DelayedMethodCallManager {
|
|
|
1940
2025
|
* Generated bundle index. Do not edit.
|
|
1941
2026
|
*/
|
|
1942
2027
|
|
|
1943
|
-
export { AutoFocusOnDisplayDirective, AutoSelectTextOnFocusDirective, BrowserService, BusyStateBaseComponent, ButtonContainerComponent, ButtonImageComponent, DelayedMethodCallManager, DialogErrorComponent, DialogMultipleOptionComponent, DialogOptionsBaseComponent, DialogService, DialogSingleOptionComponent, DialogSingleSelectionListComponent, DialogTwoOptionComponent, ElementCreatedDirective, ElementDestroyedDirective, FadeAnimationClass, GUINotification, GlobalErrorService, HTTPService, HTTPServiceGetRequest, HTTPServicePostRequest, LocalizationService, NotificationService, TurboGuiAngularModule, UserService, View, ViewModel, ViewService, ViewsContainerComponent, ViewsService };
|
|
2028
|
+
export { AutoFocusOnDisplayDirective, AutoSelectTextOnFocusDirective, BrowserService, BusyStateBaseComponent, ButtonContainerComponent, ButtonImageComponent, DelayedMethodCallManager, DialogDateSelectionComponent, DialogErrorComponent, DialogMultipleOptionComponent, DialogOptionsBaseComponent, DialogService, DialogSingleOptionComponent, DialogSingleSelectionListComponent, DialogTwoOptionComponent, ElementCreatedDirective, ElementDestroyedDirective, FadeAnimationClass, GUINotification, GlobalErrorService, HTTPService, HTTPServiceGetRequest, HTTPServicePostRequest, LocalizationService, NotificationService, TurboGuiAngularModule, UserService, View, ViewModel, ViewService, ViewsContainerComponent, ViewsService };
|
|
1944
2029
|
//# sourceMappingURL=turbogui-angular.mjs.map
|