@magic-xpa/angular 4.1000.0-dev4100.99 → 4.1000.0
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.
- package/esm2020/index.mjs +2 -1
- package/esm2020/src/magic.core.module.mjs +16 -13
- package/esm2020/src/services/accessor.magic.service.mjs +28 -3
- package/esm2020/src/services/magic-color.service.mjs +4 -4
- package/esm2020/src/services/subform.magic.service.mjs +1 -1
- package/esm2020/src/services/table.magic.service.mjs +5 -2
- package/esm2020/src/services/task.magics.service.mjs +14 -4
- package/esm2020/src/ui/components/base-magic-alert.component.mjs +3 -7
- package/esm2020/src/ui/components/base-magic-confirm.component.mjs +3 -7
- package/esm2020/src/ui/components/magic-alert.component.mjs +3 -35
- package/esm2020/src/ui/components/magic-confirmation-box.component.mjs +3 -39
- package/esm2020/src/ui/directives/NonMagicControlDirective.mjs +6 -6
- package/esm2020/src/ui/directives/magic/combobox.magic.directive.mjs +11 -1
- package/esm2020/src/ui/directives/magic/nocontrol.magic.directive.mjs +3 -3
- package/esm2020/src/ui/directives/magic.directive.mjs +11 -11
- package/esm2020/src/ui/directives/mgformat.magic.directive.mjs +168 -3
- package/esm2020/src/ui/magic-modal/base-magic-overlay-container.mjs +1 -1
- package/esm2020/src/ui/magic-modal/magic-overlay-container-wrapper.mjs +4 -18
- package/esm2020/src/ui/magic-modal/magic-overlay-container.mjs +4 -4
- package/esm2020/src/ui/magic-root.component.mjs +4 -38
- package/esm2020/src/ui/mgerror.magic.component.mjs +9 -9
- package/esm2020/src/ui/pipes/time24.magic.pipe.mjs +34 -0
- package/esm2020/src/ui/router-container.magic.component.mjs +4 -4
- package/esm2020/src/ui/subform.magic.component.mjs +4 -4
- package/esm2020/src/ui/task-base.magic.component.mjs +8 -2
- package/fesm2015/magic-xpa-angular.mjs +323 -197
- package/fesm2015/magic-xpa-angular.mjs.map +1 -1
- package/fesm2020/magic-xpa-angular.mjs +321 -197
- package/fesm2020/magic-xpa-angular.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +11 -8
- package/src/magic.core.module.d.ts +8 -6
- package/src/services/accessor.magic.service.d.ts +3 -0
- package/src/services/table.magic.service.d.ts +2 -0
- package/src/services/task.magics.service.d.ts +1 -0
- package/src/ui/components/base-magic-alert.component.d.ts +1 -1
- package/src/ui/components/base-magic-confirm.component.d.ts +1 -1
- package/src/ui/components/magic-alert.component.d.ts +1 -1
- package/src/ui/components/magic-confirmation-box.component.d.ts +1 -1
- package/src/ui/directives/NonMagicControlDirective.d.ts +1 -1
- package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +1 -1
- package/src/ui/directives/magic/checkbox.magic.directive.d.ts +1 -1
- package/src/ui/directives/magic/combobox.magic.directive.d.ts +2 -1
- package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +1 -1
- package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +1 -1
- package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +1 -1
- package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +1 -1
- package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +1 -1
- package/src/ui/directives/magic/row.magic.directive.d.ts +1 -1
- package/src/ui/directives/magic-focus.directive.d.ts +1 -1
- package/src/ui/directives/magic.directive.d.ts +2 -2
- package/src/ui/directives/magicViewContainerRef.directive.d.ts +1 -1
- package/src/ui/directives/mgformat.magic.directive.d.ts +5 -2
- package/src/ui/directives/range-validator.magic.directive.d.ts +1 -1
- package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +1 -1
- package/src/ui/magic-modal/magic-overlay-container.d.ts +1 -1
- package/src/ui/magic-root.component.d.ts +1 -1
- package/src/ui/mgerror.magic.component.d.ts +1 -1
- package/src/ui/pipes/date.magic.pipe.d.ts +1 -1
- package/src/ui/pipes/time.magic.pipe.d.ts +1 -1
- package/src/ui/pipes/time24.magic.pipe.d.ts +10 -0
- package/src/ui/router-container.magic.component.d.ts +1 -1
- package/src/ui/subform.magic.component.d.ts +1 -1
- package/src/ui/task-base.magic.component.d.ts +2 -1
- 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 | 
            -
                } },  | 
| 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) { } | 
| 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) { } | 
| 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 | 
            -
                } },  | 
