@magic-xpa/angular 4.1000.0-dev4100.36 → 4.1000.0-dev4100.361

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 (61) hide show
  1. package/esm2020/src/magic.core.module.mjs +10 -11
  2. package/esm2020/src/services/accessor.magic.service.mjs +29 -3
  3. package/esm2020/src/services/magic-color.service.mjs +4 -4
  4. package/esm2020/src/services/subform.magic.service.mjs +1 -1
  5. package/esm2020/src/services/table.magic.service.mjs +5 -2
  6. package/esm2020/src/services/task.magics.service.mjs +18 -5
  7. package/esm2020/src/ui/components/base-magic-alert.component.mjs +3 -7
  8. package/esm2020/src/ui/components/base-magic-confirm.component.mjs +3 -7
  9. package/esm2020/src/ui/components/magic-alert.component.mjs +3 -35
  10. package/esm2020/src/ui/components/magic-confirmation-box.component.mjs +3 -39
  11. package/esm2020/src/ui/directives/NonMagicControlDirective.mjs +6 -6
  12. package/esm2020/src/ui/directives/magic/combobox.magic.directive.mjs +11 -1
  13. package/esm2020/src/ui/directives/magic/nocontrol.magic.directive.mjs +3 -3
  14. package/esm2020/src/ui/directives/magic.directive.mjs +11 -11
  15. package/esm2020/src/ui/directives/mgformat.magic.directive.mjs +124 -2
  16. package/esm2020/src/ui/magic-modal/base-magic-overlay-container.mjs +1 -1
  17. package/esm2020/src/ui/magic-modal/magic-overlay-container-wrapper.mjs +4 -18
  18. package/esm2020/src/ui/magic-modal/magic-overlay-container.mjs +4 -4
  19. package/esm2020/src/ui/magic-root.component.mjs +4 -38
  20. package/esm2020/src/ui/mgerror.magic.component.mjs +9 -9
  21. package/esm2020/src/ui/router-container.magic.component.mjs +4 -4
  22. package/esm2020/src/ui/subform.magic.component.mjs +4 -4
  23. package/esm2020/src/ui/task-base.magic.component.mjs +8 -2
  24. package/fesm2015/magic-xpa-angular.mjs +246 -194
  25. package/fesm2015/magic-xpa-angular.mjs.map +1 -1
  26. package/fesm2020/magic-xpa-angular.mjs +246 -194
  27. package/fesm2020/magic-xpa-angular.mjs.map +1 -1
  28. package/package.json +8 -8
  29. package/src/magic.core.module.d.ts +2 -1
  30. package/src/services/accessor.magic.service.d.ts +4 -0
  31. package/src/services/table.magic.service.d.ts +2 -0
  32. package/src/services/task.magics.service.d.ts +1 -0
  33. package/src/ui/components/base-magic-alert.component.d.ts +1 -1
  34. package/src/ui/components/base-magic-confirm.component.d.ts +1 -1
  35. package/src/ui/components/magic-alert.component.d.ts +1 -1
  36. package/src/ui/components/magic-confirmation-box.component.d.ts +1 -1
  37. package/src/ui/directives/NonMagicControlDirective.d.ts +1 -1
  38. package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +1 -1
  39. package/src/ui/directives/magic/checkbox.magic.directive.d.ts +1 -1
  40. package/src/ui/directives/magic/combobox.magic.directive.d.ts +2 -1
  41. package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +1 -1
  42. package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +1 -1
  43. package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +1 -1
  44. package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +1 -1
  45. package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +1 -1
  46. package/src/ui/directives/magic/row.magic.directive.d.ts +1 -1
  47. package/src/ui/directives/magic-focus.directive.d.ts +1 -1
  48. package/src/ui/directives/magic.directive.d.ts +2 -2
  49. package/src/ui/directives/magicViewContainerRef.directive.d.ts +1 -1
  50. package/src/ui/directives/mgformat.magic.directive.d.ts +3 -2
  51. package/src/ui/directives/range-validator.magic.directive.d.ts +1 -1
  52. package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +1 -1
  53. package/src/ui/magic-modal/magic-overlay-container.d.ts +1 -1
  54. package/src/ui/magic-root.component.d.ts +1 -1
  55. package/src/ui/mgerror.magic.component.d.ts +1 -1
  56. package/src/ui/pipes/date.magic.pipe.d.ts +1 -1
  57. package/src/ui/pipes/time.magic.pipe.d.ts +1 -1
  58. package/src/ui/router-container.magic.component.d.ts +1 -1
  59. package/src/ui/subform.magic.component.d.ts +1 -1
  60. package/src/ui/task-base.magic.component.d.ts +2 -1
  61. package/magic-xpa-angular.d.ts +0 -2
@@ -17,6 +17,8 @@ import { __decorate, __metadata } from 'tslib';
17
17
  import * as i1$1 from '@angular/platform-browser';
18
18
  import * as i1$2 from '@angular/common/http';
19
19
  import { HttpClientModule } from '@angular/common/http';
20
+ import { maskitoTimeOptionsGenerator } from '@maskito/kit';
21
+ import { MaskitoModule } from '@maskito/angular';
20
22
  import { NativeDateAdapter, MAT_DATE_LOCALE, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
21
23
  import * as i1$3 from '@angular/cdk/platform';
22
24
 
@@ -596,6 +598,9 @@ SubformMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: SubformMagicServic
596
598
  }], function () { return [{ type: TaskMagicService }, { type: i2.ActivatedRoute }, { type: ComponentListMagicService }, { type: CommandsCollectorMagicService }, { type: i2.Router }, { type: RouterCommandsMagicService }, { type: ComponentListMagicService }, { type: MagicLazyLoaderService }, { type: i0.Injector }, { type: i0.Compiler }]; }, null); })();
597
599
 
