@magic-xpa/angular 4.1200.0-dev4120.13 → 4.1200.0-dev4120.131

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 (117) hide show
  1. package/fesm2022/magic-xpa-angular.mjs +1945 -210
  2. package/fesm2022/magic-xpa-angular.mjs.map +1 -1
  3. package/index.d.ts +3 -0
  4. package/package.json +6 -8
  5. package/src/controls.metadata.model.d.ts +16 -0
  6. package/src/interfaces/sub-form-definition.iterface.d.ts +6 -0
  7. package/src/magic.core.module.d.ts +5 -2
  8. package/src/services/OverlayWindowService.d.ts +19 -0
  9. package/src/services/StylesMapManager.d.ts +3 -0
  10. package/src/services/accessor.magic.service.d.ts +245 -3
  11. package/src/services/commands-collector.magic.service.d.ts +3 -0
  12. package/src/services/component-list.magic.service.d.ts +27 -0
  13. package/src/services/confirmation.components.magic.provider.d.ts +16 -0
  14. package/src/services/engine.magic.service.d.ts +5 -0
  15. package/src/services/exit.magic.service.d.ts +6 -0
  16. package/src/services/magic-color.service.d.ts +6 -0
  17. package/src/services/magic.providers.d.ts +3 -0
  18. package/src/services/magic.services.d.ts +6 -0
  19. package/src/services/router-commands.magic.service.d.ts +6 -0
  20. package/src/services/subform.magic.service.d.ts +28 -0
  21. package/src/services/table.magic.service.d.ts +56 -0
  22. package/src/services/task.magics.service.d.ts +305 -0
  23. package/src/services/title.magic.service.d.ts +11 -0
  24. package/src/ui/GuiInteractiveExecutor.d.ts +3 -0
  25. package/src/ui/components/base-magic-alert.component.d.ts +16 -0
  26. package/src/ui/components/base-magic-confirm.component.d.ts +18 -0
  27. package/src/ui/components/magic-alert.component.d.ts +3 -0
  28. package/src/ui/components/magic-confirmation-box.component.d.ts +3 -0
  29. package/src/ui/directives/NonMagicControlDirective.d.ts +41 -0
  30. package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +6 -0
  31. package/src/ui/directives/magic/checkbox.magic.directive.d.ts +12 -0
  32. package/src/ui/directives/magic/combobox.magic.directive.d.ts +9 -0
  33. package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +6 -0
  34. package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +13 -0
  35. package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +6 -0
  36. package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +6 -0
  37. package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +3 -0
  38. package/src/ui/directives/magic/row.magic.directive.d.ts +15 -0
  39. package/src/ui/directives/magic-focus.directive.d.ts +3 -0
  40. package/src/ui/directives/magic.directive.d.ts +82 -0
  41. package/src/ui/directives/magicViewContainerRef.directive.d.ts +3 -0
  42. package/src/ui/directives/mgformat.magic.directive.d.ts +44 -0
  43. package/src/ui/directives/range-validator.magic.directive.d.ts +16 -0
  44. package/src/ui/magic-confirmationBox.d.ts +19 -0
  45. package/src/ui/magic-modal/base-magic-overlay-container.d.ts +9 -0
  46. package/src/ui/magic-modal/magic-modal-form.d.ts +3 -0
  47. package/src/ui/magic-modal/magic-modal-interface.d.ts +35 -0
  48. package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +20 -0
  49. package/src/ui/magic-modal/magic-overlay-container.d.ts +85 -0
  50. package/src/ui/magic-root.component.d.ts +42 -0
  51. package/src/ui/mgerror.magic.component.d.ts +19 -0
  52. package/src/ui/pipes/date.magic.pipe.d.ts +6 -0
  53. package/src/ui/pipes/time.magic.pipe.d.ts +3 -0
  54. package/src/ui/router-container.magic.component.d.ts +19 -0
  55. package/src/ui/subform.magic.component.d.ts +21 -0
  56. package/src/ui/task-base.magic.component.d.ts +78 -0
  57. package/src/ui/utils.d.ts +3 -0
  58. package/esm2022/index.mjs +0 -59
  59. package/esm2022/magic-xpa-angular.mjs +0 -2
  60. package/esm2022/src/controls.metadata.model.mjs +0 -183
  61. package/esm2022/src/interfaces/sub-form-definition.iterface.mjs +0 -2
  62. package/esm2022/src/magic.core.module.mjs +0 -159
  63. package/esm2022/src/services/ISubformMagicService.mjs +0 -2
  64. package/esm2022/src/services/OverlayWindowService.mjs +0 -245
  65. package/esm2022/src/services/StylesMapManager.mjs +0 -28
  66. package/esm2022/src/services/accessor.magic.service.mjs +0 -358
  67. package/esm2022/src/services/commands-collector.magic.service.mjs +0 -47
  68. package/esm2022/src/services/component-list.magic.service.mjs +0 -45
  69. package/esm2022/src/services/confirmation.components.magic.provider.mjs +0 -21
  70. package/esm2022/src/services/engine.magic.service.mjs +0 -80
  71. package/esm2022/src/services/exit.magic.service.mjs +0 -13
  72. package/esm2022/src/services/magic-color.service.mjs +0 -101
  73. package/esm2022/src/services/magic.lazy.loader.service.mjs +0 -16
  74. package/esm2022/src/services/magic.providers.mjs +0 -25
  75. package/esm2022/src/services/magic.services.mjs +0 -36
  76. package/esm2022/src/services/mg-date-adapter.mjs +0 -108
  77. package/esm2022/src/services/overlay.conainer.magic.provider.mjs +0 -14
  78. package/esm2022/src/services/router-commands.magic.service.mjs +0 -31
  79. package/esm2022/src/services/subform.magic.service.mjs +0 -195
  80. package/esm2022/src/services/table.magic.service.mjs +0 -81
  81. package/esm2022/src/services/task.magics.service.mjs +0 -648
  82. package/esm2022/src/services/title.magic.service.mjs +0 -19
  83. package/esm2022/src/ui/GuiInteractiveExecutor.mjs +0 -114
  84. package/esm2022/src/ui/components/base-magic-alert.component.mjs +0 -24
  85. package/esm2022/src/ui/components/base-magic-confirm.component.mjs +0 -24
  86. package/esm2022/src/ui/components/magic-alert.component.mjs +0 -36
  87. package/esm2022/src/ui/components/magic-confirmation-box.component.mjs +0 -42
  88. package/esm2022/src/ui/directives/NonMagicControlDirective.mjs +0 -58
  89. package/esm2022/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.mjs +0 -29
  90. package/esm2022/src/ui/directives/magic/checkbox.magic.directive.mjs +0 -100
  91. package/esm2022/src/ui/directives/magic/combobox.magic.directive.mjs +0 -37
  92. package/esm2022/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.mjs +0 -27
  93. package/esm2022/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.mjs +0 -85
  94. package/esm2022/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.mjs +0 -32
  95. package/esm2022/src/ui/directives/magic/input.noformcontrol.magic.directive.mjs +0 -28
  96. package/esm2022/src/ui/directives/magic/nocontrol.magic.directive.mjs +0 -193
  97. package/esm2022/src/ui/directives/magic/row.magic.directive.mjs +0 -62
  98. package/esm2022/src/ui/directives/magic-focus.directive.mjs +0 -20
  99. package/esm2022/src/ui/directives/magic.directive.mjs +0 -232
  100. package/esm2022/src/ui/directives/magicViewContainerRef.directive.mjs +0 -20
  101. package/esm2022/src/ui/directives/mgformat.magic.directive.mjs +0 -579
  102. package/esm2022/src/ui/directives/range-validator.magic.directive.mjs +0 -60
  103. package/esm2022/src/ui/magic-confirmationBox.mjs +0 -42
  104. package/esm2022/src/ui/magic-modal/base-magic-overlay-container.mjs +0 -22
  105. package/esm2022/src/ui/magic-modal/magic-modal-form.mjs +0 -6
  106. package/esm2022/src/ui/magic-modal/magic-modal-interface.mjs +0 -2
  107. package/esm2022/src/ui/magic-modal/magic-overlay-container-wrapper.mjs +0 -125
  108. package/esm2022/src/ui/magic-modal/magic-overlay-container.mjs +0 -162
  109. package/esm2022/src/ui/magic-root.component.mjs +0 -236
  110. package/esm2022/src/ui/mgerror.magic.component.mjs +0 -125
  111. package/esm2022/src/ui/pipes/date.magic.pipe.mjs +0 -106
  112. package/esm2022/src/ui/pipes/time.magic.pipe.mjs +0 -52
  113. package/esm2022/src/ui/pipes/time24.magic.pipe.mjs +0 -35
  114. package/esm2022/src/ui/router-container.magic.component.mjs +0 -115
  115. package/esm2022/src/ui/subform.magic.component.mjs +0 -56
  116. package/esm2022/src/ui/task-base.magic.component.mjs +0 -91
  117. package/esm2022/src/ui/utils.mjs +0 -54
