@magic-xpa/angular 4.1200.0-dev4120.1 → 4.1200.0-dev4120.100

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 +1795 -192
  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 -3
  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 +244 -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 +4 -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 +304 -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 +27 -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 +51 -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.1",
3
+ "version": "4.1200.0-dev4120.100",
4
4
  "license": "SEE LICENSE IN EULA.pdf",
5
5
  "dependencies": {
6
- "@magic-xpa/engine": "4.1200.0-dev4120.1",
7
- "@magic-xpa/angular-material-core": "4.1200.0-dev4120.1",
6
+ "@magic-xpa/engine": "4.1200.0-dev4120.100",
7
+ "@magic-xpa/angular-material-core": "4.1200.0-dev4120.100",
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,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/common/http";
36
- import * as i35 from "@maskito/angular";
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, 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]>;
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>;
@@ -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,306 @@ 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
+ /**
22
+ * Checks if the control is read-only
23
+ * @param controlId Id of control
24
+ * @returns Is the control not read-only
25
+ */
14
26
  checkIsReadOnly(controlId: string): boolean;
27
+ /**
28
+ * Returns the text of the control
29
+ * @param controlId Id of control
30
+ * @param rowId Id of row, if applicable
31
+ * @returns The text of the control
32
+ */
15
33
  getText(controlId: string, rowId?: string): string;
34
+ /**
35
+ * Gets the text of the tab page
36
+ * @param controlId Id of control
37
+ * @param layer Id of tabpage
38
+ * @returns Text of tabpage
39
+ */
16
40
  getTabpageText(controlId: string, layer: number): string;
41
+ /**
42
+ * Gets the image defined for the control
43
+ * @param controlId Id of control
44
+ * @param rowId Id of row, if applicable
45
+ * @returns Image set on control
46
+ */
17
47
  getImage(controlId: string, rowId?: string): string;
48
+ /**
49
+ * Returns whether an image is set for this control
50
+ * @param controlId Id of control
51
+ * @param rowId Id of row, if applicable
52
+ * @returns returns true if control has an image set on it
53
+ */
18
54
  isImageExists(controlId: string, rowId?: string): boolean;
55
+ /**
56
+ * Gets the CSS classes set on the control
57
+ * @param controlId Id of control
58
+ * @param rowId Id of row, if applicable
59
+ * @returns The classes for this control
60
+ */
19
61
  getClasses(controlId: string, rowId?: string): string;
62
+ /**
63
+ * Gets the CSS styles set on the control
64
+ * @param controlId Id of control
65
+ * @param styleName NAme of style requested
66
+ * @param rowId Id of row, if applicable
67
+ * @returns The style set on the control
68
+ */
20
69
  getStyle(controlId: string, styleName: string, rowId?: string): string;
70
+ /**
71
+ * Returns whether a control is visible or not
72
+ * @param controlId Id of control
73
+ * @param rowId Id of row, if applicable
74
+ * @returns Is the control visible or hidden
75
+ */
21
76
  getVisible(controlId: string, rowId?: string): string;
77
+ /**
78
+ * Returns alpha mask of a control
79
+ * @param controlId Id of control
80
+ * @param rowId Id of row, if applicable
81
+ * @returns alpha mask of the control
82
+ */
22
83
  getAlphaMask(controlId: string, rowId?: string): string;
84
+ /**
85
+ * Returns object representing numeric picture
86
+ * @param picture string which is defined in magic
87
+ * @returns object representing numeric picture
88
+ */
23
89
  getNumericPicture(picture: string): any;
90
+ /**
91
+ * Returns whether a control should have the "required" attribute set on it
92
+ * @param controlId Id of control
93
+ * @param rowId Id of row, if applicable
94
+ * @returns
95
+ */
24
96
  getMustInput(controlId: string, rowId?: string): string;
97
+ /**
98
+ * Returns whether a control is disabled
99
+ * @param controlId Id of control
100
+ * @param rowId Id of row, if applicable
101
+ * @returns
102
+ */
25
103
  isDisabled(controlId: string, rowId?: string): any;
