@magic-xpa/angular 4.901.0 → 4.1000.0-Time24h-dev4100.352

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 +14 -4
  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 +105 -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 +223 -193
  25. package/fesm2015/magic-xpa-angular.mjs.map +1 -1
  26. package/fesm2020/magic-xpa-angular.mjs +223 -193
  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
@@ -15,8 +15,10 @@ import { filter, map, debounceTime } from 'rxjs/operators';
15
15
  import { Subject, fromEvent } from 'rxjs';
16
16
  import { __awaiter, __decorate, __metadata } from 'tslib';
17
17
  import * as i1$1 from '@angular/platform-browser';
18
+ import { maskitoTimeOptionsGenerator } from '@maskito/kit';
18
19
  import * as i1$2 from '@angular/common/http';
19
20
  import { HttpClientModule } from '@angular/common/http';
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
 
@@ -610,6 +612,9 @@ SubformMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: SubformMagicServic
610
612
  })();
611
613
 
612
614
  class RouterContainerMagicComponent {
615
+ static get LastRoute() {
616
+ return RouterContainerMagicComponent.lastRoute;
617
+ }
613
618
  constructor(activatedRoute, router, magic, containerTaskService, componentFactoryResolver, viewContainerRef, componentList, pendingCommandsCollector, routerCommandsMagicService) {
614
619
  this.activatedRoute = activatedRoute;
615
620
  this.router = router;
@@ -623,9 +628,6 @@ class RouterContainerMagicComponent {
623
628
  this.componentRef = null;
624
629
  this.parentMgSubformService = null;
625
630
  }
626
- static get LastRoute() {
627
- return RouterContainerMagicComponent.lastRoute;
628
- }
629
631
  ngOnInit() {
630
632
  let subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
631
633
  let currentActiveRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
@@ -824,15 +826,11 @@ class BaseMagicConfirmComponent {
824
826
  }
825
827
  }
826
828
  BaseMagicConfirmComponent.ɵfac = function BaseMagicConfirmComponent_Factory(t) { return new (t || BaseMagicConfirmComponent)(); };
827
- 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: [""] });
829
+ 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) { } });
828
830
  (function () {
829
831
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseMagicConfirmComponent, [{
830
832
  type: Component,
831
- args: [{
832
- selector: 'mg-base-alert',
833
- template: '',
834
- styles: ['']
835
- }]
833
+ args: [{ selector: 'mg-base-alert', template: '' }]
836
834
  }], null, { title: [{
837
835
  type: Input
838
836
  }], message: [{
@@ -851,15 +849,11 @@ class BaseMagicAlertComponent {
851
849
  }
852
850
  }
853
851
  BaseMagicAlertComponent.ɵfac = function BaseMagicAlertComponent_Factory(t) { return new (t || BaseMagicAlertComponent)(); };
854
- 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: [""] });
852
+ 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) { } });
855
853
  (function () {
856
854
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseMagicAlertComponent, [{
857
855
  type: Component,
858
- args: [{
859
- selector: 'mg-base-alert',
860
- template: '',
861
- styles: ['']
862
- }]
856
+ args: [{ selector: 'mg-base-alert', template: '' }]
863
857
  }], null, { title: [{
864
858
  type: Input
865
859
  }], message: [{
@@ -993,13 +987,11 @@ MagicOverlayContainerWrapper.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlay
993
987
  i0.ɵɵelement(6, "div", 5);
994
988
  i0.ɵɵelementEnd();
995
989
  }
996
- }, directives: [MagicFocusDirective, MagicViewContainerRef], styles: [".overlay-container-wrapper-background[_ngcontent-%COMP%]{position:fixed;z-index:999;inset:0}"] });
990
+ }, dependencies: [MagicFocusDirective, MagicViewContainerRef], styles: [".overlay-container-wrapper-background[_ngcontent-%COMP%]{position:fixed;z-index:999;inset:0}"] });
997
991
  (function () {
998
992
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicOverlayContainerWrapper, [{
999
993
  type: Component,
1000
- args: [{
1001
- selector: 'app-magic-overlay-container-wrapper',
1002
- template: `
994
+ args: [{ selector: 'app-magic-overlay-container-wrapper', template: `
1003
995
  <div>
1004
996
  <div class="overlay-container-wrapper-background" tabIndex="0" style="width: 0px; height: 0px;" magicFocus></div>
1005
997
  <div class="overlay-container-wrapper-background" #overlayContainerWrapper>
@@ -1008,19 +1000,7 @@ MagicOverlayContainerWrapper.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlay
1008
1000
  </div>
1009
1001
  <div class="overlay-container-wrapper-background" tabIndex="0" style="width: 0px; height: 0px;" ></div>
1010
1002
  </div>
1011
- `,
1012
- styles: [`
1013
- .overlay-container-wrapper-background {
1014
- /* modal background fixed across whole screen */
1015
- position: fixed;
1016
- top: 0;
1017
- z-index: 999;
1018
- right: 0;
1019
- bottom: 0;
1020
- left: 0;
1021
- }
1022
- `]
1023
- }]
1003
+ `, styles: [".overlay-container-wrapper-background{position:fixed;z-index:999;inset:0}\n"] }]
1024
1004
  }], function () { return [{ type: ComponentListMagicService }, { type: MagicLazyLoaderService }, { type: i0.Injector }, { type: i0.ComponentFactoryResolver }, { type: i0.ChangeDetectorRef }, { type: i0.Compiler }]; }, { Component: [{
1025
1005
  type: Input
1026
1006
  }], Parameters: [{
@@ -1082,7 +1062,7 @@ function MagicOverlayContainer_button_2_Template(rf, ctx) {
1082
1062
  if (rf & 1) {
1083
1063
  const _r5 = i0.ɵɵgetCurrentView();
1084
1064
  i0.ɵɵelementStart(0, "button", 8);
1085
- i0.ɵɵlistener("click", function MagicOverlayContainer_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.OnClose(); });
1065
+ 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()); });
1086
1066
  i0.ɵɵtext(1, "X");
1087
1067
  i0.ɵɵelementEnd();
1088
1068
  }
@@ -1093,7 +1073,7 @@ function MagicOverlayContainer_div_5_Template(rf, ctx) {
1093
1073
  i0.ɵɵelementStart(0, "div", 9, 10);
1094
1074
  i0.ɵɵtext(2);
1095
1075
  i0.ɵɵelementStart(3, "button", 11);
1096
- i0.ɵɵlistener("click", function MagicOverlayContainer_div_5_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.OnClose(); });
1076
+ 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()); });
1097
1077
  i0.ɵɵtext(4, "X");
