turbogui-angular 11.0.2 → 12.1.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.
Files changed (74) hide show
  1. package/esm2022/main/controller/browser.service.mjs +48 -48
  2. package/esm2022/main/controller/dialog.service.mjs +327 -324
  3. package/esm2022/main/controller/globalerror.service.mjs +68 -68
  4. package/esm2022/main/controller/http.service.mjs +70 -70
  5. package/esm2022/main/controller/httpservice/HTTPServiceGetRequest.mjs +14 -14
  6. package/esm2022/main/controller/httpservice/HTTPServicePostRequest.mjs +14 -14
  7. package/esm2022/main/controller/localization.service.mjs +22 -22
  8. package/esm2022/main/controller/notification.service.mjs +56 -56
  9. package/esm2022/main/controller/user.service.mjs +124 -124
  10. package/esm2022/main/controller/views.service.mjs +113 -113
  11. package/esm2022/main/managers/DelayedMethodCallManager.mjs +69 -69
  12. package/esm2022/main/model/classes/GUINotification.mjs +31 -31
  13. package/esm2022/main/model/classes/View.mjs +33 -33
  14. package/esm2022/main/model/classes/ViewModel.mjs +13 -13
  15. package/esm2022/main/model/classes/ViewService.mjs +27 -27
  16. package/esm2022/main/model/modules/turbogui-angular.module.mjs +140 -140
  17. package/esm2022/main/view/animations/fade.animation.mjs +35 -35
  18. package/esm2022/main/view/components/busy-state-base/busy-state-base.component.mjs +38 -38
  19. package/esm2022/main/view/components/button-base/button-base.component.mjs +180 -180
  20. package/esm2022/main/view/components/button-container/button-container.component.mjs +34 -34
  21. package/esm2022/main/view/components/button-image/button-image.component.mjs +47 -47
  22. package/esm2022/main/view/components/dialog-base/dialog-base.component.mjs +13 -13
  23. package/esm2022/main/view/components/dialog-error/dialog-error.component.mjs +41 -41
  24. package/esm2022/main/view/components/dialog-multiple-option/dialog-multiple-option.component.mjs +38 -38
  25. package/esm2022/main/view/components/dialog-options-base/dialog-options-base.component.mjs +14 -14
  26. package/esm2022/main/view/components/dialog-single-option/dialog-single-option.component.mjs +41 -41
  27. package/esm2022/main/view/components/dialog-single-selection-list/dialog-single-selection-list.component.mjs +112 -112
  28. package/esm2022/main/view/components/dialog-two-option/dialog-two-option.component.mjs +42 -42
  29. package/esm2022/main/view/components/views-container/views-container.component.mjs +70 -70
  30. package/esm2022/main/view/directives/AutoFocusOnDisplayDirective.mjs +39 -39
  31. package/esm2022/main/view/directives/AutoSelectTextOnFocusDirective.mjs +39 -39
  32. package/esm2022/main/view/directives/ElementCreatedDirective.mjs +42 -42
  33. package/esm2022/main/view/directives/ElementDestroyedDirective.mjs +42 -42
  34. package/esm2022/public_api.mjs +43 -43
  35. package/esm2022/turbogui-angular.mjs +4 -4
  36. package/fesm2022/turbogui-angular.mjs +1865 -1862
  37. package/fesm2022/turbogui-angular.mjs.map +1 -1
  38. package/index.d.ts +5 -5
  39. package/main/controller/browser.service.d.ts +29 -29
  40. package/main/controller/dialog.service.d.ts +186 -184
  41. package/main/controller/dialog.service.d.ts.map +1 -1
  42. package/main/controller/globalerror.service.d.ts +54 -54
  43. package/main/controller/http.service.d.ts +37 -37
  44. package/main/controller/httpservice/HTTPServiceGetRequest.d.ts +14 -14
  45. package/main/controller/httpservice/HTTPServicePostRequest.d.ts +14 -14
  46. package/main/controller/localization.service.d.ts +9 -9
  47. package/main/controller/notification.service.d.ts +36 -36
  48. package/main/controller/user.service.d.ts +57 -57
  49. package/main/controller/views.service.d.ts +71 -71
  50. package/main/managers/DelayedMethodCallManager.d.ts +51 -51
  51. package/main/model/classes/GUINotification.d.ts +27 -27
  52. package/main/model/classes/View.d.ts +39 -39
  53. package/main/model/classes/ViewModel.d.ts +13 -13
  54. package/main/model/classes/ViewService.d.ts +26 -26
  55. package/main/model/modules/turbogui-angular.module.d.ts +28 -28
  56. package/main/view/animations/fade.animation.d.ts +16 -16
  57. package/main/view/components/busy-state-base/busy-state-base.component.d.ts +18 -18
  58. package/main/view/components/button-base/button-base.component.d.ts +94 -94
  59. package/main/view/components/button-container/button-container.component.d.ts +13 -13
  60. package/main/view/components/button-image/button-image.component.d.ts +31 -31
  61. package/main/view/components/dialog-base/dialog-base.component.d.ts +13 -13
  62. package/main/view/components/dialog-error/dialog-error.component.d.ts +13 -13
  63. package/main/view/components/dialog-multiple-option/dialog-multiple-option.component.d.ts +13 -13
  64. package/main/view/components/dialog-options-base/dialog-options-base.component.d.ts +14 -14
  65. package/main/view/components/dialog-single-option/dialog-single-option.component.d.ts +13 -13
  66. package/main/view/components/dialog-single-selection-list/dialog-single-selection-list.component.d.ts +62 -62
  67. package/main/view/components/dialog-two-option/dialog-two-option.component.d.ts +14 -14
  68. package/main/view/components/views-container/views-container.component.d.ts +45 -45
  69. package/main/view/directives/AutoFocusOnDisplayDirective.d.ts +20 -20
  70. package/main/view/directives/AutoSelectTextOnFocusDirective.d.ts +19 -19
  71. package/main/view/directives/ElementCreatedDirective.d.ts +23 -23
  72. package/main/view/directives/ElementDestroyedDirective.d.ts +23 -23
  73. package/package.json +6 -6
  74. package/public_api.d.ts +40 -40
