turbogui-angular 7.0.0 → 8.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/esm2020/main/controller/browser.service.mjs +48 -0
- package/esm2020/main/controller/dialog.service.mjs +324 -0
- package/esm2020/main/controller/globalerror.service.mjs +68 -0
- package/esm2020/main/controller/http.service.mjs +70 -0
- package/esm2020/main/controller/localization.service.mjs +22 -0
- package/esm2020/main/controller/notification.service.mjs +56 -0
- package/esm2020/main/controller/user.service.mjs +124 -0
- package/esm2020/main/controller/views.service.mjs +113 -0
- package/esm2020/main/model/modules/turbogui-angular.module.mjs +142 -0
- package/esm2020/main/view/animations/fade.animation.mjs +35 -0
- package/esm2020/main/view/components/busy-state-base/busy-state-base.component.mjs +38 -0
- package/esm2020/main/view/components/button-base/button-base.component.mjs +180 -0
- package/esm2020/main/view/components/button-container/button-container.component.mjs +34 -0
- package/esm2020/main/view/components/button-image/button-image.component.mjs +47 -0
- package/esm2020/main/view/components/dialog-error/dialog-error.component.mjs +41 -0
- package/esm2020/main/view/components/dialog-multiple-option/dialog-multiple-option.component.mjs +38 -0
- package/esm2020/main/view/components/dialog-single-option/dialog-single-option.component.mjs +41 -0
- package/esm2020/main/view/components/dialog-single-selection-list/dialog-single-selection-list.component.mjs +112 -0
- package/esm2020/main/view/components/dialog-two-option/dialog-two-option.component.mjs +42 -0
- package/{esm2015/main/view/components/views-container/views-container.component.js → esm2020/main/view/components/views-container/views-container.component.mjs} +15 -13
- package/esm2020/main/view/directives/AutoFocusOnDisplayDirective.mjs +39 -0
- package/esm2020/main/view/directives/AutoSelectTextOnFocusDirective.mjs +39 -0
- package/esm2020/main/view/directives/ElementCreatedDirective.mjs +42 -0
- package/esm2020/main/view/directives/ElementDestroyedDirective.mjs +42 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +1 -1
- package/esm2020/turbogui-angular.mjs +5 -0
- package/fesm2015/turbogui-angular.mjs +1953 -0
- package/fesm2015/turbogui-angular.mjs.map +1 -0
- package/{fesm2015/turbogui-angular.js → fesm2020/turbogui-angular.mjs} +368 -298
- package/fesm2020/turbogui-angular.mjs.map +1 -0
- package/main/controller/browser.service.d.ts +3 -8
- package/main/controller/browser.service.d.ts.map +1 -1
- package/main/controller/dialog.service.d.ts +3 -8
- package/main/controller/dialog.service.d.ts.map +1 -1
- package/main/controller/globalerror.service.d.ts +3 -0
- package/main/controller/globalerror.service.d.ts.map +1 -1
- package/main/controller/http.service.d.ts +3 -8
- package/main/controller/http.service.d.ts.map +1 -1
- package/main/controller/localization.service.d.ts +3 -8
- package/main/controller/localization.service.d.ts.map +1 -1
- package/main/controller/notification.service.d.ts +3 -8
- package/main/controller/notification.service.d.ts.map +1 -1
- package/main/controller/user.service.d.ts +3 -8
- package/main/controller/user.service.d.ts.map +1 -1
- package/main/controller/views.service.d.ts +3 -0
- package/main/controller/views.service.d.ts.map +1 -1
- package/main/model/modules/turbogui-angular.module.d.ts +23 -8
- package/main/model/modules/turbogui-angular.module.d.ts.map +1 -1
- package/main/view/animations/fade.animation.d.ts +3 -8
- package/main/view/animations/fade.animation.d.ts.map +1 -1
- package/main/view/components/busy-state-base/busy-state-base.component.d.ts +3 -8
- package/main/view/components/busy-state-base/busy-state-base.component.d.ts.map +1 -1
- package/main/view/components/button-base/button-base.component.d.ts +3 -0
- package/main/view/components/button-base/button-base.component.d.ts.map +1 -1
- package/main/view/components/button-container/button-container.component.d.ts +3 -8
- package/main/view/components/button-container/button-container.component.d.ts.map +1 -1
- package/main/view/components/button-image/button-image.component.d.ts +3 -0
- package/main/view/components/button-image/button-image.component.d.ts.map +1 -1
- package/main/view/components/dialog-error/dialog-error.component.d.ts +3 -8
- package/main/view/components/dialog-error/dialog-error.component.d.ts.map +1 -1
- package/main/view/components/dialog-multiple-option/dialog-multiple-option.component.d.ts +3 -8
- package/main/view/components/dialog-multiple-option/dialog-multiple-option.component.d.ts.map +1 -1
- package/main/view/components/dialog-single-option/dialog-single-option.component.d.ts +3 -8
- package/main/view/components/dialog-single-option/dialog-single-option.component.d.ts.map +1 -1
- package/main/view/components/dialog-single-selection-list/dialog-single-selection-list.component.d.ts +3 -8
- package/main/view/components/dialog-single-selection-list/dialog-single-selection-list.component.d.ts.map +1 -1
- package/main/view/components/dialog-two-option/dialog-two-option.component.d.ts +3 -8
- package/main/view/components/dialog-two-option/dialog-two-option.component.d.ts.map +1 -1
- package/main/view/components/views-container/views-container.component.d.ts +3 -0
- package/main/view/components/views-container/views-container.component.d.ts.map +1 -1
- package/main/view/directives/AutoFocusOnDisplayDirective.d.ts +3 -0
- package/main/view/directives/AutoFocusOnDisplayDirective.d.ts.map +1 -1
- package/main/view/directives/AutoSelectTextOnFocusDirective.d.ts +3 -0
- package/main/view/directives/AutoSelectTextOnFocusDirective.d.ts.map +1 -1
- package/main/view/directives/ElementCreatedDirective.d.ts +3 -0
- package/main/view/directives/ElementCreatedDirective.d.ts.map +1 -1
- package/main/view/directives/ElementDestroyedDirective.d.ts +3 -0
- package/main/view/directives/ElementDestroyedDirective.d.ts.map +1 -1
- package/package.json +24 -12
- package/turbogui-angular.d.ts +1 -2
- package/turbogui-angular.d.ts.map +1 -1
- package/bundles/turbogui-angular.umd.js +0 -2431
- package/bundles/turbogui-angular.umd.js.map +0 -1
- package/esm2015/main/controller/browser.service.js +0 -48
- package/esm2015/main/controller/dialog.service.js +0 -329
- package/esm2015/main/controller/globalerror.service.js +0 -65
- package/esm2015/main/controller/http.service.js +0 -70
- package/esm2015/main/controller/localization.service.js +0 -19
- package/esm2015/main/controller/notification.service.js +0 -53
- package/esm2015/main/controller/user.service.js +0 -125
- package/esm2015/main/controller/views.service.js +0 -113
- package/esm2015/main/model/modules/turbogui-angular.module.js +0 -93
- package/esm2015/main/view/animations/fade.animation.js +0 -32
- package/esm2015/main/view/components/busy-state-base/busy-state-base.component.js +0 -39
- package/esm2015/main/view/components/button-base/button-base.component.js +0 -149
- package/esm2015/main/view/components/button-container/button-container.component.js +0 -35
- package/esm2015/main/view/components/button-image/button-image.component.js +0 -46
- package/esm2015/main/view/components/dialog-error/dialog-error.component.js +0 -39
- package/esm2015/main/view/components/dialog-multiple-option/dialog-multiple-option.component.js +0 -36
- package/esm2015/main/view/components/dialog-single-option/dialog-single-option.component.js +0 -39
- package/esm2015/main/view/components/dialog-single-selection-list/dialog-single-selection-list.component.js +0 -108
- package/esm2015/main/view/components/dialog-two-option/dialog-two-option.component.js +0 -40
- package/esm2015/main/view/directives/AutoFocusOnDisplayDirective.js +0 -40
- package/esm2015/main/view/directives/AutoSelectTextOnFocusDirective.js +0 -39
- package/esm2015/main/view/directives/ElementCreatedDirective.js +0 -38
- package/esm2015/main/view/directives/ElementDestroyedDirective.js +0 -38
- package/esm2015/turbogui-angular.js +0 -7
- package/fesm2015/turbogui-angular.js.map +0 -1
- package/main/controller/browser.service.ngfactory.d.ts.map +0 -1
- package/main/controller/dialog.service.ngfactory.d.ts.map +0 -1
- package/main/controller/globalerror.service.ngfactory.d.ts.map +0 -1
- package/main/controller/http.service.ngfactory.d.ts.map +0 -1
- package/main/controller/localization.service.ngfactory.d.ts.map +0 -1
- package/main/controller/notification.service.ngfactory.d.ts.map +0 -1
- package/main/controller/user.service.ngfactory.d.ts.map +0 -1
- package/main/controller/views.service.ngfactory.d.ts.map +0 -1
- package/main/model/modules/turbogui-angular.module.ngfactory.d.ts.map +0 -1
- package/main/view/animations/fade.animation.ngfactory.d.ts.map +0 -1
- package/main/view/components/busy-state-base/busy-state-base.component.ngfactory.d.ts.map +0 -1
- package/main/view/components/busy-state-base/busy-state-base.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/main/view/components/button-container/button-container.component.ngfactory.d.ts.map +0 -1
- package/main/view/components/button-container/button-container.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/main/view/components/button-image/button-image.component.ngfactory.d.ts.map +0 -1
- package/main/view/components/button-image/button-image.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/main/view/components/dialog-error/dialog-error.component.ngfactory.d.ts.map +0 -1
- package/main/view/components/dialog-error/dialog-error.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/main/view/components/dialog-multiple-option/dialog-multiple-option.component.ngfactory.d.ts.map +0 -1
- package/main/view/components/dialog-multiple-option/dialog-multiple-option.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/main/view/components/dialog-single-option/dialog-single-option.component.ngfactory.d.ts.map +0 -1
- package/main/view/components/dialog-single-option/dialog-single-option.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/main/view/components/dialog-single-selection-list/dialog-single-selection-list.component.ngfactory.d.ts.map +0 -1
- package/main/view/components/dialog-single-selection-list/dialog-single-selection-list.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/main/view/components/dialog-two-option/dialog-two-option.component.ngfactory.d.ts.map +0 -1
- package/main/view/components/dialog-two-option/dialog-two-option.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/main/view/components/views-container/views-container.component.ngfactory.d.ts.map +0 -1
- package/main/view/components/views-container/views-container.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/main/view/directives/AutoFocusOnDisplayDirective.ngfactory.d.ts.map +0 -1
- package/main/view/directives/AutoSelectTextOnFocusDirective.ngfactory.d.ts.map +0 -1
- package/main/view/directives/ElementCreatedDirective.ngfactory.d.ts.map +0 -1
- package/main/view/directives/ElementDestroyedDirective.ngfactory.d.ts.map +0 -1
- package/turbogui-angular.metadata.json +0 -1
- /package/{esm2015/main/controller/httpservice/HTTPServiceGetRequest.js → esm2020/main/controller/httpservice/HTTPServiceGetRequest.mjs} +0 -0
- /package/{esm2015/main/controller/httpservice/HTTPServicePostRequest.js → esm2020/main/controller/httpservice/HTTPServicePostRequest.mjs} +0 -0
- /package/{esm2015/main/managers/DelayedMethodCallManager.js → esm2020/main/managers/DelayedMethodCallManager.mjs} +0 -0
- /package/{esm2015/main/model/classes/GUINotification.js → esm2020/main/model/classes/GUINotification.mjs} +0 -0
- /package/{esm2015/main/model/classes/View.js → esm2020/main/model/classes/View.mjs} +0 -0
- /package/{esm2015/main/model/classes/ViewModel.js → esm2020/main/model/classes/ViewModel.mjs} +0 -0
- /package/{esm2015/main/model/classes/ViewService.js → esm2020/main/model/classes/ViewService.mjs} +0 -0
- /package/{esm2015/main/view/components/dialog-base/dialog-base.component.js → esm2020/main/view/components/dialog-base/dialog-base.component.mjs} +0 -0
- /package/{esm2015/main/view/components/dialog-options-base/dialog-options-base.component.js → esm2020/main/view/components/dialog-options-base/dialog-options-base.component.mjs} +0 -0
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, Component, HostBinding, Inject, ViewContainerRef, Input, ViewChild, Directive, HostListener, EventEmitter, Output, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1$1 from '@angular/material/dialog';
|
|
4
|
+
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
5
|
+
import * as i6 from '@angular/material/input';
|
|
3
6
|
import { MatInputModule } from '@angular/material/input';
|
|
4
|
-
import
|
|
7
|
+
import * as i1 from '@angular/material/snack-bar';
|
|
8
|
+
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
9
|
+
import * as i2 from '@angular/material/button';
|
|
5
10
|
import { MatButtonModule } from '@angular/material/button';
|
|
11
|
+
import * as i3$1 from '@angular/material/form-field';
|
|
6
12
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
7
13
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
8
14
|
import { trigger, transition, style, animate } from '@angular/animations';
|
|
9
15
|
import { ArrayUtils, NumericUtils, LocalizationManager, HTTPManager, StringUtils, HTTPManagerPostRequest, ConversionUtils, BrowserManager, HTTPManagerGetRequest } from 'turbocommons-ts';
|
|
10
16
|
import { ComponentPortal, DomPortalOutlet } from '@angular/cdk/portal';
|
|
17
|
+
import * as i3 from '@angular/common';
|
|
11
18
|
import { Subject } from 'rxjs';
|
|
12
|
-
import { Location } from '@angular/common';
|
|
13
19
|
|
|
14
20
|
/**
|
|
15
21
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -37,9 +43,11 @@ class FadeAnimationClass {
|
|
|
37
43
|
]);
|
|
38
44
|
}
|
|
39
45
|
}
|
|
40
|
-
FadeAnimationClass
|
|
41
|
-
|
|
42
|
-
|
|
46
|
+
FadeAnimationClass.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FadeAnimationClass, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
47
|
+
FadeAnimationClass.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FadeAnimationClass });
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FadeAnimationClass, decorators: [{
|
|
49
|
+
type: Injectable
|
|
50
|
+
}] });
|
|
43
51
|
|
|
44
52
|
/**
|
|
45
53
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -66,17 +74,15 @@ class BusyStateBaseComponent {
|
|
|
66
74
|
this.busyStateBaseFade = true;
|
|
67
75
|
}
|
|
68
76
|
}
|
|
69
|
-
BusyStateBaseComponent
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
]
|
|
77
|
-
|
|
78
|
-
busyStateBaseFade: [{ type: HostBinding, args: ['@busyStateBaseFade',] }]
|
|
79
|
-
};
|
|
77
|
+
BusyStateBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: BusyStateBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
78
|
+
BusyStateBaseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: BusyStateBaseComponent, selector: "tg-busy-state-base", host: { properties: { "@busyStateBaseFade": "this.busyStateBaseFade" } }, ngImport: i0, template: "<div class=\"darkBg\">\r\n\r\n</div>\r\n\r\n<svg width=\"38\" height=\"38\" viewBox=\"0 0 38 38\" xmlns=\"http://www.w3.org/2000/svg\" stroke=\"#fff\">\r\n <g fill=\"none\" fill-rule=\"evenodd\">\r\n <g transform=\"translate(1 1)\" stroke-width=\"1\">\r\n <circle stroke-opacity=\".2\" cx=\"18\" cy=\"18\" r=\"18\"/>\r\n <path d=\"M36 18c0-9.94-8.06-18-18-18\">\r\n <animateTransform\r\n attributeName=\"transform\"\r\n type=\"rotate\"\r\n from=\"0 18 18\"\r\n to=\"360 18 18\"\r\n dur=\"1s\"\r\n repeatCount=\"indefinite\"/>\r\n </path>\r\n </g>\r\n </g>\r\n</svg>\r\n", styles: [":host{position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:999999999}.darkBg{position:absolute;cursor:progress;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background-color:#00000096;animation-name:bgfadein;animation-duration:30s;animation-timing-function:ease}svg{z-index:5000;width:40%;height:40%;max-width:130px;max-height:130px;animation-name:loadingfadein;animation-duration:3s;animation-timing-function:ease-in}@keyframes loadingfadein{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes bgfadein{0%{opacity:0}4%{opacity:0}14%{opacity:.2}35%{opacity:.5}to{opacity:1}}\n"], animations: [FadeAnimationClass.getTrigger('busyStateBaseFade', '1s ease', '400ms ease')] });
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: BusyStateBaseComponent, decorators: [{
|
|
80
|
+
type: Component,
|
|
81
|
+
args: [{ selector: 'tg-busy-state-base', animations: [FadeAnimationClass.getTrigger('busyStateBaseFade', '1s ease', '400ms ease')], template: "<div class=\"darkBg\">\r\n\r\n</div>\r\n\r\n<svg width=\"38\" height=\"38\" viewBox=\"0 0 38 38\" xmlns=\"http://www.w3.org/2000/svg\" stroke=\"#fff\">\r\n <g fill=\"none\" fill-rule=\"evenodd\">\r\n <g transform=\"translate(1 1)\" stroke-width=\"1\">\r\n <circle stroke-opacity=\".2\" cx=\"18\" cy=\"18\" r=\"18\"/>\r\n <path d=\"M36 18c0-9.94-8.06-18-18-18\">\r\n <animateTransform\r\n attributeName=\"transform\"\r\n type=\"rotate\"\r\n from=\"0 18 18\"\r\n to=\"360 18 18\"\r\n dur=\"1s\"\r\n repeatCount=\"indefinite\"/>\r\n </path>\r\n </g>\r\n </g>\r\n</svg>\r\n", styles: [":host{position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:999999999}.darkBg{position:absolute;cursor:progress;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background-color:#00000096;animation-name:bgfadein;animation-duration:30s;animation-timing-function:ease}svg{z-index:5000;width:40%;height:40%;max-width:130px;max-height:130px;animation-name:loadingfadein;animation-duration:3s;animation-timing-function:ease-in}@keyframes loadingfadein{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes bgfadein{0%{opacity:0}4%{opacity:0}14%{opacity:.2}35%{opacity:.5}to{opacity:1}}\n"] }]
|
|
82
|
+
}], propDecorators: { busyStateBaseFade: [{
|
|
83
|
+
type: HostBinding,
|
|
84
|
+
args: ['@busyStateBaseFade']
|
|
85
|
+
}] } });
|
|
80
86
|
|
|
81
87
|
/**
|
|
82
88
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -389,17 +395,11 @@ class DialogService {
|
|
|
389
395
|
}
|
|
390
396
|
}
|
|
391
397
|
}
|
|
392
|
-
DialogService
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
{ type: MatSnackBar },
|
|
398
|
-
{ type: MatDialog },
|
|
399
|
-
{ type: Injector },
|
|
400
|
-
{ type: ApplicationRef },
|
|
401
|
-
{ type: ComponentFactoryResolver }
|
|
402
|
-
];
|
|
398
|
+
DialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DialogService, deps: [{ token: i0.RendererFactory2 }, { token: i1.MatSnackBar }, { token: i1$1.MatDialog }, { token: i0.Injector }, { token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
399
|
+
DialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DialogService });
|
|
400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DialogService, decorators: [{
|
|
401
|
+
type: Injectable
|
|
402
|
+
}], ctorParameters: function () { return [{ type: i0.RendererFactory2 }, { type: i1.MatSnackBar }, { type: i1$1.MatDialog }, { type: i0.Injector }, { type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }]; } });
|
|
403
403
|
|
|
404
404
|
/**
|
|
405
405
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -414,9 +414,11 @@ DialogService.ctorParameters = () => [
|
|
|
414
414
|
*/
|
|
415
415
|
class LocalizationService extends LocalizationManager {
|
|
416
416
|
}
|
|
417
|
-
LocalizationService
|
|
418
|
-
|
|
419
|
-
|
|
417
|
+
LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: LocalizationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
418
|
+
LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: LocalizationService });
|
|
419
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: LocalizationService, decorators: [{
|
|
420
|
+
type: Injectable
|
|
421
|
+
}] });
|
|
420
422
|
|
|
421
423
|
/**
|
|
422
424
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -470,17 +472,15 @@ class DialogErrorComponent extends DialogOptionsBaseComponent {
|
|
|
470
472
|
}
|
|
471
473
|
}
|
|
472
474
|
}
|
|
473
|
-
DialogErrorComponent
|
|
474
|
-
{ type:
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
483
|
-
];
|
|
475
|
+
DialogErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DialogErrorComponent, deps: [{ token: i1$1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
476
|
+
DialogErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", 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"], components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DialogErrorComponent, decorators: [{
|
|
478
|
+
type: Component,
|
|
479
|
+
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"] }]
|
|
480
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatDialogRef }, { type: undefined, decorators: [{
|
|
481
|
+
type: Inject,
|
|
482
|
+
args: [MAT_DIALOG_DATA]
|
|
483
|
+
}] }]; } });
|
|
484
484
|
|
|
485
485
|
/**
|
|
486
486
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -541,12 +541,11 @@ HTTPService.NO_MODAL_BUSY_STATE = 'NO_MODAL_BUSY_STATE';
|
|
|
541
541
|
* errors by ourselves or if we want to hide the error dialog for a specific request.
|
|
542
542
|
*/
|
|
543
543
|
HTTPService.DISABLE_ERROR_HANDLING = 'DISABLE_ERROR_HANDLING';
|
|
544
|
-
HTTPService
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
];
|
|
544
|
+
HTTPService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: HTTPService, deps: [{ token: DialogService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
545
|
+
HTTPService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: HTTPService });
|
|
546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: HTTPService, decorators: [{
|
|
547
|
+
type: Injectable
|
|
548
|
+
}], ctorParameters: function () { return [{ type: DialogService }]; } });
|
|
550
549
|
|
|
551
550
|
/**
|
|
552
551
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -595,9 +594,11 @@ class NotificationService {
|
|
|
595
594
|
return subscription.unsubscribe();
|
|
596
595
|
}
|
|
597
596
|
}
|
|
598
|
-
NotificationService
|
|
599
|
-
|
|
600
|
-
|
|
597
|
+
NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: NotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
598
|
+
NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: NotificationService });
|
|
599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: NotificationService, decorators: [{
|
|
600
|
+
type: Injectable
|
|
601
|
+
}] });
|
|
601
602
|
|
|
602
603
|
/**
|
|
603
604
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -725,13 +726,11 @@ class UserService {
|
|
|
725
726
|
}
|
|
726
727
|
}
|
|
727
728
|
}
|
|
728
|
-
UserService
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
{ type: LocalizationService }
|
|
734
|
-
];
|
|
729
|
+
UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: UserService, deps: [{ token: HTTPService }, { token: LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
730
|
+
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: UserService });
|
|
731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: UserService, decorators: [{
|
|
732
|
+
type: Injectable
|
|
733
|
+
}], ctorParameters: function () { return [{ type: HTTPService }, { type: LocalizationService }]; } });
|
|
735
734
|
|
|
736
735
|
/**
|
|
737
736
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -838,12 +837,11 @@ class ViewsService {
|
|
|
838
837
|
}
|
|
839
838
|
}
|
|
840
839
|
}
|
|
841
|
-
ViewsService
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
];
|
|
840
|
+
ViewsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ViewsService, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
841
|
+
ViewsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ViewsService });
|
|
842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ViewsService, decorators: [{
|
|
843
|
+
type: Injectable
|
|
844
|
+
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }]; } });
|
|
847
845
|
|
|
848
846
|
/**
|
|
849
847
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -898,18 +896,19 @@ class ViewsContainerComponent {
|
|
|
898
896
|
}
|
|
899
897
|
}
|
|
900
898
|
}
|
|
901
|
-
ViewsContainerComponent
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
}
|
|
899
|
+
ViewsContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ViewsContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
900
|
+
ViewsContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: ViewsContainerComponent, selector: "tg-views-container", inputs: { initialView: "initialView", viewsService: "viewsService" }, viewQueries: [{ propertyName: "viewContainerRef", first: true, predicate: ["viewContainerRef"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<!--\r\n This is a dummy template component that will be used as the anchor point where the views will be loaded\r\n-->\r\n<ng-template #viewContainerRef></ng-template>", styles: [""] });
|
|
901
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ViewsContainerComponent, decorators: [{
|
|
902
|
+
type: Component,
|
|
903
|
+
args: [{ selector: 'tg-views-container', template: "<!--\r\n This is a dummy template component that will be used as the anchor point where the views will be loaded\r\n-->\r\n<ng-template #viewContainerRef></ng-template>", styles: [""] }]
|
|
904
|
+
}], propDecorators: { initialView: [{
|
|
905
|
+
type: Input
|
|
906
|
+
}], viewsService: [{
|
|
907
|
+
type: Input
|
|
908
|
+
}], viewContainerRef: [{
|
|
909
|
+
type: ViewChild,
|
|
910
|
+
args: ['viewContainerRef', { read: ViewContainerRef, static: true }]
|
|
911
|
+
}] } });
|
|
913
912
|
|
|
914
913
|
/**
|
|
915
914
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -1036,28 +1035,58 @@ class ButtonBaseComponent {
|
|
|
1036
1035
|
}
|
|
1037
1036
|
}
|
|
1038
1037
|
}
|
|
1039
|
-
ButtonBaseComponent
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
}
|
|
1038
|
+
ButtonBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ButtonBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1039
|
+
ButtonBaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: ButtonBaseComponent, inputs: { releaseOnMouseUp: "releaseOnMouseUp", vibrateOnClick: "vibrateOnClick", defaultOpacity: "defaultOpacity", defaultScale: "defaultScale", hoverOpacity: "hoverOpacity", hoverScale: "hoverScale", clickOpacity: "clickOpacity", clickScale: "clickScale", disabledOpacity: "disabledOpacity", enabled: "enabled" }, host: { listeners: { "mouseover": "onMouseOver()", "mouseout": "onMouseOut()", "pointerout": "onMouseOut()", "pointerleave": "onMouseOut()", "pointerdown": "onMouseDown()", "pointerup": "onMouseUp()" }, properties: { "style.opacity": "this.currentOpacity", "style.transform": "this.currentScale", "style.pointer-events": "this.pointerEvents" } }, ngImport: i0 });
|
|
1040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ButtonBaseComponent, decorators: [{
|
|
1041
|
+
type: Directive
|
|
1042
|
+
}], propDecorators: { currentOpacity: [{
|
|
1043
|
+
type: HostBinding,
|
|
1044
|
+
args: ['style.opacity']
|
|
1045
|
+
}], currentScale: [{
|
|
1046
|
+
type: HostBinding,
|
|
1047
|
+
args: ['style.transform']
|
|
1048
|
+
}], pointerEvents: [{
|
|
1049
|
+
type: HostBinding,
|
|
1050
|
+
args: ['style.pointer-events']
|
|
1051
|
+
}], releaseOnMouseUp: [{
|
|
1052
|
+
type: Input
|
|
1053
|
+
}], vibrateOnClick: [{
|
|
1054
|
+
type: Input
|
|
1055
|
+
}], defaultOpacity: [{
|
|
1056
|
+
type: Input
|
|
1057
|
+
}], defaultScale: [{
|
|
1058
|
+
type: Input
|
|
1059
|
+
}], hoverOpacity: [{
|
|
1060
|
+
type: Input
|
|
1061
|
+
}], hoverScale: [{
|
|
1062
|
+
type: Input
|
|
1063
|
+
}], clickOpacity: [{
|
|
1064
|
+
type: Input
|
|
1065
|
+
}], clickScale: [{
|
|
1066
|
+
type: Input
|
|
1067
|
+
}], disabledOpacity: [{
|
|
1068
|
+
type: Input
|
|
1069
|
+
}], enabled: [{
|
|
1070
|
+
type: Input
|
|
1071
|
+
}], onMouseOver: [{
|
|
1072
|
+
type: HostListener,
|
|
1073
|
+
args: ['mouseover']
|
|
1074
|
+
}], onMouseOut: [{
|
|
1075
|
+
type: HostListener,
|
|
1076
|
+
args: ['mouseout']
|
|
1077
|
+
}, {
|
|
1078
|
+
type: HostListener,
|
|
1079
|
+
args: ['pointerout']
|
|
1080
|
+
}, {
|
|
1081
|
+
type: HostListener,
|
|
1082
|
+
args: ['pointerleave']
|
|
1083
|
+
}], onMouseDown: [{
|
|
1084
|
+
type: HostListener,
|
|
1085
|
+
args: ['pointerdown']
|
|
1086
|
+
}], onMouseUp: [{
|
|
1087
|
+
type: HostListener,
|
|
1088
|
+
args: ['pointerup']
|
|
1089
|
+
}] } });
|
|
1061
1090
|
|
|
1062
1091
|
/**
|
|
1063
1092
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -1088,19 +1117,19 @@ class ButtonImageComponent extends ButtonBaseComponent {
|
|
|
1088
1117
|
this.percentSize = 100;
|
|
1089
1118
|
}
|
|
1090
1119
|
}
|
|
1091
|
-
ButtonImageComponent
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
]
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
};
|
|
1120
|
+
ButtonImageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ButtonImageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1121
|
+
ButtonImageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: ButtonImageComponent, selector: "tg-button-image", inputs: { src: "src", percentSize: "percentSize" }, host: { properties: { "@buttonFade": "this.buttonFade" } }, usesInheritance: true, ngImport: i0, template: "<img src=\"{{src}}\"\r\n [style.width]=\"percentSize + '%'\"\r\n [style.height]=\"percentSize + '%'\" />", styles: [":host{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity .3s ease,transform .2s cubic-bezier(.04,.62,.58,1);display:flex;justify-content:center;align-items:center}img{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}\n"], animations: [FadeAnimationClass.getTrigger('buttonFade', '300ms ease', '300ms ease')] });
|
|
1122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ButtonImageComponent, decorators: [{
|
|
1123
|
+
type: Component,
|
|
1124
|
+
args: [{ selector: 'tg-button-image', animations: [FadeAnimationClass.getTrigger('buttonFade', '300ms ease', '300ms ease')], template: "<img src=\"{{src}}\"\r\n [style.width]=\"percentSize + '%'\"\r\n [style.height]=\"percentSize + '%'\" />", styles: [":host{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity .3s ease,transform .2s cubic-bezier(.04,.62,.58,1);display:flex;justify-content:center;align-items:center}img{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}\n"] }]
|
|
1125
|
+
}], propDecorators: { buttonFade: [{
|
|
1126
|
+
type: HostBinding,
|
|
1127
|
+
args: ['@buttonFade']
|
|
1128
|
+
}], src: [{
|
|
1129
|
+
type: Input
|
|
1130
|
+
}], percentSize: [{
|
|
1131
|
+
type: Input
|
|
1132
|
+
}] } });
|
|
1104
1133
|
|
|
1105
1134
|
/**
|
|
1106
1135
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -1122,17 +1151,15 @@ class ButtonContainerComponent extends ButtonBaseComponent {
|
|
|
1122
1151
|
this.buttonFade = true;
|
|
1123
1152
|
}
|
|
1124
1153
|
}
|
|
1125
|
-
ButtonContainerComponent
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
]
|
|
1133
|
-
|
|
1134
|
-
buttonFade: [{ type: HostBinding, args: ['@buttonFade',] }]
|
|
1135
|
-
};
|
|
1154
|
+
ButtonContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ButtonContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1155
|
+
ButtonContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: ButtonContainerComponent, selector: "tg-button-container", host: { properties: { "@buttonFade": "this.buttonFade" } }, usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity .3s ease,transform .2s cubic-bezier(.04,.62,.58,1);display:flex;justify-content:center;align-items:center}\n"], animations: [FadeAnimationClass.getTrigger('buttonFade', '300ms ease', '300ms ease')] });
|
|
1156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ButtonContainerComponent, decorators: [{
|
|
1157
|
+
type: Component,
|
|
1158
|
+
args: [{ selector: 'tg-button-container', animations: [FadeAnimationClass.getTrigger('buttonFade', '300ms ease', '300ms ease')], template: "<ng-content></ng-content>", styles: [":host{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity .3s ease,transform .2s cubic-bezier(.04,.62,.58,1);display:flex;justify-content:center;align-items:center}\n"] }]
|
|
1159
|
+
}], propDecorators: { buttonFade: [{
|
|
1160
|
+
type: HostBinding,
|
|
1161
|
+
args: ['@buttonFade']
|
|
1162
|
+
}] } });
|
|
1136
1163
|
|
|
1137
1164
|
/**
|
|
1138
1165
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -1158,17 +1185,15 @@ class DialogSingleOptionComponent extends DialogOptionsBaseComponent {
|
|
|
1158
1185
|
}
|
|
1159
1186
|
}
|
|
1160
1187
|
}
|
|
1161
|
-
DialogSingleOptionComponent
|
|
1162
|
-
{ type:
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
1171
|
-
];
|
|
1188
|
+
DialogSingleOptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DialogSingleOptionComponent, deps: [{ token: i1$1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
1189
|
+
DialogSingleOptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", 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"], components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DialogSingleOptionComponent, decorators: [{
|
|
1191
|
+
type: Component,
|
|
1192
|
+
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"] }]
|
|
1193
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatDialogRef }, { type: undefined, decorators: [{
|
|
1194
|
+
type: Inject,
|
|
1195
|
+
args: [MAT_DIALOG_DATA]
|
|
1196
|
+
}] }]; } });
|
|
1172
1197
|
|
|
1173
1198
|
/**
|
|
1174
1199
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -1195,17 +1220,15 @@ class DialogTwoOptionComponent extends DialogOptionsBaseComponent {
|
|
|
1195
1220
|
}
|
|
1196
1221
|
}
|
|
1197
1222
|
}
|
|
1198
|
-
DialogTwoOptionComponent
|
|
1199
|
-
{ type:
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
1208
|
-
];
|
|
1223
|
+
DialogTwoOptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DialogTwoOptionComponent, deps: [{ token: i1$1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
1224
|
+
DialogTwoOptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", 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"], components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DialogTwoOptionComponent, decorators: [{
|
|
1226
|
+
type: Component,
|
|
1227
|
+
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"] }]
|
|
1228
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatDialogRef }, { type: undefined, decorators: [{
|
|
1229
|
+
type: Inject,
|
|
1230
|
+
args: [MAT_DIALOG_DATA]
|
|
1231
|
+
}] }]; } });
|
|
1209
1232
|
|
|
1210
1233
|
/**
|
|
1211
1234
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -1245,12 +1268,48 @@ class BrowserService extends BrowserManager {
|
|
|
1245
1268
|
return this.location.subscribe(onNext);
|
|
1246
1269
|
}
|
|
1247
1270
|
}
|
|
1248
|
-
BrowserService
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1271
|
+
BrowserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: BrowserService, deps: [{ token: i3.Location }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1272
|
+
BrowserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: BrowserService });
|
|
1273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: BrowserService, decorators: [{
|
|
1274
|
+
type: Injectable
|
|
1275
|
+
}], ctorParameters: function () { return [{ type: i3.Location }]; } });
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
1279
|
+
*
|
|
1280
|
+
* Website : -> http://www.turbogui.org
|
|
1281
|
+
* License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
|
|
1282
|
+
* License Url : -> http://www.apache.org/licenses/LICENSE-2.0
|
|
1283
|
+
* CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
|
|
1284
|
+
*/
|
|
1285
|
+
/** This directive is used to perform an autofocus on an element every time it is displayed */
|
|
1286
|
+
/**
|
|
1287
|
+
* This directive is used to perform an autofocus on an element every time it is displayed
|
|
1288
|
+
* If we set the autoFocusOnDisplay tag to the html element, it will be automatically focused after it is shown.
|
|
1289
|
+
*/
|
|
1290
|
+
class AutoFocusOnDisplayDirective {
|
|
1291
|
+
constructor(el, zone, renderer) {
|
|
1292
|
+
this.el = el;
|
|
1293
|
+
this.zone = zone;
|
|
1294
|
+
this.renderer = renderer;
|
|
1295
|
+
if (!el.nativeElement['focus']) {
|
|
1296
|
+
throw new Error('Element does not accept focus');
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
ngAfterContentInit() {
|
|
1300
|
+
this.zone.runOutsideAngular(() => setTimeout(() => {
|
|
1301
|
+
this.renderer.selectRootElement(this.el.nativeElement).focus();
|
|
1302
|
+
}, 0));
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
AutoFocusOnDisplayDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: AutoFocusOnDisplayDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1306
|
+
AutoFocusOnDisplayDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: AutoFocusOnDisplayDirective, selector: "[autoFocusOnDisplay]", ngImport: i0 });
|
|
1307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: AutoFocusOnDisplayDirective, decorators: [{
|
|
1308
|
+
type: Directive,
|
|
1309
|
+
args: [{
|
|
1310
|
+
selector: '[autoFocusOnDisplay]'
|
|
1311
|
+
}]
|
|
1312
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }]; } });
|
|
1254
1313
|
|
|
1255
1314
|
/**
|
|
1256
1315
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -1342,18 +1401,15 @@ class DialogSingleSelectionListComponent extends DialogOptionsBaseComponent {
|
|
|
1342
1401
|
}
|
|
1343
1402
|
}
|
|
1344
1403
|
}
|
|
1345
|
-
DialogSingleSelectionListComponent
|
|
1346
|
-
{ type:
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
{ type: BrowserService },
|
|
1355
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
1356
|
-
];
|
|
1404
|
+
DialogSingleSelectionListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DialogSingleSelectionListComponent, deps: [{ token: i1$1.MatDialogRef }, { token: BrowserService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
1405
|
+
DialogSingleSelectionListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", 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 <input matInput autoFocusOnDisplay\r\n placeholder=\"{{data.texts[2]}}\"\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 #00000033;border-radius:4px;margin-bottom:5px}.listItemContainer p{line-height:36px;width:calc(100% - 12px);margin:0 0 0 6px}button{float:right}\n"], components: [{ type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.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"] }, { type: AutoFocusOnDisplayDirective, selector: "[autoFocusOnDisplay]" }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
1406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DialogSingleSelectionListComponent, decorators: [{
|
|
1407
|
+
type: Component,
|
|
1408
|
+
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 <input matInput autoFocusOnDisplay\r\n placeholder=\"{{data.texts[2]}}\"\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 #00000033;border-radius:4px;margin-bottom:5px}.listItemContainer p{line-height:36px;width:calc(100% - 12px);margin:0 0 0 6px}button{float:right}\n"] }]
|
|
1409
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatDialogRef }, { type: BrowserService }, { type: undefined, decorators: [{
|
|
1410
|
+
type: Inject,
|
|
1411
|
+
args: [MAT_DIALOG_DATA]
|
|
1412
|
+
}] }]; } });
|
|
1357
1413
|
|
|
1358
1414
|
/**
|
|
1359
1415
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -1376,17 +1432,15 @@ class DialogMultipleOptionComponent extends DialogOptionsBaseComponent {
|
|
|
1376
1432
|
}
|
|
1377
1433
|
}
|
|
1378
1434
|
}
|
|
1379
|
-
DialogMultipleOptionComponent
|
|
1380
|
-
{ type:
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
1389
|
-
];
|
|
1435
|
+
DialogMultipleOptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DialogMultipleOptionComponent, deps: [{ token: i1$1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
1436
|
+
DialogMultipleOptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", 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"], components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
1437
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DialogMultipleOptionComponent, decorators: [{
|
|
1438
|
+
type: Component,
|
|
1439
|
+
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"] }]
|
|
1440
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatDialogRef }, { type: undefined, decorators: [{
|
|
1441
|
+
type: Inject,
|
|
1442
|
+
args: [MAT_DIALOG_DATA]
|
|
1443
|
+
}] }]; } });
|
|
1390
1444
|
|
|
1391
1445
|
/**
|
|
1392
1446
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -1416,14 +1470,17 @@ class ElementCreatedDirective {
|
|
|
1416
1470
|
this.elementCreated.next(this);
|
|
1417
1471
|
}
|
|
1418
1472
|
}
|
|
1419
|
-
ElementCreatedDirective
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
}
|
|
1473
|
+
ElementCreatedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ElementCreatedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1474
|
+
ElementCreatedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: ElementCreatedDirective, selector: "[elementCreated]", outputs: { elementCreated: "elementCreated" }, ngImport: i0 });
|
|
1475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ElementCreatedDirective, decorators: [{
|
|
1476
|
+
type: Directive,
|
|
1477
|
+
args: [{
|
|
1478
|
+
selector: '[elementCreated]'
|
|
1479
|
+
}]
|
|
1480
|
+
}], propDecorators: { elementCreated: [{
|
|
1481
|
+
type: Output,
|
|
1482
|
+
args: ['elementCreated']
|
|
1483
|
+
}] } });
|
|
1427
1484
|
|
|
1428
1485
|
/**
|
|
1429
1486
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -1453,53 +1510,17 @@ class ElementDestroyedDirective {
|
|
|
1453
1510
|
this.elementDestroyed.next(this);
|
|
1454
1511
|
}
|
|
1455
1512
|
}
|
|
1456
|
-
ElementDestroyedDirective
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
}
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
*
|
|
1468
|
-
* Website : -> http://www.turbogui.org
|
|
1469
|
-
* License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
|
|
1470
|
-
* License Url : -> http://www.apache.org/licenses/LICENSE-2.0
|
|
1471
|
-
* CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
|
|
1472
|
-
*/
|
|
1473
|
-
/** This directive is used to perform an autofocus on an element every time it is displayed */
|
|
1474
|
-
/**
|
|
1475
|
-
* This directive is used to perform an autofocus on an element every time it is displayed
|
|
1476
|
-
* If we set the autoFocusOnDisplay tag to the html element, it will be automatically focused after it is shown.
|
|
1477
|
-
*/
|
|
1478
|
-
class AutoFocusOnDisplayDirective {
|
|
1479
|
-
constructor(el, zone, renderer) {
|
|
1480
|
-
this.el = el;
|
|
1481
|
-
this.zone = zone;
|
|
1482
|
-
this.renderer = renderer;
|
|
1483
|
-
if (!el.nativeElement['focus']) {
|
|
1484
|
-
throw new Error('Element does not accept focus');
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
ngAfterContentInit() {
|
|
1488
|
-
this.zone.runOutsideAngular(() => setTimeout(() => {
|
|
1489
|
-
this.renderer.selectRootElement(this.el.nativeElement).focus();
|
|
1490
|
-
}, 0));
|
|
1491
|
-
}
|
|
1492
|
-
}
|
|
1493
|
-
AutoFocusOnDisplayDirective.decorators = [
|
|
1494
|
-
{ type: Directive, args: [{
|
|
1495
|
-
selector: '[autoFocusOnDisplay]'
|
|
1496
|
-
},] }
|
|
1497
|
-
];
|
|
1498
|
-
AutoFocusOnDisplayDirective.ctorParameters = () => [
|
|
1499
|
-
{ type: ElementRef },
|
|
1500
|
-
{ type: NgZone },
|
|
1501
|
-
{ type: Renderer2 }
|
|
1502
|
-
];
|
|
1513
|
+
ElementDestroyedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ElementDestroyedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1514
|
+
ElementDestroyedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: ElementDestroyedDirective, selector: "[elementDestroyed]", outputs: { elementDestroyed: "elementDestroyed" }, ngImport: i0 });
|
|
1515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ElementDestroyedDirective, decorators: [{
|
|
1516
|
+
type: Directive,
|
|
1517
|
+
args: [{
|
|
1518
|
+
selector: '[elementDestroyed]'
|
|
1519
|
+
}]
|
|
1520
|
+
}], propDecorators: { elementDestroyed: [{
|
|
1521
|
+
type: Output,
|
|
1522
|
+
args: ['elementDestroyed']
|
|
1523
|
+
}] } });
|
|
1503
1524
|
|
|
1504
1525
|
/**
|
|
1505
1526
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -1526,18 +1547,17 @@ class AutoSelectTextOnFocusDirective {
|
|
|
1526
1547
|
this.renderer.selectRootElement(this.el.nativeElement).select();
|
|
1527
1548
|
}
|
|
1528
1549
|
}
|
|
1529
|
-
AutoSelectTextOnFocusDirective
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
};
|
|
1550
|
+
AutoSelectTextOnFocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: AutoSelectTextOnFocusDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1551
|
+
AutoSelectTextOnFocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: AutoSelectTextOnFocusDirective, selector: "[autoSelectTextOnFocus]", host: { listeners: { "focus": "onFocus($event)" } }, ngImport: i0 });
|
|
1552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: AutoSelectTextOnFocusDirective, decorators: [{
|
|
1553
|
+
type: Directive,
|
|
1554
|
+
args: [{
|
|
1555
|
+
selector: '[autoSelectTextOnFocus]'
|
|
1556
|
+
}]
|
|
1557
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { onFocus: [{
|
|
1558
|
+
type: HostListener,
|
|
1559
|
+
args: ['focus', ['$event']]
|
|
1560
|
+
}] } });
|
|
1541
1561
|
|
|
1542
1562
|
/**
|
|
1543
1563
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -1552,58 +1572,106 @@ AutoSelectTextOnFocusDirective.propDecorators = {
|
|
|
1552
1572
|
*/
|
|
1553
1573
|
class TurboGuiAngularModule {
|
|
1554
1574
|
}
|
|
1555
|
-
TurboGuiAngularModule
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1575
|
+
TurboGuiAngularModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TurboGuiAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1576
|
+
TurboGuiAngularModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TurboGuiAngularModule, declarations: [BusyStateBaseComponent,
|
|
1577
|
+
DialogErrorComponent,
|
|
1578
|
+
DialogSingleOptionComponent,
|
|
1579
|
+
DialogTwoOptionComponent,
|
|
1580
|
+
DialogMultipleOptionComponent,
|
|
1581
|
+
DialogSingleSelectionListComponent,
|
|
1582
|
+
ViewsContainerComponent,
|
|
1583
|
+
ButtonImageComponent,
|
|
1584
|
+
ButtonContainerComponent,
|
|
1585
|
+
ElementCreatedDirective,
|
|
1586
|
+
ElementDestroyedDirective,
|
|
1587
|
+
AutoFocusOnDisplayDirective,
|
|
1588
|
+
AutoSelectTextOnFocusDirective], imports: [MatDialogModule,
|
|
1589
|
+
MatSnackBarModule,
|
|
1590
|
+
MatInputModule,
|
|
1591
|
+
MatButtonModule,
|
|
1592
|
+
MatFormFieldModule,
|
|
1593
|
+
BrowserAnimationsModule], exports: [BusyStateBaseComponent,
|
|
1594
|
+
ViewsContainerComponent,
|
|
1595
|
+
ButtonImageComponent,
|
|
1596
|
+
ButtonContainerComponent,
|
|
1597
|
+
DialogErrorComponent,
|
|
1598
|
+
DialogSingleOptionComponent,
|
|
1599
|
+
DialogTwoOptionComponent,
|
|
1600
|
+
DialogMultipleOptionComponent,
|
|
1601
|
+
DialogSingleSelectionListComponent,
|
|
1602
|
+
ElementCreatedDirective,
|
|
1603
|
+
ElementDestroyedDirective,
|
|
1604
|
+
AutoFocusOnDisplayDirective,
|
|
1605
|
+
AutoSelectTextOnFocusDirective] });
|
|
1606
|
+
TurboGuiAngularModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TurboGuiAngularModule, providers: [
|
|
1607
|
+
DialogService,
|
|
1608
|
+
LocalizationService,
|
|
1609
|
+
HTTPService,
|
|
1610
|
+
NotificationService,
|
|
1611
|
+
UserService,
|
|
1612
|
+
ViewsService,
|
|
1613
|
+
BrowserService
|
|
1614
|
+
], imports: [[
|
|
1615
|
+
MatDialogModule,
|
|
1616
|
+
MatSnackBarModule,
|
|
1617
|
+
MatInputModule,
|
|
1618
|
+
MatButtonModule,
|
|
1619
|
+
MatFormFieldModule,
|
|
1620
|
+
BrowserAnimationsModule
|
|
1621
|
+
]] });
|
|
1622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TurboGuiAngularModule, decorators: [{
|
|
1623
|
+
type: NgModule,
|
|
1624
|
+
args: [{
|
|
1625
|
+
imports: [
|
|
1626
|
+
MatDialogModule,
|
|
1627
|
+
MatSnackBarModule,
|
|
1628
|
+
MatInputModule,
|
|
1629
|
+
MatButtonModule,
|
|
1630
|
+
MatFormFieldModule,
|
|
1631
|
+
BrowserAnimationsModule
|
|
1632
|
+
],
|
|
1633
|
+
declarations: [
|
|
1634
|
+
BusyStateBaseComponent,
|
|
1635
|
+
DialogErrorComponent,
|
|
1636
|
+
DialogSingleOptionComponent,
|
|
1637
|
+
DialogTwoOptionComponent,
|
|
1638
|
+
DialogMultipleOptionComponent,
|
|
1639
|
+
DialogSingleSelectionListComponent,
|
|
1640
|
+
ViewsContainerComponent,
|
|
1641
|
+
ButtonImageComponent,
|
|
1642
|
+
ButtonContainerComponent,
|
|
1643
|
+
ElementCreatedDirective,
|
|
1644
|
+
ElementDestroyedDirective,
|
|
1645
|
+
AutoFocusOnDisplayDirective,
|
|
1646
|
+
AutoSelectTextOnFocusDirective
|
|
1647
|
+
],
|
|
1648
|
+
// Globally available singleton services are added here
|
|
1649
|
+
providers: [
|
|
1650
|
+
DialogService,
|
|
1651
|
+
LocalizationService,
|
|
1652
|
+
HTTPService,
|
|
1653
|
+
NotificationService,
|
|
1654
|
+
UserService,
|
|
1655
|
+
ViewsService,
|
|
1656
|
+
BrowserService
|
|
1657
|
+
],
|
|
1658
|
+
exports: [
|
|
1659
|
+
BusyStateBaseComponent,
|
|
1660
|
+
ViewsContainerComponent,
|
|
1661
|
+
ButtonImageComponent,
|
|
1662
|
+
ButtonContainerComponent,
|
|
1663
|
+
DialogErrorComponent,
|
|
1664
|
+
DialogSingleOptionComponent,
|
|
1665
|
+
DialogTwoOptionComponent,
|
|
1666
|
+
DialogMultipleOptionComponent,
|
|
1667
|
+
DialogSingleSelectionListComponent,
|
|
1668
|
+
ElementCreatedDirective,
|
|
1669
|
+
ElementDestroyedDirective,
|
|
1670
|
+
AutoFocusOnDisplayDirective,
|
|
1671
|
+
AutoSelectTextOnFocusDirective
|
|
1672
|
+
]
|
|
1673
|
+
}]
|
|
1674
|
+
}] });
|
|
1607
1675
|
|
|
1608
1676
|
/**
|
|
1609
1677
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -1665,9 +1733,11 @@ class GlobalErrorService {
|
|
|
1665
1733
|
throw error;
|
|
1666
1734
|
}
|
|
1667
1735
|
}
|
|
1668
|
-
GlobalErrorService
|
|
1669
|
-
|
|
1670
|
-
|
|
1736
|
+
GlobalErrorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: GlobalErrorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1737
|
+
GlobalErrorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: GlobalErrorService });
|
|
1738
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: GlobalErrorService, decorators: [{
|
|
1739
|
+
type: Injectable
|
|
1740
|
+
}] });
|
|
1671
1741
|
|
|
1672
1742
|
/**
|
|
1673
1743
|
* TurboGUI is A library that helps with the most common and generic UI elements and functionalities
|
|
@@ -1869,5 +1939,5 @@ class DelayedMethodCallManager {
|
|
|
1869
1939
|
* Generated bundle index. Do not edit.
|
|
1870
1940
|
*/
|
|
1871
1941
|
|
|
1872
|
-
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
|
|
1873
|
-
//# sourceMappingURL=turbogui-angular.
|
|
1942
|
+
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 };
|
|
1943
|
+
//# sourceMappingURL=turbogui-angular.mjs.map
|