package/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
1
4
  export * from "./src/controls.metadata.model";
2
5
  export * from "./src/magic.core.module";
3
6
  export * from "./src/interfaces/sub-form-definition.iterface";
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@magic-xpa/angular",
3
- "version": "4.1200.0-dev4120.13",
3
+ "version": "4.1200.0-dev4120.131",
4
4
  "license": "SEE LICENSE IN EULA.pdf",
5
5
  "dependencies": {
6
- "@magic-xpa/engine": "4.1200.0-dev4120.13",
7
- "@magic-xpa/angular-material-core": "4.1200.0-dev4120.13",
6
+ "@magic-xpa/engine": "4.1200.0-dev4120.131",
7
+ "@magic-xpa/angular-material-core": "4.1200.0-dev4120.131",
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.3.6",
17
- "@angular/common": "^17.3.6",
18
- "@angular/forms": "^17.3.6"
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,13 @@ 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/common/http";
35
+ import * as i34 from "@angular/cdk/drag-drop";
36
36
  import * as i35 from "@maskito/angular";
37
+ /**
38
+ * @ignore
39
+ */
37
40
  export declare class MagicModule {
38
41
  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, typeof i34.HttpClientModule], [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]>;
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]>;
40
43
  static ɵinj: i0.ɵɵInjectorDeclaration<MagicModule>;
