@magic-xpa/angular 4.1200.0-dev4120.5 → 4.1200.0-dev4120.52
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/fesm2022/magic-xpa-angular.mjs +1783 -192
- package/fesm2022/magic-xpa-angular.mjs.map +1 -1
- package/index.d.ts +3 -0
- package/package.json +6 -8
- package/src/controls.metadata.model.d.ts +16 -0
- package/src/interfaces/sub-form-definition.iterface.d.ts +6 -0
- package/src/magic.core.module.d.ts +5 -3
- package/src/services/OverlayWindowService.d.ts +19 -0
- package/src/services/StylesMapManager.d.ts +3 -0
- package/src/services/accessor.magic.service.d.ts +243 -3
- package/src/services/commands-collector.magic.service.d.ts +3 -0
- package/src/services/component-list.magic.service.d.ts +27 -0
- package/src/services/confirmation.components.magic.provider.d.ts +16 -0
- package/src/services/engine.magic.service.d.ts +3 -0
- package/src/services/exit.magic.service.d.ts +6 -0
- package/src/services/magic-color.service.d.ts +6 -0
- package/src/services/magic.providers.d.ts +3 -0
- package/src/services/magic.services.d.ts +6 -0
- package/src/services/router-commands.magic.service.d.ts +6 -0
- package/src/services/subform.magic.service.d.ts +28 -0
- package/src/services/table.magic.service.d.ts +56 -0
- package/src/services/task.magics.service.d.ts +300 -0
- package/src/services/title.magic.service.d.ts +11 -0
- package/src/ui/GuiInteractiveExecutor.d.ts +3 -0
- package/src/ui/components/base-magic-alert.component.d.ts +16 -0
- package/src/ui/components/base-magic-confirm.component.d.ts +18 -0
- package/src/ui/components/magic-alert.component.d.ts +3 -0
- package/src/ui/components/magic-confirmation-box.component.d.ts +3 -0
- package/src/ui/directives/NonMagicControlDirective.d.ts +41 -0
- package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +6 -0
- package/src/ui/directives/magic/checkbox.magic.directive.d.ts +12 -0
- package/src/ui/directives/magic/combobox.magic.directive.d.ts +9 -0
- package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +6 -0
- package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +13 -0
- package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +6 -0
- package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +6 -0
- package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +3 -0
- package/src/ui/directives/magic/row.magic.directive.d.ts +15 -0
- package/src/ui/directives/magic-focus.directive.d.ts +3 -0
- package/src/ui/directives/magic.directive.d.ts +82 -0
- package/src/ui/directives/magicViewContainerRef.directive.d.ts +3 -0
- package/src/ui/directives/mgformat.magic.directive.d.ts +44 -0
- package/src/ui/directives/range-validator.magic.directive.d.ts +16 -0
- package/src/ui/magic-confirmationBox.d.ts +19 -0
- package/src/ui/magic-modal/base-magic-overlay-container.d.ts +9 -0
- package/src/ui/magic-modal/magic-modal-form.d.ts +3 -0
- package/src/ui/magic-modal/magic-modal-interface.d.ts +27 -0
- package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +20 -0
- package/src/ui/magic-modal/magic-overlay-container.d.ts +51 -0
- package/src/ui/magic-root.component.d.ts +42 -0
- package/src/ui/mgerror.magic.component.d.ts +19 -0
- package/src/ui/pipes/date.magic.pipe.d.ts +6 -0
- package/src/ui/pipes/time.magic.pipe.d.ts +3 -0
- package/src/ui/router-container.magic.component.d.ts +19 -0
- package/src/ui/subform.magic.component.d.ts +21 -0
- package/src/ui/task-base.magic.component.d.ts +78 -0
- package/src/ui/utils.d.ts +3 -0
- package/esm2022/index.mjs +0 -59
- package/esm2022/magic-xpa-angular.mjs +0 -2
- package/esm2022/src/controls.metadata.model.mjs +0 -183
- package/esm2022/src/interfaces/sub-form-definition.iterface.mjs +0 -2
- package/esm2022/src/magic.core.module.mjs +0 -159
- package/esm2022/src/services/ISubformMagicService.mjs +0 -2
- package/esm2022/src/services/OverlayWindowService.mjs +0 -245
- package/esm2022/src/services/StylesMapManager.mjs +0 -28
- package/esm2022/src/services/accessor.magic.service.mjs +0 -358
- package/esm2022/src/services/commands-collector.magic.service.mjs +0 -47
- package/esm2022/src/services/component-list.magic.service.mjs +0 -45
- package/esm2022/src/services/confirmation.components.magic.provider.mjs +0 -21
- package/esm2022/src/services/engine.magic.service.mjs +0 -80
- package/esm2022/src/services/exit.magic.service.mjs +0 -13
- package/esm2022/src/services/magic-color.service.mjs +0 -101
- package/esm2022/src/services/magic.lazy.loader.service.mjs +0 -16
- package/esm2022/src/services/magic.providers.mjs +0 -25
- package/esm2022/src/services/magic.services.mjs +0 -36
- package/esm2022/src/services/mg-date-adapter.mjs +0 -108
- package/esm2022/src/services/overlay.conainer.magic.provider.mjs +0 -14
- package/esm2022/src/services/router-commands.magic.service.mjs +0 -31
- package/esm2022/src/services/subform.magic.service.mjs +0 -195
- package/esm2022/src/services/table.magic.service.mjs +0 -81
- package/esm2022/src/services/task.magics.service.mjs +0 -648
- package/esm2022/src/services/title.magic.service.mjs +0 -19
- package/esm2022/src/ui/GuiInteractiveExecutor.mjs +0 -114
- package/esm2022/src/ui/components/base-magic-alert.component.mjs +0 -24
- package/esm2022/src/ui/components/base-magic-confirm.component.mjs +0 -24
- package/esm2022/src/ui/components/magic-alert.component.mjs +0 -36
- package/esm2022/src/ui/components/magic-confirmation-box.component.mjs +0 -42
- package/esm2022/src/ui/directives/NonMagicControlDirective.mjs +0 -58
- package/esm2022/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.mjs +0 -29
- package/esm2022/src/ui/directives/magic/checkbox.magic.directive.mjs +0 -100
- package/esm2022/src/ui/directives/magic/combobox.magic.directive.mjs +0 -37
- package/esm2022/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.mjs +0 -27
- package/esm2022/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.mjs +0 -85
- package/esm2022/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.mjs +0 -32
- package/esm2022/src/ui/directives/magic/input.noformcontrol.magic.directive.mjs +0 -28
- package/esm2022/src/ui/directives/magic/nocontrol.magic.directive.mjs +0 -193
- package/esm2022/src/ui/directives/magic/row.magic.directive.mjs +0 -62
- package/esm2022/src/ui/directives/magic-focus.directive.mjs +0 -20
- package/esm2022/src/ui/directives/magic.directive.mjs +0 -232
- package/esm2022/src/ui/directives/magicViewContainerRef.directive.mjs +0 -20
- package/esm2022/src/ui/directives/mgformat.magic.directive.mjs +0 -579
- package/esm2022/src/ui/directives/range-validator.magic.directive.mjs +0 -60
- package/esm2022/src/ui/magic-confirmationBox.mjs +0 -42
- package/esm2022/src/ui/magic-modal/base-magic-overlay-container.mjs +0 -22
- package/esm2022/src/ui/magic-modal/magic-modal-form.mjs +0 -6
- package/esm2022/src/ui/magic-modal/magic-modal-interface.mjs +0 -2
- package/esm2022/src/ui/magic-modal/magic-overlay-container-wrapper.mjs +0 -125
- package/esm2022/src/ui/magic-modal/magic-overlay-container.mjs +0 -162
- package/esm2022/src/ui/magic-root.component.mjs +0 -236
- package/esm2022/src/ui/mgerror.magic.component.mjs +0 -125
- package/esm2022/src/ui/pipes/date.magic.pipe.mjs +0 -106
- package/esm2022/src/ui/pipes/time.magic.pipe.mjs +0 -52
- package/esm2022/src/ui/pipes/time24.magic.pipe.mjs +0 -35
- package/esm2022/src/ui/router-container.magic.component.mjs +0 -115
- package/esm2022/src/ui/subform.magic.component.mjs +0 -56
- package/esm2022/src/ui/task-base.magic.component.mjs +0 -91
- package/esm2022/src/ui/utils.mjs +0 -54
package/index.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@magic-xpa/angular",
|
3
|
-
"version": "4.1200.0-dev4120.
|
3
|
+
"version": "4.1200.0-dev4120.52",
|
4
4
|
"license": "SEE LICENSE IN EULA.pdf",
|
5
5
|
"dependencies": {
|
6
|
-
"@magic-xpa/engine": "4.1200.0-dev4120.
|
7
|
-
"@magic-xpa/angular-material-core": "4.1200.0-dev4120.
|
6
|
+
"@magic-xpa/engine": "4.1200.0-dev4120.52",
|
7
|
+
"@magic-xpa/angular-material-core": "4.1200.0-dev4120.52",
|
8
8
|
"ng-dynamic-component": "~10.7.0",
|
9
9
|
"rxjs": "7.8.1",
|
10
10
|
"@maskito/angular": "^1.4.0",
|
@@ -13,9 +13,9 @@
|
|
13
13
|
"tslib": "^2.3.0"
|
14
14
|
},
|
15
15
|
"peerDependencies": {
|
16
|
-
"@angular/core": "^
|
17
|
-
"@angular/common": "^
|
18
|
-
"@angular/forms": "^
|
16
|
+
"@angular/core": "^19.1.3",
|
17
|
+
"@angular/common": "^19.1.3",
|
18
|
+
"@angular/forms": "^19.1.3"
|
19
19
|
},
|
20
20
|
"schematics": "./schematics/collection.json",
|
21
21
|
"module": "fesm2022/magic-xpa-angular.mjs",
|
@@ -26,8 +26,6 @@
|
|
26
26
|
},
|
27
27
|
".": {
|
28
28
|
"types": "./index.d.ts",
|
29
|
-
"esm2022": "./esm2022/magic-xpa-angular.mjs",
|
30
|
-
"esm": "./esm2022/magic-xpa-angular.mjs",
|
31
29
|
"default": "./fesm2022/magic-xpa-angular.mjs"
|
32
30
|
}
|
33
31
|
},
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import { StorageAttribute } from "@magic-xpa/utils";
|
2
2
|
import { HtmlProperties, CustomValidator } from "@magic-xpa/gui";
|
3
|
+
/**
|
4
|
+
* @ignore
|
5
|
+
*/
|
3
6
|
export declare class ControlMetadata {
|
4
7
|
controlType: string;
|
5
8
|
dataType: StorageAttribute;
|
@@ -14,6 +17,9 @@ export declare class ControlMetadata {
|
|
14
17
|
setClass(key: any, value: any): void;
|
15
18
|
setStyle(key: any, value: any): void;
|
16
19
|
}
|
20
|
+
/**
|
21
|
+
* @ignore
|
22
|
+
*/
|
17
23
|
export declare class ControlsMetadata {
|
18
24
|
values: Map<string, string>;
|
19
25
|
ControlsProperties: Map<string, ControlMetadata>;
|
@@ -27,6 +33,9 @@ export declare class ControlsMetadata {
|
|
27
33
|
getProperty(controlId: string, prop: HtmlProperties): any;
|
28
34
|
getValue(controlName: string): string;
|
29
35
|
}
|
36
|
+
/**
|
37
|
+
* @ignore
|
38
|
+
*/
|
30
39
|
export declare class Records {
|
31
40
|
data: Map<number, ControlsMetadata>;
|
32
41
|
list: ControlsMetadata[];
|
@@ -45,6 +54,10 @@ export declare class Records {
|
|
45
54
|
isRowInRowEditing(guiRowId: string): boolean;
|
46
55
|
update(obj: any): void;
|
47
56
|
updateSize(len: number): void;
|
57
|
+
/**
|
58
|
+
* crears data for the first record
|
59
|
+
* @param template
|
60
|
+
*/
|
48
61
|
clearFirstTableRecord(template: {
|
49
62
|
[id: string]: string;
|
50
63
|
}): void;
|
@@ -54,6 +67,9 @@ export declare class Records {
|
|
54
67
|
setGuiTopIndex(topIndex: number): void;
|
55
68
|
getGuiTopIndex(): number;
|
56
69
|
}
|
70
|
+
/**
|
71
|
+
* @ignore
|
72
|
+
*/
|
57
73
|
export declare enum HtmlClasses {
|
58
74
|
Color = "color",
|
59
75
|
font = "font",
|
@@ -1,8 +1,14 @@
|
|
1
1
|
import { ViewContainerRef } from "@angular/core";
|
2
|
+
/**
|
3
|
+
* @ignore
|
4
|
+
*/
|
2
5
|
export interface SubformDefinition {
|
3
6
|
formName: string;
|
4
7
|
parameters: any;
|
5
8
|
}
|
9
|
+
/**
|
10
|
+
* @ignore
|
11
|
+
*/
|
6
12
|
export interface RouteDefinition {
|
7
13
|
formName: string;
|
8
14
|
parameters: any;
|
@@ -32,10 +32,12 @@ import * as i30 from "@angular/common";
|
|
32
32
|
import * as i31 from "@angular/forms";
|
33
33
|
import * as i32 from "@angular/router";
|
34
34
|
import * as i33 from "ng-dynamic-component";
|
35
|
-
import * as i34 from "@angular
|
36
|
-
|
35
|
+
import * as i34 from "@maskito/angular";
|
36
|
+
/**
|
37
|
+
* @ignore
|
38
|
+
*/
|
37
39
|
export declare class MagicModule {
|
38
40
|
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
|
41
|
+
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 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 i34.MaskitoModule]>;
|
40
42
|
static ɵinj: i0.ɵɵInjectorDeclaration<MagicModule>;
|
41
43
|
}
|
@@ -6,6 +6,9 @@ import { ConfirmationComponentsMagicProvider } from "./confirmation.components.m
|
|
6
6
|
import { Styles } from "@magic-xpa/gui";
|
7
7
|
import { MagicLazyLoaderService } from "./magic.lazy.loader.service";
|
8
8
|
import * as i0 from "@angular/core";
|
9
|
+
/**
|
10
|
+
* Service managing overlay windows
|
11
|
+
*/
|
9
12
|
export declare class OverlayWindowService {
|
10
13
|
protected componentList: ComponentListMagicService;
|
11
14
|
protected engineMagicService: EngineMagicService;
|
@@ -22,8 +25,24 @@ export declare class OverlayWindowService {
|
|
22
25
|
loadAndOpenModule(formName: string, taskId: string, taskDescription: string): void;
|
23
26
|
open(formName: string, taskId: string, taskDescription: string): void;
|
24
27
|
close(commandStr: string): void;
|
28
|
+
/**
|
29
|
+
* Open Confirmation box
|
30
|
+
* @param title title of the box
|
31
|
+
* @param msg message
|
32
|
+
* @param style Magic style
|
33
|
+
*/
|
25
34
|
openConfirmationBox(title: string, msg: string, style: Styles): void;
|
35
|
+
/**
|
36
|
+
* This method is called on close of the confirmation
|
37
|
+
* @param style Magic style
|
38
|
+
* @param result
|
39
|
+
*/
|
26
40
|
finishConfirmation(style: Styles, result: boolean): void;
|
41
|
+
/**
|
42
|
+
* creates a modal component. Can be used for overlay, message box or confirmation box
|
43
|
+
* @param parameters component's parameters
|
44
|
+
* @param component components to create
|
45
|
+
*/
|
27
46
|
private createModalComponent;
|
28
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<OverlayWindowService, never>;
|
29
48
|
static ɵprov: i0.ɵɵInjectableDeclaration<OverlayWindowService>;
|
@@ -4,65 +4,305 @@ import { FormGroup } from '@angular/forms';
|
|
4
4
|
import { MagicColorService } from './magic-color.service';
|
5
5
|
import { MaskitoOptions } from "@maskito/core";
|
6
6
|
import * as i0 from "@angular/core";
|
7
|
+
/**
|
8
|
+
* Provides the UI with values calculated by the Magic WebClient
|
9
|
+
*/
|
7
10
|
export declare class AccessorMagicService {
|
8
11
|
protected task: TaskMagicService;
|
9
12
|
protected magicColor: MagicColorService;
|
10
13
|
Logger: any;
|
11
14
|
readonly hhmm: MaskitoOptions;
|
12
15
|
readonly hhmmss: MaskitoOptions;
|
16
|
+
/**
|
17
|
+
* @ignore
|
18
|
+
*/
|
13
19
|
constructor(task: TaskMagicService, magicColor: MagicColorService);
|
20
|
+
/**
|
21
|
+
* Checks if the control is read-only
|
22
|
+
* @param controlId Id of control
|
23
|
+
* @returns Is the control not read-only
|
24
|
+
*/
|
14
25
|
checkIsReadOnly(controlId: string): boolean;
|
26
|
+
/**
|
27
|
+
* Returns the text of the control
|
28
|
+
* @param controlId Id of control
|
29
|
+
* @param rowId Id of row, if applicable
|
30
|
+
* @returns The text of the control
|
31
|
+
*/
|
15
32
|
getText(controlId: string, rowId?: string): string;
|
33
|
+
/**
|
34
|
+
* Gets the text of the tab page
|
35
|
+
* @param controlId Id of control
|
36
|
+
* @param layer Id of tabpage
|
37
|
+
* @returns Text of tabpage
|
38
|
+
*/
|
16
39
|
getTabpageText(controlId: string, layer: number): string;
|
40
|
+
/**
|
41
|
+
* Gets the image defined for the control
|
42
|
+
* @param controlId Id of control
|
43
|
+
* @param rowId Id of row, if applicable
|
44
|
+
* @returns Image set on control
|
45
|
+
*/
|
17
46
|
getImage(controlId: string, rowId?: string): string;
|
47
|
+
/**
|
48
|
+
* Returns whether an image is set for this control
|
49
|
+
* @param controlId Id of control
|
50
|
+
* @param rowId Id of row, if applicable
|
51
|
+
* @returns returns true if control has an image set on it
|
52
|
+
*/
|
18
53
|
isImageExists(controlId: string, rowId?: string): boolean;
|
54
|
+
/**
|
55
|
+
* Gets the CSS classes set on the control
|
56
|
+
* @param controlId Id of control
|
57
|
+
* @param rowId Id of row, if applicable
|
58
|
+
* @returns The classes for this control
|
59
|
+
*/
|
19
60
|
getClasses(controlId: string, rowId?: string): string;
|
61
|
+
/**
|
62
|
+
* Gets the CSS styles set on the control
|
63
|
+
* @param controlId Id of control
|
64
|
+
* @param styleName NAme of style requested
|
65
|
+
* @param rowId Id of row, if applicable
|
66
|
+
* @returns The style set on the control
|
67
|
+
*/
|
20
68
|
getStyle(controlId: string, styleName: string, rowId?: string): string;
|
69
|
+
/**
|
70
|
+
* Returns whether a control is visible or not
|
71
|
+
* @param controlId Id of control
|
72
|
+
* @param rowId Id of row, if applicable
|
73
|
+
* @returns Is the control visible or hidden
|
74
|
+
*/
|
21
75
|
getVisible(controlId: string, rowId?: string): string;
|
76
|
+
/**
|
77
|
+
* Returns alpha mask of a control
|
78
|
+
* @param controlId Id of control
|
79
|
+
* @param rowId Id of row, if applicable
|
80
|
+
* @returns alpha mask of the control
|
81
|
+
*/
|
22
82
|
getAlphaMask(controlId: string, rowId?: string): string;
|
83
|
+
/**
|
84
|
+
* Returns object representing numeric picture
|
85
|
+
* @param picture string which is defined in magic
|
86
|
+
* @returns object representing numeric picture
|
87
|
+
*/
|
23
88
|
getNumericPicture(picture: string): any;
|
89
|
+
/**
|
90
|
+
* Returns whether a control should have the "required" attribute set on it
|
91
|
+
* @param controlId Id of control
|
92
|
+
* @param rowId Id of row, if applicable
|
93
|
+
* @returns
|
94
|
+
*/
|
24
95
|
getMustInput(controlId: string, rowId?: string): string;
|
96
|
+
/**
|
97
|
+
* Returns whether a control is disabled
|
98
|
+
* @param controlId Id of control
|
99
|
+
* @param rowId Id of row, if applicable
|
100
|
+
* @returns
|
101
|
+
*/
|
25
102
|
isDisabled(controlId: string, rowId?: string): any;
|
103
|
+
/**
|
104
|
+
* @ignore
|
105
|
+
*/
|
26
106
|
getProperty(controlId: string, prop: HtmlProperties, rowId?: string): any;
|
107
|
+
/**
|
108
|
+
* Returns the title (tooltip) text of the control
|
109
|
+
* @param controlId Id of control
|
110
|
+
* @param rowId Id of row, if applicable
|
111
|
+
* @returns
|
112
|
+
*/
|
27
113
|
getTitle(controlId: string, rowId?: string): string;
|
114
|
+
/**
|
115
|
+
* Returns the title (tooltip) text of the control
|
116
|
+
* @param controlId Id of control
|
117
|
+
* @param rowId Id of row, if applicable
|
118
|
+
* @returns
|
119
|
+
*/
|
28
120
|
getZoomButtonTitle(controlId: string, rowId?: string): string;
|
121
|
+
/**
|
122
|
+
* Gets the selection control's selected value
|
123
|
+
* @param controlId Id of control
|
124
|
+
* @param rowId Id of row, if applicable
|
125
|
+
* @returns
|
126
|
+
*/
|
29
127
|
getSelectedValue(controlId: string, rowId?: string): string;
|
128
|
+
/**
|
129
|
+
* Gets the place-holder text of the control
|
130
|
+
* @param controlId Id of control
|
131
|
+
* @param rowId Id of row, if applicable
|
132
|
+
* @returns
|
133
|
+
*/
|
30
134
|
getPlaceholder(controlId: string, rowId?: string): string;
|
135
|
+
/**
|
136
|
+
* Returns a type for input controls - should the control be a simple text or a password control
|
137
|
+
* @param controlId Id of control
|
138
|
+
* @param rowId Id of row, if applicable
|
139
|
+
* @returns
|
140
|
+
*/
|
31
141
|
getType(controlId: string, rowId?: string): string;
|
142
|
+
/**
|
143
|
+
* Returns the tab-index of the control
|
144
|
+
* @param controlId Id of control
|
145
|
+
* @param rowId Id of row, if applicable
|
146
|
+
* @returns
|
147
|
+
*/
|
32
148
|
getTabIndex(controlId: string, rowId?: string): number;
|
149
|
+
/**
|
150
|
+
* Returns the value of the control
|
151
|
+
* @param controlId Id of control
|
152
|
+
* @param rowId Id of row, if applicable
|
153
|
+
* @returns
|
154
|
+
*/
|
33
155
|
getValue(controlId: string, rowId?: string): any;
|
156
|
+
/**
|
157
|
+
* Returns the formatted value of the control
|
158
|
+
* @param controlId Id of control
|
159
|
+
* @param rowId Id of row, if applicable
|
160
|
+
* @returns
|
161
|
+
*/
|
34
162
|
getFormattedValue(controlId: string, rowId?: string): string;
|
163
|
+
/**
|
164
|
+
* Returns the Picture of the control
|
165
|
+
* @param controlId Id of control
|
166
|
+
* @param rowId Id of row, if applicable
|
167
|
+
* @returns
|
168
|
+
*/
|
35
169
|
getPicture(controlId: string, rowId?: string): string;
|
170
|
+
/**
|
171
|
+
* Returns the custom (user) properties of the control
|
172
|
+
* @param controlId Id of control
|
173
|
+
* @param propertyName Name of requested property
|
174
|
+
* @param rowId Id of row, if applicable
|
175
|
+
* @returns
|
176
|
+
*/
|
36
177
|
getCustomProperty(controlId: string, propertyNameOrRowID?: string, rowId?: string): any;
|
37
178
|
getCustomProperty_1(controlId: string, propertyName: string, rowId?: string): any;
|
179
|
+
/**
|
180
|
+
* Gets the values of the items of a selection control
|
181
|
+
* @param id Id of control
|
182
|
+
* @param rowId Id of row, if applicable
|
183
|
+
* @returns
|
184
|
+
*/
|
38
185
|
getItemListValues(id: string, rowId?: string): Array<{
|
39
186
|
index: number;
|
40
187
|
displayValue: string;
|
41
188
|
}>;
|
189
|
+
/**
|
190
|
+
* Gets the filtered items list based on the current value of the control
|
191
|
+
* @param controlId Id of control
|
192
|
+
* @param rowId Id of row, if applicable
|
193
|
+
* @returns
|
194
|
+
*/
|
42
195
|
getFilteredList(controlId: string, rowId?: string): Array<{
|
43
196
|
index: number;
|
44
197
|
displayValue: string;
|
45
198
|
}>;
|
199
|
+
/**
|
200
|
+
* Gets the display value of the item from items of a selection control
|
201
|
+
* @param id Id of control
|
202
|
+
* @param rowId Id of row, if applicable
|
203
|
+
* @returns
|
204
|
+
*/
|
46
205
|
getDisplayValue(id: any, rowId?: any): string;
|
47
|
-
|
48
|
-
|
49
|
-
|
206
|
+
/**
|
207
|
+
* Returns whether a tab page is selected or not
|
208
|
+
* @param index of current option in iterarotr
|
209
|
+
* @param control Id of list control
|
210
|
+
* @returns
|
211
|
+
*/ isOptionSelected(index: any, controlId: any): boolean;
|
212
|
+
/**
|
213
|
+
* Returns whether a tab page is selected or not - used for the tab buttons
|
214
|
+
* @param controlId Id of control
|
215
|
+
* @param layer Id of the tab page
|
216
|
+
* @returns
|
217
|
+
*/ isTabPageSelected(controlId: string, layer: number): boolean;
|
218
|
+
/**
|
219
|
+
* Returns whether a tab page layer is selected or not - used for the div which represents the tab page
|
220
|
+
* @param controlId Id of control
|
221
|
+
* @param layer Id of the tab page
|
222
|
+
* @returns
|
223
|
+
*/ isTabPageLayerSelected(controlId: string, layer: number): boolean;
|
224
|
+
/**
|
225
|
+
* Returns the index of the selected tab page
|
226
|
+
* @param controlId Id of control
|
227
|
+
* @returns
|
228
|
+
*/
|
50
229
|
getTabSelectedIndex(controlId: string): any;
|
230
|
+
/**
|
231
|
+
* @ignore
|
232
|
+
*/
|
51
233
|
ifRowCreated(row: any): boolean;
|
234
|
+
/**
|
235
|
+
* @ignore
|
236
|
+
*/
|
52
237
|
getFormGroupByRow(id: string): FormGroup;
|
238
|
+
/**
|
239
|
+
* @ignore
|
240
|
+
*/
|
53
241
|
isRowSelected(controlId: any, rowId?: any): boolean;
|
242
|
+
/**
|
243
|
+
* Returns whether a row is in edit state
|
244
|
+
* @param row
|
245
|
+
*/
|
54
246
|
isRowInRowEditing(row?: any): boolean;
|
247
|
+
/**
|
248
|
+
* Returns whether a row is in edit state, use this method while control outside table control
|
249
|
+
* @param row
|
250
|
+
*/
|
55
251
|
isCurrentInRowEditing(): boolean;
|
252
|
+
/**
|
253
|
+
* @ignore
|
254
|
+
*/
|
56
255
|
guiTopIndex(): number;
|
256
|
+
/**
|
257
|
+
* @ignore
|
258
|
+
*/
|
57
259
|
getErrMsg(id: string, rowId: string): string;
|
260
|
+
private getNumericFormatErrorString;
|
261
|
+
/**
|
262
|
+
* Sets a user-supplied value to the specified control
|
263
|
+
* @param controlName
|
264
|
+
* @param value
|
265
|
+
* @param refreshDisplay
|
266
|
+
*/
|
58
267
|
setValueToControl(controlName: string, value: any, refreshDisplay?: boolean): void;
|
268
|
+
/**
|
269
|
+
* @ignore
|
270
|
+
*/
|
59
271
|
isDataviewEmpty(): boolean;
|
272
|
+
/**
|
273
|
+
* simulates a click event on the specified control, for the Magic engine
|
274
|
+
* @param controlName
|
275
|
+
* @param rowId
|
276
|
+
*/
|
60
277
|
simulateClick(controlName: string, rowId?: number): void;
|
278
|
+
/**
|
279
|
+
* Return Boolean TRUE if user logged in Else it will return FALSE
|
280
|
+
*/
|
61
281
|
isLoggedIn(): boolean;
|
282
|
+
/**
|
283
|
+
* Returns JS object containing the records with all table fields.
|
284
|
+
*/
|
62
285
|
GetFormRecords(): any;
|
286
|
+
/**
|
287
|
+
* SetCookie : set the cookie with specified name and value in browser
|
288
|
+
* expires - expiration time
|
289
|
+
* path - path which much exists in order so that cookie is sent as header
|
290
|
+
* domain - specifies which hosts are allowed to receive the cookie
|
291
|
+
* secure - specifies if cookie is secure ( works only with HTTPS)
|
292
|
+
* sameSite - lets servers specify whether/when cookies are sent with cross-site requests
|
293
|
+
*/
|
63
294
|
SetCookie(name: string, value: any, expires?: Date, path?: any, domain?: any, secure?: any, sameSite?: any): void;
|
295
|
+
/**
|
296
|
+
* GetCookie : get the cookie with specified name and value in browser
|
297
|
+
*/
|
64
298
|
GetCookie(name: string): any;
|
299
|
+
/**
|
300
|
+
* DeleteCookie : deletes the cookie
|
301
|
+
*/
|
65
302
|
DeleteCookie(name: string): any;
|
303
|
+
/**
|
304
|
+
* get RGBA color from color file
|
305
|
+
*/
|
66
306
|
getColor(colorNumber: number, colorType: any): any;
|
67
307
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccessorMagicService, never>;
|
68
308
|
static ɵprov: i0.ɵɵInjectableDeclaration<AccessorMagicService>;
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import { EngineMagicService } from './engine.magic.service';
|
2
2
|
import { GuiCommand } from '@magic-xpa/gui';
|
3
3
|
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* @ignore
|
6
|
+
*/
|
4
7
|
export declare class CommandsCollectorMagicService {
|
5
8
|
protected magic: EngineMagicService;
|
6
9
|
private count;
|
@@ -8,15 +8,42 @@ export interface ModuleData {
|
|
8
8
|
moduleName: string;
|
9
9
|
modulePath: string;
|
10
10
|
}
|
11
|
+
/**
|
12
|
+
* Manages the list of components in a project, and the project title
|
13
|
+
*/
|
11
14
|
export declare class ComponentListMagicService {
|
15
|
+
/**
|
16
|
+
* Map of project components
|
17
|
+
*/
|
12
18
|
components: Map<string, ComponentData>;
|
19
|
+
/**
|
20
|
+
* Map of project dialogs
|
21
|
+
*/
|
13
22
|
dialogs: Map<string, any>;
|
14
23
|
lazyLoadModulesMap: any;
|
15
24
|
getData(name: string, mustHaveData: boolean): ComponentData;
|
25
|
+
/**
|
26
|
+
* Return a component according to name
|
27
|
+
* @param name Name of requested component
|
28
|
+
* @returns The requested component
|
29
|
+
*/
|
16
30
|
getComponent(name: string, mustHaveData?: boolean): any;
|
17
31
|
addComponents(componentList: any, modulRef?: NgModuleRef<any>): void;
|
32
|
+
/**
|
33
|
+
* Return a component according to name
|
34
|
+
* @param name Name of requested component
|
35
|
+
* @returns The requested component
|
36
|
+
*/
|
18
37
|
getModuleRef(name: string): NgModuleRef<any>;
|
38
|
+
/**
|
39
|
+
* Return the lazy load module details of the specified component
|
40
|
+
* @param name: Name of requested component
|
41
|
+
* @returns: lazy load module details
|
42
|
+
*/
|
19
43
|
getLazyLoadModuleData(name: string): ModuleData;
|
44
|
+
/**
|
45
|
+
* Project title
|
46
|
+
*/
|
20
47
|
title: string;
|
21
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentListMagicService, never>;
|
22
49
|
static ɵprov: i0.ɵɵInjectableDeclaration<ComponentListMagicService>;
|
@@ -1,7 +1,23 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* Service managing alert and confirmation windows
|
4
|
+
* This is Magic's default provider
|
5
|
+
*/
|
2
6
|
export declare class ConfirmationComponentsMagicProvider {
|
7
|
+
/**
|
8
|
+
* Return true when use default javascript alert and confirmation or return false to provide custom components
|
9
|
+
* @returns true is we want to use default javascript alert and confirmation
|
10
|
+
*/
|
3
11
|
showDefaultConfirmations(): boolean;
|
12
|
+
/**
|
13
|
+
* Returns component that will replace javascript alert. The component will be used only if showDefaultConfirmations = false
|
14
|
+
* @returns component that will replace javascript Alert
|
15
|
+
*/
|
4
16
|
getAlertComponent(): any;
|
17
|
+
/**
|
18
|
+
* Returns component that will replace javascript confirmation box. The component will be used only if showDefaultConfirmations = false
|
19
|
+
* @returns component that will replace javascript confirmation box
|
20
|
+
*/
|
5
21
|
getConfirmtionComponent(): any;
|
6
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponentsMagicProvider, never>;
|
7
23
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationComponentsMagicProvider>;
|
@@ -3,6 +3,9 @@ import { IGuiEvent, MagicBridge } from "@magic-xpa/engine";
|
|
3
3
|
import { GuiCommand, GuiInteractive } from "@magic-xpa/gui";
|
4
4
|
import { HttpClient } from "@angular/common/http";
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
+
/**
|
7
|
+
* @ignore
|
8
|
+
*/
|
6
9
|
export declare class EngineMagicService {
|
7
10
|
magicBridge: typeof MagicBridge;
|
8
11
|
isStub: boolean;
|
@@ -1,5 +1,11 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* This service supports custom actions on magic exit
|
4
|
+
*/
|
2
5
|
export declare class ExitMagicService {
|
6
|
+
/**
|
7
|
+
* Override this method to implement custom logic on magic exit
|
8
|
+
*/
|
3
9
|
exitMagic(): void;
|
4
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExitMagicService, never>;
|
5
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<ExitMagicService>;
|
@@ -13,6 +13,12 @@ export declare class MagicColorService {
|
|
13
13
|
constructor(http: HttpClient, colorFile1?: string);
|
14
14
|
private getColorData;
|
15
15
|
private hexToRgba;
|
16
|
+
/**
|
17
|
+
* Returns the rgba value of specified color
|
18
|
+
* @returns : value in format rgba(128,128,128,1)
|
19
|
+
* @param : colorNumber -0 based index of color for which RGBA values are returned
|
20
|
+
* @param: colorType : 1-MAGIC_FG_COLOR, 2-MAGIC_BG_COLOR
|
21
|
+
*/
|
16
22
|
getColor(colorIndex: number, colorType: number): any;
|
17
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<MagicColorService, never>;
|
18
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<MagicColorService>;
|
@@ -39,6 +39,9 @@ export declare const matDateProviders: ({
|
|
39
39
|
};
|
40
40
|
useClass?: undefined;
|
41
41
|
})[];
|
42
|
+
/**
|
43
|
+
* Magic service providers
|
44
|
+
*/
|
42
45
|
export declare const basicMagicProviders: (typeof SubformMagicService | typeof TitleMagicService | typeof AccessorMagicService | typeof TaskMagicService | typeof MagicServices | ({
|
43
46
|
provide: typeof DateAdapter;
|
44
47
|
useClass: typeof MgDateAdapter;
|
@@ -4,12 +4,18 @@ import { TaskMagicService } from "./task.magics.service";
|
|
4
4
|
import { TitleMagicService } from "./title.magic.service";
|
5
5
|
import { AccessorMagicService } from "./accessor.magic.service";
|
6
6
|
import * as i0 from "@angular/core";
|
7
|
+
/**
|
8
|
+
* Central place for adding the Magic services
|
9
|
+
*/
|
7
10
|
export declare class MagicServices {
|
8
11
|
task: TaskMagicService;
|
9
12
|
subformService: SubformMagicService;
|
10
13
|
tableService: TableMagicService;
|
11
14
|
titleService: TitleMagicService;
|
12
15
|
mgAccessorService: AccessorMagicService;
|
16
|
+
/**
|
17
|
+
* @ignore
|
18
|
+
*/
|
13
19
|
constructor(task: TaskMagicService, subformService: SubformMagicService, tableService: TableMagicService, titleService: TitleMagicService, mgAccessorService: AccessorMagicService);
|
14
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<MagicServices, never>;
|
15
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<MagicServices>;
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import { List } from '@magic-xpa/mscorelib';
|
2
2
|
import { ISubformMagicService } from './ISubformMagicService';
|
3
3
|
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* @ignore
|
6
|
+
*/
|
4
7
|
export declare class RouteCommand {
|
5
8
|
callerMgSubformServiceRef: ISubformMagicService;
|
6
9
|
routerOutletName: string;
|
@@ -8,6 +11,9 @@ export declare class RouteCommand {
|
|
8
11
|
parameters: any;
|
9
12
|
routeParams: List<any>;
|
10
13
|
}
|
14
|
+
/**
|
15
|
+
* @ignore
|
16
|
+
*/
|
11
17
|
export declare class RouterCommandsMagicService {
|
12
18
|
private pendingRouteCommands;
|
13
19
|
AddRouteCommand(routeCommand: RouteCommand): void;
|