@magic-xpa/angular 4.800.0-dev480.95 → 4.800.1

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.
@@ -1,8 +1,34 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('util'), require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('ng-dynamic-component'), require('rxjs'), require('@magic-xpa/engine'), require('@magic-xpa/gui'), require('@magic-xpa/utils'), require('rxjs/operators'), require('@magic-xpa/mscorelib'), require('@angular/platform-browser'), require('rxjs/internal/observable/fromEvent'), require('@angular/common/http'), require('@angular/material/core'), require('@angular/cdk/platform')) :
3
3
  typeof define === 'function' && define.amd ? define('@magic-xpa/angular', ['exports', 'util', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'ng-dynamic-component', 'rxjs', '@magic-xpa/engine', '@magic-xpa/gui', '@magic-xpa/utils', 'rxjs/operators', '@magic-xpa/mscorelib', '@angular/platform-browser', 'rxjs/internal/observable/fromEvent', '@angular/common/http', '@angular/material/core', '@angular/cdk/platform'], factory) :
4
- (global = global || self, factory((global['magic-xpa'] = global['magic-xpa'] || {}, global['magic-xpa'].angular = {}), global.util, global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global.i3, global.rxjs, global.engine, global.gui, global.utils$1, global.rxjs.operators, global.mscorelib, global.ng.platformBrowser, global.rxjs['internal/observable/fromEvent'], global.ng.common.http, global.ng.material.core, global.ng.cdk.platform));
5
- }(this, (function (exports, util, i0, i1, i2, forms, i3, rxjs, engine, gui, utils$1, operators, mscorelib, i1$1, fromEvent, i5, core, i1$2) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["magic-xpa"] = global["magic-xpa"] || {}, global["magic-xpa"].angular = {}), global.util, global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global.i3, global.rxjs, global.engine, global.gui, global.utils$1, global.rxjs.operators, global.mscorelib, global.ng.platformBrowser, global.rxjs["internal/observable/fromEvent"], global.ng.common.http, global.ng.material.core, global.ng.cdk.platform));
5
+ })(this, (function (exports, util, i0, i1, i2, forms, i3, rxjs, engine, gui, utils$1, operators, mscorelib, i1$1, fromEvent, i5, core, i1$2) { 'use strict';
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
28
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
29
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
30
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
31
+ var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
6
32
 
7
33
  /*! *****************************************************************************
8
34
  Copyright (c) Microsoft Corporation.
@@ -496,6 +522,7 @@
496
522
  };
497
523
  return Records;
498
524
  }());
525
+ exports.HtmlClasses = void 0;
499
526
  (function (HtmlClasses) {
500
527
  HtmlClasses["Color"] = "color";
501
528
  HtmlClasses["font"] = "font";
@@ -595,9 +622,9 @@
595
622
  return EngineMagicService;
596
623
  }());
597
624
  EngineMagicService.ɵfac = function EngineMagicService_Factory(t) { return new (t || EngineMagicService)(); };
598
- EngineMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: EngineMagicService, factory: EngineMagicService.ɵfac });
625
+ EngineMagicService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: EngineMagicService, factory: EngineMagicService.ɵfac });
599
626
  (function () {
600
- i0.ɵsetClassMetadata(EngineMagicService, [{
627
+ i0__namespace.ɵsetClassMetadata(EngineMagicService, [{
601
628
  type: i0.Injectable
602
629
  }], null, null);
603
630
  })();
@@ -654,20 +681,363 @@
654
681
  style = mscorelib.NString.Format(value.toString(), magicValue);
655
682
  }
656
683
  }
657
- return style;
684
+ return style;
685
+ };
686
+ return StylesMapManager;
687
+ }());
688
+ StylesMapManager.StylesMap = new Map([
689
+ [utils$1.MagicProperties.LineDivider, new Map([[true, "solid"], [false, "hidden"]])],
690
+ [utils$1.MagicProperties.ImageFile, "url('\{0}\')"],
691
+ [utils$1.MagicProperties.Wallpaper, "url('\{0}\')"]
692
+ ]);
693
+ StylesMapManager.MagicPropertyToHtmlAttributeMap = new Map([
694
+ [utils$1.MagicProperties.LineDivider, "border-bottom-style"],
695
+ [utils$1.MagicProperties.ImageFile, "background-image"],
696
+ [utils$1.MagicProperties.Wallpaper, "background-image"]
697
+ ]);
698
+
699
+ var CommandsCollectorMagicService = /** @class */ (function () {
700
+ function CommandsCollectorMagicService(magic) {
701
+ this.magic = magic;
702
+ this.count = 0;
703
+ this.commands = new mscorelib.List();
704
+ this.subscription = null;
705
+ }
706
+ CommandsCollectorMagicService.prototype.startCollecting = function () {
707
+ var _this = this;
708
+ this.count++;
709
+ utils$1.Logger.Instance.WriteDevToLog("CommandsCollectorMagicService.startCollecting() --- " + this.count);
710
+ if (this.subscription === null) {
711
+ this.subscription = this.magic.refreshDom
712
+ .subscribe(function (command) {
713
+ _this.commands.push(command);
714
+ });
715
+ }
716
+ };
717
+ CommandsCollectorMagicService.prototype.stopCollecting = function () {
718
+ this.count--;
719
+ utils$1.Logger.Instance.WriteDevToLog("CommandsCollectorMagicService.stopCollecting() --- " + this.count);
720
+ if (this.count === 0) {
721
+ this.subscription.unsubscribe();
722
+ this.subscription = null;
723
+ }
724
+ };
725
+ CommandsCollectorMagicService.prototype.GetCommands = function (taskId) {
726
+ var _this = this;
727
+ var commands = this.commands.filter(function (command) { return command.TaskTag === taskId; });
728
+ commands.forEach(function (command) { _this.commands.Remove(command); });
729
+ return commands;
730
+ };
731
+ return CommandsCollectorMagicService;
732
+ }());
733
+ CommandsCollectorMagicService.ɵfac = function CommandsCollectorMagicService_Factory(t) { return new (t || CommandsCollectorMagicService)(i0__namespace.ɵɵinject(EngineMagicService)); };
734
+ CommandsCollectorMagicService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CommandsCollectorMagicService, factory: CommandsCollectorMagicService.ɵfac });
735
+ (function () {
736
+ i0__namespace.ɵsetClassMetadata(CommandsCollectorMagicService, [{
737
+ type: i0.Injectable
738
+ }], function () { return [{ type: EngineMagicService }]; }, null);
739
+ })();
740
+
741
+ var RouteCommand = /** @class */ (function () {
742
+ function RouteCommand() {
743
+ }
744
+ return RouteCommand;
745
+ }());
746
+ var RouterCommandsMagicService = /** @class */ (function () {
747
+ function RouterCommandsMagicService() {
748
+ this.pendingRouteCommands = [];
749
+ }
750
+ RouterCommandsMagicService.prototype.AddRouteCommand = function (routeCommand) {
751
+ this.pendingRouteCommands.push(routeCommand);
752
+ };
753
+ RouterCommandsMagicService.prototype.ExecuteNextCommand = function () {
754
+ var pendingRouteCommand = this.pendingRouteCommands.shift();
755
+ if (!util.isNullOrUndefined(pendingRouteCommand)) {
756
+ pendingRouteCommand.callerMgSubformServiceRef.ExecuteRouteCommand(pendingRouteCommand);
757
+ }
758
+ };
759
+ return RouterCommandsMagicService;
760
+ }());
761
+ RouterCommandsMagicService.ɵfac = function RouterCommandsMagicService_Factory(t) { return new (t || RouterCommandsMagicService)(); };
762
+ RouterCommandsMagicService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: RouterCommandsMagicService, factory: RouterCommandsMagicService.ɵfac });
763
+ (function () {
764
+ i0__namespace.ɵsetClassMetadata(RouterCommandsMagicService, [{
765
+ type: i0.Injectable
766
+ }], null, null);
767
+ })();
768
+
769
+ var SubformMagicService = /** @class */ (function () {
770
+ function SubformMagicService(task, activatedRoute, componentList, pendingCommandsCollector, router, routerCommandsMagicService, componentListMagicService, loader, injector) {
771
+ this.task = task;
772
+ this.activatedRoute = activatedRoute;
773
+ this.componentList = componentList;
774
+ this.pendingCommandsCollector = pendingCommandsCollector;
775
+ this.router = router;
776
+ this.routerCommandsMagicService = routerCommandsMagicService;
777
+ this.componentListMagicService = componentListMagicService;
778
+ this.loader = loader;
779
+ this.injector = injector;
780
+ this.subformsDict = {};
781
+ this.routesDict = {};
782
+ this.currentRouteDefinition = null;
783
+ }
784
+ SubformMagicService.prototype.mgGetComp = function (subformName) {
785
+ if (subformName in this.subformsDict) {
786
+ var formName = this.subformsDict[subformName].formName;
787
+ if (formName)
788
+ return this.componentList.getComponent(formName);
789
+ }
790
+ return null;
791
+ };
792
+ SubformMagicService.prototype.mgGetParameters = function (subformName) {
793
+ if (subformName in this.subformsDict) {
794
+ return this.subformsDict[subformName].parameters;
795
+ }
796
+ else
797
+ return "";
798
+ };
799
+ SubformMagicService.prototype.deleteSubformComp = function (subformControlName, formName) {
800
+ if (Object.keys(this.subformsDict).indexOf(subformControlName) >= 0) {
801
+ if (this.subformsDict[subformControlName].formName === formName) {
802
+ this.subformsDict[subformControlName] = {};
803
+ this.task.refreshView();
804
+ }
805
+ }
806
+ };
807
+ SubformMagicService.prototype.addSubformComp = function (subformControlName, formName, taskId, taskDescription, routerPath, params, inDefaultOutlet) {
808
+ var _this = this;
809
+ this.pendingCommandsCollector.startCollecting();
810
+ var refreshNeeded = false;
811
+ if (util.isNullOrUndefined(routerPath)) {
812
+ if (Object.keys(this.subformsDict).indexOf(subformControlName) >= 0) {
813
+ if (this.subformsDict[subformControlName].formName === formName) {
814
+ this.subformsDict[subformControlName] = {};
815
+ this.task.refreshView();
816
+ }
817
+ }
818
+ var moduleRef_1 = this.componentListMagicService.getModuleRef(formName);
819
+ if (moduleRef_1 == null) {
820
+ var lazyLoadModule = this.componentListMagicService.getLazyLoadModuleData(formName);
821
+ if (lazyLoadModule != null) {
822
+ this.loader
823
+ .load(lazyLoadModule.modulePath + "#" + lazyLoadModule.moduleName)
824
+ .then(function (moduleFactory) {
825
+ moduleRef_1 = moduleFactory.create(_this.injector);
826
+ _this.subformsDict[subformControlName] = {
827
+ formName: formName,
828
+ parameters: { taskIdParam: taskId, taskDescription: taskDescription }
829
+ };
830
+ _this.task.refreshView();
831
+ });
832
+ }
833
+ }
834
+ else {
835
+ this.subformsDict[subformControlName] = {
836
+ formName: formName,
837
+ parameters: { taskIdParam: taskId, taskDescription: taskDescription }
838
+ };
839
+ refreshNeeded = true;
840
+ }
841
+ }
842
+ else {
843
+ if (inDefaultOutlet)
844
+ subformControlName = "primary";
845
+ var routeParams = new mscorelib.List();
846
+ routeParams.push(routerPath);
847
+ if (params !== null) {
848
+ routeParams = routeParams.concat(params);
849
+ }
850
+ var routeCommand = {
851
+ callerMgSubformServiceRef: this,
852
+ routerOutletName: subformControlName,
853
+ formName: formName,
854
+ parameters: { taskIdParam: taskId, taskDescription: taskDescription },
855
+ routeParams: routeParams
856
+ };
857
+ if (SubformMagicService.currentCallerMgSubformServiceRef === null)
858
+ this.ExecuteRouteCommand(routeCommand);
859
+ else
860
+ this.routerCommandsMagicService.AddRouteCommand(routeCommand);
861
+ }
862
+ if (refreshNeeded)
863
+ this.task.refreshView();
864
+ };
865
+ SubformMagicService.prototype.ExecuteRouteCommand = function (routeCommand) {
866
+ var _a;
867
+ var reusingComponent = false;
868
+ var currentSubformMagicService = routeCommand.callerMgSubformServiceRef;
869
+ var relativeRoute = SubformMagicService.getRelativeRoute(currentSubformMagicService.activatedRoute);
870
+ if (currentSubformMagicService.routesDict[routeCommand.routerOutletName] === routeCommand.routeParams[0]) {
871
+ currentSubformMagicService.router.navigate([{ outlets: (_a = {}, _a[routeCommand.routerOutletName] = null, _a) }], { relativeTo: relativeRoute })
872
+ .then(function (result) {
873
+ SubformMagicService.currentCallerMgSubformServiceRef = currentSubformMagicService;
874
+ currentSubformMagicService.currentRouteDefinition = {
875
+ formName: routeCommand.formName,
876
+ parameters: routeCommand.parameters
877
+ };
878
+ currentSubformMagicService.PerformRouterNavigate(routeCommand.routerOutletName, routeCommand.routeParams);
879
+ });
880
+ }
881
+ else {
882
+ SubformMagicService.currentCallerMgSubformServiceRef = currentSubformMagicService;
883
+ currentSubformMagicService.currentRouteDefinition = {
884
+ formName: routeCommand.formName,
885
+ parameters: routeCommand.parameters
886
+ };
887
+ if (SubformMagicService.routerContainers.length > 0) {
888
+ var routeContainer = SubformMagicService.routerContainers[0];
889
+ SubformMagicService.routerContainers.shift();
890
+ routeContainer.initializeComponent();
891
+ }
892
+ else {
893
+ currentSubformMagicService.PerformRouterNavigate(routeCommand.routerOutletName, routeCommand.routeParams);
894
+ }
895
+ }
896
+ };
897
+ SubformMagicService.prototype.PerformRouterNavigate = function (routerOutletName, routeParams) {
898
+ var _a;
899
+ var relativeRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
900
+ this.router.navigate([{ outlets: (_a = {}, _a[routerOutletName] = routeParams, _a) }], { relativeTo: relativeRoute })
901
+ .then(function (result) {
902
+ if (result !== null && !result) {
903
+ var subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
904
+ subformMagicService.currentRouteDefinition = null;
905
+ SubformMagicService.currentCallerMgSubformServiceRef = null;
906
+ subformMagicService.pendingCommandsCollector.stopCollecting();
907
+ subformMagicService.routerCommandsMagicService.ExecuteNextCommand();
908
+ }
909
+ });
910
+ };
911
+ SubformMagicService.prototype.init = function () {
912
+ var _this = this;
913
+ var pendingCommands = this.pendingCommandsCollector.GetCommands(this.task.taskId);
914
+ if (pendingCommands.length > 0) {
915
+ pendingCommands.forEach(function (command) { _this.task.executeCommand(command); });
916
+ this.task.refreshView();
917
+ }
918
+ this.pendingCommandsCollector.stopCollecting();
919
+ };
920
+ SubformMagicService.prototype.refreshView = function () {
921
+ this.task.refreshView();
922
+ };
923
+ SubformMagicService.getRelativeRoute = function (sendActivatedRoute) {
924
+ var currentActiveRoute = sendActivatedRoute;
925
+ if (currentActiveRoute.snapshot.routeConfig !== null && currentActiveRoute.snapshot.routeConfig.path === '') {
926
+ currentActiveRoute = currentActiveRoute.parent;
927
+ if (!currentActiveRoute.snapshot.routeConfig.loadChildren)
928
+ console.log("getRelativeRoute(): both path and currentActiveRoute.snapshot.routeConfig.loadChildren are empty.");
929
+ }
930
+ return currentActiveRoute;
931
+ };
932
+ return SubformMagicService;
933
+ }());
934
+ SubformMagicService.currentCallerMgSubformServiceRef = null;
935
+ SubformMagicService.routerContainers = new Array();
936
+ SubformMagicService.ɵfac = function SubformMagicService_Factory(t) { return new (t || SubformMagicService)(i0__namespace.ɵɵinject(TaskMagicService), i0__namespace.ɵɵinject(i2__namespace.ActivatedRoute), i0__namespace.ɵɵinject(ComponentListMagicService), i0__namespace.ɵɵinject(CommandsCollectorMagicService), i0__namespace.ɵɵinject(i2__namespace.Router), i0__namespace.ɵɵinject(RouterCommandsMagicService), i0__namespace.ɵɵinject(ComponentListMagicService), i0__namespace.ɵɵinject(i0__namespace.NgModuleFactoryLoader), i0__namespace.ɵɵinject(i0__namespace.Injector)); };
937
+ SubformMagicService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: SubformMagicService, factory: SubformMagicService.ɵfac });
938
+ (function () {
939
+ i0__namespace.ɵsetClassMetadata(SubformMagicService, [{
940
+ type: i0.Injectable
941
+ }], function () { return [{ type: TaskMagicService }, { type: i2__namespace.ActivatedRoute }, { type: ComponentListMagicService }, { type: CommandsCollectorMagicService }, { type: i2__namespace.Router }, { type: RouterCommandsMagicService }, { type: ComponentListMagicService }, { type: i0__namespace.NgModuleFactoryLoader }, { type: i0__namespace.Injector }]; }, null);
942
+ })();
943
+
944
+ var RouterContainerMagicComponent = /** @class */ (function () {
945
+ function RouterContainerMagicComponent(activatedRoute, router, magic, containerTaskService, componentFactoryResolver, viewContainerRef, componentList, pendingCommandsCollector, routerCommandsMagicService) {
946
+ this.activatedRoute = activatedRoute;
947
+ this.router = router;
948
+ this.magic = magic;
949
+ this.containerTaskService = containerTaskService;
950
+ this.componentFactoryResolver = componentFactoryResolver;
951
+ this.viewContainerRef = viewContainerRef;
952
+ this.componentList = componentList;
953
+ this.pendingCommandsCollector = pendingCommandsCollector;
954
+ this.routerCommandsMagicService = routerCommandsMagicService;
955
+ this.componentRef = null;
956
+ this.parentMgSubformService = null;
957
+ }
958
+ Object.defineProperty(RouterContainerMagicComponent, "LastRoute", {
959
+ get: function () {
960
+ return RouterContainerMagicComponent.lastRoute;
961
+ },
962
+ enumerable: false,
963
+ configurable: true
964
+ });
965
+ RouterContainerMagicComponent.prototype.ngOnInit = function () {
966
+ var outletname = this.activatedRoute.outlet;
967
+ var subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
968
+ var currentActiveRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
969
+ RouterContainerMagicComponent.lastRoute = this.router.url;
970
+ if (subformMagicService == null || subformMagicService.currentRouteDefinition === null) {
971
+ this.insertRouteEvent(currentActiveRoute);
972
+ SubformMagicService.routerContainers.push(this);
973
+ }
974
+ else {
975
+ this.initializeComponent();
976
+ }
977
+ };
978
+ RouterContainerMagicComponent.prototype.insertRouteEvent = function (currentActiveRoute) {
979
+ var guiEvent = engine.getGuiEventObj('RouterNavigate', null, 0);
980
+ guiEvent.RouterPath = currentActiveRoute.snapshot.routeConfig.path;
981
+ if (currentActiveRoute.snapshot.outlet !== 'primary')
982
+ guiEvent.RouterOutletName = currentActiveRoute.snapshot.outlet;
983
+ var calcRouterPath = currentActiveRoute.routeConfig.path;
984
+ if (calcRouterPath.length > 0) {
985
+ var routerPath = calcRouterPath;
986
+ var tokens = utils$1.StrUtil.tokenize(routerPath, "/:");
987
+ guiEvent.RouterPath = tokens[0];
988
+ guiEvent.RouterParams = new mscorelib.List();
989
+ for (var i = 1; i < tokens.length; i++) {
990
+ guiEvent.RouterParams.push(currentActiveRoute.snapshot.params[tokens[i]]);
991
+ }
992
+ }
993
+ this.containerTaskService.insertEvent(guiEvent);
994
+ };
995
+ RouterContainerMagicComponent.prototype.initializeComponent = function () {
996
+ var _this = this;
997
+ var subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
998
+ if (subformMagicService.currentRouteDefinition !== null) {
999
+ var comp = this.componentList.getComponent(subformMagicService.currentRouteDefinition.formName);
1000
+ var componentFactory = this.componentFactoryResolver.resolveComponentFactory(comp);
1001
+ this.componentRef = this.viewContainerRef.createComponent(componentFactory);
1002
+ Object.assign(this.componentRef.instance, subformMagicService.currentRouteDefinition.parameters);
1003
+ var myActiveRoute_1 = SubformMagicService.getRelativeRoute(this.activatedRoute);
1004
+ var routeParams = utils$1.StrUtil.tokenize(myActiveRoute_1.snapshot.routeConfig.path, "/:");
1005
+ subformMagicService.routesDict[myActiveRoute_1.snapshot.outlet] = routeParams[0];
1006
+ this.parentMgSubformService = subformMagicService;
1007
+ subformMagicService.currentRouteDefinition = null;
1008
+ SubformMagicService.currentCallerMgSubformServiceRef = null;
1009
+ var ignoreParamChange_1 = true;
1010
+ myActiveRoute_1.paramMap.subscribe(function (params) {
1011
+ if (!ignoreParamChange_1)
1012
+ _this.insertRouteEvent(myActiveRoute_1);
1013
+ ignoreParamChange_1 = false;
1014
+ });
1015
+ this.parentMgSubformService.refreshView();
1016
+ this.routerCommandsMagicService.ExecuteNextCommand();
1017
+ }
658
1018
  };
659
- return StylesMapManager;
1019
+ RouterContainerMagicComponent.prototype.ngOnDestroy = function () {
1020
+ if (this.componentRef != null) {
1021
+ this.componentRef.instance.task.close();
1022
+ var currentActiveRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
1023
+ this.parentMgSubformService.routesDict[currentActiveRoute.outlet] = "";
1024
+ RouterContainerMagicComponent.lastRoute = this.router.url;
1025
+ }
1026
+ };
1027
+ return RouterContainerMagicComponent;
660
1028
  }());
