@magic-xpa/angular 4.1201.0-dev4121.306 → 4.1201.0-dev4121.308

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 (64) hide show
  1. package/README.md +5 -5
  2. package/fesm2022/magic-xpa-angular.mjs +193 -163
  3. package/fesm2022/magic-xpa-angular.mjs.map +1 -1
  4. package/package.json +10 -10
  5. package/types/magic-xpa-angular.d.ts +2564 -0
  6. package/index.d.ts +0 -61
  7. package/src/controls.metadata.model.d.ts +0 -78
  8. package/src/interfaces/sub-form-definition.iterface.d.ts +0 -18
  9. package/src/magic.core.module.d.ts +0 -44
  10. package/src/services/ISubformMagicService.d.ts +0 -4
  11. package/src/services/OverlayWindowService.d.ts +0 -49
  12. package/src/services/StylesMapManager.d.ts +0 -8
  13. package/src/services/accessor.magic.service.d.ts +0 -311
  14. package/src/services/commands-collector.magic.service.d.ts +0 -18
  15. package/src/services/component-list.magic.service.d.ts +0 -50
  16. package/src/services/confirmation.components.magic.provider.d.ts +0 -24
  17. package/src/services/engine.magic.service.d.ts +0 -32
  18. package/src/services/exit.magic.service.d.ts +0 -12
  19. package/src/services/magic-color.service.d.ts +0 -25
  20. package/src/services/magic.lazy.loader.service.d.ts +0 -6
  21. package/src/services/magic.providers.d.ts +0 -110
  22. package/src/services/magic.services.d.ts +0 -22
  23. package/src/services/mg-date-adapter.d.ts +0 -38
  24. package/src/services/overlay.conainer.magic.provider.d.ts +0 -7
  25. package/src/services/router-commands.magic.service.d.ts +0 -23
  26. package/src/services/subform.magic.service.d.ts +0 -71
  27. package/src/services/table.magic.service.d.ts +0 -86
  28. package/src/services/task.magics.service.d.ts +0 -405
  29. package/src/services/title.magic.service.d.ts +0 -20
  30. package/src/ui/GuiInteractiveExecutor.d.ts +0 -25
  31. package/src/ui/components/base-magic-alert.component.d.ts +0 -26
  32. package/src/ui/components/base-magic-confirm.component.d.ts +0 -28
  33. package/src/ui/components/magic-alert.component.d.ts +0 -9
  34. package/src/ui/components/magic-confirmation-box.component.d.ts +0 -9
  35. package/src/ui/directives/NonMagicControlDirective.d.ts +0 -67
  36. package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +0 -15
  37. package/src/ui/directives/magic/checkbox.magic.directive.d.ts +0 -34
  38. package/src/ui/directives/magic/combobox.magic.directive.d.ts +0 -19
  39. package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +0 -13
  40. package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +0 -36
  41. package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +0 -13
  42. package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +0 -15
  43. package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +0 -21
  44. package/src/ui/directives/magic/row.magic.directive.d.ts +0 -32
  45. package/src/ui/directives/magic-focus.directive.d.ts +0 -12
  46. package/src/ui/directives/magic.directive.d.ts +0 -127
  47. package/src/ui/directives/magicViewContainerRef.directive.d.ts +0 -11
  48. package/src/ui/directives/mgformat.magic.directive.d.ts +0 -82
  49. package/src/ui/directives/range-validator.magic.directive.d.ts +0 -33
  50. package/src/ui/magic-confirmationBox.d.ts +0 -25
  51. package/src/ui/magic-modal/base-magic-overlay-container.d.ts +0 -14
  52. package/src/ui/magic-modal/magic-modal-form.d.ts +0 -8
  53. package/src/ui/magic-modal/magic-modal-interface.d.ts +0 -45
  54. package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +0 -50
  55. package/src/ui/magic-modal/magic-overlay-container.d.ts +0 -117
  56. package/src/ui/magic-root.component.d.ts +0 -85
  57. package/src/ui/mgerror.magic.component.d.ts +0 -39
  58. package/src/ui/pipes/date.magic.pipe.d.ts +0 -23
  59. package/src/ui/pipes/time.magic.pipe.d.ts +0 -14
  60. package/src/ui/pipes/time24.magic.pipe.d.ts +0 -10
  61. package/src/ui/router-container.magic.component.d.ts +0 -50
  62. package/src/ui/subform.magic.component.d.ts +0 -37
  63. package/src/ui/task-base.magic.component.d.ts +0 -112
  64. package/src/ui/utils.d.ts +0 -12