104
+ /**
105
+ * @ignore
106
+ */
26
107
  getProperty(controlId: string, prop: HtmlProperties, rowId?: string): any;
108
+ /**
109
+ * Returns the title (tooltip) text of the control
110
+ * @param controlId Id of control
111
+ * @param rowId Id of row, if applicable
112
+ * @returns
113
+ */
27
114
  getTitle(controlId: string, rowId?: string): string;
115
+ /**
116
+ * Returns the title (tooltip) text of the control
117
+ * @param controlId Id of control
118
+ * @param rowId Id of row, if applicable
119
+ * @returns
120
+ */
28
121
  getZoomButtonTitle(controlId: string, rowId?: string): string;
122
+ /**
123
+ * Gets the selection control's selected value
124
+ * @param controlId Id of control
125
+ * @param rowId Id of row, if applicable
126
+ * @returns
127
+ */
29
128
  getSelectedValue(controlId: string, rowId?: string): string;
129
+ /**
130
+ * Gets the place-holder text of the control
131
+ * @param controlId Id of control
132
+ * @param rowId Id of row, if applicable
133
+ * @returns
134
+ */
30
135
  getPlaceholder(controlId: string, rowId?: string): string;
136
+ /**
137
+ * Returns a type for input controls - should the control be a simple text or a password control
138
+ * @param controlId Id of control
139
+ * @param rowId Id of row, if applicable
140
+ * @returns
141
+ */
31
142
  getType(controlId: string, rowId?: string): string;
143
+ /**
144
+ * Returns the tab-index of the control
145
+ * @param controlId Id of control
146
+ * @param rowId Id of row, if applicable
147
+ * @returns
148
+ */
32
149
  getTabIndex(controlId: string, rowId?: string): number;
150
+ /**
151
+ * Returns the value of the control
152
+ * @param controlId Id of control
153
+ * @param rowId Id of row, if applicable
154
+ * @returns
155
+ */
33
156
  getValue(controlId: string, rowId?: string): any;
157
+ /**
158
+ * Returns the formatted value of the control
159
+ * @param controlId Id of control
160
+ * @param rowId Id of row, if applicable
161
+ * @returns
162
+ */
34
163
  getFormattedValue(controlId: string, rowId?: string): string;
164
+ /**
165
+ * Returns the Picture of the control
166
+ * @param controlId Id of control
167
+ * @param rowId Id of row, if applicable
168
+ * @returns
169
+ */
35
170
  getPicture(controlId: string, rowId?: string): string;
171
+ /**
172
+ * Returns the custom (user) properties of the control
173
+ * @param controlId Id of control
174
+ * @param propertyName Name of requested property
175
+ * @param rowId Id of row, if applicable
176
+ * @returns
177
+ */
36
178
  getCustomProperty(controlId: string, propertyNameOrRowID?: string, rowId?: string): any;
37
179
  getCustomProperty_1(controlId: string, propertyName: string, rowId?: string): any;
180
+ /**
181
+ * Gets the values of the items of a selection control
182
+ * @param id Id of control
183
+ * @param rowId Id of row, if applicable
184
+ * @returns
185
+ */
38
186
  getItemListValues(id: string, rowId?: string): Array<{
39
187
  index: number;
40
188
  displayValue: string;
41
189
  }>;
190
+ /**
191
+ * Gets the filtered items list based on the current value of the control
192
+ * @param controlId Id of control
193
+ * @param rowId Id of row, if applicable
194
+ * @returns
195
+ */
42
196
  getFilteredList(controlId: string, rowId?: string): Array<{
43
197
  index: number;
44
198
  displayValue: string;
45
199
  }>;
200
+ /**
201
+ * Gets the display value of the item from items of a selection control
202
+ * @param id Id of control
203
+ * @param rowId Id of row, if applicable
204
+ * @returns
205
+ */
46
206
  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;
