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

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 (123) hide show
  1. package/esm2020/index.mjs +59 -2
  2. package/esm2020/src/controls.metadata.model.mjs +180 -0
  3. package/esm2020/src/interfaces/sub-form-definition.iterface.mjs +2 -0
  4. package/esm2020/src/magic.core.module.mjs +160 -0
  5. package/esm2020/src/services/ISubformMagicService.mjs +2 -0
  6. package/esm2020/src/services/OverlayWindowService.mjs +236 -0
  7. package/esm2020/src/services/StylesMapManager.mjs +28 -0
  8. package/esm2020/src/services/accessor.magic.service.mjs +356 -0
  9. package/esm2020/src/services/commands-collector.magic.service.mjs +46 -0
  10. package/esm2020/src/services/component-list.magic.service.mjs +46 -0
  11. package/esm2020/src/services/confirmation.components.magic.provider.mjs +21 -0
  12. package/esm2020/src/services/engine.magic.service.mjs +82 -0
  13. package/esm2020/src/services/exit.magic.service.mjs +13 -0
  14. package/esm2020/src/services/magic-color.service.mjs +99 -0
  15. package/esm2020/src/services/magic.lazy.loader.service.mjs +16 -0
  16. package/esm2020/src/services/magic.providers.mjs +25 -0
  17. package/esm2020/src/services/magic.services.mjs +31 -0
  18. package/esm2020/src/services/mg-date-adapter.mjs +109 -0
  19. package/esm2020/src/services/overlay.conainer.magic.provider.mjs +14 -0
  20. package/esm2020/src/services/router-commands.magic.service.mjs +28 -0
  21. package/esm2020/src/services/subform.magic.service.mjs +184 -0
  22. package/esm2020/src/services/table.magic.service.mjs +77 -0
  23. package/esm2020/src/services/task.magics.service.mjs +624 -0
  24. package/esm2020/src/services/title.magic.service.mjs +18 -0
  25. package/esm2020/src/ui/GuiInteractiveExecutor.mjs +105 -0
  26. package/esm2020/src/ui/components/base-magic-alert.component.mjs +23 -0
  27. package/esm2020/src/ui/components/base-magic-confirm.component.mjs +23 -0
  28. package/esm2020/src/ui/components/magic-alert.component.mjs +35 -0
  29. package/esm2020/src/ui/components/magic-confirmation-box.component.mjs +41 -0
  30. package/esm2020/src/ui/directives/NonMagicControlDirective.mjs +49 -0
  31. package/esm2020/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.mjs +28 -0
  32. package/esm2020/src/ui/directives/magic/checkbox.magic.directive.mjs +28 -0
  33. package/esm2020/src/ui/directives/magic/combobox.magic.directive.mjs +36 -0
  34. package/esm2020/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.mjs +27 -0
  35. package/esm2020/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.mjs +52 -0
  36. package/esm2020/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.mjs +32 -0
  37. package/esm2020/src/ui/directives/magic/input.noformcontrol.magic.directive.mjs +27 -0
  38. package/esm2020/src/ui/directives/magic/nocontrol.magic.directive.mjs +193 -0
  39. package/esm2020/src/ui/directives/magic/row.magic.directive.mjs +58 -0
  40. package/esm2020/src/ui/directives/magic-focus.directive.mjs +19 -0
  41. package/esm2020/src/ui/directives/magic.directive.mjs +215 -0
  42. package/esm2020/src/ui/directives/magicViewContainerRef.directive.mjs +19 -0
  43. package/esm2020/src/ui/directives/mgformat.magic.directive.mjs +408 -0
  44. package/esm2020/src/ui/directives/range-validator.magic.directive.mjs +58 -0
  45. package/esm2020/src/ui/magic-confirmationBox.mjs +42 -0
  46. package/esm2020/src/ui/magic-modal/base-magic-overlay-container.mjs +22 -0
  47. package/esm2020/src/ui/magic-modal/magic-modal-form.mjs +8 -0
  48. package/esm2020/src/ui/magic-modal/magic-modal-interface.mjs +2 -0
  49. package/esm2020/src/ui/magic-modal/magic-overlay-container-wrapper.mjs +121 -0
  50. package/esm2020/src/ui/magic-modal/magic-overlay-container.mjs +159 -0
  51. package/esm2020/src/ui/magic-root.component.mjs +203 -0
  52. package/esm2020/src/ui/mgerror.magic.component.mjs +119 -0
  53. package/esm2020/src/ui/pipes/date.magic.pipe.mjs +105 -0
  54. package/esm2020/src/ui/pipes/time.magic.pipe.mjs +51 -0
  55. package/esm2020/src/ui/pipes/time24.magic.pipe.mjs +34 -0
  56. package/esm2020/src/ui/router-container.magic.component.mjs +108 -0
  57. package/esm2020/src/ui/subform.magic.component.mjs +52 -0
  58. package/esm2020/src/ui/task-base.magic.component.mjs +86 -0
  59. package/esm2020/src/ui/utils.mjs +54 -0
  60. package/fesm2015/magic-xpa-angular.mjs +4863 -0
  61. package/fesm2015/magic-xpa-angular.mjs.map +1 -1
  62. package/fesm2020/magic-xpa-angular.mjs +4681 -0
  63. package/fesm2020/magic-xpa-angular.mjs.map +1 -1
  64. package/index.d.ts +58 -1
  65. package/package.json +3 -3
  66. package/src/controls.metadata.model.d.ts +62 -0
  67. package/src/interfaces/sub-form-definition.iterface.d.ts +12 -0
  68. package/src/magic.core.module.d.ts +41 -0
  69. package/src/services/ISubformMagicService.d.ts +4 -0
  70. package/src/services/OverlayWindowService.d.ts +31 -0
  71. package/src/services/StylesMapManager.d.ts +5 -0
  72. package/src/services/accessor.magic.service.d.ts +69 -0
  73. package/src/services/commands-collector.magic.service.d.ts +15 -0
  74. package/src/services/component-list.magic.service.d.ts +23 -0
  75. package/src/services/confirmation.components.magic.provider.d.ts +8 -0
  76. package/src/services/engine.magic.service.d.ts +27 -0
  77. package/src/services/exit.magic.service.d.ts +6 -0
  78. package/src/services/magic-color.service.d.ts +19 -0
  79. package/src/services/magic.lazy.loader.service.d.ts +6 -0
  80. package/src/services/magic.providers.d.ts +107 -0
  81. package/src/services/magic.services.d.ts +16 -0
  82. package/src/services/mg-date-adapter.d.ts +40 -0
  83. package/src/services/overlay.conainer.magic.provider.d.ts +7 -0
  84. package/src/services/router-commands.magic.service.d.ts +17 -0
  85. package/src/services/subform.magic.service.d.ts +43 -0
  86. package/src/services/table.magic.service.d.ts +30 -0
  87. package/src/services/task.magics.service.d.ts +100 -0
  88. package/src/services/title.magic.service.d.ts +9 -0
  89. package/src/ui/GuiInteractiveExecutor.d.ts +22 -0
  90. package/src/ui/components/base-magic-alert.component.d.ts +10 -0
  91. package/src/ui/components/base-magic-confirm.component.d.ts +10 -0
  92. package/src/ui/components/magic-alert.component.d.ts +6 -0
  93. package/src/ui/components/magic-confirmation-box.component.d.ts +6 -0
  94. package/src/ui/directives/NonMagicControlDirective.d.ts +26 -0
  95. package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +9 -0
  96. package/src/ui/directives/magic/checkbox.magic.directive.d.ts +9 -0
  97. package/src/ui/directives/magic/combobox.magic.directive.d.ts +10 -0
  98. package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +7 -0
  99. package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +17 -0
  100. package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +7 -0
  101. package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +9 -0
  102. package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +18 -0
  103. package/src/ui/directives/magic/row.magic.directive.d.ts +17 -0
  104. package/src/ui/directives/magic-focus.directive.d.ts +9 -0
  105. package/src/ui/directives/magic.directive.d.ts +44 -0
  106. package/src/ui/directives/magicViewContainerRef.directive.d.ts +8 -0
  107. package/src/ui/directives/mgformat.magic.directive.d.ts +31 -0
  108. package/src/ui/directives/range-validator.magic.directive.d.ts +17 -0
  109. package/src/ui/magic-confirmationBox.d.ts +6 -0
  110. package/src/ui/magic-modal/base-magic-overlay-container.d.ts +5 -0
  111. package/src/ui/magic-modal/magic-modal-form.d.ts +5 -0
  112. package/src/ui/magic-modal/magic-modal-interface.d.ts +10 -0
  113. package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +31 -0
  114. package/src/ui/magic-modal/magic-overlay-container.d.ts +25 -0
  115. package/src/ui/magic-root.component.d.ts +40 -0
  116. package/src/ui/mgerror.magic.component.d.ts +20 -0
  117. package/src/ui/pipes/date.magic.pipe.d.ts +17 -0
  118. package/src/ui/pipes/time.magic.pipe.d.ts +11 -0
  119. package/src/ui/pipes/time24.magic.pipe.d.ts +10 -0
  120. package/src/ui/router-container.magic.component.d.ts +30 -0
  121. package/src/ui/subform.magic.component.d.ts +16 -0
  122. package/src/ui/task-base.magic.component.d.ts +34 -0
  123. package/src/ui/utils.d.ts +9 -0