661
- StylesMapManager.StylesMap = new Map([
662
- [utils$1.MagicProperties.LineDivider, new Map([[true, "solid"], [false, "hidden"]])],
663
- [utils$1.MagicProperties.ImageFile, "url('\{0}\')"],
664
- [utils$1.MagicProperties.Wallpaper, "url('\{0}\')"]
665
- ]);
666
- StylesMapManager.MagicPropertyToHtmlAttributeMap = new Map([
667
- [utils$1.MagicProperties.LineDivider, "border-bottom-style"],
668
- [utils$1.MagicProperties.ImageFile, "background-image"],
669
- [utils$1.MagicProperties.Wallpaper, "background-image"]
670
- ]);
1029
+ RouterContainerMagicComponent.lastRoute = "/";
1030
+ RouterContainerMagicComponent.ɵfac = function RouterContainerMagicComponent_Factory(t) { return new (t || RouterContainerMagicComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i2__namespace.Router), i0__namespace.ɵɵdirectiveInject(EngineMagicService), i0__namespace.ɵɵdirectiveInject(TaskMagicService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(i0__namespace.ViewContainerRef), i0__namespace.ɵɵdirectiveInject(ComponentListMagicService), i0__namespace.ɵɵdirectiveInject(CommandsCollectorMagicService), i0__namespace.ɵɵdirectiveInject(RouterCommandsMagicService)); };
1031
+ RouterContainerMagicComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RouterContainerMagicComponent, selectors: [["magic-route-outlet"]], decls: 0, vars: 0, template: function RouterContainerMagicComponent_Template(rf, ctx) { }, encapsulation: 2 });
1032
+ (function () {
1033
+ i0__namespace.ɵsetClassMetadata(RouterContainerMagicComponent, [{
1034
+ type: i0.Component,
1035
+ args: [{
1036
+ selector: 'magic-route-outlet',
1037
+ template: "\n "
1038
+ }]
1039
+ }], function () { return [{ type: i2__namespace.ActivatedRoute }, { type: i2__namespace.Router }, { type: EngineMagicService }, { type: TaskMagicService }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ViewContainerRef }, { type: ComponentListMagicService }, { type: CommandsCollectorMagicService }, { type: RouterCommandsMagicService }]; }, null);
1040
+ })();
671
1041
 
672
1042
  var GuiInteractiveExecutor = /** @class */ (function () {
673
1043
  function GuiInteractiveExecutor() {
@@ -699,6 +1069,9 @@
699
1069
  case gui.InteractiveCommandType.REFRESH_PAGE:
700
1070
  this.OnRefreshPage();
701
1071
  break;
1072
+ case gui.InteractiveCommandType.GET_LAST_ROUTE:
1073
+ this.OnGetLastRoute();
1074
+ break;
702
1075
  }
703
1076
  }
704
1077
  catch (ex) {
@@ -758,6 +1131,9 @@
758
1131
  else
759
1132
  this.command._boolVal = this.task.Records.list[guiRowIndex].isEditing;
760
1133
  };
1134
+ GuiInteractiveExecutor.prototype.OnGetLastRoute = function () {
1135
+ this.command.resultString = RouterContainerMagicComponent.LastRoute;
1136
+ };
761
1137
  return GuiInteractiveExecutor;
762
1138
  }());
763
1139
 
@@ -793,9 +1169,9 @@
793
1169
  return BaseMagicConfirmComponent;
794
1170
  }());
795
1171
  BaseMagicConfirmComponent.ɵfac = function BaseMagicConfirmComponent_Factory(t) { return new (t || BaseMagicConfirmComponent)(); };
