@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,21 +1,26 @@
1
1
  import { isNullOrUndefined, isUndefined } from 'util';
2
- import { ɵɵdefineInjectable, ɵsetClassMetadata, Injectable, Input, Output, ɵɵdirectiveInject, ViewContainerRef, ComponentFactoryResolver, ɵɵdefineDirective, Directive, ɵɵgetCurrentView, ɵɵelementStart, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵtext, ɵɵelementEnd, ɵɵadvance, ɵɵtextInterpolate1, EventEmitter, Injector, ɵɵdefineComponent, ɵɵviewQuery, ɵɵqueryRefresh, ɵɵloadQuery, ɵɵInheritDefinitionFeature, ɵɵtemplate, ɵɵelement, ɵɵproperty, Component, ViewChild, ElementRef, NgModuleFactoryLoader, ChangeDetectorRef, ɵɵstaticViewQuery, ɵɵgetInheritedFactory, ɵɵinject, ɵɵProvidersFeature, HostListener, Renderer2, Optional, ɵɵdefinePipe, Pipe, ɵɵprojection, ɵɵprojectionDef, ɵɵelementContainer, ɵɵreference, ɵɵresolveWindow, ɵɵtemplateRefExtractor, forwardRef, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
3
- import { NgIf, NgStyle, DatePipe, NgTemplateOutlet, CommonModule, formatDate } from '@angular/common';
4
- import { ActivatedRoute, Router, RouterModule } from '@angular/router';
2
+ import * as i0 from '@angular/core';
3
+ import { Injectable, Component, Input, Output, Directive, EventEmitter, ViewChild, HostListener, Optional, Pipe, forwardRef, NgModule } from '@angular/core';
4
+ import * as i1 from '@angular/common';
5
+ import { DatePipe, CommonModule, formatDate } from '@angular/common';
6
+ import * as i2 from '@angular/router';
7
+ import { RouterModule } from '@angular/router';
5
8
  import { FormGroup, FormControl, Validators, NG_VALIDATORS, NG_VALUE_ACCESSOR, CheckboxControlValueAccessor, DefaultValueAccessor, FormsModule, ReactiveFormsModule } from '@angular/forms';
6
- import { DynamicComponent, DynamicIoDirective, DynamicModule } from 'ng-dynamic-component';
9
+ import * as i3 from 'ng-dynamic-component';
10
+ import { DynamicModule } from 'ng-dynamic-component';
7
11
  import { __awaiter, __decorate, __metadata } from 'tslib';
8
12
  import { Subject } from 'rxjs';
9
13
  import { MagicBridge, getGuiEventObj, CookieService } from '@magic-xpa/engine';
10
14
  import { InteractiveCommandType, OverlayType, Styles, HtmlProperties, GuiConstants, CommandType, PIC, GuiEnvironment, Modifiers } from '@magic-xpa/gui';
11
- import { MagicProperties, StorageAttribute, Logger, BindingLevel, StorageAttributeType, StrUtil, PICInterface } from '@magic-xpa/utils';
15
+ import { MagicProperties, Logger, StrUtil, StorageAttribute, BindingLevel, StorageAttributeType, PICInterface } from '@magic-xpa/utils';
12
16
  import { filter, map, debounceTime } from 'rxjs/operators';
13
- import { NString, StringBuilder, List, RefParam } from '@magic-xpa/mscorelib';
14
- import { Title } from '@angular/platform-browser';
17
+ import { NString, List, StringBuilder, RefParam } from '@magic-xpa/mscorelib';
18
+ import * as i1$1 from '@angular/platform-browser';
15
19
  import { fromEvent } from 'rxjs/internal/observable/fromEvent';
16
- import { HttpClient, HttpClientModule } from '@angular/common/http';
20
+ import * as i5 from '@angular/common/http';
21
+ import { HttpClientModule } from '@angular/common/http';
17
22
  import { NativeDateAdapter, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
18
- import { Platform } from '@angular/cdk/platform';
23
+ import * as i1$2 from '@angular/cdk/platform';
19
24
 
20
25
  class ControlMetadata {
21
26
  constructor() {
@@ -268,8 +273,8 @@ class EngineMagicService {
268
273
  }
269
274
  }
270
275
  EngineMagicService.ɵfac = function EngineMagicService_Factory(t) { return new (t || EngineMagicService)(); };
271
- EngineMagicService.ɵprov = ɵɵdefineInjectable({ token: EngineMagicService, factory: EngineMagicService.ɵfac });
272
- (function () { ɵsetClassMetadata(EngineMagicService, [{
276
+ EngineMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: EngineMagicService, factory: EngineMagicService.ɵfac });
277
+ (function () { i0.ɵsetClassMetadata(EngineMagicService, [{
273
278
  type: Injectable
274
279
  }], null, null); })();
275
280
 
@@ -335,6 +340,324 @@ StylesMapManager.MagicPropertyToHtmlAttributeMap = new Map([
335
340
  [MagicProperties.Wallpaper, "background-image"]
336
341
  ]);
337
342
 
343
+ class CommandsCollectorMagicService {
344
+ constructor(magic) {
345
+ this.magic = magic;
346
+ this.count = 0;
347
+ this.commands = new List();
348
+ this.subscription = null;
349
+ }
350
+ startCollecting() {
351
+ this.count++;
352
+ Logger.Instance.WriteDevToLog("CommandsCollectorMagicService.startCollecting() --- " + this.count);
353
+ if (this.subscription === null) {
354
+ this.subscription = this.magic.refreshDom
355
+ .subscribe(command => {
356
+ this.commands.push(command);
357
+ });
358
+ }
359
+ }
360
+ stopCollecting() {
361
+ this.count--;
362
+ Logger.Instance.WriteDevToLog("CommandsCollectorMagicService.stopCollecting() --- " + this.count);
363
+ if (this.count === 0) {
364
+ this.subscription.unsubscribe();
365
+ this.subscription = null;
366
+ }
367
+ }
368
+ GetCommands(taskId) {
369
+ const commands = this.commands.filter((command) => command.TaskTag === taskId);
370
+ commands.forEach(command => { this.commands.Remove(command); });
371
+ return commands;
372
+ }
373
+ }
374
+ CommandsCollectorMagicService.ɵfac = function CommandsCollectorMagicService_Factory(t) { return new (t || CommandsCollectorMagicService)(i0.ɵɵinject(EngineMagicService)); };
375
+ CommandsCollectorMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: CommandsCollectorMagicService, factory: CommandsCollectorMagicService.ɵfac });
376
+ (function () { i0.ɵsetClassMetadata(CommandsCollectorMagicService, [{
377
+ type: Injectable
378
+ }], function () { return [{ type: EngineMagicService }]; }, null); })();
379
+
380
+ class RouteCommand {
381
+ }
382
+ class RouterCommandsMagicService {
383
+ constructor() {
384
+ this.pendingRouteCommands = [];
385
+ }
386
+ AddRouteCommand(routeCommand) {
387
+ this.pendingRouteCommands.push(routeCommand);
388
+ }
389
+ ExecuteNextCommand() {
390
+ let pendingRouteCommand = this.pendingRouteCommands.shift();
391
+ if (!isNullOrUndefined(pendingRouteCommand)) {
392
+ pendingRouteCommand.callerMgSubformServiceRef.ExecuteRouteCommand(pendingRouteCommand);
393
+ }
394
+ }
395
+ }
396
+ RouterCommandsMagicService.ɵfac = function RouterCommandsMagicService_Factory(t) { return new (t || RouterCommandsMagicService)(); };
397
+ RouterCommandsMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: RouterCommandsMagicService, factory: RouterCommandsMagicService.ɵfac });
398
+ (function () { i0.ɵsetClassMetadata(RouterCommandsMagicService, [{
399
+ type: Injectable
400
+ }], null, null); })();
401
+
402
+ class SubformMagicService {
403
+ constructor(task, activatedRoute, componentList, pendingCommandsCollector, router, routerCommandsMagicService, componentListMagicService, loader, injector) {
404
+ this.task = task;
405
+ this.activatedRoute = activatedRoute;
406
+ this.componentList = componentList;
407
+ this.pendingCommandsCollector = pendingCommandsCollector;
408
+ this.router = router;
409
+ this.routerCommandsMagicService = routerCommandsMagicService;
410
+ this.componentListMagicService = componentListMagicService;
411
+ this.loader = loader;
412
+ this.injector = injector;
413
+ this.subformsDict = {};
414
+ this.routesDict = {};
415
+ this.currentRouteDefinition = null;
416
+ }
417
+ mgGetComp(subformName) {
418
+ if (subformName in this.subformsDict) {
419
+ let formName = this.subformsDict[subformName].formName;
420
+ if (formName)
421
+ return this.componentList.getComponent(formName);
422
+ }
423
+ return null;
424
+ }
425
+ mgGetParameters(subformName) {
426
+ if (subformName in this.subformsDict) {
427
+ return this.subformsDict[subformName].parameters;
428
+ }
429
+ else
430
+ return "";
431
+ }
432
+ deleteSubformComp(subformControlName, formName) {
433
+ if (Object.keys(this.subformsDict).indexOf(subformControlName) >= 0) {
434
+ if (this.subformsDict[subformControlName].formName === formName) {
435
+ this.subformsDict[subformControlName] = {};
436
+ this.task.refreshView();
437
+ }
438
+ }
439
+ }
440
+ addSubformComp(subformControlName, formName, taskId, taskDescription, routerPath, params, inDefaultOutlet) {
441
+ this.pendingCommandsCollector.startCollecting();
442
+ let refreshNeeded = false;
443
+ if (isNullOrUndefined(routerPath)) {
444
+ if (Object.keys(this.subformsDict).indexOf(subformControlName) >= 0) {
445
+ if (this.subformsDict[subformControlName].formName === formName) {
446
+ this.subformsDict[subformControlName] = {};
447
+ this.task.refreshView();
448
+ }
449
+ }
450
+ let moduleRef = this.componentListMagicService.getModuleRef(formName);
451
+ if (moduleRef == null) {
452
+ let lazyLoadModule = this.componentListMagicService.getLazyLoadModuleData(formName);
453
+ if (lazyLoadModule != null) {
454
+ this.loader
455
+ .load(lazyLoadModule.modulePath + "#" + lazyLoadModule.moduleName)
456
+ .then((moduleFactory) => {
457
+ moduleRef = moduleFactory.create(this.injector);
458
+ this.subformsDict[subformControlName] = {
459
+ formName,
460
+ parameters: { taskIdParam: taskId, taskDescription: taskDescription }
461
+ };
462
+ this.task.refreshView();
463
+ });
464
+ }
465
+ }
466
+ else {
467
+ this.subformsDict[subformControlName] = {
468
+ formName,
469
+ parameters: { taskIdParam: taskId, taskDescription: taskDescription }
470
+ };
471
+ refreshNeeded = true;
472
+ }
473
+ }
474
+ else {
475
+ if (inDefaultOutlet)
476
+ subformControlName = "primary";
477
+ let routeParams = new List();
478
+ routeParams.push(routerPath);
479
+ if (params !== null) {
480
+ routeParams = routeParams.concat(params);
481
+ }
482
+ let routeCommand = {
483
+ callerMgSubformServiceRef: this,
484
+ routerOutletName: subformControlName,
485
+ formName: formName,
486
+ parameters: { taskIdParam: taskId, taskDescription: taskDescription },
487
+ routeParams: routeParams
488
+ };
489
+ if (SubformMagicService.currentCallerMgSubformServiceRef === null)
490
+ this.ExecuteRouteCommand(routeCommand);
491
+ else
492
+ this.routerCommandsMagicService.AddRouteCommand(routeCommand);
493
+ }
494
+ if (refreshNeeded)
495
+ this.task.refreshView();
496
+ }
497
+ ExecuteRouteCommand(routeCommand) {
498
+ let reusingComponent = false;
499
+ let currentSubformMagicService = routeCommand.callerMgSubformServiceRef;
500
+ let relativeRoute = SubformMagicService.getRelativeRoute(currentSubformMagicService.activatedRoute);
501
+ if (currentSubformMagicService.routesDict[routeCommand.routerOutletName] === routeCommand.routeParams[0]) {
502
+ currentSubformMagicService.router.navigate([{ outlets: { [routeCommand.routerOutletName]: null } }], { relativeTo: relativeRoute })
503
+ .then((result) => {
504
+ SubformMagicService.currentCallerMgSubformServiceRef = currentSubformMagicService;
505
+ currentSubformMagicService.currentRouteDefinition = {
506
+ formName: routeCommand.formName,
507
+ parameters: routeCommand.parameters
508
+ };
509
+ currentSubformMagicService.PerformRouterNavigate(routeCommand.routerOutletName, routeCommand.routeParams);
510
+ });
511
+ }
512
+ else {
513
+ SubformMagicService.currentCallerMgSubformServiceRef = currentSubformMagicService;
514
+ currentSubformMagicService.currentRouteDefinition = {
515
+ formName: routeCommand.formName,
516
+ parameters: routeCommand.parameters
517
+ };
518
+ if (SubformMagicService.routerContainers.length > 0) {
519
+ let routeContainer = SubformMagicService.routerContainers[0];
520
+ SubformMagicService.routerContainers.shift();
521
+ routeContainer.initializeComponent();
522
+ }
523
+ else {
524
+ currentSubformMagicService.PerformRouterNavigate(routeCommand.routerOutletName, routeCommand.routeParams);
525
+ }
526
+ }
527
+ }
528
+ PerformRouterNavigate(routerOutletName, routeParams) {
529
+ let relativeRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
530
+ this.router.navigate([{ outlets: { [routerOutletName]: routeParams } }], { relativeTo: relativeRoute })
531
+ .then((result) => {
532
+ if (result !== null && !result) {
533
+ let subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
534
+ subformMagicService.currentRouteDefinition = null;
535
+ SubformMagicService.currentCallerMgSubformServiceRef = null;
536
+ subformMagicService.pendingCommandsCollector.stopCollecting();
537
+ subformMagicService.routerCommandsMagicService.ExecuteNextCommand();
538
+ }
539
+ });
540
+ }
541
+ init() {
542
+ const pendingCommands = this.pendingCommandsCollector.GetCommands(this.task.taskId);
543
+ if (pendingCommands.length > 0) {
544
+ pendingCommands.forEach(command => { this.task.executeCommand(command); });
545
+ this.task.refreshView();
546
+ }
547
+ this.pendingCommandsCollector.stopCollecting();
548
+ }
549
+ refreshView() {
550
+ this.task.refreshView();
551
+ }
552
+ static getRelativeRoute(sendActivatedRoute) {
553
+ let currentActiveRoute = sendActivatedRoute;
554
+ if (currentActiveRoute.snapshot.routeConfig !== null && currentActiveRoute.snapshot.routeConfig.path === '') {
555
+ currentActiveRoute = currentActiveRoute.parent;
556
+ if (!currentActiveRoute.snapshot.routeConfig.loadChildren)
557
+ console.log("getRelativeRoute(): both path and currentActiveRoute.snapshot.routeConfig.loadChildren are empty.");
558
+ }
559
+ return currentActiveRoute;
560
+ }
561
+ }
562
+ SubformMagicService.currentCallerMgSubformServiceRef = null;
563
+ SubformMagicService.routerContainers = new Array();
564
+ 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), i0.ɵɵinject(ComponentListMagicService), i0.ɵɵinject(i0.NgModuleFactoryLoader), i0.ɵɵinject(i0.Injector)); };
565
+ SubformMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: SubformMagicService, factory: SubformMagicService.ɵfac });
566
+ (function () { i0.ɵsetClassMetadata(SubformMagicService, [{
567
+ type: Injectable
568
+ }], function () { return [{ type: TaskMagicService }, { type: i2.ActivatedRoute }, { type: ComponentListMagicService }, { type: CommandsCollectorMagicService }, { type: i2.Router }, { type: RouterCommandsMagicService }, { type: ComponentListMagicService }, { type: i0.NgModuleFactoryLoader }, { type: i0.Injector }]; }, null); })();
569
+
570
+ class RouterContainerMagicComponent {
571
+ constructor(activatedRoute, router, magic, containerTaskService, componentFactoryResolver, viewContainerRef, componentList, pendingCommandsCollector, routerCommandsMagicService) {
572
+ this.activatedRoute = activatedRoute;
573
+ this.router = router;
574
+ this.magic = magic;
575
+ this.containerTaskService = containerTaskService;
576
+ this.componentFactoryResolver = componentFactoryResolver;
577
+ this.viewContainerRef = viewContainerRef;
578
+ this.componentList = componentList;
579
+ this.pendingCommandsCollector = pendingCommandsCollector;
580
+ this.routerCommandsMagicService = routerCommandsMagicService;
581
+ this.componentRef = null;
582
+ this.parentMgSubformService = null;
583
+ }
584
+ static get LastRoute() {
585
+ return RouterContainerMagicComponent.lastRoute;
586
+ }
587
+ ngOnInit() {
588
+ let outletname = this.activatedRoute.outlet;
589
+ let subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
590
+ let currentActiveRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
591
+ RouterContainerMagicComponent.lastRoute = this.router.url;
592
+ if (subformMagicService == null || subformMagicService.currentRouteDefinition === null) {
593
+ this.insertRouteEvent(currentActiveRoute);
594
+ SubformMagicService.routerContainers.push(this);
595
+ }
596
+ else {
597
+ this.initializeComponent();
598
+ }
599
+ }
600
+ insertRouteEvent(currentActiveRoute) {
601
+ let guiEvent = getGuiEventObj('RouterNavigate', null, 0);
602
+ guiEvent.RouterPath = currentActiveRoute.snapshot.routeConfig.path;
603
+ if (currentActiveRoute.snapshot.outlet !== 'primary')
604
+ guiEvent.RouterOutletName = currentActiveRoute.snapshot.outlet;
605
+ let calcRouterPath = currentActiveRoute.routeConfig.path;
606
+ if (calcRouterPath.length > 0) {
607
+ let routerPath = calcRouterPath;
608
+ let tokens = StrUtil.tokenize(routerPath, "/:");
609
+ guiEvent.RouterPath = tokens[0];
610
+ guiEvent.RouterParams = new List();
611
+ for (let i = 1; i < tokens.length; i++) {
612
+ guiEvent.RouterParams.push(currentActiveRoute.snapshot.params[tokens[i]]);
613
+ }
614
+ }
615
+ this.containerTaskService.insertEvent(guiEvent);
616
+ }
617
+ initializeComponent() {
618
+ let subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
619
+ if (subformMagicService.currentRouteDefinition !== null) {
620
+ let comp = this.componentList.getComponent(subformMagicService.currentRouteDefinition.formName);
621
+ const componentFactory = this.componentFactoryResolver.resolveComponentFactory(comp);
622
+ this.componentRef = this.viewContainerRef.createComponent(componentFactory);
623
+ Object.assign(this.componentRef.instance, subformMagicService.currentRouteDefinition.parameters);
624
+ let myActiveRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
625
+ let routeParams = StrUtil.tokenize(myActiveRoute.snapshot.routeConfig.path, "/:");
626
+ subformMagicService.routesDict[myActiveRoute.snapshot.outlet] = routeParams[0];
627
+ this.parentMgSubformService = subformMagicService;
628
+ subformMagicService.currentRouteDefinition = null;
629
+ SubformMagicService.currentCallerMgSubformServiceRef = null;
630
+ let ignoreParamChange = true;
631
+ myActiveRoute.paramMap.subscribe(params => {
632
+ if (!ignoreParamChange)
633
+ this.insertRouteEvent(myActiveRoute);
634
+ ignoreParamChange = false;
635
+ });
636
+ this.parentMgSubformService.refreshView();
637
+ this.routerCommandsMagicService.ExecuteNextCommand();
638
+ }
639
+ }
640
+ ngOnDestroy() {
641
+ if (this.componentRef != null) {
642
+ this.componentRef.instance.task.close();
643
+ let currentActiveRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
644
+ this.parentMgSubformService.routesDict[currentActiveRoute.outlet] = "";
645
+ RouterContainerMagicComponent.lastRoute = this.router.url;
646
+ }
647
+ }
648
+ }
649
+ RouterContainerMagicComponent.lastRoute = "/";
650
+ RouterContainerMagicComponent.ɵfac = function RouterContainerMagicComponent_Factory(t) { return new (t || RouterContainerMagicComponent)(i0.ɵɵdirectiveInject(i2.ActivatedRoute), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(EngineMagicService), i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(ComponentListMagicService), i0.ɵɵdirectiveInject(CommandsCollectorMagicService), i0.ɵɵdirectiveInject(RouterCommandsMagicService)); };
651
+ RouterContainerMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RouterContainerMagicComponent, selectors: [["magic-route-outlet"]], decls: 0, vars: 0, template: function RouterContainerMagicComponent_Template(rf, ctx) { }, encapsulation: 2 });
652
+ (function () { i0.ɵsetClassMetadata(RouterContainerMagicComponent, [{
653
+ type: Component,
654
+ args: [{
655
+ selector: 'magic-route-outlet',
656
+ template: `
657
+ `
658
+ }]
659
+ }], function () { return [{ type: i2.ActivatedRoute }, { type: i2.Router }, { type: EngineMagicService }, { type: TaskMagicService }, { type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: ComponentListMagicService }, { type: CommandsCollectorMagicService }, { type: RouterCommandsMagicService }]; }, null); })();
660
+
338
661
  class GuiInteractiveExecutor {
339
662
  Run() {
340
663
  try {
@@ -363,6 +686,9 @@ class GuiInteractiveExecutor {
363
686
  case InteractiveCommandType.REFRESH_PAGE:
364
687
  this.OnRefreshPage();
365
688
  break;
689
+ case InteractiveCommandType.GET_LAST_ROUTE:
690
+ this.OnGetLastRoute();
691
+ break;
366
692
  }
367
693
  }
368
694
  catch (ex) {
@@ -422,6 +748,9 @@ class GuiInteractiveExecutor {
422
748
  else
423
749
  this.command._boolVal = this.task.Records.list[guiRowIndex].isEditing;
424
750
  }
751
+ OnGetLastRoute() {
752
+ this.command.resultString = RouterContainerMagicComponent.LastRoute;
753
+ }
425
754
  }
426
755
 
427
756
  let BaseMagicOverlayContainer = class BaseMagicOverlayContainer {
@@ -451,37 +780,37 @@ class MagicViewContainerRef {
451
780
  comp.setViewContainerRef(vcRef);
452
781
  }
453
782
  }
454
- MagicViewContainerRef.ɵfac = function MagicViewContainerRef_Factory(t) { return new (t || MagicViewContainerRef)(ɵɵdirectiveInject(ViewContainerRef), ɵɵdirectiveInject(ComponentFactoryResolver)); };
455
- MagicViewContainerRef.ɵdir = ɵɵdefineDirective({ type: MagicViewContainerRef, selectors: [["", "magicViewContainerRef", ""]] });
456
- (function () { ɵsetClassMetadata(MagicViewContainerRef, [{
783
+ MagicViewContainerRef.ɵfac = function MagicViewContainerRef_Factory(t) { return new (t || MagicViewContainerRef)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver)); };
784
+ MagicViewContainerRef.ɵdir = i0.ɵɵdefineDirective({ type: MagicViewContainerRef, selectors: [["", "magicViewContainerRef", ""]] });
785
+ (function () { i0.ɵsetClassMetadata(MagicViewContainerRef, [{
457
786
  type: Directive,
458
787
  args: [{
459
788
  selector: '[magicViewContainerRef]',
460
789
  }]
461
- }], function () { return [{ type: ViewContainerRef }, { type: ComponentFactoryResolver }]; }, null); })();
790
+ }], function () { return [{ type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }]; }, null); })();
462
791
 
