@magic-xpa/angular 4.1100.0-dev4110.106 → 4.1100.0-dev4110.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/esm2020/index.mjs +59 -2
- package/esm2020/src/controls.metadata.model.mjs +180 -0
- package/esm2020/src/interfaces/sub-form-definition.iterface.mjs +2 -0
- package/esm2020/src/magic.core.module.mjs +160 -0
- package/esm2020/src/services/ISubformMagicService.mjs +2 -0
- package/esm2020/src/services/OverlayWindowService.mjs +236 -0
- package/esm2020/src/services/StylesMapManager.mjs +28 -0
- package/esm2020/src/services/accessor.magic.service.mjs +356 -0
- package/esm2020/src/services/commands-collector.magic.service.mjs +46 -0
- package/esm2020/src/services/component-list.magic.service.mjs +46 -0
- package/esm2020/src/services/confirmation.components.magic.provider.mjs +21 -0
- package/esm2020/src/services/engine.magic.service.mjs +82 -0
- package/esm2020/src/services/exit.magic.service.mjs +13 -0
- package/esm2020/src/services/magic-color.service.mjs +99 -0
- package/esm2020/src/services/magic.lazy.loader.service.mjs +16 -0
- package/esm2020/src/services/magic.providers.mjs +25 -0
- package/esm2020/src/services/magic.services.mjs +31 -0
- package/esm2020/src/services/mg-date-adapter.mjs +109 -0
- package/esm2020/src/services/overlay.conainer.magic.provider.mjs +14 -0
- package/esm2020/src/services/router-commands.magic.service.mjs +28 -0
- package/esm2020/src/services/subform.magic.service.mjs +184 -0
- package/esm2020/src/services/table.magic.service.mjs +77 -0
- package/esm2020/src/services/task.magics.service.mjs +624 -0
- package/esm2020/src/services/title.magic.service.mjs +18 -0
- package/esm2020/src/ui/GuiInteractiveExecutor.mjs +105 -0
- package/esm2020/src/ui/components/base-magic-alert.component.mjs +23 -0
- package/esm2020/src/ui/components/base-magic-confirm.component.mjs +23 -0
- package/esm2020/src/ui/components/magic-alert.component.mjs +35 -0
- package/esm2020/src/ui/components/magic-confirmation-box.component.mjs +41 -0
- package/esm2020/src/ui/directives/NonMagicControlDirective.mjs +49 -0
- package/esm2020/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.mjs +28 -0
- package/esm2020/src/ui/directives/magic/checkbox.magic.directive.mjs +28 -0
- package/esm2020/src/ui/directives/magic/combobox.magic.directive.mjs +36 -0
- package/esm2020/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.mjs +27 -0
- package/esm2020/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.mjs +52 -0
- package/esm2020/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.mjs +32 -0
- package/esm2020/src/ui/directives/magic/input.noformcontrol.magic.directive.mjs +27 -0
- package/esm2020/src/ui/directives/magic/nocontrol.magic.directive.mjs +193 -0
- package/esm2020/src/ui/directives/magic/row.magic.directive.mjs +58 -0
- package/esm2020/src/ui/directives/magic-focus.directive.mjs +19 -0
- package/esm2020/src/ui/directives/magic.directive.mjs +215 -0
- package/esm2020/src/ui/directives/magicViewContainerRef.directive.mjs +19 -0
- package/esm2020/src/ui/directives/mgformat.magic.directive.mjs +408 -0
- package/esm2020/src/ui/directives/range-validator.magic.directive.mjs +58 -0
- package/esm2020/src/ui/magic-confirmationBox.mjs +42 -0
- package/esm2020/src/ui/magic-modal/base-magic-overlay-container.mjs +22 -0
- package/esm2020/src/ui/magic-modal/magic-modal-form.mjs +8 -0
- package/esm2020/src/ui/magic-modal/magic-modal-interface.mjs +2 -0
- package/esm2020/src/ui/magic-modal/magic-overlay-container-wrapper.mjs +121 -0
- package/esm2020/src/ui/magic-modal/magic-overlay-container.mjs +159 -0
- package/esm2020/src/ui/magic-root.component.mjs +203 -0
- package/esm2020/src/ui/mgerror.magic.component.mjs +119 -0
- package/esm2020/src/ui/pipes/date.magic.pipe.mjs +105 -0
- package/esm2020/src/ui/pipes/time.magic.pipe.mjs +51 -0
- package/esm2020/src/ui/pipes/time24.magic.pipe.mjs +34 -0
- package/esm2020/src/ui/router-container.magic.component.mjs +108 -0
- package/esm2020/src/ui/subform.magic.component.mjs +52 -0
- package/esm2020/src/ui/task-base.magic.component.mjs +86 -0
- package/esm2020/src/ui/utils.mjs +54 -0
- package/fesm2015/magic-xpa-angular.mjs +4863 -0
- package/fesm2015/magic-xpa-angular.mjs.map +1 -1
- package/fesm2020/magic-xpa-angular.mjs +4681 -0
- package/fesm2020/magic-xpa-angular.mjs.map +1 -1
- package/index.d.ts +58 -1
- package/package.json +3 -3
- package/src/controls.metadata.model.d.ts +62 -0
- package/src/interfaces/sub-form-definition.iterface.d.ts +12 -0
- package/src/magic.core.module.d.ts +41 -0
- package/src/services/ISubformMagicService.d.ts +4 -0
- package/src/services/OverlayWindowService.d.ts +31 -0
- package/src/services/StylesMapManager.d.ts +5 -0
- package/src/services/accessor.magic.service.d.ts +69 -0
- package/src/services/commands-collector.magic.service.d.ts +15 -0
- package/src/services/component-list.magic.service.d.ts +23 -0
- package/src/services/confirmation.components.magic.provider.d.ts +8 -0
- package/src/services/engine.magic.service.d.ts +27 -0
- package/src/services/exit.magic.service.d.ts +6 -0
- package/src/services/magic-color.service.d.ts +19 -0
- package/src/services/magic.lazy.loader.service.d.ts +6 -0
- package/src/services/magic.providers.d.ts +107 -0
- package/src/services/magic.services.d.ts +16 -0
- package/src/services/mg-date-adapter.d.ts +40 -0
- package/src/services/overlay.conainer.magic.provider.d.ts +7 -0
- package/src/services/router-commands.magic.service.d.ts +17 -0
- package/src/services/subform.magic.service.d.ts +43 -0
- package/src/services/table.magic.service.d.ts +30 -0
- package/src/services/task.magics.service.d.ts +100 -0
- package/src/services/title.magic.service.d.ts +9 -0
- package/src/ui/GuiInteractiveExecutor.d.ts +22 -0
- package/src/ui/components/base-magic-alert.component.d.ts +10 -0
- package/src/ui/components/base-magic-confirm.component.d.ts +10 -0
- package/src/ui/components/magic-alert.component.d.ts +6 -0
- package/src/ui/components/magic-confirmation-box.component.d.ts +6 -0
- package/src/ui/directives/NonMagicControlDirective.d.ts +26 -0
- package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +9 -0
- package/src/ui/directives/magic/checkbox.magic.directive.d.ts +9 -0
- package/src/ui/directives/magic/combobox.magic.directive.d.ts +10 -0
- package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +7 -0
- package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +17 -0
- package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +7 -0
- package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +9 -0
- package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +18 -0
- package/src/ui/directives/magic/row.magic.directive.d.ts +17 -0
- package/src/ui/directives/magic-focus.directive.d.ts +9 -0
- package/src/ui/directives/magic.directive.d.ts +44 -0
- package/src/ui/directives/magicViewContainerRef.directive.d.ts +8 -0
- package/src/ui/directives/mgformat.magic.directive.d.ts +31 -0
- package/src/ui/directives/range-validator.magic.directive.d.ts +17 -0
- package/src/ui/magic-confirmationBox.d.ts +6 -0
- package/src/ui/magic-modal/base-magic-overlay-container.d.ts +5 -0
- package/src/ui/magic-modal/magic-modal-form.d.ts +5 -0
- package/src/ui/magic-modal/magic-modal-interface.d.ts +10 -0
- package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +31 -0
- package/src/ui/magic-modal/magic-overlay-container.d.ts +25 -0
- package/src/ui/magic-root.component.d.ts +40 -0
- package/src/ui/mgerror.magic.component.d.ts +20 -0
- package/src/ui/pipes/date.magic.pipe.d.ts +17 -0
- package/src/ui/pipes/time.magic.pipe.d.ts +11 -0
- package/src/ui/pipes/time24.magic.pipe.d.ts +10 -0
- package/src/ui/router-container.magic.component.d.ts +30 -0
- package/src/ui/subform.magic.component.d.ts +16 -0
- package/src/ui/task-base.magic.component.d.ts +34 -0
- 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ViZm9ybS5tYWdpYy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci9zcmMvc2VydmljZXMvc3ViZm9ybS5tYWdpYy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEV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RlID0gc2VuZEFjdGl2YXRlZFJvdXRlO1xuICAgIGlmIChjdXJyZW50QWN0aXZlUm91dGUuc25hcHNob3Qucm91dGVDb25maWcgIT09IG51bGwgJiYgY3VycmVudEFjdGl2ZVJvdXRlLnNuYXBzaG90LnJvdXRlQ29uZmlnLnBhdGggPT09ICcnKSB7XG4gICAgICBjdXJyZW50QWN0aXZlUm91dGUgPSBjdXJyZW50QWN0aXZlUm91dGUucGFyZW50O1xuICAgICAgaWYgKCFjdXJyZW50QWN0aXZlUm91dGUuc25hcHNob3Qucm91dGVDb25maWcubG9hZENoaWxkcmVuKVxuICAgICAgICBjb25zb2xlLmxvZygnZ2V0UmVsYXRpdmVSb3V0ZSgpOiBib3RoIHBhdGggYW5kIGN1cnJlbnRBY3RpdmVSb3V0ZS5zbmFwc2hvdC5yb3V0ZUNvbmZpZy5sb2FkQ2hpbGRyZW4gYXJlIGVtcHR5LicpO1xuICAgIH1cbiAgICByZXR1cm4gY3VycmVudEFjdGl2ZVJvdXRlO1xuICB9XG59XG4iXX0=
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUubWFnaWMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXIvc3JjL3NlcnZpY2VzL3RhYmxlLm1hZ2ljLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUN6RCxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQzs7OztBQU0zRSxNQUFNLE9BQU8saUJBQWlCO0lBVTVCLFlBQXdCLGFBQXdDLEVBQVksSUFBc0I7UUFBMUUsa0JBQWEsR0FBYixhQUFhLENBQTJCO1FBQVksU0FBSSxHQUFKLElBQUksQ0FBa0I7UUFHMUYsOEJBQXlCLEdBQVksSUFBSSxDQUFDO0lBRmpELENBQUM7SUFPRixpQkFBaUI7SUFDakIsQ0FBQztJQU1ELFdBQVc7UUFDVCxPQUFPLElBQUksQ0FBQyxTQUFTLENBQUM7SUFDeEIsQ0FBQztJQUVELFlBQVksQ0FBQyxJQUFZO1FBQ3ZCLElBQUksQ0FBQyxTQUFTLEdBQUcsSUFBSSxDQUFDO0lBQ3hCLENBQUM7SUFLRCxpQkFBaUI7UUFDZixPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUM7SUFDdkMsQ0FBQztJQU1ELFNBQVMs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