| 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) {
         | 
| @@ -2101,10 +2023,10 @@ class TaskMagicService { | |
| 2101 2023 | 
             
                mgOnRadioSelectionChanged(idx) {
         | 
| 2102 2024 | 
             
                    let result = this.getFormControl('0', idx);
         | 
| 2103 2025 | 
             
                    let guiEvent = getGuiEventObj('selectionchanged', idx, 0);
         | 
| 2104 | 
            -
                    if (typeof result.value !== ' | 
| 2026 | 
            +
                    if (typeof result.value !== 'number')
         | 
| 2105 2027 | 
             
                        guiEvent.Value = result.value.index;
         | 
| 2106 2028 | 
             
                    else
         | 
| 2107 | 
            -
                        guiEvent.Value = result.value;
         | 
| 2029 | 
            +
                        guiEvent.Value = result.value.toString();
         | 
| 2108 2030 | 
             
                    this.insertEvent(guiEvent);
         | 
| 2109 2031 | 
             
                }
         | 
| 2110 2032 | 
             
                close() {
         | 
| @@ -2163,7 +2085,10 @@ class TableMagicService { | |
| 2163 2085 | 
             
                refreshDataSource() {
         | 
| 2164 2086 | 
             
                }
         | 
| 2165 2087 | 
             
                getPageSize() {
         | 
| 2166 | 
            -
                    return  | 
| 2088 | 
            +
                    return this.chunkSize;
         | 
| 2089 | 
            +
                }
         | 
| 2090 | 
            +
                setChunkSize(size) {
         | 
| 2091 | 
            +
                    this.chunkSize = size;
         | 
| 2167 2092 | 
             
                }
         | 
| 2168 2093 | 
             
                getMaxRowsInTable() {
         | 
| 2169 2094 | 
             
                    return this.task.Records.list.length;
         | 
| @@ -2247,6 +2172,9 @@ const SYSTEM_BG = 4; | |
| 2247 2172 | 
             
            const SYSTEM_FG_AND_SYSTEM_BG = 6;
         | 
| 2248 2173 | 
             
            const TRANSPERENT_BG = 1;
         | 
| 2249 2174 | 
             
            class MagicColorService {
         | 
| 2175 | 
            +
                getColorFilePath() {
         | 
| 2176 | 
            +
                    return 'assets/' + this.colorFileName;
         | 
| 2177 | 
            +
                }
         | 
| 2250 2178 | 
             
                constructor(http, colorFile1 = 'clr_rnt.eng') {
         | 
| 2251 2179 | 
             
                    this.http = http;
         | 
| 2252 2180 | 
             
                    this.colorFileName = 'clr_rnt.eng';
         | 
| @@ -2256,9 +2184,6 @@ class MagicColorService { | |
| 2256 2184 | 
             
                    else
         | 
| 2257 2185 | 
             
                        this.colorFileName = 'clr_rnt.eng';
         | 
| 2258 2186 | 
             
                }
         | 
| 2259 | 
            -
                getColorFilePath() {
         | 
| 2260 | 
            -
                    return 'assets/' + this.colorFileName;
         | 
| 2261 | 
            -
                }
         | 
| 2262 2187 | 
             
                getColorData() {
         | 
| 2263 2188 | 
             
                    if (!this.colorsData) {
         | 
| 2264 2189 | 
             
                        this.http.get(this.getColorFilePath(), { responseType: 'text' }).subscribe(resp => {
         | 
| @@ -2336,6 +2261,8 @@ class AccessorMagicService { | |
| 2336 2261 | 
             
                    this.task = task;
         | 
| 2337 2262 | 
             
                    this.magicColor = magicColor;
         | 
| 2338 2263 | 
             
                    this.Logger = null;
         | 
| 2264 | 
            +
                    this.hhmm = maskitoTimeOptionsGenerator({ mode: 'HH:MM' });
         | 
| 2265 | 
            +
                    this.hhmmss = maskitoTimeOptionsGenerator({ mode: 'HH:MM:SS' });
         | 
| 2339 2266 | 
             
                    this.Logger = Logger.Instance;
         | 
| 2340 2267 | 
             
                }
         | 
| 2341 2268 | 
             
                checkIsReadOnly(controlId) {
         | 
| @@ -2571,8 +2498,30 @@ class AccessorMagicService { | |
| 2571 2498 | 
             
                    let c = this.task.getFormControl(rowId, id);
         | 
| 2572 2499 | 
             
                    if (c.hasError('required'))
         | 
| 2573 2500 | 
             
                        return 'Control must be updated.';
         | 
| 2574 | 
            -
                    if (c.hasError('pattern'))
         | 
| 2575 | 
            -
                         | 
| 2501 | 
            +
                    if (c.hasError('pattern')) {
         | 
| 2502 | 
            +
                        if (c.errors.pattern.actualValue < 0 && !c.errors.pattern.requiredPattern.includes('-'))
         | 
| 2503 | 
            +
                            return 'Value must be non-negative';
         | 
| 2504 | 
            +
                        if (c.errors.pattern.requiredPattern.includes('.')) {
         | 
| 2505 | 
            +
                            const numericFormat = Math.abs(c.errors.pattern.actualValue).toString().split('.')[0];
         | 
| 2506 | 
            +
                            const decimalFormat = Math.abs(c.errors.pattern.actualValue).toString().split('.')[1];
         | 
| 2507 | 
            +
                            const actualNumericLimit = c.errors.pattern.requiredPattern.match(/,(\d+)/)[1];
         | 
| 2508 | 
            +
                            const actualDecimalLimit = c.errors.pattern.requiredPattern.match(/(?:[^,]+,){2}(\d+)/)[1];
         | 
| 2509 | 
            +
                            if (numericFormat.length > actualNumericLimit || decimalFormat.length > actualDecimalLimit) {
         | 
| 2510 | 
            +
                                return "Numeric format is limited to " + actualNumericLimit + "." + actualDecimalLimit + " digits";
         | 
| 2511 | 
            +
                            }
         | 
| 2512 | 
            +
                        }
         | 
| 2513 | 
            +
                        else if (!c.errors.pattern.requiredPattern.includes('.') && !Number.isInteger(c.errors.pattern.actualValue)) {
         | 
| 2514 | 
            +
                            const actualNumericLimit = c.errors.pattern.requiredPattern.match(/,(\d+)/)[1];
         | 
| 2515 | 
            +
                            return "Numeric format is limited to " + actualNumericLimit + "." + 0 + " digits";
         | 
| 2516 | 
            +
                        }
         | 
| 2517 | 
            +
                        else {
         | 
| 2518 | 
            +
                            const numericFormat = Math.abs(c.errors.pattern.actualValue).toString();
         | 
| 2519 | 
            +
                            const actualNumericLimit = c.errors.pattern.requiredPattern.match(/,(\d+)/)[1];
         | 
| 2520 | 
            +
                            if (numericFormat.length > actualNumericLimit) {
         | 
| 2521 | 
            +
                                return "Numeric format is limited to " + actualNumericLimit + "." + 0 + " digits";
         | 
| 2522 | 
            +
                            }
         | 
| 2523 | 
            +
                        }
         | 
| 2524 | 
            +
                    }
         | 
| 2576 2525 | 
             
                    if (c.hasError('rangevalidator'))
         | 
| 2577 2526 | 
             
                        return c.errors.rangevalidator.errorMsg;
         | 
| 2578 2527 | 
             
                    if (c.hasError('maxlength'))
         | 
| @@ -2708,6 +2657,9 @@ class TaskBaseMagicComponent { | |
| 2708 2657 | 
             
                    this.task.recordsCountChangeSubject.pipe().subscribe(value => {
         | 
| 2709 2658 | 
             
                        this.RecordsCountChanged(value);
         | 
| 2710 2659 | 
             
                    });
         | 
| 2660 | 
            +
                    this.task.mgLoadSubject.pipe().subscribe(value => {
         | 
| 2661 | 
            +
                        this.mgOnLoad();
         | 
| 2662 | 
            +
                    });
         | 
| 2711 2663 | 
             
                }
         | 
| 2712 2664 | 
             
                createFormControlsAccessor(formGroup) { }
         | 
| 2713 2665 | 
             
                setInputDateFormat() { }
         | 
| @@ -2715,11 +2667,13 @@ class TaskBaseMagicComponent { | |
| 2715 2667 | 
             
                }
         | 
| 2716 2668 | 
             
                RecordsCountChanged(recordsCount) {
         | 
| 2717 2669 | 
             
                }
         | 
| 2670 | 
            +
                mgOnLoad() {
         | 
| 2671 | 
            +
                }
         | 
| 2718 2672 | 
             
                ngAfterViewInit() {
         | 
| 2719 2673 | 
             
                    this.mgSub.init();
         | 
| 2720 2674 | 
             
                }
         | 
| 2721 2675 | 
             
                ngAfterContentChecked() {
         | 
| 2722 | 
            -
                    if (this.task.oldPageSize != this.tableService.getPageSize()) {
         | 
| 2676 | 
            +
                    if (!isNullOrUndefined(this.tableService.getPageSize()) && this.task.oldPageSize != this.tableService.getPageSize()) {
         | 
| 2723 2677 | 
             
                        this.task.resize(this.tableService.getPageSize(), 0);
         | 
| 2724 2678 | 
             
                        this.task.oldPageSize = this.tableService.getPageSize();
         | 
| 2725 2679 | 
             
                    }
         | 
| @@ -2795,6 +2749,16 @@ RowMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: RowMagicDirective, sele | |
| 2795 2749 | 
             
                    }] }); })();
         | 
| 2796 2750 |  | 
| 2797 2751 | 
             
            class MagicDirective {
         | 
| 2752 | 
            +
                set magic(val) {
         | 
| 2753 | 
            +
                    this.id = val;
         | 
| 2754 | 
            +
                    this.selector = "magic";
         | 
| 2755 | 
            +
                }
         | 
| 2756 | 
            +
                ;
         | 
| 2757 | 
            +
                set eventsOnly(val) {
         | 
| 2758 | 
            +
                    console.log("eventsOnly");
         | 
| 2759 | 
            +
                    this.eventsOnlyVal = true;
         | 
| 2760 | 
            +
                }
         | 
| 2761 | 
            +
                ;
         | 
| 2798 2762 | 
             
                constructor(_task, element, renderer, vcRef, magicRow) {
         | 
| 2799 2763 | 
             
                    this._task = _task;
         | 
| 2800 2764 | 
             
                    this.element = element;
         | 
| @@ -2807,16 +2771,6 @@ class MagicDirective { | |
| 2807 2771 | 
             
                    if (!(typeof magicRow === "undefined" || magicRow === null))
         | 
| 2808 2772 | 
             
                        this.rowId = magicRow.rowId;
         | 
| 2809 2773 | 
             
                }
         | 
| 2810 | 
            -
                set magic(val) {
         | 
| 2811 | 
            -
                    this.id = val;
         | 
| 2812 | 
            -
                    this.selector = "magic";
         | 
| 2813 | 
            -
                }
         | 
| 2814 | 
            -
                ;
         | 
| 2815 | 
            -
                set eventsOnly(val) {
         | 
| 2816 | 
            -
                    console.log("eventsOnly");
         | 
| 2817 | 
            -
                    this.eventsOnlyVal = true;
         | 
| 2818 | 
            -
                }
         | 
| 2819 | 
            -
                ;
         | 
| 2820 2774 | 
             
                get task() {
         | 
| 2821 2775 | 
             
                    return this._task;
         | 
| 2822 2776 | 
             
                }
         | 
| @@ -2992,11 +2946,11 @@ MagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MagicDirective, selectors: | |
| 2992 2946 | 
             
                    }] }); })();
         | 
| 2993 2947 |  | 
| 2994 2948 | 
             
            class NoControlMagicDirective extends MagicDirective {
         | 
| 2949 | 
            +
                set magic(val) { this.id = val; this.selector = 'magicnc'; }
         | 
| 2950 | 
            +
                ;
         | 
| 2995 2951 | 
             
                constructor(_task, element, renderer, vcRef, magicRow) {
         | 
| 2996 2952 | 
             
                    super(_task, element, renderer, vcRef, magicRow);
         | 
| 2997 2953 | 
             
                }
         | 
| 2998 | 
            -
                set magic(val) { this.id = val; this.selector = 'magicnc'; }
         | 
| 2999 | 
            -
                ;
         | 
| 3000 2954 | 
             
                regEvents() {
         | 
| 3001 2955 | 
             
                    super.regEvents();
         | 
| 3002 2956 | 
             
                    if (this.htmlElement instanceof HTMLSelectElement) {
         | 
| @@ -3273,6 +3227,7 @@ class MgformatMagicDirective { | |
| 3273 3227 | 
             
                constructor(magicDir, _task) {
         | 
| 3274 3228 | 
             
                    this.magicDir = magicDir;
         | 
| 3275 3229 | 
             
                    this._task = _task;
         | 
| 3230 | 
            +
                    this.datePasteFlag = false;
         | 
| 3276 3231 | 
             
                }
         | 
| 3277 3232 | 
             
                ngAfterViewInit() {
         | 
| 3278 3233 | 
             
                    let control = this._task.getFormControl(this.magicDir.rowId, this.magicDir.id);
         | 
| @@ -3286,9 +3241,170 @@ class MgformatMagicDirective { | |
| 3286 3241 | 
             
                onFocusEvent($event) {
         | 
| 3287 3242 | 
             
                    this.calculatePattern();
         | 
| 3288 3243 | 
             
                }
         | 
| 3289 | 
            -
                 | 
| 3244 | 
            +
                onPaste(event) {
         | 
| 3245 | 
            +
                    this.datePasteFlag = true;
         | 
| 3246 | 
            +
                }
         | 
| 3247 | 
            +
                onInputEvent(event) {
         | 
| 3248 | 
            +
                    let attr = this._task.Records.list[0].getControlMetadata(this.magicDir.id).dataType;
         | 
| 3249 | 
            +
                    if (attr == StorageAttribute.DATE) {
         | 
| 3250 | 
            +
                        if (!this.datePasteFlag)
         | 
| 3251 | 
            +
                            this.dateMasking(event);
         | 
| 3252 | 
            +
                        this.datePasteFlag = false;
         | 
| 3253 | 
            +
                    }
         | 
| 3290 3254 | 
             
                    this.calculatePattern();
         | 
| 3291 3255 | 
             
                }
         | 
| 3256 | 
            +
                dateMasking(event) {
         | 
| 3257 | 
            +
                    const input = event.target;
         | 
| 3258 | 
            +
                    let cursorPos = event.target.selectionStart;
         | 
| 3259 | 
            +
                    const separator = this._task.mgInputDateFormat.includes('/') ? '/' : '-';
         | 
| 3260 | 
            +
                    if (cursorPos >= input.value.length) {
         | 
| 3261 | 
            +
                        const value = input.value.replace(/[^a-zA-Z0-9/-]/g, '');
         | 
| 3262 | 
            +
                        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") {
         | 
| 3263 | 
            +
                            if (value.length == 1 && value[0] == separator)
         | 
| 3264 | 
            +
                                input.value = '01' + separator;
         | 
| 3265 | 
            +
                            else if (value.length == 2 && value[1] == separator)
         | 
| 3266 | 
            +
                                input.value = 0 + value;
         | 
| 3267 | 
            +
                            else if (value.length == 3 && value[2] != separator)
         | 
| 3268 | 
            +
                                input.value = value.slice(0, 2) + separator + value.slice(2);
         | 
| 3269 | 
            +
                            else if (value.length == 4 && value[3] == separator)
         | 
| 3270 | 
            +
                                input.value = value.slice(0, 3) + '01' + value.slice(3);
         | 
| 3271 | 
            +
                            else if (value.length == 5 && value[4] == separator)
         | 
| 3272 | 
            +
                                input.value = value.slice(0, 3) + '0' + value.slice(3);
         | 
| 3273 | 
            +
                            else if (value.length == 6 && value[5] != separator)
         | 
| 3274 | 
            +
                                input.value = value.slice(0, 5) + separator + value.slice(5);
         | 
| 3275 | 
            +
                            else if (value.length >= 10)
         | 
| 3276 | 
            +
                                input.value = value.slice(0, 10);
         | 
| 3277 | 
            +
                        }
         | 
| 3278 | 
            +
                        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") {
         | 
| 3279 | 
            +
                            if (value.length == 1 && value[0] == separator)
         | 
| 3280 | 
            +
                                input.value = '0000' + separator;
         | 
| 3281 | 
            +
                            else if (value.length == 2 && value[1] == separator)
         | 
| 3282 | 
            +
                                input.value = '000' + value.slice(0);
         | 
| 3283 | 
            +
                            else if (value.length == 3 && value[2] == separator)
         | 
| 3284 | 
            +
                                input.value = '00' + value.slice(0);
         | 
| 3285 | 
            +
                            else if (value.length == 4 && value[3] == separator)
         | 
| 3286 | 
            +
                                input.value = '0' + value.slice(0);
         | 
| 3287 | 
            +
                            else if (value.length == 5 && value[4] != separator)
         | 
| 3288 | 
            +
                                input.value = value.slice(0, 4) + separator + value.slice(4);
         | 
| 3289 | 
            +
                            else if (value.length == 6 && value[5] == separator)
         | 
| 3290 | 
            +
                                input.value = value.slice(0, 5) + '01' + value.slice(5);
         | 
| 3291 | 
            +
                            else if (value.length == 7 && value[6] == separator)
         | 
| 3292 | 
            +
                                input.value = value.slice(0, 5) + '0' + value.slice(5);
         | 
| 3293 | 
            +
                            else if (value.length == 8 && value[7] != separator)
         | 
| 3294 | 
            +
                                input.value = value.slice(0, 7) + separator + value.slice(7);
         | 
| 3295 | 
            +
                            else if (value.length >= 10)
         | 
| 3296 | 
            +
                                input.value = value.slice(0, 10);
         | 
| 3297 | 
            +
                        }
         | 
| 3298 | 
            +
                        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") {
         | 
| 3299 | 
            +
                            if (value.length == 1 && value[0] == separator)
         | 
| 3300 | 
            +
                                input.value = '01' + separator;
         | 
| 3301 | 
            +
                            else if (value.length == 2 && value[1] == separator)
         | 
| 3302 | 
            +
                                input.value = 0 + value;
         | 
| 3303 | 
            +
                            else if (value.length == 3 && value[2] != separator)
         | 
| 3304 | 
            +
                                input.value = value.slice(0, 2) + separator + value.slice(2);
         | 
| 3305 | 
            +
                            else if (value.length == 4 && value[3] == separator)
         | 
| 3306 | 
            +
                                input.value = value.slice(0, 3) + '01' + value.slice(3);
         | 
| 3307 | 
            +
                            else if (value.length == 5 && value[4] == separator)
         | 
| 3308 | 
            +
                                input.value = value.slice(0, 3) + '0' + value.slice(3);
         | 
| 3309 | 
            +
                            else if (value.length == 6 && value[5] != separator)
         | 
| 3310 | 
            +
                                input.value = value.slice(0, 5) + separator + value.slice(5);
         | 
| 3311 | 
            +
                            else if (value.length >= 8)
         | 
| 3312 | 
            +
                                input.value = value.slice(0, 8);
         | 
| 3313 | 
            +
                        }
         | 
| 3314 | 
            +
                        else if (this._task.mgInputDateFormat == "dd/MMM/yy" || this._task.mgInputDateFormat == "dd-MMM-yy") {
         | 
| 3315 | 
            +
                            if (value.length == 1 && value[0] == separator)
         | 
| 3316 | 
            +
                                input.value = '01' + separator;
         | 
| 3317 | 
            +
                            else if (value.length == 2 && value[1] == separator)
         | 
| 3318 | 
            +
                                input.value = 0 + value;
         | 
| 3319 | 
            +
                            else if (value.length == 3 && value[2] != separator)
         | 
| 3320 | 
            +
                                input.value = value.slice(0, 2) + separator + value.slice(2);
         | 
| 3321 | 
            +
                            else if (value.length == 7 && value[6] != separator)
         | 
| 3322 | 
            +
                                input.value = value.slice(0, 6) + separator + value.slice(6);
         | 
| 3323 | 
            +
                            else if (value.length >= 9)
         | 
| 3324 | 
            +
                                input.value = value.slice(0, 9);
         | 
| 3325 | 
            +
                        }
         | 
| 3326 | 
            +
                        else if (this._task.mgInputDateFormat == "dd/MMM/yyyy" || this._task.mgInputDateFormat == "dd-MMM-yyyy") {
         | 
| 3327 | 
            +
                            if (value.length == 1 && value[0] == separator)
         | 
| 3328 | 
            +
                                input.value = '01' + separator;
         | 
| 3329 | 
            +
                            else if (value.length == 2 && value[1] == separator)
         | 
| 3330 | 
            +
                                input.value = 0 + value;
         | 
| 3331 | 
            +
                            else if (value.length == 3 && value[2] != separator)
         | 
| 3332 | 
            +
                                input.value = value.slice(0, 2) + separator + value.slice(2);
         | 
| 3333 | 
            +
                            else if (value.length == 7 && value[6] != separator)
         | 
| 3334 | 
            +
                                input.value = value.slice(0, 6) + separator + value.slice(6);
         | 
| 3335 | 
            +
                            else if (value.length >= 11)
         | 
| 3336 | 
            +
                                input.value = value.slice(0, 11);
         | 
| 3337 | 
            +
                        }
         | 
| 3338 | 
            +
                        else if (this._task.mgInputDateFormat == "yy/dd/MMM" || this._task.mgInputDateFormat == "yy-dd-MMM") {
         | 
| 3339 | 
            +
                            if (value.length == 1 && value[0] == separator)
         | 
| 3340 | 
            +
                                input.value = '00' + separator;
         | 
| 3341 | 
            +
                            else if (value.length == 2 && value[1] == separator)
         | 
| 3342 | 
            +
                                input.value = 0 + value;
         | 
| 3343 | 
            +
                            else if (value.length == 3 && value[2] != separator)
         | 
| 3344 | 
            +
                                input.value = value.slice(0, 2) + separator + value.slice(2);
         | 
| 3345 | 
            +
                            else if (value.length == 4 && value[3] == separator)
         | 
| 3346 | 
            +
                                input.value = value.slice(0, 3) + '01' + value.slice(3);
         | 
| 3347 | 
            +
                            else if (value.length == 5 && value[4] == separator)
         | 
| 3348 | 
            +
                                input.value = value.slice(0, 3) + '0' + value.slice(3);
         | 
| 3349 | 
            +
                            else if (value.length == 6 && value[5] != separator)
         | 
| 3350 | 
            +
                                input.value = value.slice(0, 5) + separator + value.slice(5);
         | 
| 3351 | 
            +
                            else if (value.length >= 9)
         | 
| 3352 | 
            +
                                input.value = value.slice(0, 9);
         | 
| 3353 | 
            +
                        }
         | 
| 3354 | 
            +
                        else if (this._task.mgInputDateFormat == "yyyy/dd/MMM" || this._task.mgInputDateFormat == "yyyy-dd-MMM") {
         | 
| 3355 | 
            +
                            if (value.length == 1 && value[0] == separator)
         | 
| 3356 | 
            +
                                input.value = '0000' + separator;
         | 
| 3357 | 
            +
                            else if (value.length == 2 && value[1] == separator)
         | 
| 3358 | 
            +
                                input.value = '000' + value.slice(0);
         | 
| 3359 | 
            +
                            else if (value.length == 3 && value[2] == separator)
         | 
| 3360 | 
            +
                                input.value = '00' + value.slice(0);
         | 
| 3361 | 
            +
                            else if (value.length == 4 && value[3] == separator)
         | 
| 3362 | 
            +
                                input.value = '0' + value.slice(0);
         | 
| 3363 | 
            +
                            else if (value.length == 5 && value[4] != separator)
         | 
| 3364 | 
            +
                                input.value = value.slice(0, 4) + separator + value.slice(4);
         | 
| 3365 | 
            +
                            else if (value.length == 6 && value[5] == separator)
         | 
| 3366 | 
            +
                                input.value = value.slice(0, 5) + '01' + value.slice(5);
         | 
| 3367 | 
            +
                            else if (value.length == 7 && value[6] == separator)
         | 
| 3368 | 
            +
                                input.value = value.slice(0, 5) + '0' + value.slice(5);
         | 
| 3369 | 
            +
                            else if (value.length == 8 && value[7] != separator)
         | 
| 3370 | 
            +
                                input.value = value.slice(0, 7) + separator + value.slice(7);
         | 
| 3371 | 
            +
                            else if (value.length >= 11)
         | 
| 3372 | 
            +
                                input.value = value.slice(0, 11);
         | 
| 3373 | 
            +
                        }
         | 
| 3374 | 
            +
                        else if (this._task.mgInputDateFormat == "MMM/dd/yy" || this._task.mgInputDateFormat == "MMM-dd-yy") {
         | 
| 3375 | 
            +
                            if (value.length == 4 && value[3] != separator)
         | 
| 3376 | 
            +
                                input.value = value.slice(0, 3) + separator + value.slice(3);
         | 
| 3377 | 
            +
                            else if (value.length == 5 && value[4] == separator)
         | 
| 3378 | 
            +
                                input.value = value.slice(0, 4) + '01' + value.slice(4);
         | 
| 3379 | 
            +
                            else if (value.length == 6 && value[5] == separator)
         | 
| 3380 | 
            +
                                input.value = value.slice(0, 4) + '0' + value.slice(4);
         | 
| 3381 | 
            +
                            else if (value.length == 7 && value[6] != separator)
         | 
| 3382 | 
            +
                                input.value = value.slice(0, 6) + separator + value.slice(6);
         | 
| 3383 | 
            +
                            else if (value.length >= 9)
         | 
| 3384 | 
            +
                                input.value = value.slice(0, 9);
         | 
| 3385 | 
            +
                        }
         | 
| 3386 | 
            +
                        else if (this._task.mgInputDateFormat == "MMM/dd/yyyy" || this._task.mgInputDateFormat == "MMM-dd-yyyy") {
         | 
| 3387 | 
            +
                            if (value.length == 4 && value[3] != separator)
         | 
| 3388 | 
            +
                                input.value = value.slice(0, 3) + separator + value.slice(3);
         | 
| 3389 | 
            +
                            else if (value.length == 5 && value[4] == separator)
         | 
| 3390 | 
            +
                                input.value = value.slice(0, 4) + '01' + value.slice(4);
         | 
| 3391 | 
            +
                            else if (value.length == 6 && value[5] == separator)
         | 
| 3392 | 
            +
                                input.value = value.slice(0, 4) + '0' + value.slice(4);
         | 
| 3393 | 
            +
                            else if (value.length == 7 && value[6] != separator)
         | 
| 3394 | 
            +
                                input.value = value.slice(0, 6) + separator + value.slice(6);
         | 
| 3395 | 
            +
                            else if (value.length >= 11)
         | 
| 3396 | 
            +
                                input.value = value.slice(0, 11);
         | 
| 3397 | 
            +
                        }
         | 
| 3398 | 
            +
                    }
         | 
| 3399 | 
            +
                    if (cursorPos < input.value.length && input.value.length > this._task.mgInputDateFormat.length) {
         | 
| 3400 | 
            +
                        let inputDate = input.value;
         | 
| 3401 | 
            +
                        let start = input.selectionStart - 1;
         | 
| 3402 | 
            +
                        let end = input.selectionEnd - 1;
         | 
| 3403 | 
            +
                        let indexToRemove = input.selectionStart - 1;
         | 
| 3404 | 
            +
                        input.value = inputDate.slice(0, indexToRemove) + inputDate.slice(indexToRemove + 1);
         | 
| 3405 | 
            +
                        input.setSelectionRange(start, end);
         | 
| 3406 | 
            +
                    }
         | 
| 3407 | 
            +
                }
         | 
| 3292 3408 | 
             
                onChangeEvent($event) {
         | 
| 3293 3409 | 
             
                    let control = this._task.getFormControl(this.magicDir.rowId, this.magicDir.id);
         | 
| 3294 3410 | 
             
                    let attr = this._task.Records.list[0].getControlMetadata(this.magicDir.id).dataType;
         | 
| @@ -3483,7 +3599,7 @@ class MgformatMagicDirective { | |
| 3483 3599 | 
             
            }
         | 
| 3484 3600 | 
             
            MgformatMagicDirective.ɵfac = function MgformatMagicDirective_Factory(t) { return new (t || MgformatMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective), i0.ɵɵdirectiveInject(TaskMagicService)); };
         | 
| 3485 3601 | 
             
            MgformatMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MgformatMagicDirective, selectors: [["", "mgFormat", ""]], hostBindings: function MgformatMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
         | 
| 3486 | 
            -
                    i0.ɵɵlistener("focus", function MgformatMagicDirective_focus_HostBindingHandler($event) { return ctx.onFocusEvent($event); })("input", function MgformatMagicDirective_input_HostBindingHandler($event) { return ctx.onInputEvent($event); })("change", function MgformatMagicDirective_change_HostBindingHandler($event) { return ctx.onChangeEvent($event); });
         | 
| 3602 | 
            +
                    i0.ɵɵlistener("focus", function MgformatMagicDirective_focus_HostBindingHandler($event) { return ctx.onFocusEvent($event); })("paste", function MgformatMagicDirective_paste_HostBindingHandler($event) { return ctx.onPaste($event); })("input", function MgformatMagicDirective_input_HostBindingHandler($event) { return ctx.onInputEvent($event); })("change", function MgformatMagicDirective_change_HostBindingHandler($event) { return ctx.onChangeEvent($event); });
         | 
| 3487 3603 | 
             
                } } });
         | 
| 3488 3604 | 
             
            (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MgformatMagicDirective, [{
         | 
| 3489 3605 | 
             
                    type: Directive,
         | 
| @@ -3493,6 +3609,9 @@ MgformatMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MgformatMagicDirec | |
| 3493 3609 | 
             
                }], function () { return [{ type: MagicDirective }, { type: TaskMagicService }]; }, { onFocusEvent: [{
         | 
| 3494 3610 | 
             
                        type: HostListener,
         | 
| 3495 3611 | 
             
                        args: ['focus', ['$event']]
         | 
| 3612 | 
            +
                    }], onPaste: [{
         | 
| 3613 | 
            +
                        type: HostListener,
         | 
| 3614 | 
            +
                        args: ['paste', ['$event']]
         | 
| 3496 3615 | 
             
                    }], onInputEvent: [{
         | 
| 3497 3616 | 
             
                        type: HostListener,
         | 
| 3498 3617 | 
             
                        args: ['input', ['$event']]
         | 
| @@ -3605,14 +3724,14 @@ function SubformMagicComponent_ndc_dynamic_0_Template(rf, ctx) { if (rf & 1) { | |
| 3605 3724 | 
             
                i0.ɵɵproperty("ndcDynamicComponent", ctx_r0.Component)("ndcDynamicInputs", ctx_r0.Parameters);
         | 
| 3606 3725 | 
             
            } }
         | 
| 3607 3726 | 
             
            class SubformMagicComponent {
         | 
| 3727 | 
            +
                set magic(val) { this.id = val; }
         | 
| 3728 | 
            +
                ;
         | 
| 3608 3729 | 
             
                constructor(vcRef, mgSub) {
         | 
| 3609 3730 | 
             
                    this.vcRef = vcRef;
         | 
| 3610 3731 | 
             
                    this.mgSub = mgSub;
         | 
| 3611 3732 | 
             
                    this.component = null;
         | 
| 3612 3733 | 
             
                    this.component = (this.vcRef._hostLView).find(v => !isNullOrUndefined(v));
         | 
| 3613 3734 | 
             
                }
         | 
| 3614 | 
            -
                set magic(val) { this.id = val; }
         | 
| 3615 | 
            -
                ;
         | 
| 3616 3735 | 
             
                get Component() {
         | 
| 3617 3736 | 
             
                    return this.mgSub.mgGetComp(this.id);
         | 
| 3618 3737 | 
             
                }
         | 
| @@ -3625,7 +3744,7 @@ SubformMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SubformMagicCompone | |
| 3625 3744 | 
             
                    i0.ɵɵtemplate(0, SubformMagicComponent_ndc_dynamic_0_Template, 1, 2, "ndc-dynamic", 0);
         | 
| 3626 3745 | 
             
                } if (rf & 2) {
         | 
| 3627 3746 | 
             
                    i0.ɵɵproperty("ngIf", ctx.Component);
         | 
| 3628 | 
            -
                } },  | 
| 3747 | 
            +
                } }, dependencies: [i1.NgIf, i3.DynamicComponent, i3.DynamicIoDirective], encapsulation: 2 });
         | 
| 3629 3748 | 
             
            (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubformMagicComponent, [{
         | 
| 3630 3749 | 
             
                    type: Component,
         | 
| 3631 3750 | 
             
                    args: [{
         | 
| @@ -3666,13 +3785,6 @@ function ErrorMagicComponent_div_0_Template(rf, ctx) { if (rf & 1) { | |
| 3666 3785 | 
             
            } }
         | 
| 3667 3786 | 
             
            const _c1 = ["*"];
         | 
| 3668 3787 | 
             
            class ErrorMagicComponent {
         | 
| 3669 | 
            -
                constructor(_task, mgService, changeDetectorRef) {
         | 
| 3670 | 
            -
                    this._task = _task;
         | 
| 3671 | 
            -
                    this.mgService = mgService;
         | 
| 3672 | 
            -
                    this.changeDetectorRef = changeDetectorRef;
         | 
| 3673 | 
            -
                    this.defaultDisplay = true;
         | 
| 3674 | 
            -
                    this.rowId = "0";
         | 
| 3675 | 
            -
                }
         | 
| 3676 3788 | 
             
                set magic(val) {
         | 
| 3677 3789 | 
             
                    this.id = val;
         | 
| 3678 3790 | 
             
                }
         | 
| @@ -3686,6 +3798,13 @@ class ErrorMagicComponent { | |
| 3686 3798 | 
             
                    this.changeDetectorRef.detectChanges();
         | 
| 3687 3799 | 
             
                }
         | 
| 3688 3800 | 
             
                ;
         | 
| 3801 | 
            +
                constructor(_task, mgService, changeDetectorRef) {
         | 
| 3802 | 
            +
                    this._task = _task;
         | 
| 3803 | 
            +
                    this.mgService = mgService;
         | 
| 3804 | 
            +
                    this.changeDetectorRef = changeDetectorRef;
         | 
| 3805 | 
            +
                    this.defaultDisplay = true;
         | 
| 3806 | 
            +
                    this.rowId = "0";
         | 
| 3807 | 
            +
                }
         | 
| 3689 3808 | 
             
                isEmpty(element) {
         | 
| 3690 3809 | 
             
                    const nodes = element.childNodes;
         | 
| 3691 3810 | 
             
                    for (let i = 0; i < nodes.length; i++) {
         | 
| @@ -3728,7 +3847,7 @@ ErrorMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ErrorMagicComponent, | |
| 3728 3847 | 
             
                    i0.ɵɵtemplate(0, ErrorMagicComponent_div_0_Template, 5, 1, "div", 0);
         | 
| 3729 3848 | 
             
                } if (rf & 2) {
         | 
| 3730 3849 | 
             
                    i0.ɵɵproperty("ngIf", ctx.HasErrors(ctx.id));
         | 
| 3731 | 
            -
                } },  | 
| 3850 | 
            +
                } }, dependencies: [i1.NgIf], encapsulation: 2 });
         | 
| 3732 3851 | 
             
            (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorMagicComponent, [{
         | 
| 3733 3852 | 
             
                    type: Component,
         | 
| 3734 3853 | 
             
                    args: [{
         | 
| @@ -3781,10 +3900,18 @@ CheckboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: CheckboxMagicDirec | |
| 3781 3900 | 
             
            class ComboboxMagicDirective {
         | 
| 3782 3901 | 
             
                constructor(magicDirective) {
         | 
| 3783 3902 | 
             
                    this.magicDirective = magicDirective;
         | 
| 3903 | 
            +
                    this.magicDirective.task.refreshDom.pipe(filter(c => this.magicDirective.IsSameElement(c))).subscribe(value => {
         | 
| 3904 | 
            +
                        let command = value;
         | 
| 3905 | 
            +
                        if (command.Operation === HtmlProperties.ItemsList)
         | 
| 3906 | 
            +
                            this.onComboboxItemsListChanged();
         | 
| 3907 | 
            +
                    });
         | 
| 3784 3908 | 
             
                }
         | 
| 3785 3909 | 
             
                onChange($event) {
         | 
| 3786 3910 | 
             
                    this.magicDirective.task.onComboboxSelectionChanged($event, this.magicDirective.id, +this.magicDirective.rowId);
         | 
| 3787 3911 | 
             
                }
         | 
| 3912 | 
            +
                onComboboxItemsListChanged() {
         | 
| 3913 | 
            +
                    this.magicDirective.task.refreshView();
         | 
| 3914 | 
            +
                }
         | 
| 3788 3915 | 
             
            }
         | 
| 3789 3916 | 
             
            ComboboxMagicDirective.ɵfac = function ComboboxMagicDirective_Factory(t) { return new (t || ComboboxMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
         | 
| 3790 3917 | 
             
            ComboboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: ComboboxMagicDirective, selectors: [["select", "magic", "", 3, "multiple", ""]], hostBindings: function ComboboxMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
         | 
| @@ -3954,13 +4081,10 @@ MagicShellComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicShellComponent, | |
| 3954 4081 | 
             
                    i0.ɵɵproperty("ngIf", ctx.RootComponent !== null);
         | 
| 3955 4082 | 
             
                    i0.ɵɵadvance(3);
         | 
| 3956 4083 | 
             
                    i0.ɵɵproperty("ngIf", ctx.showSpinner);
         | 
| 3957 | 
            -
                } },  | 
| 4084 | 
            +
                } }, 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)}}"] });
         | 
| 3958 4085 | 
             
            (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicShellComponent, [{
         | 
| 3959 4086 | 
             
                    type: Component,
         | 
| 3960 | 
            -
                    args: [{
         | 
| 3961 | 
            -
                            selector: 'magic-root',
         | 
| 3962 | 
            -
                            providers: [],
         | 
| 3963 | 
            -
                            template: `
         | 
| 4087 | 
            +
                    args: [{ selector: 'magic-root', providers: [], template: `
         | 
| 3964 4088 | 
             
                <div #magicRoot>
         | 
| 3965 4089 | 
             
                  <ndc-dynamic
         | 
| 3966 4090 | 
             
                    *ngIf = "RootComponent !== null"
         | 
| @@ -3979,38 +4103,7 @@ MagicShellComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicShellComponent, | |
| 3979 4103 | 
             
                <ng-template #defaultSpinner>
         | 
| 3980 4104 | 
             
                  <div class="mgSpinnerClass"></div>
         | 
| 3981 4105 | 
             
                </ng-template>
         | 
| 3982 | 
            -
              `,
         | 
| 3983 | 
            -
                            styles: [`
         | 
| 3984 | 
            -
                .mgSpinnerClass {
         | 
| 3985 | 
            -
                  border: 10px solid #cccccc; /* Light grey */
         | 
| 3986 | 
            -
                  border-top: 10px solid black; /* Blue */
         | 
| 3987 | 
            -
                  border-radius: 50%;
         | 
| 3988 | 
            -
                  position: fixed;
         | 
| 3989 | 
            -
                  margin: auto;
         | 
| 3990 | 
            -
                  top: 0;
         | 
| 3991 | 
            -
                  right: 0;
         | 
| 3992 | 
            -
                  bottom: 0;
         | 
| 3993 | 
            -
                  left: 0;
         | 
| 3994 | 
            -
                  width: 100px;
         | 
| 3995 | 
            -
                  height: 100px;
         | 
| 3996 | 
            -
                  animation: spin 2s linear infinite;
         | 
| 3997 | 
            -
                }
         | 
| 3998 | 
            -
                .spinner-background {
         | 
| 3999 | 
            -
                  /* background fixed across whole screen */
         | 
| 4000 | 
            -
                  position: fixed;
         | 
| 4001 | 
            -
                  top: 0;
         | 
| 4002 | 
            -
                  right: 0;
         | 
| 4003 | 
            -
                  bottom: 0;
         | 
| 4004 | 
            -
                  z-index: 1000;
         | 
| 4005 | 
            -
                  left: 0;
         | 
| 4006 | 
            -
                  opacity: 0.5;
         | 
| 4007 | 
            -
                }
         | 
| 4008 | 
            -
                @keyframes spin {
         | 
| 4009 | 
            -
                  0% { transform: rotate(0deg); }
         | 
| 4010 | 
            -
                  100% { transform: rotate(360deg); }
         | 
| 4011 | 
            -
                }
         | 
| 4012 | 
            -
              `]
         | 
| 4013 | 
            -
                        }]
         | 
| 4106 | 
            +
              `, 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"] }]
         | 
| 4014 4107 | 
             
                }], function () { return [{ type: EngineMagicService }, { type: ComponentListMagicService }, { type: i0.ChangeDetectorRef }, { type: i1$1.Title }, { type: OverlayWindowService }, { type: i1$2.HttpClient }, { type: CommandsCollectorMagicService }, { type: ExitMagicService, decorators: [{
         | 
| 4015 4108 | 
             
                            type: Optional
         | 
| 4016 4109 | 
             
                        }] }]; }, { rootMagicElementRef: [{
         | 
| @@ -4176,6 +4269,11 @@ DateValueAccessor.ɵdir = i0.ɵɵdefineDirective({ type: DateValueAccessor, sele | |
| 4176 4269 | 
             
                    }] }); })();
         | 
| 4177 4270 |  | 
| 4178 4271 | 
             
            class NonMagicControlDirective {
         | 
| 4272 | 
            +
                set magic(val) {
         | 
| 4273 | 
            +
                    this.id = val;
         | 
| 4274 | 
            +
                    this.selector = 'NonMagicControl';
         | 
| 4275 | 
            +
                }
         | 
| 4276 | 
            +
                ;
         | 
| 4179 4277 | 
             
                constructor(_task, element, renderer, vcRef) {
         | 
| 4180 4278 | 
             
                    this._task = _task;
         | 
| 4181 4279 | 
             
                    this.element = element;
         | 
| @@ -4185,11 +4283,6 @@ class NonMagicControlDirective { | |
| 4185 4283 | 
             
                    this.eventsOnlyVal = false;
         | 
| 4186 4284 | 
             
                    this.htmlElement = this.element.nativeElement;
         | 
| 4187 4285 | 
             
                }
         | 
| 4188 | 
            -
                set magic(val) {
         | 
| 4189 | 
            -
                    this.id = val;
         | 
| 4190 | 
            -
                    this.selector = 'NonMagicControl';
         | 
| 4191 | 
            -
                }
         | 
| 4192 | 
            -
                ;
         | 
| 4193 4286 | 
             
                get task() {
         | 
| 4194 4287 | 
             
                    return this._task;
         | 
| 4195 4288 | 
             
                }
         | 
| @@ -4219,6 +4312,36 @@ NonMagicControlDirective.ɵdir = i0.ɵɵdefineDirective({ type: NonMagicControlD | |
| 4219 4312 | 
             
                        args: ['NonMagicControl']
         | 
| 4220 4313 | 
             
                    }] }); })();
         | 
| 4221 4314 |  | 
| 4315 | 
            +
            class Time24MagicPipe {
         | 
| 4316 | 
            +
                constructor(_task) {
         | 
| 4317 | 
            +
                    this._task = _task;
         | 
| 4318 | 
            +
                }
         | 
| 4319 | 
            +
                transform(value, controlId) {
         | 
| 4320 | 
            +
                    let mask = this._task.GetControlPictureMask(controlId).getMask();
         | 
| 4321 | 
            +
                    if (typeof value !== "undefined" && mask !== null) {
         | 
| 4322 | 
            +
                        const date = new Date(value);
         | 
| 4323 | 
            +
                        const hours = date.getHours().toString().padStart(2, '0');
         | 
| 4324 | 
            +
                        const minutes = date.getMinutes().toString().padStart(2, '0');
         | 
| 4325 | 
            +
                        const seconds = date.getSeconds().toString().padStart(2, '0');
         | 
| 4326 | 
            +
                        if (mask.length == 5) {
         | 
| 4327 | 
            +
                            return `${hours}:${minutes}`;
         | 
| 4328 | 
            +
                        }
         | 
| 4329 | 
            +
                        else if (mask.length > 5) {
         | 
| 4330 | 
            +
                            return `${hours}:${minutes}:${seconds}`;
         | 
| 4331 | 
            +
                        }
         | 
| 4332 | 
            +
                    }
         | 
| 4333 | 
            +
                    return value;
         | 
| 4334 | 
            +
                }
         | 
| 4335 | 
            +
            }
         | 
| 4336 | 
            +
            Time24MagicPipe.ɵfac = function Time24MagicPipe_Factory(t) { return new (t || Time24MagicPipe)(i0.ɵɵdirectiveInject(TaskMagicService, 16)); };
         | 
| 4337 | 
            +
            Time24MagicPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "magicTime24", type: Time24MagicPipe, pure: true });
         | 
| 4338 | 
            +
            (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Time24MagicPipe, [{
         | 
| 4339 | 
            +
                    type: Pipe,
         | 
| 4340 | 
            +
                    args: [{
         | 
| 4341 | 
            +
                            name: 'magicTime24'
         | 
| 4342 | 
            +
                        }]
         | 
| 4343 | 
            +
                }], function () { return [{ type: TaskMagicService }]; }, null); })();
         | 
| 4344 | 
            +
             | 
| 4222 4345 | 
             
            const decs = [
         | 
| 4223 4346 | 
             
                MagicDirective,
         | 
| 4224 4347 | 
             
                CheckboxMagicDirective,
         | 
| @@ -4247,25 +4370,24 @@ const decs = [ | |
| 4247 4370 | 
             
                RangeValidatorMagicDirective,
         | 
| 4248 4371 | 
             
                NonMagicControlDirective,
         | 
| 4249 4372 | 
             
                MagicFocusDirective,
         | 
| 4250 | 
            -
                MagicViewContainerRef
         | 
| 4373 | 
            +
                MagicViewContainerRef,
         | 
| 4374 | 
            +
                Time24MagicPipe
         | 
| 4251 4375 | 
             
            ];
         | 
| 4252 4376 | 
             
            class MagicModule {
         | 
| 4253 4377 | 
             
            }
         | 
| 4254 4378 | 
             
            MagicModule.ɵfac = function MagicModule_Factory(t) { return new (t || MagicModule)(); };
         | 
| 4255 4379 | 
             
            MagicModule.ɵmod = i0.ɵɵdefineNgModule({ type: MagicModule });
         | 
| 4256 | 
            -
            MagicModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider], imports: [ | 
| 4257 | 
            -
             | 
| 4258 | 
            -
             | 
| 4259 | 
            -
             | 
| 4260 | 
            -
             | 
| 4261 | 
            -
             | 
| 4262 | 
            -
                        HttpClientModule
         | 
| 4263 | 
            -
                    ]] });
         | 