463
- const _c0 = ["modalheader"];
464
- const _c1 = ["modalForeground"];
792
+ const _c0$3 = ["modalheader"];
793
+ const _c1$1 = ["modalForeground"];
465
794
  function MagicOverlayContainer_button_2_Template(rf, ctx) { if (rf & 1) {
466
- const _r5 = ɵɵgetCurrentView();
467
- ɵɵelementStart(0, "button", 8);
468
- ɵɵlistener("click", function MagicOverlayContainer_button_2_Template_button_click_0_listener() { ɵɵrestoreView(_r5); const ctx_r4 = ɵɵnextContext(); return ctx_r4.OnClose(); });
469
- ɵɵtext(1, "X");
470
- ɵɵelementEnd();
795
+ const _r5 = i0.ɵɵgetCurrentView();
796
+ i0.ɵɵelementStart(0, "button", 8);
797
+ i0.ɵɵlistener("click", function MagicOverlayContainer_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.OnClose(); });
798
+ i0.ɵɵtext(1, "X");
799
+ i0.ɵɵelementEnd();
471
800
  } }
472
801
  function MagicOverlayContainer_div_5_Template(rf, ctx) { if (rf & 1) {
473
- const _r8 = ɵɵgetCurrentView();
474
- ɵɵelementStart(0, "div", 9, 10);
475
- ɵɵtext(2);
476
- ɵɵelementStart(3, "button", 11);
477
- ɵɵlistener("click", function MagicOverlayContainer_div_5_Template_button_click_3_listener() { ɵɵrestoreView(_r8); const ctx_r7 = ɵɵnextContext(); return ctx_r7.OnClose(); });
478
- ɵɵtext(4, "X");
479
- ɵɵelementEnd();
480
- ɵɵelementEnd();
802
+ const _r8 = i0.ɵɵgetCurrentView();
803
+ i0.ɵɵelementStart(0, "div", 9, 10);
804
+ i0.ɵɵtext(2);
805
+ i0.ɵɵelementStart(3, "button", 11);
806
+ i0.ɵɵlistener("click", function MagicOverlayContainer_div_5_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.OnClose(); });
807
+ i0.ɵɵtext(4, "X");
808
+ i0.ɵɵelementEnd();
809
+ i0.ɵɵelementEnd();
481
810
  } if (rf & 2) {
482
- const ctx_r2 = ɵɵnextContext();
483
- ɵɵadvance(2);
484
- ɵɵtextInterpolate1(" ", ctx_r2.getText(), " ");
811
+ const ctx_r2 = i0.ɵɵnextContext();
812
+ i0.ɵɵadvance(2);
813
+ i0.ɵɵtextInterpolate1(" ", ctx_r2.getText(), " ");
485
814
  } }
486
815
  class MagicOverlayContainer extends BaseMagicOverlayContainer {
487
816
  constructor(injector, componentFactoryResolver) {
@@ -555,38 +884,38 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
555
884
  this.OnClose();
556
885
  }
557
886
  }
