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

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 +2 -59
  2. package/fesm2015/magic-xpa-angular.mjs +0 -4863
  3. package/fesm2015/magic-xpa-angular.mjs.map +1 -1
  4. package/fesm2020/magic-xpa-angular.mjs +0 -4681
  5. package/fesm2020/magic-xpa-angular.mjs.map +1 -1
  6. package/index.d.ts +1 -58
  7. package/package.json +3 -3
  8. package/esm2020/src/controls.metadata.model.mjs +0 -180
  9. package/esm2020/src/interfaces/sub-form-definition.iterface.mjs +0 -2
  10. package/esm2020/src/magic.core.module.mjs +0 -160
  11. package/esm2020/src/services/ISubformMagicService.mjs +0 -2
  12. package/esm2020/src/services/OverlayWindowService.mjs +0 -236
  13. package/esm2020/src/services/StylesMapManager.mjs +0 -28
  14. package/esm2020/src/services/accessor.magic.service.mjs +0 -356
  15. package/esm2020/src/services/commands-collector.magic.service.mjs +0 -46
  16. package/esm2020/src/services/component-list.magic.service.mjs +0 -46
  17. package/esm2020/src/services/confirmation.components.magic.provider.mjs +0 -21
  18. package/esm2020/src/services/engine.magic.service.mjs +0 -82
  19. package/esm2020/src/services/exit.magic.service.mjs +0 -13
  20. package/esm2020/src/services/magic-color.service.mjs +0 -99
  21. package/esm2020/src/services/magic.lazy.loader.service.mjs +0 -16
  22. package/esm2020/src/services/magic.providers.mjs +0 -25
  23. package/esm2020/src/services/magic.services.mjs +0 -31
  24. package/esm2020/src/services/mg-date-adapter.mjs +0 -109
  25. package/esm2020/src/services/overlay.conainer.magic.provider.mjs +0 -14
  26. package/esm2020/src/services/router-commands.magic.service.mjs +0 -28
  27. package/esm2020/src/services/subform.magic.service.mjs +0 -184
  28. package/esm2020/src/services/table.magic.service.mjs +0 -77
  29. package/esm2020/src/services/task.magics.service.mjs +0 -624
  30. package/esm2020/src/services/title.magic.service.mjs +0 -18
  31. package/esm2020/src/ui/GuiInteractiveExecutor.mjs +0 -105
  32. package/esm2020/src/ui/components/base-magic-alert.component.mjs +0 -23
  33. package/esm2020/src/ui/components/base-magic-confirm.component.mjs +0 -23
  34. package/esm2020/src/ui/components/magic-alert.component.mjs +0 -35
  35. package/esm2020/src/ui/components/magic-confirmation-box.component.mjs +0 -41
  36. package/esm2020/src/ui/directives/NonMagicControlDirective.mjs +0 -49
  37. package/esm2020/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.mjs +0 -28
  38. package/esm2020/src/ui/directives/magic/checkbox.magic.directive.mjs +0 -28
  39. package/esm2020/src/ui/directives/magic/combobox.magic.directive.mjs +0 -36
  40. package/esm2020/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.mjs +0 -27
  41. package/esm2020/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.mjs +0 -52
  42. package/esm2020/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.mjs +0 -32
  43. package/esm2020/src/ui/directives/magic/input.noformcontrol.magic.directive.mjs +0 -27
  44. package/esm2020/src/ui/directives/magic/nocontrol.magic.directive.mjs +0 -193
  45. package/esm2020/src/ui/directives/magic/row.magic.directive.mjs +0 -58
  46. package/esm2020/src/ui/directives/magic-focus.directive.mjs +0 -19
  47. package/esm2020/src/ui/directives/magic.directive.mjs +0 -215
  48. package/esm2020/src/ui/directives/magicViewContainerRef.directive.mjs +0 -19
  49. package/esm2020/src/ui/directives/mgformat.magic.directive.mjs +0 -408
  50. package/esm2020/src/ui/directives/range-validator.magic.directive.mjs +0 -58
  51. package/esm2020/src/ui/magic-confirmationBox.mjs +0 -42
  52. package/esm2020/src/ui/magic-modal/base-magic-overlay-container.mjs +0 -22
  53. package/esm2020/src/ui/magic-modal/magic-modal-form.mjs +0 -8
  54. package/esm2020/src/ui/magic-modal/magic-modal-interface.mjs +0 -2
  55. package/esm2020/src/ui/magic-modal/magic-overlay-container-wrapper.mjs +0 -121
  56. package/esm2020/src/ui/magic-modal/magic-overlay-container.mjs +0 -159
  57. package/esm2020/src/ui/magic-root.component.mjs +0 -203
  58. package/esm2020/src/ui/mgerror.magic.component.mjs +0 -119
  59. package/esm2020/src/ui/pipes/date.magic.pipe.mjs +0 -105
  60. package/esm2020/src/ui/pipes/time.magic.pipe.mjs +0 -51
  61. package/esm2020/src/ui/pipes/time24.magic.pipe.mjs +0 -34
  62. package/esm2020/src/ui/router-container.magic.component.mjs +0 -108
  63. package/esm2020/src/ui/subform.magic.component.mjs +0 -52
  64. package/esm2020/src/ui/task-base.magic.component.mjs +0 -86
  65. package/esm2020/src/ui/utils.mjs +0 -54
  66. package/src/controls.metadata.model.d.ts +0 -62
  67. package/src/interfaces/sub-form-definition.iterface.d.ts +0 -12
  68. package/src/magic.core.module.d.ts +0 -41
  69. package/src/services/ISubformMagicService.d.ts +0 -4
  70. package/src/services/OverlayWindowService.d.ts +0 -31
  71. package/src/services/StylesMapManager.d.ts +0 -5
  72. package/src/services/accessor.magic.service.d.ts +0 -69
  73. package/src/services/commands-collector.magic.service.d.ts +0 -15
  74. package/src/services/component-list.magic.service.d.ts +0 -23
  75. package/src/services/confirmation.components.magic.provider.d.ts +0 -8
  76. package/src/services/engine.magic.service.d.ts +0 -27
  77. package/src/services/exit.magic.service.d.ts +0 -6
  78. package/src/services/magic-color.service.d.ts +0 -19
  79. package/src/services/magic.lazy.loader.service.d.ts +0 -6
  80. package/src/services/magic.providers.d.ts +0 -107
  81. package/src/services/magic.services.d.ts +0 -16
  82. package/src/services/mg-date-adapter.d.ts +0 -40
  83. package/src/services/overlay.conainer.magic.provider.d.ts +0 -7
  84. package/src/services/router-commands.magic.service.d.ts +0 -17
  85. package/src/services/subform.magic.service.d.ts +0 -43
  86. package/src/services/table.magic.service.d.ts +0 -30
  87. package/src/services/task.magics.service.d.ts +0 -100
  88. package/src/services/title.magic.service.d.ts +0 -9
  89. package/src/ui/GuiInteractiveExecutor.d.ts +0 -22
  90. package/src/ui/components/base-magic-alert.component.d.ts +0 -10
  91. package/src/ui/components/base-magic-confirm.component.d.ts +0 -10
  92. package/src/ui/components/magic-alert.component.d.ts +0 -6
  93. package/src/ui/components/magic-confirmation-box.component.d.ts +0 -6
  94. package/src/ui/directives/NonMagicControlDirective.d.ts +0 -26
  95. package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +0 -9
  96. package/src/ui/directives/magic/checkbox.magic.directive.d.ts +0 -9
  97. package/src/ui/directives/magic/combobox.magic.directive.d.ts +0 -10
  98. package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +0 -7
  99. package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +0 -17
  100. package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +0 -7
  101. package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +0 -9
  102. package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +0 -18
  103. package/src/ui/directives/magic/row.magic.directive.d.ts +0 -17
  104. package/src/ui/directives/magic-focus.directive.d.ts +0 -9
  105. package/src/ui/directives/magic.directive.d.ts +0 -44
  106. package/src/ui/directives/magicViewContainerRef.directive.d.ts +0 -8
  107. package/src/ui/directives/mgformat.magic.directive.d.ts +0 -31
  108. package/src/ui/directives/range-validator.magic.directive.d.ts +0 -17
  109. package/src/ui/magic-confirmationBox.d.ts +0 -6
  110. package/src/ui/magic-modal/base-magic-overlay-container.d.ts +0 -5
  111. package/src/ui/magic-modal/magic-modal-form.d.ts +0 -5
  112. package/src/ui/magic-modal/magic-modal-interface.d.ts +0 -10
  113. package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +0 -31
  114. package/src/ui/magic-modal/magic-overlay-container.d.ts +0 -25
  115. package/src/ui/magic-root.component.d.ts +0 -40
  116. package/src/ui/mgerror.magic.component.d.ts +0 -20
  117. package/src/ui/pipes/date.magic.pipe.d.ts +0 -17
  118. package/src/ui/pipes/time.magic.pipe.d.ts +0 -11
  119. package/src/ui/pipes/time24.magic.pipe.d.ts +0 -10
  120. package/src/ui/router-container.magic.component.d.ts +0 -30
  121. package/src/ui/subform.magic.component.d.ts +0 -16
  122. package/src/ui/task-base.magic.component.d.ts +0 -34
  123. package/src/ui/utils.d.ts +0 -9
