@magic-xpa/angular 4.1100.0-dev4110.106 → 4.1100.0-dev4110.107

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 (124) hide show
  1. package/README.md +5 -5
  2. package/esm2020/index.mjs +59 -2
  3. package/esm2020/src/controls.metadata.model.mjs +180 -0
  4. package/esm2020/src/interfaces/sub-form-definition.iterface.mjs +2 -0
  5. package/esm2020/src/magic.core.module.mjs +160 -0
  6. package/esm2020/src/services/ISubformMagicService.mjs +2 -0
  7. package/esm2020/src/services/OverlayWindowService.mjs +236 -0
  8. package/esm2020/src/services/StylesMapManager.mjs +28 -0
  9. package/esm2020/src/services/accessor.magic.service.mjs +356 -0
  10. package/esm2020/src/services/commands-collector.magic.service.mjs +46 -0
  11. package/esm2020/src/services/component-list.magic.service.mjs +46 -0
  12. package/esm2020/src/services/confirmation.components.magic.provider.mjs +21 -0
  13. package/esm2020/src/services/engine.magic.service.mjs +82 -0
  14. package/esm2020/src/services/exit.magic.service.mjs +13 -0
  15. package/esm2020/src/services/magic-color.service.mjs +99 -0
  16. package/esm2020/src/services/magic.lazy.loader.service.mjs +16 -0
  17. package/esm2020/src/services/magic.providers.mjs +25 -0
  18. package/esm2020/src/services/magic.services.mjs +31 -0
  19. package/esm2020/src/services/mg-date-adapter.mjs +109 -0
  20. package/esm2020/src/services/overlay.conainer.magic.provider.mjs +14 -0
  21. package/esm2020/src/services/router-commands.magic.service.mjs +28 -0
  22. package/esm2020/src/services/subform.magic.service.mjs +184 -0
  23. package/esm2020/src/services/table.magic.service.mjs +77 -0
  24. package/esm2020/src/services/task.magics.service.mjs +624 -0
  25. package/esm2020/src/services/title.magic.service.mjs +18 -0
  26. package/esm2020/src/ui/GuiInteractiveExecutor.mjs +105 -0
  27. package/esm2020/src/ui/components/base-magic-alert.component.mjs +23 -0
  28. package/esm2020/src/ui/components/base-magic-confirm.component.mjs +23 -0
  29. package/esm2020/src/ui/components/magic-alert.component.mjs +35 -0
  30. package/esm2020/src/ui/components/magic-confirmation-box.component.mjs +41 -0
  31. package/esm2020/src/ui/directives/NonMagicControlDirective.mjs +49 -0
  32. package/esm2020/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.mjs +28 -0
  33. package/esm2020/src/ui/directives/magic/checkbox.magic.directive.mjs +28 -0
  34. package/esm2020/src/ui/directives/magic/combobox.magic.directive.mjs +36 -0
  35. package/esm2020/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.mjs +27 -0
  36. package/esm2020/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.mjs +52 -0
  37. package/esm2020/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.mjs +32 -0
  38. package/esm2020/src/ui/directives/magic/input.noformcontrol.magic.directive.mjs +27 -0
  39. package/esm2020/src/ui/directives/magic/nocontrol.magic.directive.mjs +193 -0
  40. package/esm2020/src/ui/directives/magic/row.magic.directive.mjs +58 -0
  41. package/esm2020/src/ui/directives/magic-focus.directive.mjs +19 -0
  42. package/esm2020/src/ui/directives/magic.directive.mjs +215 -0
  43. package/esm2020/src/ui/directives/magicViewContainerRef.directive.mjs +19 -0
  44. package/esm2020/src/ui/directives/mgformat.magic.directive.mjs +408 -0
  45. package/esm2020/src/ui/directives/range-validator.magic.directive.mjs +58 -0
  46. package/esm2020/src/ui/magic-confirmationBox.mjs +42 -0
  47. package/esm2020/src/ui/magic-modal/base-magic-overlay-container.mjs +22 -0
  48. package/esm2020/src/ui/magic-modal/magic-modal-form.mjs +8 -0
  49. package/esm2020/src/ui/magic-modal/magic-modal-interface.mjs +2 -0
  50. package/esm2020/src/ui/magic-modal/magic-overlay-container-wrapper.mjs +121 -0
  51. package/esm2020/src/ui/magic-modal/magic-overlay-container.mjs +159 -0
  52. package/esm2020/src/ui/magic-root.component.mjs +203 -0
  53. package/esm2020/src/ui/mgerror.magic.component.mjs +119 -0
  54. package/esm2020/src/ui/pipes/date.magic.pipe.mjs +105 -0
  55. package/esm2020/src/ui/pipes/time.magic.pipe.mjs +51 -0
  56. package/esm2020/src/ui/pipes/time24.magic.pipe.mjs +34 -0
  57. package/esm2020/src/ui/router-container.magic.component.mjs +108 -0
  58. package/esm2020/src/ui/subform.magic.component.mjs +52 -0
  59. package/esm2020/src/ui/task-base.magic.component.mjs +86 -0
  60. package/esm2020/src/ui/utils.mjs +54 -0
  61. package/fesm2015/magic-xpa-angular.mjs +4863 -0
  62. package/fesm2015/magic-xpa-angular.mjs.map +1 -1
  63. package/fesm2020/magic-xpa-angular.mjs +4681 -0
  64. package/fesm2020/magic-xpa-angular.mjs.map +1 -1
  65. package/index.d.ts +58 -1
  66. package/package.json +3 -3
  67. package/src/controls.metadata.model.d.ts +62 -0
  68. package/src/interfaces/sub-form-definition.iterface.d.ts +12 -0
  69. package/src/magic.core.module.d.ts +41 -0
  70. package/src/services/ISubformMagicService.d.ts +4 -0
  71. package/src/services/OverlayWindowService.d.ts +31 -0
  72. package/src/services/StylesMapManager.d.ts +5 -0
  73. package/src/services/accessor.magic.service.d.ts +69 -0
  74. package/src/services/commands-collector.magic.service.d.ts +15 -0
  75. package/src/services/component-list.magic.service.d.ts +23 -0
  76. package/src/services/confirmation.components.magic.provider.d.ts +8 -0
  77. package/src/services/engine.magic.service.d.ts +27 -0
  78. package/src/services/exit.magic.service.d.ts +6 -0
  79. package/src/services/magic-color.service.d.ts +19 -0
  80. package/src/services/magic.lazy.loader.service.d.ts +6 -0
  81. package/src/services/magic.providers.d.ts +107 -0
  82. package/src/services/magic.services.d.ts +16 -0
  83. package/src/services/mg-date-adapter.d.ts +40 -0
  84. package/src/services/overlay.conainer.magic.provider.d.ts +7 -0
  85. package/src/services/router-commands.magic.service.d.ts +17 -0
  86. package/src/services/subform.magic.service.d.ts +43 -0
  87. package/src/services/table.magic.service.d.ts +30 -0
  88. package/src/services/task.magics.service.d.ts +100 -0
  89. package/src/services/title.magic.service.d.ts +9 -0
  90. package/src/ui/GuiInteractiveExecutor.d.ts +22 -0
  91. package/src/ui/components/base-magic-alert.component.d.ts +10 -0
  92. package/src/ui/components/base-magic-confirm.component.d.ts +10 -0
  93. package/src/ui/components/magic-alert.component.d.ts +6 -0
  94. package/src/ui/components/magic-confirmation-box.component.d.ts +6 -0
  95. package/src/ui/directives/NonMagicControlDirective.d.ts +26 -0
  96. package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +9 -0
  97. package/src/ui/directives/magic/checkbox.magic.directive.d.ts +9 -0
  98. package/src/ui/directives/magic/combobox.magic.directive.d.ts +10 -0
  99. package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +7 -0
  100. package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +17 -0
  101. package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +7 -0
  102. package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +9 -0
  103. package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +18 -0
  104. package/src/ui/directives/magic/row.magic.directive.d.ts +17 -0
  105. package/src/ui/directives/magic-focus.directive.d.ts +9 -0
  106. package/src/ui/directives/magic.directive.d.ts +44 -0
  107. package/src/ui/directives/magicViewContainerRef.directive.d.ts +8 -0
  108. package/src/ui/directives/mgformat.magic.directive.d.ts +31 -0
  109. package/src/ui/directives/range-validator.magic.directive.d.ts +17 -0
  110. package/src/ui/magic-confirmationBox.d.ts +6 -0
  111. package/src/ui/magic-modal/base-magic-overlay-container.d.ts +5 -0
  112. package/src/ui/magic-modal/magic-modal-form.d.ts +5 -0
  113. package/src/ui/magic-modal/magic-modal-interface.d.ts +10 -0
  114. package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +31 -0
  115. package/src/ui/magic-modal/magic-overlay-container.d.ts +25 -0
  116. package/src/ui/magic-root.component.d.ts +40 -0
  117. package/src/ui/mgerror.magic.component.d.ts +20 -0
  118. package/src/ui/pipes/date.magic.pipe.d.ts +17 -0
  119. package/src/ui/pipes/time.magic.pipe.d.ts +11 -0
  120. package/src/ui/pipes/time24.magic.pipe.d.ts +10 -0
  121. package/src/ui/router-container.magic.component.d.ts +30 -0
  122. package/src/ui/subform.magic.component.d.ts +16 -0
  123. package/src/ui/task-base.magic.component.d.ts +34 -0
  124. package/src/ui/utils.d.ts +9 -0