558
- MagicOverlayContainer.ɵfac = function MagicOverlayContainer_Factory(t) { return new (t || MagicOverlayContainer)(ɵɵdirectiveInject(Injector), ɵɵdirectiveInject(ComponentFactoryResolver)); };
559
- MagicOverlayContainer.ɵcmp = ɵɵdefineComponent({ type: MagicOverlayContainer, selectors: [["app-magic-overlay-container"]], viewQuery: function MagicOverlayContainer_Query(rf, ctx) { if (rf & 1) {
560
- ɵɵviewQuery(_c0, true);
561
- ɵɵviewQuery(_c1, true);
887
+ MagicOverlayContainer.ɵfac = function MagicOverlayContainer_Factory(t) { return new (t || MagicOverlayContainer)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver)); };
888
+ MagicOverlayContainer.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlayContainer, selectors: [["app-magic-overlay-container"]], viewQuery: function MagicOverlayContainer_Query(rf, ctx) { if (rf & 1) {
889
+ i0.ɵɵviewQuery(_c0$3, true);
890
+ i0.ɵɵviewQuery(_c1$1, true);
562
891
  } if (rf & 2) {
563
892
  var _t;
564
- ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.headerElementRef = _t.first);
565
- ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.foregroundElementRef = _t.first);
566
- } }, inputs: { ModalComp: "ModalComp", ModalCompParameters: "ModalCompParameters" }, outputs: { onClose: "onClose" }, features: [ɵɵ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) { if (rf & 1) {
567
- ɵɵelementStart(0, "div");
568
- ɵɵelementStart(1, "div", 0);
569
- ɵɵlistener("click", function MagicOverlayContainer_Template_div_click_1_listener() { return ctx.OnBackgroundClick(); });
570
- ɵɵtemplate(2, MagicOverlayContainer_button_2_Template, 2, 0, "button", 1);
571
- ɵɵelementEnd();
572
- ɵɵelementStart(3, "div", 2, 3);
573
- ɵɵtemplate(5, MagicOverlayContainer_div_5_Template, 5, 1, "div", 4);
574
- ɵɵelementStart(6, "div", 5);
575
- ɵɵelement(7, "div", 6, 7);
576
- ɵɵelementEnd();
577
- ɵɵelementEnd();
578
- ɵɵelementEnd();
893
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerElementRef = _t.first);
894
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.foregroundElementRef = _t.first);
895
+ } }, 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) { if (rf & 1) {
896
+ i0.ɵɵelementStart(0, "div");
897
+ i0.ɵɵelementStart(1, "div", 0);
898
+ i0.ɵɵlistener("click", function MagicOverlayContainer_Template_div_click_1_listener() { return ctx.OnBackgroundClick(); });
899
+ i0.ɵɵtemplate(2, MagicOverlayContainer_button_2_Template, 2, 0, "button", 1);
900
+ i0.ɵɵelementEnd();
901
+ i0.ɵɵelementStart(3, "div", 2, 3);
902
+ i0.ɵɵtemplate(5, MagicOverlayContainer_div_5_Template, 5, 1, "div", 4);
903
+ i0.ɵɵelementStart(6, "div", 5);
904
+ i0.ɵɵelement(7, "div", 6, 7);
905
+ i0.ɵɵelementEnd();
906
+ i0.ɵɵelementEnd();
907
+ i0.ɵɵelementEnd();
579
908
  } if (rf & 2) {
580
- ɵɵadvance(2);
581
- ɵɵproperty("ngIf", !ctx.getShowTitleBar());
582
- ɵɵadvance(1);
583
- ɵɵproperty("ngStyle", ctx.getStyle());
584
- ɵɵadvance(2);
585
- ɵɵproperty("ngIf", ctx.getShowTitleBar());
586
- ɵɵadvance(1);
587
- ɵɵproperty("ngStyle", ctx.getClientAreaStyles());
588
- } }, directives: [NgIf, 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}"] });
589
- (function () { ɵsetClassMetadata(MagicOverlayContainer, [{
909
+ i0.ɵɵadvance(2);
910
+ i0.ɵɵproperty("ngIf", !ctx.getShowTitleBar());
911
+ i0.ɵɵadvance(1);
912
+ i0.ɵɵproperty("ngStyle", ctx.getStyle());
913
+ i0.ɵɵadvance(2);
914
+ i0.ɵɵproperty("ngIf", ctx.getShowTitleBar());
915
+ i0.ɵɵadvance(1);
916
+ i0.ɵɵproperty("ngStyle", ctx.getClientAreaStyles());
917
+ } }, 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}"] });
918
+ (function () { i0.ɵsetClassMetadata(MagicOverlayContainer, [{
590
919
  type: Component,
591
920
  args: [{
592
921
  selector: 'app-magic-overlay-container',
@@ -609,7 +938,7 @@ MagicOverlayContainer.ɵcmp = ɵɵdefineComponent({ type: MagicOverlayContainer,
609
938
  `,
610
939
  styleUrls: ['./magic-overlay-container.css']
611
940
  }]
612
- }], function () { return [{ type: Injector }, { type: ComponentFactoryResolver }]; }, { headerElementRef: [{
941
+ }], function () { return [{ type: i0.Injector }, { type: i0.ComponentFactoryResolver }]; }, { headerElementRef: [{
613
942
  type: ViewChild,
614
943
  args: ['modalheader', { static: false }]
615
944
  }], foregroundElementRef: [{
@@ -629,8 +958,8 @@ class OverlayContainerMagicProvider {
629
958
  }
630
959
  }
631
960
  OverlayContainerMagicProvider.ɵfac = function OverlayContainerMagicProvider_Factory(t) { return new (t || OverlayContainerMagicProvider)(); };
632
- OverlayContainerMagicProvider.ɵprov = ɵɵdefineInjectable({ token: OverlayContainerMagicProvider, factory: OverlayContainerMagicProvider.ɵfac });
633
- (function () { ɵsetClassMetadata(OverlayContainerMagicProvider, [{
961
+ OverlayContainerMagicProvider.ɵprov = i0.ɵɵdefineInjectable({ token: OverlayContainerMagicProvider, factory: OverlayContainerMagicProvider.ɵfac });
962
+ (function () { i0.ɵsetClassMetadata(OverlayContainerMagicProvider, [{
634
963
  type: Injectable
635
964
  }], null, null); })();
636
965
 
@@ -643,8 +972,8 @@ class BaseMagicConfirmComponent {
643
972
  }
644
973
  }
645
974
  BaseMagicConfirmComponent.ɵfac = function BaseMagicConfirmComponent_Factory(t) { return new (t || BaseMagicConfirmComponent)(); };
646
- BaseMagicConfirmComponent.ɵcmp = ɵɵ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: [""] });
647
- (function () { ɵsetClassMetadata(BaseMagicConfirmComponent, [{
975
+ 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: [""] });
976
+ (function () { i0.ɵsetClassMetadata(BaseMagicConfirmComponent, [{
648
977
  type: Component,
649
978
  args: [{
650
979
  selector: 'mg-base-alert',
@@ -668,8 +997,8 @@ class BaseMagicAlertComponent {
668
997
  }
669
998
  }
670
999
  BaseMagicAlertComponent.ɵfac = function BaseMagicAlertComponent_Factory(t) { return new (t || BaseMagicAlertComponent)(); };
671
- BaseMagicAlertComponent.ɵcmp = ɵɵ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: [""] });
672
- (function () { ɵsetClassMetadata(BaseMagicAlertComponent, [{
1000
+ 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: [""] });
1001
+ (function () { i0.ɵsetClassMetadata(BaseMagicAlertComponent, [{
673
1002
  type: Component,
674
1003
  args: [{
675
1004
  selector: 'mg-base-alert',
@@ -692,16 +1021,16 @@ class MagicFocusDirective {
692
1021
  this.hostElement.nativeElement.focus();
693
1022
  }
694
1023
  }
695
- MagicFocusDirective.ɵfac = function MagicFocusDirective_Factory(t) { return new (t || MagicFocusDirective)(ɵɵdirectiveInject(ElementRef)); };
696
- MagicFocusDirective.ɵdir = ɵɵdefineDirective({ type: MagicFocusDirective, selectors: [["", "magicFocus", ""]] });
697
- (function () { ɵsetClassMetadata(MagicFocusDirective, [{
1024
+ MagicFocusDirective.ɵfac = function MagicFocusDirective_Factory(t) { return new (t || MagicFocusDirective)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
1025
+ MagicFocusDirective.ɵdir = i0.ɵɵdefineDirective({ type: MagicFocusDirective, selectors: [["", "magicFocus", ""]] });
1026
+ (function () { i0.ɵsetClassMetadata(MagicFocusDirective, [{
698
1027
  type: Directive,
699
1028
  args: [{
700
1029
  selector: '[magicFocus]'
701
1030
  }]
702
- }], function () { return [{ type: ElementRef }]; }, null); })();
1031
+ }], function () { return [{ type: i0.ElementRef }]; }, null); })();
703
1032
 
704
- const _c0$1 = ["overlayContainerWrapper"];
1033
+ const _c0$2 = ["overlayContainerWrapper"];
705
1034
  class MagicOverlayContainerWrapper {
706
1035
  constructor(componentListMagicService, loader, injector, componentFactoryResolver, changeDetectorRef) {
707
1036
  this.componentListMagicService = componentListMagicService;
@@ -767,22 +1096,22 @@ MagicOverlayContainerWrapper.allowedBaseComps = new Map([
767
1096
  [OverlayType.Alert, { comp: BaseMagicAlertComponent, error: 'BaseMagicAlertComponent. Alert ' }],
768
1097
  [OverlayType.ConfirmationBox, { comp: BaseMagicConfirmComponent, error: 'BaseMagicConfirmComponent. Confirmation ' }]
769
1098
  ]);
770
- MagicOverlayContainerWrapper.ɵfac = function MagicOverlayContainerWrapper_Factory(t) { return new (t || MagicOverlayContainerWrapper)(ɵɵdirectiveInject(ComponentListMagicService), ɵɵdirectiveInject(NgModuleFactoryLoader), ɵɵdirectiveInject(Injector), ɵɵdirectiveInject(ComponentFactoryResolver), ɵɵdirectiveInject(ChangeDetectorRef)); };
771
- MagicOverlayContainerWrapper.ɵcmp = ɵɵdefineComponent({ type: MagicOverlayContainerWrapper, selectors: [["app-magic-overlay-container-wrapper"]], viewQuery: function MagicOverlayContainerWrapper_Query(rf, ctx) { if (rf & 1) {
772
- ɵɵstaticViewQuery(_c0$1, true);
1099
+ 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)); };
1100
+ MagicOverlayContainerWrapper.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlayContainerWrapper, selectors: [["app-magic-overlay-container-wrapper"]], viewQuery: function MagicOverlayContainerWrapper_Query(rf, ctx) { if (rf & 1) {
1101
+ i0.ɵɵstaticViewQuery(_c0$2, true);
773
1102
  } if (rf & 2) {
774
1103
  var _t;
775
- ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.overlayContainerWrapperElementRef = _t.first);
1104
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.overlayContainerWrapperElementRef = _t.first);
776
1105
  } }, 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) { if (rf & 1) {
777
- ɵɵelementStart(0, "div");
778
- ɵɵelement(1, "div", 0);
779
- ɵɵelementStart(2, "div", 1, 2);
780
- ɵɵelement(4, "div", 3, 4);
781
- ɵɵelementEnd();
782
- ɵɵelement(6, "div", 5);
783
- ɵɵelementEnd();
1106
+ i0.ɵɵelementStart(0, "div");
1107
+ i0.ɵɵelement(1, "div", 0);
1108
+ i0.ɵɵelementStart(2, "div", 1, 2);
1109
+ i0.ɵɵelement(4, "div", 3, 4);
1110
+ i0.ɵɵelementEnd();
1111
+ i0.ɵɵelement(6, "div", 5);
1112
+ i0.ɵɵelementEnd();
784
1113
  } }, 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 }"] });
785
- (function () { ɵsetClassMetadata(MagicOverlayContainerWrapper, [{
1114
+ (function () { i0.ɵsetClassMetadata(MagicOverlayContainerWrapper, [{
786
1115
  type: Component,
787
1116
  args: [{
788
1117
  selector: 'app-magic-overlay-container-wrapper',
@@ -808,7 +1137,7 @@ MagicOverlayContainerWrapper.ɵcmp = ɵɵdefineComponent({ type: MagicOverlayCon
808
1137
  }
809
1138
  `]
810
1139
  }]
811
- }], function () { return [{ type: ComponentListMagicService }, { type: NgModuleFactoryLoader }, { type: Injector }, { type: ComponentFactoryResolver }, { type: ChangeDetectorRef }]; }, { Component: [{
1140
+ }], function () { return [{ type: ComponentListMagicService }, { type: i0.NgModuleFactoryLoader }, { type: i0.Injector }, { type: i0.ComponentFactoryResolver }, { type: i0.ChangeDetectorRef }]; }, { Component: [{
812
1141
  type: Input
813
1142
  }], Parameters: [{
814
1143
  type: Input
@@ -824,29 +1153,29 @@ MagicOverlayContainerWrapper.ɵcmp = ɵɵdefineComponent({ type: MagicOverlayCon
824
1153
  class MagicAlertComponent extends BaseMagicAlertComponent {
825
1154
  }
826
1155
  MagicAlertComponent.ɵfac = function MagicAlertComponent_Factory(t) { return ɵMagicAlertComponent_BaseFactory(t || MagicAlertComponent); };
827
- MagicAlertComponent.ɵcmp = ɵɵdefineComponent({ type: MagicAlertComponent, selectors: [["sample-magic-alert-component"]], features: [ɵɵInheritDefinitionFeature], decls: 8, vars: 2, consts: [[1, "mg-message-background"], [3, "click"]], template: function MagicAlertComponent_Template(rf, ctx) { if (rf & 1) {
828
- ɵɵelementStart(0, "div");
829
- ɵɵelementStart(1, "div", 0);
830
- ɵɵelementStart(2, "h2");
831
- ɵɵtext(3);
832
- ɵɵelementEnd();
833
- ɵɵelementStart(4, "p");
834
- ɵɵtext(5);
835
- ɵɵelementEnd();
836
- ɵɵelementStart(6, "button", 1);
837
- ɵɵlistener("click", function MagicAlertComponent_Template_button_click_6_listener() { return ctx.OnClose(); });
838
- ɵɵtext(7, "OK");
839
- ɵɵelementEnd();
840
- ɵɵelementEnd();
841
- ɵɵelementEnd();
1156
+ 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) { if (rf & 1) {
1157
+ i0.ɵɵelementStart(0, "div");
1158
+ i0.ɵɵelementStart(1, "div", 0);
1159
+ i0.ɵɵelementStart(2, "h2");
1160
+ i0.ɵɵtext(3);
1161
+ i0.ɵɵelementEnd();
1162
+ i0.ɵɵelementStart(4, "p");
1163
+ i0.ɵɵtext(5);
1164
+ i0.ɵɵelementEnd();
1165
+ i0.ɵɵelementStart(6, "button", 1);
1166
+ i0.ɵɵlistener("click", function MagicAlertComponent_Template_button_click_6_listener() { return ctx.OnClose(); });
1167
+ i0.ɵɵtext(7, "OK");
1168
+ i0.ɵɵelementEnd();
1169
+ i0.ɵɵelementEnd();
1170
+ i0.ɵɵelementEnd();
842
1171
  } if (rf & 2) {
843
- ɵɵadvance(3);
844
- ɵɵtextInterpolate1(" ", ctx.title, "");
845
- ɵɵadvance(2);
846
- ɵɵtextInterpolate1("", ctx.message, " ");
1172
+ i0.ɵɵadvance(3);
1173
+ i0.ɵɵtextInterpolate1(" ", ctx.title, "");
1174
+ i0.ɵɵadvance(2);
1175
+ i0.ɵɵtextInterpolate1("", ctx.message, " ");
847
1176
  } }, 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 }"] });
848
- const ɵMagicAlertComponent_BaseFactory = ɵɵgetInheritedFactory(MagicAlertComponent);
849
- (function () { ɵsetClassMetadata(MagicAlertComponent, [{
1177
+ const ɵMagicAlertComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MagicAlertComponent);
1178
+ (function () { i0.ɵsetClassMetadata(MagicAlertComponent, [{
850
1179
  type: Component,
851
1180
  args: [{
852
1181
  selector: 'sample-magic-alert-component',
@@ -893,33 +1222,33 @@ const ɵMagicAlertComponent_BaseFactory = ɵɵgetInheritedFactory(MagicAlertComp
893
1222
  class MagicConfirmationBoxComponent extends BaseMagicConfirmComponent {
894
1223
  }
895
1224
  MagicConfirmationBoxComponent.ɵfac = function MagicConfirmationBoxComponent_Factory(t) { return ɵMagicConfirmationBoxComponent_BaseFactory(t || MagicConfirmationBoxComponent); };
896
- MagicConfirmationBoxComponent.ɵcmp = ɵɵdefineComponent({ type: MagicConfirmationBoxComponent, selectors: [["sample-magic-confirmation-box"]], features: [ɵɵInheritDefinitionFeature], decls: 11, vars: 2, consts: [[1, "mg-message-background"], [3, "click"], [1, "cancel", 3, "click"]], template: function MagicConfirmationBoxComponent_Template(rf, ctx) { if (rf & 1) {
897
- ɵɵelementStart(0, "div");
898
- ɵɵelementStart(1, "div", 0);
899
- ɵɵelementStart(2, "h2");
900
- ɵɵtext(3);
901
- ɵɵelementEnd();
902
- ɵɵtext(4);
903
- ɵɵelement(5, "br");
904
- ɵɵelement(6, "br");
905
- ɵɵelementStart(7, "button", 1);
906
- ɵɵlistener("click", function MagicConfirmationBoxComponent_Template_button_click_7_listener() { return ctx.OnClose(true); });
907
- ɵɵtext(8, "OK");
908
- ɵɵelementEnd();
909
- ɵɵelementStart(9, "button", 2);
910
- ɵɵlistener("click", function MagicConfirmationBoxComponent_Template_button_click_9_listener() { return ctx.OnClose(false); });
911
- ɵɵtext(10, "Cancel");
912
- ɵɵelementEnd();
913
- ɵɵelementEnd();
914
- ɵɵelementEnd();
1225
+ 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) { if (rf & 1) {
1226
+ i0.ɵɵelementStart(0, "div");
1227
+ i0.ɵɵelementStart(1, "div", 0);
1228
+ i0.ɵɵelementStart(2, "h2");
1229
+ i0.ɵɵtext(3);
1230
+ i0.ɵɵelementEnd();
1231
+ i0.ɵɵtext(4);
1232
+ i0.ɵɵelement(5, "br");
1233
+ i0.ɵɵelement(6, "br");
1234
+ i0.ɵɵelementStart(7, "button", 1);
1235
+ i0.ɵɵlistener("click", function MagicConfirmationBoxComponent_Template_button_click_7_listener() { return ctx.OnClose(true); });
1236
+ i0.ɵɵtext(8, "OK");
1237
+ i0.ɵɵelementEnd();
1238
+ i0.ɵɵelementStart(9, "button", 2);
1239
+ i0.ɵɵlistener("click", function MagicConfirmationBoxComponent_Template_button_click_9_listener() { return ctx.OnClose(false); });
1240
+ i0.ɵɵtext(10, "Cancel");
1241
+ i0.ɵɵelementEnd();
1242
+ i0.ɵɵelementEnd();
1243
+ i0.ɵɵelementEnd();
915
1244
  } if (rf & 2) {
916
- ɵɵadvance(3);
917
- ɵɵtextInterpolate1(" ", ctx.title, "");
918
- ɵɵadvance(1);
919
- ɵɵtextInterpolate1(" ", ctx.message, " ");
1245
+ i0.ɵɵadvance(3);
1246
+ i0.ɵɵtextInterpolate1(" ", ctx.title, "");
1247
+ i0.ɵɵadvance(1);
1248
+ i0.ɵɵtextInterpolate1(" ", ctx.message, " ");
920
1249
  } }, 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 }"] });
921
- const ɵMagicConfirmationBoxComponent_BaseFactory = ɵɵgetInheritedFactory(MagicConfirmationBoxComponent);
922
- (function () { ɵsetClassMetadata(MagicConfirmationBoxComponent, [{
1250
+ const ɵMagicConfirmationBoxComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MagicConfirmationBoxComponent);
1251
+ (function () { i0.ɵsetClassMetadata(MagicConfirmationBoxComponent, [{
923
1252
  type: Component,
924
1253
  args: [{
925
1254
  selector: 'sample-magic-confirmation-box',
@@ -982,8 +1311,8 @@ class ConfirmationComponentsMagicProvider {
982
1311
  }
983
1312
  }
984
1313
  ConfirmationComponentsMagicProvider.ɵfac = function ConfirmationComponentsMagicProvider_Factory(t) { return new (t || ConfirmationComponentsMagicProvider)(); };
985
- ConfirmationComponentsMagicProvider.ɵprov = ɵɵdefineInjectable({ token: ConfirmationComponentsMagicProvider, factory: ConfirmationComponentsMagicProvider.ɵfac });
986
- (function () { ɵsetClassMetadata(ConfirmationComponentsMagicProvider, [{
1314
+ ConfirmationComponentsMagicProvider.ɵprov = i0.ɵɵdefineInjectable({ token: ConfirmationComponentsMagicProvider, factory: ConfirmationComponentsMagicProvider.ɵfac });
1315
+ (function () { i0.ɵsetClassMetadata(ConfirmationComponentsMagicProvider, [{
987
1316
  type: Injectable
988
1317
  }], null, null); })();
989
1318
 
@@ -1096,11 +1425,11 @@ class OverlayWindowService {
1096
1425
  return componentRef;
1097
1426
  }
1098
1427
  }
1099
- OverlayWindowService.ɵfac = function OverlayWindowService_Factory(t) { return new (t || OverlayWindowService)(ɵɵinject(ComponentFactoryResolver), ɵɵinject(ComponentListMagicService), ɵɵinject(EngineMagicService), ɵɵinject(OverlayContainerMagicProvider), ɵɵinject(ConfirmationComponentsMagicProvider)); };
1100
- OverlayWindowService.ɵprov = ɵɵdefineInjectable({ token: OverlayWindowService, factory: OverlayWindowService.ɵfac });
1101
- (function () { ɵsetClassMetadata(OverlayWindowService, [{
1428
+ 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)); };
1429
+ OverlayWindowService.ɵprov = i0.ɵɵdefineInjectable({ token: OverlayWindowService, factory: OverlayWindowService.ɵfac });
1430
+ (function () { i0.ɵsetClassMetadata(OverlayWindowService, [{
1102
1431
  type: Injectable
1103
- }], function () { return [{ type: ComponentFactoryResolver }, { type: ComponentListMagicService }, { type: EngineMagicService }, { type: OverlayContainerMagicProvider }, { type: ConfirmationComponentsMagicProvider }]; }, null); })();
1432
+ }], function () { return [{ type: i0.ComponentFactoryResolver }, { type: ComponentListMagicService }, { type: EngineMagicService }, { type: OverlayContainerMagicProvider }, { type: ConfirmationComponentsMagicProvider }]; }, null); })();
1104
1433
  class OverlayWindowFocusManager {
1105
1434
  constructor(rootMagicElement) {
1106
1435
  this.rootMagicElement = null;
@@ -1530,6 +1859,7 @@ class TaskMagicService {
1530
1859
  control.setValidators([control.validator, this.customValidator(guiRowId.toString(), controlId)]);
1531
1860
  else
1532
1861
  control.setValidators(this.customValidator(guiRowId.toString(), controlId));
1862
+ control.updateValueAndValidity();
1533
1863
  }
1534
1864
  }
1535
1865
  break;
@@ -1542,7 +1872,7 @@ class TaskMagicService {
1542
1872
  properties.setStyle(command.Operation, command.obj1);
1543
1873
  break;
1544
1874
  case CommandType.SET_ATTRIBUTE:
1545
- properties = this.Records.list[guiRowId].getControlMetadata(controlId);
1875
+ properties = this.Records.list[0].getControlMetadata(controlId);
1546
1876
  properties.dataType = String.fromCharCode(command.number);
1547
1877
  break;
1548
1878
  case CommandType.SET_VALUE:
@@ -1695,328 +2025,122 @@ class TaskMagicService {
1695
2025
  this.refreshDom.complete();
1696
2026
  this.detectChanges.complete();
1697
2027
  this.subscribeInteractiveCommands.unsubscribe();
1698
- this.subscribeRefreshDom.unsubscribe();
1699
- this.interactiveCommands.complete();
1700
- this.customPropertiesSubject.complete();
1701
- this.OnSelectedRowChanged.complete();
1702
- }
1703
- onComboboxSelectionChanged(event, idx, line) {
1704
- let guiEvent = getGuiEventObj('selectionchanged', idx, line);
1705
- if (typeof (event) == 'number') {
1706
- guiEvent.Value = event;
1707
- }
1708
- else {
1709
- if (!isNullOrUndefined(event.target)) {
1710
- let indexes = new Array(event.target.selectedOptions.length);
1711
- for (let i = 0; i < event.target.selectedOptions.length; i++) {
1712
- indexes[i] = event.target.selectedOptions[i].index;
1713
- }
1714
- guiEvent.Value = indexes.join(',');
1715
- }
1716
- else
1717
- guiEvent.Value = event.value;
1718
- }
1719
- this.insertEvent(guiEvent);
1720
- }
1721
- onListBoxSelectionChanged(event, idx) {
1722
- let guiEvent = getGuiEventObj('selectionchanged', idx, 0);
1723
- let selectedOptions;
1724
- if (!isNullOrUndefined(event.target))
1725
- selectedOptions = event.target.selectedOptions;
1726
- else
1727
- selectedOptions = event.source.selectedOptions.selected;
1728
- let length = selectedOptions.length;
1729
- let indexes = new Array(length);
1730
- for (let i = 0; i < length; i++) {
1731
- if (!isNullOrUndefined(event.target))
1732
- indexes[i] = (selectedOptions[i]).index;
1733
- else
1734
- indexes[i] = (selectedOptions[i]).value;
1735
- }
1736
- guiEvent.Value = indexes;
1737
- this.insertEvent(guiEvent);
1738
- }
1739
- onCheckChanged(event, idx, rowId) {
1740
- if (typeof rowId === 'undefined')
1741
- rowId = 0;
1742
- let guiEvent = getGuiEventObj('selectionchanged', idx, rowId);
1743
- if (typeof (event) == 'boolean') {
1744
- guiEvent.Value = event;
1745
- }
1746
- else {
1747
- if (typeof event.target === 'undefined')
1748
- guiEvent.Value = (event).checked;
1749
- else
1750
- guiEvent.Value = (event.target).checked;
1751
- }
1752
- this.insertEvent(guiEvent);
1753
- }
1754
- mgOnTabSelectionChanged(idx, layer) {
1755
- let guiEvent = getGuiEventObj('selectionchanged', idx, 0);
1756
- guiEvent.Value = layer.toString();
1757
- this.insertEvent(guiEvent);
1758
- }
1759
- mgOnRadioSelectionChanged(event, idx) {
1760
- let result = this.getFormControl('0', idx);
1761
- let guiEvent = getGuiEventObj('selectionchanged', idx, 0);
1762
- if (typeof result.value !== 'string')
1763
- guiEvent.Value = result.value.index;
1764
- else
1765
- guiEvent.Value = result.value;
1766
- this.insertEvent(guiEvent);
1767
- }
1768
- close() {
1769
- this.insertEvent(getGuiEventObj('close', null, 0));
1770
- }
1771
- IsStub() {
1772
- return this.magic.isStub;
1773
- }
1774
- saveData(data) {
1775
- this.magic.saveData(data);
1776
- }
1777
- createData() {
1778
- let myData = {
1779
- records: this.Records,
1780
- template: this.template
1781
- };
1782
- let text = 'loadData():any {\n' +
1783
- ' let stubData = ' + JSON.stringify(myData) + ';\n' +
1784
- ' this.loadStubData(stubData);}';
1785
- console.log(text);
1786
- this.saveData(text);
1787
- }
1788
- loadStubData(stubData) {
1789
- this.Records = stubData.records;
1790
- this.settemplate(stubData.template);
1791
- this.taskId = '1';
1792
- for (let i = 0; i < this.Records.list.length; i++)
1793
- this.buildTableRowControls(i);
1794
- }
1795
- loadData() {
1796
- alert('Please, overwrite method loadData');
1797
- }
1798
- setStubValue(guiRowId, fc, name) {
1799
- if (this.IsStub()) {
1800
- try {
1801
- let val = this.Records.list[guiRowId].values[name];
1802
- fc.setValue(val);
1803
- }
1804
- catch (e) {
1805
- }
1806
- }
1807
- }
1808
- }
1809
- TaskMagicService.ɵfac = function TaskMagicService_Factory(t) { return new (t || TaskMagicService)(ɵɵinject(EngineMagicService), ɵɵinject(OverlayWindowService)); };
1810
- TaskMagicService.ɵprov = ɵɵdefineInjectable({ token: TaskMagicService, factory: TaskMagicService.ɵfac });
1811
- (function () { ɵsetClassMetadata(TaskMagicService, [{
1812
- type: Injectable
1813
- }], function () { return [{ type: EngineMagicService }, { type: OverlayWindowService }]; }, null); })();
1814
-
1815
- class CommandsCollectorMagicService {
1816
- constructor(magic) {
1817
- this.magic = magic;
1818
- this.count = 0;
1819
- this.commands = new List();
1820
- this.subscription = null;
1821
- }
1822
- startCollecting() {
1823
- this.count++;
1824
- Logger.Instance.WriteDevToLog("CommandsCollectorMagicService.startCollecting() --- " + this.count);
1825
- if (this.subscription === null) {
1826
- this.subscription = this.magic.refreshDom
1827
- .subscribe(command => {
1828
- this.commands.push(command);
1829
- });
1830
- }
1831
- }
1832
- stopCollecting() {
1833
- this.count--;
1834
- Logger.Instance.WriteDevToLog("CommandsCollectorMagicService.stopCollecting() --- " + this.count);
1835
- if (this.count === 0) {
1836
- this.subscription.unsubscribe();
1837
- this.subscription = null;
1838
- }
1839
- }
1840
- GetCommands(taskId) {
1841
- const commands = this.commands.filter((command) => command.TaskTag === taskId);
1842
- commands.forEach(command => { this.commands.Remove(command); });
1843
- return commands;
1844
- }
1845
- }
1846
- CommandsCollectorMagicService.ɵfac = function CommandsCollectorMagicService_Factory(t) { return new (t || CommandsCollectorMagicService)(ɵɵinject(EngineMagicService)); };
1847
- CommandsCollectorMagicService.ɵprov = ɵɵdefineInjectable({ token: CommandsCollectorMagicService, factory: CommandsCollectorMagicService.ɵfac });
1848
- (function () { ɵsetClassMetadata(CommandsCollectorMagicService, [{
1849
- type: Injectable
1850
- }], function () { return [{ type: EngineMagicService }]; }, null); })();
1851
-
1852
- class RouteCommand {
1853
- }
1854
- class RouterCommandsMagicService {
1855
- constructor() {
1856
- this.pendingRouteCommands = [];
1857
- }
1858
- AddRouteCommand(routeCommand) {
1859
- this.pendingRouteCommands.push(routeCommand);
1860
- }
1861
- ExecuteNextCommand() {
1862
- let pendingRouteCommand = this.pendingRouteCommands.shift();
1863
- if (!isNullOrUndefined(pendingRouteCommand)) {
1864
- pendingRouteCommand.callerMgSubformServiceRef.ExecuteRouteCommand(pendingRouteCommand);
1865
- }
1866
- }
1867
- }
1868
- RouterCommandsMagicService.ɵfac = function RouterCommandsMagicService_Factory(t) { return new (t || RouterCommandsMagicService)(); };
1869
- RouterCommandsMagicService.ɵprov = ɵɵdefineInjectable({ token: RouterCommandsMagicService, factory: RouterCommandsMagicService.ɵfac });
1870
- (function () { ɵsetClassMetadata(RouterCommandsMagicService, [{
1871
- type: Injectable
1872
- }], null, null); })();
1873
-
1874
- class SubformMagicService {
1875
- constructor(task, activatedRoute, componentList, pendingCommandsCollector, router, routerCommandsMagicService) {
1876
- this.task = task;
1877
- this.activatedRoute = activatedRoute;
1878
- this.componentList = componentList;
1879
- this.pendingCommandsCollector = pendingCommandsCollector;
1880
- this.router = router;
1881
- this.routerCommandsMagicService = routerCommandsMagicService;
1882
- this.subformsDict = {};
1883
- this.routesDict = {};
1884
- this.currentRouteDefinition = null;
1885
- }
1886
- mgGetComp(subformName) {
1887
- if (subformName in this.subformsDict) {
1888
- let formName = this.subformsDict[subformName].formName;
1889
- if (formName)
1890
- return this.componentList.getComponent(formName);
1891
- }
1892
- return null;
1893
- }
1894
- mgGetParameters(subformName) {
1895
- if (subformName in this.subformsDict) {
1896
- return this.subformsDict[subformName].parameters;
1897
- }
1898
- else
1899
- return "";
1900
- }
1901
- deleteSubformComp(subformControlName, formName) {
1902
- if (Object.keys(this.subformsDict).indexOf(subformControlName) >= 0) {
1903
- if (this.subformsDict[subformControlName].formName === formName) {
1904
- this.subformsDict[subformControlName] = {};
1905
- this.task.refreshView();
1906
- }
1907
- }
1908
- }
1909
- addSubformComp(subformControlName, formName, taskId, taskDescription, routerPath, params, inDefaultOutlet) {
1910
- this.pendingCommandsCollector.startCollecting();
1911
- let refreshNeeded = false;
1912
- if (isNullOrUndefined(routerPath)) {
1913
- if (Object.keys(this.subformsDict).indexOf(subformControlName) >= 0) {
1914
- if (this.subformsDict[subformControlName].formName === formName) {
1915
- this.subformsDict[subformControlName] = {};
1916
- this.task.refreshView();
1917
- }
1918
- }
1919
- this.subformsDict[subformControlName] = {
1920
- formName,
1921
- parameters: { taskIdParam: taskId, taskDescription: taskDescription }
1922
- };
1923
- refreshNeeded = true;
2028
+ this.subscribeRefreshDom.unsubscribe();
2029
+ this.interactiveCommands.complete();
2030
+ this.customPropertiesSubject.complete();
2031
+ this.OnSelectedRowChanged.complete();
2032
+ }
2033
+ onComboboxSelectionChanged(event, idx, line) {
2034
+ let guiEvent = getGuiEventObj('selectionchanged', idx, line);
2035
+ if (typeof (event) == 'number') {
2036
+ guiEvent.Value = event;
1924
2037
  }
1925
2038
  else {
1926
- if (inDefaultOutlet)
1927
- subformControlName = "primary";
1928
- let routeParams = new List();
1929
- routeParams.push(routerPath);
1930
- if (params !== null) {
1931
- routeParams = routeParams.concat(params);
2039
+ if (!isNullOrUndefined(event.target)) {
2040
+ let indexes = new Array(event.target.selectedOptions.length);
2041
+ for (let i = 0; i < event.target.selectedOptions.length; i++) {
2042
+ indexes[i] = event.target.selectedOptions[i].index;
2043
+ }
2044
+ guiEvent.Value = indexes.join(',');
1932
2045
  }
1933
- let routeCommand = {
1934
- callerMgSubformServiceRef: this,
1935
- routerOutletName: subformControlName,
1936
- formName: formName,
1937
- parameters: { taskIdParam: taskId, taskDescription: taskDescription },
1938
- routeParams: routeParams
1939
- };
1940
- if (SubformMagicService.currentCallerMgSubformServiceRef === null)
1941
- this.ExecuteRouteCommand(routeCommand);
1942
2046
  else
1943
- this.routerCommandsMagicService.AddRouteCommand(routeCommand);
2047
+ guiEvent.Value = event.value;
1944
2048
  }
1945
- if (refreshNeeded)
1946
- this.task.refreshView();
2049
+ this.insertEvent(guiEvent);
1947
2050
  }
1948
- ExecuteRouteCommand(routeCommand) {
1949
- let reusingComponent = false;
1950
- let currentSubformMagicService = routeCommand.callerMgSubformServiceRef;
1951
- let relativeRoute = SubformMagicService.getRelativeRoute(currentSubformMagicService.activatedRoute);
1952
- if (currentSubformMagicService.routesDict[routeCommand.routerOutletName] === routeCommand.routeParams[0]) {
1953
- currentSubformMagicService.router.navigate([{ outlets: { [routeCommand.routerOutletName]: null } }], { relativeTo: relativeRoute })
1954
- .then((result) => {
1955
- SubformMagicService.currentCallerMgSubformServiceRef = currentSubformMagicService;
1956
- currentSubformMagicService.currentRouteDefinition = {
1957
- formName: routeCommand.formName,
1958
- parameters: routeCommand.parameters
1959
- };
1960
- currentSubformMagicService.PerformRouterNavigate(routeCommand.routerOutletName, routeCommand.routeParams);
1961
- });
2051
+ onListBoxSelectionChanged(event, idx) {
2052
+ let guiEvent = getGuiEventObj('selectionchanged', idx, 0);
2053
+ let selectedOptions;
2054
+ if (!isNullOrUndefined(event.target))
2055
+ selectedOptions = event.target.selectedOptions;
2056
+ else
2057
+ selectedOptions = event.source.selectedOptions.selected;
2058
+ let length = selectedOptions.length;
2059
+ let indexes = new Array(length);
2060
+ for (let i = 0; i < length; i++) {
2061
+ if (!isNullOrUndefined(event.target))
2062
+ indexes[i] = (selectedOptions[i]).index;
2063
+ else
2064
+ indexes[i] = (selectedOptions[i]).value;
2065
+ }
2066
+ guiEvent.Value = indexes;
2067
+ this.insertEvent(guiEvent);
2068
+ }
2069
+ onCheckChanged(event, idx, rowId) {
2070
+ if (typeof rowId === 'undefined')
2071
+ rowId = 0;
2072
+ let guiEvent = getGuiEventObj('selectionchanged', idx, rowId);
2073
+ if (typeof (event) == 'boolean') {
2074
+ guiEvent.Value = event;
1962
2075
  }
1963
2076
  else {
1964
- SubformMagicService.currentCallerMgSubformServiceRef = currentSubformMagicService;
1965
- currentSubformMagicService.currentRouteDefinition = {
1966
- formName: routeCommand.formName,
1967
- parameters: routeCommand.parameters
1968
- };
1969
- if (SubformMagicService.routerContainers.length > 0) {
1970
- let routeContainer = SubformMagicService.routerContainers[0];
1971
- SubformMagicService.routerContainers.shift();
1972
- routeContainer.initializeComponent();
1973
- }
1974
- else {
1975
- currentSubformMagicService.PerformRouterNavigate(routeCommand.routerOutletName, routeCommand.routeParams);
1976
- }
2077
+ if (typeof event.target === 'undefined')
2078
+ guiEvent.Value = (event).checked;
2079
+ else
2080
+ guiEvent.Value = (event.target).checked;
1977
2081
  }
2082
+ this.insertEvent(guiEvent);
1978
2083
  }
1979
- PerformRouterNavigate(routerOutletName, routeParams) {
1980
- let relativeRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
1981
- this.router.navigate([{ outlets: { [routerOutletName]: routeParams } }], { relativeTo: relativeRoute })
1982
- .then((result) => {
1983
- if (result !== null && !result) {
1984
- let subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
1985
- subformMagicService.currentRouteDefinition = null;
1986
- SubformMagicService.currentCallerMgSubformServiceRef = null;
1987
- subformMagicService.pendingCommandsCollector.stopCollecting();
1988
- subformMagicService.routerCommandsMagicService.ExecuteNextCommand();
1989
- }
1990
- });
2084
+ mgOnTabSelectionChanged(idx, layer) {
2085
+ let guiEvent = getGuiEventObj('selectionchanged', idx, 0);
2086
+ guiEvent.Value = layer.toString();
2087
+ this.insertEvent(guiEvent);
1991
2088
  }
1992
- init() {
1993
- const pendingCommands = this.pendingCommandsCollector.GetCommands(this.task.taskId);
1994
- if (pendingCommands.length > 0) {
1995
- pendingCommands.forEach(command => { this.task.executeCommand(command); });
1996
- this.task.refreshView();
1997
- }
1998
- this.pendingCommandsCollector.stopCollecting();
2089
+ mgOnRadioSelectionChanged(event, idx) {
2090
+ let result = this.getFormControl('0', idx);
2091
+ let guiEvent = getGuiEventObj('selectionchanged', idx, 0);
2092
+ if (typeof result.value !== 'string')
2093
+ guiEvent.Value = result.value.index;
2094
+ else
2095
+ guiEvent.Value = result.value;
2096
+ this.insertEvent(guiEvent);
1999
2097
  }
2000
- refreshView() {
2001
- this.task.refreshView();
2098
+ close() {
2099
+ this.insertEvent(getGuiEventObj('close', null, 0));
2002
2100
  }
2003
- static getRelativeRoute(sendActivatedRoute) {
2004
- let currentActiveRoute = sendActivatedRoute;
2005
- if (currentActiveRoute.snapshot.routeConfig !== null && currentActiveRoute.snapshot.routeConfig.path === '') {
2006
- currentActiveRoute = currentActiveRoute.parent;
2007
- if (!currentActiveRoute.snapshot.routeConfig.loadChildren)
2008
- console.log("getRelativeRoute(): both path and currentActiveRoute.snapshot.routeConfig.loadChildren are empty.");
2101
+ IsStub() {
2102
+ return this.magic.isStub;
2103
+ }
2104
+ saveData(data) {
2105
+ this.magic.saveData(data);
2106
+ }
2107
+ createData() {
2108
+ let myData = {
2109
+ records: this.Records,
2110
+ template: this.template
2111
+ };
2112
+ let text = 'loadData():any {\n' +
2113
+ ' let stubData = ' + JSON.stringify(myData) + ';\n' +
2114
+ ' this.loadStubData(stubData);}';
2115
+ console.log(text);
2116
+ this.saveData(text);
2117
+ }
2118
+ loadStubData(stubData) {
2119
+ this.Records = stubData.records;
2120
+ this.settemplate(stubData.template);
2121
+ this.taskId = '1';
2122
+ for (let i = 0; i < this.Records.list.length; i++)
2123
+ this.buildTableRowControls(i);
2124
+ }
2125
+ loadData() {
2126
+ alert('Please, overwrite method loadData');
2127
+ }
2128
+ setStubValue(guiRowId, fc, name) {
2129
+ if (this.IsStub()) {
2130
+ try {
2131
+ let val = this.Records.list[guiRowId].values[name];
2132
+ fc.setValue(val);
2133
+ }
2134
+ catch (e) {
2135
+ }
2009
2136
  }
2010
- return currentActiveRoute;
2011
2137
  }
2012
2138
  }
2013
- SubformMagicService.currentCallerMgSubformServiceRef = null;
2014
- SubformMagicService.routerContainers = new Array();
2015
- SubformMagicService.ɵfac = function SubformMagicService_Factory(t) { return new (t || SubformMagicService)(ɵɵinject(TaskMagicService), ɵɵinject(ActivatedRoute), ɵɵinject(ComponentListMagicService), ɵɵinject(CommandsCollectorMagicService), ɵɵinject(Router), ɵɵinject(RouterCommandsMagicService)); };
2016
- SubformMagicService.ɵprov = ɵɵdefineInjectable({ token: SubformMagicService, factory: SubformMagicService.ɵfac });
2017
- (function () { ɵsetClassMetadata(SubformMagicService, [{
2139
+ TaskMagicService.ɵfac = function TaskMagicService_Factory(t) { return new (t || TaskMagicService)(i0.ɵɵinject(EngineMagicService), i0.ɵɵinject(OverlayWindowService)); };
2140
+ TaskMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: TaskMagicService, factory: TaskMagicService.ɵfac });
2141
+ (function () { i0.ɵsetClassMetadata(TaskMagicService, [{
2018
2142
  type: Injectable
2019
- }], function () { return [{ type: TaskMagicService }, { type: ActivatedRoute }, { type: ComponentListMagicService }, { type: CommandsCollectorMagicService }, { type: Router }, { type: RouterCommandsMagicService }]; }, null); })();
2143
+ }], function () { return [{ type: EngineMagicService }, { type: OverlayWindowService }]; }, null); })();
2020
2144
 
2021
2145
  class TableMagicService {
2022
2146
  constructor(componentList, task) {
@@ -2080,9 +2204,9 @@ class TableMagicService {
2080
2204
  return topIndex;
2081
2205
  }
2082
2206
  }
2083
- TableMagicService.ɵfac = function TableMagicService_Factory(t) { return new (t || TableMagicService)(ɵɵinject(ComponentListMagicService), ɵɵinject(TaskMagicService)); };
2084
- TableMagicService.ɵprov = ɵɵdefineInjectable({ token: TableMagicService, factory: TableMagicService.ɵfac });
2085
- (function () { ɵsetClassMetadata(TableMagicService, [{
2207
+ TableMagicService.ɵfac = function TableMagicService_Factory(t) { return new (t || TableMagicService)(i0.ɵɵinject(ComponentListMagicService), i0.ɵɵinject(TaskMagicService)); };
2208
+ TableMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: TableMagicService, factory: TableMagicService.ɵfac });
2209
+ (function () { i0.ɵsetClassMetadata(TableMagicService, [{
2086
2210
  type: Injectable
2087
2211
  }], function () { return [{ type: ComponentListMagicService }, { type: TaskMagicService }]; }, null); })();
2088
2212
 
@@ -2094,11 +2218,11 @@ class TitleMagicService {
2094
2218
  this.titleService.setTitle(newTitle);
2095
2219
  }
2096
2220
  }
2097
- TitleMagicService.ɵfac = function TitleMagicService_Factory(t) { return new (t || TitleMagicService)(ɵɵinject(Title)); };
2098
- TitleMagicService.ɵprov = ɵɵdefineInjectable({ token: TitleMagicService, factory: TitleMagicService.ɵfac });
2099
- (function () { ɵsetClassMetadata(TitleMagicService, [{
2221
+ TitleMagicService.ɵfac = function TitleMagicService_Factory(t) { return new (t || TitleMagicService)(i0.ɵɵinject(i1$1.Title)); };
2222
+ TitleMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: TitleMagicService, factory: TitleMagicService.ɵfac });
2223
+ (function () { i0.ɵsetClassMetadata(TitleMagicService, [{
2100
2224
  type: Injectable
2101
- }], function () { return [{ type: Title }]; }, null); })();
2225
+ }], function () { return [{ type: i1$1.Title }]; }, null); })();
2102
2226
 
2103
2227
  class AccessorMagicService {
2104
2228
  constructor(task) {
@@ -2246,6 +2370,18 @@ class AccessorMagicService {
2246
2370
  getItemListValues(id, rowId) {
2247
2371
  return this.getProperty(id, HtmlProperties.ItemsList, rowId);
2248
2372
  }
2373
+ getFilteredList(controlId, rowId) {
2374
+ if (isNullOrUndefined(rowId))
2375
+ rowId = '0';
2376
+ let items = this.getItemListValues(controlId, rowId);
2377
+ let value = this.task.getFormControl(rowId, controlId).value;
2378
+ if (value !== null && value !== "" && items instanceof Array) {
2379
+ value = value.toLowerCase();
2380
+ return items.filter(option => option.displayValue.toLowerCase().includes(value));
2381
+ }
2382
+ else
2383
+ return items;
2384
+ }
2249
2385
  getDisplayValue(id, rowId) {
2250
2386
  let displayValue = "";
2251
2387
  let o = this.getProperty(id, HtmlProperties.ItemsList, rowId);
@@ -2376,9 +2512,9 @@ class AccessorMagicService {
2376
2512
  return CookieService.deleteCookie(name);
2377
2513
  }
2378
2514
  }
2379
- AccessorMagicService.ɵfac = function AccessorMagicService_Factory(t) { return new (t || AccessorMagicService)(ɵɵinject(TaskMagicService)); };
2380
- AccessorMagicService.ɵprov = ɵɵdefineInjectable({ token: AccessorMagicService, factory: AccessorMagicService.ɵfac });
2381
- (function () { ɵsetClassMetadata(AccessorMagicService, [{
2515
+ AccessorMagicService.ɵfac = function AccessorMagicService_Factory(t) { return new (t || AccessorMagicService)(i0.ɵɵinject(TaskMagicService)); };
2516
+ AccessorMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: AccessorMagicService, factory: AccessorMagicService.ɵfac });
2517
+ (function () { i0.ɵsetClassMetadata(AccessorMagicService, [{
2382
2518
  type: Injectable
2383
2519
  }], function () { return [{ type: TaskMagicService }]; }, null); })();
2384
2520
 
@@ -2395,9 +2531,9 @@ class MagicServices {
2395
2531
  task.mgAccessorService = mgAccessorService;
2396
2532
  }
2397
2533
  }
2398
- MagicServices.ɵfac = function MagicServices_Factory(t) { return new (t || MagicServices)(ɵɵinject(TaskMagicService), ɵɵinject(SubformMagicService), ɵɵinject(TableMagicService), ɵɵinject(TitleMagicService), ɵɵinject(AccessorMagicService)); };
2399
- MagicServices.ɵprov = ɵɵdefineInjectable({ token: MagicServices, factory: MagicServices.ɵfac });
2400
- (function () { ɵsetClassMetadata(MagicServices, [{
2534
+ 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)); };
2535
+ MagicServices.ɵprov = i0.ɵɵdefineInjectable({ token: MagicServices, factory: MagicServices.ɵfac });
2536
+ (function () { i0.ɵsetClassMetadata(MagicServices, [{
2401
2537
  type: Injectable
2402
2538
  }], function () { return [{ type: TaskMagicService }, { type: SubformMagicService }, { type: TableMagicService }, { type: TitleMagicService }, { type: AccessorMagicService }]; }, null); })();
2403
2539
 
@@ -2458,16 +2594,16 @@ class TaskBaseMagicComponent {
2458
2594
  this.task.dispose();
2459
2595
  }
2460
2596
  }
2461
- TaskBaseMagicComponent.ɵfac = function TaskBaseMagicComponent_Factory(t) { return new (t || TaskBaseMagicComponent)(ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(MagicServices)); };
2462
- TaskBaseMagicComponent.ɵcmp = ɵɵdefineComponent({ type: TaskBaseMagicComponent, selectors: [["task-magic"]], inputs: { taskIdParam: "taskIdParam", taskDescription: "taskDescription" }, features: [ɵɵProvidersFeature([TaskMagicService, SubformMagicService, TableMagicService])], decls: 0, vars: 0, template: function TaskBaseMagicComponent_Template(rf, ctx) { }, encapsulation: 2 });
2463
- (function () { ɵsetClassMetadata(TaskBaseMagicComponent, [{
2597
+ TaskBaseMagicComponent.ɵfac = function TaskBaseMagicComponent_Factory(t) { return new (t || TaskBaseMagicComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(MagicServices)); };
2598
+ 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 });
2599
+ (function () { i0.ɵsetClassMetadata(TaskBaseMagicComponent, [{
2464
2600
  type: Component,
2465
2601
  args: [{
2466
2602
  selector: 'task-magic',
2467
2603
  providers: [TaskMagicService, SubformMagicService, TableMagicService],
2468
2604
  template: ''
2469
2605
  }]
2470
- }], function () { return [{ type: ChangeDetectorRef }, { type: MagicServices }]; }, { taskIdParam: [{
2606
+ }], function () { return [{ type: i0.ChangeDetectorRef }, { type: MagicServices }]; }, { taskIdParam: [{
2471
2607
  type: Input
2472
2608
  }], taskDescription: [{
2473
2609
  type: Input
@@ -2502,20 +2638,21 @@ class RowMagicDirective {
2502
2638
  onClick($event) {
2503
2639
  if (this.rowId != '') {
2504
2640
  this._task.insertEvent(getGuiEventObj('click', "magicRow", +this.rowId));
2505
- event.cancelBubble = true;
2641
+ if (MagicDirective.noOfAutoCompleteBoxesOpened < 1)
2642
+ event.cancelBubble = true;
2506
2643
  }
2507
2644
  }
2508
2645
  }
2509
- RowMagicDirective.ɵfac = function RowMagicDirective_Factory(t) { return new (t || RowMagicDirective)(ɵɵdirectiveInject(TaskMagicService), ɵɵdirectiveInject(ElementRef)); };
2510
- RowMagicDirective.ɵdir = ɵɵdefineDirective({ type: RowMagicDirective, selectors: [["", "magicRow", ""]], hostBindings: function RowMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
2511
- ɵɵlistener("click", function RowMagicDirective_click_HostBindingHandler($event) { return ctx.onClick($event); });
2646
+ RowMagicDirective.ɵfac = function RowMagicDirective_Factory(t) { return new (t || RowMagicDirective)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ElementRef)); };
2647
+ RowMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: RowMagicDirective, selectors: [["", "magicRow", ""]], hostBindings: function RowMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
2648
+ i0.ɵɵlistener("click", function RowMagicDirective_click_HostBindingHandler($event) { return ctx.onClick($event); });
2512
2649
  } }, inputs: { rowId: ["magicRow", "rowId"] } });
2513
- (function () { ɵsetClassMetadata(RowMagicDirective, [{
2650
+ (function () { i0.ɵsetClassMetadata(RowMagicDirective, [{
2514
2651
  type: Directive,
2515
2652
  args: [{
2516
2653
  selector: '[magicRow]'
2517
2654
  }]
2518
- }], function () { return [{ type: TaskMagicService }, { type: ElementRef }]; }, { rowId: [{
2655
+ }], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }]; }, { rowId: [{
2519
2656
  type: Input,
2520
2657
  args: ['magicRow']
2521
2658
  }], onClick: [{
@@ -2561,7 +2698,8 @@ class MagicDirective {
2561
2698
  if (this.htmlElement instanceof HTMLButtonElement)
2562
2699
  fromButton = true;
2563
2700
  this.task.insertEvent(getGuiEventObj(event, this.id, +this.rowId, fromButton));
2564
- e.cancelBubble = true;
2701
+ if (MagicDirective.noOfAutoCompleteBoxesOpened < 1)
2702
+ e.cancelBubble = true;
2565
2703
  });
2566
2704
  });
2567
2705
  this.renderer.listen(this.htmlElement, 'change', (e) => {
@@ -2601,7 +2739,7 @@ class MagicDirective {
2601
2739
  (e.keyCode >= GuiConstants.KEY_F1 && e.keyCode <= GuiConstants.KEY_F12);
2602
2740
  if (guiEvent.modifiers !== Modifiers.MODIFIER_NONE || supportedKey) {
2603
2741
  guiEvent.keyCode = e.keyCode;
2604
- if (e.keyCode !== GuiConstants.KEY_ESC || e.keyCode === GuiConstants.KEY_ESC && !MagicDirective.opened)
2742
+ if (e.keyCode !== GuiConstants.KEY_ESC || e.keyCode === GuiConstants.KEY_ESC && (!MagicDirective.opened && MagicDirective.noOfAutoCompleteBoxesOpened < 1))
2605
2743
  e.cancelBubble = true;
2606
2744
  this.task.insertEvent(guiEvent);
2607
2745
  }
@@ -2696,14 +2834,15 @@ class MagicDirective {
2696
2834
  }
2697
2835
  }
2698
2836
  MagicDirective.opened = false;
2699
- MagicDirective.ɵfac = function MagicDirective_Factory(t) { return new (t || MagicDirective)(ɵɵdirectiveInject(TaskMagicService), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(ViewContainerRef), ɵɵdirectiveInject(RowMagicDirective, 8)); };
2700
- MagicDirective.ɵdir = ɵɵdefineDirective({ type: MagicDirective, selectors: [["", "magic", ""]], inputs: { magic: "magic", eventsOnly: "eventsOnly", rowId: "rowId" } });
2701
- (function () { ɵsetClassMetadata(MagicDirective, [{
2837
+ MagicDirective.noOfAutoCompleteBoxesOpened = 0;
2838
+ 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)); };
2839
+ MagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MagicDirective, selectors: [["", "magic", ""]], inputs: { magic: "magic", eventsOnly: "eventsOnly", rowId: "rowId" } });
2840
+ (function () { i0.ɵsetClassMetadata(MagicDirective, [{
2702
2841
  type: Directive,
2703
2842
  args: [{
2704
2843
  selector: '[magic]'
2705
2844
  }]
2706
- }], function () { return [{ type: TaskMagicService }, { type: ElementRef }, { type: Renderer2 }, { type: ViewContainerRef }, { type: RowMagicDirective, decorators: [{
2845
+ }], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: RowMagicDirective, decorators: [{
2707
2846
  type: Optional
2708
2847
  }] }]; }, { magic: [{
2709
2848
  type: Input,
@@ -2882,104 +3021,20 @@ class NoControlMagicDirective extends MagicDirective {
2882
3021
  }
2883
3022
  }
2884
3023
  }
2885
- NoControlMagicDirective.ɵfac = function NoControlMagicDirective_Factory(t) { return new (t || NoControlMagicDirective)(ɵɵdirectiveInject(TaskMagicService), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(ViewContainerRef), ɵɵdirectiveInject(RowMagicDirective, 8)); };
2886
- NoControlMagicDirective.ɵdir = ɵɵdefineDirective({ type: NoControlMagicDirective, selectors: [["", "magicnc", ""]], inputs: { magic: ["magicnc", "magic"] }, features: [ɵɵInheritDefinitionFeature] });
2887
- (function () { ɵsetClassMetadata(NoControlMagicDirective, [{
3024
+ 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)); };
3025
+ NoControlMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: NoControlMagicDirective, selectors: [["", "magicnc", ""]], inputs: { magic: ["magicnc", "magic"] }, features: [i0.ɵɵInheritDefinitionFeature] });
3026
+ (function () { i0.ɵsetClassMetadata(NoControlMagicDirective, [{
2888
3027
  type: Directive,
2889
3028
  args: [{
2890
3029
  selector: '[magicnc]'
2891
3030
  }]
2892
- }], function () { return [{ type: TaskMagicService }, { type: ElementRef }, { type: Renderer2 }, { type: ViewContainerRef }, { type: RowMagicDirective, decorators: [{
3031
+ }], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: RowMagicDirective, decorators: [{
2893
3032
  type: Optional
2894
3033
  }] }]; }, { magic: [{
2895
3034
  type: Input,
2896
3035
  args: ['magicnc']
2897
3036
  }] }); })();
2898
3037
 
2899
- class RouterContainerMagicComponent {
2900
- constructor(activatedRoute, magic, containerTaskService, componentFactoryResolver, viewContainerRef, componentList, pendingCommandsCollector, routerCommandsMagicService) {
2901
- this.activatedRoute = activatedRoute;
2902
- this.magic = magic;
2903
- this.containerTaskService = containerTaskService;
2904
- this.componentFactoryResolver = componentFactoryResolver;
2905
- this.viewContainerRef = viewContainerRef;
2906
- this.componentList = componentList;
2907
- this.pendingCommandsCollector = pendingCommandsCollector;
2908
- this.routerCommandsMagicService = routerCommandsMagicService;
2909
- this.componentRef = null;
2910
- this.parentMgSubformService = null;
2911
- }
2912
- ngOnInit() {
2913
- let outletname = this.activatedRoute.outlet;
2914
- let subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
2915
- let currentActiveRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
2916
- if (subformMagicService == null || subformMagicService.currentRouteDefinition === null) {
2917
- this.insertRouteEvent(currentActiveRoute);
2918
- SubformMagicService.routerContainers.push(this);
2919
- }
2920
- else {
2921
- this.initializeComponent();
2922
- }
2923
- }
2924
- insertRouteEvent(currentActiveRoute) {
2925
- let guiEvent = getGuiEventObj('RouterNavigate', null, 0);
2926
- guiEvent.RouterPath = currentActiveRoute.snapshot.routeConfig.path;
2927
- if (currentActiveRoute.snapshot.outlet !== 'primary')
2928
- guiEvent.RouterOutletName = currentActiveRoute.snapshot.outlet;
2929
- let calcRouterPath = currentActiveRoute.routeConfig.path;
2930
- if (calcRouterPath.length > 0) {
2931
- let routerPath = calcRouterPath;
2932
- let tokens = StrUtil.tokenize(routerPath, "/:");
2933
- guiEvent.RouterPath = tokens[0];
2934
- guiEvent.RouterParams = new List();
2935
- for (let i = 1; i < tokens.length; i++) {
2936
- guiEvent.RouterParams.push(this.activatedRoute.snapshot.params[tokens[i]]);
2937
- }
2938
- }
2939
- this.containerTaskService.insertEvent(guiEvent);
2940
- }
2941
- initializeComponent() {
2942
- let subformMagicService = SubformMagicService.currentCallerMgSubformServiceRef;
2943
- if (subformMagicService.currentRouteDefinition !== null) {
2944
- let comp = this.componentList.getComponent(subformMagicService.currentRouteDefinition.formName);
2945
- const componentFactory = this.componentFactoryResolver.resolveComponentFactory(comp);
2946
- this.componentRef = this.viewContainerRef.createComponent(componentFactory);
2947
- Object.assign(this.componentRef.instance, subformMagicService.currentRouteDefinition.parameters);
2948
- let myActiveRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
2949
- let routeParams = StrUtil.tokenize(myActiveRoute.snapshot.routeConfig.path, "/:");
2950
- subformMagicService.routesDict[myActiveRoute.snapshot.outlet] = routeParams[0];
2951
- this.parentMgSubformService = subformMagicService;
2952
- subformMagicService.currentRouteDefinition = null;
2953
- SubformMagicService.currentCallerMgSubformServiceRef = null;
2954
- let ignoreParamChange = true;
2955
- myActiveRoute.paramMap.subscribe(params => {
2956
- if (!ignoreParamChange)
2957
- this.insertRouteEvent(myActiveRoute);
2958
- ignoreParamChange = false;
2959
- });
2960
- this.parentMgSubformService.refreshView();
2961
- this.routerCommandsMagicService.ExecuteNextCommand();
2962
- }
2963
- }
2964
- ngOnDestroy() {
2965
- if (this.componentRef != null) {
2966
- this.componentRef.instance.task.close();
2967
- let currentActiveRoute = SubformMagicService.getRelativeRoute(this.activatedRoute);
2968
- this.parentMgSubformService.routesDict[currentActiveRoute.outlet] = "";
2969
- }
2970
- }
2971
- }
2972
- RouterContainerMagicComponent.ɵfac = function RouterContainerMagicComponent_Factory(t) { return new (t || RouterContainerMagicComponent)(ɵɵdirectiveInject(ActivatedRoute), ɵɵdirectiveInject(EngineMagicService), ɵɵdirectiveInject(TaskMagicService), ɵɵdirectiveInject(ComponentFactoryResolver), ɵɵdirectiveInject(ViewContainerRef), ɵɵdirectiveInject(ComponentListMagicService), ɵɵdirectiveInject(CommandsCollectorMagicService), ɵɵdirectiveInject(RouterCommandsMagicService)); };
2973
- RouterContainerMagicComponent.ɵcmp = ɵɵdefineComponent({ type: RouterContainerMagicComponent, selectors: [["magic-route-outlet"]], decls: 0, vars: 0, template: function RouterContainerMagicComponent_Template(rf, ctx) { }, encapsulation: 2 });
2974
- (function () { ɵsetClassMetadata(RouterContainerMagicComponent, [{
2975
- type: Component,
2976
- args: [{
2977
- selector: 'magic-route-outlet',
2978
- template: `
2979
- `
2980
- }]
2981
- }], function () { return [{ type: ActivatedRoute }, { type: EngineMagicService }, { type: TaskMagicService }, { type: ComponentFactoryResolver }, { type: ViewContainerRef }, { type: ComponentListMagicService }, { type: CommandsCollectorMagicService }, { type: RouterCommandsMagicService }]; }, null); })();
2982
-
2983
3038
  class Constants {
2984
3039
  }
2985
3040
  Constants.DATE_FMT = 'dd/MMM/yyyy';
@@ -3007,9 +3062,9 @@ class DateMagicPipe extends DatePipe {
3007
3062
  return value;
3008
3063
  }
3009
3064
  }
3010
- DateMagicPipe.ɵfac = function DateMagicPipe_Factory(t) { return new (t || DateMagicPipe)(ɵɵdirectiveInject(TaskMagicService)); };
3011
- DateMagicPipe.ɵpipe = ɵɵdefinePipe({ name: "magicDate", type: DateMagicPipe, pure: true });
3012
- (function () { ɵsetClassMetadata(DateMagicPipe, [{
3065
+ DateMagicPipe.ɵfac = function DateMagicPipe_Factory(t) { return new (t || DateMagicPipe)(i0.ɵɵdirectiveInject(TaskMagicService)); };
3066
+ DateMagicPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "magicDate", type: DateMagicPipe, pure: true });
3067
+ (function () { i0.ɵsetClassMetadata(DateMagicPipe, [{
3013
3068
  type: Pipe,
3014
3069
  args: [{
3015
3070
  name: 'magicDate'
@@ -3277,11 +3332,11 @@ class MgformatMagicDirective {
3277
3332
  return false;
3278
3333
  }
3279
3334
  }
3280
- MgformatMagicDirective.ɵfac = function MgformatMagicDirective_Factory(t) { return new (t || MgformatMagicDirective)(ɵɵdirectiveInject(MagicDirective), ɵɵdirectiveInject(TaskMagicService)); };
3281
- MgformatMagicDirective.ɵdir = ɵɵdefineDirective({ type: MgformatMagicDirective, selectors: [["", "mgFormat", ""]], hostBindings: function MgformatMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
3282
- ɵɵlistener("focus", function MgformatMagicDirective_focus_HostBindingHandler($event) { return ctx.onFocusEvent($event); })("change", function MgformatMagicDirective_change_HostBindingHandler($event) { return ctx.onChangeEvent($event); });
3335
+ MgformatMagicDirective.ɵfac = function MgformatMagicDirective_Factory(t) { return new (t || MgformatMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective), i0.ɵɵdirectiveInject(TaskMagicService)); };
3336
+ MgformatMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MgformatMagicDirective, selectors: [["", "mgFormat", ""]], hostBindings: function MgformatMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
3337
+ i0.ɵɵlistener("focus", function MgformatMagicDirective_focus_HostBindingHandler($event) { return ctx.onFocusEvent($event); })("change", function MgformatMagicDirective_change_HostBindingHandler($event) { return ctx.onChangeEvent($event); });
3283
3338
  } } });
3284
- (function () { ɵsetClassMetadata(MgformatMagicDirective, [{
3339
+ (function () { i0.ɵsetClassMetadata(MgformatMagicDirective, [{
3285
3340
  type: Directive,
3286
3341
  args: [{
3287
3342
  selector: '[mgFormat]'
@@ -3329,9 +3384,9 @@ class TimeMagicPipe extends DatePipe {
3329
3384
  return value;
3330
3385
  }
3331
3386
  }
3332
- TimeMagicPipe.ɵfac = function TimeMagicPipe_Factory(t) { return new (t || TimeMagicPipe)(ɵɵdirectiveInject(TaskMagicService)); };
3333
- TimeMagicPipe.ɵpipe = ɵɵdefinePipe({ name: "magicTime", type: TimeMagicPipe, pure: true });
3334
- (function () { ɵsetClassMetadata(TimeMagicPipe, [{
3387
+ TimeMagicPipe.ɵfac = function TimeMagicPipe_Factory(t) { return new (t || TimeMagicPipe)(i0.ɵɵdirectiveInject(TaskMagicService)); };
3388
+ TimeMagicPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "magicTime", type: TimeMagicPipe, pure: true });
3389
+ (function () { i0.ɵsetClassMetadata(TimeMagicPipe, [{
3335
3390
  type: Pipe,
3336
3391
  args: [{
3337
3392
  name: 'magicTime'
@@ -3369,15 +3424,15 @@ class RangeValidatorMagicDirective {
3369
3424
  return Object.keys(formGroup).find(name => c === formGroup[name]) || null;
3370
3425
  }
3371
3426
  }
3372
- RangeValidatorMagicDirective.ɵfac = function RangeValidatorMagicDirective_Factory(t) { return new (t || RangeValidatorMagicDirective)(ɵɵdirectiveInject(TaskMagicService), ɵɵdirectiveInject(ViewContainerRef)); };
3373
- RangeValidatorMagicDirective.ɵdir = ɵɵdefineDirective({ type: RangeValidatorMagicDirective, selectors: [["", "rangevalidator", ""]], features: [ɵɵProvidersFeature([
3427
+ RangeValidatorMagicDirective.ɵfac = function RangeValidatorMagicDirective_Factory(t) { return new (t || RangeValidatorMagicDirective)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
3428
+ RangeValidatorMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: RangeValidatorMagicDirective, selectors: [["", "rangevalidator", ""]], features: [i0.ɵɵProvidersFeature([
3374
3429
  {
3375
3430
  provide: NG_VALIDATORS,
3376
3431
  useExisting: RangeValidatorMagicDirective,
3377
3432
  multi: true,
3378
3433
  }
3379
3434
  ])] });
3380
- (function () { ɵsetClassMetadata(RangeValidatorMagicDirective, [{
3435
+ (function () { i0.ɵsetClassMetadata(RangeValidatorMagicDirective, [{
3381
3436
  type: Directive,
3382
3437
  args: [{
3383
3438
  selector: '[rangevalidator] ',
@@ -3389,13 +3444,13 @@ RangeValidatorMagicDirective.ɵdir = ɵɵdefineDirective({ type: RangeValidatorM
3389
3444
  }
3390
3445
  ]
3391
3446
  }]
3392
- }], function () { return [{ type: TaskMagicService }, { type: ViewContainerRef }]; }, null); })();
3447
+ }], function () { return [{ type: TaskMagicService }, { type: i0.ViewContainerRef }]; }, null); })();
3393
3448
 
3394
3449
  function SubformMagicComponent_ndc_dynamic_0_Template(rf, ctx) { if (rf & 1) {
3395
- ɵɵelement(0, "ndc-dynamic", 1);
3450
+ i0.ɵɵelement(0, "ndc-dynamic", 1);
3396
3451
  } if (rf & 2) {
3397
- const ctx_r0 = ɵɵnextContext();
3398
- ɵɵproperty("ndcDynamicComponent", ctx_r0.Component)("ndcDynamicInputs", ctx_r0.Parameters);
3452
+ const ctx_r0 = i0.ɵɵnextContext();
3453
+ i0.ɵɵproperty("ndcDynamicComponent", ctx_r0.Component)("ndcDynamicInputs", ctx_r0.Parameters);
3399
3454
  } }
3400
3455
  class SubformMagicComponent {
3401
3456
  constructor(vcRef, mgSub) {
@@ -3413,13 +3468,13 @@ class SubformMagicComponent {
3413
3468
  return this.mgSub.mgGetParameters(this.id);
3414
3469
  }
3415
3470
  }
3416
- SubformMagicComponent.ɵfac = function SubformMagicComponent_Factory(t) { return new (t || SubformMagicComponent)(ɵɵdirectiveInject(ViewContainerRef), ɵɵdirectiveInject(SubformMagicService)); };
3417
- SubformMagicComponent.ɵcmp = ɵɵ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) { if (rf & 1) {
3418
- ɵɵtemplate(0, SubformMagicComponent_ndc_dynamic_0_Template, 1, 2, "ndc-dynamic", 0);
3471
+ SubformMagicComponent.ɵfac = function SubformMagicComponent_Factory(t) { return new (t || SubformMagicComponent)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(SubformMagicService)); };
3472
+ 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) { if (rf & 1) {
3473
+ i0.ɵɵtemplate(0, SubformMagicComponent_ndc_dynamic_0_Template, 1, 2, "ndc-dynamic", 0);
3419
3474
  } if (rf & 2) {
3420
- ɵɵproperty("ngIf", ctx.Component);
3421
- } }, directives: [NgIf, DynamicComponent, DynamicIoDirective], encapsulation: 2 });
3422
- (function () { ɵsetClassMetadata(SubformMagicComponent, [{
3475
+ i0.ɵɵproperty("ngIf", ctx.Component);
3476
+ } }, directives: [i1.NgIf, i3.DynamicComponent, i3.DynamicIoDirective], encapsulation: 2 });
3477
+ (function () { i0.ɵsetClassMetadata(SubformMagicComponent, [{
3423
3478
  type: Component,
3424
3479
  args: [{
3425
3480
  selector: 'magic-subform',
@@ -3431,34 +3486,34 @@ SubformMagicComponent.ɵcmp = ɵɵdefineComponent({ type: SubformMagicComponent,
3431
3486
  </ndc-dynamic>
3432
3487
  `
3433
3488
  }]
3434
- }], function () { return [{ type: ViewContainerRef }, { type: SubformMagicService }]; }, { magic: [{
3489
+ }], function () { return [{ type: i0.ViewContainerRef }, { type: SubformMagicService }]; }, { magic: [{
3435
3490
  type: Input,
3436
3491
  args: ['magic']
3437
3492
  }] }); })();
3438
3493
 
3439
- const _c0$2 = ["customContent"];
3494
+ const _c0$1 = ["customContent"];
3440
3495
  function ErrorMagicComponent_div_0_span_4_Template(rf, ctx) { if (rf & 1) {
3441
- ɵɵelementStart(0, "span");
3442
- ɵɵtext(1);
3443
- ɵɵelementEnd();
3496
+ i0.ɵɵelementStart(0, "span");
3497
+ i0.ɵɵtext(1);
3498
+ i0.ɵɵelementEnd();
3444
3499
  } if (rf & 2) {
3445
- const ctx_r2 = ɵɵnextContext(2);
3446
- ɵɵadvance(1);
3447
- ɵɵtextInterpolate1(" ", ctx_r2.mgService.getErrMsg(ctx_r2.id, ctx_r2.rowId), " ");
3500
+ const ctx_r2 = i0.ɵɵnextContext(2);
3501
+ i0.ɵɵadvance(1);
3502
+ i0.ɵɵtextInterpolate1(" ", ctx_r2.mgService.getErrMsg(ctx_r2.id, ctx_r2.rowId), " ");
3448
3503
  } }
3449
3504
  function ErrorMagicComponent_div_0_Template(rf, ctx) { if (rf & 1) {
3450
- ɵɵelementStart(0, "div");
3451
- ɵɵelementStart(1, "div", null, 1);
3452
- ɵɵprojection(3);
3453
- ɵɵelementEnd();
3454
- ɵɵtemplate(4, ErrorMagicComponent_div_0_span_4_Template, 2, 1, "span", 0);
3455
- ɵɵelementEnd();
3505
+ i0.ɵɵelementStart(0, "div");
3506
+ i0.ɵɵelementStart(1, "div", null, 1);
3507
+ i0.ɵɵprojection(3);
3508
+ i0.ɵɵelementEnd();
3509
+ i0.ɵɵtemplate(4, ErrorMagicComponent_div_0_span_4_Template, 2, 1, "span", 0);
3510
+ i0.ɵɵelementEnd();
3456
3511
  } if (rf & 2) {
3457
- const ctx_r0 = ɵɵnextContext();
3458
- ɵɵadvance(4);
3459
- ɵɵproperty("ngIf", ctx_r0.defaultDisplay);
3512
+ const ctx_r0 = i0.ɵɵnextContext();
3513
+ i0.ɵɵadvance(4);
3514
+ i0.ɵɵproperty("ngIf", ctx_r0.defaultDisplay);
3460
3515
  } }
3461
- const _c1$1 = ["*"];
3516
+ const _c1 = ["*"];
3462
3517
  class ErrorMagicComponent {
3463
3518
  constructor(_task, mgService, changeDetectorRef) {
3464
3519
  this._task = _task;
@@ -3511,19 +3566,19 @@ class ErrorMagicComponent {
3511
3566
  return false;
3512
3567
  }
3513
3568
  }
3514
- ErrorMagicComponent.ɵfac = function ErrorMagicComponent_Factory(t) { return new (t || ErrorMagicComponent)(ɵɵdirectiveInject(TaskMagicService), ɵɵdirectiveInject(AccessorMagicService), ɵɵdirectiveInject(ChangeDetectorRef)); };
3515
- ErrorMagicComponent.ɵcmp = ɵɵdefineComponent({ type: ErrorMagicComponent, selectors: [["mgError"]], viewQuery: function ErrorMagicComponent_Query(rf, ctx) { if (rf & 1) {
3516
- ɵɵviewQuery(_c0$2, true);
3569
+ ErrorMagicComponent.ɵfac = function ErrorMagicComponent_Factory(t) { return new (t || ErrorMagicComponent)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(AccessorMagicService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
3570
+ ErrorMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ErrorMagicComponent, selectors: [["mgError"]], viewQuery: function ErrorMagicComponent_Query(rf, ctx) { if (rf & 1) {
3571
+ i0.ɵɵviewQuery(_c0$1, true);
3517
3572
  } if (rf & 2) {
3518
3573
  var _t;
3519
- ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.CustomContent = _t.first);
3520
- } }, inputs: { magic: "magic", rowId1: ["rowId", "rowId1"] }, ngContentSelectors: _c1$1, decls: 1, vars: 1, consts: [[4, "ngIf"], ["customContent", ""]], template: function ErrorMagicComponent_Template(rf, ctx) { if (rf & 1) {
3521
- ɵɵprojectionDef();
3522
- ɵɵtemplate(0, ErrorMagicComponent_div_0_Template, 5, 1, "div", 0);
3574
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.CustomContent = _t.first);
3575
+ } }, inputs: { magic: "magic", rowId1: ["rowId", "rowId1"] }, ngContentSelectors: _c1, decls: 1, vars: 1, consts: [[4, "ngIf"], ["customContent", ""]], template: function ErrorMagicComponent_Template(rf, ctx) { if (rf & 1) {
3576
+ i0.ɵɵprojectionDef();
3577
+ i0.ɵɵtemplate(0, ErrorMagicComponent_div_0_Template, 5, 1, "div", 0);
3523
3578
  } if (rf & 2) {
3524
- ɵɵproperty("ngIf", ctx.HasErrors(ctx.id));
3525
- } }, directives: [NgIf], encapsulation: 2 });
3526
- (function () { ɵsetClassMetadata(ErrorMagicComponent, [{
3579
+ i0.ɵɵproperty("ngIf", ctx.HasErrors(ctx.id));
3580
+ } }, directives: [i1.NgIf], encapsulation: 2 });
3581
+ (function () { i0.ɵsetClassMetadata(ErrorMagicComponent, [{
3527
3582
  type: Component,
3528
3583
  args: [{
3529
3584
  selector: 'mgError',
@@ -3537,7 +3592,7 @@ ErrorMagicComponent.ɵcmp = ɵɵdefineComponent({ type: ErrorMagicComponent, sel
3537
3592
  </div>
3538
3593
  `
3539
3594
  }]
3540
- }], function () { return [{ type: TaskMagicService }, { type: AccessorMagicService }, { type: ChangeDetectorRef }]; }, { magic: [{
3595
+ }], function () { return [{ type: TaskMagicService }, { type: AccessorMagicService }, { type: i0.ChangeDetectorRef }]; }, { magic: [{
3541
3596
  type: Input,
3542
3597
  args: ['magic']
3543
3598
  }], rowId1: [{
@@ -3556,11 +3611,11 @@ class CheckboxMagicDirective {
3556
3611
  this.magicDirective.task.onCheckChanged($event, this.magicDirective.id, +this.magicDirective.rowId);
3557
3612
  }
3558
3613
  }
3559
- CheckboxMagicDirective.ɵfac = function CheckboxMagicDirective_Factory(t) { return new (t || CheckboxMagicDirective)(ɵɵdirectiveInject(MagicDirective)); };
3560
- CheckboxMagicDirective.ɵdir = ɵɵdefineDirective({ type: CheckboxMagicDirective, selectors: [["input", "type", "checkbox", "magic", "", 3, "noFormControl", ""]], hostBindings: function CheckboxMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
3561
- ɵɵlistener("change", function CheckboxMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
3614
+ CheckboxMagicDirective.ɵfac = function CheckboxMagicDirective_Factory(t) { return new (t || CheckboxMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
3615
+ CheckboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: CheckboxMagicDirective, selectors: [["input", "type", "checkbox", "magic", "", 3, "noFormControl", ""]], hostBindings: function CheckboxMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
3616
+ i0.ɵɵlistener("change", function CheckboxMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
3562
3617
  } } });
3563
- (function () { ɵsetClassMetadata(CheckboxMagicDirective, [{
3618
+ (function () { i0.ɵsetClassMetadata(CheckboxMagicDirective, [{
3564
3619
  type: Directive,
3565
3620
  args: [{
3566
3621
  selector: `
@@ -3580,11 +3635,11 @@ class ComboboxMagicDirective {
3580
3635
  this.magicDirective.task.onComboboxSelectionChanged($event, this.magicDirective.id, +this.magicDirective.rowId);
3581
3636
  }
3582
3637
  }
3583
- ComboboxMagicDirective.ɵfac = function ComboboxMagicDirective_Factory(t) { return new (t || ComboboxMagicDirective)(ɵɵdirectiveInject(MagicDirective)); };
3584
- ComboboxMagicDirective.ɵdir = ɵɵdefineDirective({ type: ComboboxMagicDirective, selectors: [["select", "magic", "", 3, "multiple", ""]], hostBindings: function ComboboxMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
3585
- ɵɵlistener("change", function ComboboxMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
3638
+ ComboboxMagicDirective.ɵfac = function ComboboxMagicDirective_Factory(t) { return new (t || ComboboxMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
3639
+ ComboboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: ComboboxMagicDirective, selectors: [["select", "magic", "", 3, "multiple", ""]], hostBindings: function ComboboxMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
3640
+ i0.ɵɵlistener("change", function ComboboxMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
3586
3641
  } } });
3587
- (function () { ɵsetClassMetadata(ComboboxMagicDirective, [{
3642
+ (function () { i0.ɵsetClassMetadata(ComboboxMagicDirective, [{
3588
3643
  type: Directive,
3589
3644
  args: [{
3590
3645
  selector: `select[magic]:not([multiple])`,
@@ -3600,30 +3655,30 @@ class ExitMagicService {
3600
3655
  }
3601
3656
  }
3602
3657
  ExitMagicService.ɵfac = function ExitMagicService_Factory(t) { return new (t || ExitMagicService)(); };
3603
- ExitMagicService.ɵprov = ɵɵdefineInjectable({ token: ExitMagicService, factory: ExitMagicService.ɵfac });
3604
- (function () { ɵsetClassMetadata(ExitMagicService, [{
3658
+ ExitMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: ExitMagicService, factory: ExitMagicService.ɵfac });
3659
+ (function () { i0.ɵsetClassMetadata(ExitMagicService, [{
3605
3660
  type: Injectable
3606
3661
  }], null, null); })();
3607
3662
 
3608
- const _c0$3 = ["magicRoot"];
3663
+ const _c0 = ["magicRoot"];
3609
3664
  function MagicShellComponent_ndc_dynamic_2_Template(rf, ctx) { if (rf & 1) {
3610
- ɵɵelement(0, "ndc-dynamic", 6);
3665
+ i0.ɵɵelement(0, "ndc-dynamic", 6);
3611
3666
  } if (rf & 2) {
3612
- const ctx_r1 = ɵɵnextContext();
3613
- ɵɵproperty("ndcDynamicComponent", ctx_r1.RootComponent)("ndcDynamicInputs", ctx_r1.RootComponentParameters);
3667
+ const ctx_r1 = i0.ɵɵnextContext();
3668
+ i0.ɵɵproperty("ndcDynamicComponent", ctx_r1.RootComponent)("ndcDynamicInputs", ctx_r1.RootComponentParameters);
3614
3669
  } }
3615
3670
  function MagicShellComponent_div_5_Template(rf, ctx) { if (rf & 1) {
3616
- ɵɵelementStart(0, "div", 7);
3617
- ɵɵelementContainer(1, 8);
3618
- ɵɵelementEnd();
3671
+ i0.ɵɵelementStart(0, "div", 7);
3672
+ i0.ɵɵelementContainer(1, 8);
3673
+ i0.ɵɵelementEnd();
3619
3674
  } if (rf & 2) {
3620
- const ctx_r3 = ɵɵnextContext();
3621
- const _r4 = ɵɵreference(7);
3622
- ɵɵadvance(1);
3623
- ɵɵproperty("ngTemplateOutlet", ctx_r3.SpinnerTemplate ? ctx_r3.SpinnerTemplate : _r4);
3675
+ const ctx_r3 = i0.ɵɵnextContext();
3676
+ const _r4 = i0.ɵɵreference(7);
3677
+ i0.ɵɵadvance(1);
3678
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.SpinnerTemplate ? ctx_r3.SpinnerTemplate : _r4);
3624
3679
  } }
3625
3680
  function MagicShellComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
3626
- ɵɵelement(0, "div", 9);
3681
+ i0.ɵɵelement(0, "div", 9);
3627
3682
  } }
3628
3683
  class MagicShellComponent {
3629
3684
  constructor(engineMagicService, componentList, changeDetectorRef, titleService, overlayWindowService, httpClient, pendingCommandsCollector, exitMagicService) {
@@ -3728,28 +3783,28 @@ class MagicShellComponent {
3728
3783
  }
3729
3784
  }
3730
3785
  }
3731
- MagicShellComponent.ɵfac = function MagicShellComponent_Factory(t) { return new (t || MagicShellComponent)(ɵɵdirectiveInject(EngineMagicService), ɵɵdirectiveInject(ComponentListMagicService), ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(Title), ɵɵdirectiveInject(OverlayWindowService), ɵɵdirectiveInject(HttpClient), ɵɵdirectiveInject(CommandsCollectorMagicService), ɵɵdirectiveInject(ExitMagicService, 8)); };
3732
- MagicShellComponent.ɵcmp = ɵɵdefineComponent({ type: MagicShellComponent, selectors: [["magic-root"]], viewQuery: function MagicShellComponent_Query(rf, ctx) { if (rf & 1) {
3733
- ɵɵstaticViewQuery(_c0$3, true);
3786
+ 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)); };
3787
+ MagicShellComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicShellComponent, selectors: [["magic-root"]], viewQuery: function MagicShellComponent_Query(rf, ctx) { if (rf & 1) {
3788
+ i0.ɵɵstaticViewQuery(_c0, true);
3734
3789
  } if (rf & 2) {
3735
3790
  var _t;
3736
- ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.rootMagicElementRef = _t.first);
3791
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.rootMagicElementRef = _t.first);
3737
3792
  } }, hostBindings: function MagicShellComponent_HostBindings(rf, ctx) { if (rf & 1) {
3738
- ɵɵlistener("beforeunload", function MagicShellComponent_beforeunload_HostBindingHandler($event) { return ctx.onBeforeUnload($event); }, false, ɵɵresolveWindow)("unload", function MagicShellComponent_unload_HostBindingHandler($event) { return ctx.onUnload($event); }, false, ɵɵresolveWindow);
3739
- } }, inputs: { SpinnerTemplate: "SpinnerTemplate" }, features: [ɵɵ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) { if (rf & 1) {
3740
- ɵɵelementStart(0, "div", null, 0);
3741
- ɵɵtemplate(2, MagicShellComponent_ndc_dynamic_2_Template, 1, 2, "ndc-dynamic", 1);
3742
- ɵɵelement(3, "div", 2, 3);
3743
- ɵɵelementEnd();
3744
- ɵɵtemplate(5, MagicShellComponent_div_5_Template, 2, 1, "div", 4);
3745
- ɵɵtemplate(6, MagicShellComponent_ng_template_6_Template, 1, 0, "ng-template", null, 5, ɵɵtemplateRefExtractor);
3793
+ 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);
3794
+ } }, 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) { if (rf & 1) {
3795
+ i0.ɵɵelementStart(0, "div", null, 0);
3796
+ i0.ɵɵtemplate(2, MagicShellComponent_ndc_dynamic_2_Template, 1, 2, "ndc-dynamic", 1);
3797
+ i0.ɵɵelement(3, "div", 2, 3);
3798
+ i0.ɵɵelementEnd();
3799
+ i0.ɵɵtemplate(5, MagicShellComponent_div_5_Template, 2, 1, "div", 4);
3800
+ i0.ɵɵtemplate(6, MagicShellComponent_ng_template_6_Template, 1, 0, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
3746
3801
  } if (rf & 2) {
3747
- ɵɵadvance(2);
3748
- ɵɵproperty("ngIf", ctx.RootComponent !== null);
3749
- ɵɵadvance(3);
3750
- ɵɵproperty("ngIf", ctx.showSpinner);
3751
- } }, directives: [NgIf, MagicViewContainerRef, DynamicComponent, DynamicIoDirective, 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 }"] });
3752
- (function () { ɵsetClassMetadata(MagicShellComponent, [{
3802
+ i0.ɵɵadvance(2);
3803
+ i0.ɵɵproperty("ngIf", ctx.RootComponent !== null);
3804
+ i0.ɵɵadvance(3);
3805
+ i0.ɵɵproperty("ngIf", ctx.showSpinner);
3806
+ } }, 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 }"] });
3807
+ (function () { i0.ɵsetClassMetadata(MagicShellComponent, [{
3753
3808
  type: Component,
3754
3809
  args: [{
3755
3810
  selector: 'magic-root',
@@ -3805,7 +3860,7 @@ MagicShellComponent.ɵcmp = ɵɵdefineComponent({ type: MagicShellComponent, sel
3805
3860
  }
3806
3861
  `]
3807
3862
  }]
3808
- }], function () { return [{ type: EngineMagicService }, { type: ComponentListMagicService }, { type: ChangeDetectorRef }, { type: Title }, { type: OverlayWindowService }, { type: HttpClient }, { type: CommandsCollectorMagicService }, { type: ExitMagicService, decorators: [{
3863
+ }], function () { return [{ type: EngineMagicService }, { type: ComponentListMagicService }, { type: i0.ChangeDetectorRef }, { type: i1$1.Title }, { type: OverlayWindowService }, { type: i5.HttpClient }, { type: CommandsCollectorMagicService }, { type: ExitMagicService, decorators: [{
3809
3864
  type: Optional
3810
3865
  }] }]; }, { rootMagicElementRef: [{
3811
3866
  type: ViewChild,
@@ -3828,11 +3883,11 @@ const CHECKBOX_VALUE_ACCESSOR = {
3828
3883
  class MagicCheckboxControlValueAccessor extends CheckboxControlValueAccessor {
3829
3884
  }
3830
3885
  MagicCheckboxControlValueAccessor.ɵfac = function MagicCheckboxControlValueAccessor_Factory(t) { return ɵMagicCheckboxControlValueAccessor_BaseFactory(t || MagicCheckboxControlValueAccessor); };
3831
- MagicCheckboxControlValueAccessor.ɵdir = ɵɵ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) { if (rf & 1) {
3832
- ɵɵlistener("change", function MagicCheckboxControlValueAccessor_change_HostBindingHandler($event) { return ctx.onChange($event.target.checked); })("blur", function MagicCheckboxControlValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
3833
- } }, features: [ɵɵProvidersFeature([CHECKBOX_VALUE_ACCESSOR]), ɵɵInheritDefinitionFeature] });
3834
- const ɵMagicCheckboxControlValueAccessor_BaseFactory = ɵɵgetInheritedFactory(MagicCheckboxControlValueAccessor);
3835
- (function () { ɵsetClassMetadata(MagicCheckboxControlValueAccessor, [{
3886
+ 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) { if (rf & 1) {
3887
+ i0.ɵɵlistener("change", function MagicCheckboxControlValueAccessor_change_HostBindingHandler($event) { return ctx.onChange($event.target.checked); })("blur", function MagicCheckboxControlValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
3888
+ } }, features: [i0.ɵɵProvidersFeature([CHECKBOX_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature] });
3889
+ const ɵMagicCheckboxControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(MagicCheckboxControlValueAccessor);
3890
+ (function () { i0.ɵsetClassMetadata(MagicCheckboxControlValueAccessor, [{
3836
3891
  type: Directive,
3837
3892
  args: [{
3838
3893
  selector: `
@@ -3853,11 +3908,11 @@ const MAGIC_DEFAULT_VALUE_ACCESSOR = {
3853
3908
  class MagicDefaultValueAccessor extends DefaultValueAccessor {
3854
3909
  }
3855
3910
  MagicDefaultValueAccessor.ɵfac = function MagicDefaultValueAccessor_Factory(t) { return ɵMagicDefaultValueAccessor_BaseFactory(t || MagicDefaultValueAccessor); };
3856
- MagicDefaultValueAccessor.ɵdir = ɵɵ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) { if (rf & 1) {
3857
- ɵɵ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); });
3858
- } }, exportAs: ["magic"], features: [ɵɵProvidersFeature([MAGIC_DEFAULT_VALUE_ACCESSOR]), ɵɵInheritDefinitionFeature] });
3859
- const ɵMagicDefaultValueAccessor_BaseFactory = ɵɵgetInheritedFactory(MagicDefaultValueAccessor);
3860
- (function () { ɵsetClassMetadata(MagicDefaultValueAccessor, [{
3911
+ 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) { if (rf & 1) {
3912
+ 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); });
3913
+ } }, exportAs: ["magic"], features: [i0.ɵɵProvidersFeature([MAGIC_DEFAULT_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature] });
3914
+ const ɵMagicDefaultValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(MagicDefaultValueAccessor);
3915
+ (function () { i0.ɵsetClassMetadata(MagicDefaultValueAccessor, [{
3861
3916
  type: Directive,
3862
3917
  args: [{
3863
3918
  selector: `
@@ -3883,11 +3938,11 @@ class CheckboxNoFormControlMagicDirective {
3883
3938
  this.magicDirective.task.onCheckChanged($event, this.magicDirective.id, +this.magicDirective.rowId);
3884
3939
  }
3885
3940
  }
3886
- CheckboxNoFormControlMagicDirective.ɵfac = function CheckboxNoFormControlMagicDirective_Factory(t) { return new (t || CheckboxNoFormControlMagicDirective)(ɵɵdirectiveInject(MagicDirective)); };
3887
- CheckboxNoFormControlMagicDirective.ɵdir = ɵɵdefineDirective({ type: CheckboxNoFormControlMagicDirective, selectors: [["input", "type", "checkbox", "magic", "", "noFormControl", ""]], hostBindings: function CheckboxNoFormControlMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
3888
- ɵɵlistener("change", function CheckboxNoFormControlMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
3941
+ CheckboxNoFormControlMagicDirective.ɵfac = function CheckboxNoFormControlMagicDirective_Factory(t) { return new (t || CheckboxNoFormControlMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
3942
+ CheckboxNoFormControlMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: CheckboxNoFormControlMagicDirective, selectors: [["input", "type", "checkbox", "magic", "", "noFormControl", ""]], hostBindings: function CheckboxNoFormControlMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
3943
+ i0.ɵɵlistener("change", function CheckboxNoFormControlMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
3889
3944
  } } });
3890
- (function () { ɵsetClassMetadata(CheckboxNoFormControlMagicDirective, [{
3945
+ (function () { i0.ɵsetClassMetadata(CheckboxNoFormControlMagicDirective, [{
3891
3946
  type: Directive,
3892
3947
  args: [{
3893
3948
  selector: `
@@ -3907,11 +3962,11 @@ class InputNoFormControlMagicDirective {
3907
3962
  this.magicDirective.task.setInputTextValue(this.magicDirective.id, this.magicDirective.rowId, event.srcElement.value);
3908
3963
  }
3909
3964
  }
3910
- InputNoFormControlMagicDirective.ɵfac = function InputNoFormControlMagicDirective_Factory(t) { return new (t || InputNoFormControlMagicDirective)(ɵɵdirectiveInject(MagicDirective)); };
3911
- InputNoFormControlMagicDirective.ɵdir = ɵɵdefineDirective({ type: InputNoFormControlMagicDirective, selectors: [["input", "magic", "", "noFormControl", "", 3, "type", "checkbox"], ["textarea", "magic", "", "noFormControl", "", 3, "type", "checkbox"]], hostBindings: function InputNoFormControlMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
3912
- ɵɵlistener("change", function InputNoFormControlMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
3965
+ InputNoFormControlMagicDirective.ɵfac = function InputNoFormControlMagicDirective_Factory(t) { return new (t || InputNoFormControlMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
3966
+ 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) { if (rf & 1) {
3967
+ i0.ɵɵlistener("change", function InputNoFormControlMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
3913
3968
  } } });
3914
- (function () { ɵsetClassMetadata(InputNoFormControlMagicDirective, [{
3969
+ (function () { i0.ɵsetClassMetadata(InputNoFormControlMagicDirective, [{
3915
3970
  type: Directive,
3916
3971
  args: [{
3917
3972
  selector: `input[magic]:([noFormControl]):not([type=checkbox]),
@@ -3953,17 +4008,17 @@ class DateValueAccessor {
3953
4008
  this.renderer.setProperty(this.elementRef.nativeElement, "disabled", isDisabled);
3954
4009
  }
3955
4010
  }
3956
- DateValueAccessor.ɵfac = function DateValueAccessor_Factory(t) { return new (t || DateValueAccessor)(ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(ElementRef)); };
3957
- DateValueAccessor.ɵdir = ɵɵdefineDirective({ type: DateValueAccessor, selectors: [["", "dateInput", ""]], hostBindings: function DateValueAccessor_HostBindings(rf, ctx) { if (rf & 1) {
3958
- ɵɵlistener("input", function DateValueAccessor_input_HostBindingHandler($event) { return ctx.onChange($event.target.valueAsDate); })("blur", function DateValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
3959
- } }, features: [ɵɵProvidersFeature([DATE_VALUE_ACCESSOR])] });
3960
- (function () { ɵsetClassMetadata(DateValueAccessor, [{
4011
+ DateValueAccessor.ɵfac = function DateValueAccessor_Factory(t) { return new (t || DateValueAccessor)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
4012
+ DateValueAccessor.ɵdir = i0.ɵɵdefineDirective({ type: DateValueAccessor, selectors: [["", "dateInput", ""]], hostBindings: function DateValueAccessor_HostBindings(rf, ctx) { if (rf & 1) {
4013
+ i0.ɵɵlistener("input", function DateValueAccessor_input_HostBindingHandler($event) { return ctx.onChange($event.target.valueAsDate); })("blur", function DateValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
4014
+ } }, features: [i0.ɵɵProvidersFeature([DATE_VALUE_ACCESSOR])] });
4015
+ (function () { i0.ɵsetClassMetadata(DateValueAccessor, [{
3961
4016
  type: Directive,
3962
4017
  args: [{
3963
4018
  selector: "[dateInput]",
3964
4019
  providers: [DATE_VALUE_ACCESSOR]
3965
4020
  }]
3966
- }], function () { return [{ type: Renderer2 }, { type: ElementRef }]; }, { onChange: [{
4021
+ }], function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { onChange: [{
3967
4022
  type: HostListener,
3968
4023
  args: ["input", ["$event.target.valueAsDate"]]
3969
4024
  }], onTouched: [{
@@ -4003,14 +4058,14 @@ class NonMagicControlDirective {
4003
4058
  this.regEvents();
4004
4059
  }
4005
4060
  }
4006
- NonMagicControlDirective.ɵfac = function NonMagicControlDirective_Factory(t) { return new (t || NonMagicControlDirective)(ɵɵdirectiveInject(TaskMagicService), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(ViewContainerRef)); };
4007
- NonMagicControlDirective.ɵdir = ɵɵdefineDirective({ type: NonMagicControlDirective, selectors: [["", "NonMagicControl", ""]], inputs: { magic: ["NonMagicControl", "magic"] } });
4008
- (function () { ɵsetClassMetadata(NonMagicControlDirective, [{
4061
+ 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)); };
4062
+ NonMagicControlDirective.ɵdir = i0.ɵɵdefineDirective({ type: NonMagicControlDirective, selectors: [["", "NonMagicControl", ""]], inputs: { magic: ["NonMagicControl", "magic"] } });
4063
+ (function () { i0.ɵsetClassMetadata(NonMagicControlDirective, [{
4009
4064
  type: Directive,
4010
4065
  args: [{
4011
4066
  selector: '[NonMagicControl]'
4012
4067
  }]
4013
- }], function () { return [{ type: TaskMagicService }, { type: ElementRef }, { type: Renderer2 }, { type: ViewContainerRef }]; }, { magic: [{
4068
+ }], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }]; }, { magic: [{
4014
4069
  type: Input,
4015
4070
  args: ['NonMagicControl']
4016
4071
  }] }); })();
@@ -4059,8 +4114,8 @@ class MagicModule {
4059
4114
  };
4060
4115
  }
4061
4116
  }
4062
- MagicModule.ɵmod = ɵɵdefineNgModule({ type: MagicModule });
4063
- MagicModule.ɵinj = ɵɵdefineInjector({ factory: function MagicModule_Factory(t) { return new (t || MagicModule)(); }, providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider], imports: [[
4117
+ MagicModule.ɵmod = i0.ɵɵdefineNgModule({ type: MagicModule });
4118
+ MagicModule.ɵinj = i0.ɵɵdefineInjector({ factory: function MagicModule_Factory(t) { return new (t || MagicModule)(); }, providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider], imports: [[
4064
4119
  CommonModule,
4065
4120
  FormsModule,
4066
4121
  ReactiveFormsModule,
@@ -4068,7 +4123,7 @@ MagicModule.ɵinj = ɵɵdefineInjector({ factory: function MagicModule_Factory(t
4068
4123
  DynamicModule,
4069
4124
  HttpClientModule
4070
4125
  ]] });
4071
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(MagicModule, { declarations: [MagicDirective,
4126
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MagicModule, { declarations: [MagicDirective,
4072
4127
  CheckboxMagicDirective,
4073
4128
  CheckboxNoFormControlMagicDirective,
4074
4129
  InputNoFormControlMagicDirective,
@@ -4128,7 +4183,7 @@ MagicModule.ɵinj = ɵɵdefineInjector({ factory: function MagicModule_Factory(t
4128
4183
  NonMagicControlDirective,
4129
4184
  MagicFocusDirective,
4130
4185
  MagicViewContainerRef] }); })();
4131
- (function () { ɵsetClassMetadata(MagicModule, [{
4186
+ (function () { i0.ɵsetClassMetadata(MagicModule, [{
4132
4187
  type: NgModule,
4133
4188
  args: [{
4134
4189
  declarations: [...decs],
@@ -4237,11 +4292,11 @@ class MgDateAdapter extends NativeDateAdapter {
4237
4292
  }
4238
4293
  }
4239
4294
  }
4240
- MgDateAdapter.ɵfac = function MgDateAdapter_Factory(t) { return new (t || MgDateAdapter)(ɵɵinject(Platform), ɵɵinject(TaskMagicService)); };
4241
- MgDateAdapter.ɵprov = ɵɵdefineInjectable({ token: MgDateAdapter, factory: MgDateAdapter.ɵfac });
4242
- (function () { ɵsetClassMetadata(MgDateAdapter, [{
4295
+ MgDateAdapter.ɵfac = function MgDateAdapter_Factory(t) { return new (t || MgDateAdapter)(i0.ɵɵinject(i1$2.Platform), i0.ɵɵinject(TaskMagicService)); };
4296
+ MgDateAdapter.ɵprov = i0.ɵɵdefineInjectable({ token: MgDateAdapter, factory: MgDateAdapter.ɵfac });
4297
+ (function () { i0.ɵsetClassMetadata(MgDateAdapter, [{
4243
4298
  type: Injectable
4244
- }], function () { return [{ type: Platform }, { type: TaskMagicService }]; }, null); })();
4299
+ }], function () { return [{ type: i1$2.Platform }, { type: TaskMagicService }]; }, null); })();
4245
4300
 
4246
4301
  const matDateProviders = [
4247
4302
  { provide: DateAdapter, useClass: MgDateAdapter },