@@ -0,0 +1,184 @@
1
+ import { Compiler, Injectable, Injector } from '@angular/core';
2
+ import { TaskMagicService } from './task.magics.service';
3
+ import { List, isNullOrUndefined } from '@magic-xpa/mscorelib';
4
+ import { ComponentListMagicService } from './component-list.magic.service';
5
+ import { ActivatedRoute, Router } from '@angular/router';
6
+ import { CommandsCollectorMagicService } from './commands-collector.magic.service';
7
+ import { RouterCommandsMagicService } from '../services/router-commands.magic.service';
8
+ import { MagicLazyLoaderService } from './magic.lazy.loader.service';
9
+ import * as i0 from "@angular/core";
10
+ import * as i1 from "./task.magics.service";
11
+ import * as i2 from "@angular/router";
12
+ import * as i3 from "./component-list.magic.service";
13
+ import * as i4 from "./commands-collector.magic.service";
14
+ import * as i5 from "../services/router-commands.magic.service";
15
+ import * as i6 from "./magic.lazy.loader.service";
16
+ export class SubformMagicService {
17
+ constructor(task, activatedRoute, componentList, pendingCommandsCollector, router, routerCommandsMagicService, componentListMagicService, loader, injector, compiler) {
18
+ this.task = task;
19
+ this.activatedRoute = activatedRoute;
20
+ this.componentList = componentList;
21
+ this.pendingCommandsCollector = pendingCommandsCollector;
22
+ this.router = router;
23
+ this.routerCommandsMagicService = routerCommandsMagicService;
24
+ this.componentListMagicService = componentListMagicService;
25
+ this.loader = loader;
26
+ this.injector = injector;
27
+ this.compiler = compiler;
28
+ this.subformsDict = {};
29
+ this.routesDict = {};
30
+ this.currentRouteDefinition = null;
31
+ }
32
+ mgGetComp(subformName) {
33
+ if (subformName in this.subformsDict) {
34
+ let formName = this.subformsDict[subformName].formName;
35
+ if (formName)
36
+ return this.componentList.getComponent(formName);
37
+ }
38
+ return null;
39
+ }
40
+ mgGetParameters(subformName) {
41
+ if (subformName in this.subformsDict) {
42
+ return this.subformsDict[subformName].parameters;
43
+ }
44
+ else
45
+ return '';
46
+ }
47
+ deleteSubformComp(subformControlName, formName) {
48
+ if (Object.keys(this.subformsDict).indexOf(subformControlName) >= 0) {
49
+ if (this.subformsDict[subformControlName].formName === formName) {
50
+ this.subformsDict[subformControlName] = {};
51
+ this.task.refreshView();
52
+ }
53
+ }
54
+ }
55
+ addSubformComp(subformControlName, formName, taskId, taskDescription, routerPath, params, inDefaultOutlet) {
56
+ this.pendingCommandsCollector.startCollecting();
57
+ let refreshNeeded = false;
58
+ if (isNullOrUndefined(routerPath)) {
59
+ if (Object.keys(this.subformsDict).indexOf(subformControlName) >= 0) {
60
+ if (this.subformsDict[subformControlName].formName === formName) {
61
+ this.subformsDict[subformControlName] = {};
62
+ this.task.refreshView();
63
+ }
64
+ }
65
+ let moduleRef = this.componentListMagicService.getModuleRef(formName);
66
+ if (moduleRef == null) {
67
+ let lazyLoadModule = this.componentListMagicService.getLazyLoadModuleData(formName);
68
+ if (lazyLoadModule != null) {
69
+ let moduleName = lazyLoadModule.moduleName.replace('Magic', '');
70
+ moduleName = moduleName.replace('Module', '');
71
+ this.loader.Load(moduleName).then(m => {
72
+ const compiled = this.compiler.compileModuleAndAllComponentsSync(m[lazyLoadModule.moduleName]);
73
+ moduleRef = compiled.ngModuleFactory.create(this.injector);
74
+ this.subformsDict[subformControlName] = {
75
+ formName,
76
+ parameters: { taskIdParam: taskId, taskDescription: taskDescription }
77
+ };
78
+ this.task.refreshView();
79
+ });
80
+ }
81
+ }
82
+ else {
83
+ this.subformsDict[subformControlName] = {
84
+ formName,
85
+ parameters: { taskIdParam: taskId, taskDescription: taskDescription }
86
+ };
87
+ refreshNeeded = true;
88
+ }
89
+ }
90
+ else {
91
+ if (inDefaultOutlet)
92
+ subformControlName = 'primary';
93
+ let routeParams = new List();
94
+ routeParams.push(routerPath);
95
+ if (params !== null) {
96
+ routeParams = routeParams.concat(params);
97
+ }
98
+ let routeCommand = {
99
+ callerMgSubformServiceRef: this,
100
+ routerOutletName: subformControlName,
101
+ formName: formName,
102
+ parameters: { taskIdParam: taskId, taskDescription: taskDescription },
103
+ routeParams: routeParams
104
+ };
105
+ if (SubformMagicService.currentCallerMgSubformServiceRef === null)
106
+ this.ExecuteRouteCommand(routeCommand);
107
+ else
108
+ this.routerCommandsMagicService.AddRouteCommand(routeCommand);
109
+ }
110
+ if (refreshNeeded)
111
+ this.task.refreshView();
112
+ }
113
+ ExecuteRouteCommand(routeCommand) {
114
+ let currentSubformMagicService = routeCommand.callerMgSubformServiceRef;
115
+ let relativeRoute = SubformMagicService.getRelativeRoute(currentSubformMagicService.activatedRoute);
116
+ if (currentSubformMagicService.routesDict[routeCommand.routerOutletName] === routeCommand.routeParams[0]) {
117
+ currentSubformMagicService.router.navigate([{ outlets: { [routeCommand.routerOutletName]: null } }], { relativeTo: relativeRoute })
118
+ .then((result) => {
119
+ SubformMagicService.currentCallerMgSubformServiceRef = currentSubformMagicService;
120
+ currentSubformMagicService.currentRouteDefinition = {
121
+ formName: routeCommand.formName,
122
+ parameters: routeCommand.parameters
123
+ };
124
+ currentSubformMagicService.PerformRouterNavigate(routeCommand.routerOutletName, routeCommand.routeParams);
125
+ });
126
+ }
127
+ else {
128
+ SubformMagicService.currentCallerMgSubformServiceRef = currentSubformMagicService;
129
+ currentSubformMagicService.currentRouteDefinition = {
130
+ formName: routeCommand.formName,
131
+ parameters: routeCommand.parameters
132
+ };
133
+ if (SubformMagicService.routerContainers.length > 0) {
134
+ let routeContainer = SubformMagicService.routerContainers[0];
135
+ SubformMagicService.routerContainers.shift();
136
+ routeContainer.initializeComponent();
137
+ }
138
+ else {
139
+ currentSubformMagicService.PerformRouterNavigate(routeCommand.routerOutletName, routeCommand.routeParams);
140
+ }
141
+ }
142
+ }
143
+ PerformRouterNavigate(routerOutletName, routeParams) {
144
+ let relativeRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
145
+ this.router.navigate([{ outlets: { [routerOutletName]: routeParams } }], { relativeTo: relativeRoute })
146
+ .then((result) => {
147
+ if (result !== null && !result) {
148
+ let subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
149
+ subformMagicService.currentRouteDefinition = null;
150
+ SubformMagicService.currentCallerMgSubformServiceRef = null;
151
+ subformMagicService.pendingCommandsCollector.stopCollecting();
152
+ subformMagicService.routerCommandsMagicService.ExecuteNextCommand();
153
+ }
154
+ });
155
+ }
156
+ init() {
157
+ const pendingCommands = this.pendingCommandsCollector.GetCommands(this.task.taskId);
158
+ if (pendingCommands.length > 0) {
159
+ pendingCommands.forEach(command => { this.task.executeCommand(command); });
160
+ this.task.refreshView();
161
+ }
162
+ this.pendingCommandsCollector.stopCollecting();
163
+ }
164
+ refreshView() {
165
+ this.task.refreshView();
166
+ }
167
+ static getRelativeRoute(sendActivatedRoute) {
168
+ let currentActiveRoute = sendActivatedRoute;
169
+ if (currentActiveRoute.snapshot.routeConfig !== null && currentActiveRoute.snapshot.routeConfig.path === '') {
170
+ currentActiveRoute = currentActiveRoute.parent;
171
+ if (!currentActiveRoute.snapshot.routeConfig.loadChildren)
172
+ console.log('getRelativeRoute(): both path and currentActiveRoute.snapshot.routeConfig.loadChildren are empty.');
173
+ }
174
+ return currentActiveRoute;
175
+ }
176
+ }
177
+ SubformMagicService.currentCallerMgSubformServiceRef = null;
178
+ SubformMagicService.routerContainers = new Array();
179
+ SubformMagicService.ɵfac = function SubformMagicService_Factory(t) { return new (t || SubformMagicService)(i0.ɵɵinject(i1.TaskMagicService), i0.ɵɵinject(i2.ActivatedRoute), i0.ɵɵinject(i3.ComponentListMagicService), i0.ɵɵinject(i4.CommandsCollectorMagicService), i0.ɵɵinject(i2.Router), i0.ɵɵinject(i5.RouterCommandsMagicService), i0.ɵɵinject(i3.ComponentListMagicService), i0.ɵɵinject(i6.MagicLazyLoaderService), i0.ɵɵinject(i0.Injector), i0.ɵɵinject(i0.Compiler)); };
180
+ SubformMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: SubformMagicService, factory: SubformMagicService.ɵfac });
181
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubformMagicService, [{
182
+ type: Injectable
183
+ }], function () { return [{ type: i1.TaskMagicService }, { type: i2.ActivatedRoute }, { type: i3.ComponentListMagicService }, { type: i4.CommandsCollectorMagicService }, { type: i2.Router }, { type: i5.RouterCommandsMagicService }, { type: i3.ComponentListMagicService }, { type: i6.MagicLazyLoaderService }, { type: i0.Injector }, { type: i0.Compiler }]; }, null); })();
184
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ViZm9ybS5tYWdpYy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci9zcmMvc2VydmljZXMvc3ViZm9ybS5tYWdpYy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQWEsVUFBVSxFQUFFLFFBQVEsRUFBZSxNQUFNLGVBQWUsQ0FBQztBQUN2RixPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsSUFBSSxFQUFFLGlCQUFpQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFFL0QsT0FBTyxFQUFDLHlCQUF5QixFQUFhLE1BQU0sZ0NBQWdDLENBQUM7QUFDckYsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsNkJBQTZCLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQztBQUVuRixPQUFPLEVBQWdCLDBCQUEwQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFHckcsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7Ozs7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JcbiAgc3RhdGljIGdldFJlbGF0aXZlUm91dGUoc2VuZEFjdGl2YXRlZFJvdXRlOiBBY3RpdmF0ZWRSb3V0ZSl7XHJcbiAgICBsZXQgY3VycmVudEFjdGl2ZVJvdXRlID0gc2VuZEFjdGl2YXRlZFJvdXRlO1xyXG4gICAgaWYgKGN1cnJlbnRBY3RpdmVSb3V0ZS5zbmFwc2hvdC5yb3V0ZUNvbmZpZyAhPT0gbnVsbCAmJiBjdXJyZW50QWN0aXZlUm91dGUuc25hcHNob3Qucm91dGVDb25maWcucGF0aCA9PT0gJycpIHtcclxuICAgICAgY3VycmVudEFjdGl2ZVJvdXRlID0gY3VycmVudEFjdGl2ZVJvdXRlLnBhcmVudDtcclxuICAgICAgaWYgKCFjdXJyZW50QWN0aXZlUm91dGUuc25hcHNob3Qucm91dGVDb25maWcubG9hZENoaWxkcmVuKVxyXG4gICAgICAgIGNvbnNvbGUubG9nKCdnZXRSZWxhdGl2ZVJvdXRlKCk6IGJvdGggcGF0aCBhbmQgY3VycmVudEFjdGl2ZVJvdXRlLnNuYXBzaG90LnJvdXRlQ29uZmlnLmxvYWRDaGlsZHJlbiBhcmUgZW1wdHkuJyk7XHJcbiAgICB9XHJcbiAgICByZXR1cm4gY3VycmVudEFjdGl2ZVJvdXRlO1xyXG4gIH1cclxufVxyXG4iXX0=
@@ -0,0 +1,77 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { TaskMagicService } from "./task.magics.service";
3
+ import { ComponentListMagicService } from "./component-list.magic.service";
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "./component-list.magic.service";
6
+ import * as i2 from "./task.magics.service";
7
+ export class TableMagicService {
8
+ constructor(componentList, task) {
9
+ this.componentList = componentList;
10
+ this.task = task;
11
+ this.shouldOpenFieldTextEditor = true;
12
+ }
13
+ refreshDataSource() {
14
+ }
15
+ getPageSize() {
16
+ return this.chunkSize;
17
+ }
18
+ setChunkSize(size) {
19
+ this.chunkSize = size;
20
+ }
21
+ getMaxRowsInTable() {
22
+ return this.task.Records.list.length;
23
+ }
24
+ selectRow(rowId) {
25
+ this.selectedItem = rowId;
26
+ }
27
+ getSelectedRow() {
28
+ return this.selectedItem;
29
+ }
30
+ selectedRow() {
31
+ return null;
32
+ }
33
+ selectPage(pageId) {
34
+ }
35
+ OpenDialogForControl(element) {
36
+ if (element.tagName === "MAT-SELECT" || element.tagName === "MAT-CHECKBOX" ||
37
+ element.tagName === "INPUT" ||
38
+ element.tagName === "SELECT")
39
+ return false;
40
+ return true;
41
+ }
42
+ getDialog() {
43
+ return null;
44
+ }
45
+ onScrollDown() {
46
+ this.task.onScrollDown();
47
+ }
48
+ sortData(e) { }
49
+ mgOnPaginateChange(e, changeSelectedRow) { }
50
+ mgOptionChanged(e) { }
51
+ updateTableSize(size) {
52
+ if (size === 0) {
53
+ size = 1;
54
+ this.task.Records.clearFirstTableRecord(this.task.template);
55
+ }
56
+ this.task.formGroups.length = size;
57
+ this.task.Records.updateSize(size);
58
+ this.task.setIncludesFirst(false);
59
+ }
60
+ setTableTopIndex(value) {
61
+ if (!this.task.Records.includesFirst)
62
+ value++;
63
+ this.task.Records.setGuiTopIndex(value);
64
+ }
65
+ getTableTopIndex() {
66
+ let topIndex = this.task.Records.getGuiTopIndex();
67
+ if (!this.task.Records.includesFirst)
68
+ topIndex--;
69
+ return topIndex;
70
+ }
71
+ }
72
+ TableMagicService.ɵfac = function TableMagicService_Factory(t) { return new (t || TableMagicService)(i0.ɵɵinject(i1.ComponentListMagicService), i0.ɵɵinject(i2.TaskMagicService)); };
73
+ TableMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: TableMagicService, factory: TableMagicService.ɵfac });
74
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableMagicService, [{
75
+ type: Injectable
76
+ }], function () { return [{ type: i1.ComponentListMagicService }, { type: i2.TaskMagicService }]; }, null); })();
77
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaW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