@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,40 @@
1
+ import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import { GuiCommand } from '@magic-xpa/gui';
3
+ import { Title } from '@angular/platform-browser';
4
+ import { EngineMagicService } from '../services/engine.magic.service';
5
+ import { ComponentListMagicService } from '../services/component-list.magic.service';
6
+ import { ExitMagicService } from '../services/exit.magic.service';
7
+ import { OverlayWindowService } from '../services/OverlayWindowService';
8
+ import { IMagicViewContainerRef } from '../..';
9
+ import { CommandsCollectorMagicService } from '../services/commands-collector.magic.service';
10
+ import { HttpClient } from '@angular/common/http';
11
+ import * as i0 from "@angular/core";
12
+ export declare class MagicShellComponent implements AfterViewInit, IMagicViewContainerRef {
13
+ protected engineMagicService: EngineMagicService;
14
+ protected componentList: ComponentListMagicService;
15
+ protected changeDetectorRef: ChangeDetectorRef;
16
+ private titleService;
17
+ private overlayWindowService;
18
+ private httpClient;
19
+ private pendingCommandsCollector;
20
+ exitMagicService: ExitMagicService;
21
+ RootComponent: Component;
22
+ RootComponentParameters: any;
23
+ overlayWindowsContainerViewRef: ViewContainerRef;
24
+ rootMagicElementRef: ElementRef;
25
+ SpinnerTemplate: TemplateRef<any>;
26
+ showSpinner: boolean;
27
+ magicEngineTerminated: boolean;
28
+ constructor(engineMagicService: EngineMagicService, componentList: ComponentListMagicService, changeDetectorRef: ChangeDetectorRef, titleService: Title, overlayWindowService: OverlayWindowService, httpClient: HttpClient, pendingCommandsCollector: CommandsCollectorMagicService, exitMagicService: ExitMagicService);
29
+ onBeforeUnload(event: any): string;
30
+ onUnload(event: any): void;
31
+ ngAfterViewInit(): void;
32
+ setViewContainerRef(vcRef: ViewContainerRef): void;
33
+ initialize(): void;
34
+ setTitle(): void;
35
+ private setComponent;
36
+ registerUICommands(): void;
37
+ executeCommand(command: GuiCommand): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicShellComponent, [null, null, null, null, null, null, null, { optional: true; }]>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<MagicShellComponent, "magic-root", never, { "SpinnerTemplate": "SpinnerTemplate"; }, {}, never, never, false, never>;
40
+ }
@@ -0,0 +1,20 @@
1
+ import { ChangeDetectorRef, ElementRef } from "@angular/core";
2
+ import { AccessorMagicService } from "../services/accessor.magic.service";
3
+ import { TaskMagicService } from "../services/task.magics.service";
4
+ import * as i0 from "@angular/core";
5
+ export declare class ErrorMagicComponent {
6
+ protected _task: TaskMagicService;
7
+ mgService: AccessorMagicService;
8
+ protected changeDetectorRef: ChangeDetectorRef;
9
+ id: string;
10
+ rowId: string;
11
+ set magic(val: any);
12
+ set rowId1(val: any);
13
+ defaultDisplay: boolean;
14
+ set CustomContent(innerComponent: ElementRef);
15
+ constructor(_task: TaskMagicService, mgService: AccessorMagicService, changeDetectorRef: ChangeDetectorRef);
16
+ isEmpty(element: HTMLElement): boolean;
17
+ HasErrors(id: string): boolean;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMagicComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<ErrorMagicComponent, "mgError", never, { "magic": "magic"; "rowId1": "rowId"; }, {}, never, ["*"], false, never>;
20
+ }
@@ -0,0 +1,17 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DatePipe } from '@angular/common';
3
+ import { TaskMagicService } from '../../services/task.magics.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class Constants {
6
+ static readonly DATE_FMT = "dd/MMM/yyyy";
7
+ }
8
+ export declare class DateMagicPipe extends DatePipe implements PipeTransform {
9
+ protected _task: TaskMagicService;
10
+ constructor(_task: TaskMagicService);
11
+ transform(value: any, controlId: string): any;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateMagicPipe, never>;
13
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateMagicPipe, "magicDate", false>;
14
+ }
15
+ export declare class MgDateFormatter {
16
+ ConvertMgDateFormatToAngular(mgDateMask: string): string;
17
+ }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DatePipe } from '@angular/common';
3
+ import { TaskMagicService } from '../../services/task.magics.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TimeMagicPipe extends DatePipe implements PipeTransform {
6
+ protected _task: TaskMagicService;
7
+ constructor(_task: TaskMagicService);
8
+ transform(value: any, controlId: string): any;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeMagicPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<TimeMagicPipe, "magicTime", false>;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TaskMagicService } from "../../services/task.magics.service";
3
+ import * as i0 from "@angular/core";
4
+ export declare class Time24MagicPipe implements PipeTransform {
5
+ protected _task: TaskMagicService;
6
+ constructor(_task: TaskMagicService);
7
+ transform(value: any, controlId: string): any;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<Time24MagicPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<Time24MagicPipe, "magicTime24", false>;
10
+ }
@@ -0,0 +1,30 @@
1
+ import { ComponentFactoryResolver, OnInit, ViewContainerRef } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { EngineMagicService } from '../services/engine.magic.service';
4
+ import { ComponentListMagicService } from '../services/component-list.magic.service';
5
+ import { CommandsCollectorMagicService } from '../services/commands-collector.magic.service';
6
+ import { RouterCommandsMagicService } from '../services/router-commands.magic.service';
7
+ import { TaskMagicService } from '../services/task.magics.service';
8
+ import * as i0 from "@angular/core";
9
+ export declare class RouterContainerMagicComponent implements OnInit {
10
+ private activatedRoute;
11
+ protected router: Router;
12
+ protected magic: EngineMagicService;
13
+ private containerTaskService;
14
+ private componentFactoryResolver;
15
+ private viewContainerRef;
16
+ private componentList;
17
+ protected pendingCommandsCollector: CommandsCollectorMagicService;
18
+ protected routerCommandsMagicService: RouterCommandsMagicService;
19
+ private componentRef;
20
+ private parentMgSubformService;
21
+ private static lastRoute;
22
+ static get LastRoute(): string;
23
+ constructor(activatedRoute: ActivatedRoute, router: Router, magic: EngineMagicService, containerTaskService: TaskMagicService, componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, componentList: ComponentListMagicService, pendingCommandsCollector: CommandsCollectorMagicService, routerCommandsMagicService: RouterCommandsMagicService);
24
+ ngOnInit(): void;
25
+ private insertRouteEvent;
26
+ initializeComponent(): void;
27
+ ngOnDestroy(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouterContainerMagicComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<RouterContainerMagicComponent, "magic-route-outlet", never, {}, {}, never, never, false, never>;
30
+ }
@@ -0,0 +1,16 @@
1
+ import { Component, ViewContainerRef } from "@angular/core";
2
+ import { TaskBaseMagicComponent } from "./task-base.magic.component";
3
+ import { SubformMagicService } from "../services/subform.magic.service";
4
+ import * as i0 from "@angular/core";
5
+ export declare class SubformMagicComponent {
6
+ private vcRef;
7
+ protected mgSub: SubformMagicService;
8
+ id: string;
9
+ set magic(val: any);
10
+ component: TaskBaseMagicComponent;
11
+ constructor(vcRef: ViewContainerRef, mgSub: SubformMagicService);
12
+ get Component(): Component;
13
+ get Parameters(): any;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubformMagicComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubformMagicComponent, "magic-subform", never, { "magic": "magic"; }, {}, never, never, false, never>;
16
+ }
@@ -0,0 +1,34 @@
1
+ import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { MagicProperties } from "@magic-xpa/utils";
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 { AccessorMagicService } from "../services/accessor.magic.service";
9
+ import * as i0 from "@angular/core";
10
+ export declare class TaskBaseMagicComponent implements OnInit, OnDestroy, AfterViewInit {
11
+ protected ref: ChangeDetectorRef;
12
+ magicServices: MagicServices;
13
+ taskIdParam: string;
14
+ taskDescription: string;
15
+ magicProperties: typeof MagicProperties;
16
+ constructor(ref: ChangeDetectorRef, magicServices: MagicServices);
17
+ get task(): TaskMagicService;
18
+ get mgSub(): SubformMagicService;
19
+ get tableService(): TableMagicService;
20
+ get mg(): AccessorMagicService;
21
+ get taskId(): string;
22
+ get screenFormGroup(): FormGroup;
23
+ ngOnInit(): void;
24
+ createFormControlsAccessor(formGroup: FormGroup): void;
25
+ setInputDateFormat(): void;
26
+ PropertyChanged(propertyName: string, rowId: number, value: any): void;
27
+ RecordsCountChanged(recordsCount: number): void;
28
+ mgOnLoad(): void;
29
+ ngAfterViewInit(): void;
30
+ ngAfterContentChecked(): void;
31
+ ngOnDestroy(): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaskBaseMagicComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<TaskBaseMagicComponent, "task-magic", never, { "taskIdParam": "taskIdParam"; "taskDescription": "taskDescription"; }, {}, never, never, false, never>;
34
+ }
@@ -0,0 +1,9 @@
1
+ export declare class utils {
2
+ static getDistance(control: Element, x: number, y: number): number;
3
+ static getDimentions(el: any): {
4
+ x: number;
5
+ y: number;
6
+ width: any;
7
+ height: any;
8
+ };
9
+ }