@magic-xpa/angular 4.800.0-dev480.2 → 4.800.0-dev480.202
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/magic-xpa-angular.umd.js +1384 -2639
- package/bundles/magic-xpa-angular.umd.js.map +1 -1
- package/bundles/magic-xpa-angular.umd.min.js +2 -2
- package/bundles/magic-xpa-angular.umd.min.js.map +1 -1
- package/esm2015/index.js +1 -1
- package/esm2015/magic-xpa-angular.js +1 -4
- package/esm2015/src/controls.metadata.model.js +3 -36
- package/esm2015/src/interfaces/sub-form-definition.iterface.js +1 -1
- package/esm2015/src/magic.core.module.js +4 -14
- package/esm2015/src/services/ISubformMagicService.js +1 -1
- package/esm2015/src/services/OverlayWindowService.js +4 -29
- package/esm2015/src/services/StylesMapManager.js +1 -4
- package/esm2015/src/services/accessor.magic.service.js +44 -242
- package/esm2015/src/services/commands-collector.magic.service.js +4 -7
- package/esm2015/src/services/component-list.magic.service.js +1 -25
- package/esm2015/src/services/confirmation.components.magic.provider.js +4 -24
- package/esm2015/src/services/engine.magic.service.js +7 -10
- package/esm2015/src/services/exit.magic.service.js +4 -10
- package/esm2015/src/services/magic.providers.js +1 -4
- package/esm2015/src/services/magic.services.js +4 -10
- package/esm2015/src/services/mg-date-adapter.js +5 -5
- package/esm2015/src/services/overlay.conainer.magic.provider.js +4 -8
- package/esm2015/src/services/router-commands.magic.service.js +4 -10
- package/esm2015/src/services/subform.magic.service.js +37 -56
- package/esm2015/src/services/table.magic.service.js +5 -61
- package/esm2015/src/services/task.magics.service.js +14 -282
- package/esm2015/src/services/title.magic.service.js +4 -15
- package/esm2015/src/ui/GuiInteractiveExecutor.js +8 -6
- package/esm2015/src/ui/components/base-magic-alert.component.js +4 -14
- package/esm2015/src/ui/components/base-magic-confirm.component.js +4 -16
- package/esm2015/src/ui/components/magic-alert.component.js +5 -8
- package/esm2015/src/ui/components/magic-confirmation-box.component.js +5 -8
- package/esm2015/src/ui/directives/NonMagicControlDirective.js +4 -31
- package/esm2015/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.js +4 -10
- package/esm2015/src/ui/directives/magic/checkbox.magic.directive.js +4 -13
- package/esm2015/src/ui/directives/magic/combobox.magic.directive.js +4 -10
- package/esm2015/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.js +5 -11
- package/esm2015/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.js +4 -16
- package/esm2015/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.js +5 -11
- package/esm2015/src/ui/directives/magic/input.noformcontrol.magic.directive.js +4 -10
- package/esm2015/src/ui/directives/magic/nocontrol.magic.directive.js +6 -16
- package/esm2015/src/ui/directives/magic/row.magic.directive.js +4 -22
- package/esm2015/src/ui/directives/magic-focus.directive.js +4 -7
- package/esm2015/src/ui/directives/magic.directive.js +14 -81
- package/esm2015/src/ui/directives/magicViewContainerRef.directive.js +4 -8
- package/esm2015/src/ui/directives/mgformat.magic.directive.js +4 -57
- package/esm2015/src/ui/directives/range-validator.magic.directive.js +4 -20
- package/esm2015/src/ui/magic-confirmationBox.js +1 -25
- package/esm2015/src/ui/magic-modal/base-magic-overlay-container.js +1 -1
- package/esm2015/src/ui/magic-modal/magic-modal-form.js +1 -4
- package/esm2015/src/ui/magic-modal/magic-modal-interface.js +1 -1
- package/esm2015/src/ui/magic-modal/magic-overlay-container-wrapper.js +4 -21
- package/esm2015/src/ui/magic-modal/magic-overlay-container.js +4 -46
- package/esm2015/src/ui/magic-root.component.js +10 -53
- package/esm2015/src/ui/mgerror.magic.component.js +4 -21
- package/esm2015/src/ui/pipes/date.magic.pipe.js +5 -12
- package/esm2015/src/ui/pipes/time.magic.pipe.js +4 -7
- package/esm2015/src/ui/router-container.magic.component.js +14 -35
- package/esm2015/src/ui/subform.magic.component.js +4 -23
- package/esm2015/src/ui/task-base.magic.component.js +4 -74
- package/esm2015/src/ui/utils.js +1 -20
- package/fesm2015/magic-xpa-angular.js +610 -1873
- package/fesm2015/magic-xpa-angular.js.map +1 -1
- package/magic-xpa-angular.d.ts +0 -3
- package/package.json +3 -3
- package/src/controls.metadata.model.d.ts +0 -16
- package/src/interfaces/sub-form-definition.iterface.d.ts +0 -6
- package/src/magic.core.module.d.ts +0 -3
- package/src/services/OverlayWindowService.d.ts +0 -19
- package/src/services/StylesMapManager.d.ts +0 -3
- package/src/services/accessor.magic.service.d.ts +16 -202
- package/src/services/commands-collector.magic.service.d.ts +0 -3
- package/src/services/component-list.magic.service.d.ts +0 -27
- package/src/services/confirmation.components.magic.provider.d.ts +0 -16
- package/src/services/engine.magic.service.d.ts +1 -3
- package/src/services/exit.magic.service.d.ts +0 -6
- package/src/services/magic.providers.d.ts +0 -3
- package/src/services/magic.services.d.ts +0 -6
- package/src/services/router-commands.magic.service.d.ts +0 -6
- package/src/services/subform.magic.service.d.ts +5 -30
- package/src/services/table.magic.service.d.ts +0 -55
- package/src/services/task.magics.service.d.ts +1 -294
- package/src/services/title.magic.service.d.ts +0 -11
- package/src/ui/GuiInteractiveExecutor.d.ts +1 -3
- package/src/ui/components/base-magic-alert.component.d.ts +0 -16
- package/src/ui/components/base-magic-confirm.component.d.ts +0 -18
- package/src/ui/components/magic-alert.component.d.ts +0 -3
- package/src/ui/components/magic-confirmation-box.component.d.ts +0 -3
- package/src/ui/directives/NonMagicControlDirective.d.ts +0 -41
- package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +0 -6
- package/src/ui/directives/magic/checkbox.magic.directive.d.ts +0 -9
- package/src/ui/directives/magic/combobox.magic.directive.d.ts +0 -6
- package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +0 -6
- package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +0 -12
- package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +0 -6
- package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +0 -6
- package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +0 -3
- package/src/ui/directives/magic/row.magic.directive.d.ts +0 -15
- package/src/ui/directives/magic-focus.directive.d.ts +0 -3
- package/src/ui/directives/magic.directive.d.ts +0 -78
- package/src/ui/directives/magicViewContainerRef.directive.d.ts +0 -3
- package/src/ui/directives/mgformat.magic.directive.d.ts +0 -40
- package/src/ui/directives/range-validator.magic.directive.d.ts +0 -16
- package/src/ui/magic-confirmationBox.d.ts +0 -19
- package/src/ui/magic-modal/base-magic-overlay-container.d.ts +0 -9
- package/src/ui/magic-modal/magic-modal-form.d.ts +0 -3
- package/src/ui/magic-modal/magic-modal-interface.d.ts +0 -27
- package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +0 -20
- package/src/ui/magic-modal/magic-overlay-container.d.ts +0 -51
- package/src/ui/magic-root.component.d.ts +0 -42
- package/src/ui/mgerror.magic.component.d.ts +0 -19
- package/src/ui/pipes/date.magic.pipe.d.ts +0 -6
- package/src/ui/pipes/time.magic.pipe.d.ts +0 -3
- package/src/ui/router-container.magic.component.d.ts +5 -21
- package/src/ui/subform.magic.component.d.ts +0 -21
- package/src/ui/task-base.magic.component.d.ts +0 -72
- package/src/ui/utils.d.ts +0 -3
|
@@ -2,9 +2,6 @@ import { PipeTransform } from '@angular/core';
|
|
|
2
2
|
import { DatePipe } from '@angular/common';
|
|
3
3
|
import { TaskMagicService } from '../../services/task.magics.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* @ignore
|
|
7
|
-
*/
|
|
8
5
|
export declare class TimeMagicPipe extends DatePipe implements PipeTransform {
|
|
9
6
|
protected _task: TaskMagicService;
|
|
10
7
|
constructor(_task: TaskMagicService);
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { ComponentFactoryResolver, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute } from '@angular/router';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { EngineMagicService } from '../services/engine.magic.service';
|
|
4
4
|
import { ComponentListMagicService } from '../services/component-list.magic.service';
|
|
5
5
|
import { CommandsCollectorMagicService } from '../services/commands-collector.magic.service';
|
|
6
6
|
import { RouterCommandsMagicService } from '../services/router-commands.magic.service';
|
|
7
7
|
import { TaskMagicService } from '../services/task.magics.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Mock component, implements routing by connecting the requested URL with the appropriate Magic task
|
|
11
|
-
*/
|
|
12
9
|
export declare class RouterContainerMagicComponent implements OnInit {
|
|
13
10
|
private activatedRoute;
|
|
11
|
+
protected router: Router;
|
|
14
12
|
protected magic: EngineMagicService;
|
|
15
13
|
private containerTaskService;
|
|
16
14
|
private componentFactoryResolver;
|
|
@@ -20,26 +18,12 @@ export declare class RouterContainerMagicComponent implements OnInit {
|
|
|
20
18
|
protected routerCommandsMagicService: RouterCommandsMagicService;
|
|
21
19
|
private componentRef;
|
|
22
20
|
private parentMgSubformService;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
* @param activatedRoute
|
|
27
|
-
* @param magic
|
|
28
|
-
* @param componentFactoryResolver
|
|
29
|
-
* @param viewContainerRef
|
|
30
|
-
* @param componentList
|
|
31
|
-
* @param pendingCommandsCollector
|
|
32
|
-
*/
|
|
33
|
-
constructor(activatedRoute: ActivatedRoute, magic: EngineMagicService, containerTaskService: TaskMagicService, componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, componentList: ComponentListMagicService, pendingCommandsCollector: CommandsCollectorMagicService, routerCommandsMagicService: RouterCommandsMagicService);
|
|
34
|
-
/**
|
|
35
|
-
* Initialization
|
|
36
|
-
*/
|
|
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);
|
|
37
24
|
ngOnInit(): void;
|
|
38
25
|
private insertRouteEvent;
|
|
39
26
|
initializeComponent(): void;
|
|
40
|
-
/**
|
|
41
|
-
* Cleanup
|
|
42
|
-
*/
|
|
43
27
|
ngOnDestroy(): void;
|
|
44
28
|
static ɵfac: i0.ɵɵFactoryDef<RouterContainerMagicComponent, never>;
|
|
45
29
|
static ɵcmp: i0.ɵɵComponentDefWithMeta<RouterContainerMagicComponent, "magic-route-outlet", never, {}, {}, never, never>;
|
|
@@ -2,35 +2,14 @@ import { Component, ViewContainerRef } from "@angular/core";
|
|
|
2
2
|
import { TaskBaseMagicComponent } from "./task-base.magic.component";
|
|
3
3
|
import { SubformMagicService } from "../services/subform.magic.service";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Represents a Magic subform
|
|
7
|
-
*/
|
|
8
5
|
export declare class SubformMagicComponent {
|
|
9
6
|
private vcRef;
|
|
10
7
|
protected mgSub: SubformMagicService;
|
|
11
|
-
/**
|
|
12
|
-
* @ignore
|
|
13
|
-
*/
|
|
14
8
|
id: string;
|
|
15
|
-
/**
|
|
16
|
-
* @ignore
|
|
17
|
-
*/
|
|
18
9
|
set magic(val: any);
|
|
19
|
-
/**
|
|
20
|
-
* @ignore
|
|
21
|
-
*/
|
|
22
10
|
component: TaskBaseMagicComponent;
|
|
23
|
-
/**
|
|
24
|
-
* @ignore
|
|
25
|
-
*/
|
|
26
11
|
constructor(vcRef: ViewContainerRef, mgSub: SubformMagicService);
|
|
27
|
-
/**
|
|
28
|
-
* @ignore
|
|
29
|
-
*/
|
|
30
12
|
get Component(): Component;
|
|
31
|
-
/**
|
|
32
|
-
* @ignore
|
|
33
|
-
*/
|
|
34
13
|
get Parameters(): any;
|
|
35
14
|
static ɵfac: i0.ɵɵFactoryDef<SubformMagicComponent, never>;
|
|
36
15
|
static ɵcmp: i0.ɵɵComponentDefWithMeta<SubformMagicComponent, "magic-subform", never, { "magic": "magic"; }, {}, never, never>;
|
|
@@ -7,98 +7,26 @@ import { TableMagicService } from "../services/table.magic.service";
|
|
|
7
7
|
import { MagicServices } from "../services/magic.services";
|
|
8
8
|
import { AccessorMagicService } from "../services/accessor.magic.service";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Base component representing a Magic task
|
|
12
|
-
*/
|
|
13
10
|
export declare class TaskBaseMagicComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
14
11
|
protected ref: ChangeDetectorRef;
|
|
15
12
|
magicServices: MagicServices;
|
|
16
|
-
/**
|
|
17
|
-
* Id of task, used for initializing the task service
|
|
18
|
-
*/
|
|
19
13
|
taskIdParam: string;
|
|
20
|
-
/**
|
|
21
|
-
* @ignore
|
|
22
|
-
*/
|
|
23
14
|
taskDescription: string;
|
|
24
|
-
/**
|
|
25
|
-
* @ignore
|
|
26
|
-
*/
|
|
27
15
|
magicProperties: typeof MagicProperties;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @param ref changes-detector object
|
|
31
|
-
* @param magicServices Access point for all Magic services
|
|
32
|
-
*/
|
|
33
16
|
constructor(ref: ChangeDetectorRef, magicServices: MagicServices);
|
|
34
|
-
/**
|
|
35
|
-
* Returns the Magic task service
|
|
36
|
-
* @returns
|
|
37
|
-
*/
|
|
38
17
|
get task(): TaskMagicService;
|
|
39
|
-
/**
|
|
40
|
-
* Returns the Magic subform service
|
|
41
|
-
* @returns
|
|
42
|
-
*/
|
|
43
18
|
get mgSub(): SubformMagicService;
|
|
44
|
-
/**
|
|
45
|
-
* Returns the Magic table service
|
|
46
|
-
* @returns
|
|
47
|
-
*/
|
|
48
19
|
get tableService(): TableMagicService;
|
|
49
|
-
/**
|
|
50
|
-
* Returns the Magic accessor service
|
|
51
|
-
* @returns
|
|
52
|
-
*/
|
|
53
20
|
get mg(): AccessorMagicService;
|
|
54
|
-
/**
|
|
55
|
-
* Returns the task Id
|
|
56
|
-
* @returns
|
|
57
|
-
*/
|
|
58
21
|
get taskId(): string;
|
|
59
|
-
/**
|
|
60
|
-
* Returns the FormGroup for screen-mode forms
|
|
61
|
-
* @returns
|
|
62
|
-
*/
|
|
63
22
|
get screenFormGroup(): FormGroup;
|
|
64
|
-
/**
|
|
65
|
-
* Interface implementation
|
|
66
|
-
*/
|
|
67
23
|
ngOnInit(): void;
|
|
68
|
-
/**
|
|
69
|
-
* @ignore
|
|
70
|
-
*/
|
|
71
24
|
createFormControlsAccessor(formGroup: FormGroup): void;
|
|
72
|
-
/**
|
|
73
|
-
* @ignore
|
|
74
|
-
*/
|
|
75
25
|
setInputDateFormat(): void;
|
|
76
|
-
/**
|
|
77
|
-
* This method is called when the value of any custom property is updated in Magic
|
|
78
|
-
* propertyName : name of property which is updated. The format is <controlname>~<propertyname>
|
|
79
|
-
* rowId : row number of the updated property for controls in table control (0 for controls outside table)
|
|
80
|
-
* value : updated value of the property
|
|
81
|
-
* @returns : void
|
|
82
|
-
* To use the method override it in your component and check the property name and write you code ..for eg
|
|
83
|
-
* if(propertyName == 'controlname~propertyName') {// your code}
|
|
84
|
-
* else { // your code}
|
|
85
|
-
*/
|
|
86
26
|
PropertyChanged(propertyName: string, rowId: number, value: any): void;
|
|
87
|
-
/**
|
|
88
|
-
* Records count change subject is subscribed to change in its value. This method will be called
|
|
89
|
-
* as the value of records count is received at from server.
|
|
90
|
-
* @returns : void
|
|
91
|
-
* To use the method override it in your component.
|
|
92
|
-
*/
|
|
93
27
|
RecordsCountChanged(recordsCount: number): void;
|
|
94
|
-
/**
|
|
95
|
-
* Interface implementation
|
|
96
|
-
*/
|
|
97
28
|
ngAfterViewInit(): void;
|
|
98
29
|
ngAfterContentChecked(): void;
|
|
99
|
-
/**
|
|
100
|
-
* Interface implementation
|
|
101
|
-
*/
|
|
102
30
|
ngOnDestroy(): void;
|
|
103
31
|
static ɵfac: i0.ɵɵFactoryDef<TaskBaseMagicComponent, never>;
|
|
104
32
|
static ɵcmp: i0.ɵɵComponentDefWithMeta<TaskBaseMagicComponent, "task-magic", never, { "taskIdParam": "taskIdParam"; "taskDescription": "taskDescription"; }, {}, never, never>;
|