@@ -1,108 +0,0 @@
1
- import { Component, ComponentFactoryResolver, ViewContainerRef } from '@angular/core';
2
- import { ActivatedRoute, Router } from '@angular/router';
3
- import { EngineMagicService } from '../services/engine.magic.service';
4
- import { getGuiEventObj } from '@magic-xpa/engine';
5
- import { List } from '@magic-xpa/mscorelib';
6
- import { StrUtil } from '@magic-xpa/utils';
7
- import { ComponentListMagicService } from '../services/component-list.magic.service';
8
- import { SubformMagicService } from '../services/subform.magic.service';
9
- import { CommandsCollectorMagicService } from '../services/commands-collector.magic.service';
10
- import { RouterCommandsMagicService } from '../services/router-commands.magic.service';
11
- import { TaskMagicService } from '../services/task.magics.service';
12
- import * as i0 from "@angular/core";
13
- import * as i1 from "@angular/router";
14
- import * as i2 from "../services/engine.magic.service";
15
- import * as i3 from "../services/task.magics.service";
16
- import * as i4 from "../services/component-list.magic.service";
17
- import * as i5 from "../services/commands-collector.magic.service";
18
- import * as i6 from "../services/router-commands.magic.service";
19
- export class RouterContainerMagicComponent {
20
- static get LastRoute() {
21
- return RouterContainerMagicComponent.lastRoute;
22
- }
23
- constructor(activatedRoute, router, magic, containerTaskService, componentFactoryResolver, viewContainerRef, componentList, pendingCommandsCollector, routerCommandsMagicService) {
24
- this.activatedRoute = activatedRoute;
25
- this.router = router;
26
- this.magic = magic;
27
- this.containerTaskService = containerTaskService;
28
- this.componentFactoryResolver = componentFactoryResolver;
29
- this.viewContainerRef = viewContainerRef;
30
- this.componentList = componentList;
31
- this.pendingCommandsCollector = pendingCommandsCollector;
32
- this.routerCommandsMagicService = routerCommandsMagicService;
33
- this.componentRef = null;
34
- this.parentMgSubformService = null;
35
- }
36
- ngOnInit() {
37
- let subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
38
- let currentActiveRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
39
- RouterContainerMagicComponent.lastRoute = this.router.url;
40
- if (subformMagicService == null || subformMagicService.currentRouteDefinition === null) {
41
- this.insertRouteEvent(currentActiveRoute);
42
- SubformMagicService.routerContainers.push(this);
43
- }
44
- else {
45
- this.initializeComponent();
46
- }
47
- }
48
- insertRouteEvent(currentActiveRoute) {
49
- let guiEvent = getGuiEventObj('RouterNavigate', null, 0);
50
- guiEvent.RouterPath = currentActiveRoute.snapshot.routeConfig.path;
51
- if (currentActiveRoute.snapshot.outlet !== 'primary')
52
- guiEvent.RouterOutletName = currentActiveRoute.snapshot.outlet;
53
- let calcRouterPath = currentActiveRoute.routeConfig.path;
54
- if (calcRouterPath.length > 0) {
55
- let routerPath = calcRouterPath;
56
- let tokens = StrUtil.tokenize(routerPath, "/:");
57
- guiEvent.RouterPath = tokens[0];
58
- guiEvent.RouterParams = new List();
59
- for (let i = 1; i < tokens.length; i++) {
60
- guiEvent.RouterParams.push(currentActiveRoute.snapshot.params[tokens[i]]);
61
- }
62
- }
63
- this.containerTaskService.insertEvent(guiEvent);
64
- }
65
- initializeComponent() {
66
- let subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
67
- if (subformMagicService.currentRouteDefinition !== null) {
68
- let comp = this.componentList.getComponent(subformMagicService.currentRouteDefinition.formName);
69
- const componentFactory = this.componentFactoryResolver.resolveComponentFactory(comp);
70
- this.componentRef = this.viewContainerRef.createComponent(componentFactory);
71
- Object.assign(this.componentRef.instance, subformMagicService.currentRouteDefinition.parameters);
72
- let myActiveRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
73
- let routeParams = StrUtil.tokenize(myActiveRoute.snapshot.routeConfig.path, "/:");
74
- subformMagicService.routesDict[myActiveRoute.snapshot.outlet] = routeParams[0];
75
- this.parentMgSubformService = subformMagicService;
76
- subformMagicService.currentRouteDefinition = null;
77
- SubformMagicService.currentCallerMgSubformServiceRef = null;
78
- let ignoreParamChange = true;
79
- myActiveRoute.paramMap.subscribe(params => {
80
- if (!ignoreParamChange)
81
- this.insertRouteEvent(myActiveRoute);
82
- ignoreParamChange = false;
83
- });
84
- this.parentMgSubformService.refreshView();
85
- this.routerCommandsMagicService.ExecuteNextCommand();
86
- }
87
- }
88
- ngOnDestroy() {
89
- if (this.componentRef != null) {
90
- this.componentRef.instance.task.close();
91
- let currentActiveRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
92
- this.parentMgSubformService.routesDict[currentActiveRoute.outlet] = "";
93
- RouterContainerMagicComponent.lastRoute = this.router.url;
94
- }
95
- }
96
- }
97
- RouterContainerMagicComponent.lastRoute = "/";
98
- RouterContainerMagicComponent.ɵfac = function RouterContainerMagicComponent_Factory(t) { return new (t || RouterContainerMagicComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i2.EngineMagicService), i0.ɵɵdirectiveInject(i3.TaskMagicService), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i4.ComponentListMagicService), i0.ɵɵdirectiveInject(i5.CommandsCollectorMagicService), i0.ɵɵdirectiveInject(i6.RouterCommandsMagicService)); };
99
- RouterContainerMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RouterContainerMagicComponent, selectors: [["magic-route-outlet"]], decls: 0, vars: 0, template: function RouterContainerMagicComponent_Template(rf, ctx) { }, encapsulation: 2 });
100
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RouterContainerMagicComponent, [{
101
- type: Component,
102
- args: [{
103
- selector: 'magic-route-outlet',
104
- template: `
105
- `
106
- }]
107
- }], function () { return [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: i2.EngineMagicService }, { type: i3.TaskMagicService }, { type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: i4.ComponentListMagicService }, { type: i5.CommandsCollectorMagicService }, { type: i6.RouterCommandsMagicService }]; }, null); })();
108
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGVyLWNvbnRhaW5lci5tYWdpYy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyL3NyYy91aS9yb3V0ZXItY29udGFpbmVyLm1hZ2ljLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLHdCQUF3QixFQUFVLGdCQUFnQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzlGLE9BQU8sRUFBQyxjQUFjLEVBQUUsTUFBTSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFFdkQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFDdEUsT0FBTyxFQUFFLGNBQWMsRUFBYSxNQUFNLG1CQUFtQixDQUFDO0FBQzlELE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUM1QyxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDM0MsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sMENBQTBDLENBQUM7QUFDckYsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDeEUsT0FBTyxFQUFFLDZCQUE2QixFQUFFLE1BQU0sOENBQThDLENBQUM7QUFDN0YsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFDdkYsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0saUNBQWlDLENBQUM7Ozs7Ozs7O0FBVW5FLE1BQU0sT0FBTyw2QkFBNkI7SUFLeEMsTUFBTSx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GF0aXZlUm91dGUodGhpcy5hY3RpdmF0ZWRSb3V0ZSk7XHJcbiAgICAgIHRoaXMucGFyZW50TWdTdWJmb3JtU2VydmljZS5yb3V0ZXNEaWN0W2N1cnJlbnRBY3RpdmVSb3V0ZS5vdXRsZXRdID0gXCJcIjtcclxuXHJcbiAgICAgIFJvdXRlckNvbnRhaW5lck1hZ2ljQ29tcG9uZW50Lmxhc3RSb3V0ZSA9IHRoaXMucm91dGVyLnVybDtcclxuICAgIH1cclxuICB9XHJcblxyXG59XHJcbiJdfQ==
@@ -1,52 +0,0 @@
1
- import { Component, Input, ViewContainerRef } from "@angular/core";
2
- import { SubformMagicService } from "../services/subform.magic.service";
3
- import { isNullOrUndefined } from '@magic-xpa/mscorelib';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "../services/subform.magic.service";
6
- import * as i2 from "@angular/common";
7
- import * as i3 from "ng-dynamic-component";
8
- function SubformMagicComponent_ndc_dynamic_0_Template(rf, ctx) { if (rf & 1) {
9
- i0.ɵɵelement(0, "ndc-dynamic", 1);
10
- } if (rf & 2) {
11
- const ctx_r0 = i0.ɵɵnextContext();
12
- i0.ɵɵproperty("ndcDynamicComponent", ctx_r0.Component)("ndcDynamicInputs", ctx_r0.Parameters);
13
- } }
14
- export class SubformMagicComponent {
15
- set magic(val) { this.id = val; }
16
- ;
17
- constructor(vcRef, mgSub) {
18
- this.vcRef = vcRef;
19
- this.mgSub = mgSub;
20
- this.component = null;
21
- this.component = (this.vcRef._hostLView).find(v => !isNullOrUndefined(v));
22
- }
23
- get Component() {
24
- return this.mgSub.mgGetComp(this.id);
25
- }
26
- get Parameters() {
27
- return this.mgSub.mgGetParameters(this.id);
28
- }
29
- }
30
- SubformMagicComponent.ɵfac = function SubformMagicComponent_Factory(t) { return new (t || SubformMagicComponent)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i1.SubformMagicService)); };
31
- SubformMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SubformMagicComponent, selectors: [["magic-subform"]], inputs: { magic: "magic" }, decls: 1, vars: 1, consts: [[3, "ndcDynamicComponent", "ndcDynamicInputs", 4, "ngIf"], [3, "ndcDynamicComponent", "ndcDynamicInputs"]], template: function SubformMagicComponent_Template(rf, ctx) { if (rf & 1) {
32
- i0.ɵɵtemplate(0, SubformMagicComponent_ndc_dynamic_0_Template, 1, 2, "ndc-dynamic", 0);
33
- } if (rf & 2) {
34
- i0.ɵɵproperty("ngIf", ctx.Component);
35
- } }, dependencies: [i2.NgIf, i3.DynamicComponent, i3.DynamicIoDirective], encapsulation: 2 });
36
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubformMagicComponent, [{
37
- type: Component,
38
- args: [{
39
- selector: 'magic-subform',
40
- template: `
41
- <ndc-dynamic
42
- *ngIf="Component"
43
- [ndcDynamicComponent]="Component"
44
- [ndcDynamicInputs]="Parameters">
45
- </ndc-dynamic>
46
- `
47
- }]
48
- }], function () { return [{ type: i0.ViewContainerRef }, { type: i1.SubformMagicService }]; }, { magic: [{
49
- type: Input,
50
- args: ['magic']
51
- }] }); })();
52
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ViZm9ybS5tYWdpYy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyL3NyYy91aS9zdWJmb3JtLm1hZ2ljLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBRSxnQkFBZ0IsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUVqRSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUN4RSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxzQkFBc0Is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vbXBvbmVudCA9IG51bGw7XHJcblxyXG4gIC8qKlxyXG4gICAqIEBpZ25vcmVcclxuICAgKi9cclxuICBjb25zdHJ1Y3Rvcihwcml2YXRlIHZjUmVmOiBWaWV3Q29udGFpbmVyUmVmLCBwcm90ZWN0ZWQgbWdTdWI6IFN1YmZvcm1NYWdpY1NlcnZpY2UpIHtcclxuICAgIC8vIEZvciBhbmd1bGFyIDEzIC0gZmluZCB0aGUgY29tcG9uZW50IGZyb20gX2hvc3RMVmlld1xyXG4gICAgdGhpcy5jb21wb25lbnQgPSAgICgoPGFueT50aGlzLnZjUmVmKS5faG9zdExWaWV3KS5maW5kKHYgPT4gIWlzTnVsbE9yVW5kZWZpbmVkKCh2IGFzIFRhc2tCYXNlTWFnaWNDb21wb25lbnQpKSk7XHJcbiAgfVxyXG5cclxuICAvKipcclxuICAgKiBAaWdub3JlXHJcbiAgICovXHJcbiAgZ2V0IENvbXBvbmVudCgpOiBDb21wb25lbnQge1xyXG4gICAgcmV0dXJuIHRoaXMubWdTdWIubWdHZXRDb21wKHRoaXMuaWQpO1xyXG4gIH1cclxuXHJcbiAgLyoqXHJcbiAgICogQGlnbm9yZVxyXG4gICAqL1xyXG4gIGdldCBQYXJhbWV0ZXJzKCk6IGFueSB7XHJcbiAgICByZXR1cm4gdGhpcy5tZ1N1Yi5tZ0dldFBhcmFtZXRlcnModGhpcy5pZCk7XHJcbiAgfVxyXG59XHJcblxyXG4iXX0=
@@ -1,86 +0,0 @@
1
- import { ChangeDetectorRef, Component, Input } from '@angular/core';
2
- import { MagicProperties } from "@magic-xpa/utils";
3
- import { isNullOrUndefined } from "@magic-xpa/mscorelib";
4
- import { TaskMagicService } from "../services/task.magics.service";
5
- import { SubformMagicService } from "../services/subform.magic.service";
6
- import { TableMagicService } from "../services/table.magic.service";
7
- import { MagicServices } from "../services/magic.services";
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "../services/magic.services";
10
- export class TaskBaseMagicComponent {
11
- constructor(ref, magicServices) {
12
- this.ref = ref;
13
- this.magicServices = magicServices;
14
- this.magicProperties = MagicProperties;
15
- }
16
- get task() {
17
- return this.magicServices.task;
18
- }
19
- get mgSub() {
20
- return this.magicServices.subformService;
21
- }
22
- get tableService() {
23
- return this.magicServices.tableService;
24
- }
25
- get mg() {
26
- return this.magicServices.mgAccessorService;
27
- }
28
- get taskId() {
29
- return this.task.taskId;
30
- }
31
- get screenFormGroup() {
32
- return this.task.ScreenModeControls;
33
- }
34
- ngOnInit() {
35
- this.task.detectChanges.pipe().subscribe(c => {
36
- this.ref.detectChanges();
37
- });
38
- this.task.initTask(this.taskIdParam, this.taskDescription);
39
- this.createFormControlsAccessor(this.screenFormGroup);
40
- this.setInputDateFormat();
41
- this.task.customPropertiesSubject.pipe().subscribe(property => {
42
- this.PropertyChanged(property.propertyName, property.rowId, property.value);
43
- });
44
- this.task.recordsCountChangeSubject.pipe().subscribe(value => {
45
- this.RecordsCountChanged(value);
46
- });
47
- this.task.mgLoadSubject.pipe().subscribe(value => {
48
- this.mgOnLoad();
49
- });
50
- }
51
- createFormControlsAccessor(formGroup) { }
52
- setInputDateFormat() { }
53
- PropertyChanged(propertyName, rowId, value) {
54
- }
55
- RecordsCountChanged(recordsCount) {
56
- }
57
- mgOnLoad() {
58
- }
59
- ngAfterViewInit() {
60
- this.mgSub.init();
61
- }
62
- ngAfterContentChecked() {
63
- if (!isNullOrUndefined(this.tableService.getPageSize()) && this.task.oldPageSize != this.tableService.getPageSize()) {
64
- this.task.resize(this.tableService.getPageSize(), 0);
65
- this.task.oldPageSize = this.tableService.getPageSize();
66
- }
67
- }
68
- ngOnDestroy() {
69
- this.task.dispose();
70
- }
71
- }
72
- TaskBaseMagicComponent.ɵfac = function TaskBaseMagicComponent_Factory(t) { return new (t || TaskBaseMagicComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.MagicServices)); };
73
- TaskBaseMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TaskBaseMagicComponent, selectors: [["task-magic"]], inputs: { taskIdParam: "taskIdParam", taskDescription: "taskDescription" }, features: [i0.ɵɵProvidersFeature([TaskMagicService, SubformMagicService, TableMagicService])], decls: 0, vars: 0, template: function TaskBaseMagicComponent_Template(rf, ctx) { }, encapsulation: 2 });
74
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TaskBaseMagicComponent, [{
75
- type: Component,
76
- args: [{
77
- selector: 'task-magic',
78
- providers: [TaskMagicService, SubformMagicService, TableMagicService],
79
- template: ''
80
- }]
81
- }], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.MagicServices }]; }, { taskIdParam: [{
82
- type: Input
83
- }], taskDescription: [{
84
- type: Input
85
- }] }); })();
86
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFzay1iYXNlLm1hZ2ljLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXIvc3JjL3VpL3Rhc2stYmFzZS5tYWdpYy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFnQixpQkFBaUIsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFvQixNQUFNLGVBQWUsQ0FBQztBQUVwRyxPQUFPLEVBQUUsZUFBZSxFQUFDLE1BQU0sa0JBQWtCLENBQUM7QUFDbEQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFFekQsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0saUNBQWlDLENBQUM7QUFDakUsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDeEUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFDcEUsT0FBTyxFQUF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50ZW50aW9uYWxseSBsZWZ0IGJsYW5rIGJlY2F1c2UgdGhlIGltcGxlbWVudGF0aW9uIHNob3VsZCBiZSBpbiB0aGUgZGVyaXZlZCBjbGFzc1xyXG4gIH1cclxuICAvKipcclxuICAgKiBJbnRlcmZhY2UgaW1wbGVtZW50YXRpb25cclxuICAgKi9cclxuICBuZ0FmdGVyVmlld0luaXQoKSB7XHJcbiAgICB0aGlzLm1nU3ViLmluaXQoKTtcclxuICB9XHJcblxyXG4gIG5nQWZ0ZXJDb250ZW50Q2hlY2tlZCgpIDogdm9pZCB7XHJcbiAgICBpZighaXNOdWxsT3JVbmRlZmluZWQodGhpcy50YWJsZVNlcnZpY2UuZ2V0UGFnZVNpemUoKSkgJiYgdGhpcy50YXNrLm9sZFBhZ2VTaXplICE9IHRoaXMudGFibGVTZXJ2aWNlLmdldFBhZ2VTaXplKCkpIHtcclxuICAgICAgdGhpcy50YXNrLnJlc2l6ZSh0aGlzLnRhYmxlU2VydmljZS5nZXRQYWdlU2l6ZSgpLCAwKTtcclxuICAgICAgdGhpcy50YXNrLm9sZFBhZ2VTaXplID0gdGhpcy50YWJsZVNlcnZpY2UuZ2V0UGFnZVNpemUoKTtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIEludGVyZmFjZSBpbXBsZW1lbnRhdGlvblxyXG4gICAqL1xyXG4gIG5nT25EZXN0cm95KCk6IHZvaWQge1xyXG4gICAgdGhpcy50YXNrLmRpc3Bvc2UoKTtcclxuICB9XHJcbn1cclxuXHJcbiJdfQ==
@@ -1,54 +0,0 @@
1
- export class utils {
2
- static getDistance(control, x, y) {
3
- let left = control.clientLeft, top = control.clientTop;
4
- let dx, dy;
5
- const right = left + control.clientWidth;
6
- const bottom = top + control.clientHeight;
7
- if (x < left) {
8
- dx = left - x;
9
- }
10
- else if (x > right) {
11
- dx = x - right;
12
- }
13
- else {
14
- dx = 0;
15
- }
16
- if (y < top) {
17
- dy = top - y;
18
- }
19
- else if (y > bottom) {
20
- dy = y - bottom;
21
- }
22
- else {
23
- dy = 0;
24
- }
25
- const ret = (dx * dx + dy * dy);
26
- return ret;
27
- }
28
- static getDimentions(el) {
29
- let xPos = 0;
30
- let yPos = 0;
31
- let width = el.width;
32
- let height = el.height;
33
- while (el) {
34
- if (el.tagName == "BODY") {
35
- let xScroll = el.scrollLeft || document.documentElement.scrollLeft;
36
- let yScroll = el.scrollTop || document.documentElement.scrollTop;
37
- xPos += (el.offsetLeft - xScroll + el.clientLeft);
38
- yPos += (el.offsetTop - yScroll + el.clientTop);
39
- }
40
- else {
41
- xPos += (el.offsetLeft - el.scrollLeft + el.clientLeft);
42
- yPos += (el.offsetTop - el.scrollTop + el.clientTop);
43
- }
44
- el = el.offsetParent;
45
- }
46
- return {
47
- x: xPos,
48
- y: yPos,
49
- width: width,
50
- height: height
51
- };
52
- }
53
- }
54
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyL3NyYy91aS91dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNQSxNQUFNLE9BQU8sS0FBSztJQUtoQixNQUFNLENBQUMsV0FBVyxDQUFDLE9BQWdCLEVBQUUsQ0FBUyxFQUFFLENBQVM7UUFFdkQsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLFVBQVUsRUFBRSxHQUFHLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQztRQUV2RCxJQUFJLEVBQUUsRUFBRSxFQUFVLENBQUM7UUFDbkIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLE9BQU8sQ0FBQyxXQUFXLENBQUM7UUFDekMsTUFBTSxNQUFNLEdBQUcsR0FBRyxHQUFHLE9BQU8sQ0FBQyxZQUFZLENBQUM7UUFFMUMsSUFBSSxDQUFD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3MgKz0gKGVsLm9mZnNldExlZnQgLSBlbC5zY3JvbGxMZWZ0ICsgZWwuY2xpZW50TGVmdCk7XHJcbiAgICAgICAgeVBvcyArPSAoZWwub2Zmc2V0VG9wIC0gZWwuc2Nyb2xsVG9wICsgZWwuY2xpZW50VG9wKTtcclxuICAgICAgfVxyXG5cclxuICAgICAgZWwgPSBlbC5vZmZzZXRQYXJlbnQ7XHJcblxyXG4gICAgfVxyXG4gICAgcmV0dXJuIHtcclxuICAgICAgeDogeFBvcyxcclxuICAgICAgeTogeVBvcyxcclxuICAgICAgd2lkdGg6IHdpZHRoLFxyXG4gICAgICBoZWlnaHQ6IGhlaWdodFxyXG4gICAgfTtcclxuICB9XHJcblxyXG59XHJcbiJdfQ==
@@ -1,62 +0,0 @@
1
- import { StorageAttribute } from "@magic-xpa/utils";
2
- import { HtmlProperties, CustomValidator } from "@magic-xpa/gui";
3
- export declare class ControlMetadata {
4
- controlType: string;
5
- dataType: StorageAttribute;
6
- properties: Map<HtmlProperties, any>;
7
- classesMap: Map<HtmlClasses, any>;
8
- stylesMap: Map<HtmlClasses, any>;
9
- removedClass: string;
10
- classes: string;
11
- rangeValidator: boolean;
12
- userProperties: Map<string, any>;
13
- customValidators: Map<string, CustomValidator>;
14
- setClass(key: any, value: any): void;
15
- setStyle(key: any, value: any): void;
16
- }
17
- export declare class ControlsMetadata {
18
- values: Map<string, string>;
19
- ControlsProperties: Map<string, ControlMetadata>;
20
- rowId: string;
21
- isCreated: boolean;
22
- isEditing: boolean;
23
- get Values(): Map<string, string>;
24
- getControlMetadata(controlId: string): ControlMetadata;
25
- update(obj: any): void;
26
- setValue(controlName: string, value: any): void;
27
- getProperty(controlId: string, prop: HtmlProperties): any;
28
- getValue(controlName: string): string;
29
- }
30
- export declare class Records {
31
- data: Map<number, ControlsMetadata>;
32
- list: ControlsMetadata[];
33
- includesFirst: boolean;
34
- includesLast: boolean;
35
- guiTopIndex: number;
36
- recordsBeforeCurrentView: number;
37
- isEmptyDataView: boolean;
38
- sizeUpdated: boolean;
39
- getRow(dvRowId: number): ControlsMetadata;
40
- markRowAsCreated(guiRowId: number): void;
41
- markRowAsNotCreated(guiRowId: number): void;
42
- isRowCreated(guiRowId: number): boolean;
43
- startRowEditing(guiRowId: number): void;
44
- stopRowEditing(guiRowId: number): void;
45
- isRowInRowEditing(guiRowId: string): boolean;
46
- update(obj: any): void;
47
- updateSize(len: number): void;
48
- clearFirstTableRecord(template: {
49
- [id: string]: string;
50
- }): void;
51
- addRow(guiRowId: number): void;
52
- createFirst(): void;
53
- fromJson(data: string): void;
54
- setGuiTopIndex(topIndex: number): void;
55
- getGuiTopIndex(): number;
56
- }
57
- export declare enum HtmlClasses {
58
- Color = "color",
59
- font = "font",
60
- FocusColor = "focuscolor",
61
- HintColor = "hintcolor"
62
- }
@@ -1,12 +0,0 @@
1
- import { ViewContainerRef } from "@angular/core";
2
- export interface SubformDefinition {
3
- formName: string;
4
- parameters: any;
5
- }
6
- export interface RouteDefinition {
7
- formName: string;
8
- parameters: any;
9
- }
10
- export interface IMagicViewContainerRef {
11
- setViewContainerRef(vcRef: ViewContainerRef): any;
12
- }
@@ -1,41 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./ui/directives/magic.directive";
3
- import * as i2 from "./ui/directives/magic/checkbox.magic.directive";
4
- import * as i3 from "./ui/directives/magic/checkbox-noformcontrol.magic.directive";
5
- import * as i4 from "./ui/directives/magic/input.noformcontrol.magic.directive";
6
- import * as i5 from "./ui/directives/magic/combobox.magic.directive";
7
- import * as i6 from "./ui/directives/magic/row.magic.directive";
8
- import * as i7 from "./ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive";
9
- import * as i8 from "./ui/directives/magic/form-controls/control-value-accessors/default.cva.directive";
10
- import * as i9 from "./ui/directives/magic/form-controls/control-value-accessors/date.cva.directive";
11
- import * as i10 from "./ui/task-base.magic.component";
12
- import * as i11 from "./ui/magic-modal/magic-overlay-container";
13
- import * as i12 from "./ui/components/magic-alert.component";
14
- import * as i13 from "./ui/components/magic-confirmation-box.component";
15
- import * as i14 from "./ui/components/base-magic-alert.component";
16
- import * as i15 from "./ui/components/base-magic-confirm.component";
17
- import * as i16 from "./ui/magic-modal/magic-overlay-container-wrapper";
18
- import * as i17 from "./ui/router-container.magic.component";
19
- import * as i18 from "./ui/magic-root.component";
20
- import * as i19 from "./ui/subform.magic.component";
21
- import * as i20 from "./ui/mgerror.magic.component";
22
- import * as i21 from "./ui/directives/magic/nocontrol.magic.directive";
23
- import * as i22 from "./ui/directives/mgformat.magic.directive";
24
- import * as i23 from "./ui/pipes/date.magic.pipe";
25
- import * as i24 from "./ui/pipes/time.magic.pipe";
26
- import * as i25 from "./ui/directives/range-validator.magic.directive";
27
- import * as i26 from "./ui/directives/NonMagicControlDirective";
28
- import * as i27 from "./ui/directives/magic-focus.directive";
29
- import * as i28 from "./ui/directives/magicViewContainerRef.directive";
30
- import * as i29 from "./ui/pipes/time24.magic.pipe";
31
- import * as i30 from "@angular/common";
32
- import * as i31 from "@angular/forms";
33
- import * as i32 from "@angular/router";
34
- import * as i33 from "ng-dynamic-component";
35
- import * as i34 from "@angular/common/http";
36
- import * as i35 from "@maskito/angular";
37
- export declare class MagicModule {
38
- static ɵfac: i0.ɵɵFactoryDeclaration<MagicModule, never>;
39
- static ɵmod: i0.ɵɵNgModuleDeclaration<MagicModule, [typeof i1.MagicDirective, typeof i2.CheckboxMagicDirective, typeof i3.CheckboxNoFormControlMagicDirective, typeof i4.InputNoFormControlMagicDirective, typeof i5.ComboboxMagicDirective, typeof i6.RowMagicDirective, typeof i7.MagicCheckboxControlValueAccessor, typeof i8.MagicDefaultValueAccessor, typeof i9.DateValueAccessor, typeof i10.TaskBaseMagicComponent, typeof i11.MagicOverlayContainer, typeof i12.MagicAlertComponent, typeof i13.MagicConfirmationBoxComponent, typeof i14.BaseMagicAlertComponent, typeof i15.BaseMagicConfirmComponent, typeof i16.MagicOverlayContainerWrapper, typeof i17.RouterContainerMagicComponent, typeof i18.MagicShellComponent, typeof i19.SubformMagicComponent, typeof i20.ErrorMagicComponent, typeof i21.NoControlMagicDirective, typeof i22.MgformatMagicDirective, typeof i23.DateMagicPipe, typeof i24.TimeMagicPipe, typeof i25.RangeValidatorMagicDirective, typeof i26.NonMagicControlDirective, typeof i27.MagicFocusDirective, typeof i28.MagicViewContainerRef, typeof i29.Time24MagicPipe], [typeof i30.CommonModule, typeof i31.FormsModule, typeof i31.ReactiveFormsModule, typeof i32.RouterModule, typeof i33.DynamicModule, typeof i34.HttpClientModule], [typeof i1.MagicDirective, typeof i2.CheckboxMagicDirective, typeof i3.CheckboxNoFormControlMagicDirective, typeof i4.InputNoFormControlMagicDirective, typeof i5.ComboboxMagicDirective, typeof i6.RowMagicDirective, typeof i7.MagicCheckboxControlValueAccessor, typeof i8.MagicDefaultValueAccessor, typeof i9.DateValueAccessor, typeof i10.TaskBaseMagicComponent, typeof i11.MagicOverlayContainer, typeof i12.MagicAlertComponent, typeof i13.MagicConfirmationBoxComponent, typeof i14.BaseMagicAlertComponent, typeof i15.BaseMagicConfirmComponent, typeof i16.MagicOverlayContainerWrapper, typeof i17.RouterContainerMagicComponent, typeof i18.MagicShellComponent, typeof i19.SubformMagicComponent, typeof i20.ErrorMagicComponent, typeof i21.NoControlMagicDirective, typeof i22.MgformatMagicDirective, typeof i23.DateMagicPipe, typeof i24.TimeMagicPipe, typeof i25.RangeValidatorMagicDirective, typeof i26.NonMagicControlDirective, typeof i27.MagicFocusDirective, typeof i28.MagicViewContainerRef, typeof i29.Time24MagicPipe, typeof i35.MaskitoModule]>;
40
- static ɵinj: i0.ɵɵInjectorDeclaration<MagicModule>;
41
- }
@@ -1,4 +0,0 @@
1
- import { RouteCommand } from "./router-commands.magic.service";
2
- export interface ISubformMagicService {
3
- ExecuteRouteCommand(routeCommand: RouteCommand): any;
4
- }
@@ -1,31 +0,0 @@
1
- import { ComponentFactoryResolver, Injector, ChangeDetectorRef, Compiler, ViewContainerRef } from "@angular/core";
2
- import { ComponentListMagicService } from "./component-list.magic.service";
3
- import { EngineMagicService } from "./engine.magic.service";
4
- import { OverlayContainerMagicProvider } from "./overlay.conainer.magic.provider";
5
- import { ConfirmationComponentsMagicProvider } from "./confirmation.components.magic.provider";
6
- import { Styles } from "@magic-xpa/gui";
7
- import { MagicLazyLoaderService } from "./magic.lazy.loader.service";
8
- import * as i0 from "@angular/core";
9
- export declare class OverlayWindowService {
10
- private componentFactoryResolver;
11
- protected componentList: ComponentListMagicService;
12
- protected engineMagicService: EngineMagicService;
13
- private magicLazyModuleLoader;
14
- private injector;
15
- private compiler;
16
- private overlayContainerMagicProvider;
17
- private confirmationComponentsMagicProvider;
18
- constructor(componentFactoryResolver: ComponentFactoryResolver, componentList: ComponentListMagicService, engineMagicService: EngineMagicService, magicLazyModuleLoader: MagicLazyLoaderService, injector: Injector, compiler: Compiler, overlayContainerMagicProvider: OverlayContainerMagicProvider, confirmationComponentsMagicProvider: ConfirmationComponentsMagicProvider);
19
- private overlayWindowsContainerViewRef;
20
- private overlayWindowFocusManager;
21
- private changeDetectorRef;
22
- init(overlayWindowsContainerViewRef: ViewContainerRef, rootMagicElement: Element, changeDetectorRef: ChangeDetectorRef): void;
23
- loadAndOpenModule(formName: string, taskId: string, taskDescription: string): void;
24
- open(formName: string, taskId: string, taskDescription: string): void;
25
- close(commandStr: string): void;
26
- openConfirmationBox(title: string, msg: string, style: Styles): void;
27
- finishConfirmation(style: Styles, result: boolean): void;
28
- private createModalComponent;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<OverlayWindowService, never>;
30
- static ɵprov: i0.ɵɵInjectableDeclaration<OverlayWindowService>;
31
- }
@@ -1,5 +0,0 @@
1
- export declare class StylesMapManager {
2
- static StylesMap: Map<string, any>;
3
- static MagicPropertyToHtmlAttributeMap: Map<string, string>;
4
- static magicValueGetStyle(styleName: string, magicValue: any): string;
5
- }
@@ -1,69 +0,0 @@
1
- import { TaskMagicService } from './task.magics.service';
2
- import { HtmlProperties } from '@magic-xpa/gui';
3
- import { FormGroup } from '@angular/forms';
4
- import { MagicColorService } from './magic-color.service';
5
- import { MaskitoOptions } from "@maskito/core";
6
- import * as i0 from "@angular/core";
7
- export declare class AccessorMagicService {
8
- protected task: TaskMagicService;
9
- protected magicColor: MagicColorService;
10
- Logger: any;
11
- readonly hhmm: MaskitoOptions;
12
- readonly hhmmss: MaskitoOptions;
13
- constructor(task: TaskMagicService, magicColor: MagicColorService);
14
- checkIsReadOnly(controlId: string): boolean;
15
- getText(controlId: string, rowId?: string): string;
16
- getTabpageText(controlId: string, layer: number): string;
17
- getImage(controlId: string, rowId?: string): string;
18
- isImageExists(controlId: string, rowId?: string): boolean;
19
- getClasses(controlId: string, rowId?: string): string;
20
- getStyle(controlId: string, styleName: string, rowId?: string): string;
21
- getVisible(controlId: string, rowId?: string): string;
22
- getAlphaMask(controlId: string, rowId?: string): string;
23
- getNumericPicture(picture: string): any;
24
- getMustInput(controlId: string, rowId?: string): string;
25
- isDisabled(controlId: string, rowId?: string): any;
26
- getProperty(controlId: string, prop: HtmlProperties, rowId?: string): any;
27
- getTitle(controlId: string, rowId?: string): string;
28
- getZoomButtonTitle(controlId: string, rowId?: string): string;
29
- getSelectedValue(controlId: string, rowId?: string): string;
30
- getPlaceholder(controlId: string, rowId?: string): string;
31
- getType(controlId: string, rowId?: string): string;
32
- getTabIndex(controlId: string, rowId?: string): number;
33
- getValue(controlId: string, rowId?: string): any;
34
- getFormattedValue(controlId: string, rowId?: string): string;
35
- getPicture(controlId: string, rowId?: string): string;
36
- getCustomProperty(controlId: string, propertyNameOrRowID?: string, rowId?: string): any;
37
- getCustomProperty_1(controlId: string, propertyName: string, rowId?: string): any;
38
- getItemListValues(id: string, rowId?: string): Array<{
39
- index: number;
40
- displayValue: string;
41
- }>;
42
- getFilteredList(controlId: string, rowId?: string): Array<{
43
- index: number;
44
- displayValue: string;
45
- }>;
46
- getDisplayValue(id: any, rowId?: any): string;
47
- isOptionSelected(index: any, controlId: any): boolean;
48
- isTabPageSelected(controlId: string, layer: number): boolean;
49
- isTabPageLayerSelected(controlId: string, layer: number): boolean;
50
- getTabSelectedIndex(controlId: string): any;
51
- ifRowCreated(row: any): boolean;
52
- getFormGroupByRow(id: string): FormGroup;
53
- isRowSelected(controlId: any, rowId?: any): boolean;
54
- isRowInRowEditing(row?: any): boolean;
55
- isCurrentInRowEditing(): boolean;
56
- guiTopIndex(): number;
57
- getErrMsg(id: string, rowId: string): string;
58
- setValueToControl(controlName: string, value: any, refreshDisplay?: boolean): void;
59
- isDataviewEmpty(): boolean;
60
- simulateClick(controlName: string, rowId?: number): void;
61
- isLoggedIn(): boolean;
62
- GetFormRecords(): any;
63
- SetCookie(name: string, value: any, expires?: Date, path?: any, domain?: any, secure?: any, sameSite?: any): void;
64
- GetCookie(name: string): any;
65
- DeleteCookie(name: string): any;
66
- getColor(colorNumber: number, colorType: any): any;
67
- static ɵfac: i0.ɵɵFactoryDeclaration<AccessorMagicService, never>;
68
- static ɵprov: i0.ɵɵInjectableDeclaration<AccessorMagicService>;
69
- }
@@ -1,15 +0,0 @@
1
- import { EngineMagicService } from './engine.magic.service';
2
- import { GuiCommand } from '@magic-xpa/gui';
3
- import * as i0 from "@angular/core";
4
- export declare class CommandsCollectorMagicService {
5
- protected magic: EngineMagicService;
6
- private count;
7
- private commands;
8
- private subscription;
9
- constructor(magic: EngineMagicService);
10
- startCollecting(): void;
11
- stopCollecting(): void;
12
- GetCommands(taskId: string): GuiCommand[];
13
- static ɵfac: i0.ɵɵFactoryDeclaration<CommandsCollectorMagicService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<CommandsCollectorMagicService>;
15
- }