@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,43 @@
1
+ import { Compiler, Component, Injector } from '@angular/core';
2
+ import { TaskMagicService } from './task.magics.service';
3
+ import { List } 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 { RouteDefinition } from '../interfaces/sub-form-definition.iterface';
8
+ import { RouteCommand, RouterCommandsMagicService } from '../services/router-commands.magic.service';
9
+ import { ISubformMagicService } from './ISubformMagicService';
10
+ import { RouterContainerMagicComponent } from '../ui/router-container.magic.component';
11
+ import { MagicLazyLoaderService } from './magic.lazy.loader.service';
12
+ import * as i0 from "@angular/core";
13
+ export declare class SubformMagicService implements ISubformMagicService {
14
+ private task;
15
+ protected activatedRoute: ActivatedRoute;
16
+ protected componentList: ComponentListMagicService;
17
+ protected pendingCommandsCollector: CommandsCollectorMagicService;
18
+ protected router: Router;
19
+ protected routerCommandsMagicService: RouterCommandsMagicService;
20
+ private componentListMagicService;
21
+ private loader;
22
+ private injector;
23
+ private compiler;
24
+ subformsDict: {};
25
+ routesDict: {
26
+ [x: string]: string;
27
+ };
28
+ currentRouteDefinition: RouteDefinition;
29
+ static currentCallerMgSubformServiceRef: any;
30
+ static routerContainers: Array<RouterContainerMagicComponent>;
31
+ constructor(task: TaskMagicService, activatedRoute: ActivatedRoute, componentList: ComponentListMagicService, pendingCommandsCollector: CommandsCollectorMagicService, router: Router, routerCommandsMagicService: RouterCommandsMagicService, componentListMagicService: ComponentListMagicService, loader: MagicLazyLoaderService, injector: Injector, compiler: Compiler);
32
+ mgGetComp(subformName: string): Component;
33
+ mgGetParameters(subformName: string): any;
34
+ deleteSubformComp(subformControlName: string, formName: string): void;
35
+ addSubformComp(subformControlName: string, formName: string, taskId: string, taskDescription: any, routerPath: string, params: List<any>, inDefaultOutlet: boolean): void;
36
+ ExecuteRouteCommand(routeCommand: RouteCommand): void;
37
+ private PerformRouterNavigate;
38
+ init(): void;
39
+ refreshView(): void;
40
+ static getRelativeRoute(sendActivatedRoute: ActivatedRoute): ActivatedRoute;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubformMagicService, never>;
42
+ static ɵprov: i0.ɵɵInjectableDeclaration<SubformMagicService>;
43
+ }
@@ -0,0 +1,30 @@
1
+ import { TaskMagicService } from "./task.magics.service";
2
+ import { ComponentListMagicService } from "./component-list.magic.service";
3
+ import * as i0 from "@angular/core";
4
+ export declare class TableMagicService {
5
+ protected componentList: ComponentListMagicService;
6
+ protected task: TaskMagicService;
7
+ selectedItem: any;
8
+ private chunkSize;
9
+ constructor(componentList: ComponentListMagicService, task: TaskMagicService);
10
+ shouldOpenFieldTextEditor: boolean;
11
+ refreshDataSource(): void;
12
+ getPageSize(): number;
13
+ setChunkSize(size: number): void;
14
+ getMaxRowsInTable(): number;
15
+ selectRow(rowId: string): void;
16
+ getSelectedRow(): any;
17
+ selectedRow(): any;
18
+ selectPage(pageId: number): void;
19
+ OpenDialogForControl(element: HTMLElement): boolean;
20
+ getDialog(): any;
21
+ onScrollDown(): void;
22
+ sortData(e: any): void;
23
+ mgOnPaginateChange(e: any, changeSelectedRow?: boolean): void;
24
+ mgOptionChanged(e: any): void;
25
+ updateTableSize(size: number): void;
26
+ setTableTopIndex(value: number): void;
27
+ getTableTopIndex(): number;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableMagicService, never>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<TableMagicService>;
30
+ }
@@ -0,0 +1,100 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { AbstractControl, FormControl, FormGroup, ValidatorFn } from '@angular/forms';
3
+ import { Subject, Subscription } from 'rxjs';
4
+ import { EngineMagicService } from './engine.magic.service';
5
+ import { GuiCommand, GuiInteractive, HtmlProperties } from '@magic-xpa/gui';
6
+ import { IGuiEvent } from '@magic-xpa/engine';
7
+ import { SubformMagicService } from './subform.magic.service';
8
+ import { TitleMagicService } from './title.magic.service';
9
+ import { AccessorMagicService } from './accessor.magic.service';
10
+ import { OverlayWindowService } from './OverlayWindowService';
11
+ import * as i0 from "@angular/core";
12
+ export declare class TaskMagicService {
13
+ protected magic: EngineMagicService;
14
+ private overlayWindowService;
15
+ tableService: any;
16
+ Records: any;
17
+ formGroups: Array<FormGroup>;
18
+ ScreenModeControls: FormGroup;
19
+ refreshDom: Subject<GuiCommand>;
20
+ subscribeRefreshDom: Subscription;
21
+ detectChanges: Subject<any>;
22
+ subscribeInteractiveCommands: Subscription;
23
+ interactiveCommands: Subject<GuiInteractive>;
24
+ OnSelectedRowChanged: EventEmitter<string>;
25
+ customPropertiesSubject: Subject<any>;
26
+ recordsCountChangeSubject: Subject<any>;
27
+ mgLoadSubject: Subject<any>;
28
+ template: {
29
+ [id: string]: string;
30
+ };
31
+ mgSubformService: SubformMagicService;
32
+ mgTitleService: TitleMagicService;
33
+ mgAccessorService: AccessorMagicService;
34
+ mgInputDateFormat: any;
35
+ oldPageSize: number;
36
+ constructor(magic: EngineMagicService, overlayWindowService: OverlayWindowService);
37
+ getIsLoggenIn(): boolean;
38
+ _taskId: string;
39
+ get taskId(): string;
40
+ set taskId(value: string);
41
+ get ScreenControlsData(): any;
42
+ settemplate(value: any): void;
43
+ buildScreenModeControls(): void;
44
+ isTableControl(id: string): boolean;
45
+ getMgInputDateFormat(): string;
46
+ getFormControl(guiRowid: string, id: string): AbstractControl;
47
+ setInputTextValue(controlId: string, guiRowid: string, val: any): void;
48
+ buildTableRowControls(guiRowId: number): void;
49
+ updateRecordsBeforeCurrentView(value: number): void;
50
+ setIncludesFirst(value: boolean): void;
51
+ setIncludesLast(value: boolean): void;
52
+ markRowAsCreated(guiRowId: number): void;
53
+ markRowAsNotCreated(guiRowId: number): void;
54
+ startRowEditing(guiRowId: number): void;
55
+ stopRowEditing(guiRowId: number): void;
56
+ isRowInRowEditing(guiRowId: string): boolean;
57
+ setIsEmptyDataView(isEmpty: boolean): void;
58
+ initTask(taskId: any, taskDescription: any): void;
59
+ refreshView(): void;
60
+ insertEvent(guiEvent: IGuiEvent): void;
61
+ GetControlPictureMask(controlName: string): any;
62
+ ValidateControlValue(controlName: string, value: any): string;
63
+ GetRangedValue(controlName: string, value: string): string;
64
+ GetFldRanges(controlName: string): string;
65
+ getProperty(controlId: string, prop: HtmlProperties, guiRowId?: string): any;
66
+ getPropertyStub(ControlsProperties: any, controlId: any, prop: any): any;
67
+ getStyleStub(ControlsProperties: any, controlId: any, styleName: string): any;
68
+ getClasses(controlId: string, guiRowId?: string): string;
69
+ getStyle(controlId: string, styleName: string, guiRowId?: string): string;
70
+ getValue(controlId: string, guiRowId?: string): any;
71
+ getFormattedValue(controlName: string, val: any, rowId?: string): string;
72
+ setValue(controlId: string, guiRowId: string, value: any): void;
73
+ protected executeInteractiveCommand(guiInteractiveCommand: GuiInteractive): void;
74
+ handleSetProperty(command: GuiCommand, isTableChild: boolean): void;
75
+ executeCommand(command: GuiCommand): void;
76
+ customValidator(rowid: string, id: string): ValidatorFn;
77
+ ConvertValToNative(controlId: string, rowId: number, val: any): any;
78
+ ConvertValFromNative(controlId: string, rowId: number, val: any): any;
79
+ resize(pageSize: number, topGuiRowId: number): void;
80
+ onScrollDown(): void;
81
+ setTitle(newTitle: string): void;
82
+ getGuiRowId(dvRowId: number, isTableControl: boolean): number;
83
+ getDvRowId(guiRowId: number): number;
84
+ dispose(): void;
85
+ onComboboxSelectionChanged(event: Event, idx: string, line: number): void;
86
+ onListBoxSelectionChanged(event: Event, idx: string): void;
87
+ onCheckChanged(event: Event, idx: string, rowId: number): void;
88
+ mgOnTabSelectionChanged(idx: string, layer: number): void;
89
+ mgOnRadioSelectionChanged(idx: string): void;
90
+ close(): void;
91
+ IsStub(): boolean;
92
+ jsonData: string;
93
+ saveData(data: string): void;
94
+ createData(): void;
95
+ loadStubData(stubData: any): void;
96
+ loadData(): void;
97
+ setStubValue(guiRowId: number, fc: FormControl, name: string): void;
98
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaskMagicService, never>;
99
+ static ɵprov: i0.ɵɵInjectableDeclaration<TaskMagicService>;
100
+ }
@@ -0,0 +1,9 @@
1
+ import { Title } from "@angular/platform-browser";
2
+ import * as i0 from "@angular/core";
3
+ export declare class TitleMagicService {
4
+ protected titleService: Title;
5
+ constructor(titleService: Title);
6
+ setTitle(newTitle: string): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<TitleMagicService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<TitleMagicService>;
9
+ }
@@ -0,0 +1,22 @@
1
+ import { GuiInteractive } from '@magic-xpa/gui';
2
+ import { TaskBaseMagicComponent } from './task-base.magic.component';
3
+ import { TaskMagicService } from '../services/task.magics.service';
4
+ import { OverlayWindowService } from '../services/OverlayWindowService';
5
+ export declare class GuiInteractiveExecutor {
6
+ command: GuiInteractive;
7
+ component: TaskBaseMagicComponent;
8
+ task: TaskMagicService;
9
+ overlayService: OverlayWindowService;
10
+ Run(): void;
11
+ static executeInteractiveCommand(task: TaskMagicService, guiIntactiveCommand: GuiInteractive, overlayService: OverlayWindowService): void;
12
+ private onValue;
13
+ private onGetRowsInPage;
14
+ private onGetMaxRowsInPaginatedTable;
15
+ private OnMessageBox;
16
+ private OnOpenForm;
17
+ private OnSetTitle;
18
+ private OnRefreshPage;
19
+ private OnGetTopIndex;
20
+ private OnGetIsRowEditing;
21
+ private OnGetLastRoute;
22
+ }
@@ -0,0 +1,10 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class BaseMagicAlertComponent {
4
+ title: string;
5
+ message: string;
6
+ onClose: EventEmitter<void>;
7
+ OnClose(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseMagicAlertComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseMagicAlertComponent, "mg-base-alert", never, { "title": "title"; "message": "message"; }, { "onClose": "onClose"; }, never, never, false, never>;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BaseMagicConfirmComponent {
4
+ title: string;
5
+ message: string;
6
+ onClose: EventEmitter<boolean>;
7
+ OnClose(result: any): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseMagicConfirmComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseMagicConfirmComponent, "mg-base-alert", never, { "title": "title"; "message": "message"; }, { "onClose": "onClose"; }, never, never, false, never>;
10
+ }
@@ -0,0 +1,6 @@
1
+ import { BaseMagicAlertComponent } from './base-magic-alert.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MagicAlertComponent extends BaseMagicAlertComponent {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicAlertComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<MagicAlertComponent, "sample-magic-alert-component", never, {}, {}, never, never, false, never>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { BaseMagicConfirmComponent } from './base-magic-confirm.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MagicConfirmationBoxComponent extends BaseMagicConfirmComponent {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicConfirmationBoxComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<MagicConfirmationBoxComponent, "sample-magic-confirmation-box", never, {}, {}, never, never, false, never>;
6
+ }
@@ -0,0 +1,26 @@
1
+ import { ElementRef, OnInit, Renderer2, ViewContainerRef } from '@angular/core';
2
+ import { TaskBaseMagicComponent } from '../task-base.magic.component';
3
+ import { TaskMagicService } from '../../services/task.magics.service';
4
+ import { Subscription } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class NonMagicControlDirective implements OnInit {
7
+ protected _task: TaskMagicService;
8
+ protected element: ElementRef;
9
+ protected renderer: Renderer2;
10
+ protected vcRef: ViewContainerRef;
11
+ set magic(val: any);
12
+ protected htmlElement: HTMLElement;
13
+ component: TaskBaseMagicComponent;
14
+ private eventHandlers;
15
+ id: string;
16
+ protected selector: string;
17
+ subscribeRefreshDom: Subscription;
18
+ eventsOnlyVal: boolean;
19
+ constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef);
20
+ get task(): TaskMagicService;
21
+ protected regEvents(): void;
22
+ private OnFocus;
23
+ ngOnInit(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<NonMagicControlDirective, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NonMagicControlDirective, "[NonMagicControl]", never, { "magic": "NonMagicControl"; }, {}, never, never, false, never>;
26
+ }
@@ -0,0 +1,9 @@
1
+ import { MagicDirective } from "../magic.directive";
2
+ import * as i0 from "@angular/core";
3
+ export declare class CheckboxNoFormControlMagicDirective {
4
+ protected magicDirective: MagicDirective;
5
+ constructor(magicDirective: MagicDirective);
6
+ onChange($event: any): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxNoFormControlMagicDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxNoFormControlMagicDirective, " input[type=checkbox][magic]:([noFormControl]) ", never, {}, {}, never, never, false, never>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { MagicDirective } from '../magic.directive';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CheckboxMagicDirective {
4
+ protected magicDirective: MagicDirective;
5
+ constructor(magicDirective: MagicDirective);
6
+ onChange($event: any): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxMagicDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxMagicDirective, " input[type=checkbox][magic]:not([noFormControl])", never, {}, {}, never, never, false, never>;
9
+ }
@@ -0,0 +1,10 @@
1
+ import { MagicDirective } from '../magic.directive';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ComboboxMagicDirective {
4
+ protected magicDirective: MagicDirective;
5
+ constructor(magicDirective: MagicDirective);
6
+ onChange($event: any): void;
7
+ onComboboxItemsListChanged(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxMagicDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxMagicDirective, "select[magic]:not([multiple])", never, {}, {}, never, never, false, never>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { CheckboxControlValueAccessor } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare const CHECKBOX_VALUE_ACCESSOR: any;
4
+ export declare class MagicCheckboxControlValueAccessor extends CheckboxControlValueAccessor {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicCheckboxControlValueAccessor, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MagicCheckboxControlValueAccessor, " input[type=checkbox][magic]:not([formControlName]):not([no-form-control]), input[type=checkbox][magic]:not([formControl]), input[type=checkbox][magic]:not([ngModel]) ", never, {}, {}, never, never, false, never>;
7
+ }
@@ -0,0 +1,17 @@
1
+ import { ElementRef, Renderer2 } from "@angular/core";
2
+ import { ControlValueAccessor } from "@angular/forms";
3
+ import * as i0 from "@angular/core";
4
+ export declare const DATE_VALUE_ACCESSOR: any;
5
+ export declare class DateValueAccessor implements ControlValueAccessor {
6
+ private renderer;
7
+ private elementRef;
8
+ onChange: (_: any) => void;
9
+ onTouched: () => void;
10
+ constructor(renderer: Renderer2, elementRef: ElementRef);
11
+ writeValue(value: Date): void;
12
+ registerOnChange(fn: (_: any) => void): void;
13
+ registerOnTouched(fn: () => void): void;
14
+ setDisabledState(isDisabled: boolean): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateValueAccessor, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateValueAccessor, "[dateInput]", never, {}, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,7 @@
1
+ import { DefaultValueAccessor } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare const MAGIC_DEFAULT_VALUE_ACCESSOR: any;
4
+ export declare class MagicDefaultValueAccessor extends DefaultValueAccessor {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicDefaultValueAccessor, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MagicDefaultValueAccessor, " input[magic]:not([type=checkbox]):not([formControlName]):not([no-form-control]), textarea[magic]:not([formControlName]):not([noFormControl]):not([no-form-control]) ", ["magic"], {}, {}, never, never, false, never>;
7
+ }
@@ -0,0 +1,9 @@
1
+ import { MagicDirective } from '../magic.directive';
2
+ import * as i0 from "@angular/core";
3
+ export declare class InputNoFormControlMagicDirective {
4
+ protected magicDirective: MagicDirective;
5
+ constructor(magicDirective: MagicDirective);
6
+ onChange($event: any): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputNoFormControlMagicDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InputNoFormControlMagicDirective, "input[magic]:([noFormControl]):not([type=checkbox]), textarea[magic]:([noFormControl]):not([type=checkbox])", never, {}, {}, never, never, false, never>;
9
+ }
@@ -0,0 +1,18 @@
1
+ import { ElementRef, Renderer2, ViewContainerRef } from '@angular/core';
2
+ import { GuiCommand } from "@magic-xpa/gui";
3
+ import { MagicDirective } from "../magic.directive";
4
+ import { TaskMagicService } from "../../../services/task.magics.service";
5
+ import { RowMagicDirective } from "./row.magic.directive";
6
+ import { Platform } from "@angular/cdk/platform";
7
+ import * as i0 from "@angular/core";
8
+ export declare class NoControlMagicDirective extends MagicDirective {
9
+ set magic(val: any);
10
+ constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef, platform: Platform, magicRow: RowMagicDirective);
11
+ regEvents(): void;
12
+ isTabControl(): boolean;
13
+ isRadio(): boolean;
14
+ handleCommand(command: GuiCommand): void;
15
+ handleSetProperty(command: GuiCommand): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<NoControlMagicDirective, [null, null, null, null, null, { optional: true; }]>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NoControlMagicDirective, "[magicnc]", never, { "magic": "magicnc"; }, {}, never, never, false, never>;
18
+ }
@@ -0,0 +1,17 @@
1
+ import { ElementRef, OnDestroy, OnInit } from "@angular/core";
2
+ import { TaskMagicService } from "../../../services/task.magics.service";
3
+ import * as i0 from "@angular/core";
4
+ export declare class RowMagicDirective implements OnInit, OnDestroy {
5
+ protected _task: TaskMagicService;
6
+ protected element: ElementRef;
7
+ rowId: string;
8
+ protected htmlElement: HTMLElement;
9
+ private rowChangedSubscriber;
10
+ constructor(_task: TaskMagicService, element: ElementRef);
11
+ ngOnInit(): void;
12
+ private isInView;
13
+ ngOnDestroy(): void;
14
+ onClick($event: any): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<RowMagicDirective, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RowMagicDirective, "[magicRow]", never, { "rowId": "magicRow"; }, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,9 @@
1
+ import { ElementRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class MagicFocusDirective {
4
+ private hostElement;
5
+ constructor(hostElement: ElementRef);
6
+ ngAfterViewInit(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicFocusDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MagicFocusDirective, "[magicFocus]", never, {}, {}, never, never, false, never>;
9
+ }
@@ -0,0 +1,44 @@
1
+ import { ElementRef, OnDestroy, OnInit, Renderer2, ViewContainerRef } from "@angular/core";
2
+ import { GuiCommand, GuiInteractive } from "@magic-xpa/gui";
3
+ import { TaskBaseMagicComponent } from "../task-base.magic.component";
4
+ import { TaskMagicService } from "../../services/task.magics.service";
5
+ import { RowMagicDirective } from "./magic/row.magic.directive";
6
+ import { Subscription } from "rxjs";
7
+ import { Platform } from "@angular/cdk/platform";
8
+ import * as i0 from "@angular/core";
9
+ export declare class MagicDirective implements OnInit, OnDestroy {
10
+ protected _task: TaskMagicService;
11
+ protected element: ElementRef;
12
+ protected renderer: Renderer2;
13
+ protected vcRef: ViewContainerRef;
14
+ platform: Platform;
15
+ protected magicRow: RowMagicDirective;
16
+ set magic(val: any);
17
+ set eventsOnly(val: any);
18
+ rowId: string;
19
+ protected htmlElement: HTMLElement;
20
+ component: TaskBaseMagicComponent;
21
+ private eventHandlers;
22
+ id: string;
23
+ protected selector: string;
24
+ subscribeRefreshDom: Subscription;
25
+ private focusUnlistener;
26
+ eventsOnlyVal: boolean;
27
+ static opened: boolean;
28
+ static noOfAutoCompleteBoxesOpened: number;
29
+ subscribeInteractiveCommands: Subscription;
30
+ constructor(_task: TaskMagicService, element: ElementRef, renderer: Renderer2, vcRef: ViewContainerRef, platform: Platform, magicRow: RowMagicDirective);
31
+ get task(): TaskMagicService;
32
+ protected regEvents(): void;
33
+ private OnFocus;
34
+ IsSameElement(command: any): boolean;
35
+ private IsSameComponent;
36
+ private regUpdatesUI;
37
+ ngOnInit(): void;
38
+ handleCommand(command: GuiCommand): void;
39
+ handleInteractiveCommands(command: GuiInteractive): void;
40
+ handleSetProperty(command: GuiCommand): void;
41
+ ngOnDestroy(): void;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicDirective, [null, null, null, null, null, { optional: true; }]>;
43
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MagicDirective, "[magic]", never, { "magic": "magic"; "eventsOnly": "eventsOnly"; "rowId": "rowId"; }, {}, never, never, false, never>;
44
+ }
@@ -0,0 +1,8 @@
1
+ import { ViewContainerRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class MagicViewContainerRef {
4
+ private vcRef;
5
+ constructor(vcRef: ViewContainerRef);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicViewContainerRef, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MagicViewContainerRef, "[magicViewContainerRef]", never, {}, {}, never, never, false, never>;
8
+ }
@@ -0,0 +1,31 @@
1
+ import { TaskMagicService } from '../../services/task.magics.service';
2
+ import { RefParam } from '@magic-xpa/mscorelib';
3
+ import { StorageAttribute } from '@magic-xpa/utils';
4
+ import { MagicDirective } from './magic.directive';
5
+ import { AbstractControl } from '@angular/forms';
6
+ import { PIC } from '@magic-xpa/gui';
7
+ import * as i0 from "@angular/core";
8
+ export declare class MgformatMagicDirective {
9
+ protected magicDir: MagicDirective;
10
+ protected _task: TaskMagicService;
11
+ datePasteFlag: boolean;
12
+ constructor(magicDir: MagicDirective, _task: TaskMagicService);
13
+ ngAfterViewInit(): void;
14
+ onFocusEvent($event: any): void;
15
+ onPaste(event: ClipboardEvent): void;
16
+ onInputEvent(event: any): void;
17
+ dateMasking(event: any): void;
18
+ onChangeEvent($event: any): void;
19
+ calculatePattern(): void;
20
+ formatDate(pic: PIC): void;
21
+ formatAlphaUnicode(control: AbstractControl): void;
22
+ formatBoolean(control: AbstractControl): void;
23
+ generatePattern(attribute: StorageAttribute, pic: PIC): string;
24
+ generatePatternForNumber(pic: PIC): string;
25
+ isPatternGenerationNeeded(attr: StorageAttribute, pic: PIC): boolean;
26
+ generatePatternForAlpha(pic: PIC): string;
27
+ getDirectiveCount(mask: string, idx: number, pattern: string, changeInPattern: RefParam<boolean>): number;
28
+ IsPatternMatches(mask: string, pattern: string): boolean;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgformatMagicDirective, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgformatMagicDirective, "[mgFormat]", never, {}, {}, never, never, false, never>;
31
+ }
@@ -0,0 +1,17 @@
1
+ import { ViewContainerRef } from '@angular/core';
2
+ import { FormControl, Validator } from '@angular/forms';
3
+ import { TaskMagicService } from '../../services/task.magics.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class RangeValidatorMagicDirective implements Validator {
6
+ protected _task: TaskMagicService;
7
+ protected vcRef: ViewContainerRef;
8
+ constructor(_task: TaskMagicService, vcRef: ViewContainerRef);
9
+ validate(c: FormControl): {
10
+ rangevalidator: {
11
+ errorMsg: string;
12
+ };
13
+ };
14
+ getControlName(c: FormControl): string | null;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<RangeValidatorMagicDirective, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RangeValidatorMagicDirective, "[rangevalidator] ", never, {}, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,6 @@
1
+ import { Styles } from "@magic-xpa/gui";
2
+ export declare class confirmationBox {
3
+ static isConfirmBox(style: Styles): Boolean;
4
+ static convertToExcpectedResultBox(style: Styles, okWasPressed: Boolean): Styles;
5
+ static showConfirmationBox(title: string, message: string, style: Styles): boolean;
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare abstract class BaseMagicOverlayContainer {
2
+ abstract ModalComp: any;
3
+ abstract ModalCompParameters: any;
4
+ abstract onClose: any;
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare class ModalFormDefinition {
2
+ taskId: string;
3
+ comp: any;
4
+ parameters: any;
5
+ }
@@ -0,0 +1,10 @@
1
+ export interface MagicModalInterface {
2
+ X(): any;
3
+ Y(): any;
4
+ Width(): string;
5
+ Height(): string;
6
+ IsCenteredToWindow(): any;
7
+ FormName(): any;
8
+ ShowTitleBar(): any;
9
+ ShouldCloseOnBackgroundClick(): any;
10
+ }
@@ -0,0 +1,31 @@
1
+ import { ViewContainerRef, ComponentFactoryResolver, ElementRef, Injector, ChangeDetectorRef, Compiler } from '@angular/core';
2
+ import { ComponentListMagicService } from "../../services/component-list.magic.service";
3
+ import { IMagicViewContainerRef } from "../../..";
4
+ import { MagicLazyLoaderService } from '../../services/magic.lazy.loader.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class MagicOverlayContainerWrapper implements IMagicViewContainerRef {
7
+ private componentListMagicService;
8
+ private magicLazyModuleLoader;
9
+ private injector;
10
+ private componentFactoryResolver;
11
+ private changeDetectorRef;
12
+ private compiler;
13
+ Component: any;
14
+ Parameters: any;
15
+ private OverlayTypeParam;
16
+ private onClose;
17
+ overlayContentViewContainerRef: ViewContainerRef;
18
+ overlayContainerWrapperElementRef: ElementRef;
19
+ static allowedBaseComps: Map<number, {
20
+ comp: any;
21
+ error: string;
22
+ }>;
23
+ constructor(componentListMagicService: ComponentListMagicService, magicLazyModuleLoader: MagicLazyLoaderService, injector: Injector, componentFactoryResolver: ComponentFactoryResolver, changeDetectorRef: ChangeDetectorRef, compiler: Compiler);
24
+ ngOnInit(): void;
25
+ private loadComponent;
26
+ setViewContainerRef(vcRef: ViewContainerRef): void;
27
+ GetRootElement(): HTMLElement;
28
+ DetectChanges(): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicOverlayContainerWrapper, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<MagicOverlayContainerWrapper, "app-magic-overlay-container-wrapper", never, { "Component": "Component"; "Parameters": "Parameters"; "OverlayTypeParam": "OverlayTypeParam"; }, { "onClose": "onClose"; }, never, never, false, never>;
31
+ }
@@ -0,0 +1,25 @@
1
+ import { ComponentFactoryResolver, ElementRef, EventEmitter, OnInit, ViewContainerRef } from '@angular/core';
2
+ import { BaseMagicOverlayContainer } from './base-magic-overlay-container';
3
+ import { IMagicViewContainerRef } from '../../..';
4
+ import * as i0 from "@angular/core";
5
+ export declare class MagicOverlayContainer extends BaseMagicOverlayContainer implements OnInit, IMagicViewContainerRef {
6
+ private componentFactoryResolver;
7
+ modalbodyViewContainerRef: ViewContainerRef;
8
+ headerElementRef: ElementRef;
9
+ foregroundElementRef: ElementRef;
10
+ ModalComp: any;
11
+ ModalCompParameters: any;
12
+ onClose: EventEmitter<void>;
13
+ private componentRef;
14
+ constructor(componentFactoryResolver: ComponentFactoryResolver);
15
+ ngOnInit(): void;
16
+ setViewContainerRef(vcRef: ViewContainerRef): void;
17
+ getText(): any;
18
+ getStyle(): {};
19
+ getClientAreaStyles(): {};
20
+ getShowTitleBar(): any;
21
+ OnClose(): void;
22
+ OnBackgroundClick(): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagicOverlayContainer, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<MagicOverlayContainer, "app-magic-overlay-container", never, { "ModalComp": "ModalComp"; "ModalCompParameters": "ModalCompParameters"; }, { "onClose": "onClose"; }, never, never, false, never>;
25
+ }