796
- BaseMagicConfirmComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BaseMagicConfirmComponent, selectors: [["mg-base-alert"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, decls: 0, vars: 0, template: function BaseMagicConfirmComponent_Template(rf, ctx) { }, styles: [""] });
1172
+ BaseMagicConfirmComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BaseMagicConfirmComponent, selectors: [["mg-base-alert"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, decls: 0, vars: 0, template: function BaseMagicConfirmComponent_Template(rf, ctx) { }, styles: [""] });
797
1173
  (function () {
798
- i0.ɵsetClassMetadata(BaseMagicConfirmComponent, [{
1174
+ i0__namespace.ɵsetClassMetadata(BaseMagicConfirmComponent, [{
799
1175
  type: i0.Component,
800
1176
  args: [{
801
1177
  selector: 'mg-base-alert',
@@ -821,9 +1197,9 @@
821
1197
  return BaseMagicAlertComponent;
822
1198
  }());
823
1199
  BaseMagicAlertComponent.ɵfac = function BaseMagicAlertComponent_Factory(t) { return new (t || BaseMagicAlertComponent)(); };
824
- BaseMagicAlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BaseMagicAlertComponent, selectors: [["mg-base-alert"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, decls: 0, vars: 0, template: function BaseMagicAlertComponent_Template(rf, ctx) { }, styles: [""] });
1200
+ BaseMagicAlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BaseMagicAlertComponent, selectors: [["mg-base-alert"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, decls: 0, vars: 0, template: function BaseMagicAlertComponent_Template(rf, ctx) { }, styles: [""] });
825
1201
  (function () {
826
- i0.ɵsetClassMetadata(BaseMagicAlertComponent, [{
1202
+ i0__namespace.ɵsetClassMetadata(BaseMagicAlertComponent, [{
827
1203
  type: i0.Component,
828
1204
  args: [{
829
1205
  selector: 'mg-base-alert',
@@ -848,15 +1224,15 @@
848
1224
  };
849
1225
  return MagicFocusDirective;
850
1226
  }());
851
- MagicFocusDirective.ɵfac = function MagicFocusDirective_Factory(t) { return new (t || MagicFocusDirective)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
852
- MagicFocusDirective.ɵdir = i0.ɵɵdefineDirective({ type: MagicFocusDirective, selectors: [["", "magicFocus", ""]] });
1227
+ MagicFocusDirective.ɵfac = function MagicFocusDirective_Factory(t) { return new (t || MagicFocusDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); };
1228
+ MagicFocusDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: MagicFocusDirective, selectors: [["", "magicFocus", ""]] });
853
1229
  (function () {
854
- i0.ɵsetClassMetadata(MagicFocusDirective, [{
1230
+ i0__namespace.ɵsetClassMetadata(MagicFocusDirective, [{
855
1231
  type: i0.Directive,
856
1232
  args: [{
857
1233
  selector: '[magicFocus]'
858
1234
  }]
859
- }], function () { return [{ type: i0.ElementRef }]; }, null);
1235
+ }], function () { return [{ type: i0__namespace.ElementRef }]; }, null);
860
1236
  })();
861
1237
 
862
1238
  var MagicViewContainerRef = /** @class */ (function () {
@@ -868,18 +1244,18 @@
868
1244
  }
869
1245
  return MagicViewContainerRef;
870
1246
  }());
871
- MagicViewContainerRef.ɵfac = function MagicViewContainerRef_Factory(t) { return new (t || MagicViewContainerRef)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver)); };
872
- MagicViewContainerRef.ɵdir = i0.ɵɵdefineDirective({ type: MagicViewContainerRef, selectors: [["", "magicViewContainerRef", ""]] });
1247
+ MagicViewContainerRef.ɵfac = function MagicViewContainerRef_Factory(t) { return new (t || MagicViewContainerRef)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ViewContainerRef), i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver)); };
1248
+ MagicViewContainerRef.ɵdir = i0__namespace.ɵɵdefineDirective({ type: MagicViewContainerRef, selectors: [["", "magicViewContainerRef", ""]] });
873
1249
  (function () {
874
- i0.ɵsetClassMetadata(MagicViewContainerRef, [{
1250
+ i0__namespace.ɵsetClassMetadata(MagicViewContainerRef, [{
875
1251
  type: i0.Directive,
876
1252
  args: [{
877
1253
  selector: '[magicViewContainerRef]',
878
1254
  }]
879
- }], function () { return [{ type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }]; }, null);
1255
+ }], function () { return [{ type: i0__namespace.ViewContainerRef }, { type: i0__namespace.ComponentFactoryResolver }]; }, null);
880
1256
  })();
881
1257
 
882
- var _c0 = ["overlayContainerWrapper"];
1258
+ var _c0$3 = ["overlayContainerWrapper"];
883
1259
  var MagicOverlayContainerWrapper = /** @class */ (function () {
884
1260
  function MagicOverlayContainerWrapper(componentListMagicService, loader, injector, componentFactoryResolver, changeDetectorRef) {
885
1261
  this.componentListMagicService = componentListMagicService;
@@ -948,35 +1324,35 @@
948
1324
  [gui.OverlayType.Alert, { comp: BaseMagicAlertComponent, error: 'BaseMagicAlertComponent. Alert ' }],
949
1325
  [gui.OverlayType.ConfirmationBox, { comp: BaseMagicConfirmComponent, error: 'BaseMagicConfirmComponent. Confirmation ' }]
950
1326
  ]);
951
- MagicOverlayContainerWrapper.ɵfac = function MagicOverlayContainerWrapper_Factory(t) { return new (t || MagicOverlayContainerWrapper)(i0.ɵɵdirectiveInject(ComponentListMagicService), i0.ɵɵdirectiveInject(i0.NgModuleFactoryLoader), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
952
- MagicOverlayContainerWrapper.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlayContainerWrapper, selectors: [["app-magic-overlay-container-wrapper"]], viewQuery: function MagicOverlayContainerWrapper_Query(rf, ctx) {
1327
+ MagicOverlayContainerWrapper.ɵfac = function MagicOverlayContainerWrapper_Factory(t) { return new (t || MagicOverlayContainerWrapper)(i0__namespace.ɵɵdirectiveInject(ComponentListMagicService), i0__namespace.ɵɵdirectiveInject(i0__namespace.NgModuleFactoryLoader), i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
1328
+ MagicOverlayContainerWrapper.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: MagicOverlayContainerWrapper, selectors: [["app-magic-overlay-container-wrapper"]], viewQuery: function MagicOverlayContainerWrapper_Query(rf, ctx) {
953
1329
  if (rf & 1) {
954
- i0.ɵɵstaticViewQuery(_c0, true);
1330
+ i0__namespace.ɵɵstaticViewQuery(_c0$3, true);
955
1331
  }
956
1332
  if (rf & 2) {
957
1333
  var _t;
958
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.overlayContainerWrapperElementRef = _t.first);
1334
+ i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.overlayContainerWrapperElementRef = _t.first);
959
1335
  }
960
1336
  }, inputs: { Component: "Component", Parameters: "Parameters", OverlayTypeParam: "OverlayTypeParam" }, outputs: { onClose: "onClose" }, decls: 7, vars: 0, consts: [["tabIndex", "0", "magicFocus", "", 1, "overlay-container-wrapper-background", 2, "width", "0px", "height", "0px"], [1, "overlay-container-wrapper-background"], ["overlayContainerWrapper", ""], ["magicViewContainerRef", ""], ["overlayContent", ""], ["tabIndex", "0", 1, "overlay-container-wrapper-background", 2, "width", "0px", "height", "0px"]], template: function MagicOverlayContainerWrapper_Template(rf, ctx) {
961
1337
  if (rf & 1) {
962
- i0.ɵɵelementStart(0, "div");
963
- i0.ɵɵelement(1, "div", 0);
964
- i0.ɵɵelementStart(2, "div", 1, 2);
965
- i0.ɵɵelement(4, "div", 3, 4);
966
- i0.ɵɵelementEnd();
967
- i0.ɵɵelement(6, "div", 5);
968
- i0.ɵɵelementEnd();
1338
+ i0__namespace.ɵɵelementStart(0, "div");
1339
+ i0__namespace.ɵɵelement(1, "div", 0);
1340
+ i0__namespace.ɵɵelementStart(2, "div", 1, 2);
1341
+ i0__namespace.ɵɵelement(4, "div", 3, 4);
1342
+ i0__namespace.ɵɵelementEnd();
1343
+ i0__namespace.ɵɵelement(6, "div", 5);
1344
+ i0__namespace.ɵɵelementEnd();
969
1345
  }
970
1346
  }, directives: [MagicFocusDirective, MagicViewContainerRef], styles: [".overlay-container-wrapper-background[_ngcontent-%COMP%] {\n \n position: fixed;\n top: 0;\n z-index: 999;\n right: 0;\n bottom: 0;\n left: 0;\n }"] });
971
1347
  (function () {
972
- i0.ɵsetClassMetadata(MagicOverlayContainerWrapper, [{
1348
+ i0__namespace.ɵsetClassMetadata(MagicOverlayContainerWrapper, [{
973
1349
  type: i0.Component,
974
1350
  args: [{
975
1351
  selector: 'app-magic-overlay-container-wrapper',
976
1352
  template: "\n <div>\n <div class=\"overlay-container-wrapper-background\" tabIndex=\"0\" style=\"width: 0px; height: 0px;\" magicFocus></div>\n <div class=\"overlay-container-wrapper-background\" #overlayContainerWrapper>\n <div #overlayContent magicViewContainerRef>\n </div>\n </div>\n <div class=\"overlay-container-wrapper-background\" tabIndex=\"0\" style=\"width: 0px; height: 0px;\" ></div>\n </div>\n ",
977
1353
  styles: ["\n .overlay-container-wrapper-background {\n /* modal background fixed across whole screen */\n position: fixed;\n top: 0;\n z-index: 999;\n right: 0;\n bottom: 0;\n left: 0;\n }\n "]
978
1354
  }]
979
- }], function () { return [{ type: ComponentListMagicService }, { type: i0.NgModuleFactoryLoader }, { type: i0.Injector }, { type: i0.ComponentFactoryResolver }, { type: i0.ChangeDetectorRef }]; }, { Component: [{
1355
+ }], function () { return [{ type: ComponentListMagicService }, { type: i0__namespace.NgModuleFactoryLoader }, { type: i0__namespace.Injector }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ChangeDetectorRef }]; }, { Component: [{
980
1356
  type: i0.Input
981
1357
  }], Parameters: [{
982
1358
  type: i0.Input
@@ -1035,32 +1411,32 @@
1035
1411
  return confirmationBox;
1036
1412
  }());
1037
1413
 
1038
- var _c0$1 = ["modalheader"];
1039
- var _c1 = ["modalForeground"];
1414
+ var _c0$2 = ["modalheader"];
1415
+ var _c1$1 = ["modalForeground"];
1040
1416
  function MagicOverlayContainer_button_2_Template(rf, ctx) {
1041
1417
  if (rf & 1) {
1042
- var _r5_1 = i0.ɵɵgetCurrentView();
1043
- i0.ɵɵelementStart(0, "button", 8);
1044
- i0.ɵɵlistener("click", function MagicOverlayContainer_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5_1); var ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.OnClose(); });
1045
- i0.ɵɵtext(1, "X");
1046
- i0.ɵɵelementEnd();
1418
+ var _r5_1 = i0__namespace.ɵɵgetCurrentView();
1419
+ i0__namespace.ɵɵelementStart(0, "button", 8);
1420
+ i0__namespace.ɵɵlistener("click", function MagicOverlayContainer_button_2_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r5_1); var ctx_r4 = i0__namespace.ɵɵnextContext(); return ctx_r4.OnClose(); });
1421
+ i0__namespace.ɵɵtext(1, "X");
1422
+ i0__namespace.ɵɵelementEnd();
1047
1423
  }
1048
1424
  }
1049
1425
  function MagicOverlayContainer_div_5_Template(rf, ctx) {
1050
1426
  if (rf & 1) {
1051
- var _r8_1 = i0.ɵɵgetCurrentView();
1052
- i0.ɵɵelementStart(0, "div", 9, 10);
1053
- i0.ɵɵtext(2);
1054
- i0.ɵɵelementStart(3, "button", 11);
1055
- i0.ɵɵlistener("click", function MagicOverlayContainer_div_5_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r8_1); var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.OnClose(); });
1056
- i0.ɵɵtext(4, "X");
1057
- i0.ɵɵelementEnd();
1058
- i0.ɵɵelementEnd();
1427
+ var _r8_1 = i0__namespace.ɵɵgetCurrentView();
1428
+ i0__namespace.ɵɵelementStart(0, "div", 9, 10);
1429
+ i0__namespace.ɵɵtext(2);
1430
+ i0__namespace.ɵɵelementStart(3, "button", 11);
1431
+ i0__namespace.ɵɵlistener("click", function MagicOverlayContainer_div_5_Template_button_click_3_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(); return ctx_r7.OnClose(); });
1432
+ i0__namespace.ɵɵtext(4, "X");
1433
+ i0__namespace.ɵɵelementEnd();
1434
+ i0__namespace.ɵɵelementEnd();
1059
1435
  }
1060
1436
  if (rf & 2) {
1061
- var ctx_r2 = i0.ɵɵnextContext();
1062
- i0.ɵɵadvance(2);
1063
- i0.ɵɵtextInterpolate1(" ", ctx_r2.getText(), " ");
1437
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
1438
+ i0__namespace.ɵɵadvance(2);
1439
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.getText(), " ");
1064
1440
  }
1065
1441
  }
1066
1442
  var MagicOverlayContainer = /** @class */ (function (_super) {
@@ -1138,52 +1514,52 @@
1138
1514
  };
1139
1515
  return MagicOverlayContainer;
1140
1516
  }(exports.BaseMagicOverlayContainer));
1141
- MagicOverlayContainer.ɵfac = function MagicOverlayContainer_Factory(t) { return new (t || MagicOverlayContainer)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver)); };
1142
- MagicOverlayContainer.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlayContainer, selectors: [["app-magic-overlay-container"]], viewQuery: function MagicOverlayContainer_Query(rf, ctx) {
1517
+ MagicOverlayContainer.ɵfac = function MagicOverlayContainer_Factory(t) { return new (t || MagicOverlayContainer)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver)); };
1518
+ MagicOverlayContainer.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: MagicOverlayContainer, selectors: [["app-magic-overlay-container"]], viewQuery: function MagicOverlayContainer_Query(rf, ctx) {
1143
1519
  if (rf & 1) {
1144
- i0.ɵɵviewQuery(_c0$1, true);
1145
- i0.ɵɵviewQuery(_c1, true);
1520
+ i0__namespace.ɵɵviewQuery(_c0$2, true);
1521
+ i0__namespace.ɵɵviewQuery(_c1$1, true);
1146
1522
  }
1147
1523
  if (rf & 2) {
1148
1524
  var _t;
1149
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerElementRef = _t.first);
1150
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.foregroundElementRef = _t.first);
1525
+ i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.headerElementRef = _t.first);
1526
+ i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.foregroundElementRef = _t.first);
1151
1527
  }
1152
- }, inputs: { ModalComp: "ModalComp", ModalCompParameters: "ModalCompParameters" }, outputs: { onClose: "onClose" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 9, vars: 4, consts: [[1, "modal-background", 3, "click"], ["tabindex", "-1", "style", "float:right; border: none; background-color: transparent; outline: none; color: white", 3, "click", 4, "ngIf"], [1, "modal-foreground", 3, "ngStyle"], ["modalForeground", ""], ["class", "modal-header", 4, "ngIf"], [3, "ngStyle"], ["magicViewContainerRef", ""], ["modalbody", ""], ["tabindex", "-1", 2, "float", "right", "border", "none", "background-color", "transparent", "outline", "none", "color", "white", 3, "click"], [1, "modal-header"], ["modalheader", ""], ["tabindex", "-1", 2, "float", "right", 3, "click"]], template: function MagicOverlayContainer_Template(rf, ctx) {
1528
+ }, inputs: { ModalComp: "ModalComp", ModalCompParameters: "ModalCompParameters" }, outputs: { onClose: "onClose" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 9, vars: 4, consts: [[1, "modal-background", 3, "click"], ["tabindex", "-1", "style", "float:right; border: none; background-color: transparent; outline: none; color: white", 3, "click", 4, "ngIf"], [1, "modal-foreground", 3, "ngStyle"], ["modalForeground", ""], ["class", "modal-header", 4, "ngIf"], [3, "ngStyle"], ["magicViewContainerRef", ""], ["modalbody", ""], ["tabindex", "-1", 2, "float", "right", "border", "none", "background-color", "transparent", "outline", "none", "color", "white", 3, "click"], [1, "modal-header"], ["modalheader", ""], ["tabindex", "-1", 2, "float", "right", 3, "click"]], template: function MagicOverlayContainer_Template(rf, ctx) {
1153
1529
  if (rf & 1) {
1154
- i0.ɵɵelementStart(0, "div");
1155
- i0.ɵɵelementStart(1, "div", 0);
1156
- i0.ɵɵlistener("click", function MagicOverlayContainer_Template_div_click_1_listener() { return ctx.OnBackgroundClick(); });
1157
- i0.ɵɵtemplate(2, MagicOverlayContainer_button_2_Template, 2, 0, "button", 1);
1158
- i0.ɵɵelementEnd();
1159
- i0.ɵɵelementStart(3, "div", 2, 3);
1160
- i0.ɵɵtemplate(5, MagicOverlayContainer_div_5_Template, 5, 1, "div", 4);
1161
- i0.ɵɵelementStart(6, "div", 5);
1162
- i0.ɵɵelement(7, "div", 6, 7);
1163
- i0.ɵɵelementEnd();
1164
- i0.ɵɵelementEnd();
1165
- i0.ɵɵelementEnd();
1530
+ i0__namespace.ɵɵelementStart(0, "div");
1531
+ i0__namespace.ɵɵelementStart(1, "div", 0);
1532
+ i0__namespace.ɵɵlistener("click", function MagicOverlayContainer_Template_div_click_1_listener() { return ctx.OnBackgroundClick(); });
1533
+ i0__namespace.ɵɵtemplate(2, MagicOverlayContainer_button_2_Template, 2, 0, "button", 1);
1534
+ i0__namespace.ɵɵelementEnd();
1535
+ i0__namespace.ɵɵelementStart(3, "div", 2, 3);
1536
+ i0__namespace.ɵɵtemplate(5, MagicOverlayContainer_div_5_Template, 5, 1, "div", 4);
1537
+ i0__namespace.ɵɵelementStart(6, "div", 5);
1538
+ i0__namespace.ɵɵelement(7, "div", 6, 7);
1539
+ i0__namespace.ɵɵelementEnd();
1540
+ i0__namespace.ɵɵelementEnd();
1541
+ i0__namespace.ɵɵelementEnd();
1166
1542
  }
1167
1543
  if (rf & 2) {
1168
- i0.ɵɵadvance(2);
1169
- i0.ɵɵproperty("ngIf", !ctx.getShowTitleBar());
1170
- i0.ɵɵadvance(1);
1171
- i0.ɵɵproperty("ngStyle", ctx.getStyle());
1172
- i0.ɵɵadvance(2);
1173
- i0.ɵɵproperty("ngIf", ctx.getShowTitleBar());
1174
- i0.ɵɵadvance(1);
1175
- i0.ɵɵproperty("ngStyle", ctx.getClientAreaStyles());
1176
- }
1177
- }, directives: [i1.NgIf, i1.NgStyle, MagicViewContainerRef], styles: [".modal-foreground[_ngcontent-%COMP%]{background-color:#fff}.modal-background[_ngcontent-%COMP%], .modal-foreground[_ngcontent-%COMP%]{bottom:0;left:0;position:fixed;right:0;top:0}.modal-background[_ngcontent-%COMP%]{background-color:#000;opacity:.75}.modal-header[_ngcontent-%COMP%]{background-color:beige;border-bottom:2px solid red}"] });
1544
+ i0__namespace.ɵɵadvance(2);
1545
+ i0__namespace.ɵɵproperty("ngIf", !ctx.getShowTitleBar());
1546
+ i0__namespace.ɵɵadvance(1);
1547
+ i0__namespace.ɵɵproperty("ngStyle", ctx.getStyle());
1548
+ i0__namespace.ɵɵadvance(2);
1549
+ i0__namespace.ɵɵproperty("ngIf", ctx.getShowTitleBar());
1550
+ i0__namespace.ɵɵadvance(1);
1551
+ i0__namespace.ɵɵproperty("ngStyle", ctx.getClientAreaStyles());
1552
+ }
1553
+ }, directives: [i1__namespace.NgIf, i1__namespace.NgStyle, MagicViewContainerRef], styles: [".modal-foreground[_ngcontent-%COMP%]{background-color:#fff}.modal-background[_ngcontent-%COMP%], .modal-foreground[_ngcontent-%COMP%]{bottom:0;left:0;position:fixed;right:0;top:0}.modal-background[_ngcontent-%COMP%]{background-color:#000;opacity:.75}.modal-header[_ngcontent-%COMP%]{background-color:beige;border-bottom:2px solid red}"] });
1178
1554
  (function () {
1179
- i0.ɵsetClassMetadata(MagicOverlayContainer, [{
1555
+ i0__namespace.ɵsetClassMetadata(MagicOverlayContainer, [{
1180
1556
  type: i0.Component,
1181
1557
  args: [{
1182
1558
  selector: 'app-magic-overlay-container',
1183
1559
  template: "\n <div>\n <div class=\"modal-background\" (click)=\"OnBackgroundClick()\">\n <button (click)=\"OnClose()\" tabindex=\"-1\" style=\"float:right; border: none; background-color: transparent; outline: none; color: white\" *ngIf=\"!getShowTitleBar()\">X</button>\n </div>\n <div #modalForeground class=\"modal-foreground\" [ngStyle]=\"getStyle()\">\n <div #modalheader class=\"modal-header\" *ngIf=\"getShowTitleBar()\">\n {{getText()}}\n <button (click)=\"OnClose()\" style=\"float:right\" tabindex=\"-1\">X</button>\n </div>\n <div [ngStyle]=\"getClientAreaStyles()\">\n <div #modalbody magicViewContainerRef>\n </div>\n </div>\n </div>\n </div>\n ",
1184
1560
  styleUrls: ['./magic-overlay-container.css']
1185
1561
  }]
1186
- }], function () { return [{ type: i0.Injector }, { type: i0.ComponentFactoryResolver }]; }, { headerElementRef: [{
1562
+ }], function () { return [{ type: i0__namespace.Injector }, { type: i0__namespace.ComponentFactoryResolver }]; }, { headerElementRef: [{
1187
1563
  type: i0.ViewChild,
1188
1564
  args: ['modalheader', { static: false }]
1189
1565
  }], foregroundElementRef: [{
@@ -1207,9 +1583,9 @@
1207
1583
  return OverlayContainerMagicProvider;
1208
1584
  }());
1209
1585
  OverlayContainerMagicProvider.ɵfac = function OverlayContainerMagicProvider_Factory(t) { return new (t || OverlayContainerMagicProvider)(); };
1210
- OverlayContainerMagicProvider.ɵprov = i0.ɵɵdefineInjectable({ token: OverlayContainerMagicProvider, factory: OverlayContainerMagicProvider.ɵfac });
1586
+ OverlayContainerMagicProvider.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: OverlayContainerMagicProvider, factory: OverlayContainerMagicProvider.ɵfac });
1211
1587
  (function () {
1212
- i0.ɵsetClassMetadata(OverlayContainerMagicProvider, [{
1588
+ i0__namespace.ɵsetClassMetadata(OverlayContainerMagicProvider, [{
1213
1589
  type: i0.Injectable
1214
1590
  }], null, null);
1215
1591
  })();
@@ -1222,33 +1598,33 @@
1222
1598
  return MagicAlertComponent;
1223
1599
  }(BaseMagicAlertComponent));
1224
1600
  MagicAlertComponent.ɵfac = function MagicAlertComponent_Factory(t) { return ɵMagicAlertComponent_BaseFactory(t || MagicAlertComponent); };
1225
- MagicAlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicAlertComponent, selectors: [["sample-magic-alert-component"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 2, consts: [[1, "mg-message-background"], [3, "click"]], template: function MagicAlertComponent_Template(rf, ctx) {
1601
+ MagicAlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: MagicAlertComponent, selectors: [["sample-magic-alert-component"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 8, vars: 2, consts: [[1, "mg-message-background"], [3, "click"]], template: function MagicAlertComponent_Template(rf, ctx) {
1226
1602
  if (rf & 1) {
1227
- i0.ɵɵelementStart(0, "div");
1228
- i0.ɵɵelementStart(1, "div", 0);
1229
- i0.ɵɵelementStart(2, "h2");
1230
- i0.ɵɵtext(3);
1231
- i0.ɵɵelementEnd();
1232
- i0.ɵɵelementStart(4, "p");
1233
- i0.ɵɵtext(5);
1234
- i0.ɵɵelementEnd();
1235
- i0.ɵɵelementStart(6, "button", 1);
1236
- i0.ɵɵlistener("click", function MagicAlertComponent_Template_button_click_6_listener() { return ctx.OnClose(); });
1237
- i0.ɵɵtext(7, "OK");
1238
- i0.ɵɵelementEnd();
1239
- i0.ɵɵelementEnd();
1240
- i0.ɵɵelementEnd();
1603
+ i0__namespace.ɵɵelementStart(0, "div");
1604
+ i0__namespace.ɵɵelementStart(1, "div", 0);
1605
+ i0__namespace.ɵɵelementStart(2, "h2");
1606
+ i0__namespace.ɵɵtext(3);
1607
+ i0__namespace.ɵɵelementEnd();
1608
+ i0__namespace.ɵɵelementStart(4, "p");
1609
+ i0__namespace.ɵɵtext(5);
1610
+ i0__namespace.ɵɵelementEnd();
1611
+ i0__namespace.ɵɵelementStart(6, "button", 1);
1612
+ i0__namespace.ɵɵlistener("click", function MagicAlertComponent_Template_button_click_6_listener() { return ctx.OnClose(); });
1613
+ i0__namespace.ɵɵtext(7, "OK");
1614
+ i0__namespace.ɵɵelementEnd();
1615
+ i0__namespace.ɵɵelementEnd();
1616
+ i0__namespace.ɵɵelementEnd();
1241
1617
  }
1242
1618
  if (rf & 2) {
1243
- i0.ɵɵadvance(3);
1244
- i0.ɵɵtextInterpolate1(" ", ctx.title, "");
1245
- i0.ɵɵadvance(2);
1246
- i0.ɵɵtextInterpolate1("", ctx.message, " ");
1619
+ i0__namespace.ɵɵadvance(3);
1620
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.title, "");
1621
+ i0__namespace.ɵɵadvance(2);
1622
+ i0__namespace.ɵɵtextInterpolate1("", ctx.message, " ");
1247
1623
  }
1248
1624
  }, styles: [".mg-message-background[_ngcontent-%COMP%] {\n background-color: #F5F5F5;\n text-align: center;\n width: 40%;\n font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n padding: 17px;\n border-radius: 5px;\n text-align: center;\n margin-top: 10% ;\n margin-left: auto;\n margin-right: auto;\n border: 1px solid gray;\n }\n\n button[_ngcontent-%COMP%] {\n background-color: #8CD4F5;\n color: white;\n border: none;\n box-shadow: none;\n font-size: 17px;\n font-weight: 500;\n -webkit-border-radius: 4px;\n border-radius: 5px;\n padding: 10px 32px;\n margin: 26px 5px 0 5px;\n cursor: pointer;\n }"] });
1249
- var ɵMagicAlertComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MagicAlertComponent);
1625
+ var ɵMagicAlertComponent_BaseFactory = i0__namespace.ɵɵgetInheritedFactory(MagicAlertComponent);
1250
1626
  (function () {
1251
- i0.ɵsetClassMetadata(MagicAlertComponent, [{
1627
+ i0__namespace.ɵsetClassMetadata(MagicAlertComponent, [{
1252
1628
  type: i0.Component,
1253
1629
  args: [{
1254
1630
  selector: 'sample-magic-alert-component',
@@ -1266,37 +1642,37 @@
1266
1642
  return MagicConfirmationBoxComponent;
1267
1643
  }(BaseMagicConfirmComponent));
1268
1644
  MagicConfirmationBoxComponent.ɵfac = function MagicConfirmationBoxComponent_Factory(t) { return ɵMagicConfirmationBoxComponent_BaseFactory(t || MagicConfirmationBoxComponent); };
1269
- MagicConfirmationBoxComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicConfirmationBoxComponent, selectors: [["sample-magic-confirmation-box"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 2, consts: [[1, "mg-message-background"], [3, "click"], [1, "cancel", 3, "click"]], template: function MagicConfirmationBoxComponent_Template(rf, ctx) {
1645
+ MagicConfirmationBoxComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: MagicConfirmationBoxComponent, selectors: [["sample-magic-confirmation-box"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 11, vars: 2, consts: [[1, "mg-message-background"], [3, "click"], [1, "cancel", 3, "click"]], template: function MagicConfirmationBoxComponent_Template(rf, ctx) {
1270
1646
  if (rf & 1) {
1271
- i0.ɵɵelementStart(0, "div");
1272
- i0.ɵɵelementStart(1, "div", 0);
1273
- i0.ɵɵelementStart(2, "h2");
1274
- i0.ɵɵtext(3);
1275
- i0.ɵɵelementEnd();
1276
- i0.ɵɵtext(4);
1277
- i0.ɵɵelement(5, "br");
1278
- i0.ɵɵelement(6, "br");
1279
- i0.ɵɵelementStart(7, "button", 1);
1280
- i0.ɵɵlistener("click", function MagicConfirmationBoxComponent_Template_button_click_7_listener() { return ctx.OnClose(true); });
1281
- i0.ɵɵtext(8, "OK");
1282
- i0.ɵɵelementEnd();
1283
- i0.ɵɵelementStart(9, "button", 2);
1284
- i0.ɵɵlistener("click", function MagicConfirmationBoxComponent_Template_button_click_9_listener() { return ctx.OnClose(false); });
1285
- i0.ɵɵtext(10, "Cancel");
1286
- i0.ɵɵelementEnd();
1287
- i0.ɵɵelementEnd();
1288
- i0.ɵɵelementEnd();
1647
+ i0__namespace.ɵɵelementStart(0, "div");
1648
+ i0__namespace.ɵɵelementStart(1, "div", 0);
1649
+ i0__namespace.ɵɵelementStart(2, "h2");
1650
+ i0__namespace.ɵɵtext(3);
1651
+ i0__namespace.ɵɵelementEnd();
1652
+ i0__namespace.ɵɵtext(4);
1653
+ i0__namespace.ɵɵelement(5, "br");
1654
+ i0__namespace.ɵɵelement(6, "br");
1655
+ i0__namespace.ɵɵelementStart(7, "button", 1);
1656
+ i0__namespace.ɵɵlistener("click", function MagicConfirmationBoxComponent_Template_button_click_7_listener() { return ctx.OnClose(true); });
1657
+ i0__namespace.ɵɵtext(8, "OK");
1658
+ i0__namespace.ɵɵelementEnd();
1659
+ i0__namespace.ɵɵelementStart(9, "button", 2);
1660
+ i0__namespace.ɵɵlistener("click", function MagicConfirmationBoxComponent_Template_button_click_9_listener() { return ctx.OnClose(false); });
1661
+ i0__namespace.ɵɵtext(10, "Cancel");
1662
+ i0__namespace.ɵɵelementEnd();
1663
+ i0__namespace.ɵɵelementEnd();
1664
+ i0__namespace.ɵɵelementEnd();
1289
1665
  }
1290
1666
  if (rf & 2) {
1291
- i0.ɵɵadvance(3);
1292
- i0.ɵɵtextInterpolate1(" ", ctx.title, "");
1293
- i0.ɵɵadvance(1);
1294
- i0.ɵɵtextInterpolate1(" ", ctx.message, " ");
1667
+ i0__namespace.ɵɵadvance(3);
1668
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.title, "");
1669
+ i0__namespace.ɵɵadvance(1);
1670
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.message, " ");
1295
1671
  }
1296
1672
  }, styles: [".mg-message-background[_ngcontent-%COMP%] {\n background-color: #F5F5F5;\n text-align: center;\n width: 40%;\n font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n padding: 17px;\n border-radius: 5px;\n text-align: center;\n margin-top: 10% ;\n margin-left: auto;\n margin-right: auto;\n border: 1px solid gray;\n }\n\n button[_ngcontent-%COMP%] {\n background-color: #8CD4F5;\n color: white;\n border: none;\n box-shadow: none;\n font-size: 17px;\n font-weight: 500;\n -webkit-border-radius: 4px;\n border-radius: 5px;\n padding: 10px 32px;\n margin: 26px 5px 0 5px;\n cursor: pointer;\n }\n \n button.cancel[_ngcontent-%COMP%] {\n background-color: #C1C1C1;\n }"] });
1297
- var ɵMagicConfirmationBoxComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MagicConfirmationBoxComponent);
1673
+ var ɵMagicConfirmationBoxComponent_BaseFactory = i0__namespace.ɵɵgetInheritedFactory(MagicConfirmationBoxComponent);
1298
1674
  (function () {
1299
- i0.ɵsetClassMetadata(MagicConfirmationBoxComponent, [{
1675
+ i0__namespace.ɵsetClassMetadata(MagicConfirmationBoxComponent, [{
1300
1676
  type: i0.Component,
1301
1677
  args: [{
1302
1678
  selector: 'sample-magic-confirmation-box',
@@ -1321,9 +1697,9 @@
1321
1697
  return ConfirmationComponentsMagicProvider;
1322
1698
  }());
1323
1699
  ConfirmationComponentsMagicProvider.ɵfac = function ConfirmationComponentsMagicProvider_Factory(t) { return new (t || ConfirmationComponentsMagicProvider)(); };
1324
- ConfirmationComponentsMagicProvider.ɵprov = i0.ɵɵdefineInjectable({ token: ConfirmationComponentsMagicProvider, factory: ConfirmationComponentsMagicProvider.ɵfac });
1700
+ ConfirmationComponentsMagicProvider.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ConfirmationComponentsMagicProvider, factory: ConfirmationComponentsMagicProvider.ɵfac });
1325
1701
  (function () {
1326
- i0.ɵsetClassMetadata(ConfirmationComponentsMagicProvider, [{
1702
+ i0__namespace.ɵsetClassMetadata(ConfirmationComponentsMagicProvider, [{
1327
1703
  type: i0.Injectable
1328
1704
  }], null, null);
1329
1705
  })();
@@ -1398,12 +1774,12 @@
1398
1774
  };
1399
1775
  return OverlayWindowService;
1400
1776
  }());
1401
- OverlayWindowService.ɵfac = function OverlayWindowService_Factory(t) { return new (t || OverlayWindowService)(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(ComponentListMagicService), i0.ɵɵinject(EngineMagicService), i0.ɵɵinject(OverlayContainerMagicProvider), i0.ɵɵinject(ConfirmationComponentsMagicProvider)); };
1402
- OverlayWindowService.ɵprov = i0.ɵɵdefineInjectable({ token: OverlayWindowService, factory: OverlayWindowService.ɵfac });
1777
+ OverlayWindowService.ɵfac = function OverlayWindowService_Factory(t) { return new (t || OverlayWindowService)(i0__namespace.ɵɵinject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵinject(ComponentListMagicService), i0__namespace.ɵɵinject(EngineMagicService), i0__namespace.ɵɵinject(OverlayContainerMagicProvider), i0__namespace.ɵɵinject(ConfirmationComponentsMagicProvider)); };
1778
+ OverlayWindowService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: OverlayWindowService, factory: OverlayWindowService.ɵfac });
1403
1779
  (function () {
1404
- i0.ɵsetClassMetadata(OverlayWindowService, [{
1780
+ i0__namespace.ɵsetClassMetadata(OverlayWindowService, [{
1405
1781
  type: i0.Injectable
1406
- }], function () { return [{ type: i0.ComponentFactoryResolver }, { type: ComponentListMagicService }, { type: EngineMagicService }, { type: OverlayContainerMagicProvider }, { type: ConfirmationComponentsMagicProvider }]; }, null);
1782
+ }], function () { return [{ type: i0__namespace.ComponentFactoryResolver }, { type: ComponentListMagicService }, { type: EngineMagicService }, { type: OverlayContainerMagicProvider }, { type: ConfirmationComponentsMagicProvider }]; }, null);
1407
1783
  })();
1408
1784
  var OverlayWindowFocusManager = /** @class */ (function () {
1409
1785
  function OverlayWindowFocusManager(rootMagicElement) {
@@ -1853,6 +2229,7 @@
1853
2229
  control.setValidators([control.validator, this.customValidator(guiRowId.toString(), controlId)]);
1854
2230
  else
1855
2231
  control.setValidators(this.customValidator(guiRowId.toString(), controlId));
2232
+ control.updateValueAndValidity();
1856
2233
  }
1857
2234
  }
1858
2235
  break;
@@ -1865,7 +2242,7 @@
1865
2242
  properties.setStyle(command.Operation, command.obj1);
1866
2243
  break;
1867
2244
  case gui.CommandType.SET_ATTRIBUTE:
1868
- properties = this.Records.list[guiRowId].getControlMetadata(controlId);
2245
+ properties = this.Records.list[0].getControlMetadata(controlId);
1869
2246
  properties.dataType = String.fromCharCode(command.number);
1870
2247
  break;
1871
2248
  case gui.CommandType.SET_VALUE:
@@ -2038,339 +2415,116 @@
2038
2415
  TaskMagicService.prototype.onComboboxSelectionChanged = function (event, idx, line) {
2039
2416
  var guiEvent = engine.getGuiEventObj('selectionchanged', idx, line);
2040
2417
  if (typeof (event) == 'number') {
2041
- guiEvent.Value = event;
2042
- }
2043
- else {
2044
- if (!util.isNullOrUndefined(event.target)) {
2045
- var indexes = new Array(event.target.selectedOptions.length);
2046
- for (var i = 0; i < event.target.selectedOptions.length; i++) {
2047
- indexes[i] = event.target.selectedOptions[i].index;
2048
- }
2049
- guiEvent.Value = indexes.join(',');
2050
- }
2051
- else
2052
- guiEvent.Value = event.value;
2053
- }
2054
- this.insertEvent(guiEvent);
2055
- };
2056
- TaskMagicService.prototype.onListBoxSelectionChanged = function (event, idx) {
2057
- var guiEvent = engine.getGuiEventObj('selectionchanged', idx, 0);
2058
- var selectedOptions;
2059
- if (!util.isNullOrUndefined(event.target))
2060
- selectedOptions = event.target.selectedOptions;
2061
- else
2062
- selectedOptions = event.source.selectedOptions.selected;
2063
- var length = selectedOptions.length;
2064
- var indexes = new Array(length);
2065
- for (var i = 0; i < length; i++) {
2066
- if (!util.isNullOrUndefined(event.target))
2067
- indexes[i] = (selectedOptions[i]).index;
2068
- else
2069
- indexes[i] = (selectedOptions[i]).value;
2070
- }
2071
- guiEvent.Value = indexes;
2072
- this.insertEvent(guiEvent);
2073
- };
2074
- TaskMagicService.prototype.onCheckChanged = function (event, idx, rowId) {
2075
- if (typeof rowId === 'undefined')
2076
- rowId = 0;
2077
- var guiEvent = engine.getGuiEventObj('selectionchanged', idx, rowId);
2078
- if (typeof (event) == 'boolean') {
2079
- guiEvent.Value = event;
2080
- }
2081
- else {
2082
- if (typeof event.target === 'undefined')
2083
- guiEvent.Value = (event).checked;
2084
- else
2085
- guiEvent.Value = (event.target).checked;
2086
- }
2087
- this.insertEvent(guiEvent);
2088
- };
2089
- TaskMagicService.prototype.mgOnTabSelectionChanged = function (idx, layer) {
2090
- var guiEvent = engine.getGuiEventObj('selectionchanged', idx, 0);
2091
- guiEvent.Value = layer.toString();
2092
- this.insertEvent(guiEvent);
2093
- };
2094
- TaskMagicService.prototype.mgOnRadioSelectionChanged = function (event, idx) {
2095
- var result = this.getFormControl('0', idx);
2096
- var guiEvent = engine.getGuiEventObj('selectionchanged', idx, 0);
2097
- if (typeof result.value !== 'string')
2098
- guiEvent.Value = result.value.index;
2099
- else
2100
- guiEvent.Value = result.value;
2101
- this.insertEvent(guiEvent);
2102
- };
2103
- TaskMagicService.prototype.close = function () {
2104
- this.insertEvent(engine.getGuiEventObj('close', null, 0));
2105
- };
2106
- TaskMagicService.prototype.IsStub = function () {
2107
- return this.magic.isStub;
2108
- };
2109
- TaskMagicService.prototype.saveData = function (data) {
2110
- this.magic.saveData(data);
2111
- };
2112
- TaskMagicService.prototype.createData = function () {
2113
- var myData = {
2114
- records: this.Records,
2115
- template: this.template
2116
- };
2117
- var text = 'loadData():any {\n' +
2118
- ' let stubData = ' + JSON.stringify(myData) + ';\n' +
2119
- ' this.loadStubData(stubData);}';
2120
- console.log(text);
2121
- this.saveData(text);
2122
- };
2123
- TaskMagicService.prototype.loadStubData = function (stubData) {
2124
- this.Records = stubData.records;
2125
- this.settemplate(stubData.template);
2126
- this.taskId = '1';
2127
- for (var i = 0; i < this.Records.list.length; i++)
2128
- this.buildTableRowControls(i);
2129
- };
2130
- TaskMagicService.prototype.loadData = function () {
2131
- alert('Please, overwrite method loadData');
2132
- };
2133
- TaskMagicService.prototype.setStubValue = function (guiRowId, fc, name) {
2134
- if (this.IsStub()) {
2135
- try {
2136
- var val = this.Records.list[guiRowId].values[name];
2137
- fc.setValue(val);
2138
- }
2139
- catch (e) {
2140
- }
2141
- }
2142
- };
2143
- return TaskMagicService;
2144
- }());
2145
- TaskMagicService.ɵfac = function TaskMagicService_Factory(t) { return new (t || TaskMagicService)(i0.ɵɵinject(EngineMagicService), i0.ɵɵinject(OverlayWindowService)); };
2146
- TaskMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: TaskMagicService, factory: TaskMagicService.ɵfac });
2147
- (function () {
2148
- i0.ɵsetClassMetadata(TaskMagicService, [{
2149
- type: i0.Injectable
2150
- }], function () { return [{ type: EngineMagicService }, { type: OverlayWindowService }]; }, null);
2151
- })();
2152
-
2153
- var CommandsCollectorMagicService = /** @class */ (function () {
2154
- function CommandsCollectorMagicService(magic) {
2155
- this.magic = magic;
2156
- this.count = 0;
2157
- this.commands = new mscorelib.List();
2158
- this.subscription = null;
2159
- }
2160
- CommandsCollectorMagicService.prototype.startCollecting = function () {
2161
- var _this = this;
2162
- this.count++;
2163
- utils$1.Logger.Instance.WriteDevToLog("CommandsCollectorMagicService.startCollecting() --- " + this.count);
2164
- if (this.subscription === null) {
2165
- this.subscription = this.magic.refreshDom
2166
- .subscribe(function (command) {
2167
- _this.commands.push(command);
2168
- });
2169
- }
2170
- };
2171
- CommandsCollectorMagicService.prototype.stopCollecting = function () {
2172
- this.count--;
2173
- utils$1.Logger.Instance.WriteDevToLog("CommandsCollectorMagicService.stopCollecting() --- " + this.count);
2174
- if (this.count === 0) {
2175
- this.subscription.unsubscribe();
2176
- this.subscription = null;
2177
- }
2178
- };
2179
- CommandsCollectorMagicService.prototype.GetCommands = function (taskId) {
2180
- var _this = this;
2181
- var commands = this.commands.filter(function (command) { return command.TaskTag === taskId; });
2182
- commands.forEach(function (command) { _this.commands.Remove(command); });
2183
- return commands;
2184
- };
2185
- return CommandsCollectorMagicService;
2186
- }());
2187
- CommandsCollectorMagicService.ɵfac = function CommandsCollectorMagicService_Factory(t) { return new (t || CommandsCollectorMagicService)(i0.ɵɵinject(EngineMagicService)); };
2188
- CommandsCollectorMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: CommandsCollectorMagicService, factory: CommandsCollectorMagicService.ɵfac });
2189
- (function () {
2190
- i0.ɵsetClassMetadata(CommandsCollectorMagicService, [{
2191
- type: i0.Injectable
2192
- }], function () { return [{ type: EngineMagicService }]; }, null);
2193
- })();
2194
-
2195
- var RouteCommand = /** @class */ (function () {
2196
- function RouteCommand() {
2197
- }
2198
- return RouteCommand;
2199
- }());
2200
- var RouterCommandsMagicService = /** @class */ (function () {
2201
- function RouterCommandsMagicService() {
2202
- this.pendingRouteCommands = [];
2203
- }
2204
- RouterCommandsMagicService.prototype.AddRouteCommand = function (routeCommand) {
2205
- this.pendingRouteCommands.push(routeCommand);
2206
- };
2207
- RouterCommandsMagicService.prototype.ExecuteNextCommand = function () {
2208
- var pendingRouteCommand = this.pendingRouteCommands.shift();
2209
- if (!util.isNullOrUndefined(pendingRouteCommand)) {
2210
- pendingRouteCommand.callerMgSubformServiceRef.ExecuteRouteCommand(pendingRouteCommand);
2211
- }
2212
- };
2213
- return RouterCommandsMagicService;
2214
- }());
2215
- RouterCommandsMagicService.ɵfac = function RouterCommandsMagicService_Factory(t) { return new (t || RouterCommandsMagicService)(); };
2216
- RouterCommandsMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: RouterCommandsMagicService, factory: RouterCommandsMagicService.ɵfac });
2217
- (function () {
2218
- i0.ɵsetClassMetadata(RouterCommandsMagicService, [{
2219
- type: i0.Injectable
2220
- }], null, null);
2221
- })();
2222
-
2223
- var SubformMagicService = /** @class */ (function () {
2224
- function SubformMagicService(task, activatedRoute, componentList, pendingCommandsCollector, router, routerCommandsMagicService) {
2225
- this.task = task;
2226
- this.activatedRoute = activatedRoute;
2227
- this.componentList = componentList;
2228
- this.pendingCommandsCollector = pendingCommandsCollector;
2229
- this.router = router;
2230
- this.routerCommandsMagicService = routerCommandsMagicService;
2231
- this.subformsDict = {};
2232
- this.routesDict = {};
2233
- this.currentRouteDefinition = null;
2234
- }
2235
- SubformMagicService.prototype.mgGetComp = function (subformName) {
2236
- if (subformName in this.subformsDict) {
2237
- var formName = this.subformsDict[subformName].formName;
2238
- if (formName)
2239
- return this.componentList.getComponent(formName);
2240
- }
2241
- return null;
2242
- };
2243
- SubformMagicService.prototype.mgGetParameters = function (subformName) {
2244
- if (subformName in this.subformsDict) {
2245
- return this.subformsDict[subformName].parameters;
2246
- }
2247
- else
2248
- return "";
2249
- };
2250
- SubformMagicService.prototype.deleteSubformComp = function (subformControlName, formName) {
2251
- if (Object.keys(this.subformsDict).indexOf(subformControlName) >= 0) {
2252
- if (this.subformsDict[subformControlName].formName === formName) {
2253
- this.subformsDict[subformControlName] = {};
2254
- this.task.refreshView();
2255
- }
2256
- }
2257
- };
2258
- SubformMagicService.prototype.addSubformComp = function (subformControlName, formName, taskId, taskDescription, routerPath, params, inDefaultOutlet) {
2259
- this.pendingCommandsCollector.startCollecting();
2260
- var refreshNeeded = false;
2261
- if (util.isNullOrUndefined(routerPath)) {
2262
- if (Object.keys(this.subformsDict).indexOf(subformControlName) >= 0) {
2263
- if (this.subformsDict[subformControlName].formName === formName) {
2264
- this.subformsDict[subformControlName] = {};
2265
- this.task.refreshView();
2266
- }
2267
- }
2268
- this.subformsDict[subformControlName] = {
2269
- formName: formName,
2270
- parameters: { taskIdParam: taskId, taskDescription: taskDescription }
2271
- };
2272
- refreshNeeded = true;
2418
+ guiEvent.Value = event;
2273
2419
  }
2274
2420
  else {
2275
- if (inDefaultOutlet)
2276
- subformControlName = "primary";
2277
- var routeParams = new mscorelib.List();
2278
- routeParams.push(routerPath);
2279
- if (params !== null) {
2280
- routeParams = routeParams.concat(params);
2421
+ if (!util.isNullOrUndefined(event.target)) {
2422
+ var indexes = new Array(event.target.selectedOptions.length);
2423
+ for (var i = 0; i < event.target.selectedOptions.length; i++) {
2424
+ indexes[i] = event.target.selectedOptions[i].index;
2425
+ }
2426
+ guiEvent.Value = indexes.join(',');
2281
2427
  }
2282
- var routeCommand = {
2283
- callerMgSubformServiceRef: this,
2284
- routerOutletName: subformControlName,
2285
- formName: formName,
2286
- parameters: { taskIdParam: taskId, taskDescription: taskDescription },
2287
- routeParams: routeParams
2288
- };
2289
- if (SubformMagicService.currentCallerMgSubformServiceRef === null)
2290
- this.ExecuteRouteCommand(routeCommand);
2291
2428
  else
2292
- this.routerCommandsMagicService.AddRouteCommand(routeCommand);
2429
+ guiEvent.Value = event.value;
2293
2430
  }
2294
- if (refreshNeeded)
2295
- this.task.refreshView();
2431
+ this.insertEvent(guiEvent);
2296
2432
  };
2297
- SubformMagicService.prototype.ExecuteRouteCommand = function (routeCommand) {
2298
- var _a;
2299
- var reusingComponent = false;
2300
- var currentSubformMagicService = routeCommand.callerMgSubformServiceRef;
2301
- var relativeRoute = SubformMagicService.getRelativeRoute(currentSubformMagicService.activatedRoute);
2302
- if (currentSubformMagicService.routesDict[routeCommand.routerOutletName] === routeCommand.routeParams[0]) {
2303
- currentSubformMagicService.router.navigate([{ outlets: (_a = {}, _a[routeCommand.routerOutletName] = null, _a) }], { relativeTo: relativeRoute })
2304
- .then(function (result) {
2305
- SubformMagicService.currentCallerMgSubformServiceRef = currentSubformMagicService;
2306
- currentSubformMagicService.currentRouteDefinition = {
2307
- formName: routeCommand.formName,
2308
- parameters: routeCommand.parameters
2309
- };
2310
- currentSubformMagicService.PerformRouterNavigate(routeCommand.routerOutletName, routeCommand.routeParams);
2311
- });
2433
+ TaskMagicService.prototype.onListBoxSelectionChanged = function (event, idx) {
2434
+ var guiEvent = engine.getGuiEventObj('selectionchanged', idx, 0);
2435
+ var selectedOptions;
2436
+ if (!util.isNullOrUndefined(event.target))
2437
+ selectedOptions = event.target.selectedOptions;
2438
+ else
2439
+ selectedOptions = event.source.selectedOptions.selected;
2440
+ var length = selectedOptions.length;
2441
+ var indexes = new Array(length);
2442
+ for (var i = 0; i < length; i++) {
2443
+ if (!util.isNullOrUndefined(event.target))
2444
+ indexes[i] = (selectedOptions[i]).index;
2445
+ else
2446
+ indexes[i] = (selectedOptions[i]).value;
2447
+ }
2448
+ guiEvent.Value = indexes;
2449
+ this.insertEvent(guiEvent);
2450
+ };
2451
+ TaskMagicService.prototype.onCheckChanged = function (event, idx, rowId) {
2452
+ if (typeof rowId === 'undefined')
2453
+ rowId = 0;
2454
+ var guiEvent = engine.getGuiEventObj('selectionchanged', idx, rowId);
2455
+ if (typeof (event) == 'boolean') {
2456
+ guiEvent.Value = event;
2312
2457
  }
2313
2458
  else {
2314
- SubformMagicService.currentCallerMgSubformServiceRef = currentSubformMagicService;
2315
- currentSubformMagicService.currentRouteDefinition = {
2316
- formName: routeCommand.formName,
2317
- parameters: routeCommand.parameters
2318
- };
2319
- if (SubformMagicService.routerContainers.length > 0) {
2320
- var routeContainer = SubformMagicService.routerContainers[0];
2321
- SubformMagicService.routerContainers.shift();
2322
- routeContainer.initializeComponent();
2323
- }
2324
- else {
2325
- currentSubformMagicService.PerformRouterNavigate(routeCommand.routerOutletName, routeCommand.routeParams);
2326
- }
2459
+ if (typeof event.target === 'undefined')
2460
+ guiEvent.Value = (event).checked;
2461
+ else
2462
+ guiEvent.Value = (event.target).checked;
2327
2463
  }
2464
+ this.insertEvent(guiEvent);
2328
2465
  };
2329
- SubformMagicService.prototype.PerformRouterNavigate = function (routerOutletName, routeParams) {
2330
- var _a;
2331
- var relativeRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
2332
- this.router.navigate([{ outlets: (_a = {}, _a[routerOutletName] = routeParams, _a) }], { relativeTo: relativeRoute })
2333
- .then(function (result) {
2334
- if (result !== null && !result) {
2335
- var subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
2336
- subformMagicService.currentRouteDefinition = null;
2337
- SubformMagicService.currentCallerMgSubformServiceRef = null;
2338
- subformMagicService.pendingCommandsCollector.stopCollecting();
2339
- subformMagicService.routerCommandsMagicService.ExecuteNextCommand();
2340
- }
2341
- });
2466
+ TaskMagicService.prototype.mgOnTabSelectionChanged = function (idx, layer) {
2467
+ var guiEvent = engine.getGuiEventObj('selectionchanged', idx, 0);
2468
+ guiEvent.Value = layer.toString();
2469
+ this.insertEvent(guiEvent);
2342
2470
  };
2343
- SubformMagicService.prototype.init = function () {
2344
- var _this = this;
2345
- var pendingCommands = this.pendingCommandsCollector.GetCommands(this.task.taskId);
2346
- if (pendingCommands.length > 0) {
2347
- pendingCommands.forEach(function (command) { _this.task.executeCommand(command); });
2348
- this.task.refreshView();
2349
- }
2350
- this.pendingCommandsCollector.stopCollecting();
2471
+ TaskMagicService.prototype.mgOnRadioSelectionChanged = function (event, idx) {
2472
+ var result = this.getFormControl('0', idx);
2473
+ var guiEvent = engine.getGuiEventObj('selectionchanged', idx, 0);
2474
+ if (typeof result.value !== 'string')
2475
+ guiEvent.Value = result.value.index;
2476
+ else
2477
+ guiEvent.Value = result.value;
2478
+ this.insertEvent(guiEvent);
2351
2479
  };
2352
- SubformMagicService.prototype.refreshView = function () {
2353
- this.task.refreshView();
2480
+ TaskMagicService.prototype.close = function () {
2481
+ this.insertEvent(engine.getGuiEventObj('close', null, 0));
2354
2482
  };
2355
- SubformMagicService.getRelativeRoute = function (sendActivatedRoute) {
2356
- var currentActiveRoute = sendActivatedRoute;
2357
- if (currentActiveRoute.snapshot.routeConfig !== null && currentActiveRoute.snapshot.routeConfig.path === '') {
2358
- currentActiveRoute = currentActiveRoute.parent;
2359
- if (!currentActiveRoute.snapshot.routeConfig.loadChildren)
2360
- console.log("getRelativeRoute(): both path and currentActiveRoute.snapshot.routeConfig.loadChildren are empty.");
2483
+ TaskMagicService.prototype.IsStub = function () {
2484
+ return this.magic.isStub;
2485
+ };
2486
+ TaskMagicService.prototype.saveData = function (data) {
2487
+ this.magic.saveData(data);
2488
+ };
2489
+ TaskMagicService.prototype.createData = function () {
2490
+ var myData = {
2491
+ records: this.Records,
2492
+ template: this.template
2493
+ };
2494
+ var text = 'loadData():any {\n' +
2495
+ ' let stubData = ' + JSON.stringify(myData) + ';\n' +
2496
+ ' this.loadStubData(stubData);}';
2497
+ console.log(text);
2498
+ this.saveData(text);
2499
+ };
2500
+ TaskMagicService.prototype.loadStubData = function (stubData) {
2501
+ this.Records = stubData.records;
2502
+ this.settemplate(stubData.template);
2503
+ this.taskId = '1';
2504
+ for (var i = 0; i < this.Records.list.length; i++)
2505
+ this.buildTableRowControls(i);
2506
+ };
2507
+ TaskMagicService.prototype.loadData = function () {
2508
+ alert('Please, overwrite method loadData');
2509
+ };
2510
+ TaskMagicService.prototype.setStubValue = function (guiRowId, fc, name) {
2511
+ if (this.IsStub()) {
2512
+ try {
2513
+ var val = this.Records.list[guiRowId].values[name];
2514
+ fc.setValue(val);
2515
+ }
2516
+ catch (e) {
2517
+ }
2361
2518
  }
2362
- return currentActiveRoute;
2363
2519
  };
2364
- return SubformMagicService;
2520
+ return TaskMagicService;
2365
2521
  }());
2366
- SubformMagicService.currentCallerMgSubformServiceRef = null;
2367
- SubformMagicService.routerContainers = new Array();
2368
- SubformMagicService.ɵfac = function SubformMagicService_Factory(t) { return new (t || SubformMagicService)(i0.ɵɵinject(TaskMagicService), i0.ɵɵinject(i2.ActivatedRoute), i0.ɵɵinject(ComponentListMagicService), i0.ɵɵinject(CommandsCollectorMagicService), i0.ɵɵinject(i2.Router), i0.ɵɵinject(RouterCommandsMagicService)); };
2369
- SubformMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: SubformMagicService, factory: SubformMagicService.ɵfac });
2522
+ TaskMagicService.ɵfac = function TaskMagicService_Factory(t) { return new (t || TaskMagicService)(i0__namespace.ɵɵinject(EngineMagicService), i0__namespace.ɵɵinject(OverlayWindowService)); };
2523
+ TaskMagicService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: TaskMagicService, factory: TaskMagicService.ɵfac });
2370
2524
  (function () {
2371
- i0.ɵsetClassMetadata(SubformMagicService, [{
2525
+ i0__namespace.ɵsetClassMetadata(TaskMagicService, [{
2372
2526
  type: i0.Injectable
2373
- }], function () { return [{ type: TaskMagicService }, { type: i2.ActivatedRoute }, { type: ComponentListMagicService }, { type: CommandsCollectorMagicService }, { type: i2.Router }, { type: RouterCommandsMagicService }]; }, null);
2527
+ }], function () { return [{ type: EngineMagicService }, { type: OverlayWindowService }]; }, null);
2374
2528
  })();
2375
2529
 
2376
2530
  var TableMagicService = /** @class */ (function () {
@@ -2436,10 +2590,10 @@
2436
2590
  };
2437
2591
  return TableMagicService;
2438
2592
  }());
2439
- TableMagicService.ɵfac = function TableMagicService_Factory(t) { return new (t || TableMagicService)(i0.ɵɵinject(ComponentListMagicService), i0.ɵɵinject(TaskMagicService)); };
2440
- TableMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: TableMagicService, factory: TableMagicService.ɵfac });
2593
+ TableMagicService.ɵfac = function TableMagicService_Factory(t) { return new (t || TableMagicService)(i0__namespace.ɵɵinject(ComponentListMagicService), i0__namespace.ɵɵinject(TaskMagicService)); };
2594
+ TableMagicService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: TableMagicService, factory: TableMagicService.ɵfac });
2441
2595
  (function () {
2442
- i0.ɵsetClassMetadata(TableMagicService, [{
2596
+ i0__namespace.ɵsetClassMetadata(TableMagicService, [{
2443
2597
  type: i0.Injectable
2444
2598
  }], function () { return [{ type: ComponentListMagicService }, { type: TaskMagicService }]; }, null);
2445
2599
  })();
@@ -2453,12 +2607,12 @@
2453
2607
  };
2454
2608
  return TitleMagicService;
2455
2609
  }());
2456
- TitleMagicService.ɵfac = function TitleMagicService_Factory(t) { return new (t || TitleMagicService)(i0.ɵɵinject(i1$1.Title)); };
2457
- TitleMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: TitleMagicService, factory: TitleMagicService.ɵfac });
2610
+ TitleMagicService.ɵfac = function TitleMagicService_Factory(t) { return new (t || TitleMagicService)(i0__namespace.ɵɵinject(i1__namespace$1.Title)); };
2611
+ TitleMagicService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: TitleMagicService, factory: TitleMagicService.ɵfac });
2458
2612
  (function () {
2459
- i0.ɵsetClassMetadata(TitleMagicService, [{
2613
+ i0__namespace.ɵsetClassMetadata(TitleMagicService, [{
2460
2614
  type: i0.Injectable
2461
- }], function () { return [{ type: i1$1.Title }]; }, null);
2615
+ }], function () { return [{ type: i1__namespace$1.Title }]; }, null);
2462
2616
  })();
2463
2617
 
2464
2618
  var AccessorMagicService = /** @class */ (function () {
@@ -2607,6 +2761,18 @@
2607
2761
  AccessorMagicService.prototype.getItemListValues = function (id, rowId) {
2608
2762
  return this.getProperty(id, gui.HtmlProperties.ItemsList, rowId);
2609
2763
  };
2764
+ AccessorMagicService.prototype.getFilteredList = function (controlId, rowId) {
2765
+ if (util.isNullOrUndefined(rowId))
2766
+ rowId = '0';
2767
+ var items = this.getItemListValues(controlId, rowId);
2768
+ var value = this.task.getFormControl(rowId, controlId).value;
2769
+ if (value !== null && value !== "" && items instanceof Array) {
2770
+ value = value.toLowerCase();
2771
+ return items.filter(function (option) { return option.displayValue.toLowerCase().includes(value); });
2772
+ }
2773
+ else
2774
+ return items;
2775
+ };
2610
2776
  AccessorMagicService.prototype.getDisplayValue = function (id, rowId) {
2611
2777
  var displayValue = "";
2612
2778
  var o = this.getProperty(id, gui.HtmlProperties.ItemsList, rowId);
@@ -2761,10 +2927,10 @@
2761
2927
  };
2762
2928
  return AccessorMagicService;
2763
2929
  }());
2764
- AccessorMagicService.ɵfac = function AccessorMagicService_Factory(t) { return new (t || AccessorMagicService)(i0.ɵɵinject(TaskMagicService)); };
2765
- AccessorMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: AccessorMagicService, factory: AccessorMagicService.ɵfac });
2930
+ AccessorMagicService.ɵfac = function AccessorMagicService_Factory(t) { return new (t || AccessorMagicService)(i0__namespace.ɵɵinject(TaskMagicService)); };
2931
+ AccessorMagicService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: AccessorMagicService, factory: AccessorMagicService.ɵfac });
2766
2932
  (function () {
2767
- i0.ɵsetClassMetadata(AccessorMagicService, [{
2933
+ i0__namespace.ɵsetClassMetadata(AccessorMagicService, [{
2768
2934
  type: i0.Injectable
2769
2935
  }], function () { return [{ type: TaskMagicService }]; }, null);
2770
2936
  })();
@@ -2783,10 +2949,10 @@
2783
2949
  }
2784
2950
  return MagicServices;
2785
2951
  }());
2786
- MagicServices.ɵfac = function MagicServices_Factory(t) { return new (t || MagicServices)(i0.ɵɵinject(TaskMagicService), i0.ɵɵinject(SubformMagicService), i0.ɵɵinject(TableMagicService), i0.ɵɵinject(TitleMagicService), i0.ɵɵinject(AccessorMagicService)); };
2787
- MagicServices.ɵprov = i0.ɵɵdefineInjectable({ token: MagicServices, factory: MagicServices.ɵfac });
2952
+ MagicServices.ɵfac = function MagicServices_Factory(t) { return new (t || MagicServices)(i0__namespace.ɵɵinject(TaskMagicService), i0__namespace.ɵɵinject(SubformMagicService), i0__namespace.ɵɵinject(TableMagicService), i0__namespace.ɵɵinject(TitleMagicService), i0__namespace.ɵɵinject(AccessorMagicService)); };
2953
+ MagicServices.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: MagicServices, factory: MagicServices.ɵfac });
2788
2954
  (function () {
2789
- i0.ɵsetClassMetadata(MagicServices, [{
2955
+ i0__namespace.ɵsetClassMetadata(MagicServices, [{
2790
2956
  type: i0.Injectable
2791
2957
  }], function () { return [{ type: TaskMagicService }, { type: SubformMagicService }, { type: TableMagicService }, { type: TitleMagicService }, { type: AccessorMagicService }]; }, null);
2792
2958
  })();
@@ -2874,17 +3040,17 @@
2874
3040
  };
2875
3041
  return TaskBaseMagicComponent;
2876
3042
  }());
2877
- TaskBaseMagicComponent.ɵfac = function TaskBaseMagicComponent_Factory(t) { return new (t || TaskBaseMagicComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(MagicServices)); };
2878
- TaskBaseMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TaskBaseMagicComponent, selectors: [["task-magic"]], inputs: { taskIdParam: "taskIdParam", taskDescription: "taskDescription" }, features: [i0.ɵɵProvidersFeature([TaskMagicService, SubformMagicService, TableMagicService])], decls: 0, vars: 0, template: function TaskBaseMagicComponent_Template(rf, ctx) { }, encapsulation: 2 });
3043
+ TaskBaseMagicComponent.ɵfac = function TaskBaseMagicComponent_Factory(t) { return new (t || TaskBaseMagicComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(MagicServices)); };
3044
+ TaskBaseMagicComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TaskBaseMagicComponent, selectors: [["task-magic"]], inputs: { taskIdParam: "taskIdParam", taskDescription: "taskDescription" }, features: [i0__namespace.ɵɵProvidersFeature([TaskMagicService, SubformMagicService, TableMagicService])], decls: 0, vars: 0, template: function TaskBaseMagicComponent_Template(rf, ctx) { }, encapsulation: 2 });
2879
3045
  (function () {
2880
- i0.ɵsetClassMetadata(TaskBaseMagicComponent, [{
3046
+ i0__namespace.ɵsetClassMetadata(TaskBaseMagicComponent, [{
2881
3047
  type: i0.Component,
2882
3048
  args: [{
2883
3049
  selector: 'task-magic',
2884
3050
  providers: [TaskMagicService, SubformMagicService, TableMagicService],
2885
3051
  template: ''
2886
3052
  }]
2887
- }], function () { return [{ type: i0.ChangeDetectorRef }, { type: MagicServices }]; }, { taskIdParam: [{
3053
+ }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: MagicServices }]; }, { taskIdParam: [{
2888
3054
  type: i0.Input
2889
3055
  }], taskDescription: [{
2890
3056
  type: i0.Input
@@ -2921,24 +3087,25 @@
2921
3087
  RowMagicDirective.prototype.onClick = function ($event) {
2922
3088
  if (this.rowId != '') {
2923
3089
  this._task.insertEvent(engine.getGuiEventObj('click', "magicRow", +this.rowId));
2924
- event.cancelBubble = true;
3090
+ if (MagicDirective.noOfAutoCompleteBoxesOpened < 1)
3091
+ event.cancelBubble = true;
2925
3092
  }
2926
3093
  };
2927
3094
  return RowMagicDirective;
2928
3095
  }());
2929
- RowMagicDirective.ɵfac = function RowMagicDirective_Factory(t) { return new (t || RowMagicDirective)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ElementRef)); };
2930
- RowMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: RowMagicDirective, selectors: [["", "magicRow", ""]], hostBindings: function RowMagicDirective_HostBindings(rf, ctx) {
3096
+ RowMagicDirective.ɵfac = function RowMagicDirective_Factory(t) { return new (t || RowMagicDirective)(i0__namespace.ɵɵdirectiveInject(TaskMagicService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); };
3097
+ RowMagicDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: RowMagicDirective, selectors: [["", "magicRow", ""]], hostBindings: function RowMagicDirective_HostBindings(rf, ctx) {
2931
3098
  if (rf & 1) {
2932
- i0.ɵɵlistener("click", function RowMagicDirective_click_HostBindingHandler($event) { return ctx.onClick($event); });
3099
+ i0__namespace.ɵɵlistener("click", function RowMagicDirective_click_HostBindingHandler($event) { return ctx.onClick($event); });
2933
3100
  }
2934
3101
  }, inputs: { rowId: ["magicRow", "rowId"] } });
2935
3102
  (function () {
2936
- i0.ɵsetClassMetadata(RowMagicDirective, [{
3103
+ i0__namespace.ɵsetClassMetadata(RowMagicDirective, [{
2937
3104
  type: i0.Directive,
2938
3105
  args: [{
2939
3106
  selector: '[magicRow]'
2940
3107
  }]
2941
- }], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }]; }, { rowId: [{
3108
+ }], function () { return [{ type: TaskMagicService }, { type: i0__namespace.ElementRef }]; }, { rowId: [{
2942
3109
  type: i0.Input,
2943
3110
  args: ['magicRow']
2944
3111
  }], onClick: [{
@@ -2998,7 +3165,8 @@
2998
3165
  if (_this.htmlElement instanceof HTMLButtonElement)
2999
3166
  fromButton = true;
3000
3167
  _this.task.insertEvent(engine.getGuiEventObj(event, _this.id, +_this.rowId, fromButton));
3001
- e.cancelBubble = true;
3168
+ if (MagicDirective.noOfAutoCompleteBoxesOpened < 1)
3169
+ e.cancelBubble = true;
3002
3170
  });
3003
3171
  });
3004
3172
  this.renderer.listen(this.htmlElement, 'change', function (e) {
@@ -3038,7 +3206,7 @@
3038
3206
  (e.keyCode >= gui.GuiConstants.KEY_F1 && e.keyCode <= gui.GuiConstants.KEY_F12);
3039
3207
  if (guiEvent.modifiers !== gui.Modifiers.MODIFIER_NONE || supportedKey) {
3040
3208
  guiEvent.keyCode = e.keyCode;
3041
- if (e.keyCode !== gui.GuiConstants.KEY_ESC || e.keyCode === gui.GuiConstants.KEY_ESC && !MagicDirective.opened)
3209
+ if (e.keyCode !== gui.GuiConstants.KEY_ESC || e.keyCode === gui.GuiConstants.KEY_ESC && (!MagicDirective.opened && MagicDirective.noOfAutoCompleteBoxesOpened < 1))
3042
3210
  e.cancelBubble = true;
3043
3211
  _this.task.insertEvent(guiEvent);
3044
3212
  }
@@ -3135,16 +3303,17 @@
3135
3303
  return MagicDirective;
3136
3304
  }());
3137
3305
  MagicDirective.opened = false;
3138
- MagicDirective.ɵfac = function MagicDirective_Factory(t) { return new (t || MagicDirective)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(RowMagicDirective, 8)); };
3139
- MagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MagicDirective, selectors: [["", "magic", ""]], inputs: { magic: "magic", eventsOnly: "eventsOnly", rowId: "rowId" } });
3306
+ MagicDirective.noOfAutoCompleteBoxesOpened = 0;
3307
+ MagicDirective.ɵfac = function MagicDirective_Factory(t) { return new (t || MagicDirective)(i0__namespace.ɵɵdirectiveInject(TaskMagicService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i0__namespace.Renderer2), i0__namespace.ɵɵdirectiveInject(i0__namespace.ViewContainerRef), i0__namespace.ɵɵdirectiveInject(RowMagicDirective, 8)); };
3308
+ MagicDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: MagicDirective, selectors: [["", "magic", ""]], inputs: { magic: "magic", eventsOnly: "eventsOnly", rowId: "rowId" } });
3140
3309
  (function () {
3141
- i0.ɵsetClassMetadata(MagicDirective, [{
3310
+ i0__namespace.ɵsetClassMetadata(MagicDirective, [{
3142
3311
  type: i0.Directive,
3143
3312
  args: [{
3144
3313
  selector: '[magic]'
3145
3314
  }]
3146
3315
  }], function () {
3147
- return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: RowMagicDirective, decorators: [{
3316
+ return [{ type: TaskMagicService }, { type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }, { type: i0__namespace.ViewContainerRef }, { type: RowMagicDirective, decorators: [{
3148
3317
  type: i0.Optional
3149
3318
  }] }];
3150
3319
  }, { magic: [{
@@ -3343,16 +3512,16 @@
3343
3512
  };
3344
3513
  return NoControlMagicDirective;
3345
3514
  }(MagicDirective));
3346
- NoControlMagicDirective.ɵfac = function NoControlMagicDirective_Factory(t) { return new (t || NoControlMagicDirective)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(RowMagicDirective, 8)); };
3347
- NoControlMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: NoControlMagicDirective, selectors: [["", "magicnc", ""]], inputs: { magic: ["magicnc", "magic"] }, features: [i0.ɵɵInheritDefinitionFeature] });
3515
+ NoControlMagicDirective.ɵfac = function NoControlMagicDirective_Factory(t) { return new (t || NoControlMagicDirective)(i0__namespace.ɵɵdirectiveInject(TaskMagicService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i0__namespace.Renderer2), i0__namespace.ɵɵdirectiveInject(i0__namespace.ViewContainerRef), i0__namespace.ɵɵdirectiveInject(RowMagicDirective, 8)); };
3516
+ NoControlMagicDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: NoControlMagicDirective, selectors: [["", "magicnc", ""]], inputs: { magic: ["magicnc", "magic"] }, features: [i0__namespace.ɵɵInheritDefinitionFeature] });
3348
3517
  (function () {
3349
- i0.ɵsetClassMetadata(NoControlMagicDirective, [{
3518
+ i0__namespace.ɵsetClassMetadata(NoControlMagicDirective, [{
3350
3519
  type: i0.Directive,
3351
3520
  args: [{
3352
3521
  selector: '[magicnc]'
3353
3522
  }]
3354
3523
  }], function () {
3355
- return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: RowMagicDirective, decorators: [{
3524
+ return [{ type: TaskMagicService }, { type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }, { type: i0__namespace.ViewContainerRef }, { type: RowMagicDirective, decorators: [{
3356
3525
  type: i0.Optional
3357
3526
  }] }];
3358
3527
  }, { magic: [{
@@ -3361,93 +3530,6 @@
3361
3530
  }] });
3362
3531
  })();
3363
3532
 
3364
- var RouterContainerMagicComponent = /** @class */ (function () {
3365
- function RouterContainerMagicComponent(activatedRoute, magic, containerTaskService, componentFactoryResolver, viewContainerRef, componentList, pendingCommandsCollector, routerCommandsMagicService) {
3366
- this.activatedRoute = activatedRoute;
3367
- this.magic = magic;
3368
- this.containerTaskService = containerTaskService;
3369
- this.componentFactoryResolver = componentFactoryResolver;
3370
- this.viewContainerRef = viewContainerRef;
3371
- this.componentList = componentList;
3372
- this.pendingCommandsCollector = pendingCommandsCollector;
3373
- this.routerCommandsMagicService = routerCommandsMagicService;
3374
- this.componentRef = null;
3375
- this.parentMgSubformService = null;
3376
- }
3377
- RouterContainerMagicComponent.prototype.ngOnInit = function () {
3378
- var outletname = this.activatedRoute.outlet;
3379
- var subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
3380
- var currentActiveRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
3381
- if (subformMagicService == null || subformMagicService.currentRouteDefinition === null) {
3382
- this.insertRouteEvent(currentActiveRoute);
3383
- SubformMagicService.routerContainers.push(this);
3384
- }
3385
- else {
3386
- this.initializeComponent();
3387
- }
3388
- };
3389
- RouterContainerMagicComponent.prototype.insertRouteEvent = function (currentActiveRoute) {
3390
- var guiEvent = engine.getGuiEventObj('RouterNavigate', null, 0);
3391
- guiEvent.RouterPath = currentActiveRoute.snapshot.routeConfig.path;
3392
- if (currentActiveRoute.snapshot.outlet !== 'primary')
3393
- guiEvent.RouterOutletName = currentActiveRoute.snapshot.outlet;
3394
- var calcRouterPath = currentActiveRoute.routeConfig.path;
3395
- if (calcRouterPath.length > 0) {
3396
- var routerPath = calcRouterPath;
3397
- var tokens = utils$1.StrUtil.tokenize(routerPath, "/:");
3398
- guiEvent.RouterPath = tokens[0];
3399
- guiEvent.RouterParams = new mscorelib.List();
3400
- for (var i = 1; i < tokens.length; i++) {
3401
- guiEvent.RouterParams.push(this.activatedRoute.snapshot.params[tokens[i]]);
3402
- }
3403
- }
3404
- this.containerTaskService.insertEvent(guiEvent);
3405
- };
3406
- RouterContainerMagicComponent.prototype.initializeComponent = function () {
3407
- var _this = this;
3408
- var subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
3409
- if (subformMagicService.currentRouteDefinition !== null) {
3410
- var comp = this.componentList.getComponent(subformMagicService.currentRouteDefinition.formName);
3411
- var componentFactory = this.componentFactoryResolver.resolveComponentFactory(comp);
3412
- this.componentRef = this.viewContainerRef.createComponent(componentFactory);
3413
- Object.assign(this.componentRef.instance, subformMagicService.currentRouteDefinition.parameters);
3414
- var myActiveRoute_1 = SubformMagicService.getRelativeRoute(this.activatedRoute);
3415
- var routeParams = utils$1.StrUtil.tokenize(myActiveRoute_1.snapshot.routeConfig.path, "/:");
3416
- subformMagicService.routesDict[myActiveRoute_1.snapshot.outlet] = routeParams[0];
3417
- this.parentMgSubformService = subformMagicService;
3418
- subformMagicService.currentRouteDefinition = null;
3419
- SubformMagicService.currentCallerMgSubformServiceRef = null;
3420
- var ignoreParamChange_1 = true;
3421
- myActiveRoute_1.paramMap.subscribe(function (params) {
3422
- if (!ignoreParamChange_1)
3423
- _this.insertRouteEvent(myActiveRoute_1);
3424
- ignoreParamChange_1 = false;
3425
- });
3426
- this.parentMgSubformService.refreshView();
3427
- this.routerCommandsMagicService.ExecuteNextCommand();
3428
- }
3429
- };
3430
- RouterContainerMagicComponent.prototype.ngOnDestroy = function () {
3431
- if (this.componentRef != null) {
3432
- this.componentRef.instance.task.close();
3433
- var currentActiveRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
3434
- this.parentMgSubformService.routesDict[currentActiveRoute.outlet] = "";
3435
- }
3436
- };
3437
- return RouterContainerMagicComponent;
3438
- }());
3439
- RouterContainerMagicComponent.ɵfac = function RouterContainerMagicComponent_Factory(t) { return new (t || RouterContainerMagicComponent)(i0.ɵɵdirectiveInject(i2.ActivatedRoute), i0.ɵɵdirectiveInject(EngineMagicService), i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(ComponentListMagicService), i0.ɵɵdirectiveInject(CommandsCollectorMagicService), i0.ɵɵdirectiveInject(RouterCommandsMagicService)); };
3440
- RouterContainerMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RouterContainerMagicComponent, selectors: [["magic-route-outlet"]], decls: 0, vars: 0, template: function RouterContainerMagicComponent_Template(rf, ctx) { }, encapsulation: 2 });
3441
- (function () {
3442
- i0.ɵsetClassMetadata(RouterContainerMagicComponent, [{
3443
- type: i0.Component,
3444
- args: [{
3445
- selector: 'magic-route-outlet',
3446
- template: "\n "
3447
- }]
3448
- }], function () { return [{ type: i2.ActivatedRoute }, { type: EngineMagicService }, { type: TaskMagicService }, { type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: ComponentListMagicService }, { type: CommandsCollectorMagicService }, { type: RouterCommandsMagicService }]; }, null);
3449
- })();
3450
-
3451
3533
  var Constants = /** @class */ (function () {
3452
3534
  function Constants() {
3453
3535
  }
@@ -3481,10 +3563,10 @@
3481
3563
  };
3482
3564
  return DateMagicPipe;
3483
3565
  }(i1.DatePipe));
3484
- DateMagicPipe.ɵfac = function DateMagicPipe_Factory(t) { return new (t || DateMagicPipe)(i0.ɵɵdirectiveInject(TaskMagicService)); };
3485
- DateMagicPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "magicDate", type: DateMagicPipe, pure: true });
3566
+ DateMagicPipe.ɵfac = function DateMagicPipe_Factory(t) { return new (t || DateMagicPipe)(i0__namespace.ɵɵdirectiveInject(TaskMagicService)); };
3567
+ DateMagicPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "magicDate", type: DateMagicPipe, pure: true });
3486
3568
  (function () {
3487
- i0.ɵsetClassMetadata(DateMagicPipe, [{
3569
+ i0__namespace.ɵsetClassMetadata(DateMagicPipe, [{
3488
3570
  type: i0.Pipe,
3489
3571
  args: [{
3490
3572
  name: 'magicDate'
@@ -3757,14 +3839,14 @@
3757
3839
  };
3758
3840
  return MgformatMagicDirective;
3759
3841
  }());
3760
- MgformatMagicDirective.ɵfac = function MgformatMagicDirective_Factory(t) { return new (t || MgformatMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective), i0.ɵɵdirectiveInject(TaskMagicService)); };
3761
- MgformatMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MgformatMagicDirective, selectors: [["", "mgFormat", ""]], hostBindings: function MgformatMagicDirective_HostBindings(rf, ctx) {
3842
+ MgformatMagicDirective.ɵfac = function MgformatMagicDirective_Factory(t) { return new (t || MgformatMagicDirective)(i0__namespace.ɵɵdirectiveInject(MagicDirective), i0__namespace.ɵɵdirectiveInject(TaskMagicService)); };
3843
+ MgformatMagicDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: MgformatMagicDirective, selectors: [["", "mgFormat", ""]], hostBindings: function MgformatMagicDirective_HostBindings(rf, ctx) {
3762
3844
  if (rf & 1) {
3763
- i0.ɵɵlistener("focus", function MgformatMagicDirective_focus_HostBindingHandler($event) { return ctx.onFocusEvent($event); })("change", function MgformatMagicDirective_change_HostBindingHandler($event) { return ctx.onChangeEvent($event); });
3845
+ i0__namespace.ɵɵlistener("focus", function MgformatMagicDirective_focus_HostBindingHandler($event) { return ctx.onFocusEvent($event); })("change", function MgformatMagicDirective_change_HostBindingHandler($event) { return ctx.onChangeEvent($event); });
3764
3846
  }
3765
3847
  } });
3766
3848
  (function () {
3767
- i0.ɵsetClassMetadata(MgformatMagicDirective, [{
3849
+ i0__namespace.ɵsetClassMetadata(MgformatMagicDirective, [{
3768
3850
  type: i0.Directive,
3769
3851
  args: [{
3770
3852
  selector: '[mgFormat]'
@@ -3816,10 +3898,10 @@
3816
3898
  };
3817
3899
  return TimeMagicPipe;
3818
3900
  }(i1.DatePipe));
3819
- TimeMagicPipe.ɵfac = function TimeMagicPipe_Factory(t) { return new (t || TimeMagicPipe)(i0.ɵɵdirectiveInject(TaskMagicService)); };
3820
- TimeMagicPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "magicTime", type: TimeMagicPipe, pure: true });
3901
+ TimeMagicPipe.ɵfac = function TimeMagicPipe_Factory(t) { return new (t || TimeMagicPipe)(i0__namespace.ɵɵdirectiveInject(TaskMagicService)); };
3902
+ TimeMagicPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "magicTime", type: TimeMagicPipe, pure: true });
3821
3903
  (function () {
3822
- i0.ɵsetClassMetadata(TimeMagicPipe, [{
3904
+ i0__namespace.ɵsetClassMetadata(TimeMagicPipe, [{
3823
3905
  type: i0.Pipe,
3824
3906
  args: [{
3825
3907
  name: 'magicTime'
@@ -3859,8 +3941,8 @@
3859
3941
  };
3860
3942
  return RangeValidatorMagicDirective;
3861
3943
  }());
3862
- RangeValidatorMagicDirective.ɵfac = function RangeValidatorMagicDirective_Factory(t) { return new (t || RangeValidatorMagicDirective)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
3863
- RangeValidatorMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: RangeValidatorMagicDirective, selectors: [["", "rangevalidator", ""]], features: [i0.ɵɵProvidersFeature([
3944
+ RangeValidatorMagicDirective.ɵfac = function RangeValidatorMagicDirective_Factory(t) { return new (t || RangeValidatorMagicDirective)(i0__namespace.ɵɵdirectiveInject(TaskMagicService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ViewContainerRef)); };
3945
+ RangeValidatorMagicDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: RangeValidatorMagicDirective, selectors: [["", "rangevalidator", ""]], features: [i0__namespace.ɵɵProvidersFeature([
3864
3946
  {
3865
3947
  provide: forms.NG_VALIDATORS,
3866
3948
  useExisting: RangeValidatorMagicDirective,
@@ -3868,7 +3950,7 @@
3868
3950
  }
3869
3951
  ])] });
3870
3952
  (function () {
3871
- i0.ɵsetClassMetadata(RangeValidatorMagicDirective, [{
3953
+ i0__namespace.ɵsetClassMetadata(RangeValidatorMagicDirective, [{
3872
3954
  type: i0.Directive,
3873
3955
  args: [{
3874
3956
  selector: '[rangevalidator] ',
@@ -3880,16 +3962,16 @@
3880
3962
  }
3881
3963
  ]
3882
3964
  }]
3883
- }], function () { return [{ type: TaskMagicService }, { type: i0.ViewContainerRef }]; }, null);
3965
+ }], function () { return [{ type: TaskMagicService }, { type: i0__namespace.ViewContainerRef }]; }, null);
3884
3966
  })();
3885
3967
 
3886
3968
  function SubformMagicComponent_ndc_dynamic_0_Template(rf, ctx) {
3887
3969
  if (rf & 1) {
3888
- i0.ɵɵelement(0, "ndc-dynamic", 1);
3970
+ i0__namespace.ɵɵelement(0, "ndc-dynamic", 1);
3889
3971
  }
3890
3972
  if (rf & 2) {
3891
- var ctx_r0 = i0.ɵɵnextContext();
3892
- i0.ɵɵproperty("ndcDynamicComponent", ctx_r0.Component)("ndcDynamicInputs", ctx_r0.Parameters);
3973
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
3974
+ i0__namespace.ɵɵproperty("ndcDynamicComponent", ctx_r0.Component)("ndcDynamicInputs", ctx_r0.Parameters);
3893
3975
  }
3894
3976
  }
3895
3977
  var SubformMagicComponent = /** @class */ (function () {
@@ -3921,57 +4003,57 @@
3921
4003
  });
3922
4004
  return SubformMagicComponent;
3923
4005
  }());
3924
- SubformMagicComponent.ɵfac = function SubformMagicComponent_Factory(t) { return new (t || SubformMagicComponent)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(SubformMagicService)); };
3925
- SubformMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SubformMagicComponent, selectors: [["magic-subform"]], inputs: { magic: "magic" }, decls: 1, vars: 1, consts: [[3, "ndcDynamicComponent", "ndcDynamicInputs", 4, "ngIf"], [3, "ndcDynamicComponent", "ndcDynamicInputs"]], template: function SubformMagicComponent_Template(rf, ctx) {
4006
+ SubformMagicComponent.ɵfac = function SubformMagicComponent_Factory(t) { return new (t || SubformMagicComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ViewContainerRef), i0__namespace.ɵɵdirectiveInject(SubformMagicService)); };
4007
+ SubformMagicComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SubformMagicComponent, selectors: [["magic-subform"]], inputs: { magic: "magic" }, decls: 1, vars: 1, consts: [[3, "ndcDynamicComponent", "ndcDynamicInputs", 4, "ngIf"], [3, "ndcDynamicComponent", "ndcDynamicInputs"]], template: function SubformMagicComponent_Template(rf, ctx) {
3926
4008
  if (rf & 1) {
3927
- i0.ɵɵtemplate(0, SubformMagicComponent_ndc_dynamic_0_Template, 1, 2, "ndc-dynamic", 0);
4009
+ i0__namespace.ɵɵtemplate(0, SubformMagicComponent_ndc_dynamic_0_Template, 1, 2, "ndc-dynamic", 0);
3928
4010
  }
3929
4011
  if (rf & 2) {
3930
- i0.ɵɵproperty("ngIf", ctx.Component);
4012
+ i0__namespace.ɵɵproperty("ngIf", ctx.Component);
3931
4013
  }
3932
- }, directives: [i1.NgIf, i3.DynamicComponent, i3.DynamicIoDirective], encapsulation: 2 });
4014
+ }, directives: [i1__namespace.NgIf, i3__namespace.DynamicComponent, i3__namespace.DynamicIoDirective], encapsulation: 2 });
3933
4015
  (function () {
3934
- i0.ɵsetClassMetadata(SubformMagicComponent, [{
4016
+ i0__namespace.ɵsetClassMetadata(SubformMagicComponent, [{
3935
4017
  type: i0.Component,
3936
4018
  args: [{
3937
4019
  selector: 'magic-subform',
3938
4020
  template: "\n <ndc-dynamic\n *ngIf=\"Component\" \n [ndcDynamicComponent]=\"Component\" \n [ndcDynamicInputs]=\"Parameters\">\n </ndc-dynamic>\n"
3939
4021
  }]
3940
- }], function () { return [{ type: i0.ViewContainerRef }, { type: SubformMagicService }]; }, { magic: [{
4022
+ }], function () { return [{ type: i0__namespace.ViewContainerRef }, { type: SubformMagicService }]; }, { magic: [{
3941
4023
  type: i0.Input,
3942
4024
  args: ['magic']
3943
4025
  }] });
3944
4026
  })();
3945
4027
 
3946
- var _c0$2 = ["customContent"];
4028
+ var _c0$1 = ["customContent"];
3947
4029
  function ErrorMagicComponent_div_0_span_4_Template(rf, ctx) {
3948
4030
  if (rf & 1) {
3949
- i0.ɵɵelementStart(0, "span");
3950
- i0.ɵɵtext(1);
3951
- i0.ɵɵelementEnd();
4031
+ i0__namespace.ɵɵelementStart(0, "span");
4032
+ i0__namespace.ɵɵtext(1);
4033
+ i0__namespace.ɵɵelementEnd();
3952
4034
  }
3953
4035
  if (rf & 2) {
3954
- var ctx_r2 = i0.ɵɵnextContext(2);
3955
- i0.ɵɵadvance(1);
3956
- i0.ɵɵtextInterpolate1(" ", ctx_r2.mgService.getErrMsg(ctx_r2.id, ctx_r2.rowId), " ");
4036
+ var ctx_r2 = i0__namespace.ɵɵnextContext(2);
4037
+ i0__namespace.ɵɵadvance(1);
4038
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.mgService.getErrMsg(ctx_r2.id, ctx_r2.rowId), " ");
3957
4039
  }
3958
4040
  }
3959
4041
  function ErrorMagicComponent_div_0_Template(rf, ctx) {
3960
4042
  if (rf & 1) {
3961
- i0.ɵɵelementStart(0, "div");
3962
- i0.ɵɵelementStart(1, "div", null, 1);
3963
- i0.ɵɵprojection(3);
3964
- i0.ɵɵelementEnd();
3965
- i0.ɵɵtemplate(4, ErrorMagicComponent_div_0_span_4_Template, 2, 1, "span", 0);
3966
- i0.ɵɵelementEnd();
4043
+ i0__namespace.ɵɵelementStart(0, "div");
4044
+ i0__namespace.ɵɵelementStart(1, "div", null, 1);
4045
+ i0__namespace.ɵɵprojection(3);
4046
+ i0__namespace.ɵɵelementEnd();
4047
+ i0__namespace.ɵɵtemplate(4, ErrorMagicComponent_div_0_span_4_Template, 2, 1, "span", 0);
4048
+ i0__namespace.ɵɵelementEnd();
3967
4049
  }
3968
4050
  if (rf & 2) {
3969
- var ctx_r0 = i0.ɵɵnextContext();
3970
- i0.ɵɵadvance(4);
3971
- i0.ɵɵproperty("ngIf", ctx_r0.defaultDisplay);
4051
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
4052
+ i0__namespace.ɵɵadvance(4);
4053
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.defaultDisplay);
3972
4054
  }
3973
4055
  }
3974
- var _c1$1 = ["*"];
4056
+ var _c1 = ["*"];
3975
4057
  var ErrorMagicComponent = /** @class */ (function () {
3976
4058
  function ErrorMagicComponent(_task, mgService, changeDetectorRef) {
3977
4059
  this._task = _task;
@@ -4048,32 +4130,32 @@
4048
4130
  };
4049
4131
  return ErrorMagicComponent;
4050
4132
  }());
4051
- ErrorMagicComponent.ɵfac = function ErrorMagicComponent_Factory(t) { return new (t || ErrorMagicComponent)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(AccessorMagicService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
4052
- ErrorMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ErrorMagicComponent, selectors: [["mgError"]], viewQuery: function ErrorMagicComponent_Query(rf, ctx) {
4133
+ ErrorMagicComponent.ɵfac = function ErrorMagicComponent_Factory(t) { return new (t || ErrorMagicComponent)(i0__namespace.ɵɵdirectiveInject(TaskMagicService), i0__namespace.ɵɵdirectiveInject(AccessorMagicService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
4134
+ ErrorMagicComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ErrorMagicComponent, selectors: [["mgError"]], viewQuery: function ErrorMagicComponent_Query(rf, ctx) {
4053
4135
  if (rf & 1) {
4054
- i0.ɵɵviewQuery(_c0$2, true);
4136
+ i0__namespace.ɵɵviewQuery(_c0$1, true);
4055
4137
  }
4056
4138
  if (rf & 2) {
4057
4139
  var _t;
4058
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.CustomContent = _t.first);
4140
+ i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.CustomContent = _t.first);
4059
4141
  }
4060
- }, inputs: { magic: "magic", rowId1: ["rowId", "rowId1"] }, ngContentSelectors: _c1$1, decls: 1, vars: 1, consts: [[4, "ngIf"], ["customContent", ""]], template: function ErrorMagicComponent_Template(rf, ctx) {
4142
+ }, inputs: { magic: "magic", rowId1: ["rowId", "rowId1"] }, ngContentSelectors: _c1, decls: 1, vars: 1, consts: [[4, "ngIf"], ["customContent", ""]], template: function ErrorMagicComponent_Template(rf, ctx) {
4061
4143
  if (rf & 1) {
4062
- i0.ɵɵprojectionDef();
4063
- i0.ɵɵtemplate(0, ErrorMagicComponent_div_0_Template, 5, 1, "div", 0);
4144
+ i0__namespace.ɵɵprojectionDef();
4145
+ i0__namespace.ɵɵtemplate(0, ErrorMagicComponent_div_0_Template, 5, 1, "div", 0);
4064
4146
  }
4065
4147
  if (rf & 2) {
4066
- i0.ɵɵproperty("ngIf", ctx.HasErrors(ctx.id));
4148
+ i0__namespace.ɵɵproperty("ngIf", ctx.HasErrors(ctx.id));
4067
4149
  }
4068
- }, directives: [i1.NgIf], encapsulation: 2 });
4150
+ }, directives: [i1__namespace.NgIf], encapsulation: 2 });
4069
4151
  (function () {
4070
- i0.ɵsetClassMetadata(ErrorMagicComponent, [{
4152
+ i0__namespace.ɵsetClassMetadata(ErrorMagicComponent, [{
4071
4153
  type: i0.Component,
4072
4154
  args: [{
4073
4155
  selector: 'mgError',
4074
4156
  template: "<div *ngIf=\"HasErrors(id)\">\n <div #customContent>\n <ng-content></ng-content>\n </div>\n <span *ngIf=\"defaultDisplay\">\n {{mgService.getErrMsg(id, rowId)}} \n </span>\n </div>\n"
4075
4157
  }]
4076
- }], function () { return [{ type: TaskMagicService }, { type: AccessorMagicService }, { type: i0.ChangeDetectorRef }]; }, { magic: [{
4158
+ }], function () { return [{ type: TaskMagicService }, { type: AccessorMagicService }, { type: i0__namespace.ChangeDetectorRef }]; }, { magic: [{
4077
4159
  type: i0.Input,
4078
4160
  args: ['magic']
4079
4161
  }], rowId1: [{
@@ -4094,14 +4176,14 @@
4094
4176
  };
4095
4177
  return CheckboxMagicDirective;
4096
4178
  }());
4097
- CheckboxMagicDirective.ɵfac = function CheckboxMagicDirective_Factory(t) { return new (t || CheckboxMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
4098
- CheckboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: CheckboxMagicDirective, selectors: [["input", "type", "checkbox", "magic", "", 3, "noFormControl", ""]], hostBindings: function CheckboxMagicDirective_HostBindings(rf, ctx) {
4179
+ CheckboxMagicDirective.ɵfac = function CheckboxMagicDirective_Factory(t) { return new (t || CheckboxMagicDirective)(i0__namespace.ɵɵdirectiveInject(MagicDirective)); };
4180
+ CheckboxMagicDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: CheckboxMagicDirective, selectors: [["input", "type", "checkbox", "magic", "", 3, "noFormControl", ""]], hostBindings: function CheckboxMagicDirective_HostBindings(rf, ctx) {
4099
4181
  if (rf & 1) {
4100
- i0.ɵɵlistener("change", function CheckboxMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
4182
+ i0__namespace.ɵɵlistener("change", function CheckboxMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
4101
4183
  }
4102
4184
  } });
4103
4185
  (function () {
4104
- i0.ɵsetClassMetadata(CheckboxMagicDirective, [{
4186
+ i0__namespace.ɵsetClassMetadata(CheckboxMagicDirective, [{
4105
4187
  type: i0.Directive,
4106
4188
  args: [{
4107
4189
  selector: "\n input[type=checkbox][magic]:not([noFormControl])\n",
@@ -4121,14 +4203,14 @@
4121
4203
  };
4122
4204
  return ComboboxMagicDirective;
4123
4205
  }());
4124
- ComboboxMagicDirective.ɵfac = function ComboboxMagicDirective_Factory(t) { return new (t || ComboboxMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
4125
- ComboboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: ComboboxMagicDirective, selectors: [["select", "magic", "", 3, "multiple", ""]], hostBindings: function ComboboxMagicDirective_HostBindings(rf, ctx) {
4206
+ ComboboxMagicDirective.ɵfac = function ComboboxMagicDirective_Factory(t) { return new (t || ComboboxMagicDirective)(i0__namespace.ɵɵdirectiveInject(MagicDirective)); };
4207
+ ComboboxMagicDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: ComboboxMagicDirective, selectors: [["select", "magic", "", 3, "multiple", ""]], hostBindings: function ComboboxMagicDirective_HostBindings(rf, ctx) {
4126
4208
  if (rf & 1) {
4127
- i0.ɵɵlistener("change", function ComboboxMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
4209
+ i0__namespace.ɵɵlistener("change", function ComboboxMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
4128
4210
  }
4129
4211
  } });
4130
4212
  (function () {
4131
- i0.ɵsetClassMetadata(ComboboxMagicDirective, [{
4213
+ i0__namespace.ɵsetClassMetadata(ComboboxMagicDirective, [{
4132
4214
  type: i0.Directive,
4133
4215
  args: [{
4134
4216
  selector: "select[magic]:not([multiple])",
@@ -4148,39 +4230,39 @@
4148
4230
  return ExitMagicService;
4149
4231
  }());
4150
4232
  ExitMagicService.ɵfac = function ExitMagicService_Factory(t) { return new (t || ExitMagicService)(); };
4151
- ExitMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: ExitMagicService, factory: ExitMagicService.ɵfac });
4233
+ ExitMagicService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ExitMagicService, factory: ExitMagicService.ɵfac });
4152
4234
  (function () {
4153
- i0.ɵsetClassMetadata(ExitMagicService, [{
4235
+ i0__namespace.ɵsetClassMetadata(ExitMagicService, [{
4154
4236
  type: i0.Injectable
4155
4237
  }], null, null);
4156
4238
  })();
4157
4239
 
4158
- var _c0$3 = ["magicRoot"];
4240
+ var _c0 = ["magicRoot"];
4159
4241
  function MagicShellComponent_ndc_dynamic_2_Template(rf, ctx) {
4160
4242
  if (rf & 1) {
4161
- i0.ɵɵelement(0, "ndc-dynamic", 6);
4243
+ i0__namespace.ɵɵelement(0, "ndc-dynamic", 6);
4162
4244
  }
4163
4245
  if (rf & 2) {
4164
- var ctx_r1 = i0.ɵɵnextContext();
4165
- i0.ɵɵproperty("ndcDynamicComponent", ctx_r1.RootComponent)("ndcDynamicInputs", ctx_r1.RootComponentParameters);
4246
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
4247
+ i0__namespace.ɵɵproperty("ndcDynamicComponent", ctx_r1.RootComponent)("ndcDynamicInputs", ctx_r1.RootComponentParameters);
4166
4248
  }
4167
4249
  }
4168
4250
  function MagicShellComponent_div_5_Template(rf, ctx) {
4169
4251
  if (rf & 1) {
4170
- i0.ɵɵelementStart(0, "div", 7);
4171
- i0.ɵɵelementContainer(1, 8);
4172
- i0.ɵɵelementEnd();
4252
+ i0__namespace.ɵɵelementStart(0, "div", 7);
4253
+ i0__namespace.ɵɵelementContainer(1, 8);
4254
+ i0__namespace.ɵɵelementEnd();
4173
4255
  }
4174
4256
  if (rf & 2) {
4175
- var ctx_r3 = i0.ɵɵnextContext();
4176
- var _r4 = i0.ɵɵreference(7);
4177
- i0.ɵɵadvance(1);
4178
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.SpinnerTemplate ? ctx_r3.SpinnerTemplate : _r4);
4257
+ var ctx_r3 = i0__namespace.ɵɵnextContext();
4258
+ var _r4 = i0__namespace.ɵɵreference(7);
4259
+ i0__namespace.ɵɵadvance(1);
4260
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", ctx_r3.SpinnerTemplate ? ctx_r3.SpinnerTemplate : _r4);
4179
4261
  }
4180
4262
  }
4181
4263
  function MagicShellComponent_ng_template_6_Template(rf, ctx) {
4182
4264
  if (rf & 1) {
4183
- i0.ɵɵelement(0, "div", 9);
4265
+ i0__namespace.ɵɵelement(0, "div", 9);
4184
4266
  }
4185
4267
  }
4186
4268
  var MagicShellComponent = /** @class */ (function () {
@@ -4288,37 +4370,37 @@
4288
4370
  };
4289
4371
  return MagicShellComponent;
4290
4372
  }());
4291
- MagicShellComponent.ɵfac = function MagicShellComponent_Factory(t) { return new (t || MagicShellComponent)(i0.ɵɵdirectiveInject(EngineMagicService), i0.ɵɵdirectiveInject(ComponentListMagicService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$1.Title), i0.ɵɵdirectiveInject(OverlayWindowService), i0.ɵɵdirectiveInject(i5.HttpClient), i0.ɵɵdirectiveInject(CommandsCollectorMagicService), i0.ɵɵdirectiveInject(ExitMagicService, 8)); };
4292
- MagicShellComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicShellComponent, selectors: [["magic-root"]], viewQuery: function MagicShellComponent_Query(rf, ctx) {
4373
+ MagicShellComponent.ɵfac = function MagicShellComponent_Factory(t) { return new (t || MagicShellComponent)(i0__namespace.ɵɵdirectiveInject(EngineMagicService), i0__namespace.ɵɵdirectiveInject(ComponentListMagicService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Title), i0__namespace.ɵɵdirectiveInject(OverlayWindowService), i0__namespace.ɵɵdirectiveInject(i5__namespace.HttpClient), i0__namespace.ɵɵdirectiveInject(CommandsCollectorMagicService), i0__namespace.ɵɵdirectiveInject(ExitMagicService, 8)); };
4374
+ MagicShellComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: MagicShellComponent, selectors: [["magic-root"]], viewQuery: function MagicShellComponent_Query(rf, ctx) {
4293
4375
  if (rf & 1) {
4294
- i0.ɵɵstaticViewQuery(_c0$3, true);
4376
+ i0__namespace.ɵɵstaticViewQuery(_c0, true);
4295
4377
  }
4296
4378
  if (rf & 2) {
4297
4379
  var _t;
4298
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.rootMagicElementRef = _t.first);
4380
+ i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.rootMagicElementRef = _t.first);
4299
4381
  }
4300
4382
  }, hostBindings: function MagicShellComponent_HostBindings(rf, ctx) {
4301
4383
  if (rf & 1) {
4302
- i0.ɵɵlistener("beforeunload", function MagicShellComponent_beforeunload_HostBindingHandler($event) { return ctx.onBeforeUnload($event); }, false, i0.ɵɵresolveWindow)("unload", function MagicShellComponent_unload_HostBindingHandler($event) { return ctx.onUnload($event); }, false, i0.ɵɵresolveWindow);
4384
+ i0__namespace.ɵɵlistener("beforeunload", function MagicShellComponent_beforeunload_HostBindingHandler($event) { return ctx.onBeforeUnload($event); }, false, i0__namespace.ɵɵresolveWindow)("unload", function MagicShellComponent_unload_HostBindingHandler($event) { return ctx.onUnload($event); }, false, i0__namespace.ɵɵresolveWindow);
4303
4385
  }
4304
- }, inputs: { SpinnerTemplate: "SpinnerTemplate" }, features: [i0.ɵɵProvidersFeature([])], decls: 8, vars: 2, consts: [["magicRoot", ""], [3, "ndcDynamicComponent", "ndcDynamicInputs", 4, "ngIf"], ["magicViewContainerRef", ""], ["overlayWindowsContainer", ""], ["class", "spinner-background", 4, "ngIf"], ["defaultSpinner", ""], [3, "ndcDynamicComponent", "ndcDynamicInputs"], [1, "spinner-background"], [3, "ngTemplateOutlet"], [1, "mgSpinnerClass"]], template: function MagicShellComponent_Template(rf, ctx) {
4386
+ }, inputs: { SpinnerTemplate: "SpinnerTemplate" }, features: [i0__namespace.ɵɵProvidersFeature([])], decls: 8, vars: 2, consts: [["magicRoot", ""], [3, "ndcDynamicComponent", "ndcDynamicInputs", 4, "ngIf"], ["magicViewContainerRef", ""], ["overlayWindowsContainer", ""], ["class", "spinner-background", 4, "ngIf"], ["defaultSpinner", ""], [3, "ndcDynamicComponent", "ndcDynamicInputs"], [1, "spinner-background"], [3, "ngTemplateOutlet"], [1, "mgSpinnerClass"]], template: function MagicShellComponent_Template(rf, ctx) {
4305
4387
  if (rf & 1) {
4306
- i0.ɵɵelementStart(0, "div", null, 0);
4307
- i0.ɵɵtemplate(2, MagicShellComponent_ndc_dynamic_2_Template, 1, 2, "ndc-dynamic", 1);
4308
- i0.ɵɵelement(3, "div", 2, 3);
4309
- i0.ɵɵelementEnd();
4310
- i0.ɵɵtemplate(5, MagicShellComponent_div_5_Template, 2, 1, "div", 4);
4311
- i0.ɵɵtemplate(6, MagicShellComponent_ng_template_6_Template, 1, 0, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
4388
+ i0__namespace.ɵɵelementStart(0, "div", null, 0);
4389
+ i0__namespace.ɵɵtemplate(2, MagicShellComponent_ndc_dynamic_2_Template, 1, 2, "ndc-dynamic", 1);
4390
+ i0__namespace.ɵɵelement(3, "div", 2, 3);
4391
+ i0__namespace.ɵɵelementEnd();
4392
+ i0__namespace.ɵɵtemplate(5, MagicShellComponent_div_5_Template, 2, 1, "div", 4);
4393
+ i0__namespace.ɵɵtemplate(6, MagicShellComponent_ng_template_6_Template, 1, 0, "ng-template", null, 5, i0__namespace.ɵɵtemplateRefExtractor);
4312
4394
  }
4313
4395
  if (rf & 2) {
4314
- i0.ɵɵadvance(2);
4315
- i0.ɵɵproperty("ngIf", ctx.RootComponent !== null);
4316
- i0.ɵɵadvance(3);
4317
- i0.ɵɵproperty("ngIf", ctx.showSpinner);
4396
+ i0__namespace.ɵɵadvance(2);
4397
+ i0__namespace.ɵɵproperty("ngIf", ctx.RootComponent !== null);
4398
+ i0__namespace.ɵɵadvance(3);
4399
+ i0__namespace.ɵɵproperty("ngIf", ctx.showSpinner);
4318
4400
  }
4319
- }, directives: [i1.NgIf, MagicViewContainerRef, i3.DynamicComponent, i3.DynamicIoDirective, i1.NgTemplateOutlet], styles: [".mgSpinnerClass[_ngcontent-%COMP%] {\n border: 10px solid #cccccc; \n border-top: 10px solid black; \n border-radius: 50%;\n position: fixed;\n margin: auto;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 100px;\n height: 100px;\n animation: spin 2s linear infinite;\n }\n .spinner-background[_ngcontent-%COMP%] {\n \n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n left: 0;\n opacity: 0.5;\n }\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }"] });
4401
+ }, directives: [i1__namespace.NgIf, MagicViewContainerRef, i3__namespace.DynamicComponent, i3__namespace.DynamicIoDirective, i1__namespace.NgTemplateOutlet], styles: [".mgSpinnerClass[_ngcontent-%COMP%] {\n border: 10px solid #cccccc; \n border-top: 10px solid black; \n border-radius: 50%;\n position: fixed;\n margin: auto;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 100px;\n height: 100px;\n animation: spin 2s linear infinite;\n }\n .spinner-background[_ngcontent-%COMP%] {\n \n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n left: 0;\n opacity: 0.5;\n }\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }"] });
4320
4402
  (function () {
4321
- i0.ɵsetClassMetadata(MagicShellComponent, [{
4403
+ i0__namespace.ɵsetClassMetadata(MagicShellComponent, [{
4322
4404
  type: i0.Component,
4323
4405
  args: [{
4324
4406
  selector: 'magic-root',
@@ -4327,7 +4409,7 @@
4327
4409
  styles: ["\n .mgSpinnerClass {\n border: 10px solid #cccccc; /* Light grey */\n border-top: 10px solid black; /* Blue */\n border-radius: 50%;\n position: fixed;\n margin: auto;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 100px;\n height: 100px;\n animation: spin 2s linear infinite;\n }\n .spinner-background {\n /* background fixed across whole screen */\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n left: 0;\n opacity: 0.5;\n }\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n "]
4328
4410
  }]
4329
4411
  }], function () {
4330
- return [{ type: EngineMagicService }, { type: ComponentListMagicService }, { type: i0.ChangeDetectorRef }, { type: i1$1.Title }, { type: OverlayWindowService }, { type: i5.HttpClient }, { type: CommandsCollectorMagicService }, { type: ExitMagicService, decorators: [{
4412
+ return [{ type: EngineMagicService }, { type: ComponentListMagicService }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$1.Title }, { type: OverlayWindowService }, { type: i5__namespace.HttpClient }, { type: CommandsCollectorMagicService }, { type: ExitMagicService, decorators: [{
4331
4413
  type: i0.Optional
4332
4414
  }] }];
4333
4415
  }, { rootMagicElementRef: [{
@@ -4357,14 +4439,14 @@
4357
4439
  return MagicCheckboxControlValueAccessor;
4358
4440
  }(forms.CheckboxControlValueAccessor));
4359
4441
  MagicCheckboxControlValueAccessor.ɵfac = function MagicCheckboxControlValueAccessor_Factory(t) { return ɵMagicCheckboxControlValueAccessor_BaseFactory(t || MagicCheckboxControlValueAccessor); };
4360
- MagicCheckboxControlValueAccessor.ɵdir = i0.ɵɵdefineDirective({ type: MagicCheckboxControlValueAccessor, selectors: [["input", "type", "checkbox", "magic", "", 3, "formControlName", "", 3, "no-form-control", ""], ["input", "type", "checkbox", "magic", "", 3, "formControl", ""], ["input", "type", "checkbox", "magic", "", 3, "ngModel", ""]], hostBindings: function MagicCheckboxControlValueAccessor_HostBindings(rf, ctx) {
4442
+ MagicCheckboxControlValueAccessor.ɵdir = i0__namespace.ɵɵdefineDirective({ type: MagicCheckboxControlValueAccessor, selectors: [["input", "type", "checkbox", "magic", "", 3, "formControlName", "", 3, "no-form-control", ""], ["input", "type", "checkbox", "magic", "", 3, "formControl", ""], ["input", "type", "checkbox", "magic", "", 3, "ngModel", ""]], hostBindings: function MagicCheckboxControlValueAccessor_HostBindings(rf, ctx) {
4361
4443
  if (rf & 1) {
4362
- i0.ɵɵlistener("change", function MagicCheckboxControlValueAccessor_change_HostBindingHandler($event) { return ctx.onChange($event.target.checked); })("blur", function MagicCheckboxControlValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
4444
+ i0__namespace.ɵɵlistener("change", function MagicCheckboxControlValueAccessor_change_HostBindingHandler($event) { return ctx.onChange($event.target.checked); })("blur", function MagicCheckboxControlValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
4363
4445
  }
4364
- }, features: [i0.ɵɵProvidersFeature([CHECKBOX_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature] });
4365
- var ɵMagicCheckboxControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(MagicCheckboxControlValueAccessor);
4446
+ }, features: [i0__namespace.ɵɵProvidersFeature([CHECKBOX_VALUE_ACCESSOR]), i0__namespace.ɵɵInheritDefinitionFeature] });
4447
+ var ɵMagicCheckboxControlValueAccessor_BaseFactory = i0__namespace.ɵɵgetInheritedFactory(MagicCheckboxControlValueAccessor);
4366
4448
  (function () {
4367
- i0.ɵsetClassMetadata(MagicCheckboxControlValueAccessor, [{
4449
+ i0__namespace.ɵsetClassMetadata(MagicCheckboxControlValueAccessor, [{
4368
4450
  type: i0.Directive,
4369
4451
  args: [{
4370
4452
  selector: "\n input[type=checkbox][magic]:not([formControlName]):not([no-form-control]),\n input[type=checkbox][magic]:not([formControl]),\n input[type=checkbox][magic]:not([ngModel])\n ",
@@ -4387,14 +4469,14 @@
4387
4469
  return MagicDefaultValueAccessor;
4388
4470
  }(forms.DefaultValueAccessor));
4389
4471
  MagicDefaultValueAccessor.ɵfac = function MagicDefaultValueAccessor_Factory(t) { return ɵMagicDefaultValueAccessor_BaseFactory(t || MagicDefaultValueAccessor); };
4390
- MagicDefaultValueAccessor.ɵdir = i0.ɵɵdefineDirective({ type: MagicDefaultValueAccessor, selectors: [["input", "magic", "", 3, "type", "checkbox", 3, "formControlName", "", 3, "no-form-control", ""], ["textarea", "magic", "", 3, "formControlName", "", 3, "noFormControl", "", 3, "no-form-control", ""]], hostBindings: function MagicDefaultValueAccessor_HostBindings(rf, ctx) {
4472
+ MagicDefaultValueAccessor.ɵdir = i0__namespace.ɵɵdefineDirective({ type: MagicDefaultValueAccessor, selectors: [["input", "magic", "", 3, "type", "checkbox", 3, "formControlName", "", 3, "no-form-control", ""], ["textarea", "magic", "", 3, "formControlName", "", 3, "noFormControl", "", 3, "no-form-control", ""]], hostBindings: function MagicDefaultValueAccessor_HostBindings(rf, ctx) {
4391
4473
  if (rf & 1) {
4392
- i0.ɵɵlistener("input", function MagicDefaultValueAccessor_input_HostBindingHandler($event) { return ctx._handleInput($event.target.value); })("blur", function MagicDefaultValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); })("compositionstart", function MagicDefaultValueAccessor_compositionstart_HostBindingHandler() { return ctx._compositionStart(); })("compositionend", function MagicDefaultValueAccessor_compositionend_HostBindingHandler($event) { return ctx._compositionEnd($event.target.value); });
4474
+ i0__namespace.ɵɵlistener("input", function MagicDefaultValueAccessor_input_HostBindingHandler($event) { return ctx._handleInput($event.target.value); })("blur", function MagicDefaultValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); })("compositionstart", function MagicDefaultValueAccessor_compositionstart_HostBindingHandler() { return ctx._compositionStart(); })("compositionend", function MagicDefaultValueAccessor_compositionend_HostBindingHandler($event) { return ctx._compositionEnd($event.target.value); });
4393
4475
  }
4394
- }, exportAs: ["magic"], features: [i0.ɵɵProvidersFeature([MAGIC_DEFAULT_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature] });
4395
- var ɵMagicDefaultValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(MagicDefaultValueAccessor);
4476
+ }, exportAs: ["magic"], features: [i0__namespace.ɵɵProvidersFeature([MAGIC_DEFAULT_VALUE_ACCESSOR]), i0__namespace.ɵɵInheritDefinitionFeature] });
4477
+ var ɵMagicDefaultValueAccessor_BaseFactory = i0__namespace.ɵɵgetInheritedFactory(MagicDefaultValueAccessor);
4396
4478
  (function () {
4397
- i0.ɵsetClassMetadata(MagicDefaultValueAccessor, [{
4479
+ i0__namespace.ɵsetClassMetadata(MagicDefaultValueAccessor, [{
4398
4480
  type: i0.Directive,
4399
4481
  args: [{
4400
4482
  selector: "\n input[magic]:not([type=checkbox]):not([formControlName]):not([no-form-control]),\n textarea[magic]:not([formControlName]):not([noFormControl]):not([no-form-control])\n ",
@@ -4419,14 +4501,14 @@
4419
4501
  };
4420
4502
  return CheckboxNoFormControlMagicDirective;
4421
4503
  }());
4422
- CheckboxNoFormControlMagicDirective.ɵfac = function CheckboxNoFormControlMagicDirective_Factory(t) { return new (t || CheckboxNoFormControlMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
4423
- CheckboxNoFormControlMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: CheckboxNoFormControlMagicDirective, selectors: [["input", "type", "checkbox", "magic", "", "noFormControl", ""]], hostBindings: function CheckboxNoFormControlMagicDirective_HostBindings(rf, ctx) {
4504
+ CheckboxNoFormControlMagicDirective.ɵfac = function CheckboxNoFormControlMagicDirective_Factory(t) { return new (t || CheckboxNoFormControlMagicDirective)(i0__namespace.ɵɵdirectiveInject(MagicDirective)); };
4505
+ CheckboxNoFormControlMagicDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: CheckboxNoFormControlMagicDirective, selectors: [["input", "type", "checkbox", "magic", "", "noFormControl", ""]], hostBindings: function CheckboxNoFormControlMagicDirective_HostBindings(rf, ctx) {
4424
4506
  if (rf & 1) {
4425
- i0.ɵɵlistener("change", function CheckboxNoFormControlMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
4507
+ i0__namespace.ɵɵlistener("change", function CheckboxNoFormControlMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
4426
4508
  }
4427
4509
  } });
4428
4510
  (function () {
4429
- i0.ɵsetClassMetadata(CheckboxNoFormControlMagicDirective, [{
4511
+ i0__namespace.ɵsetClassMetadata(CheckboxNoFormControlMagicDirective, [{
4430
4512
  type: i0.Directive,
4431
4513
  args: [{
4432
4514
  selector: "\n input[type=checkbox][magic]:([noFormControl]) \n ",
@@ -4446,14 +4528,14 @@
4446
4528
  };
4447
4529
  return InputNoFormControlMagicDirective;
4448
4530
  }());
4449
- InputNoFormControlMagicDirective.ɵfac = function InputNoFormControlMagicDirective_Factory(t) { return new (t || InputNoFormControlMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
4450
- InputNoFormControlMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: InputNoFormControlMagicDirective, selectors: [["input", "magic", "", "noFormControl", "", 3, "type", "checkbox"], ["textarea", "magic", "", "noFormControl", "", 3, "type", "checkbox"]], hostBindings: function InputNoFormControlMagicDirective_HostBindings(rf, ctx) {
4531
+ InputNoFormControlMagicDirective.ɵfac = function InputNoFormControlMagicDirective_Factory(t) { return new (t || InputNoFormControlMagicDirective)(i0__namespace.ɵɵdirectiveInject(MagicDirective)); };
4532
+ InputNoFormControlMagicDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: InputNoFormControlMagicDirective, selectors: [["input", "magic", "", "noFormControl", "", 3, "type", "checkbox"], ["textarea", "magic", "", "noFormControl", "", 3, "type", "checkbox"]], hostBindings: function InputNoFormControlMagicDirective_HostBindings(rf, ctx) {
4451
4533
  if (rf & 1) {
4452
- i0.ɵɵlistener("change", function InputNoFormControlMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
4534
+ i0__namespace.ɵɵlistener("change", function InputNoFormControlMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
4453
4535
  }
4454
4536
  } });
4455
4537
  (function () {
4456
- i0.ɵsetClassMetadata(InputNoFormControlMagicDirective, [{
4538
+ i0__namespace.ɵsetClassMetadata(InputNoFormControlMagicDirective, [{
4457
4539
  type: i0.Directive,
4458
4540
  args: [{
4459
4541
  selector: "input[magic]:([noFormControl]):not([type=checkbox]),\n textarea[magic]:([noFormControl]):not([type=checkbox])"
@@ -4496,20 +4578,20 @@
4496
4578
  };
4497
4579
  return DateValueAccessor;
4498
4580
  }());
4499
- DateValueAccessor.ɵfac = function DateValueAccessor_Factory(t) { return new (t || DateValueAccessor)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
4500
- DateValueAccessor.ɵdir = i0.ɵɵdefineDirective({ type: DateValueAccessor, selectors: [["", "dateInput", ""]], hostBindings: function DateValueAccessor_HostBindings(rf, ctx) {
4581
+ DateValueAccessor.ɵfac = function DateValueAccessor_Factory(t) { return new (t || DateValueAccessor)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Renderer2), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); };
4582
+ DateValueAccessor.ɵdir = i0__namespace.ɵɵdefineDirective({ type: DateValueAccessor, selectors: [["", "dateInput", ""]], hostBindings: function DateValueAccessor_HostBindings(rf, ctx) {
4501
4583
  if (rf & 1) {
4502
- i0.ɵɵlistener("input", function DateValueAccessor_input_HostBindingHandler($event) { return ctx.onChange($event.target.valueAsDate); })("blur", function DateValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
4584
+ i0__namespace.ɵɵlistener("input", function DateValueAccessor_input_HostBindingHandler($event) { return ctx.onChange($event.target.valueAsDate); })("blur", function DateValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
4503
4585
  }
4504
- }, features: [i0.ɵɵProvidersFeature([DATE_VALUE_ACCESSOR])] });
4586
+ }, features: [i0__namespace.ɵɵProvidersFeature([DATE_VALUE_ACCESSOR])] });
4505
4587
  (function () {
4506
- i0.ɵsetClassMetadata(DateValueAccessor, [{
4588
+ i0__namespace.ɵsetClassMetadata(DateValueAccessor, [{
4507
4589
  type: i0.Directive,
4508
4590
  args: [{
4509
4591
  selector: "[dateInput]",
4510
4592
  providers: [DATE_VALUE_ACCESSOR]
4511
4593
  }]
4512
- }], function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { onChange: [{
4594
+ }], function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ElementRef }]; }, { onChange: [{
4513
4595
  type: i0.HostListener,
4514
4596
  args: ["input", ["$event.target.valueAsDate"]]
4515
4597
  }], onTouched: [{
@@ -4560,15 +4642,15 @@
4560
4642
  };
4561
4643
  return NonMagicControlDirective;
4562
4644
  }());
4563
- NonMagicControlDirective.ɵfac = function NonMagicControlDirective_Factory(t) { return new (t || NonMagicControlDirective)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
4564
- NonMagicControlDirective.ɵdir = i0.ɵɵdefineDirective({ type: NonMagicControlDirective, selectors: [["", "NonMagicControl", ""]], inputs: { magic: ["NonMagicControl", "magic"] } });
4645
+ NonMagicControlDirective.ɵfac = function NonMagicControlDirective_Factory(t) { return new (t || NonMagicControlDirective)(i0__namespace.ɵɵdirectiveInject(TaskMagicService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i0__namespace.Renderer2), i0__namespace.ɵɵdirectiveInject(i0__namespace.ViewContainerRef)); };
4646
+ NonMagicControlDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: NonMagicControlDirective, selectors: [["", "NonMagicControl", ""]], inputs: { magic: ["NonMagicControl", "magic"] } });
4565
4647
  (function () {
4566
- i0.ɵsetClassMetadata(NonMagicControlDirective, [{
4648
+ i0__namespace.ɵsetClassMetadata(NonMagicControlDirective, [{
4567
4649
  type: i0.Directive,
4568
4650
  args: [{
4569
4651
  selector: '[NonMagicControl]'
4570
4652
  }]
4571
- }], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }]; }, { magic: [{
4653
+ }], function () { return [{ type: TaskMagicService }, { type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }, { type: i0__namespace.ViewContainerRef }]; }, { magic: [{
4572
4654
  type: i0.Input,
4573
4655
  args: ['NonMagicControl']
4574
4656
  }] });
@@ -4621,8 +4703,8 @@
4621
4703
  };
4622
4704
  return MagicModule;
4623
4705
  }());
4624
- MagicModule.ɵmod = i0.ɵɵdefineNgModule({ type: MagicModule });
4625
- MagicModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MagicModule_Factory(t) { return new (t || MagicModule)(); }, providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider], imports: [[
4706
+ MagicModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: MagicModule });
4707
+ MagicModule.ɵinj = i0__namespace.ɵɵdefineInjector({ factory: function MagicModule_Factory(t) { return new (t || MagicModule)(); }, providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider], imports: [[
4626
4708
  i1.CommonModule,
4627
4709
  forms.FormsModule,
4628
4710
  forms.ReactiveFormsModule,
@@ -4631,7 +4713,7 @@
4631
4713
  i5.HttpClientModule
4632
4714
  ]] });
4633
4715
  (function () {
4634
- (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MagicModule, { declarations: [MagicDirective,
4716
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(MagicModule, { declarations: [MagicDirective,
4635
4717
  CheckboxMagicDirective,
4636
4718
  CheckboxNoFormControlMagicDirective,
4637
4719
  InputNoFormControlMagicDirective,
@@ -4693,7 +4775,7 @@
4693
4775
  MagicViewContainerRef] });
4694
4776
  })();
4695
4777
  (function () {
4696
- i0.ɵsetClassMetadata(MagicModule, [{
4778
+ i0__namespace.ɵsetClassMetadata(MagicModule, [{
4697
4779
  type: i0.NgModule,
4698
4780
  args: [{
4699
4781
  declarations: __spread(decs),
@@ -4806,12 +4888,12 @@
4806
4888
  };
4807
4889
  return MgDateAdapter;
4808
4890
  }(core.NativeDateAdapter));
4809
- MgDateAdapter.ɵfac = function MgDateAdapter_Factory(t) { return new (t || MgDateAdapter)(i0.ɵɵinject(i1$2.Platform), i0.ɵɵinject(TaskMagicService)); };
4810
- MgDateAdapter.ɵprov = i0.ɵɵdefineInjectable({ token: MgDateAdapter, factory: MgDateAdapter.ɵfac });
4891
+ MgDateAdapter.ɵfac = function MgDateAdapter_Factory(t) { return new (t || MgDateAdapter)(i0__namespace.ɵɵinject(i1__namespace$2.Platform), i0__namespace.ɵɵinject(TaskMagicService)); };
4892
+ MgDateAdapter.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: MgDateAdapter, factory: MgDateAdapter.ɵfac });
4811
4893
  (function () {
4812
- i0.ɵsetClassMetadata(MgDateAdapter, [{
4894
+ i0__namespace.ɵsetClassMetadata(MgDateAdapter, [{
4813
4895
  type: i0.Injectable
4814
- }], function () { return [{ type: i1$2.Platform }, { type: TaskMagicService }]; }, null);
4896
+ }], function () { return [{ type: i1__namespace$2.Platform }, { type: TaskMagicService }]; }, null);
4815
4897
  })();
4816
4898
 
4817
4899
  var matDateProviders = [
@@ -4969,5 +5051,5 @@
4969
5051
 
4970
5052
  Object.defineProperty(exports, '__esModule', { value: true });
4971
5053
 
4972
- })));
5054
+ }));
4973
5055
  //# sourceMappingURL=magic-xpa-angular.umd.js.map