| 4380 | 
            +
            MagicModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider], imports: [CommonModule,
         | 
| 4381 | 
            +
                    FormsModule,
         | 
| 4382 | 
            +
                    ReactiveFormsModule,
         | 
| 4383 | 
            +
                    RouterModule,
         | 
| 4384 | 
            +
                    DynamicModule,
         | 
| 4385 | 
            +
                    HttpClientModule, MaskitoModule] });
         | 
| 4264 4386 | 
             
            (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicModule, [{
         | 
| 4265 4387 | 
             
                    type: NgModule,
         | 
| 4266 4388 | 
             
                    args: [{
         | 
| 4267 4389 | 
             
                            declarations: [...decs],
         | 
| 4268 | 
            -
                            exports: [...decs],
         | 
| 4390 | 
            +
                            exports: [...decs, MaskitoModule],
         | 
| 4269 4391 | 
             
                            entryComponents: [],
         | 
| 4270 4392 | 
             
                            imports: [
         | 
| 4271 4393 | 
             
                                CommonModule,
         | 
| @@ -4305,7 +4427,8 @@ MagicModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMa | |
| 4305 4427 | 
             
                    RangeValidatorMagicDirective,
         | 
| 4306 4428 | 
             
                    NonMagicControlDirective,
         | 
| 4307 4429 | 
             
                    MagicFocusDirective,
         | 
| 4308 | 
            -
                    MagicViewContainerRef | 
| 4430 | 
            +
                    MagicViewContainerRef,
         | 
| 4431 | 
            +
                    Time24MagicPipe], imports: [CommonModule,
         | 
| 4309 4432 | 
             
                    FormsModule,
         | 
| 4310 4433 | 
             
                    ReactiveFormsModule,
         | 
| 4311 4434 | 
             
                    RouterModule,
         | 
| @@ -4337,7 +4460,8 @@ MagicModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMa | |
| 4337 4460 | 
             
                    RangeValidatorMagicDirective,
         | 
| 4338 4461 | 
             
                    NonMagicControlDirective,
         | 
| 4339 4462 | 
             
                    MagicFocusDirective,
         | 
| 4340 | 
            -
                    MagicViewContainerRef | 
| 4463 | 
            +
                    MagicViewContainerRef,
         | 
| 4464 | 
            +
                    Time24MagicPipe, MaskitoModule] }); })();
         | 
| 4341 4465 |  | 
| 4342 4466 | 
             
            const MG_FORMATS = {
         | 
| 4343 4467 | 
             
                parse: { dateInput: { month: 'short', year: 'numeric', day: 'numeric' } },
         | 
| @@ -4519,5 +4643,5 @@ class ModalFormDefinition { | |
| 4519 4643 | 
             
                }
         | 
| 4520 4644 | 
             
            }
         | 
| 4521 4645 |  | 
| 4522 | 
            -
            export { AccessorMagicService, BaseMagicAlertComponent, BaseMagicConfirmComponent, BaseMagicOverlayContainer, CHECKBOX_VALUE_ACCESSOR, COLOR_FILE_NAME, CheckboxMagicDirective, CheckboxNoFormControlMagicDirective, ComboboxMagicDirective, CommandsCollectorMagicService, ComponentListMagicService, ConfirmationComponentsMagicProvider, Constants, ControlMetadata, ControlsMetadata, DATE_VALUE_ACCESSOR, DateMagicPipe, DateValueAccessor, EngineMagicService, ErrorMagicComponent, ExitMagicService, GuiInteractiveExecutor, HtmlClasses, InputNoFormControlMagicDirective, MAGIC_BG_COLOR, MAGIC_DEFAULT_VALUE_ACCESSOR, MAGIC_FG_COLOR, MG_FORMATS, MagicAlertComponent, MagicCheckboxControlValueAccessor, MagicColorService, MagicConfirmationBoxComponent, MagicDefaultValueAccessor, MagicDirective, MagicFocusDirective, MagicLazyLoaderService, MagicModule, MagicOverlayContainer, MagicOverlayContainerWrapper, MagicServices, MagicShellComponent, MagicViewContainerRef, MgDateAdapter, MgDateFormatter, MgformatMagicDirective, ModalFormDefinition, NoControlMagicDirective, NonMagicControlDirective, OverlayContainerMagicProvider, OverlayWindowService, RangeValidatorMagicDirective, Records, RouteCommand, RouterCommandsMagicService, RouterContainerMagicComponent, RowMagicDirective, StylesMapManager, SubformMagicComponent, SubformMagicService, TableMagicService, TaskBaseMagicComponent, TaskMagicService, TimeMagicPipe, TitleMagicService, basicMagicProviders, confirmationBox, magicProviders, matDateProviders, utils };
         | 
| 4646 | 
            +
            export { AccessorMagicService, BaseMagicAlertComponent, BaseMagicConfirmComponent, BaseMagicOverlayContainer, CHECKBOX_VALUE_ACCESSOR, COLOR_FILE_NAME, CheckboxMagicDirective, CheckboxNoFormControlMagicDirective, ComboboxMagicDirective, CommandsCollectorMagicService, ComponentListMagicService, ConfirmationComponentsMagicProvider, Constants, ControlMetadata, ControlsMetadata, DATE_VALUE_ACCESSOR, DateMagicPipe, DateValueAccessor, EngineMagicService, ErrorMagicComponent, ExitMagicService, GuiInteractiveExecutor, HtmlClasses, InputNoFormControlMagicDirective, MAGIC_BG_COLOR, MAGIC_DEFAULT_VALUE_ACCESSOR, MAGIC_FG_COLOR, MG_FORMATS, MagicAlertComponent, MagicCheckboxControlValueAccessor, MagicColorService, MagicConfirmationBoxComponent, MagicDefaultValueAccessor, MagicDirective, MagicFocusDirective, MagicLazyLoaderService, MagicModule, MagicOverlayContainer, MagicOverlayContainerWrapper, MagicServices, MagicShellComponent, MagicViewContainerRef, MgDateAdapter, MgDateFormatter, MgformatMagicDirective, ModalFormDefinition, NoControlMagicDirective, NonMagicControlDirective, OverlayContainerMagicProvider, OverlayWindowService, RangeValidatorMagicDirective, Records, RouteCommand, RouterCommandsMagicService, RouterContainerMagicComponent, RowMagicDirective, StylesMapManager, SubformMagicComponent, SubformMagicService, TableMagicService, TaskBaseMagicComponent, TaskMagicService, Time24MagicPipe, TimeMagicPipe, TitleMagicService, basicMagicProviders, confirmationBox, magicProviders, matDateProviders, utils };
         | 
| 4523 4647 | 
             
            //# sourceMappingURL=magic-xpa-angular.mjs.map
         |