package/index.d.ts DELETED
@@ -1,61 +0,0 @@
1
- /**
2
- * @file Automatically generated by barrelsby.
3
- */
4
- export * from "./src/controls.metadata.model";
5
- export * from "./src/magic.core.module";
6
- export * from "./src/interfaces/sub-form-definition.iterface";
7
- export * from "./src/services/accessor.magic.service";
8
- export * from "./src/services/commands-collector.magic.service";
9
- export * from "./src/services/component-list.magic.service";
10
- export * from "./src/services/confirmation.components.magic.provider";
11
- export * from "./src/services/engine.magic.service";
12
- export * from "./src/services/exit.magic.service";
13
- export * from "./src/services/ISubformMagicService";
14
- export * from "./src/services/magic-color.service";
15
- export * from "./src/services/magic.lazy.loader.service";
16
- export * from "./src/services/magic.providers";
17
- export * from "./src/services/magic.services";
18
- export * from "./src/services/mg-date-adapter";
19
- export * from "./src/services/overlay.conainer.magic.provider";
20
- export * from "./src/services/OverlayWindowService";
21
- export * from "./src/services/router-commands.magic.service";
22
- export * from "./src/services/StylesMapManager";
23
- export * from "./src/services/subform.magic.service";
24
- export * from "./src/services/table.magic.service";
25
- export * from "./src/services/task.magics.service";
26
- export * from "./src/services/title.magic.service";
27
- export * from "./src/ui/GuiInteractiveExecutor";
28
- export * from "./src/ui/magic-confirmationBox";
29
- export * from "./src/ui/magic-root.component";
30
- export * from "./src/ui/mgerror.magic.component";
31
- export * from "./src/ui/router-container.magic.component";
32
- export * from "./src/ui/subform.magic.component";
33
- export * from "./src/ui/task-base.magic.component";
34
- export * from "./src/ui/utils";
35
- export * from "./src/ui/components/base-magic-alert.component";
36
- export * from "./src/ui/components/base-magic-confirm.component";
37
- export * from "./src/ui/components/magic-alert.component";
38
- export * from "./src/ui/components/magic-confirmation-box.component";
39
- export * from "./src/ui/directives/magic-focus.directive";
40
- export * from "./src/ui/directives/magic.directive";
41
- export * from "./src/ui/directives/magicViewContainerRef.directive";
42
- export * from "./src/ui/directives/mgformat.magic.directive";
43
- export * from "./src/ui/directives/NonMagicControlDirective";
44
- export * from "./src/ui/directives/range-validator.magic.directive";
45
- export * from "./src/ui/directives/magic/checkbox-noformcontrol.magic.directive";
46
- export * from "./src/ui/directives/magic/checkbox.magic.directive";
47
- export * from "./src/ui/directives/magic/combobox.magic.directive";
48
- export * from "./src/ui/directives/magic/input.noformcontrol.magic.directive";
49
- export * from "./src/ui/directives/magic/nocontrol.magic.directive";
50
- export * from "./src/ui/directives/magic/row.magic.directive";
51
- export * from "./src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive";
52
- export * from "./src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive";
53
- export * from "./src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive";
54
- export * from "./src/ui/magic-modal/base-magic-overlay-container";
55
- export * from "./src/ui/magic-modal/magic-modal-form";
56
- export * from "./src/ui/magic-modal/magic-modal-interface";
57
- export * from "./src/ui/magic-modal/magic-overlay-container-wrapper";
58
- export * from "./src/ui/magic-modal/magic-overlay-container";
59
- export * from "./src/ui/pipes/date.magic.pipe";
60
- export * from "./src/ui/pipes/time.magic.pipe";
61
- export * from "./src/ui/pipes/time24.magic.pipe";
@@ -1,78 +0,0 @@
1
- import { StorageAttribute } from "@magic-xpa/utils";
2
- import { HtmlProperties, CustomValidator } from "@magic-xpa/gui";
3
- /**
4
- * @ignore
5
- */
6
- export declare class ControlMetadata {
7
- controlType: string;
8
- dataType: StorageAttribute;
9
- properties: Map<HtmlProperties, any>;
10
- classesMap: Map<HtmlClasses, any>;
11
- stylesMap: Map<HtmlClasses, any>;
12
- removedClass: string;
13
- classes: string;
14
- rangeValidator: boolean;
15
- userProperties: Map<string, any>;
16
- customValidators: Map<string, CustomValidator>;
17
- setClass(key: any, value: any): void;
18
- setStyle(key: any, value: any): void;
19
- }
20
- /**
21
- * @ignore
22
- */
23
- export declare class ControlsMetadata {
24
- values: Map<string, string>;
25
- ControlsProperties: Map<string, ControlMetadata>;
26
- rowId: string;
27
- isCreated: boolean;
28
- isEditing: boolean;
29
- get Values(): Map<string, string>;
30
- getControlMetadata(controlId: string): ControlMetadata;
31
- update(obj: any): void;
32
- setValue(controlName: string, value: any): void;
33
- getProperty(controlId: string, prop: HtmlProperties): any;
34
- getValue(controlName: string): string;
35
- }
36
- /**
37
- * @ignore
38
- */
39
- export declare class Records {
40
- data: Map<number, ControlsMetadata>;
41
- list: ControlsMetadata[];
42
- includesFirst: boolean;
43
- includesLast: boolean;
44
- guiTopIndex: number;
45
- recordsBeforeCurrentView: number;
46
- isEmptyDataView: boolean;
47
- sizeUpdated: boolean;
48
- getRow(dvRowId: number): ControlsMetadata;
49
- markRowAsCreated(guiRowId: number): void;
50
- markRowAsNotCreated(guiRowId: number): void;
51
- isRowCreated(guiRowId: number): boolean;
52
- startRowEditing(guiRowId: number): void;
53
- stopRowEditing(guiRowId: number): void;
54
- isRowInRowEditing(guiRowId: string): boolean;
55
- update(obj: any): void;
56
- updateSize(len: number): void;
57
- /**
58
- * crears data for the first record
59
- * @param template
60
- */
61
- clearFirstTableRecord(template: {
62
- [id: string]: string;
63
- }): void;
64
- addRow(guiRowId: number): void;
65
- createFirst(): void;
66
- fromJson(data: string): void;
67
- setGuiTopIndex(topIndex: number): void;
68
- getGuiTopIndex(): number;
69
- }
70
- /**
71
- * @ignore
72
- */
73
- export declare enum HtmlClasses {
74
- Color = "color",
75
- font = "font",
76
- FocusColor = "focuscolor",
77
- HintColor = "hintcolor"
78
- }
@@ -1,18 +0,0 @@
1
- import { ViewContainerRef } from "@angular/core";
2
- /**
3
- * @ignore
4
- */
5
- export interface SubformDefinition {
6
- formName: string;
7
- parameters: any;
8
- }
9
- /**
10
- * @ignore
11
- */
12
- export interface RouteDefinition {
13
- formName: string;
14
- parameters: any;
15
- }
16
- export interface IMagicViewContainerRef {
17
- setViewContainerRef(vcRef: ViewContainerRef): any;
18
- }
@@ -1,44 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./ui/directives/magic.directive";
3
- import * as i2 from "./ui/directives/magic/checkbox.magic.directive";
4
- import * as i3 from "./ui/directives/magic/checkbox-noformcontrol.magic.directive";
5
- import * as i4 from "./ui/directives/magic/input.noformcontrol.magic.directive";
6
- import * as i5 from "./ui/directives/magic/combobox.magic.directive";
7
- import * as i6 from "./ui/directives/magic/row.magic.directive";
8
- import * as i7 from "./ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive";
9
- import * as i8 from "./ui/directives/magic/form-controls/control-value-accessors/default.cva.directive";
10
- import * as i9 from "./ui/directives/magic/form-controls/control-value-accessors/date.cva.directive";
11
- import * as i10 from "./ui/task-base.magic.component";
12
- import * as i11 from "./ui/magic-modal/magic-overlay-container";
13
- import * as i12 from "./ui/components/magic-alert.component";
14
- import * as i13 from "./ui/components/magic-confirmation-box.component";
15
- import * as i14 from "./ui/components/base-magic-alert.component";
16
- import * as i15 from "./ui/components/base-magic-confirm.component";
17
- import * as i16 from "./ui/magic-modal/magic-overlay-container-wrapper";
18
- import * as i17 from "./ui/router-container.magic.component";
19
- import * as i18 from "./ui/magic-root.component";
20
- import * as i19 from "./ui/subform.magic.component";
21
- import * as i20 from "./ui/mgerror.magic.component";
22
- import * as i21 from "./ui/directives/magic/nocontrol.magic.directive";
23
- import * as i22 from "./ui/directives/mgformat.magic.directive";
24
- import * as i23 from "./ui/pipes/date.magic.pipe";
25
- import * as i24 from "./ui/pipes/time.magic.pipe";
26
- import * as i25 from "./ui/directives/range-validator.magic.directive";
27
- import * as i26 from "./ui/directives/NonMagicControlDirective";
28
- import * as i27 from "./ui/directives/magic-focus.directive";
29
- import * as i28 from "./ui/directives/magicViewContainerRef.directive";
30
- import * as i29 from "./ui/pipes/time24.magic.pipe";
31
- import * as i30 from "@angular/common";
32
- import * as i31 from "@angular/forms";
33
- import * as i32 from "@angular/router";
34
- import * as i33 from "ng-dynamic-component";
35
- import * as i34 from "@angular/cdk/drag-drop";
36
- import * as i35 from "@maskito/angular";
37
- /**
38
- * @ignore
39
- */
40
- export declare class MagicModule {
41
- static ɵfac: i0.ɵɵFactoryDeclaration<MagicModule, never>;
42
- static ɵmod: i0.ɵɵNgModuleDeclaration<MagicModule, [typeof i1.MagicDirective, typeof i2.CheckboxMagicDirective, typeof i3.CheckboxNoFormControlMagicDirective, typeof i4.InputNoFormControlMagicDirective, typeof i5.ComboboxMagicDirective, typeof i6.RowMagicDirective, typeof i7.MagicCheckboxControlValueAccessor, typeof i8.MagicDefaultValueAccessor, typeof i9.DateValueAccessor, typeof i10.TaskBaseMagicComponent, typeof i11.MagicOverlayContainer, typeof i12.MagicAlertComponent, typeof i13.MagicConfirmationBoxComponent, typeof i14.BaseMagicAlertComponent, typeof i15.BaseMagicConfirmComponent, typeof i16.MagicOverlayContainerWrapper, typeof i17.RouterContainerMagicComponent, typeof i18.MagicShellComponent, typeof i19.SubformMagicComponent, typeof i20.ErrorMagicComponent, typeof i21.NoControlMagicDirective, typeof i22.MgformatMagicDirective, typeof i23.DateMagicPipe, typeof i24.TimeMagicPipe, typeof i25.RangeValidatorMagicDirective, typeof i26.NonMagicControlDirective, typeof i27.MagicFocusDirective, typeof i28.MagicViewContainerRef, typeof i29.Time24MagicPipe], [typeof i30.CommonModule, typeof i31.FormsModule, typeof i31.ReactiveFormsModule, typeof i32.RouterModule, typeof i33.DynamicModule, typeof i34.CdkDragHandle, typeof i34.CdkDrag, typeof i34.DragDropModule], [typeof i1.MagicDirective, typeof i2.CheckboxMagicDirective, typeof i3.CheckboxNoFormControlMagicDirective, typeof i4.InputNoFormControlMagicDirective, typeof i5.ComboboxMagicDirective, typeof i6.RowMagicDirective, typeof i7.MagicCheckboxControlValueAccessor, typeof i8.MagicDefaultValueAccessor, typeof i9.DateValueAccessor, typeof i10.TaskBaseMagicComponent, typeof i11.MagicOverlayContainer, typeof i12.MagicAlertComponent, typeof i13.MagicConfirmationBoxComponent, typeof i14.BaseMagicAlertComponent, typeof i15.BaseMagicConfirmComponent, typeof i16.MagicOverlayContainerWrapper, typeof i17.RouterContainerMagicComponent, typeof i18.MagicShellComponent, typeof i19.SubformMagicComponent, typeof i20.ErrorMagicComponent, typeof i21.NoControlMagicDirective, typeof i22.MgformatMagicDirective, typeof i23.DateMagicPipe, typeof i24.TimeMagicPipe, typeof i25.RangeValidatorMagicDirective, typeof i26.NonMagicControlDirective, typeof i27.MagicFocusDirective, typeof i28.MagicViewContainerRef, typeof i29.Time24MagicPipe, typeof i35.MaskitoModule]>;
43
- static ɵinj: i0.ɵɵInjectorDeclaration<MagicModule>;
44
- }
@@ -1,4 +0,0 @@
1
- import { RouteCommand } from "./router-commands.magic.service";
2
- export interface ISubformMagicService {
3
- ExecuteRouteCommand(routeCommand: RouteCommand): any;
4
- }
@@ -1,49 +0,0 @@
1
- import { Injector, ChangeDetectorRef, Compiler, ViewContainerRef } from "@angular/core";
2
- import { ComponentListMagicService } from "./component-list.magic.service";
3
- import { EngineMagicService } from "./engine.magic.service";
4
- import { OverlayContainerMagicProvider } from "./overlay.conainer.magic.provider";
5
- import { ConfirmationComponentsMagicProvider } from "./confirmation.components.magic.provider";
6
- import { Styles } from "@magic-xpa/gui";
7
- import { MagicLazyLoaderService } from "./magic.lazy.loader.service";
8
- import * as i0 from "@angular/core";
9
- /**
10
- * Service managing overlay windows
11
- */
12
- export declare class OverlayWindowService {
13
- protected componentList: ComponentListMagicService;
14
- protected engineMagicService: EngineMagicService;
15
- private magicLazyModuleLoader;
16
- private injector;
17
- private compiler;
18
- private overlayContainerMagicProvider;
19
- private confirmationComponentsMagicProvider;
20
- constructor(componentList: ComponentListMagicService, engineMagicService: EngineMagicService, magicLazyModuleLoader: MagicLazyLoaderService, injector: Injector, compiler: Compiler, overlayContainerMagicProvider: OverlayContainerMagicProvider, confirmationComponentsMagicProvider: ConfirmationComponentsMagicProvider);
21
- private overlayWindowsContainerViewRef;
22
- private overlayWindowFocusManager;
23
- private changeDetectorRef;
24
- init(overlayWindowsContainerViewRef: ViewContainerRef, rootMagicElement: Element, changeDetectorRef: ChangeDetectorRef): void;
25
- loadAndOpenModule(formName: string, taskId: string, taskDescription: string): void;
26
- open(formName: string, taskId: string, taskDescription: string): void;
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
- */
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
- */
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
- */
46
- private createModalComponent;
47
- static ɵfac: i0.ɵɵFactoryDeclaration<OverlayWindowService, never>;
48
- static ɵprov: i0.ɵɵInjectableDeclaration<OverlayWindowService>;
49
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * @ignore
3
- */
4
- export declare class StylesMapManager {
5
- static StylesMap: Map<string, any>;
6
- static MagicPropertyToHtmlAttributeMap: Map<string, string>;
7
- static magicValueGetStyle(styleName: string, magicValue: any): string;
8
- }
@@ -1,311 +0,0 @@
1
- import { TaskMagicService } from './task.magics.service';
2
- import { HtmlProperties } from '@magic-xpa/gui';
3
- import { FormGroup } from '@angular/forms';
4
- import { MagicColorService } from './magic-color.service';
5
- import { MaskitoOptions } from "@maskito/core";
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Provides the UI with values calculated by the Magic WebClient
9
- */
10
- export declare class AccessorMagicService {
11
- protected task: TaskMagicService;
12
- protected magicColor: MagicColorService;
13
- Logger: any;
14
- readonly hhmm: MaskitoOptions;
15
- readonly hhmmss: MaskitoOptions;
16
- /**
17
- * @ignore
18
- */
19
- constructor(task: TaskMagicService, magicColor: MagicColorService);
20
- UploadFileToServer(fileContent: any, serverFileName: string): any;
21
- DownloadFileFromServer(serverFileName: string): Promise<ArrayBuffer>;
22
- /**
23
- * Checks if the control is read-only
24
- * @param controlId Id of control
25
- * @returns Is the control not read-only
26
- */
27
- checkIsReadOnly(controlId: string): boolean;
28
- /**
29
- * Returns the text of the control
30
- * @param controlId Id of control
31
- * @param rowId Id of row, if applicable
32
- * @returns The text of the control
33
- */
34
- getText(controlId: string, rowId?: string): string;
35
- /**
36
- * Gets the text of the tab page
37
- * @param controlId Id of control
38
- * @param layer Id of tabpage
39
- * @returns Text of tabpage
40
- */
41
- getTabpageText(controlId: string, layer: number): string;
42
- /**
43
- * Gets the image defined for the control
44
- * @param controlId Id of control
45
- * @param rowId Id of row, if applicable
46
- * @returns Image set on control
47
- */
48
- getImage(controlId: string, rowId?: string): string;
49
- /**
50
- * Returns whether an image is set for this control
51
- * @param controlId Id of control
52
- * @param rowId Id of row, if applicable
53
- * @returns returns true if control has an image set on it
54
- */
55
- isImageExists(controlId: string, rowId?: string): boolean;
56
- /**
57
- * Gets the CSS classes set on the control
58
- * @param controlId Id of control
59
- * @param rowId Id of row, if applicable
60
- * @returns The classes for this control
61
- */
62
- getClasses(controlId: string, rowId?: string): string;
63
- /**
64
- * Gets the CSS styles set on the control
65
- * @param controlId Id of control
66
- * @param styleName NAme of style requested
67
- * @param rowId Id of row, if applicable
68
- * @returns The style set on the control
69
- */
70
- getStyle(controlId: string, styleName: string, rowId?: string): string;
71
- /**
72
- * Returns whether a control is visible or not
73
- * @param controlId Id of control
74
- * @param rowId Id of row, if applicable
75
- * @returns Is the control visible or hidden
76
- */
77
- getVisible(controlId: string, rowId?: string): string;
78
- /**
79
- * Returns alpha mask of a control
80
- * @param controlId Id of control
81
- * @param rowId Id of row, if applicable
82
- * @returns alpha mask of the control
83
- */
84
- getAlphaMask(controlId: string, rowId?: string): string;
85
- /**
86
- * Returns object representing numeric picture
87
- * @param picture string which is defined in magic
88
- * @returns object representing numeric picture
89
- */
90
- getNumericPicture(picture: string): any;
91
- /**
92
- * Returns whether a control should have the "required" attribute set on it
93
- * @param controlId Id of control
94
- * @param rowId Id of row, if applicable
95
- * @returns
96
- */
97
- getMustInput(controlId: string, rowId?: string): string;
98
- /**
99
- * Returns whether a control is disabled
100
- * @param controlId Id of control
101
- * @param rowId Id of row, if applicable
102
- * @returns
103
- */
104
- isDisabled(controlId: string, rowId?: string): any;
105
- /**
106
- * @ignore
107
- */
108
- getProperty(controlId: string, prop: HtmlProperties, rowId?: string): any;
109
- /**
110
- * Returns the title (tooltip) text of the control
111
- * @param controlId Id of control
112
- * @param rowId Id of row, if applicable
113
- * @returns
114
- */
115
- getTitle(controlId: string, rowId?: string): string;
116
- /**
117
- * Returns the title (tooltip) text of the control
118
- * @param controlId Id of control
119
- * @param rowId Id of row, if applicable
120
- * @returns
121
- */
122
- getZoomButtonTitle(controlId: string, rowId?: string): string;
123
- /**
124
- * Gets the selection control's selected value
125
- * @param controlId Id of control
126
- * @param rowId Id of row, if applicable
127
- * @returns
128
- */
129
- getSelectedValue(controlId: string, rowId?: string): string;
130
- /**
131
- * Gets the place-holder text of the control
132
- * @param controlId Id of control
133
- * @param rowId Id of row, if applicable
134
- * @returns
135
- */
136
- getPlaceholder(controlId: string, rowId?: string): string;
137
- /**
138
- * Returns a type for input controls - should the control be a simple text or a password control
139
- * @param controlId Id of control
140
- * @param rowId Id of row, if applicable
141
- * @returns
142
- */
143
- getType(controlId: string, rowId?: string): string;
144
- /**
145
- * Returns the tab-index of the control
146
- * @param controlId Id of control
147
- * @param rowId Id of row, if applicable
148
- * @returns
149
- */
150
- getTabIndex(controlId: string, rowId?: string): number;
151
- /**
152
- * Returns the value of the control
153
- * @param controlId Id of control
154
- * @param rowId Id of row, if applicable
155
- * @returns
156
- */
157
- getValue(controlId: string, rowId?: string): any;
158
- /**
159
- * Returns the formatted value of the control
160
- * @param controlId Id of control
161
- * @param rowId Id of row, if applicable
162
- * @returns
163
- */
164
- getFormattedValue(controlId: string, rowId?: string): string;
165
- /**
166
- * Returns the Picture of the control
167
- * @param controlId Id of control
168
- * @param rowId Id of row, if applicable
169
- * @returns
170
- */
171
- getPicture(controlId: string, rowId?: string): string;
172
- /**
173
- * Returns the custom (user) properties of the control
174
- * @param controlId Id of control
175
- * @param propertyName Name of requested property
176
- * @param rowId Id of row, if applicable
177
- * @returns
178
- */
179
- getCustomProperty(controlId: string, propertyNameOrRowID?: string, rowId?: string): any;
180
- getCustomProperty_1(controlId: string, propertyName: string, rowId?: string): any;
181
- /**
182
- * Gets the values of the items of a selection control
183
- * @param id Id of control
184
- * @param rowId Id of row, if applicable
185
- * @returns
186
- */
187
- getItemListValues(id: string, rowId?: string): Array<{
188
- index: number;
189
- displayValue: string;
190
- }>;
191
- /**
192
- * Gets the filtered items list based on the current value of the control
193
- * @param controlId Id of control
194
- * @param rowId Id of row, if applicable
195
- * @returns
196
- */
197
- getFilteredList(controlId: string, rowId?: string): Array<{
198
- index: number;
199
- displayValue: string;
200
- }>;
201
- /**
202
- * Gets the display value of the item from items of a selection control
203
- * @param id Id of control
204
- * @param rowId Id of row, if applicable
205
- * @returns
206
- */
207
- getDisplayValue(id: any, rowId?: any): string;
208
- /**
209
- * Returns whether a tab page is selected or not
210
- * @param index of current option in iterarotr
211
- * @param control Id of list control
212
- * @returns
213
- */ isOptionSelected(index: any, controlId: any): boolean;
214
- /**
215
- * Returns whether a tab page is selected or not - used for the tab buttons
216
- * @param controlId Id of control
217
- * @param layer Id of the tab page
218
- * @returns
219
- */ isTabPageSelected(controlId: string, layer: number): boolean;
220
- /**
221
- * Returns whether a tab page layer is selected or not - used for the div which represents the tab page
222
- * @param controlId Id of control
223
- * @param layer Id of the tab page
224
- * @returns
225
- */ isTabPageLayerSelected(controlId: string, layer: number): boolean;
226
- /**
227
- * Returns the index of the selected tab page
228
- * @param controlId Id of control
229
- * @returns
230
- */
231
- getTabSelectedIndex(controlId: string): any;
232
- /**
233
- * @ignore
234
- */
235
- ifRowCreated(row: any): boolean;
236
- /**
237
- * @ignore
238
- */
239
- getFormGroupByRow(id: string): FormGroup;
240
- /**
241
- * @ignore
242
- */
243
- isRowSelected(controlId: any, rowId?: any): boolean;
244
- /**
245
- * Returns whether a row is in edit state
246
- * @param row
247
- */
248
- isRowInRowEditing(row?: any): boolean;
249
- /**
250
- * Returns whether a row is in edit state, use this method while control outside table control
251
- * @param row
252
- */
253
- isCurrentInRowEditing(): boolean;
254
- /**
255
- * @ignore
256
- */
257
- guiTopIndex(): number;
258
- /**
259
- * @ignore
260
- */
261
- getErrMsg(id: string, rowId: string): string;
262
- private getNumericFormatErrorString;
263
- /**
264
- * Sets a user-supplied value to the specified control
265
- * @param controlName
266
- * @param value
267
- * @param refreshDisplay
268
- */
269
- setValueToControl(controlName: string, value: any, refreshDisplay?: boolean): void;
270
- /**
271
- * @ignore
272
- */
273
- isDataviewEmpty(): boolean;
274
- /**
275
- * simulates a click event on the specified control, for the Magic engine
276
- * @param controlName
277
- * @param rowId
278
- */
279
- simulateClick(controlName: string, rowId?: number): void;
280
- /**
281
- * Return Boolean TRUE if user logged in Else it will return FALSE
282
- */
283
- isLoggedIn(): boolean;
284
- /**
285
- * Returns JS object containing the records with all table fields.
286
- */
287
- GetFormRecords(): any;
288
- /**
289
- * SetCookie : set the cookie with specified name and value in browser
290
- * expires - expiration time
291
- * path - path which much exists in order so that cookie is sent as header
292
- * domain - specifies which hosts are allowed to receive the cookie
293
- * secure - specifies if cookie is secure ( works only with HTTPS)
294
- * sameSite - lets servers specify whether/when cookies are sent with cross-site requests
295
- */
296
- SetCookie(name: string, value: any, expires?: Date, path?: any, domain?: any, secure?: any, sameSite?: any): void;
297
- /**
298
- * GetCookie : get the cookie with specified name and value in browser
299
- */
300
- GetCookie(name: string): any;
301
- /**
302
- * DeleteCookie : deletes the cookie
303
- */
304
- DeleteCookie(name: string): any;
305
- /**
306
- * get RGBA color from color file
307
- */
308
- getColor(colorNumber: number, colorType: any): any;
309
- static ɵfac: i0.ɵɵFactoryDeclaration<AccessorMagicService, never>;
310
- static ɵprov: i0.ɵɵInjectableDeclaration<AccessorMagicService>;
311
- }
@@ -1,18 +0,0 @@
1
- import { EngineMagicService } from './engine.magic.service';
2
- import { GuiCommand } from '@magic-xpa/gui';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @ignore
6
- */
7
- export declare class CommandsCollectorMagicService {
8
- protected magic: EngineMagicService;
9
- private count;
10
- private commands;
11
- private subscription;
12
- constructor(magic: EngineMagicService);
13
- startCollecting(): void;
14
- stopCollecting(): void;
15
- GetCommands(taskId: string): GuiCommand[];
16
- static ɵfac: i0.ɵɵFactoryDeclaration<CommandsCollectorMagicService, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<CommandsCollectorMagicService>;
18
- }
@@ -1,50 +0,0 @@
1
- import { NgModuleRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export interface ComponentData {
4
- component: any;
5
- moduleRef: NgModuleRef<any>;
6
- }
7
- export interface ModuleData {
8
- moduleName: string;
9
- modulePath: string;
10
- }
11
- /**
12
- * Manages the list of components in a project, and the project title
13
- */
14
- export declare class ComponentListMagicService {
15
- /**
16
- * Map of project components
17
- */
18
- components: Map<string, ComponentData>;
19
- /**
20
- * Map of project dialogs
21
- */
22
- dialogs: Map<string, any>;
23
- lazyLoadModulesMap: any;
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
- */
30
- getComponent(name: string, mustHaveData?: boolean): any;
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
- */
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
- */
43
- getLazyLoadModuleData(name: string): ModuleData;
44
- /**
45
- * Project title
46
- */
47
- title: string;
48
- static ɵfac: i0.ɵɵFactoryDeclaration<ComponentListMagicService, never>;
49
- static ɵprov: i0.ɵɵInjectableDeclaration<ComponentListMagicService>;
50
- }
@@ -1,24 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Service managing alert and confirmation windows
4
- * This is Magic's default provider
5
- */
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
- */
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
- */
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
- */
21
- getConfirmtionComponent(): any;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponentsMagicProvider, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationComponentsMagicProvider>;
24
- }