41
44
  }
@@ -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>;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @ignore
3
+ */
1
4
  export declare class StylesMapManager {
2
5
  static StylesMap: Map<string, any>;
3
6
  static MagicPropertyToHtmlAttributeMap: Map<string, string>;
@@ -4,65 +4,307 @@ 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
+ 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
+ */
14
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
+ */
15
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
+ */
16
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
+ */
17
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
+ */
18
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
+ */
19
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
+ */
20
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
+ */
21
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
+ */
22
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
+ */
23
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
+ */
24
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
+ */
25
104
  isDisabled(controlId: string, rowId?: string): any;
105
+ /**
106
+ * @ignore
107
+ */
26
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
+ */
27
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
+ */
28
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
+ */
29
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
+ */
30
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
+ */
31
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
+ */
32
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
+ */
33
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
+ */
34
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
+ */
35
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
+ */
36
179
  getCustomProperty(controlId: string, propertyNameOrRowID?: string, rowId?: string): any;
37
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
+ */
38
187
  getItemListValues(id: string, rowId?: string): Array<{
39
188
  index: number;
40
189
  displayValue: string;
41
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
+ */
42
197
  getFilteredList(controlId: string, rowId?: string): Array<{
43
198
  index: number;
44
199
  displayValue: string;
45
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
+ */
46
207
  getDisplayValue(id: any, rowId?: any): string;
47
- isOptionSelected(index: any, controlId: any): boolean;
48
- isTabPageSelected(controlId: string, layer: number): boolean;
49
- isTabPageLayerSelected(controlId: string, layer: number): boolean;
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
+ */
50
231
  getTabSelectedIndex(controlId: string): any;
232
+ /**
233
+ * @ignore
234
+ */
51
235
  ifRowCreated(row: any): boolean;
236
+ /**
237
+ * @ignore
238
+ */
52
239
  getFormGroupByRow(id: string): FormGroup;
240
+ /**
241
+ * @ignore
242
+ */
53
243
  isRowSelected(controlId: any, rowId?: any): boolean;
244
+ /**
245
+ * Returns whether a row is in edit state
246
+ * @param row
247
+ */
54
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
+ */
55
253
  isCurrentInRowEditing(): boolean;
254
+ /**
255
+ * @ignore
256
+ */
56
257
  guiTopIndex(): number;
258
+ /**
259
+ * @ignore
260
+ */
57
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
+ */
58
269
  setValueToControl(controlName: string, value: any, refreshDisplay?: boolean): void;
270
+ /**
271
+ * @ignore
272
+ */
59
273
  isDataviewEmpty(): boolean;
274
+ /**
275
+ * simulates a click event on the specified control, for the Magic engine
276
+ * @param controlName
277
+ * @param rowId
278
+ */
60
279
  simulateClick(controlName: string, rowId?: number): void;
280
+ /**
281
+ * Return Boolean TRUE if user logged in Else it will return FALSE
282
+ */
61
283
  isLoggedIn(): boolean;
284
+ /**
285
+ * Returns JS object containing the records with all table fields.
286
+ */
62
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
+ */
63
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
+ */
64
300
  GetCookie(name: string): any;
301
+ /**
302
+ * DeleteCookie : deletes the cookie
303
+ */
65
304
  DeleteCookie(name: string): any;
305
+ /**
306
+ * get RGBA color from color file
307
+ */
66
308
  getColor(colorNumber: number, colorType: any): any;
67
309
  static ɵfac: i0.ɵɵFactoryDeclaration<AccessorMagicService, never>;
68
310
  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;
@@ -14,6 +17,8 @@ export declare class EngineMagicService {
14
17
  insertEvent(guiEvent: IGuiEvent): void;
15
18
  GetRangedValue(taskId: string, controlName: string, value: string): string;
16
19
  GetControlPictureMask(taskId: string, controlName: string): any;
20
+ UploadFileToServer(fileContent: any, serverFileName: string): any;
21
+ DownloadFileFromServer(serverFileName: string): Promise<ArrayBuffer>;
17
22
  GetFormattedValue(taskId: string, controlName: string, value: any, rowId?: string): any;
18
23
  ValidateControlValue(taskId: string, controlName: string, value: any): string;
19
24
  GetFldRanges(taskId: string, controlName: string): string;
@@ -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;