@@ -1,70 +1,70 @@
1
- /**
2
- * TurboGUI is A library that helps with the most common and generic UI elements and functionalities
3
- *
4
- * Website : -> http://www.turbogui.org
5
- * License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
6
- * License Url : -> http://www.apache.org/licenses/LICENSE-2.0
7
- * CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
8
- */
9
- /**
10
- * Sometimes it is necessary to apply some kind of buffer to the user input for certain operations that may be executed
11
- * several times but we need to capture only the latest of them into a certain period of time. This class does exactly this:
12
- * we can queue as many times as we want a specific method call and only the last one will be executed under a defined window of time.
13
- * So for example if a user types keys on an input, we can buffer it for x seconds and perform a request only with the last of its changes.
14
- * Lots of other UI interaction usages may be interesting with this class.
15
- */
16
- export class DelayedMethodCallManager {
17
- /**
18
- * Sometimes it is necessary to apply some kind of buffer to the user input for certain operations that may be executed
19
- * several times but we need to capture only the latest of them into a certain period of time. This class does exactly this:
20
- * we can queue as many times as we want a specific method call and only the last one will be executed under a defined window of time.
21
- * So for example if a user types keys on an input, we can buffer it for x seconds and perform a request only with the last of its changes.
22
- * Lots of other UI interaction usages may be interesting with this class.
23
- *
24
- * @param delay Amount of time to wait before executing the operations . Defaults to 1000 miliseconds.
25
- */
26
- constructor(delay = 1000) {
27
- this.delay = delay;
28
- this._functionsToExecute = [];
29
- this._timerIsRunning = false;
30
- this._setTimeoutHandler = null;
31
- }
32
- /**
33
- * Add a method to be called once the delay time is finished.
34
- * Every time a new call to queue is performed, the delay timer is restarted. When the delay time finishes, only the
35
- * last of the methods that have been pushed by call() will be executed.
36
- *
37
- * Use it to queue several user input operations that should be called only once in a period of time, while waiting
38
- * for the user to finish his input.
39
- *
40
- * @param method The function that will be queued for execution after the delay time has passed
41
- */
42
- queue(method) {
43
- this._functionsToExecute.push(method);
44
- if (this._timerIsRunning) {
45
- clearTimeout(this._setTimeoutHandler);
46
- }
47
- this._timerIsRunning = true;
48
- this._setTimeoutHandler = setTimeout(() => { this.run(); }, this.delay);
49
- }
50
- /**
51
- * Abort all methods that may have been pushed to this class and are waiting to be executed, so none of them
52
- * is executed when the delay time finishes. Basically everything is cleared and stoped when this method is called.
53
- */
54
- cancel() {
55
- if (this._setTimeoutHandler !== null) {
56
- clearTimeout(this._setTimeoutHandler);
57
- }
58
- this._functionsToExecute = [];
59
- this._timerIsRunning = false;
60
- }
61
- /**
62
- * Auxiliary function that performs the call to the latest queued method
63
- */
64
- run() {
65
- this._functionsToExecute.pop()();
66
- this._functionsToExecute = [];
67
- this._timerIsRunning = false;
68
- }
69
- }
1
+ /**
2
+ * TurboGUI is A library that helps with the most common and generic UI elements and functionalities
3
+ *
4
+ * Website : -> http://www.turbogui.org
5
+ * License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
6
+ * License Url : -> http://www.apache.org/licenses/LICENSE-2.0
7
+ * CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
8
+ */
9
+ /**
10
+ * Sometimes it is necessary to apply some kind of buffer to the user input for certain operations that may be executed
11
+ * several times but we need to capture only the latest of them into a certain period of time. This class does exactly this:
12
+ * we can queue as many times as we want a specific method call and only the last one will be executed under a defined window of time.
13
+ * So for example if a user types keys on an input, we can buffer it for x seconds and perform a request only with the last of its changes.
14
+ * Lots of other UI interaction usages may be interesting with this class.
15
+ */
16
+ export class DelayedMethodCallManager {
17
+ /**
18
+ * Sometimes it is necessary to apply some kind of buffer to the user input for certain operations that may be executed
19
+ * several times but we need to capture only the latest of them into a certain period of time. This class does exactly this:
20
+ * we can queue as many times as we want a specific method call and only the last one will be executed under a defined window of time.
21
+ * So for example if a user types keys on an input, we can buffer it for x seconds and perform a request only with the last of its changes.
22
+ * Lots of other UI interaction usages may be interesting with this class.
23
+ *
24
+ * @param delay Amount of time to wait before executing the operations . Defaults to 1000 miliseconds.
25
+ */
26
+ constructor(delay = 1000) {
27
+ this.delay = delay;
28
+ this._functionsToExecute = [];
29
+ this._timerIsRunning = false;
30
+ this._setTimeoutHandler = null;
31
+ }
32
+ /**
33
+ * Add a method to be called once the delay time is finished.
34
+ * Every time a new call to queue is performed, the delay timer is restarted. When the delay time finishes, only the
35
+ * last of the methods that have been pushed by call() will be executed.
36
+ *
37
+ * Use it to queue several user input operations that should be called only once in a period of time, while waiting
38
+ * for the user to finish his input.
39
+ *
40
+ * @param method The function that will be queued for execution after the delay time has passed
41
+ */
42
+ queue(method) {
43
+ this._functionsToExecute.push(method);
44
+ if (this._timerIsRunning) {
45
+ clearTimeout(this._setTimeoutHandler);
46
+ }
47
+ this._timerIsRunning = true;
48
+ this._setTimeoutHandler = setTimeout(() => { this.run(); }, this.delay);
49
+ }
50
+ /**
51
+ * Abort all methods that may have been pushed to this class and are waiting to be executed, so none of them
52
+ * is executed when the delay time finishes. Basically everything is cleared and stoped when this method is called.
53
+ */
54
+ cancel() {
55
+ if (this._setTimeoutHandler !== null) {
56
+ clearTimeout(this._setTimeoutHandler);
57
+ }
58
+ this._functionsToExecute = [];
59
+ this._timerIsRunning = false;
60
+ }
61
+ /**
62
+ * Auxiliary function that performs the call to the latest queued method
63
+ */
64
+ run() {
65
+ this._functionsToExecute.pop()();
66
+ this._functionsToExecute = [];
67
+ this._timerIsRunning = false;
68
+ }
69
+ }
70
70
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGVsYXllZE1ldGhvZENhbGxNYW5hZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHVyYm9ndWktYW5ndWxhci9zcmMvbWFpbi9tYW5hZ2Vycy9EZWxheWVkTWV0aG9kQ2FsbE1hbmFnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7R0FPRztBQUVIOzs7Ozs7R0FNRztBQUNILE1BQU0sT0FBTyx3QkFBd0I7SUFZakM7Ozs7Ozs7O09BUUc7SUFDSCxZQUFvQixRQUFRLElBQUk7UUFBWixVQUFLLEdBQUwsS0FBSyxDQUFPO1FBbEJ4Qix3QkFBbUIsR0FBZSxFQUFFLENBQUM7UUFHckMsb0JBQWUsR0FBRyxLQUFLLENBQUM7UUFHeEIsdUJBQWtCLEdBQVEsSUFBSSxDQUFDO0lBY3ZDLENBQUM7SUFHRDs7Ozs7Ozs7O09BU0c7SUFDSCxLQUFLLENBQUMsTUFBa0I7UUFFcEIsSUFBSSxDQUFDLG1CQUFtQixDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUV0QyxJQUFHLElBQUksQ0FBQyxlQUFlLEVBQUM7WUFFcEIsWUFBWSxDQUFDLElBQUksQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDO1NBQ3pDO1FBRUQsSUFBSSxDQUFDLGVBQWUsR0FBRyxJQUFJLENBQUM7UUFFNUIsSUFBSSxDQUFDLGtCQUFrQixHQUFHLFVBQVUsQ0FBQyxHQUFHLEVBQUUsR0FBRSxJQUFJLENBQUMsR0FBRyxFQUFFLENBQUEsQ0F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aXMuX2Z1bmN0aW9uc1RvRXhlY3V0ZSA9IFtdO1xyXG4gICAgICAgIFxyXG4gICAgICAgIHRoaXMuX3RpbWVySXNSdW5uaW5nID0gZmFsc2U7XHJcbiAgICB9XHJcbiAgICBcclxuICAgIFxyXG4gICAgLyoqXHJcbiAgICAgKiBBdXhpbGlhcnkgZnVuY3Rpb24gdGhhdCBwZXJmb3JtcyB0aGUgY2FsbCB0byB0aGUgbGF0ZXN0IHF1ZXVlZCBtZXRob2RcclxuICAgICAqL1xyXG4gICAgcHJpdmF0ZSBydW4oKXtcclxuICAgICAgICBcclxuICAgICAgICAodGhpcy5fZnVuY3Rpb25zVG9FeGVjdXRlLnBvcCgpIGFzICgpID0+IHZvaWQpKCk7XHJcbiAgICAgICAgXHJcbiAgICAgICAgdGhpcy5fZnVuY3Rpb25zVG9FeGVjdXRlID0gW107XHJcbiAgICAgICAgXHJcbiAgICAgICAgdGhpcy5fdGltZXJJc1J1bm5pbmcgPSBmYWxzZTtcclxuICAgIH1cclxufVxyXG4iXX0=
@@ -1,32 +1,32 @@
1
- /**
2
- * TurboGUI is A library that helps with the most common and generic UI elements and functionalities
3
- *
4
- * Website : -> http://www.turbogui.org
5
- * License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
6
- * License Url : -> http://www.apache.org/licenses/LICENSE-2.0
7
- * CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
8
- */
9
- /**
10
- * Defines the data that is contained inside a GUI notification
11
- */
12
- export class GUINotification {
13
- constructor(name, type = '', data = null) {
14
- /**
15
- * The name for this notification
16
- */
17
- this.name = '';
18
- /**
19
- * An optional type to categorize this notification in case the name is not enough
20
- * to uniquely identify it
21
- */
22
- this.type = '';
23
- /**
24
- * Additional data to send with the notification
25
- */
26
- this.data = null;
27
- this.name = name;
28
- this.type = type;
29
- this.data = data;
30
- }
31
- }
1
+ /**
2
+ * TurboGUI is A library that helps with the most common and generic UI elements and functionalities
3
+ *
4
+ * Website : -> http://www.turbogui.org
5
+ * License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
6
+ * License Url : -> http://www.apache.org/licenses/LICENSE-2.0
7
+ * CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
8
+ */
9
+ /**
10
+ * Defines the data that is contained inside a GUI notification
11
+ */
12
+ export class GUINotification {
13
+ constructor(name, type = '', data = null) {
14
+ /**
15
+ * The name for this notification
16
+ */
17
+ this.name = '';
18
+ /**
19
+ * An optional type to categorize this notification in case the name is not enough
20
+ * to uniquely identify it
21
+ */
22
+ this.type = '';
23
+ /**
24
+ * Additional data to send with the notification
25
+ */
26
+ this.data = null;
27
+ this.name = name;
28
+ this.type = type;
29
+ this.data = data;
30
+ }
31
+ }
32
32
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR1VJTm90aWZpY2F0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHVyYm9ndWktYW5ndWxhci9zcmMvbWFpbi9tb2RlbC9jbGFzc2VzL0dVSU5vdGlmaWNhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7OztHQU9HO0FBRUg7O0dBRUc7QUFDSCxNQUFNLE9BQU8sZUFBZTtJQUd4QixZQUFZLElBQVksRUFBRSxJQUFJLEdBQUcsRUFBRSxFQUFFLE9BQVksSUFBSTtRQVFyRDs7V0FFRztRQUNILFNBQUksR0FBRyxFQUFFLENBQUM7UUFHVjs7O1dBR0c7UUFDSCxTQUFJLEdBQUcsRUFBRSxDQUFDO1FBR1Y7O1dBRUc7UUFDSCxTQUFJLEdBQVEsSUFBSSxDQUFDO1FBdEJiLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO1FBQ2pCLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO1FBQ2pCLEl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C8qKlxyXG4gICAgICogVGhlIG5hbWUgZm9yIHRoaXMgbm90aWZpY2F0aW9uXHJcbiAgICAgKi9cclxuICAgIG5hbWUgPSAnJztcclxuXHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBBbiBvcHRpb25hbCB0eXBlIHRvIGNhdGVnb3JpemUgdGhpcyBub3RpZmljYXRpb24gaW4gY2FzZSB0aGUgbmFtZSBpcyBub3QgZW5vdWdoXHJcbiAgICAgKiB0byB1bmlxdWVseSBpZGVudGlmeSBpdFxyXG4gICAgICovXHJcbiAgICB0eXBlID0gJyc7XHJcblxyXG5cclxuICAgIC8qKlxyXG4gICAgICogQWRkaXRpb25hbCBkYXRhIHRvIHNlbmQgd2l0aCB0aGUgbm90aWZpY2F0aW9uXHJcbiAgICAgKi9cclxuICAgIGRhdGE6IGFueSA9IG51bGw7XHJcbn1cclxuIl19
@@ -1,34 +1,34 @@
1
- /**
2
- * TurboGUI is A library that helps with the most common and generic UI elements and functionalities
3
- *
4
- * Website : -> http://www.turbogui.org
5
- * License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
6
- * License Url : -> http://www.apache.org/licenses/LICENSE-2.0
7
- * CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
8
- */
9
- /**
10
- * Defines an application view.
11
- * Our View components must extend this class so they can be manipulated via ViewsService
12
- */
13
- export class View {
14
- /**
15
- * In order for the views service to know which model class must be created when setting a new active view,
16
- * each view must specify the class for the view model at the overriden constructor super() call.
17
- * All view models must also extend ViewModel. If we do not plan to attach a model to a view, we can pass a null value to
18
- * the constructor super() call.
19
- *
20
- * A new model instance will be automatically created each time the view is added to the views container, and
21
- * destroyed when the view is removed. So the view model will only live while the view is active on the views service.
22
- */
23
- constructor(modelClass) {
24
- this._modelClass = null;
25
- this._modelClass = modelClass;
26
- }
27
- /**
28
- * Obtain the class type for the model that is linked to this view, or null if the view model is not yet instantiated.
29
- */
30
- get modelClass() {
31
- return this._modelClass;
32
- }
33
- }
1
+ /**
2
+ * TurboGUI is A library that helps with the most common and generic UI elements and functionalities
3
+ *
4
+ * Website : -> http://www.turbogui.org
5
+ * License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
6
+ * License Url : -> http://www.apache.org/licenses/LICENSE-2.0
7
+ * CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
8
+ */
9
+ /**
10
+ * Defines an application view.
11
+ * Our View components must extend this class so they can be manipulated via ViewsService
12
+ */
13
+ export class View {
14
+ /**
15
+ * In order for the views service to know which model class must be created when setting a new active view,
16
+ * each view must specify the class for the view model at the overriden constructor super() call.
17
+ * All view models must also extend ViewModel. If we do not plan to attach a model to a view, we can pass a null value to
18
+ * the constructor super() call.
19
+ *
20
+ * A new model instance will be automatically created each time the view is added to the views container, and
21
+ * destroyed when the view is removed. So the view model will only live while the view is active on the views service.
22
+ */
23
+ constructor(modelClass) {
24
+ this._modelClass = null;
25
+ this._modelClass = modelClass;
26
+ }
27
+ /**
28
+ * Obtain the class type for the model that is linked to this view, or null if the view model is not yet instantiated.
29
+ */
30
+ get modelClass() {
31
+ return this._modelClass;
32
+ }
33
+ }
34
34
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVmlldy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R1cmJvZ3VpLWFuZ3VsYXIvc3JjL21haW4vbW9kZWwvY2xhc3Nlcy9WaWV3LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7O0dBT0c7QUFNSDs7O0dBR0c7QUFFSCxNQUFNLE9BQWdCLElBQUk7SUFnQnRCOzs7Ozs7OztPQVFHO0lBQ0gsWUFBWSxVQUFrQztRQVp0QyxnQkFBVyxHQUEyQixJQUFJLENBQUM7UUFjL0MsSUFBSSxDQUFDLFdBQVcsR0FBRyxVQUFVLENBQ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lZC5cclxuICAgICAqL1xyXG4gICAgZ2V0IG1vZGVsQ2xhc3MoKSB7XHJcbiAgICAgICAgXHJcbiAgICAgICAgcmV0dXJuIHRoaXMuX21vZGVsQ2xhc3M7XHJcbiAgICB9XHJcbn1cclxuIl19
@@ -1,14 +1,14 @@
1
- /**
2
- * TurboGUI is A library that helps with the most common and generic UI elements and functionalities
3
- *
4
- * Website : -> http://www.turbogui.org
5
- * License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
6
- * License Url : -> http://www.apache.org/licenses/LICENSE-2.0
7
- * CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
8
- */
9
- /**
10
- * Defines the model base class for an application view
11
- */
12
- export class ViewModel {
13
- }
1
+ /**
2
+ * TurboGUI is A library that helps with the most common and generic UI elements and functionalities
3
+ *
4
+ * Website : -> http://www.turbogui.org
5
+ * License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
6
+ * License Url : -> http://www.apache.org/licenses/LICENSE-2.0
7
+ * CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
8
+ */
9
+ /**
10
+ * Defines the model base class for an application view
11
+ */
12
+ export class ViewModel {
13
+ }
14
14
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVmlld01vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHVyYm9ndWktYW5ndWxhci9zcmMvbWFpbi9tb2RlbC9jbGFzc2VzL1ZpZXdNb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7OztHQU9HO0FBRUg7O0dBRUc7QUFDSCxNQUFNLE9BQWdCLFNBQVM7Q0FFOUIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcclxuICogVHVyYm9HVUkgaXMgQSBsaWJyYXJ5IHRoYXQgaGVscHMgd2l0aCB0aGUgbW9zdCBjb21tb24gYW5kIGdlbmVyaWMgVUkgZWxlbWVudHMgYW5kIGZ1bmN0aW9uYWxpdGllc1xyXG4gKlxyXG4gKiBXZWJzaXRlIDogLT4gaHR0cDovL3d3dy50dXJib2d1aS5vcmdcclxuICogTGljZW5zZSA6IC0+IExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAuIFlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cclxuICogTGljZW5zZSBVcmwgOiAtPiBodHRwOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcclxuICogQ29weVJpZ2h0IDogLT4gQ29weXJpZ2h0IDIwMTggRWRlcnRvbmUgQWR2YW5kZWQgU29sdXRpb25zLiBodHRwczovL3d3dy5lZGVydG9uZS5jb21cclxuICovXHJcblxyXG4vKipcclxuICogRGVmaW5lcyB0aGUgbW9kZWwgYmFzZSBjbGFzcyBmb3IgYW4gYXBwbGljYXRpb24gdmlld1xyXG4gKi9cclxuZXhwb3J0IGFic3RyYWN0IGNsYXNzIFZpZXdNb2RlbCB7XHJcblxyXG59XHJcbiJdfQ==
@@ -1,28 +1,28 @@
1
- /**
2
- * TurboGUI is A library that helps with the most common and generic UI elements and functionalities
3
- *
4
- * Website : -> http://www.turbogui.org
5
- * License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
6
- * License Url : -> http://www.apache.org/licenses/LICENSE-2.0
7
- * CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
8
- */
9
- /**
10
- * Defines the service base class for a view service class. All services that are used by views must extend this.
11
- * We must create the view services as an @Injectable() angular class which will be globally available at any time, but we must take
12
- * into consideration that the view model will only be instantiated when the view is active.
13
- */
14
- export class ViewService {
15
- /**
16
- * Class requires a views service instance
17
- */
18
- constructor(viewsService) {
19
- this.viewsService = viewsService;
20
- }
21
- /**
22
- * A reference to the currently active view model
23
- */
24
- get model() {
25
- return this.viewsService.model;
26
- }
27
- }
1
+ /**
2
+ * TurboGUI is A library that helps with the most common and generic UI elements and functionalities
3
+ *
4
+ * Website : -> http://www.turbogui.org
5
+ * License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the License.
6
+ * License Url : -> http://www.apache.org/licenses/LICENSE-2.0
7
+ * CopyRight : -> Copyright 2018 Edertone Advanded Solutions. https://www.edertone.com
8
+ */
9
+ /**
10
+ * Defines the service base class for a view service class. All services that are used by views must extend this.
11
+ * We must create the view services as an @Injectable() angular class which will be globally available at any time, but we must take
12
+ * into consideration that the view model will only be instantiated when the view is active.
13
+ */
14
+ export class ViewService {
15
+ /**
16
+ * Class requires a views service instance
17
+ */
18
+ constructor(viewsService) {
19
+ this.viewsService = viewsService;
20
+ }
21
+ /**
22
+ * A reference to the currently active view model
23
+ */
24
+ get model() {
25
+ return this.viewsService.model;
26
+ }
27
+ }
28
28
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVmlld1NlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dXJib2d1aS1hbmd1bGFyL3NyYy9tYWluL21vZGVsL2NsYXNzZXMvVmlld1NlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7R0FPRztBQU1IOzs7O0dBSUc7QUFDSCxNQUFNLE9BQWdCLFdBQVc7SUFHN0I7O09BRUc7SUFDSCxZQUE0QixZQUEwQjtRQUExQixpQkFBWSxHQUFaLFlBQVksQ0FBYztJQUN0RCxDQUFDO0lBR0Q7O09BRUc7SUFDSCxJQUFJLEtBQUs7UUFFTCxPQUFPLElBQUksQ0FBQyxZQUFZLENBQUMsS0FBVSxDQUFDO0lBQ3hDLENBQUM7Q0FDS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