@@ -0,0 +1,18 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { Title } from "@angular/platform-browser";
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/platform-browser";
5
+ export class TitleMagicService {
6
+ constructor(titleService) {
7
+ this.titleService = titleService;
8
+ }
9
+ setTitle(newTitle) {
10
+ this.titleService.setTitle(newTitle);
11
+ }
12
+ }
13
+ TitleMagicService.ɵfac = function TitleMagicService_Factory(t) { return new (t || TitleMagicService)(i0.ɵɵinject(i1.Title)); };
14
+ TitleMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: TitleMagicService, factory: TitleMagicService.ɵfac });
15
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TitleMagicService, [{
16
+ type: Injectable
17
+ }], function () { return [{ type: i1.Title }]; }, null); })();
18
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGl0bGUubWFnaWMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXIvc3JjL3NlcnZpY2VzL3RpdGxlLm1hZ2ljLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUMsS0FBSyxFQUFDLE1BQU0sMkJBQTJCLENBQUM7OztBQU1oRCxNQUFNLE9BQU8saUJBQWlCO0lBSzVCLFlBQXNCLFlBQW1CO1FBQW5CLGlCQUFZLEdBQVosWUFBWSxDQUF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ommandType } from '@magic-xpa/gui';
2
+ import { isNullOrUndefined } from '@magic-xpa/mscorelib';
3
+ import { RouterContainerMagicComponent } from "./router-container.magic.component";
4
+ export class GuiInteractiveExecutor {
5
+ Run() {
6
+ try {
7
+ switch (this.command._commandType) {
8
+ case InteractiveCommandType.GET_VALUE:
9
+ this.onValue();
10
+ break;
11
+ case InteractiveCommandType.GET_ROWS_IN_PAGE:
12
+ this.onGetRowsInPage();
13
+ break;
14
+ case InteractiveCommandType.GET_MAX_ROWS_IN_PAGINATED_TABLE:
15
+ this.onGetMaxRowsInPaginatedTable();
16
+ break;
17
+ case InteractiveCommandType.MESSAGE_BOX:
18
+ this.OnMessageBox();
19
+ break;
20
+ case InteractiveCommandType.GET_TOP_INDEX:
21
+ this.OnGetTopIndex();
22
+ break;
23
+ case InteractiveCommandType.GET_IS_ROW_EDITING:
24
+ this.OnGetIsRowEditing();
25
+ break;
26
+ case InteractiveCommandType.SET_TITLE:
27
+ this.OnSetTitle();
28
+ break;
29
+ case InteractiveCommandType.REFRESH_PAGE:
30
+ this.OnRefreshPage();
31
+ break;
32
+ case InteractiveCommandType.GET_LAST_ROUTE:
33
+ this.OnGetLastRoute();
34
+ break;
35
+ case InteractiveCommandType.OPEN_FORM:
36
+ this.OnOpenForm();
37
+ break;
38
+ }
39
+ }
40
+ catch (ex) {
41
+ throw ex;
42
+ }
43
+ }
44
+ static executeInteractiveCommand(task, guiIntactiveCommand, overlayService) {
45
+ let executor = new GuiInteractiveExecutor();
46
+ executor.task = task;
47
+ executor.command = guiIntactiveCommand;
48
+ executor.overlayService = overlayService;
49
+ executor.Run();
50
+ }
51
+ onValue() {
52
+ let guiRowId = this.task.getGuiRowId(+this.command._line, this.task.isTableControl(this.command.controlName) || this.command._obj2.IsTableChild);
53
+ let result = this.task.getFormControl(guiRowId.toString(), this.command.controlName);
54
+ let val;
55
+ if (!isNullOrUndefined(result)) {
56
+ val = result.value;
57
+ }
58
+ else if (this.task.isTableControl(this.command.controlName))
59
+ val = this.task.getValue(this.command.controlName, guiRowId.toString());
60
+ val = this.task.ConvertValToNative(this.command.controlName, guiRowId, val);
61
+ this.command._mgValue.obj = val;
62
+ }
63
+ onGetRowsInPage() {
64
+ this.command._intVal1 = this.task.tableService.getPageSize();
65
+ if (this.task.oldPageSize == 0)
66
+ this.task.oldPageSize = this.command._intVal1;
67
+ }
68
+ onGetMaxRowsInPaginatedTable() {
69
+ this.command._intVal1 = this.task.tableService.getMaxRowsInTable();
70
+ }
71
+ OnMessageBox() {
72
+ this.overlayService.openConfirmationBox(this.command._mgValue.title, this.command._mgValue.str, this.command._mgValue.style);
73
+ }
74
+ OnOpenForm() {
75
+ if (this.command._boolVal)
76
+ this.overlayService.loadAndOpenModule(this.command.controlName, this.command._mgValue.str, this.command._mgValue.path);
77
+ }
78
+ OnSetTitle() {
79
+ this.task.setTitle(this.command._mgValue.title);
80
+ }
81
+ OnRefreshPage() {
82
+ let navigateToRootRoute = this.command._boolVal;
83
+ let initialUrl = this.command._obj1;
84
+ if (navigateToRootRoute)
85
+ window.location.replace(initialUrl);
86
+ else
87
+ window.location.reload();
88
+ }
89
+ OnGetTopIndex() {
90
+ this.command._intVal1 = this.task.tableService.getTableTopIndex();
91
+ }
92
+ OnGetIsRowEditing() {
93
+ let dvRowIndex = this.command._intVal1;
94
+ let guiRowIndex = this.task.getGuiRowId(dvRowIndex, true);
95
+ let isLineMode = this.command._boolVal;
96
+ if (isLineMode && (isNullOrUndefined(guiRowIndex) || isNullOrUndefined(this.task.Records.list[guiRowIndex])))
97
+ this.command._boolVal = false;
98
+ else
99
+ this.command._boolVal = this.task.Records.list[guiRowIndex].isEditing;
100
+ }
101
+ OnGetLastRoute() {
102
+ this.command.resultString = RouterContainerMagicComponent.LastRoute;
103
+ }
104
+ }
105
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR3VpSW50ZXJhY3RpdmVFeGVjdXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJz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IHtcclxuICAgIHRoaXMuY29tbWFuZC5faW50VmFsMSA9IHRoaXMudGFzay50YWJsZVNlcnZpY2UuZ2V0VGFibGVUb3BJbmRleCgpO1xyXG4gIH1cclxuXHJcbiAgcHJpdmF0ZSBPbkdldElzUm93RWRpdGluZygpOiB2b2lkIHtcclxuICAgIGxldCBkdlJvd0luZGV4OiBudW1iZXIgPSB0aGlzLmNvbW1hbmQuX2ludFZhbDE7XHJcbiAgICBsZXQgZ3VpUm93SW5kZXg6IG51bWJlciA9IHRoaXMudGFzay5nZXRHdWlSb3dJZChkdlJvd0luZGV4LCB0cnVlKTtcclxuICAgIGxldCBpc0xpbmVNb2RlOiBib29sZWFuID0gdGhpcy5jb21tYW5kLl9ib29sVmFsO1xyXG5cclxuICAgIGlmIChpc0xpbmVNb2RlICYmIChpc051bGxPclVuZGVmaW5lZChndWlSb3dJbmRleCkgfHwgaXNOdWxsT3JVbmRlZmluZWQodGhpcy50YXNrLlJlY29yZHMubGlzdFtndWlSb3dJbmRleF0pKSlcclxuICAgICAgdGhpcy5jb21tYW5kLl9ib29sVmFsID0gZmFsc2U7XHJcbiAgICBlbHNlXHJcbiAgICAgIHRoaXMuY29tbWFuZC5fYm9vbFZhbCA9IHRoaXMudGFzay5SZWNvcmRzLmxpc3RbZ3VpUm93SW5kZXhdLmlzRWRpdGluZztcclxuICB9XHJcblxyXG4gIHByaXZhdGUgT25HZXRMYXN0Um91dGUoKTogdm9pZCB7XHJcbiAgICB0aGlzLmNvbW1hbmQucmVzdWx0U3RyaW5nID0gUm91dGVyQ29udGFpbmVyTWFnaWNDb21wb25lbnQuTGFzdFJvdXRlO1xyXG4gIH1cclxufVxyXG4iXX0=
@@ -0,0 +1,23 @@
1
+ import { Component, EventEmitter, Input, Output } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export class BaseMagicAlertComponent {
4
+ constructor() {
5
+ this.onClose = new EventEmitter();
6
+ }
7
+ OnClose() {
8
+ this.onClose.emit();
9
+ }
10
+ }
11
+ BaseMagicAlertComponent.ɵfac = function BaseMagicAlertComponent_Factory(t) { return new (t || BaseMagicAlertComponent)(); };
12
+ BaseMagicAlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BaseMagicAlertComponent, selectors: [["mg-base-alert"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, decls: 0, vars: 0, template: function BaseMagicAlertComponent_Template(rf, ctx) { } });
13
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseMagicAlertComponent, [{
14
+ type: Component,
15
+ args: [{ selector: 'mg-base-alert', template: '' }]
16
+ }], null, { title: [{
17
+ type: Input
18
+ }], message: [{
19
+ type: Input
20
+ }], onClose: [{
21
+ type: Output
22
+ }] }); })();
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1tYWdpYy1hbGVydC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyL3NyYy91aS9jb21wb25lbnRzL2Jhc2UtbWFnaWMtYWxlcnQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBV3ZFLE1BQU0sT0FBTyx1QkFBdUI7SUFMcEM7UUFzQlksWUFBTyxHQUFHLElBQUksWUFBWSxFQUFRLENBQUM7S0FVOUM7SUFIQyxPQUFPO1FBQ0wsSUFBSSxDQUFDLE9BQU8sQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUN0QixDQUFDOzs4RkExQlUsdUJBQXVCOzREQUF2Qix1QkFBdUI7dUZBQXZCLHVCQUF1QjtjQUxuQyxTQUFTOzJCQUNFLGVBQWUsWUFDZixFQUFFO2dCQVNILEtBQUs7a0JBQWIsS0FBSztZQUtHLE9BQU87a0JBQWYsS0FBSztZQU1JLE9BQU87a0JBQWhCLE1BQU0iLCJzb3VyY2VzQ29udGVudCI6WyJcbmltcG9ydCB7IENvbXBvbmVudCwgRXZlbnRFbWl0dGVyLCBJbnB1dCwgT3V0cHV0IH0gZnJvbSBcIkBhbmd1bGFyL2NvcmVcIjtcblxuXG4vKipcbiAqIFRoaXMgaXMgYSBiYXNlIGNsYXNzIGZvciB0aGUgbWFnaWMgYWxlcnQgY29tcG9uZW50c1xuICovXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdtZy1iYXNlLWFsZXJ0JyxcbiAgdGVtcGxhdGU6ICcnLFxuICBzdHlsZXM6IFsnJ11cbn0pXG5leHBvcnQgY2xhc3MgQmFzZU1hZ2ljQWxlcnRDb21wb25lbnQgICB7XG5cblxuICAvKipcbiAgICogdGl0bGUgb2YgdGhlIGNvbXBvbmVudFxuICAgKi9cbiAgQElucHV0KCkgdGl0bGU6IHN0cmluZztcblxuICAvKipcbiAgICogbWVzc2FnZSBvZiB0aGUgY29tcG9uZW50XG4gICAqL1xuICBASW5wdXQoKSBtZXNzYWdlOiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIG9uQ2xvc2UgRXZlbnQgLSB0byBiZSByYWlzZWQgd2hlbiB0aGUgY29tcG9uZW50IGlzIGNsb3NlZFxuXG4gICAqL1xuICBAT3V0cHV0KCkgb25DbG9zZSA9IG5ldyBFdmVudEVtaXR0ZXI8dm9pZD4oKTtcblxuXG5cbiAgLyoqXG4gICAqIGNsb3NlIG1hZ2ljIGFsZXJ0XG4gICAqL1xuICBPbkNsb3NlKCkge1xuICAgIHRoaXMub25DbG9zZS5lbWl0KCk7XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,23 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class BaseMagicConfirmComponent {
4
+ constructor() {
5
+ this.onClose = new EventEmitter();
6
+ }
7
+ OnClose(result) {
8
+ this.onClose.emit(result);
9
+ }
10
+ }
11
+ BaseMagicConfirmComponent.ɵfac = function BaseMagicConfirmComponent_Factory(t) { return new (t || BaseMagicConfirmComponent)(); };
12
+ BaseMagicConfirmComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BaseMagicConfirmComponent, selectors: [["mg-base-alert"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, decls: 0, vars: 0, template: function BaseMagicConfirmComponent_Template(rf, ctx) { } });
13
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseMagicConfirmComponent, [{
14
+ type: Component,
15
+ args: [{ selector: 'mg-base-alert', template: '' }]
16
+ }], null, { title: [{
17
+ type: Input
18
+ }], message: [{
19
+ type: Input
20
+ }], onClose: [{
21
+ type: Output
22
+ }] }); })();
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1tYWdpYy1jb25maXJtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXIvc3JjL3VpL2NvbXBvbmVudHMvYmFzZS1tYWdpYy1jb25maXJtLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQVd2RSxNQUFNLE9BQU8seUJBQXlCO0lBTHRDO1FBcUJZLFlBQU8sR0FBRyxJQUFJLFlBQVksRUFBVyxDQUFDO0tBV2pEO0lBSEMsT0FBTyxDQUFDLE1BQU07UUFDWixJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUM1QixDQUFDOztrR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lcyBjbG9zZSBFdmVudFxuICAgKiBAcGFyYW0gcmVzdWx0IHRydWUgd2hlbiBPSyBpcyBwcmVzc2VkIGFuZCBmYWxzZSB3aGVuIGNhbmNlbCBpcyBwcmVzc2VkXG4gICAqXG4gICAqL1xuICBPbkNsb3NlKHJlc3VsdCkge1xuICAgIHRoaXMub25DbG9zZS5lbWl0KHJlc3VsdCk7XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,35 @@
1
+ import { Component } from '@angular/core';
2
+ import { BaseMagicAlertComponent } from './base-magic-alert.component';
3
+ import * as i0 from "@angular/core";
4
+ export class MagicAlertComponent extends BaseMagicAlertComponent {
5
+ }
6
+ MagicAlertComponent.ɵfac = function () { let ɵMagicAlertComponent_BaseFactory; return function MagicAlertComponent_Factory(t) { return (ɵMagicAlertComponent_BaseFactory || (ɵMagicAlertComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MagicAlertComponent)))(t || MagicAlertComponent); }; }();
7
+ MagicAlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicAlertComponent, selectors: [["sample-magic-alert-component"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 2, consts: [[1, "mg-message-background"], [3, "click"]], template: function MagicAlertComponent_Template(rf, ctx) { if (rf & 1) {
8
+ i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h2");
9
+ i0.ɵɵtext(3);
10
+ i0.ɵɵelementEnd();
11
+ i0.ɵɵelementStart(4, "p");
12
+ i0.ɵɵtext(5);
13
+ i0.ɵɵelementEnd();
14
+ i0.ɵɵelementStart(6, "button", 1);
15
+ i0.ɵɵlistener("click", function MagicAlertComponent_Template_button_click_6_listener() { return ctx.OnClose(); });
16
+ i0.ɵɵtext(7, "OK");
17
+ i0.ɵɵelementEnd()()();
18
+ } if (rf & 2) {
19
+ i0.ɵɵadvance(3);
20
+ i0.ɵɵtextInterpolate1(" ", ctx.title, "");
21
+ i0.ɵɵadvance(2);
22
+ i0.ɵɵtextInterpolate1("", ctx.message, " ");
23
+ } }, styles: [".mg-message-background[_ngcontent-%COMP%]{background-color:#f5f5f5;width:40%;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;padding:17px;border-radius:5px;text-align:center;margin-top:10%;margin-left:auto;margin-right:auto;border:1px solid gray}button[_ngcontent-%COMP%]{background-color:#8cd4f5;color:#fff;border:none;box-shadow:none;font-size:17px;font-weight:500;border-radius:5px;padding:10px 32px;margin:26px 5px 0;cursor:pointer}"] });
24
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicAlertComponent, [{
25
+ type: Component,
26
+ args: [{ selector: 'sample-magic-alert-component', template: `<div>
27
+ <div class="mg-message-background">
28
+ <h2> {{title}}</h2>
29
+ <p>{{message}} </p>
30
+
31
+ <button (click)="OnClose()">OK</button>
32
+ </div>
33
+ </div>`, styles: [".mg-message-background{background-color:#f5f5f5;width:40%;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;padding:17px;border-radius:5px;text-align:center;margin-top:10%;margin-left:auto;margin-right:auto;border:1px solid gray}button{background-color:#8cd4f5;color:#fff;border:none;box-shadow:none;font-size:17px;font-weight:500;border-radius:5px;padding:10px 32px;margin:26px 5px 0;cursor:pointer}\n"] }]
34
+ }], null, null); })();
35
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFnaWMtYWxlcnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci9zcmMvdWkvY29tcG9uZW50cy9tYWdpYy1hbGVydC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSw4QkFBOEIsQ0FB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G4gICAgLm1nLW1lc3NhZ2UtYmFja2dyb3VuZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGNUY1RjU7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgd2lkdGg6IDQwJTtcbiAgZm9udC1mYW1pbHk6ICdPcGVuIFNhbnMnLCAnSGVsdmV0aWNhIE5ldWUnLCBIZWx2ZXRpY2EsIEFyaWFsLCBzYW5zLXNlcmlmO1xuICBwYWRkaW5nOiAxN3B4O1xuICBib3JkZXItcmFkaXVzOiA1cHg7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgbWFyZ2luLXRvcDogMTAlIDtcbiAgbWFyZ2luLWxlZnQ6IGF1dG87XG4gIG1hcmdpbi1yaWdodDogYXV0bztcbiAgYm9yZGVyOiAxcHggc29saWQgIGdyYXk7XG4gIH1cblxuICBidXR0b24ge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjOENENEY1O1xuICBjb2xvcjogd2hpdGU7XG4gIGJvcmRlcjogbm9uZTtcbiAgYm94LXNoYWRvdzogbm9uZTtcbiAgZm9udC1zaXplOiAxN3B4O1xuICBmb250LXdlaWdodDogNTAwO1xuICAtd2Via2l0LWJvcmRlci1yYWRpdXM6IDRweDtcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xuICBwYWRkaW5nOiAxMHB4IDMycHg7XG4gIG1hcmdpbjogMjZweCA1cHggMCA1cHg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgfVxuICBgXVxufSlcbmV4cG9ydCBjbGFzcyBNYWdpY0FsZXJ0Q29tcG9uZW50IGV4dGVuZHMgIEJhc2VNYWdpY0FsZXJ0Q29tcG9uZW50e1xuXG59XG4iXX0=
@@ -0,0 +1,41 @@
1
+ import { Component } from '@angular/core';
2
+ import { BaseMagicConfirmComponent } from './base-magic-confirm.component';
3
+ import * as i0 from "@angular/core";
4
+ export class MagicConfirmationBoxComponent extends BaseMagicConfirmComponent {
5
+ }
6
+ MagicConfirmationBoxComponent.ɵfac = function () { let ɵMagicConfirmationBoxComponent_BaseFactory; return function MagicConfirmationBoxComponent_Factory(t) { return (ɵMagicConfirmationBoxComponent_BaseFactory || (ɵMagicConfirmationBoxComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MagicConfirmationBoxComponent)))(t || MagicConfirmationBoxComponent); }; }();
7
+ MagicConfirmationBoxComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicConfirmationBoxComponent, selectors: [["sample-magic-confirmation-box"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 2, consts: [[1, "mg-message-background"], [3, "click"], [1, "cancel", 3, "click"]], template: function MagicConfirmationBoxComponent_Template(rf, ctx) { if (rf & 1) {
8
+ i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h2");
9
+ i0.ɵɵtext(3);
10
+ i0.ɵɵelementEnd();
11
+ i0.ɵɵtext(4);
12
+ i0.ɵɵelement(5, "br")(6, "br");
13
+ i0.ɵɵelementStart(7, "button", 1);
14
+ i0.ɵɵlistener("click", function MagicConfirmationBoxComponent_Template_button_click_7_listener() { return ctx.OnClose(true); });
15
+ i0.ɵɵtext(8, "OK");
16
+ i0.ɵɵelementEnd();
17
+ i0.ɵɵelementStart(9, "button", 2);
18
+ i0.ɵɵlistener("click", function MagicConfirmationBoxComponent_Template_button_click_9_listener() { return ctx.OnClose(false); });
19
+ i0.ɵɵtext(10, "Cancel");
20
+ i0.ɵɵelementEnd()()();
21
+ } if (rf & 2) {
22
+ i0.ɵɵadvance(3);
23
+ i0.ɵɵtextInterpolate1(" ", ctx.title, "");
24
+ i0.ɵɵadvance(1);
25
+ i0.ɵɵtextInterpolate1(" ", ctx.message, " ");
26
+ } }, styles: [".mg-message-background[_ngcontent-%COMP%]{background-color:#f5f5f5;width:40%;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;padding:17px;border-radius:5px;text-align:center;margin-top:10%;margin-left:auto;margin-right:auto;border:1px solid gray}button[_ngcontent-%COMP%]{background-color:#8cd4f5;color:#fff;border:none;box-shadow:none;font-size:17px;font-weight:500;border-radius:5px;padding:10px 32px;margin:26px 5px 0;cursor:pointer}button.cancel[_ngcontent-%COMP%]{background-color:#c1c1c1}"] });
27
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicConfirmationBoxComponent, [{
28
+ type: Component,
29
+ args: [{ selector: 'sample-magic-confirmation-box', template: `<div>
30
+ <div class="mg-message-background">
31
+ <h2> {{title}}</h2>
32
+ {{message}}
33
+ <br>
34
+ <br>
35
+
36
+ <button (click)="OnClose(true)">OK</button>
37
+ <button class="cancel" (click)="OnClose(false)">Cancel</button>
38
+ </div>
39
+ </div>`, styles: [".mg-message-background{background-color:#f5f5f5;width:40%;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;padding:17px;border-radius:5px;text-align:center;margin-top:10%;margin-left:auto;margin-right:auto;border:1px solid gray}button{background-color:#8cd4f5;color:#fff;border:none;box-shadow:none;font-size:17px;font-weight:500;border-radius:5px;padding:10px 32px;margin:26px 5px 0;cursor:pointer}button.cancel{background-color:#c1c1c1}\n"] }]
40
+ }], null, null); })();
41
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFnaWMtY29uZmlybWF0aW9uLWJveC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyL3NyYy91aS9jb21wb25lbnRzL21hZ2ljLWNvbmZpcm1hdGlvbi1ib3guY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7O0FBb0QzRSxNQUFNLE9BQU8sNkJBQThCLFNBQVEseUJB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uICBgXVxufSlcbmV4cG9ydCBjbGFzcyBNYWdpY0NvbmZpcm1hdGlvbkJveENvbXBvbmVudCBleHRlbmRzIEJhc2VNYWdpY0NvbmZpcm1Db21wb25lbnQge1xuXG59XG4iXX0=
@@ -0,0 +1,49 @@
1
+ import { Directive, ElementRef, Input, Renderer2, ViewContainerRef } from '@angular/core';
2
+ import { getGuiEventObj } from '@magic-xpa/engine';
3
+ import { TaskMagicService } from '../../services/task.magics.service';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "../../services/task.magics.service";
6
+ export class NonMagicControlDirective {
7
+ set magic(val) {
8
+ this.id = val;
9
+ this.selector = 'NonMagicControl';
10
+ }
11
+ ;
12
+ constructor(_task, element, renderer, vcRef) {
13
+ this._task = _task;
14
+ this.element = element;
15
+ this.renderer = renderer;
16
+ this.vcRef = vcRef;
17
+ this.eventHandlers = {};
18
+ this.eventsOnlyVal = false;
19
+ this.htmlElement = this.element.nativeElement;
20
+ }
21
+ get task() {
22
+ return this._task;
23
+ }
24
+ regEvents() {
25
+ this.eventHandlers['focusin'] = this.OnFocus.bind(this);
26
+ Object.keys(this.eventHandlers).forEach((key) => {
27
+ this.renderer.listen(this.htmlElement, key, this.eventHandlers[key]);
28
+ });
29
+ }
30
+ OnFocus() {
31
+ this.task.insertEvent(getGuiEventObj('focusOnNonMagicControl', '', -1));
32
+ event.cancelBubble = true;
33
+ }
34
+ ngOnInit() {
35
+ this.regEvents();
36
+ }
37
+ }
38
+ NonMagicControlDirective.ɵfac = function NonMagicControlDirective_Factory(t) { return new (t || NonMagicControlDirective)(i0.ɵɵdirectiveInject(i1.TaskMagicService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
39
+ NonMagicControlDirective.ɵdir = i0.ɵɵdefineDirective({ type: NonMagicControlDirective, selectors: [["", "NonMagicControl", ""]], inputs: { magic: ["NonMagicControl", "magic"] } });
40
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NonMagicControlDirective, [{
41
+ type: Directive,
42
+ args: [{
43
+ selector: '[NonMagicControl]'
44
+ }]
45
+ }], function () { return [{ type: i1.TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }]; }, { magic: [{
46
+ type: Input,
47
+ args: ['NonMagicControl']
48
+ }] }); })();
49
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTm9uTWFnaWNDb250cm9sRGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci9zcmMvdWkvZGlyZWN0aXZlcy9Ob25NYWdpY0NvbnRyb2xEaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxVQUFVLEVBQUUsS0FBSyxFQUFVLFNBQVMsRUFBRSxnQkFBZ0IsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNoRyxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUFFakQsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sb0NBQW9DLENBQUM7OztBQVVwRSxNQUFNLE9BQU8sd0JBQXdCO0lBQ25DLElBQ0ksS0FBSyxDQUFDLEdBQUc7UUFDWCxJQUFJLENBQUMsRUFBRSxHQUFHLEdBQUcsQ0FBQztRQUNkLElBQUksQ0FBQyxRQUFRLEdBQUcsaUJBQWlCLENBQUM7SUFDcEMsQ0FBQztJQUFBLENBQUM7SUFzQ0YsWUFBc0IsS0FBdUIsRUFDdkIsT0FBbUIsRUFDbkIsUUFBbUIsRUFDbkIsS0FBdUI7UUFIdkIsVUFBSyxHQUFMLEtBQUssQ0FBa0I7UUFDdkIsWUFBTyxHQUFQL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gICAgICB0aGlzLnJlbmRlcmVyLmxpc3Rlbih0aGlzLmh0bWxFbGVtZW50LCBrZXksIHRoaXMuZXZlbnRIYW5kbGVyc1trZXldKTtcclxuICAgIH0pO1xyXG5cclxuICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIEhhbmRsZSBmb2N1cyBldmVudFxyXG4gICAqL1xyXG4gIHByaXZhdGUgT25Gb2N1cygpIHtcclxuICAgIHRoaXMudGFzay5pbnNlcnRFdmVudChnZXRHdWlFdmVudE9iaignZm9jdXNPbk5vbk1hZ2ljQ29udHJvbCcsICcnLCAtMSkpO1xyXG4gICAgZXZlbnQuY2FuY2VsQnViYmxlID0gdHJ1ZTtcclxuICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIEluaXRpYWxpemUgdGhpcyBvYmplY3RcclxuICAgKi9cclxuICBuZ09uSW5pdCgpOiB2b2lkIHtcclxuICAgIHRoaXMucmVnRXZlbnRzKCk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
@@ -0,0 +1,28 @@
1
+ import { Directive, HostListener } from "@angular/core";
2
+ import { MagicDirective } from "../magic.directive";
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "../magic.directive";
5
+ export class CheckboxNoFormControlMagicDirective {
6
+ constructor(magicDirective) {
7
+ this.magicDirective = magicDirective;
8
+ }
9
+ onChange($event) {
10
+ this.magicDirective.task.onCheckChanged($event, this.magicDirective.id, +this.magicDirective.rowId);
11
+ }
12
+ }
13
+ CheckboxNoFormControlMagicDirective.ɵfac = function CheckboxNoFormControlMagicDirective_Factory(t) { return new (t || CheckboxNoFormControlMagicDirective)(i0.ɵɵdirectiveInject(i1.MagicDirective)); };
14
+ CheckboxNoFormControlMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: CheckboxNoFormControlMagicDirective, selectors: [["input", "type", "checkbox", "magic", "", "noFormControl", ""]], hostBindings: function CheckboxNoFormControlMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
15
+ i0.ɵɵlistener("change", function CheckboxNoFormControlMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
16
+ } } });
17
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxNoFormControlMagicDirective, [{
18
+ type: Directive,
19
+ args: [{
20
+ selector: `
21
+ input[type=checkbox][magic]:([noFormControl])
22
+ `,
23
+ }]
24
+ }], function () { return [{ type: i1.MagicDirective }]; }, { onChange: [{
25
+ type: HostListener,
26
+ args: ['change', ['$event']]
27
+ }] }); })();
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3gtbm9mb3JtY29udHJvbC5tYWdpYy5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyL3NyYy91aS9kaXJlY3RpdmVzL21hZ2ljL2NoZWNrYm94LW5vZm9ybWNvbnRyb2wubWFnaWMuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3hELE9BQU8sRUFBRyxjQUFjLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQzs7O0FBWXJELE1BQU0sT0FBTyxtQ0FBbUM7SUFDNUMsWUFBc0IsY0FBOEI7UUFBOUIsbUJBQWMsR0FBZCxjQUFjLENBQWdCO0lBQ3BELENBQUM7SUFPSCxRQUFRLENBQUMsTUFBTTtRQUNiLElBQUksQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLGNBQWMsQ0FBQyxNQUFNLEVBQUUsSUFBSSxDQUFDLGNBQWMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxJQUFJLENBQUMsY0FBYyxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQ3RHLENBQUM7O3NIQVh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ay5vbkNoZWNrQ2hhbmdlZCgkZXZlbnQsIHRoaXMubWFnaWNEaXJlY3RpdmUuaWQsICt0aGlzLm1hZ2ljRGlyZWN0aXZlLnJvd0lkKTtcclxuICB9XHJcbn1cclxuIl19
@@ -0,0 +1,28 @@
1
+ import { Directive, HostListener } from '@angular/core';
2
+ import { MagicDirective } from '../magic.directive';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "../magic.directive";
5
+ export class CheckboxMagicDirective {
6
+ constructor(magicDirective) {
7
+ this.magicDirective = magicDirective;
8
+ }
9
+ onChange($event) {
10
+ this.magicDirective.task.onCheckChanged($event, this.magicDirective.id, +this.magicDirective.rowId);
11
+ }
12
+ }
13
+ CheckboxMagicDirective.ɵfac = function CheckboxMagicDirective_Factory(t) { return new (t || CheckboxMagicDirective)(i0.ɵɵdirectiveInject(i1.MagicDirective)); };
14
+ CheckboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: CheckboxMagicDirective, selectors: [["input", "type", "checkbox", "magic", "", 3, "noFormControl", ""]], hostBindings: function CheckboxMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
15
+ i0.ɵɵlistener("change", function CheckboxMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
16
+ } } });
17
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxMagicDirective, [{
18
+ type: Directive,
19
+ args: [{
20
+ selector: `
21
+ input[type=checkbox][magic]:not([noFormControl])
22
+ `,
23
+ }]
24
+ }], function () { return [{ type: i1.MagicDirective }]; }, { onChange: [{
25
+ type: HostListener,
26
+ args: ['change', ['$event']]
27
+ }] }); })();
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3gubWFnaWMuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5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GlyZWN0aXZlKHtcclxuICBzZWxlY3RvcjpcclxuICAgIGBcclxuICAgIGlucHV0W3R5cGU9Y2hlY2tib3hdW21hZ2ljXTpub3QoW25vRm9ybUNvbnRyb2xdKVxyXG5gLFxyXG4gfSlcclxuZXhwb3J0IGNsYXNzIENoZWNrYm94TWFnaWNEaXJlY3RpdmUge1xyXG5cclxuICAvKipcclxuICAgKiBAaWdub3JlXHJcbiAgICovXHJcbiAgY29uc3RydWN0b3IoICAgIHByb3RlY3RlZCBtYWdpY0RpcmVjdGl2ZTogTWFnaWNEaXJlY3RpdmUpIHtcclxuXHJcbiAgfVxyXG5cclxuICAvKipcclxuICAgKiBIYW5kbGVzIHRoZSBDaGVja2JveCAnY2hhbmdlJyBldmVudCAtIHBhc3MgaXQgdG8gdGhlIE1hZ2ljIGVuZ2luZVxyXG4gICAqL1xyXG4gIEBIb3N0TGlzdGVuZXIoJ2NoYW5nZScsIFsnJGV2ZW50J10pXHJcbiAgb25DaGFuZ2UoJGV2ZW50KSB7XHJcbiAgICB0aGlzLm1hZ2ljRGlyZWN0aXZlLnRhc2sub25DaGVja0NoYW5nZWQoJGV2ZW50LCB0aGlzLm1hZ2ljRGlyZWN0aXZlLmlkLCArdGhpcy5tYWdpY0RpcmVjdGl2ZS5yb3dJZCk7XHJcbiAgfVxyXG59XHJcblxyXG5cclxuIl19
@@ -0,0 +1,36 @@
1
+ import { Directive, HostListener } from '@angular/core';
2
+ import { MagicDirective } from '../magic.directive';
3
+ import { HtmlProperties } from "@magic-xpa/gui";
4
+ import { filter } from "rxjs/operators";
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "../magic.directive";
7
+ export class ComboboxMagicDirective {
8
+ constructor(magicDirective) {
9
+ this.magicDirective = magicDirective;
10
+ this.magicDirective.task.refreshDom.pipe(filter(c => this.magicDirective.IsSameElement(c))).subscribe(value => {
11
+ let command = value;
12
+ if (command.Operation === HtmlProperties.ItemsList)
13
+ this.onComboboxItemsListChanged();
14
+ });
15
+ }
16
+ onChange($event) {
17
+ this.magicDirective.task.onComboboxSelectionChanged($event, this.magicDirective.id, +this.magicDirective.rowId);
18
+ }
19
+ onComboboxItemsListChanged() {
20
+ this.magicDirective.task.refreshView();
21
+ }
22
+ }
23
+ ComboboxMagicDirective.ɵfac = function ComboboxMagicDirective_Factory(t) { return new (t || ComboboxMagicDirective)(i0.ɵɵdirectiveInject(i1.MagicDirective)); };
24
+ ComboboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: ComboboxMagicDirective, selectors: [["select", "magic", "", 3, "multiple", ""]], hostBindings: function ComboboxMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
25
+ i0.ɵɵlistener("change", function ComboboxMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
26
+ } } });
27
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ComboboxMagicDirective, [{
28
+ type: Directive,
29
+ args: [{
30
+ selector: `select[magic]:not([multiple])`,
31
+ }]
32
+ }], function () { return [{ type: i1.MagicDirective }]; }, { onChange: [{
33
+ type: HostListener,
34
+ args: ['change', ['$event']]
35
+ }] }); })();
36
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tYm9ib3gubWFnaWMuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci9zcmMvdWkvZGlyZWN0aXZlcy9tYWdpYy9jb21ib2JveC5tYWdpYy5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDeEQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ3BELE9BQU8sRUFBYyxjQUFjLEVBQUUsTUF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ive, forwardRef } from '@angular/core';
2
+ import { CheckboxControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export const CHECKBOX_VALUE_ACCESSOR = {
5
+ provide: NG_VALUE_ACCESSOR,
6
+ useExisting: forwardRef(() => MagicCheckboxControlValueAccessor),
7
+ multi: true,
8
+ };
9
+ export class MagicCheckboxControlValueAccessor extends CheckboxControlValueAccessor {
10
+ }
11
+ MagicCheckboxControlValueAccessor.ɵfac = function () { let ɵMagicCheckboxControlValueAccessor_BaseFactory; return function MagicCheckboxControlValueAccessor_Factory(t) { return (ɵMagicCheckboxControlValueAccessor_BaseFactory || (ɵMagicCheckboxControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(MagicCheckboxControlValueAccessor)))(t || MagicCheckboxControlValueAccessor); }; }();
12
+ MagicCheckboxControlValueAccessor.ɵdir = i0.ɵɵdefineDirective({ type: MagicCheckboxControlValueAccessor, selectors: [["input", "type", "checkbox", "magic", "", 3, "formControlName", "", 3, "no-form-control", ""], ["input", "type", "checkbox", "magic", "", 3, "formControl", ""], ["input", "type", "checkbox", "magic", "", 3, "ngModel", ""]], hostBindings: function MagicCheckboxControlValueAccessor_HostBindings(rf, ctx) { if (rf & 1) {
13
+ i0.ɵɵlistener("change", function MagicCheckboxControlValueAccessor_change_HostBindingHandler($event) { return ctx.onChange($event.target.checked); })("blur", function MagicCheckboxControlValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
14
+ } }, features: [i0.ɵɵProvidersFeature([CHECKBOX_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature] });
15
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicCheckboxControlValueAccessor, [{
16
+ type: Directive,
17
+ args: [{
18
+ selector: `
19
+ input[type=checkbox][magic]:not([formControlName]):not([no-form-control]),
20
+ input[type=checkbox][magic]:not([formControl]),
21
+ input[type=checkbox][magic]:not([ngModel])
22
+ `,
23
+ host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },
24
+ providers: [CHECKBOX_VALUE_ACCESSOR]
25
+ }]
26
+ }], null, null); })();
27
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3guY3ZhLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXIvc3JjL3VpL2RpcmVjdGl2ZXMvbWFnaWMvZm9ybS1jb250cm9scy9jb250cm9sLXZhbHVlLWFjY2Vzc29ycy9jaGVja2JveC5jdmEuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3RELE9BQU8sRUFBRSw0QkFBNEIsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDOztBQUtqRixNQUFNLENBQUMsTUFBTSx1QkFBdUIsR0FBUTtJQUMxQyxPQUFPLEVBQUUsaUJBQWlCO0lBQzFCLFdBQVcsRUFBRSxVQUFVLENBQUMsR0FBRyxFQUFFLENBQUMsaUNBQWlDLENBQUM7SUFDaEUsS0FBSyxFQUFFLElBQUk7Q0FDWixDQUFDO0FBZUYsTUFBTSxPQUFRLGlDQUFrQyxTQUFRLDRCQUE0Qjs7K1NBQXRFLGlDQUFpQyxTQUFqQyxpQ0FBaUM7c0VBQWpDLGlDQUFpQztzSEFBakMsbUNBQStCLDJGQUEvQixlQUFXOzBDQUZaLENBQUMsdUJBQXVCLENBQUM7dUZBRXhCLGlDQUFpQztjQVY5QyxTQUFTO2VBQUM7Z0JBQ1QsUUFBUSxFQUNOOzs7O0tBSUM7Z0JBQ0gsSUFBSSxFQUFFLEVBQUMsVUFBVSxFQU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XJnZXQuY2hlY2tlZCknLCAnKGJsdXIpJzogJ29uVG91Y2hlZCgpJ30sXHJcbiAgcHJvdmlkZXJzOiBbQ0hFQ0tCT1hfVkFMVUVfQUNDRVNTT1JdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyAgTWFnaWNDaGVja2JveENvbnRyb2xWYWx1ZUFjY2Vzc29yIGV4dGVuZHMgQ2hlY2tib3hDb250cm9sVmFsdWVBY2Nlc3NvciB7XHJcblxyXG59XHJcbiJdfQ==
@@ -0,0 +1,52 @@
1
+ import { Directive, ElementRef, forwardRef, HostListener, Renderer2 } from "@angular/core";
2
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
3
+ import * as i0 from "@angular/core";
4
+ export const DATE_VALUE_ACCESSOR = {
5
+ provide: NG_VALUE_ACCESSOR,
6
+ useExisting: forwardRef(() => DateValueAccessor),
7
+ multi: true
8
+ };
9
+ export class DateValueAccessor {
10
+ constructor(renderer, elementRef) {
11
+ this.renderer = renderer;
12
+ this.elementRef = elementRef;
13
+ this.onChange = (_) => { };
14
+ this.onTouched = () => { };
15
+ }
16
+ writeValue(value) {
17
+ if (!value) {
18
+ this.renderer.setProperty(this.elementRef.nativeElement, "value", null);
19
+ return;
20
+ }
21
+ this.renderer.setProperty(this.elementRef.nativeElement, "valueAsDate", new Date(Date.UTC(value.getFullYear(), value.getMonth(), value.getDate())));
22
+ }
23
+ registerOnChange(fn) {
24
+ this.onChange = v => fn(v instanceof Date
25
+ ? new Date(v.getUTCFullYear(), v.getUTCMonth(), v.getUTCDate())
26
+ : v);
27
+ }
28
+ registerOnTouched(fn) {
29
+ this.onTouched = fn;
30
+ }
31
+ setDisabledState(isDisabled) {
32
+ this.renderer.setProperty(this.elementRef.nativeElement, "disabled", isDisabled);
33
+ }
34
+ }
35
+ DateValueAccessor.ɵfac = function DateValueAccessor_Factory(t) { return new (t || DateValueAccessor)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
36
+ DateValueAccessor.ɵdir = i0.ɵɵdefineDirective({ type: DateValueAccessor, selectors: [["", "dateInput", ""]], hostBindings: function DateValueAccessor_HostBindings(rf, ctx) { if (rf & 1) {
37
+ i0.ɵɵlistener("input", function DateValueAccessor_input_HostBindingHandler($event) { return ctx.onChange($event.target.valueAsDate); })("blur", function DateValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
38
+ } }, features: [i0.ɵɵProvidersFeature([DATE_VALUE_ACCESSOR])] });
39
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateValueAccessor, [{
40
+ type: Directive,
41
+ args: [{
42
+ selector: "[dateInput]",
43
+ providers: [DATE_VALUE_ACCESSOR]
44
+ }]
45
+ }], function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { onChange: [{
46
+ type: HostListener,
47
+ args: ["input", ["$event.target.valueAsDate"]]
48
+ }], onTouched: [{
49
+ type: HostListener,
50
+ args: ["blur", []]
51
+ }] }); })();
52
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS5jdmEuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci9zcmMvdWkvZGlyZWN0aXZlcy9tYWdpYy9mb3JtLWNvbnRyb2xzL2NvbnRyb2wtdmFsdWUtYWNjZXNzb3JzL2RhdGUuY3ZhLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULFVBQVUsRUFDVixVQUFVLEVBQ1YsWUFBWSxFQUNaLFNBQVMsRUFDVixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQXdCLGlCQUFpQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7O0FBRXpFLE1BQU0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gpLCB2LmdldFVUQ0RhdGUoKSlcclxuICAgICAgICAgIDogdlxyXG4gICAgICApO1xyXG4gIH1cclxuXHJcbiAgLyoqIFJlZ2lzdGVycyBhIGNhbGxiYWNrIGZ1bmN0aW9uLCBjYWxsZWQgd2hlbiB0aGUgY29udHJvbCBpcyBibHVycmVkICovXHJcbiAgcmVnaXN0ZXJPblRvdWNoZWQoZm46ICgpID0+IHZvaWQpOiB2b2lkIHtcclxuICAgIHRoaXMub25Ub3VjaGVkID0gZm47XHJcbiAgfVxyXG5cclxuICAvKiogRW5hYmxlcyBvciBkaXNhYmxlcyB0aGUgZWxlbWVudCB3aGVuIHRoZSBjb250cm9sIHN0YXR1cyBjaGFuZ2VzICovXHJcbiAgc2V0RGlzYWJsZWRTdGF0ZShpc0Rpc2FibGVkOiBib29sZWFuKTogdm9pZCB7XHJcbiAgICB0aGlzLnJlbmRlcmVyLnNldFByb3BlcnR5KFxyXG4gICAgICB0aGlzLmVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCxcclxuICAgICAgXCJkaXNhYmxlZFwiLFxyXG4gICAgICBpc0Rpc2FibGVkXHJcbiAgICApO1xyXG4gIH1cclxufVxyXG4iXX0=
@@ -0,0 +1,32 @@
1
+ import { Directive, forwardRef } from '@angular/core';
2
+ import { DefaultValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export const MAGIC_DEFAULT_VALUE_ACCESSOR = {
5
+ provide: NG_VALUE_ACCESSOR,
6
+ useExisting: forwardRef(() => MagicDefaultValueAccessor),
7
+ multi: true
8
+ };
9
+ export class MagicDefaultValueAccessor extends DefaultValueAccessor {
10
+ }
11
+ MagicDefaultValueAccessor.ɵfac = function () { let ɵMagicDefaultValueAccessor_BaseFactory; return function MagicDefaultValueAccessor_Factory(t) { return (ɵMagicDefaultValueAccessor_BaseFactory || (ɵMagicDefaultValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(MagicDefaultValueAccessor)))(t || MagicDefaultValueAccessor); }; }();
12
+ MagicDefaultValueAccessor.ɵdir = i0.ɵɵdefineDirective({ type: MagicDefaultValueAccessor, selectors: [["input", "magic", "", 3, "type", "checkbox", 3, "formControlName", "", 3, "no-form-control", ""], ["textarea", "magic", "", 3, "formControlName", "", 3, "noFormControl", "", 3, "no-form-control", ""]], hostBindings: function MagicDefaultValueAccessor_HostBindings(rf, ctx) { if (rf & 1) {
13
+ i0.ɵɵlistener("input", function MagicDefaultValueAccessor_input_HostBindingHandler($event) { return ctx._handleInput($event.target.value); })("blur", function MagicDefaultValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); })("compositionstart", function MagicDefaultValueAccessor_compositionstart_HostBindingHandler() { return ctx._compositionStart(); })("compositionend", function MagicDefaultValueAccessor_compositionend_HostBindingHandler($event) { return ctx._compositionEnd($event.target.value); });
14
+ } }, exportAs: ["magic"], features: [i0.ɵɵProvidersFeature([MAGIC_DEFAULT_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature] });
15
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicDefaultValueAccessor, [{
16
+ type: Directive,
17
+ args: [{
18
+ selector: `
19
+ input[magic]:not([type=checkbox]):not([formControlName]):not([no-form-control]),
20
+ textarea[magic]:not([formControlName]):not([noFormControl]):not([no-form-control])
21
+ `,
22
+ host: {
23
+ '(input)': '$any(this)._handleInput($event.target.value)',
24
+ '(blur)': 'onTouched()',
25
+ '(compositionstart)': '$any(this)._compositionStart()',
26
+ '(compositionend)': '$any(this)._compositionEnd($event.target.value)'
27
+ },
28
+ providers: [MAGIC_DEFAULT_VALUE_ACCESSOR],
29
+ exportAs: 'magic'
30
+ }]
31
+ }], null, null); })();
32
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC5jdmEuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi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