598
600
  class RouterContainerMagicComponent {
601
+ static get LastRoute() {
602
+ return RouterContainerMagicComponent.lastRoute;
603
+ }
599
604
  constructor(activatedRoute, router, magic, containerTaskService, componentFactoryResolver, viewContainerRef, componentList, pendingCommandsCollector, routerCommandsMagicService) {
600
605
  this.activatedRoute = activatedRoute;
601
606
  this.router = router;
@@ -609,9 +614,6 @@ class RouterContainerMagicComponent {
609
614
  this.componentRef = null;
610
615
  this.parentMgSubformService = null;
611
616
  }
612
- static get LastRoute() {
613
- return RouterContainerMagicComponent.lastRoute;
614
- }
615
617
  ngOnInit() {
616
618
  let subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
617
619
  let currentActiveRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
@@ -820,7 +822,7 @@ const _c1$1 = ["modalForeground"];
820
822
  function MagicOverlayContainer_button_2_Template(rf, ctx) { if (rf & 1) {
821
823
  const _r5 = i0.ɵɵgetCurrentView();
822
824
  i0.ɵɵelementStart(0, "button", 8);
823
- i0.ɵɵlistener("click", function MagicOverlayContainer_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.OnClose(); });
825
+ i0.ɵɵlistener("click", function MagicOverlayContainer_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.OnClose()); });
824
826
  i0.ɵɵtext(1, "X");
825
827
  i0.ɵɵelementEnd();
826
828
  } }
@@ -829,7 +831,7 @@ function MagicOverlayContainer_div_5_Template(rf, ctx) { if (rf & 1) {
829
831
  i0.ɵɵelementStart(0, "div", 9, 10);
830
832
  i0.ɵɵtext(2);
831
833
  i0.ɵɵelementStart(3, "button", 11);
832
- i0.ɵɵlistener("click", function MagicOverlayContainer_div_5_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.OnClose(); });
834
+ i0.ɵɵlistener("click", function MagicOverlayContainer_div_5_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.OnClose()); });
833
835
  i0.ɵɵtext(4, "X");
834
836
  i0.ɵɵelementEnd()();