1098
1078
  i0.ɵɵelementEnd()();
1099
1079
  }
@@ -1206,7 +1186,7 @@ MagicOverlayContainer.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlayContain
1206
1186
  i0.ɵɵadvance(1);
1207
1187
  i0.ɵɵproperty("ngStyle", ctx.getClientAreaStyles());
1208
1188
  }
1209
- }, 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}"] });
1189
+ }, 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}"] });
1210
1190
  (function () {
1211
1191
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicOverlayContainer, [{
1212
1192
  type: Component,
@@ -1281,46 +1261,14 @@ MagicAlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicAlertComponent,
1281
1261
  (function () {
1282
1262
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicAlertComponent, [{
1283
1263
  type: Component,
1284
- args: [{
1285
- selector: 'sample-magic-alert-component',
1286
- template: `<div>
1264
+ args: [{ selector: 'sample-magic-alert-component', template: `<div>
1287
1265
  <div class="mg-message-background">
1288
1266
  <h2> {{title}}</h2>
1289
1267
  <p>{{message}} </p>
1290
1268
 
1291
1269
  <button (click)="OnClose()">OK</button>
1292
1270
  </div>
1293
- </div>`,
1294
- styles: [`
1295
- .mg-message-background {
1296
- background-color: #F5F5F5;
1297
- text-align: center;
1298
- width: 40%;
1299
- font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
1300
- padding: 17px;
1301
- border-radius: 5px;
1302
- text-align: center;
1303
- margin-top: 10% ;
1304
- margin-left: auto;
1305
- margin-right: auto;
1306
- border: 1px solid gray;
1307
- }
1308
-
1309
- button {
1310
- background-color: #8CD4F5;
1311
- color: white;
1312
- border: none;
1313
- box-shadow: none;
1314
- font-size: 17px;
1315
- font-weight: 500;
1316
- -webkit-border-radius: 4px;
1317
- border-radius: 5px;
1318
- padding: 10px 32px;
1319
- margin: 26px 5px 0 5px;
1320
- cursor: pointer;
1321
- }
1322
- `]
1323
- }]
1271
+ </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"] }]
1324
1272
  }], null, null);
1325
1273
  })();
1326
1274
 
@@ -1353,9 +1301,7 @@ MagicConfirmationBoxComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicConfir
1353
1301
  (function () {
1354
1302
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicConfirmationBoxComponent, [{
1355
1303
  type: Component,
1356
- args: [{
1357
- selector: 'sample-magic-confirmation-box',
1358
- template: `<div>
1304
+ args: [{ selector: 'sample-magic-confirmation-box', template: `<div>
1359
1305
  <div class="mg-message-background">
1360
1306
  <h2> {{title}}</h2>
1361
1307
  {{message}}
@@ -1365,41 +1311,7 @@ MagicConfirmationBoxComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicConfir
1365
1311
  <button (click)="OnClose(true)">OK</button>
1366
1312
  <button class="cancel" (click)="OnClose(false)">Cancel</button>
1367
1313
  </div>
1368
- </div>`,
1369
- styles: [`
1370
- .mg-message-background {
1371
- background-color: #F5F5F5;
1372
- text-align: center;
1373
- width: 40%;
1374
- font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
1375
- padding: 17px;
1376
- border-radius: 5px;
1377
- text-align: center;
1378
- margin-top: 10% ;
1379
- margin-left: auto;
1380
- margin-right: auto;
1381
- border: 1px solid gray;
1382
- }
1383
-
1384
- button {
1385
- background-color: #8CD4F5;
1386
- color: white;
1387
- border: none;
1388
- box-shadow: none;
1389
- font-size: 17px;
1390
- font-weight: 500;
1391
- -webkit-border-radius: 4px;
1392
- border-radius: 5px;
1393
- padding: 10px 32px;
1394
- margin: 26px 5px 0 5px;
1395
- cursor: pointer;
1396
- }
1397
-
1398
- button.cancel {
1399
- background-color: #C1C1C1;
1400
- }
1401
- `]
1402
- }]
1314
+ </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"] }]
1403
1315
  }], null, null);
1404
1316
  })();
1405
1317
 
@@ -1629,6 +1541,7 @@ class TaskMagicService {
1629
1541
  this.OnSelectedRowChanged = new EventEmitter();
1630
1542
  this.customPropertiesSubject = new Subject();
1631
1543
  this.recordsCountChangeSubject = new Subject();
1544
+ this.mgLoadSubject = new Subject();
1632
1545
  this.oldPageSize = 0;
1633
1546
  this.Records.setGuiTopIndex(0);
1634
1547
  this.mgInputDateFormat = null;
@@ -1881,6 +1794,11 @@ class TaskMagicService {
1881
1794
  }
1882
1795
  }
1883
1796
  break;
1797
+ case CommandType.SET_CHUNK_SIZE:
1798
+ if (!isUndefined(command.number)) {
1799
+ this.tableService.setChunkSize(command.number);
1800
+ }
1801
+ break;
1884
1802
  case CommandType.SET_RECORDS_BEFORE_CURRENT_VIEW:
1885
1803
  this.updateRecordsBeforeCurrentView(command.number);
1886
1804
  break;
@@ -1908,7 +1826,8 @@ class TaskMagicService {
1908
1826
  break;
1909
1827
  case CommandType.SET_PROPERTY:
1910
1828
  this.handleSetProperty(command, isTableChild);
1911
- if (command.Operation == HtmlProperties.ReadOnly)
1829
+ if (command.Operation == HtmlProperties.ReadOnly ||
1830
+ command.Operation == HtmlProperties.ItemsList)
1912
1831
  this.refreshDom.next(command);
1913
1832
  break;
1914
1833
  case CommandType.PROP_SET_USER_PROPERTY:
@@ -1963,6 +1882,9 @@ class TaskMagicService {
1963
1882
  case CommandType.SET_FOCUS:
1964
1883
  this.refreshDom.next(command);
1965
1884
  break;
1885
+ case CommandType.SET_WC_IDLE:
1886
+ this.mgLoadSubject.next();
1887
+ break;
1966
1888
  }
1967
1889
  }
1968
1890
  customValidator(rowid, id) {
@@ -2161,10 +2083,10 @@ class TaskMagicService {
2161
2083
  mgOnRadioSelectionChanged(idx) {
2162
2084
  let result = this.getFormControl('0', idx);
2163
2085
  let guiEvent = getGuiEventObj('selectionchanged', idx, 0);
2164
- if (typeof result.value !== 'string')
2086
+ if (typeof result.value !== 'number')
2165
2087
  guiEvent.Value = result.value.index;
2166
2088
  else
2167
- guiEvent.Value = result.value;
2089
+ guiEvent.Value = result.value.toString();
2168
2090
  this.insertEvent(guiEvent);
2169
2091
  }
2170
2092
  close() {
@@ -2225,7 +2147,10 @@ class TableMagicService {
2225
2147
  refreshDataSource() {
2226
2148
  }
2227
2149
  getPageSize() {
2228
- return 10;
2150
+ return this.chunkSize;
2151
+ }
2152
+ setChunkSize(size) {
2153
+ this.chunkSize = size;
2229
2154
  }
2230
2155
  getMaxRowsInTable() {
2231
2156
  return this.task.Records.list.length;
@@ -2313,6 +2238,9 @@ const SYSTEM_BG = 4;
2313
2238
  const SYSTEM_FG_AND_SYSTEM_BG = 6;
2314
2239
  const TRANSPERENT_BG = 1;
2315
2240
  class MagicColorService {
2241
+ getColorFilePath() {
2242
+ return 'assets/' + this.colorFileName;
2243
+ }
2316
2244
  constructor(http, colorFile1 = 'clr_rnt.eng') {
2317
2245
  this.http = http;
2318
2246
  this.colorFileName = 'clr_rnt.eng';
@@ -2322,9 +2250,6 @@ class MagicColorService {
2322
2250
  else
2323
2251
  this.colorFileName = 'clr_rnt.eng';
2324
2252
  }
2325
- getColorFilePath() {
2326
- return 'assets/' + this.colorFileName;
2327
- }
2328
2253
  getColorData() {
2329
2254
  if (!this.colorsData) {
2330
2255
  this.http.get(this.getColorFilePath(), { responseType: 'text' }).subscribe(resp => {
@@ -2406,6 +2331,9 @@ class AccessorMagicService {
2406
2331
  this.task = task;
2407
2332
  this.magicColor = magicColor;
2408
2333
  this.Logger = null;
2334
+ this.hhmm = maskitoTimeOptionsGenerator({ mode: 'HH:MM' });
2335
+ this.hhmmss = maskitoTimeOptionsGenerator({ mode: 'HH:MM:SS' });
2336
+ this.hhmmssms = maskitoTimeOptionsGenerator({ mode: 'HH:MM:SS.MSS' });
2409
2337
  this.Logger = Logger.Instance;
2410
2338
  }
2411
2339
  checkIsReadOnly(controlId) {
@@ -2641,8 +2569,30 @@ class AccessorMagicService {
2641
2569
  let c = this.task.getFormControl(rowId, id);
2642
2570
  if (c.hasError('required'))
2643
2571
  return 'Control must be updated.';
2644
- if (c.hasError('pattern'))
2645
- return 'Required pattern is : ' + c.errors.pattern.requiredPattern;
2572
+ if (c.hasError('pattern')) {
2573
+ if (c.errors.pattern.actualValue < 0 && !c.errors.pattern.requiredPattern.includes('-'))
2574
+ return 'Value must be non-negative';
2575
+ if (c.errors.pattern.requiredPattern.includes('.')) {
2576
+ const numericFormat = Math.abs(c.errors.pattern.actualValue).toString().split('.')[0];
2577
+ const decimalFormat = Math.abs(c.errors.pattern.actualValue).toString().split('.')[1];
2578
+ const actualNumericLimit = c.errors.pattern.requiredPattern.match(/,(\d+)/)[1];
2579
+ const actualDecimalLimit = c.errors.pattern.requiredPattern.match(/(?:[^,]+,){2}(\d+)/)[1];
2580
+ if (numericFormat.length > actualNumericLimit || decimalFormat.length > actualDecimalLimit) {
2581
+ return "Numeric format is limited to " + actualNumericLimit + "." + actualDecimalLimit + " digits";
2582
+ }
2583
+ }
2584
+ else if (!c.errors.pattern.requiredPattern.includes('.') && !Number.isInteger(c.errors.pattern.actualValue)) {
2585
+ const actualNumericLimit = c.errors.pattern.requiredPattern.match(/,(\d+)/)[1];
2586
+ return "Numeric format is limited to " + actualNumericLimit + "." + 0 + " digits";
2587
+ }
2588
+ else {
2589
+ const numericFormat = Math.abs(c.errors.pattern.actualValue).toString();
2590
+ const actualNumericLimit = c.errors.pattern.requiredPattern.match(/,(\d+)/)[1];
2591
+ if (numericFormat.length > actualNumericLimit) {
2592
+ return "Numeric format is limited to " + actualNumericLimit + "." + 0 + " digits";
2593
+ }
2594
+ }
2595
+ }
2646
2596
  if (c.hasError('rangevalidator'))
2647
2597
  return c.errors.rangevalidator.errorMsg;
2648
2598
  if (c.hasError('maxlength'))
@@ -2782,6 +2732,9 @@ class TaskBaseMagicComponent {
2782
2732
  this.task.recordsCountChangeSubject.pipe().subscribe(value => {
2783
2733
  this.RecordsCountChanged(value);
2784
2734
  });
2735
+ this.task.mgLoadSubject.pipe().subscribe(value => {
2736
+ this.mgOnLoad();
2737
+ });
2785
2738
  }
2786
2739
  createFormControlsAccessor(formGroup) { }
2787
2740
  setInputDateFormat() { }
@@ -2789,11 +2742,13 @@ class TaskBaseMagicComponent {
2789
2742
  }
2790
2743
  RecordsCountChanged(recordsCount) {
2791
2744
  }
2745
+ mgOnLoad() {
2746
+ }
2792
2747
  ngAfterViewInit() {
2793
2748
  this.mgSub.init();
2794
2749
  }
2795
2750
  ngAfterContentChecked() {
2796
- if (this.task.oldPageSize != this.tableService.getPageSize()) {
2751
+ if (!isNullOrUndefined(this.tableService.getPageSize()) && this.task.oldPageSize != this.tableService.getPageSize()) {
2797
2752
  this.task.resize(this.tableService.getPageSize(), 0);
2798
2753
  this.task.oldPageSize = this.tableService.getPageSize();
2799
2754
  }
@@ -2875,6 +2830,16 @@ RowMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: RowMagicDirective, sele
2875
2830
  })();
2876
2831
 
2877
2832
  class MagicDirective {
2833
+ set magic(val) {
2834
+ this.id = val;
2835
+ this.selector = "magic";
2836
+ }
2837
+ ;
2838
+ set eventsOnly(val) {
2839
+ console.log("eventsOnly");
2840
+ this.eventsOnlyVal = true;
2841
+ }
2842
+ ;
2878
2843
  constructor(_task, element, renderer, vcRef, magicRow) {
2879
2844
  this._task = _task;
2880
2845
  this.element = element;
@@ -2887,16 +2852,6 @@ class MagicDirective {
2887
2852
  if (!(typeof magicRow === "undefined" || magicRow === null))
2888
2853
  this.rowId = magicRow.rowId;
2889
2854
  }
2890
- set magic(val) {
2891
- this.id = val;
2892
- this.selector = "magic";
2893
- }
2894
- ;
2895
- set eventsOnly(val) {
2896
- console.log("eventsOnly");
2897
- this.eventsOnlyVal = true;
2898
- }
2899
- ;
2900
2855
  get task() {
2901
2856
  return this._task;
2902
2857
  }
@@ -3076,11 +3031,11 @@ MagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MagicDirective, selectors:
3076
3031
  })();
3077
3032
 
3078
3033
  class NoControlMagicDirective extends MagicDirective {
3034
+ set magic(val) { this.id = val; this.selector = 'magicnc'; }
3035
+ ;
3079
3036
  constructor(_task, element, renderer, vcRef, magicRow) {
3080
3037
  super(_task, element, renderer, vcRef, magicRow);
3081
3038
  }
3082
- set magic(val) { this.id = val; this.selector = 'magicnc'; }
3083
- ;
3084
3039
  regEvents() {
3085
3040
  super.regEvents();
3086
3041
  if (this.htmlElement instanceof HTMLSelectElement) {
@@ -3376,9 +3331,112 @@ class MgformatMagicDirective {
3376
3331
  onFocusEvent($event) {
3377
3332
  this.calculatePattern();
3378
3333
  }
3379
- onInputEvent($event) {
3334
+ onInputEvent(event) {
3335
+ let control = this._task.getFormControl(this.magicDir.rowId, this.magicDir.id);
3336
+ if (control != null) {
3337
+ let attr = this._task.Records.list[0].getControlMetadata(this.magicDir.id).dataType;
3338
+ if (attr == StorageAttribute.DATE) {
3339
+ this.dateMasking(event);
3340
+ }
3341
+ }
3380
3342
  this.calculatePattern();
3381
3343
  }
3344
+ dateMasking(event) {
3345
+ const input = event.target;
3346
+ let cursorPos = event.target.selectionStart;
3347
+ const separator = this._task.mgInputDateFormat.includes('/') ? '/' : '-';
3348
+ if (cursorPos >= input.value.length) {
3349
+ const value = input.value.replace(/[^a-zA-Z0-9]/g, '');
3350
+ 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") {
3351
+ if (value.length <= 2) {
3352
+ input.value = value;
3353
+ }
3354
+ else if (value.length <= 4) {
3355
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2)}`;
3356
+ }
3357
+ else {
3358
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2, 4)}` + separator + `${value.slice(4, 8)}`;
3359
+ }
3360
+ }
3361
+ 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") {
3362
+ if (value.length <= 4) {
3363
+ input.value = value;
3364
+ }
3365
+ else if (value.length <= 6) {
3366
+ input.value = `${value.slice(0, 4)}` + separator + `${value.slice(4)}`;
3367
+ }
3368
+ else {
3369
+ input.value = `${value.slice(0, 4)}` + separator + `${value.slice(4, 6)}` + separator + `${value.slice(6, 8)}`;
3370
+ }
3371
+ }
3372
+ 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") {
3373
+ if (value.length <= 2) {
3374
+ input.value = value;
3375
+ }
3376
+ else if (value.length <= 4) {
3377
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2)}`;
3378
+ }
3379
+ else {
3380
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2, 4)}` + separator + `${value.slice(4, 6)}`;
3381
+ }
3382
+ }
3383
+ else if (this._task.mgInputDateFormat == "dd/MMM/yy" || this._task.mgInputDateFormat == "dd-MMM-yy") {
3384
+ if (value.length <= 2) {
3385
+ input.value = value;
3386
+ }
3387
+ else if (value.length <= 5) {
3388
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2)}`;
3389
+ }
3390
+ else {
3391
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2, 5)}` + separator + `${value.slice(5, 7)}`;
3392
+ }
3393
+ }
3394
+ else if (this._task.mgInputDateFormat == "yy/dd/MMM" || this._task.mgInputDateFormat == "yy-dd-MMM") {
3395
+ if (value.length <= 2) {
3396
+ input.value = value;
3397
+ }
3398
+ else if (value.length <= 4) {
3399
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2)}`;
3400
+ }
3401
+ else {
3402
+ input.value = `${value.slice(0, 2)}` + separator + `${value.slice(2, 4)}` + separator + `${value.slice(4, 7)}`;
3403
+ }
3404
+ }
3405
+ else if (this._task.mgInputDateFormat == "yyyy/dd/MMM" || this._task.mgInputDateFormat == "yyyy-dd-MMM") {
3406
+ if (value.length <= 4) {
3407
+ input.value = value;
3408
+ }
3409
+ else if (value.length <= 6) {
3410
+ input.value = `${value.slice(0, 4)}` + separator + `${value.slice(4)}`;
3411
+ }
3412
+ else {
3413
+ input.value = `${value.slice(0, 4)}` + separator + `${value.slice(4, 6)}` + separator + `${value.slice(6, 9)}`;
3414
+ }
3415
+ }
3416
+ else if (this._task.mgInputDateFormat == "MMM/dd/yy" || this._task.mgInputDateFormat == "MMM-dd-yy") {
3417
+ if (value.length <= 3) {
3418
+ input.value = value;
3419
+ }
3420
+ else if (value.length <= 5) {
3421
+ input.value = `${value.slice(0, 3)}` + separator + `${value.slice(3)}`;
3422
+ }
3423
+ else {
3424
+ input.value = `${value.slice(0, 3)}` + separator + `${value.slice(3, 5)}` + separator + `${value.slice(5, 7)}`;
3425
+ }
3426
+ }
3427
+ else if (this._task.mgInputDateFormat == "MMM/dd/yyyy" || this._task.mgInputDateFormat == "MMM-dd-yyyy") {
3428
+ if (value.length <= 3) {
3429
+ input.value = value;
3430
+ }
3431
+ else if (value.length <= 5) {
3432
+ input.value = `${value.slice(0, 3)}` + separator + `${value.slice(3)}`;
3433
+ }
3434
+ else {
3435
+ input.value = `${value.slice(0, 3)}` + separator + `${value.slice(3, 5)}` + separator + `${value.slice(5, 9)}`;
3436
+ }
3437
+ }
3438
+ }
3439
+ }
3382
3440
  onChangeEvent($event) {
3383
3441
  let control = this._task.getFormControl(this.magicDir.rowId, this.magicDir.id);
3384
3442
  let attr = this._task.Records.list[0].getControlMetadata(this.magicDir.id).dataType;
@@ -3706,14 +3764,14 @@ function SubformMagicComponent_ndc_dynamic_0_Template(rf, ctx) {
3706
3764
  }
3707
3765
  }
3708
3766
  class SubformMagicComponent {
3767
+ set magic(val) { this.id = val; }
3768
+ ;
3709
3769
  constructor(vcRef, mgSub) {
3710
3770
  this.vcRef = vcRef;
3711
3771
  this.mgSub = mgSub;
3712
3772
  this.component = null;
3713
3773
  this.component = (this.vcRef._hostLView).find(v => !isNullOrUndefined(v));
3714
3774
  }
3715
- set magic(val) { this.id = val; }
3716
- ;
3717
3775
  get Component() {
3718
3776
  return this.mgSub.mgGetComp(this.id);
3719
3777
  }
@@ -3729,7 +3787,7 @@ SubformMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SubformMagicCompone
3729
3787
  if (rf & 2) {
3730
3788
  i0.ɵɵproperty("ngIf", ctx.Component);
3731
3789
  }
3732
- }, directives: [i1.NgIf, i3.DynamicComponent, i3.DynamicIoDirective], encapsulation: 2 });
3790
+ }, dependencies: [i1.NgIf, i3.DynamicComponent, i3.DynamicIoDirective], encapsulation: 2 });
3733
3791
  (function () {
3734
3792
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubformMagicComponent, [{
3735
3793
  type: Component,
@@ -3778,13 +3836,6 @@ function ErrorMagicComponent_div_0_Template(rf, ctx) {
3778
3836
  }
3779
3837
  const _c1 = ["*"];
3780
3838
  class ErrorMagicComponent {
3781
- constructor(_task, mgService, changeDetectorRef) {
3782
- this._task = _task;
3783
- this.mgService = mgService;
3784
- this.changeDetectorRef = changeDetectorRef;
3785
- this.defaultDisplay = true;
3786
- this.rowId = "0";
3787
- }
3788
3839
  set magic(val) {
3789
3840
  this.id = val;
3790
3841
  }
@@ -3798,6 +3849,13 @@ class ErrorMagicComponent {
3798
3849
  this.changeDetectorRef.detectChanges();
3799
3850
  }
3800
3851
  ;
3852
+ constructor(_task, mgService, changeDetectorRef) {
3853
+ this._task = _task;
3854
+ this.mgService = mgService;
3855
+ this.changeDetectorRef = changeDetectorRef;
3856
+ this.defaultDisplay = true;
3857
+ this.rowId = "0";
3858
+ }
3801
3859
  isEmpty(element) {
3802
3860
  const nodes = element.childNodes;
3803
3861
  for (let i = 0; i < nodes.length; i++) {
@@ -3846,7 +3904,7 @@ ErrorMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ErrorMagicComponent,
3846
3904
  if (rf & 2) {
3847
3905
  i0.ɵɵproperty("ngIf", ctx.HasErrors(ctx.id));
3848
3906
  }
3849
- }, directives: [i1.NgIf], encapsulation: 2 });
3907
+ }, dependencies: [i1.NgIf], encapsulation: 2 });
3850
3908
  (function () {
3851
3909
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorMagicComponent, [{
3852
3910
  type: Component,
@@ -3905,10 +3963,18 @@ CheckboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: CheckboxMagicDirec
3905
3963
  class ComboboxMagicDirective {
3906
3964
  constructor(magicDirective) {
3907
3965
  this.magicDirective = magicDirective;
3966
+ this.magicDirective.task.refreshDom.pipe(filter(c => this.magicDirective.IsSameElement(c))).subscribe(value => {
3967
+ let command = value;
3968
+ if (command.Operation === HtmlProperties.ItemsList)
3969
+ this.onComboboxItemsListChanged();
3970
+ });
3908
3971
  }
3909
3972
  onChange($event) {
3910
3973
  this.magicDirective.task.onComboboxSelectionChanged($event, this.magicDirective.id, +this.magicDirective.rowId);
3911
3974
  }
3975
+ onComboboxItemsListChanged() {
3976
+ this.magicDirective.task.refreshView();
3977
+ }
3912
3978
  }
3913
3979
  ComboboxMagicDirective.ɵfac = function ComboboxMagicDirective_Factory(t) { return new (t || ComboboxMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
3914
3980
  ComboboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: ComboboxMagicDirective, selectors: [["select", "magic", "", 3, "multiple", ""]], hostBindings: function ComboboxMagicDirective_HostBindings(rf, ctx) {
@@ -4100,14 +4166,11 @@ MagicShellComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicShellComponent,
4100
4166
  i0.ɵɵadvance(3);
4101
4167
  i0.ɵɵproperty("ngIf", ctx.showSpinner);
4102
4168
  }
4103
- }, 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)}}"] });
4169
+ }, 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)}}"] });
4104
4170
  (function () {
4105
4171
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicShellComponent, [{
4106
4172
  type: Component,
4107
- args: [{
4108
- selector: 'magic-root',
4109
- providers: [],
4110
- template: `
4173
+ args: [{ selector: 'magic-root', providers: [], template: `
4111
4174
  <div #magicRoot>
4112
4175
  <ndc-dynamic
4113
4176
  *ngIf = "RootComponent !== null"
@@ -4126,38 +4189,7 @@ MagicShellComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicShellComponent,
4126
4189
  <ng-template #defaultSpinner>
4127
4190
  <div class="mgSpinnerClass"></div>
4128
4191
  </ng-template>
4129
- `,
4130
- styles: [`
4131
- .mgSpinnerClass {
4132
- border: 10px solid #cccccc; /* Light grey */
4133
- border-top: 10px solid black; /* Blue */
4134
- border-radius: 50%;
4135
- position: fixed;
4136
- margin: auto;
4137
- top: 0;
4138
- right: 0;
4139
- bottom: 0;
4140
- left: 0;
4141
- width: 100px;
4142
- height: 100px;
4143
- animation: spin 2s linear infinite;
4144
- }
4145
- .spinner-background {
4146
- /* background fixed across whole screen */
4147
- position: fixed;
4148
- top: 0;
4149
- right: 0;
4150
- bottom: 0;
4151
- z-index: 1000;
4152
- left: 0;
4153
- opacity: 0.5;
4154
- }
4155
- @keyframes spin {
4156
- 0% { transform: rotate(0deg); }
4157
- 100% { transform: rotate(360deg); }
4158
- }
4159
- `]
4160
- }]
4192
+ `, 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"] }]
4161
4193
  }], function () {
4162
4194
  return [{ type: EngineMagicService }, { type: ComponentListMagicService }, { type: i0.ChangeDetectorRef }, { type: i1$1.Title }, { type: OverlayWindowService }, { type: i1$2.HttpClient }, { type: CommandsCollectorMagicService }, { type: ExitMagicService, decorators: [{
4163
4195
  type: Optional
@@ -4346,6 +4378,11 @@ DateValueAccessor.ɵdir = i0.ɵɵdefineDirective({ type: DateValueAccessor, sele
4346
4378
  })();
4347
4379
 
4348
4380
  class NonMagicControlDirective {
4381
+ set magic(val) {
4382
+ this.id = val;
4383
+ this.selector = 'NonMagicControl';
4384
+ }
4385
+ ;
4349
4386
  constructor(_task, element, renderer, vcRef) {
4350
4387
  this._task = _task;
4351
4388
  this.element = element;
@@ -4355,11 +4392,6 @@ class NonMagicControlDirective {
4355
4392
  this.eventsOnlyVal = false;
4356
4393
  this.htmlElement = this.element.nativeElement;
4357
4394
  }
4358
- set magic(val) {
4359
- this.id = val;
4360
- this.selector = 'NonMagicControl';
4361
- }
4362
- ;
4363
4395
  get task() {
4364
4396
  return this._task;
4365
4397
  }
@@ -4425,20 +4457,18 @@ class MagicModule {
4425
4457
  }
4426
4458
  MagicModule.ɵfac = function MagicModule_Factory(t) { return new (t || MagicModule)(); };
4427
4459
  MagicModule.ɵmod = i0.ɵɵdefineNgModule({ type: MagicModule });
4428
- MagicModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider], imports: [[
4429
- CommonModule,
4430
- FormsModule,
4431
- ReactiveFormsModule,
4432
- RouterModule,
4433
- DynamicModule,
4434
- HttpClientModule
4435
- ]] });
4460
+ MagicModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider], imports: [CommonModule,
4461
+ FormsModule,
4462
+ ReactiveFormsModule,
4463
+ RouterModule,
4464
+ DynamicModule,
4465
+ HttpClientModule, MaskitoModule] });
4436
4466
  (function () {
4437
4467
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicModule, [{
4438
4468
  type: NgModule,
4439
4469
  args: [{
4440
4470
  declarations: [...decs],
4441
- exports: [...decs],
4471
+ exports: [...decs, MaskitoModule],
4442
4472
  entryComponents: [],
4443
4473
  imports: [
4444
4474
  CommonModule,
@@ -4512,7 +4542,7 @@ MagicModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMa
4512
4542
  RangeValidatorMagicDirective,
4513
4543
  NonMagicControlDirective,
4514
4544
  MagicFocusDirective,
4515
- MagicViewContainerRef] });
4545
+ MagicViewContainerRef, MaskitoModule] });
4516
4546
  })();
4517
4547
 
4518
4548
  const MG_FORMATS = {