207
+ /**
208
+ * Returns whether a tab page is selected or not
209
+ * @param index of current option in iterarotr
210
+ * @param control Id of list control
211
+ * @returns
212
+ */ isOptionSelected(index: any, controlId: any): boolean;
213
+ /**
214
+ * Returns whether a tab page is selected or not - used for the tab buttons
215
+ * @param controlId Id of control
216
+ * @param layer Id of the tab page
217
+ * @returns
218
+ */ isTabPageSelected(controlId: string, layer: number): boolean;
219
+ /**
220
+ * Returns whether a tab page layer is selected or not - used for the div which represents the tab page
221
+ * @param controlId Id of control
222
+ * @param layer Id of the tab page
223
+ * @returns
224
+ */ isTabPageLayerSelected(controlId: string, layer: number): boolean;
225
+ /**
226
+ * Returns the index of the selected tab page
227
+ * @param controlId Id of control
228
+ * @returns
229
+ */
50
230
  getTabSelectedIndex(controlId: string): any;
231
+ /**
232
+ * @ignore
233
+ */
51
234
  ifRowCreated(row: any): boolean;
235
+ /**
236
+ * @ignore
237
+ */
52
238
  getFormGroupByRow(id: string): FormGroup;
239
+ /**
240
+ * @ignore
241
+ */
53
242
  isRowSelected(controlId: any, rowId?: any): boolean;
243
+ /**
244
+ * Returns whether a row is in edit state
245
+ * @param row
246
+ */
54
247
  isRowInRowEditing(row?: any): boolean;
248
+ /**
249
+ * Returns whether a row is in edit state, use this method while control outside table control
250
+ * @param row
251
+ */
55
252
  isCurrentInRowEditing(): boolean;
253
+ /**
254
+ * @ignore
255
+ */
56
256
  guiTopIndex(): number;
257
+ /**
258
+ * @ignore
259
+ */
57
260
  getErrMsg(id: string, rowId: string): string;
261
+ private getNumericFormatErrorString;
262
+ /**
263
+ * Sets a user-supplied value to the specified control
264
+ * @param controlName
265
+ * @param value
266
+ * @param refreshDisplay
267
+ */
58
268
  setValueToControl(controlName: string, value: any, refreshDisplay?: boolean): void;
269
+ /**
270
+ * @ignore
271
+ */
59
272
  isDataviewEmpty(): boolean;
273
+ /**
274
+ * simulates a click event on the specified control, for the Magic engine
275
+ * @param controlName
276
+ * @param rowId
277
+ */
60
278
  simulateClick(controlName: string, rowId?: number): void;
279
+ /**
280
+ * Return Boolean TRUE if user logged in Else it will return FALSE
281
+ */
61
282
  isLoggedIn(): boolean;
283
+ /**
284
+ * Returns JS object containing the records with all table fields.
285
+ */
62
286
  GetFormRecords(): any;
287
+ /**
288
+ * SetCookie : set the cookie with specified name and value in browser
289
+ * expires - expiration time
290
+ * path - path which much exists in order so that cookie is sent as header
291
+ * domain - specifies which hosts are allowed to receive the cookie
292
+ * secure - specifies if cookie is secure ( works only with HTTPS)
293
+ * sameSite - lets servers specify whether/when cookies are sent with cross-site requests
294
+ */
63
295
  SetCookie(name: string, value: any, expires?: Date, path?: any, domain?: any, secure?: any, sameSite?: any): void;
296
+ /**
297
+ * GetCookie : get the cookie with specified name and value in browser
298
+ */
64
299
  GetCookie(name: string): any;
300
+ /**
301
+ * DeleteCookie : deletes the cookie
302
+ */
65
303
  DeleteCookie(name: string): any;
304
+ /**
305
+ * get RGBA color from color file
306
+ */
66
307
  getColor(colorNumber: number, colorType: any): any;
67
308
  static ɵfac: i0.ɵɵFactoryDeclaration<AccessorMagicService, never>;
68
309
  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,7 @@ 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;
17
21
  GetFormattedValue(taskId: string, controlName: string, value: any, rowId?: string): any;
18
22
  ValidateControlValue(taskId: string, controlName: string, value: any): string;
19
23
  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;