835
837
  } if (rf & 2) {
@@ -934,7 +936,7 @@ MagicOverlayContainer.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlayContain
934
936
  i0.ɵɵproperty("ngIf", ctx.getShowTitleBar());
935
937
  i0.ɵɵadvance(1);
936
938
  i0.ɵɵproperty("ngStyle", ctx.getClientAreaStyles());
937
- } }, directives: [i1.NgIf, i1.NgStyle, MagicViewContainerRef], styles: [".modal-foreground[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#fff}.modal-background[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#000;opacity:.75}.modal-header[_ngcontent-%COMP%]{background-color:beige;border-bottom:2px solid red}"] });
939
+ } }, dependencies: [i1.NgIf, i1.NgStyle, MagicViewContainerRef], styles: [".modal-foreground[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#fff}.modal-background[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#000;opacity:.75}.modal-header[_ngcontent-%COMP%]{background-color:beige;border-bottom:2px solid red}"] });
938
940
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicOverlayContainer, [{
939
941
  type: Component,
940
942
  args: [{ selector: 'app-magic-overlay-container', template: `
@@ -988,14 +990,10 @@ class BaseMagicConfirmComponent {
988
990
  }
989
991
  }
990
992
  BaseMagicConfirmComponent.ɵfac = function BaseMagicConfirmComponent_Factory(t) { return new (t || BaseMagicConfirmComponent)(); };
991
- BaseMagicConfirmComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BaseMagicConfirmComponent, selectors: [["mg-base-alert"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, decls: 0, vars: 0, template: function BaseMagicConfirmComponent_Template(rf, ctx) { }, styles: [""] });
993
+ BaseMagicConfirmComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BaseMagicConfirmComponent, selectors: [["mg-base-alert"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, decls: 0, vars: 0, template: function BaseMagicConfirmComponent_Template(rf, ctx) { } });
992
994
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseMagicConfirmComponent, [{
993
995
  type: Component,
994
- args: [{
995
- selector: 'mg-base-alert',
996
- template: '',
997
- styles: ['']
998
- }]
996
+ args: [{ selector: 'mg-base-alert', template: '' }]
999
997
  }], null, { title: [{
1000
998
  type: Input
1001
999
  }], message: [{
@@ -1013,14 +1011,10 @@ class BaseMagicAlertComponent {
1013
1011
  }
1014
1012
  }
1015
1013
  BaseMagicAlertComponent.ɵfac = function BaseMagicAlertComponent_Factory(t) { return new (t || BaseMagicAlertComponent)(); };
1016
- BaseMagicAlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BaseMagicAlertComponent, selectors: [["mg-base-alert"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, decls: 0, vars: 0, template: function BaseMagicAlertComponent_Template(rf, ctx) { }, styles: [""] });
1014
+ BaseMagicAlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BaseMagicAlertComponent, selectors: [["mg-base-alert"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, decls: 0, vars: 0, template: function BaseMagicAlertComponent_Template(rf, ctx) { } });
1017
1015
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseMagicAlertComponent, [{
1018
1016
  type: Component,
1019
- args: [{
1020
- selector: 'mg-base-alert',
1021
- template: '',
1022
- styles: ['']
1023
- }]
1017
+ args: [{ selector: 'mg-base-alert', template: '' }]
1024
1018
  }], null, { title: [{
1025
1019
  type: Input
1026
1020
  }], message: [{
@@ -1128,12 +1122,10 @@ MagicOverlayContainerWrapper.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlay
1128
1122
  i0.ɵɵelementEnd();
1129
1123
  i0.ɵɵelement(6, "div", 5);
1130
1124
  i0.ɵɵelementEnd();
1131
- } }, directives: [MagicFocusDirective, MagicViewContainerRef], styles: [".overlay-container-wrapper-background[_ngcontent-%COMP%]{position:fixed;z-index:999;inset:0}"] });
1125
+ } }, dependencies: [MagicFocusDirective, MagicViewContainerRef], styles: [".overlay-container-wrapper-background[_ngcontent-%COMP%]{position:fixed;z-index:999;inset:0}"] });
1132
1126
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicOverlayContainerWrapper, [{
1133
1127
  type: Component,
1134
- args: [{
1135
- selector: 'app-magic-overlay-container-wrapper',
1136
- template: `
1128
+ args: [{ selector: 'app-magic-overlay-container-wrapper', template: `
1137
1129
  <div>
1138
1130
  <div class="overlay-container-wrapper-background" tabIndex="0" style="width: 0px; height: 0px;" magicFocus></div>
1139
1131
  <div class="overlay-container-wrapper-background" #overlayContainerWrapper>
@@ -1142,19 +1134,7 @@ MagicOverlayContainerWrapper.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlay
1142
1134
  </div>
1143
1135
  <div class="overlay-container-wrapper-background" tabIndex="0" style="width: 0px; height: 0px;" ></div>
1144
1136
  </div>
1145
- `,
1146
- styles: [`
1147
- .overlay-container-wrapper-background {
1148
- /* modal background fixed across whole screen */
1149
- position: fixed;
1150
- top: 0;
1151
- z-index: 999;
1152
- right: 0;
1153
- bottom: 0;
1154
- left: 0;
1155
- }
1156
- `]
1157
- }]
1137
+ `, styles: [".overlay-container-wrapper-background{position:fixed;z-index:999;inset:0}\n"] }]
1158
1138
  }], function () { return [{ type: ComponentListMagicService }, { type: MagicLazyLoaderService }, { type: i0.Injector }, { type: i0.ComponentFactoryResolver }, { type: i0.ChangeDetectorRef }, { type: i0.Compiler }]; }, { Component: [{
1159
1139
  type: Input
1160
1140
  }], Parameters: [{
@@ -1190,46 +1170,14 @@ MagicAlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicAlertComponent,
1190
1170
  } }, styles: [".mg-message-background[_ngcontent-%COMP%]{background-color:#f5f5f5;width:40%;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;padding:17px;border-radius:5px;text-align:center;margin-top:10%;margin-left:auto;margin-right:auto;border:1px solid gray}button[_ngcontent-%COMP%]{background-color:#8cd4f5;color:#fff;border:none;box-shadow:none;font-size:17px;font-weight:500;border-radius:5px;padding:10px 32px;margin:26px 5px 0;cursor:pointer}"] });
1191
1171
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicAlertComponent, [{
1192
1172
  type: Component,
1193
- args: [{
1194
- selector: 'sample-magic-alert-component',
1195
- template: `<div>
1173
+ args: [{ selector: 'sample-magic-alert-component', template: `<div>
1196
1174
  <div class="mg-message-background">
1197
1175
  <h2> {{title}}</h2>
1198
1176
  <p>{{message}} </p>
1199
1177
 
1200
1178
  <button (click)="OnClose()">OK</button>
1201
1179
  </div>
1202
- </div>`,
1203
- styles: [`
1204
- .mg-message-background {
1205
- background-color: #F5F5F5;
1206
- text-align: center;
1207
- width: 40%;
1208
- font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
1209
- padding: 17px;
1210
- border-radius: 5px;
1211
- text-align: center;
1212
- margin-top: 10% ;
1213
- margin-left: auto;
1214
- margin-right: auto;
1215
- border: 1px solid gray;
1216
- }
1217
-
1218
- button {
1219
- background-color: #8CD4F5;
1220
- color: white;
1221
- border: none;
1222
- box-shadow: none;
1223
- font-size: 17px;
1224
- font-weight: 500;
1225
- -webkit-border-radius: 4px;
1226
- border-radius: 5px;
1227
- padding: 10px 32px;
1228
- margin: 26px 5px 0 5px;
1229
- cursor: pointer;
1230
- }
1231
- `]
1232
- }]
1180
+ </div>`, styles: [".mg-message-background{background-color:#f5f5f5;width:40%;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;padding:17px;border-radius:5px;text-align:center;margin-top:10%;margin-left:auto;margin-right:auto;border:1px solid gray}button{background-color:#8cd4f5;color:#fff;border:none;box-shadow:none;font-size:17px;font-weight:500;border-radius:5px;padding:10px 32px;margin:26px 5px 0;cursor:pointer}\n"] }]
1233
1181
  }], null, null); })();
1234
1182
 
1235
1183
  class MagicConfirmationBoxComponent extends BaseMagicConfirmComponent {
@@ -1257,9 +1205,7 @@ MagicConfirmationBoxComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicConfir
1257
1205
  } }, styles: [".mg-message-background[_ngcontent-%COMP%]{background-color:#f5f5f5;width:40%;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;padding:17px;border-radius:5px;text-align:center;margin-top:10%;margin-left:auto;margin-right:auto;border:1px solid gray}button[_ngcontent-%COMP%]{background-color:#8cd4f5;color:#fff;border:none;box-shadow:none;font-size:17px;font-weight:500;border-radius:5px;padding:10px 32px;margin:26px 5px 0;cursor:pointer}button.cancel[_ngcontent-%COMP%]{background-color:#c1c1c1}"] });
1258
1206
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicConfirmationBoxComponent, [{
1259
1207
  type: Component,
1260
- args: [{
1261
- selector: 'sample-magic-confirmation-box',
1262
- template: `<div>
1208
+ args: [{ selector: 'sample-magic-confirmation-box', template: `<div>
1263
1209
  <div class="mg-message-background">
1264
1210
  <h2> {{title}}</h2>
1265
1211
  {{message}}
@@ -1269,41 +1215,7 @@ MagicConfirmationBoxComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicConfir
1269
1215
  <button (click)="OnClose(true)">OK</button>
1270
1216
  <button class="cancel" (click)="OnClose(false)">Cancel</button>
1271
1217
  </div>
1272
- </div>`,
1273
- styles: [`
1274
- .mg-message-background {
1275
- background-color: #F5F5F5;
1276
- text-align: center;
1277
- width: 40%;
1278
- font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
1279
- padding: 17px;
1280
- border-radius: 5px;
1281
- text-align: center;
1282
- margin-top: 10% ;
1283
- margin-left: auto;
1284
- margin-right: auto;
1285
- border: 1px solid gray;
1286
- }
1287
-
1288
- button {
1289
- background-color: #8CD4F5;
1290
- color: white;
1291
- border: none;
1292
- box-shadow: none;
1293
- font-size: 17px;
1294
- font-weight: 500;
1295
- -webkit-border-radius: 4px;
1296
- border-radius: 5px;
1297
- padding: 10px 32px;
1298
- margin: 26px 5px 0 5px;
1299
- cursor: pointer;
1300
- }
1301
-
1302
- button.cancel {
1303
- background-color: #C1C1C1;
1304
- }
1305
- `]
1306
- }]
1218
+ </div>`, styles: [".mg-message-background{background-color:#f5f5f5;width:40%;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;padding:17px;border-radius:5px;text-align:center;margin-top:10%;margin-left:auto;margin-right:auto;border:1px solid gray}button{background-color:#8cd4f5;color:#fff;border:none;box-shadow:none;font-size:17px;font-weight:500;border-radius:5px;padding:10px 32px;margin:26px 5px 0;cursor:pointer}button.cancel{background-color:#c1c1c1}\n"] }]
1307
1219
  }], null, null); })();
1308
1220
 
1309
1221
  class ConfirmationComponentsMagicProvider {
@@ -1569,6 +1481,7 @@ class TaskMagicService {
1569
1481
  this.OnSelectedRowChanged = new EventEmitter();
1570
1482
  this.customPropertiesSubject = new Subject();
1571
1483
  this.recordsCountChangeSubject = new Subject();
1484
+ this.mgLoadSubject = new Subject();
1572
1485
  this.oldPageSize = 0;
1573
1486
  this.Records.setGuiTopIndex(0);
1574
1487
  this.mgInputDateFormat = null;
@@ -1821,6 +1734,11 @@ class TaskMagicService {
1821
1734
  }
1822
1735
  }
1823
1736
  break;
1737
+ case CommandType.SET_CHUNK_SIZE:
1738
+ if (!isUndefined(command.number)) {
1739
+ this.tableService.setChunkSize(command.number);
1740
+ }
1741
+ break;
1824
1742
  case CommandType.SET_RECORDS_BEFORE_CURRENT_VIEW:
1825
1743
  this.updateRecordsBeforeCurrentView(command.number);
1826
1744
  break;
@@ -1848,7 +1766,8 @@ class TaskMagicService {
1848
1766
  break;
1849
1767
  case CommandType.SET_PROPERTY:
1850
1768
  this.handleSetProperty(command, isTableChild);
1851
- if (command.Operation == HtmlProperties.ReadOnly)
1769
+ if (command.Operation == HtmlProperties.ReadOnly ||
1770
+ command.Operation == HtmlProperties.ItemsList)
1852
1771
  this.refreshDom.next(command);
1853
1772
  break;
1854
1773
  case CommandType.PROP_SET_USER_PROPERTY:
@@ -1903,6 +1822,9 @@ class TaskMagicService {
1903
1822
  case CommandType.SET_FOCUS:
1904
1823
  this.refreshDom.next(command);
1905
1824
  break;
1825
+ case CommandType.SET_WC_IDLE:
1826
+ this.mgLoadSubject.next();
1827
+ break;
1906
1828
  }
1907
1829
  }
1908
1830
  customValidator(rowid, id) {
@@ -1961,7 +1883,10 @@ class TaskMagicService {
1961
1883
  return val;
1962
1884
  }
1963
1885
  case StorageAttribute.NUMERIC:
1964
- return +val;
1886
+ if (isUndefined(val))
1887
+ return val;
1888
+ else
1889
+ return (val != null) ? +val : null;
1965
1890
  default:
1966
1891
  return val;
1967
1892
  }
@@ -2098,10 +2023,10 @@ class TaskMagicService {
2098
2023
  mgOnRadioSelectionChanged(idx) {
2099
2024
  let result = this.getFormControl('0', idx);
2100
2025
  let guiEvent = getGuiEventObj('selectionchanged', idx, 0);
2101
- if (typeof result.value !== 'string')
2026
+ if (typeof result.value !== 'number')
2102
2027
  guiEvent.Value = result.value.index;
2103
2028
  else
2104
- guiEvent.Value = result.value;
2029
+ guiEvent.Value = result.value.toString();
2105
2030
  this.insertEvent(guiEvent);
2106
2031
  }
2107
2032
  close() {
@@ -2160,7 +2085,10 @@ class TableMagicService {
2160
2085
  refreshDataSource() {
2161
2086
  }
2162
2087
  getPageSize() {
2163
- return 10;
2088
+ return this.chunkSize;
2089
+ }
2090
+ setChunkSize(size) {
2091
+ this.chunkSize = size;
2164
2092
  }
2165
2093
  getMaxRowsInTable() {
2166
2094
  return this.task.Records.list.length;
@@ -2244,6 +2172,9 @@ const SYSTEM_BG = 4;
2244
2172
  const SYSTEM_FG_AND_SYSTEM_BG = 6;
2245
2173
  const TRANSPERENT_BG = 1;
2246
2174
  class MagicColorService {
2175
+ getColorFilePath() {
2176
+ return 'assets/' + this.colorFileName;
2177
+ }
2247
2178
  constructor(http, colorFile1 = 'clr_rnt.eng') {
2248
2179
  this.http = http;
2249
2180
  this.colorFileName = 'clr_rnt.eng';
@@ -2253,9 +2184,6 @@ class MagicColorService {
2253
2184
  else
2254
2185
  this.colorFileName = 'clr_rnt.eng';
2255
2186
  }
2256
- getColorFilePath() {
2257
- return 'assets/' + this.colorFileName;
2258
- }
2259
2187
  getColorData() {
2260
2188
  if (!this.colorsData) {
2261
2189
  this.http.get(this.getColorFilePath(), { responseType: 'text' }).subscribe(resp => {
@@ -2333,6 +2261,9 @@ class AccessorMagicService {
2333
2261
  this.task = task;
2334
2262
  this.magicColor = magicColor;
2335
2263
  this.Logger = null;
2264
+ this.hhmm = maskitoTimeOptionsGenerator({ mode: 'HH:MM' });
2265
+ this.hhmmss = maskitoTimeOptionsGenerator({ mode: 'HH:MM:SS' });
2266
+ this.hhmmssms = maskitoTimeOptionsGenerator({ mode: 'HH:MM:SS.MSS' });
2336
2267
  this.Logger = Logger.Instance;
2337
2268
  }
2338
2269
  checkIsReadOnly(controlId) {
@@ -2568,8 +2499,30 @@ class AccessorMagicService {
2568
2499
  let c = this.task.getFormControl(rowId, id);
2569
2500
  if (c.hasError('required'))
2570
2501
  return 'Control must be updated.';
2571
- if (c.hasError('pattern'))
2572
- return 'Required pattern is : ' + c.errors.pattern.requiredPattern;
2502
+ if (c.hasError('pattern')) {
2503
+ if (c.errors.pattern.actualValue < 0 && !c.errors.pattern.requiredPattern.includes('-'))
2504
+ return 'Value must be non-negative';
2505
+ if (c.errors.pattern.requiredPattern.includes('.')) {
2506
+ const numericFormat = Math.abs(c.errors.pattern.actualValue).toString().split('.')[0];
2507
+ const decimalFormat = Math.abs(c.errors.pattern.actualValue).toString().split('.')[1];
2508
+ const actualNumericLimit = c.errors.pattern.requiredPattern.match(/,(\d+)/)[1];
2509
+ const actualDecimalLimit = c.errors.pattern.requiredPattern.match(/(?:[^,]+,){2}(\d+)/)[1];
2510
+ if (numericFormat.length > actualNumericLimit || decimalFormat.length > actualDecimalLimit) {
2511
+ return "Numeric format is limited to " + actualNumericLimit + "." + actualDecimalLimit + " digits";
2512
+ }
2513
+ }
2514
+ else if (!c.errors.pattern.requiredPattern.includes('.') && !Number.isInteger(c.errors.pattern.actualValue)) {
2515
+ const actualNumericLimit = c.errors.pattern.requiredPattern.match(/,(\d+)/)[1];
2516
+ return "Numeric format is limited to " + actualNumericLimit + "." + 0 + " digits";
2517
+ }
2518
+ else {
2519
+ const numericFormat = Math.abs(c.errors.pattern.actualValue).toString();
2520
+ const actualNumericLimit = c.errors.pattern.requiredPattern.match(/,(\d+)/)[1];
2521
+ if (numericFormat.length > actualNumericLimit) {
2522
+ return "Numeric format is limited to " + actualNumericLimit + "." + 0 + " digits";
2523
+ }
2524
+ }
2525
+ }
2573
2526
  if (c.hasError('rangevalidator'))
2574
2527
  return c.errors.rangevalidator.errorMsg;
2575
2528
  if (c.hasError('maxlength'))
@@ -2705,6 +2658,9 @@ class TaskBaseMagicComponent {
2705
2658
  this.task.recordsCountChangeSubject.pipe().subscribe(value => {
2706
2659
  this.RecordsCountChanged(value);
2707
2660
  });
2661
+ this.task.mgLoadSubject.pipe().subscribe(value => {
2662
+ this.mgOnLoad();
2663
+ });
2708
2664
  }
2709
2665
  createFormControlsAccessor(formGroup) { }
2710
2666
  setInputDateFormat() { }
@@ -2712,11 +2668,13 @@ class TaskBaseMagicComponent {
2712
2668
  }
2713
2669
  RecordsCountChanged(recordsCount) {
2714
2670
  }
2671
+ mgOnLoad() {
2672
+ }
2715
2673
  ngAfterViewInit() {
2716
2674
  this.mgSub.init();
2717
2675
  }
2718
2676
  ngAfterContentChecked() {
2719
- if (this.task.oldPageSize != this.tableService.getPageSize()) {
2677
+ if (!isNullOrUndefined(this.tableService.getPageSize()) && this.task.oldPageSize != this.tableService.getPageSize()) {
2720
2678
  this.task.resize(this.tableService.getPageSize(), 0);
2721
2679
  this.task.oldPageSize = this.tableService.getPageSize();
2722
2680
  }
@@ -2792,6 +2750,16 @@ RowMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: RowMagicDirective, sele
2792
2750
  }] }); })();
2793
2751
 
2794
2752
  class MagicDirective {
2753
+ set magic(val) {
2754
+ this.id = val;
2755
+ this.selector = "magic";
2756
+ }
2757
+ ;
2758
+ set eventsOnly(val) {
2759
+ console.log("eventsOnly");
2760
+ this.eventsOnlyVal = true;
2761
+ }
2762
+ ;
2795
2763
  constructor(_task, element, renderer, vcRef, magicRow) {
2796
2764
  this._task = _task;
2797
2765
  this.element = element;
@@ -2804,16 +2772,6 @@ class MagicDirective {
2804
2772
  if (!(typeof magicRow === "undefined" || magicRow === null))
2805
2773
  this.rowId = magicRow.rowId;
2806
2774
  }
2807
- set magic(val) {
2808
- this.id = val;
2809
- this.selector = "magic";
2810
- }
2811
- ;
2812
- set eventsOnly(val) {
2813
- console.log("eventsOnly");
2814
- this.eventsOnlyVal = true;
2815
- }
2816
- ;
2817
2775
  get task() {
2818
2776
  return this._task;
2819
2777
  }
@@ -2989,11 +2947,11 @@ MagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MagicDirective, selectors:
2989
2947
  }] }); })();
2990
2948
 
2991
2949
  class NoControlMagicDirective extends MagicDirective {
2950
+ set magic(val) { this.id = val; this.selector = 'magicnc'; }
2951
+ ;
2992
2952
  constructor(_task, element, renderer, vcRef, magicRow) {
2993
2953
  super(_task, element, renderer, vcRef, magicRow);
2994
2954
  }
2995
- set magic(val) { this.id = val; this.selector = 'magicnc'; }
2996
- ;
2997
2955
  regEvents() {
2998
2956
  super.regEvents();
2999
2957
  if (this.htmlElement instanceof HTMLSelectElement) {
@@ -3283,9 +3241,131 @@ class MgformatMagicDirective {
3283
3241
  onFocusEvent($event) {
3284
3242
  this.calculatePattern();
3285
3243
  }
3286
- onInputEvent($event) {
3244
+ onInputEvent(event) {
3245
+ let control = this._task.getFormControl(this.magicDir.rowId, this.magicDir.id);
3246
+ if (control != null) {
3247
+ let attr = this._task.Records.list[0].getControlMetadata(this.magicDir.id).dataType;
3248
+ if (attr == StorageAttribute.DATE) {
3249
+ this.dateMasking(event);
3250
+ }
3251
+ }
3287
3252
  this.calculatePattern();
3288
3253
  }
3254
+ dateMasking(event) {
3255
+ const input = event.target;
3256
+ let cursorPos = event.target.selectionStart;
3257
+ const separator = this._task.mgInputDateFormat.includes('/') ? '/' : '-';
3258
+ if (cursorPos >= input.value.length) {
3259
+ const value = input.value.replace(/[^a-zA-Z0-9]/g, '');
3260
+ if (this._task.mgInputDateFormat == "dd/MM/yyyy" || this._task.mgInputDateFormat == "MM/dd/yyyy" || this._task.mgInputDateFormat == "dd-MM-yyyy" || this._task.mgInputDateFormat == "MM-dd-yyyy") {
3261
+ if (value.length <= 2) {
3262
+ input.value = value;
3263
+ }
3264
+ else if (value.length <= 4) {
3265
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2)}`;
3266
+ }
3267
+ else {
3268
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2, 4)}` + separator + `${value.slice(4, 8)}`;
3269
+ }
3270
+ }
3271
+ else if (this._task.mgInputDateFormat == "yyyy/MM/dd" || this._task.mgInputDateFormat == "yyyy/dd/MM" || this._task.mgInputDateFormat == "yyyy-MM-dd" || this._task.mgInputDateFormat == "yyyy-dd-MM") {
3272
+ if (value.length <= 4) {
3273
+ input.value = value;
3274
+ }
3275
+ else if (value.length <= 6) {
3276
+ input.value = `${value.slice(0, 4)}` + separator + `${value.slice(4)}`;
3277
+ }
3278
+ else {
3279
+ input.value = `${value.slice(0, 4)}` + separator + `${value.slice(4, 6)}` + separator + `${value.slice(6, 8)}`;
3280
+ }
3281
+ }
3282
+ else if (this._task.mgInputDateFormat == "dd/MM/yy" || this._task.mgInputDateFormat == "yy/MM/dd" || this._task.mgInputDateFormat == "MM/dd/yy" || this._task.mgInputDateFormat == "yy/dd/MM" || this._task.mgInputDateFormat == "dd-MM-yy" || this._task.mgInputDateFormat == "yy-MM-dd" || this._task.mgInputDateFormat == "MM-dd-yy" || this._task.mgInputDateFormat == "yy-dd-MM") {
3283
+ if (value.length <= 2) {
3284
+ input.value = value;
3285
+ }
3286
+ else if (value.length <= 4) {
3287
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2)}`;
3288
+ }
3289
+ else {
3290
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2, 4)}` + separator + `${value.slice(4, 6)}`;
3291
+ }
3292
+ }
3293
+ else if (this._task.mgInputDateFormat == "dd/MMM/yy" || this._task.mgInputDateFormat == "dd-MMM-yy") {
3294
+ if (value.length <= 2) {
3295
+ input.value = value;
3296
+ }
3297
+ else if (value.length <= 5) {
3298
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2)}`;
3299
+ }
3300
+ else {
3301
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2, 5)}` + separator + `${value.slice(5, 7)}`;
3302
+ }
3303
+ }
3304
+ else if (this._task.mgInputDateFormat == "dd/MMM/yyyy" || this._task.mgInputDateFormat == "dd-MMM-yyyy") {
3305
+ if (value.length <= 2) {
3306
+ input.value = value;
3307
+ }
3308
+ else if (value.length <= 5) {
3309
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2)}`;
3310
+ }
3311
+ else {
3312
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2, 5)}` + separator + `${value.slice(5, 9)}`;
3313
+ }
3314
+ }
3315
+ else if (this._task.mgInputDateFormat == "yy/dd/MMM" || this._task.mgInputDateFormat == "yy-dd-MMM") {
3316
+ if (value.length <= 2) {
3317
+ input.value = value;
3318
+ }
3319
+ else if (value.length <= 4) {
3320
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2)}`;
3321
+ }
3322
+ else {
3323
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2, 4)}` + separator + `${value.slice(4, 7)}`;
3324
+ }
3325
+ }
3326
+ else if (this._task.mgInputDateFormat == "yyyy/dd/MMM" || this._task.mgInputDateFormat == "yyyy-dd-MMM") {
3327
+ if (value.length <= 4) {
3328
+ input.value = value;
3329
+ }
3330
+ else if (value.length <= 6) {
3331
+ input.value = `${value.slice(0, 4)}` + separator + `${value.slice(4)}`;
3332
+ }
3333
+ else {
3334
+ input.value = `${value.slice(0, 4)}` + separator + `${value.slice(4, 6)}` + separator + `${value.slice(6, 9)}`;
3335
+ }
3336
+ }
3337
+ else if (this._task.mgInputDateFormat == "MMM/dd/yy" || this._task.mgInputDateFormat == "MMM-dd-yy") {
3338
+ if (value.length <= 3) {
3339
+ input.value = value;
3340
+ }
3341
+ else if (value.length <= 5) {
3342
+ input.value = `${value.slice(0, 3)}` + separator + `${value.slice(3)}`;
3343
+ }
3344
+ else {
3345
+ input.value = `${value.slice(0, 3)}` + separator + `${value.slice(3, 5)}` + separator + `${value.slice(5, 7)}`;
3346
+ }
3347
+ }
3348
+ else if (this._task.mgInputDateFormat == "MMM/dd/yyyy" || this._task.mgInputDateFormat == "MMM-dd-yyyy") {
3349
+ if (value.length <= 3) {
3350
+ input.value = value;
3351
+ }
3352
+ else if (value.length <= 5) {
3353
+ input.value = `${value.slice(0, 3)}` + separator + `${value.slice(3)}`;
3354
+ }
3355
+ else {
3356
+ input.value = `${value.slice(0, 3)}` + separator + `${value.slice(3, 5)}` + separator + `${value.slice(5, 9)}`;
3357
+ }
3358
+ }
3359
+ }
3360
+ if (cursorPos < input.value.length && input.value.length > this._task.mgInputDateFormat.length) {
3361
+ let inputDate = input.value;
3362
+ let start = input.selectionStart - 1;
3363
+ let end = input.selectionEnd - 1;
3364
+ let indexToRemove = input.selectionStart - 1;
3365
+ input.value = inputDate.slice(0, indexToRemove) + inputDate.slice(indexToRemove + 1);
3366
+ input.setSelectionRange(start, end);
3367
+ }
3368
+ }
3289
3369
  onChangeEvent($event) {
3290
3370
  let control = this._task.getFormControl(this.magicDir.rowId, this.magicDir.id);
3291
3371
  let attr = this._task.Records.list[0].getControlMetadata(this.magicDir.id).dataType;
@@ -3602,14 +3682,14 @@ function SubformMagicComponent_ndc_dynamic_0_Template(rf, ctx) { if (rf & 1) {
3602
3682
  i0.ɵɵproperty("ndcDynamicComponent", ctx_r0.Component)("ndcDynamicInputs", ctx_r0.Parameters);
3603
3683
  } }
3604
3684
  class SubformMagicComponent {
3685
+ set magic(val) { this.id = val; }
3686
+ ;
3605
3687
  constructor(vcRef, mgSub) {
3606
3688
  this.vcRef = vcRef;
3607
3689
  this.mgSub = mgSub;
3608
3690
  this.component = null;
3609
3691
  this.component = (this.vcRef._hostLView).find(v => !isNullOrUndefined(v));
3610
3692
  }
3611
- set magic(val) { this.id = val; }
3612
- ;
3613
3693
  get Component() {
3614
3694
  return this.mgSub.mgGetComp(this.id);
3615
3695
  }
@@ -3622,7 +3702,7 @@ SubformMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SubformMagicCompone
3622
3702
  i0.ɵɵtemplate(0, SubformMagicComponent_ndc_dynamic_0_Template, 1, 2, "ndc-dynamic", 0);
3623
3703
  } if (rf & 2) {
3624
3704
  i0.ɵɵproperty("ngIf", ctx.Component);
3625
- } }, directives: [i1.NgIf, i3.DynamicComponent, i3.DynamicIoDirective], encapsulation: 2 });
3705
+ } }, dependencies: [i1.NgIf, i3.DynamicComponent, i3.DynamicIoDirective], encapsulation: 2 });
3626
3706
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubformMagicComponent, [{
3627
3707
  type: Component,
3628
3708
  args: [{
@@ -3663,13 +3743,6 @@ function ErrorMagicComponent_div_0_Template(rf, ctx) { if (rf & 1) {
3663
3743
  } }
3664
3744
  const _c1 = ["*"];
3665
3745
  class ErrorMagicComponent {
3666
- constructor(_task, mgService, changeDetectorRef) {
3667
- this._task = _task;
3668
- this.mgService = mgService;
3669
- this.changeDetectorRef = changeDetectorRef;
3670
- this.defaultDisplay = true;
3671
- this.rowId = "0";
3672
- }
3673
3746
  set magic(val) {
3674
3747
  this.id = val;
3675
3748
  }
@@ -3683,6 +3756,13 @@ class ErrorMagicComponent {
3683
3756
  this.changeDetectorRef.detectChanges();
3684
3757
  }
3685
3758
  ;
3759
+ constructor(_task, mgService, changeDetectorRef) {
3760
+ this._task = _task;
3761
+ this.mgService = mgService;
3762
+ this.changeDetectorRef = changeDetectorRef;
3763
+ this.defaultDisplay = true;
3764
+ this.rowId = "0";
3765
+ }
3686
3766
  isEmpty(element) {
3687
3767
  const nodes = element.childNodes;
3688
3768
  for (let i = 0; i < nodes.length; i++) {
@@ -3725,7 +3805,7 @@ ErrorMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ErrorMagicComponent,
3725
3805
  i0.ɵɵtemplate(0, ErrorMagicComponent_div_0_Template, 5, 1, "div", 0);
3726
3806
  } if (rf & 2) {
3727
3807
  i0.ɵɵproperty("ngIf", ctx.HasErrors(ctx.id));
3728
- } }, directives: [i1.NgIf], encapsulation: 2 });
3808
+ } }, dependencies: [i1.NgIf], encapsulation: 2 });
3729
3809
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorMagicComponent, [{
3730
3810
  type: Component,
3731
3811
  args: [{
@@ -3778,10 +3858,18 @@ CheckboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: CheckboxMagicDirec
3778
3858
  class ComboboxMagicDirective {
3779
3859
  constructor(magicDirective) {
3780
3860
  this.magicDirective = magicDirective;
3861
+ this.magicDirective.task.refreshDom.pipe(filter(c => this.magicDirective.IsSameElement(c))).subscribe(value => {
3862
+ let command = value;
3863
+ if (command.Operation === HtmlProperties.ItemsList)
3864
+ this.onComboboxItemsListChanged();
3865
+ });
3781
3866
  }
3782
3867
  onChange($event) {
3783
3868
  this.magicDirective.task.onComboboxSelectionChanged($event, this.magicDirective.id, +this.magicDirective.rowId);
3784
3869
  }
3870
+ onComboboxItemsListChanged() {
3871
+ this.magicDirective.task.refreshView();
3872
+ }
3785
3873
  }
3786
3874
  ComboboxMagicDirective.ɵfac = function ComboboxMagicDirective_Factory(t) { return new (t || ComboboxMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
3787
3875
  ComboboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: ComboboxMagicDirective, selectors: [["select", "magic", "", 3, "multiple", ""]], hostBindings: function ComboboxMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
@@ -3951,13 +4039,10 @@ MagicShellComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicShellComponent,
3951
4039
  i0.ɵɵproperty("ngIf", ctx.RootComponent !== null);
3952
4040
  i0.ɵɵadvance(3);
3953
4041
  i0.ɵɵproperty("ngIf", ctx.showSpinner);
3954
- } }, directives: [i1.NgIf, i3.DynamicComponent, i3.DynamicIoDirective, MagicViewContainerRef, i1.NgTemplateOutlet], styles: [".mgSpinnerClass[_ngcontent-%COMP%]{border:10px solid #cccccc;border-top:10px solid black;border-radius:50%;position:fixed;margin:auto;inset:0;width:100px;height:100px;animation:spin 2s linear infinite}.spinner-background[_ngcontent-%COMP%]{position:fixed;z-index:1000;inset:0;opacity:.5}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"] });
4042
+ } }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i3.DynamicComponent, i3.DynamicIoDirective, MagicViewContainerRef], styles: [".mgSpinnerClass[_ngcontent-%COMP%]{border:10px solid #cccccc;border-top:10px solid black;border-radius:50%;position:fixed;margin:auto;inset:0;width:100px;height:100px;animation:_ngcontent-%COMP%_spin 2s linear infinite}.spinner-background[_ngcontent-%COMP%]{position:fixed;z-index:1000;inset:0;opacity:.5}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"] });
3955
4043
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicShellComponent, [{
3956
4044
  type: Component,
3957
- args: [{
3958
- selector: 'magic-root',
3959
- providers: [],
3960
- template: `
4045
+ args: [{ selector: 'magic-root', providers: [], template: `
3961
4046
  <div #magicRoot>
3962
4047
  <ndc-dynamic
3963
4048
  *ngIf = "RootComponent !== null"
@@ -3976,38 +4061,7 @@ MagicShellComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicShellComponent,
3976
4061
  <ng-template #defaultSpinner>
3977
4062
  <div class="mgSpinnerClass"></div>
3978
4063
  </ng-template>
3979
- `,
3980
- styles: [`
3981
- .mgSpinnerClass {
3982
- border: 10px solid #cccccc; /* Light grey */
3983
- border-top: 10px solid black; /* Blue */
3984
- border-radius: 50%;
3985
- position: fixed;
3986
- margin: auto;
3987
- top: 0;
3988
- right: 0;
3989
- bottom: 0;
3990
- left: 0;
3991
- width: 100px;
3992
- height: 100px;
3993
- animation: spin 2s linear infinite;
3994
- }
3995
- .spinner-background {
3996
- /* background fixed across whole screen */
3997
- position: fixed;
3998
- top: 0;
3999
- right: 0;
4000
- bottom: 0;
4001
- z-index: 1000;
4002
- left: 0;
4003
- opacity: 0.5;
4004
- }
4005
- @keyframes spin {
4006
- 0% { transform: rotate(0deg); }
4007
- 100% { transform: rotate(360deg); }
4008
- }
4009
- `]
4010
- }]
4064
+ `, styles: [".mgSpinnerClass{border:10px solid #cccccc;border-top:10px solid black;border-radius:50%;position:fixed;margin:auto;inset:0;width:100px;height:100px;animation:spin 2s linear infinite}.spinner-background{position:fixed;z-index:1000;inset:0;opacity:.5}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
4011
4065
  }], function () { return [{ type: EngineMagicService }, { type: ComponentListMagicService }, { type: i0.ChangeDetectorRef }, { type: i1$1.Title }, { type: OverlayWindowService }, { type: i1$2.HttpClient }, { type: CommandsCollectorMagicService }, { type: ExitMagicService, decorators: [{
4012
4066
  type: Optional
4013
4067
  }] }]; }, { rootMagicElementRef: [{
@@ -4173,6 +4227,11 @@ DateValueAccessor.ɵdir = i0.ɵɵdefineDirective({ type: DateValueAccessor, sele
4173
4227
  }] }); })();
4174
4228
 
4175
4229
  class NonMagicControlDirective {
4230
+ set magic(val) {
4231
+ this.id = val;
4232
+ this.selector = 'NonMagicControl';
4233
+ }
4234
+ ;
4176
4235
  constructor(_task, element, renderer, vcRef) {
4177
4236
  this._task = _task;
4178
4237
  this.element = element;
@@ -4182,11 +4241,6 @@ class NonMagicControlDirective {
4182
4241
  this.eventsOnlyVal = false;
4183
4242
  this.htmlElement = this.element.nativeElement;
4184
4243
  }
4185
- set magic(val) {
4186
- this.id = val;
4187
- this.selector = 'NonMagicControl';
4188
- }
4189
- ;
4190
4244
  get task() {
4191
4245
  return this._task;
4192
4246
  }
@@ -4250,19 +4304,17 @@ class MagicModule {
4250
4304
  }
4251
4305
  MagicModule.ɵfac = function MagicModule_Factory(t) { return new (t || MagicModule)(); };
4252
4306
  MagicModule.ɵmod = i0.ɵɵdefineNgModule({ type: MagicModule });
4253
- MagicModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider], imports: [[
4254
- CommonModule,
4255
- FormsModule,
4256
- ReactiveFormsModule,
4257
- RouterModule,
4258
- DynamicModule,
4259
- HttpClientModule
4260
- ]] });
4307
+ MagicModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider], imports: [CommonModule,
4308
+ FormsModule,
4309
+ ReactiveFormsModule,
4310
+ RouterModule,
4311
+ DynamicModule,
4312
+ HttpClientModule, MaskitoModule] });
4261
4313
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicModule, [{
4262
4314
  type: NgModule,
4263
4315
  args: [{
4264
4316
  declarations: [...decs],
4265
- exports: [...decs],
4317
+ exports: [...decs, MaskitoModule],
4266
4318
  entryComponents: [],
4267
4319
  imports: [
4268
4320
  CommonModule,
@@ -4334,7 +4386,7 @@ MagicModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMa
4334
4386
  RangeValidatorMagicDirective,
4335
4387
  NonMagicControlDirective,
4336
4388
  MagicFocusDirective,
4337
- MagicViewContainerRef] }); })();
4389
+ MagicViewContainerRef, MaskitoModule] }); })();
4338
4390
 
4339
4391
  const MG_FORMATS = {
4340
4392
  parse: { dateInput: { month: 'short', year: 'numeric', day: 'numeric' } },