@magic-xpa/angular 4.1300.0-dev4130.228 → 4.1300.0-dev4130.233
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/magic-xpa-angular.mjs +114 -85
- package/fesm2022/magic-xpa-angular.mjs.map +1 -1
- package/package.json +11 -10
- package/types/magic-xpa-angular.d.ts +10 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isNullOrUndefined, NString, List, isUndefined, StringBuilder, RefParam } from '@magic-xpa/mscorelib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, Component, Input, Output, Directive, EventEmitter, HostListener, ViewChild, InjectionToken, Inject, Optional, Pipe, forwardRef, NgModule } from '@angular/core';
|
|
3
|
+
import { Injectable, createNgModule, ChangeDetectionStrategy, Component, Input, Output, Directive, EventEmitter, HostListener, ViewChild, InjectionToken, Inject, Optional, Pipe, forwardRef, NgModule } from '@angular/core';
|
|
4
4
|
import * as i1 from '@angular/common';
|
|
5
5
|
import { DatePipe, CommonModule, formatDate } from '@angular/common';
|
|
6
6
|
import * as i2 from '@angular/router';
|
|
@@ -18,10 +18,10 @@ import * as i2$1 from '@angular/cdk/drag-drop';
|
|
|
18
18
|
import { DragDropModule, CdkDragHandle, CdkDrag } from '@angular/cdk/drag-drop';
|
|
19
19
|
import * as i1$1 from '@angular/platform-browser';
|
|
20
20
|
import * as i1$2 from '@angular/common/http';
|
|
21
|
-
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
21
|
+
import { provideHttpClient, withXhr, withInterceptorsFromDi } from '@angular/common/http';
|
|
22
22
|
import { maskitoTimeOptionsGenerator } from '@maskito/kit';
|
|
23
23
|
import * as i2$2 from '@angular/cdk/platform';
|
|
24
|
-
import {
|
|
24
|
+
import { MaskitoDirective } from '@maskito/angular';
|
|
25
25
|
import { NativeDateAdapter, MAT_DATE_LOCALE, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
|
|
26
26
|
import { io } from 'socket.io-client';
|
|
27
27
|
|
|
@@ -461,7 +461,8 @@ class CommandsCollectorMagicService {
|
|
|
461
461
|
commands.forEach(command => { this.commands.Remove(command); });
|
|
462
462
|
return commands;
|
|
463
463
|
}
|
|
464
|
-
/** @nocollapse */ static ɵfac = function CommandsCollectorMagicService_Factory(__ngFactoryType__) {
|
|
464
|
+
/** @nocollapse */ static ɵfac = function CommandsCollectorMagicService_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
465
|
+
return new (__ngFactoryType__ || CommandsCollectorMagicService)(i0.ɵɵinject(EngineMagicService)); };
|
|
465
466
|
/** @nocollapse */ static ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: CommandsCollectorMagicService, factory: CommandsCollectorMagicService.ɵfac, providedIn: 'root' });
|
|
466
467
|
}
|
|
467
468
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CommandsCollectorMagicService, [{
|
|
@@ -532,13 +533,12 @@ class SubformMagicService {
|
|
|
532
533
|
componentListMagicService;
|
|
533
534
|
loader;
|
|
534
535
|
injector;
|
|
535
|
-
compiler;
|
|
536
536
|
subformsDict /*:{ [x: string]: SubformDefinition }*/ = {};
|
|
537
537
|
routesDict = {}; // dictionary of router outlet to router path
|
|
538
538
|
currentRouteDefinition = null;
|
|
539
539
|
static currentCallerMgSubformServiceRef = null;
|
|
540
540
|
static routerContainers = new Array();
|
|
541
|
-
constructor(task, activatedRoute, componentList, pendingCommandsCollector, router, routerCommandsMagicService, componentListMagicService, loader, injector
|
|
541
|
+
constructor(task, activatedRoute, componentList, pendingCommandsCollector, router, routerCommandsMagicService, componentListMagicService, loader, injector) {
|
|
542
542
|
this.task = task;
|
|
543
543
|
this.activatedRoute = activatedRoute;
|
|
544
544
|
this.componentList = componentList;
|
|
@@ -548,7 +548,6 @@ class SubformMagicService {
|
|
|
548
548
|
this.componentListMagicService = componentListMagicService;
|
|
549
549
|
this.loader = loader;
|
|
550
550
|
this.injector = injector;
|
|
551
|
-
this.compiler = compiler;
|
|
552
551
|
}
|
|
553
552
|
/**
|
|
554
553
|
* Finds and returns the component according to the subform name
|
|
@@ -609,8 +608,7 @@ class SubformMagicService {
|
|
|
609
608
|
// extract name of module(XX) from 'MagicXXModule'
|
|
610
609
|
const moduleName = lazyLoadModule.moduleName.slice(Magic.length, -Module.length);
|
|
611
610
|
this.loader.Load(moduleName).then(m => {
|
|
612
|
-
|
|
613
|
-
moduleRef = compiled.ngModuleFactory.create(this.injector);
|
|
611
|
+
moduleRef = createNgModule(m[lazyLoadModule.moduleName], this.injector);
|
|
614
612
|
this.subformsDict[subformControlName] = {
|
|
615
613
|
formName,
|
|
616
614
|
parameters: { taskIdParam: taskId, taskDescription: taskDescription }
|
|
@@ -750,12 +748,13 @@ class SubformMagicService {
|
|
|
750
748
|
}
|
|
751
749
|
return currentActiveRoute;
|
|
752
750
|
}
|
|
753
|
-
/** @nocollapse */ static ɵfac = function SubformMagicService_Factory(__ngFactoryType__) {
|
|
751
|
+
/** @nocollapse */ static ɵfac = function SubformMagicService_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
752
|
+
return new (__ngFactoryType__ || 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(MagicLazyLoaderService), i0.ɵɵinject(i0.Injector)); };
|
|
754
753
|
/** @nocollapse */ static ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: SubformMagicService, factory: SubformMagicService.ɵfac });
|
|
755
754
|
}
|
|
756
755
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubformMagicService, [{
|
|
757
756
|
type: Injectable
|
|
758
|
-
}], () => [{ type: TaskMagicService }, { type: i2.ActivatedRoute }, { type: ComponentListMagicService }, { type: CommandsCollectorMagicService }, { type: i2.Router }, { type: RouterCommandsMagicService }, { type: ComponentListMagicService }, { type: MagicLazyLoaderService }, { type: i0.Injector }
|
|
757
|
+
}], () => [{ type: TaskMagicService }, { type: i2.ActivatedRoute }, { type: ComponentListMagicService }, { type: CommandsCollectorMagicService }, { type: i2.Router }, { type: RouterCommandsMagicService }, { type: ComponentListMagicService }, { type: MagicLazyLoaderService }, { type: i0.Injector }], null); })();
|
|
759
758
|
|
|
760
759
|
/**
|
|
761
760
|
* Mock component, implements routing by connecting the requested URL with the appropriate Magic task
|
|
@@ -873,8 +872,9 @@ class RouterContainerMagicComponent {
|
|
|
873
872
|
getRouterPath() {
|
|
874
873
|
return this.routePath;
|
|
875
874
|
}
|
|
876
|
-
/** @nocollapse */ static ɵfac = function RouterContainerMagicComponent_Factory(__ngFactoryType__) {
|
|
877
|
-
|
|
875
|
+
/** @nocollapse */ static ɵfac = function RouterContainerMagicComponent_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
876
|
+
return new (__ngFactoryType__ || RouterContainerMagicComponent)(i0.ɵɵdirectiveInject(i2.ActivatedRoute), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(EngineMagicService), i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(ComponentListMagicService), i0.ɵɵdirectiveInject(CommandsCollectorMagicService), i0.ɵɵdirectiveInject(RouterCommandsMagicService)); };
|
|
877
|
+
/** @nocollapse */ static ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: RouterContainerMagicComponent, selectors: [["magic-route-outlet"]], standalone: false, decls: 0, vars: 0, template: function RouterContainerMagicComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 1 });
|
|
878
878
|
}
|
|
879
879
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RouterContainerMagicComponent, [{
|
|
880
880
|
type: Component,
|
|
@@ -882,10 +882,11 @@ class RouterContainerMagicComponent {
|
|
|
882
882
|
selector: 'magic-route-outlet',
|
|
883
883
|
template: `
|
|
884
884
|
`,
|
|
885
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
885
886
|
standalone: false
|
|
886
887
|
}]
|
|
887
888
|
}], () => [{ type: i2.ActivatedRoute }, { type: i2.Router }, { type: EngineMagicService }, { type: TaskMagicService }, { type: i0.ViewContainerRef }, { type: ComponentListMagicService }, { type: CommandsCollectorMagicService }, { type: RouterCommandsMagicService }], null); })();
|
|
888
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RouterContainerMagicComponent, { className: "RouterContainerMagicComponent", filePath: "src/ui/router-container.magic.component.ts", lineNumber:
|
|
889
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RouterContainerMagicComponent, { className: "RouterContainerMagicComponent", filePath: "src/ui/router-container.magic.component.ts", lineNumber: 24 }); })();
|
|
889
890
|
|
|
890
891
|
/**
|
|
891
892
|
* @ignore
|
|
@@ -1089,7 +1090,8 @@ class MagicViewContainerRef {
|
|
|
1089
1090
|
let comp = (this.vcRef._hostLView).find(v => v != null && !isNullOrUndefined(v.setViewContainerRef));
|
|
1090
1091
|
comp.setViewContainerRef(vcRef);
|
|
1091
1092
|
}
|
|
1092
|
-
/** @nocollapse */ static ɵfac = function MagicViewContainerRef_Factory(__ngFactoryType__) {
|
|
1093
|
+
/** @nocollapse */ static ɵfac = function MagicViewContainerRef_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
1094
|
+
return new (__ngFactoryType__ || MagicViewContainerRef)(i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
|
|
1093
1095
|
/** @nocollapse */ static ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: MagicViewContainerRef, selectors: [["", "magicViewContainerRef", ""]], standalone: false });
|
|
1094
1096
|
}
|
|
1095
1097
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicViewContainerRef, [{
|
|
@@ -1444,7 +1446,7 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
|
|
|
1444
1446
|
i0.ɵɵconditional(ctx.getShowTitleBar() ? 9 : -1);
|
|
1445
1447
|
i0.ɵɵadvance();
|
|
1446
1448
|
i0.ɵɵproperty("ngStyle", ctx.getClientAreaStyles());
|
|
1447
|
-
} }, dependencies: [i1.NgStyle, i2$1.CdkDragHandle, i2$1.CdkDrag, MagicViewContainerRef], styles: [".modal-foreground[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#fff}.modal-background[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#000;opacity:.75}.modal-header[_ngcontent-%COMP%]{background-color:beige;border-bottom:2px solid red}.modal-header.movable[_ngcontent-%COMP%]:active{cursor:move}.container[_ngcontent-%COMP%]{position:relative}.dragHandle[_ngcontent-%COMP%]{position:absolute}.dragHandle.corner[_ngcontent-%COMP%]{width:10px;right:0;bottom:0;height:10px;cursor:nwse-resize;background:linear-gradient(135deg,rgba(0,0,0,.4) 50%,transparent 50%);position:absolute}[dir=\"rtl\"][_nghost-%COMP%] .dragHandle.corner[_ngcontent-%COMP%], [dir=\"rtl\"] [_nghost-%COMP%] .dragHandle.corner[_ngcontent-%COMP%]{right:auto!important;left:0;cursor:nesw-resize;background:linear-gradient(225deg,rgba(0,0,0,.4) 50%,transparent 50%)}.dragHandle.left[_ngcontent-%COMP%]{width:2px;left:-2px;height:100%;cursor:ew-resize}.dragHandle.right[_ngcontent-%COMP%]{width:2px;right:-2px;height:100%;cursor:ew-resize}.dragHandle.bottom[_ngcontent-%COMP%]{height:2px;bottom:-2px;width:100%;cursor:ns-resize}.boundary-line[_ngcontent-%COMP%]{width:100%;height:100%;max-width:100%}"] });
|
|
1449
|
+
} }, dependencies: [i1.NgStyle, i2$1.CdkDragHandle, i2$1.CdkDrag, MagicViewContainerRef], styles: [".modal-foreground[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#fff}.modal-background[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#000;opacity:.75}.modal-header[_ngcontent-%COMP%]{background-color:beige;border-bottom:2px solid red}.modal-header.movable[_ngcontent-%COMP%]:active{cursor:move}.container[_ngcontent-%COMP%]{position:relative}.dragHandle[_ngcontent-%COMP%]{position:absolute}.dragHandle.corner[_ngcontent-%COMP%]{width:10px;right:0;bottom:0;height:10px;cursor:nwse-resize;background:linear-gradient(135deg,rgba(0,0,0,.4) 50%,transparent 50%);position:absolute}[dir=\"rtl\"][_nghost-%COMP%] .dragHandle.corner[_ngcontent-%COMP%], [dir=\"rtl\"] [_nghost-%COMP%] .dragHandle.corner[_ngcontent-%COMP%]{right:auto!important;left:0;cursor:nesw-resize;background:linear-gradient(225deg,rgba(0,0,0,.4) 50%,transparent 50%)}.dragHandle.left[_ngcontent-%COMP%]{width:2px;left:-2px;height:100%;cursor:ew-resize}.dragHandle.right[_ngcontent-%COMP%]{width:2px;right:-2px;height:100%;cursor:ew-resize}.dragHandle.bottom[_ngcontent-%COMP%]{height:2px;bottom:-2px;width:100%;cursor:ns-resize}.boundary-line[_ngcontent-%COMP%]{width:100%;height:100%;max-width:100%}"], changeDetection: 1 });
|
|
1448
1450
|
}
|
|
1449
1451
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicOverlayContainer, [{
|
|
1450
1452
|
type: Component,
|
|
@@ -1485,7 +1487,7 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
|
|
|
1485
1487
|
</div>
|
|
1486
1488
|
</div>
|
|
1487
1489
|
</div>
|
|
1488
|
-
`, standalone: false, styles: [".modal-foreground{position:fixed;inset:0;background-color:#fff}.modal-background{position:fixed;inset:0;background-color:#000;opacity:.75}.modal-header{background-color:beige;border-bottom:2px solid red}.modal-header.movable:active{cursor:move}.container{position:relative}.dragHandle{position:absolute}.dragHandle.corner{width:10px;right:0;bottom:0;height:10px;cursor:nwse-resize;background:linear-gradient(135deg,rgba(0,0,0,.4) 50%,transparent 50%);position:absolute}:host-context([dir=\"rtl\"]) .dragHandle.corner{right:auto!important;left:0;cursor:nesw-resize;background:linear-gradient(225deg,rgba(0,0,0,.4) 50%,transparent 50%)}.dragHandle.left{width:2px;left:-2px;height:100%;cursor:ew-resize}.dragHandle.right{width:2px;right:-2px;height:100%;cursor:ew-resize}.dragHandle.bottom{height:2px;bottom:-2px;width:100%;cursor:ns-resize}.boundary-line{width:100%;height:100%;max-width:100%}\n"] }]
|
|
1490
|
+
`, changeDetection: ChangeDetectionStrategy.Eager, standalone: false, styles: [".modal-foreground{position:fixed;inset:0;background-color:#fff}.modal-background{position:fixed;inset:0;background-color:#000;opacity:.75}.modal-header{background-color:beige;border-bottom:2px solid red}.modal-header.movable:active{cursor:move}.container{position:relative}.dragHandle{position:absolute}.dragHandle.corner{width:10px;right:0;bottom:0;height:10px;cursor:nwse-resize;background:linear-gradient(135deg,rgba(0,0,0,.4) 50%,transparent 50%);position:absolute}:host-context([dir=\"rtl\"]) .dragHandle.corner{right:auto!important;left:0;cursor:nesw-resize;background:linear-gradient(225deg,rgba(0,0,0,.4) 50%,transparent 50%)}.dragHandle.left{width:2px;left:-2px;height:100%;cursor:ew-resize}.dragHandle.right{width:2px;right:-2px;height:100%;cursor:ew-resize}.dragHandle.bottom{height:2px;bottom:-2px;width:100%;cursor:ns-resize}.boundary-line{width:100%;height:100%;max-width:100%}\n"] }]
|
|
1489
1491
|
}], () => [], { headerElementRef: [{
|
|
1490
1492
|
type: ViewChild,
|
|
1491
1493
|
args: ['modalheader', { static: false }]
|
|
@@ -1505,7 +1507,7 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
|
|
|
1505
1507
|
type: HostListener,
|
|
1506
1508
|
args: ['window:mouseup']
|
|
1507
1509
|
}] }); })();
|
|
1508
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MagicOverlayContainer, { className: "MagicOverlayContainer", filePath: "src/ui/magic-modal/magic-overlay-container.ts", lineNumber:
|
|
1510
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MagicOverlayContainer, { className: "MagicOverlayContainer", filePath: "src/ui/magic-modal/magic-overlay-container.ts", lineNumber: 67 }); })();
|
|
1509
1511
|
|
|
1510
1512
|
/**
|
|
1511
1513
|
* Service managing overlay windows
|
|
@@ -1548,11 +1550,11 @@ class BaseMagicConfirmComponent {
|
|
|
1548
1550
|
this.onClose.emit(result);
|
|
1549
1551
|
}
|
|
1550
1552
|
/** @nocollapse */ static ɵfac = function BaseMagicConfirmComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BaseMagicConfirmComponent)(); };
|
|
1551
|
-
/** @nocollapse */ static ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: BaseMagicConfirmComponent, selectors: [["mg-base-confirm"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, standalone: false, decls: 0, vars: 0, template: function BaseMagicConfirmComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
1553
|
+
/** @nocollapse */ static ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: BaseMagicConfirmComponent, selectors: [["mg-base-confirm"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, standalone: false, decls: 0, vars: 0, template: function BaseMagicConfirmComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 1 });
|
|
1552
1554
|
}
|
|
1553
1555
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseMagicConfirmComponent, [{
|
|
1554
1556
|
type: Component,
|
|
1555
|
-
args: [{ selector: 'mg-base-confirm', template: '', standalone: false }]
|
|
1557
|
+
args: [{ selector: 'mg-base-confirm', template: '', changeDetection: ChangeDetectionStrategy.Eager, standalone: false }]
|
|
1556
1558
|
}], null, { title: [{
|
|
1557
1559
|
type: Input
|
|
1558
1560
|
}], message: [{
|
|
@@ -1560,7 +1562,7 @@ class BaseMagicConfirmComponent {
|
|
|
1560
1562
|
}], onClose: [{
|
|
1561
1563
|
type: Output
|
|
1562
1564
|
}] }); })();
|
|
1563
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BaseMagicConfirmComponent, { className: "BaseMagicConfirmComponent", filePath: "src/ui/components/base-magic-confirm.component.ts", lineNumber:
|
|
1565
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BaseMagicConfirmComponent, { className: "BaseMagicConfirmComponent", filePath: "src/ui/components/base-magic-confirm.component.ts", lineNumber: 14 }); })();
|
|
1564
1566
|
|
|
1565
1567
|
/**
|
|
1566
1568
|
* This is a base class for the magic alert components
|
|
@@ -1586,11 +1588,11 @@ class BaseMagicAlertComponent {
|
|
|
1586
1588
|
this.onClose.emit();
|
|
1587
1589
|
}
|
|
1588
1590
|
/** @nocollapse */ static ɵfac = function BaseMagicAlertComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BaseMagicAlertComponent)(); };
|
|
1589
|
-
/** @nocollapse */ static ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: BaseMagicAlertComponent, selectors: [["mg-base-alert"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, standalone: false, decls: 0, vars: 0, template: function BaseMagicAlertComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
1591
|
+
/** @nocollapse */ static ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: BaseMagicAlertComponent, selectors: [["mg-base-alert"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, standalone: false, decls: 0, vars: 0, template: function BaseMagicAlertComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 1 });
|
|
1590
1592
|
}
|
|
1591
1593
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseMagicAlertComponent, [{
|
|
1592
1594
|
type: Component,
|
|
1593
|
-
args: [{ selector: 'mg-base-alert', template: '', standalone: false }]
|
|
1595
|
+
args: [{ selector: 'mg-base-alert', template: '', changeDetection: ChangeDetectionStrategy.Eager, standalone: false }]
|
|
1594
1596
|
}], null, { title: [{
|
|
1595
1597
|
type: Input
|
|
1596
1598
|
}], message: [{
|
|
@@ -1598,7 +1600,7 @@ class BaseMagicAlertComponent {
|
|
|
1598
1600
|
}], onClose: [{
|
|
1599
1601
|
type: Output
|
|
1600
1602
|
}] }); })();
|
|
1601
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BaseMagicAlertComponent, { className: "BaseMagicAlertComponent", filePath: "src/ui/components/base-magic-alert.component.ts", lineNumber:
|
|
1603
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BaseMagicAlertComponent, { className: "BaseMagicAlertComponent", filePath: "src/ui/components/base-magic-alert.component.ts", lineNumber: 15 }); })();
|
|
1602
1604
|
|
|
1603
1605
|
/**
|
|
1604
1606
|
* Directive for setting focus on element
|
|
@@ -1611,7 +1613,8 @@ class MagicFocusDirective {
|
|
|
1611
1613
|
ngAfterViewInit() {
|
|
1612
1614
|
this.hostElement.nativeElement.focus();
|
|
1613
1615
|
}
|
|
1614
|
-
/** @nocollapse */ static ɵfac = function MagicFocusDirective_Factory(__ngFactoryType__) {
|
|
1616
|
+
/** @nocollapse */ static ɵfac = function MagicFocusDirective_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
1617
|
+
return new (__ngFactoryType__ || MagicFocusDirective)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
1615
1618
|
/** @nocollapse */ static ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: MagicFocusDirective, selectors: [["", "magicFocus", ""]], standalone: false });
|
|
1616
1619
|
}
|
|
1617
1620
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicFocusDirective, [{
|
|
@@ -1628,7 +1631,6 @@ class MagicOverlayContainerWrapper {
|
|
|
1628
1631
|
magicLazyModuleLoader;
|
|
1629
1632
|
injector;
|
|
1630
1633
|
changeDetectorRef;
|
|
1631
|
-
compiler;
|
|
1632
1634
|
/**
|
|
1633
1635
|
*
|
|
1634
1636
|
*/
|
|
@@ -1657,12 +1659,11 @@ class MagicOverlayContainerWrapper {
|
|
|
1657
1659
|
*
|
|
1658
1660
|
* @param componentFactoryResolver
|
|
1659
1661
|
*/
|
|
1660
|
-
constructor(componentListMagicService, magicLazyModuleLoader, injector, changeDetectorRef
|
|
1662
|
+
constructor(componentListMagicService, magicLazyModuleLoader, injector, changeDetectorRef) {
|
|
1661
1663
|
this.componentListMagicService = componentListMagicService;
|
|
1662
1664
|
this.magicLazyModuleLoader = magicLazyModuleLoader;
|
|
1663
1665
|
this.injector = injector;
|
|
1664
1666
|
this.changeDetectorRef = changeDetectorRef;
|
|
1665
|
-
this.compiler = compiler;
|
|
1666
1667
|
}
|
|
1667
1668
|
/**
|
|
1668
1669
|
*
|
|
@@ -1677,8 +1678,7 @@ class MagicOverlayContainerWrapper {
|
|
|
1677
1678
|
// extract name of module(XX) from 'MagicXXModule'
|
|
1678
1679
|
const moduleName = lazyLoadModule.moduleName.slice(Magic.length, -Module.length);
|
|
1679
1680
|
this.magicLazyModuleLoader.Load(moduleName).then(m => {
|
|
1680
|
-
|
|
1681
|
-
moduleRef = compiled.ngModuleFactory.create(this.injector);
|
|
1681
|
+
moduleRef = createNgModule(m[lazyLoadModule.moduleName], this.injector);
|
|
1682
1682
|
this.loadComponent(moduleRef);
|
|
1683
1683
|
});
|
|
1684
1684
|
}
|
|
@@ -1713,7 +1713,8 @@ class MagicOverlayContainerWrapper {
|
|
|
1713
1713
|
DetectChanges() {
|
|
1714
1714
|
this.changeDetectorRef.detectChanges();
|
|
1715
1715
|
}
|
|
1716
|
-
/** @nocollapse */ static ɵfac = function MagicOverlayContainerWrapper_Factory(__ngFactoryType__) {
|
|
1716
|
+
/** @nocollapse */ static ɵfac = function MagicOverlayContainerWrapper_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
1717
|
+
return new (__ngFactoryType__ || MagicOverlayContainerWrapper)(i0.ɵɵdirectiveInject(ComponentListMagicService), i0.ɵɵdirectiveInject(MagicLazyLoaderService), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
1717
1718
|
/** @nocollapse */ static ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: MagicOverlayContainerWrapper, selectors: [["app-magic-overlay-container-wrapper"]], viewQuery: function MagicOverlayContainerWrapper_Query(rf, ctx) { if (rf & 1) {
|
|
1718
1719
|
i0.ɵɵviewQuery(_c0$2, 7);
|
|
1719
1720
|
} if (rf & 2) {
|
|
@@ -1727,7 +1728,7 @@ class MagicOverlayContainerWrapper {
|
|
|
1727
1728
|
i0.ɵɵelementEnd();
|
|
1728
1729
|
i0.ɵɵelement(6, "div", 5);
|
|
1729
1730
|
i0.ɵɵelementEnd();
|
|
1730
|
-
} }, dependencies: [MagicFocusDirective, MagicViewContainerRef], styles: [".overlay-container-wrapper-background[_ngcontent-%COMP%]{position:fixed;z-index:999;inset:0}"] });
|
|
1731
|
+
} }, dependencies: [MagicFocusDirective, MagicViewContainerRef], styles: [".overlay-container-wrapper-background[_ngcontent-%COMP%]{position:fixed;z-index:999;inset:0}"], changeDetection: 1 });
|
|
1731
1732
|
}
|
|
1732
1733
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicOverlayContainerWrapper, [{
|
|
1733
1734
|
type: Component,
|
|
@@ -1740,8 +1741,8 @@ class MagicOverlayContainerWrapper {
|
|
|
1740
1741
|
</div>
|
|
1741
1742
|
<div class="overlay-container-wrapper-background" tabIndex="0" style="width: 0px; height: 0px;" ></div>
|
|
1742
1743
|
</div>
|
|
1743
|
-
`, standalone: false, styles: [".overlay-container-wrapper-background{position:fixed;z-index:999;inset:0}\n"] }]
|
|
1744
|
-
}], () => [{ type: ComponentListMagicService }, { type: MagicLazyLoaderService }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }
|
|
1744
|
+
`, changeDetection: ChangeDetectionStrategy.Eager, standalone: false, styles: [".overlay-container-wrapper-background{position:fixed;z-index:999;inset:0}\n"] }]
|
|
1745
|
+
}], () => [{ type: ComponentListMagicService }, { type: MagicLazyLoaderService }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }], { Component: [{
|
|
1745
1746
|
type: Input
|
|
1746
1747
|
}], Parameters: [{
|
|
1747
1748
|
type: Input
|
|
@@ -1753,7 +1754,7 @@ class MagicOverlayContainerWrapper {
|
|
|
1753
1754
|
type: ViewChild,
|
|
1754
1755
|
args: ['overlayContainerWrapper', { static: true }]
|
|
1755
1756
|
}] }); })();
|
|
1756
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MagicOverlayContainerWrapper, { className: "MagicOverlayContainerWrapper", filePath: "src/ui/magic-modal/magic-overlay-container-wrapper.ts", lineNumber:
|
|
1757
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MagicOverlayContainerWrapper, { className: "MagicOverlayContainerWrapper", filePath: "src/ui/magic-modal/magic-overlay-container-wrapper.ts", lineNumber: 48 }); })();
|
|
1757
1758
|
|
|
1758
1759
|
/***
|
|
1759
1760
|
* This is sample component for the alert message
|
|
@@ -1943,15 +1944,13 @@ class OverlayWindowService {
|
|
|
1943
1944
|
engineMagicService;
|
|
1944
1945
|
magicLazyModuleLoader;
|
|
1945
1946
|
injector;
|
|
1946
|
-
compiler;
|
|
1947
1947
|
overlayContainerMagicProvider;
|
|
1948
1948
|
confirmationComponentsMagicProvider;
|
|
1949
|
-
constructor(componentList, engineMagicService, magicLazyModuleLoader, injector,
|
|
1949
|
+
constructor(componentList, engineMagicService, magicLazyModuleLoader, injector, overlayContainerMagicProvider, confirmationComponentsMagicProvider) {
|
|
1950
1950
|
this.componentList = componentList;
|
|
1951
1951
|
this.engineMagicService = engineMagicService;
|
|
1952
1952
|
this.magicLazyModuleLoader = magicLazyModuleLoader;
|
|
1953
1953
|
this.injector = injector;
|
|
1954
|
-
this.compiler = compiler;
|
|
1955
1954
|
this.overlayContainerMagicProvider = overlayContainerMagicProvider;
|
|
1956
1955
|
this.confirmationComponentsMagicProvider = confirmationComponentsMagicProvider;
|
|
1957
1956
|
}
|
|
@@ -1974,8 +1973,7 @@ class OverlayWindowService {
|
|
|
1974
1973
|
// extract name of module(XX) from 'MagicXXModule'
|
|
1975
1974
|
const moduleName = lazyLoadModule.moduleName.slice(Magic.length, -Module.length);
|
|
1976
1975
|
this.magicLazyModuleLoader.Load(moduleName).then(m => {
|
|
1977
|
-
|
|
1978
|
-
moduleRef = compiled.ngModuleFactory.create(this.injector);
|
|
1976
|
+
moduleRef = createNgModule(m[lazyLoadModule.moduleName], this.injector);
|
|
1979
1977
|
this.open(formName, taskId, taskDescription);
|
|
1980
1978
|
this.finishConfirmation(Styles.MSGBOX_BUTTON_OK, true);
|
|
1981
1979
|
});
|
|
@@ -2062,7 +2060,8 @@ class OverlayWindowService {
|
|
|
2062
2060
|
componentRef.instance.DetectChanges();
|
|
2063
2061
|
return componentRef;
|
|
2064
2062
|
}
|
|
2065
|
-
/** @nocollapse */ static ɵfac = function OverlayWindowService_Factory(__ngFactoryType__) {
|
|
2063
|
+
/** @nocollapse */ static ɵfac = function OverlayWindowService_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
2064
|
+
return new (__ngFactoryType__ || OverlayWindowService)(i0.ɵɵinject(ComponentListMagicService), i0.ɵɵinject(EngineMagicService), i0.ɵɵinject(MagicLazyLoaderService), i0.ɵɵinject(i0.Injector), i0.ɵɵinject(OverlayContainerMagicProvider), i0.ɵɵinject(ConfirmationComponentsMagicProvider)); };
|
|
2066
2065
|
/** @nocollapse */ static ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: OverlayWindowService, factory: OverlayWindowService.ɵfac, providedIn: 'root' });
|
|
2067
2066
|
}
|
|
2068
2067
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OverlayWindowService, [{
|
|
@@ -2070,7 +2069,7 @@ class OverlayWindowService {
|
|
|
2070
2069
|
args: [{
|
|
2071
2070
|
providedIn: 'root'
|
|
2072
2071
|
}]
|
|
2073
|
-
}], () => [{ type: ComponentListMagicService }, { type: EngineMagicService }, { type: MagicLazyLoaderService }, { type: i0.Injector }, { type:
|
|
2072
|
+
}], () => [{ type: ComponentListMagicService }, { type: EngineMagicService }, { type: MagicLazyLoaderService }, { type: i0.Injector }, { type: OverlayContainerMagicProvider }, { type: ConfirmationComponentsMagicProvider }], null); })();
|
|
2074
2073
|
class OverlayWindowFocusManager {
|
|
2075
2074
|
rootMagicElement = null;
|
|
2076
2075
|
openDialogList = new Array(0);
|
|
@@ -3138,7 +3137,8 @@ class TaskMagicService {
|
|
|
3138
3137
|
}
|
|
3139
3138
|
}
|
|
3140
3139
|
}
|
|
3141
|
-
/** @nocollapse */ static ɵfac = function TaskMagicService_Factory(__ngFactoryType__) {
|
|
3140
|
+
/** @nocollapse */ static ɵfac = function TaskMagicService_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
3141
|
+
return new (__ngFactoryType__ || TaskMagicService)(i0.ɵɵinject(EngineMagicService), i0.ɵɵinject(OverlayWindowService)); };
|
|
3142
3142
|
/** @nocollapse */ static ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: TaskMagicService, factory: TaskMagicService.ɵfac });
|
|
3143
3143
|
}
|
|
3144
3144
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TaskMagicService, [{
|
|
@@ -3270,7 +3270,8 @@ class TableMagicService {
|
|
|
3270
3270
|
topIndex--;
|
|
3271
3271
|
return topIndex;
|
|
3272
3272
|
}
|
|
3273
|
-
/** @nocollapse */ static ɵfac = function TableMagicService_Factory(__ngFactoryType__) {
|
|
3273
|
+
/** @nocollapse */ static ɵfac = function TableMagicService_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
3274
|
+
return new (__ngFactoryType__ || TableMagicService)(i0.ɵɵinject(ComponentListMagicService), i0.ɵɵinject(TaskMagicService)); };
|
|
3274
3275
|
/** @nocollapse */ static ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: TableMagicService, factory: TableMagicService.ɵfac });
|
|
3275
3276
|
}
|
|
3276
3277
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableMagicService, [{
|
|
@@ -3296,7 +3297,8 @@ class TitleMagicService {
|
|
|
3296
3297
|
setTitle(newTitle) {
|
|
3297
3298
|
this.titleService.setTitle(newTitle);
|
|
3298
3299
|
}
|
|
3299
|
-
/** @nocollapse */ static ɵfac = function TitleMagicService_Factory(__ngFactoryType__) {
|
|
3300
|
+
/** @nocollapse */ static ɵfac = function TitleMagicService_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
3301
|
+
return new (__ngFactoryType__ || TitleMagicService)(i0.ɵɵinject(i1$1.Title)); };
|
|
3300
3302
|
/** @nocollapse */ static ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: TitleMagicService, factory: TitleMagicService.ɵfac });
|
|
3301
3303
|
}
|
|
3302
3304
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TitleMagicService, [{
|
|
@@ -3397,7 +3399,8 @@ class MagicColorService {
|
|
|
3397
3399
|
}
|
|
3398
3400
|
return '';
|
|
3399
3401
|
}
|
|
3400
|
-
/** @nocollapse */ static ɵfac = function MagicColorService_Factory(__ngFactoryType__) {
|
|
3402
|
+
/** @nocollapse */ static ɵfac = function MagicColorService_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
3403
|
+
return new (__ngFactoryType__ || MagicColorService)(i0.ɵɵinject(i1$2.HttpClient), i0.ɵɵinject(COLOR_FILE_NAME)); };
|
|
3401
3404
|
/** @nocollapse */ static ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: MagicColorService, factory: MagicColorService.ɵfac, providedIn: 'root' });
|
|
3402
3405
|
}
|
|
3403
3406
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicColorService, [{
|
|
@@ -4037,7 +4040,8 @@ class AccessorMagicService {
|
|
|
4037
4040
|
getColor(colorNumber, colorType) {
|
|
4038
4041
|
return this.magicColor.getColor(colorNumber, colorType);
|
|
4039
4042
|
}
|
|
4040
|
-
/** @nocollapse */ static ɵfac = function AccessorMagicService_Factory(__ngFactoryType__) {
|
|
4043
|
+
/** @nocollapse */ static ɵfac = function AccessorMagicService_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
4044
|
+
return new (__ngFactoryType__ || AccessorMagicService)(i0.ɵɵinject(TaskMagicService), i0.ɵɵinject(MagicColorService)); };
|
|
4041
4045
|
/** @nocollapse */ static ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AccessorMagicService, factory: AccessorMagicService.ɵfac });
|
|
4042
4046
|
}
|
|
4043
4047
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccessorMagicService, [{
|
|
@@ -4067,7 +4071,8 @@ class MagicServices {
|
|
|
4067
4071
|
task.mgTitleService = titleService;
|
|
4068
4072
|
task.mgAccessorService = mgAccessorService;
|
|
4069
4073
|
}
|
|
4070
|
-
/** @nocollapse */ static ɵfac = function MagicServices_Factory(__ngFactoryType__) {
|
|
4074
|
+
/** @nocollapse */ static ɵfac = function MagicServices_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
4075
|
+
return new (__ngFactoryType__ || MagicServices)(i0.ɵɵinject(TaskMagicService), i0.ɵɵinject(SubformMagicService), i0.ɵɵinject(TableMagicService), i0.ɵɵinject(TitleMagicService), i0.ɵɵinject(AccessorMagicService)); };
|
|
4071
4076
|
/** @nocollapse */ static ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: MagicServices, factory: MagicServices.ɵfac });
|
|
4072
4077
|
}
|
|
4073
4078
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicServices, [{
|
|
@@ -4223,8 +4228,9 @@ class TaskBaseMagicComponent {
|
|
|
4223
4228
|
ngOnDestroy() {
|
|
4224
4229
|
this.task.dispose();
|
|
4225
4230
|
}
|
|
4226
|
-
/** @nocollapse */ static ɵfac = function TaskBaseMagicComponent_Factory(__ngFactoryType__) {
|
|
4227
|
-
|
|
4231
|
+
/** @nocollapse */ static ɵfac = function TaskBaseMagicComponent_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
4232
|
+
return new (__ngFactoryType__ || TaskBaseMagicComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(MagicServices)); };
|
|
4233
|
+
/** @nocollapse */ static ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TaskBaseMagicComponent, selectors: [["task-magic"]], inputs: { taskIdParam: "taskIdParam", taskDescription: "taskDescription" }, standalone: false, features: [i0.ɵɵProvidersFeature([TaskMagicService, SubformMagicService, TableMagicService])], decls: 0, vars: 0, template: function TaskBaseMagicComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 1 });
|
|
4228
4234
|
}
|
|
4229
4235
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TaskBaseMagicComponent, [{
|
|
4230
4236
|
type: Component,
|
|
@@ -4232,6 +4238,7 @@ class TaskBaseMagicComponent {
|
|
|
4232
4238
|
selector: 'task-magic',
|
|
4233
4239
|
providers: [TaskMagicService, SubformMagicService, TableMagicService],
|
|
4234
4240
|
template: '',
|
|
4241
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
4235
4242
|
standalone: false
|
|
4236
4243
|
}]
|
|
4237
4244
|
}], () => [{ type: i0.ChangeDetectorRef }, { type: MagicServices }], { taskIdParam: [{
|
|
@@ -4239,7 +4246,7 @@ class TaskBaseMagicComponent {
|
|
|
4239
4246
|
}], taskDescription: [{
|
|
4240
4247
|
type: Input
|
|
4241
4248
|
}] }); })();
|
|
4242
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TaskBaseMagicComponent, { className: "TaskBaseMagicComponent", filePath: "src/ui/task-base.magic.component.ts", lineNumber:
|
|
4249
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TaskBaseMagicComponent, { className: "TaskBaseMagicComponent", filePath: "src/ui/task-base.magic.component.ts", lineNumber: 22 }); })();
|
|
4243
4250
|
|
|
4244
4251
|
/**
|
|
4245
4252
|
* @ignore
|
|
@@ -4299,7 +4306,8 @@ class RowMagicDirective {
|
|
|
4299
4306
|
event.cancelBubble = true;
|
|
4300
4307
|
}
|
|
4301
4308
|
}
|
|
4302
|
-
/** @nocollapse */ static ɵfac = function RowMagicDirective_Factory(__ngFactoryType__) {
|
|
4309
|
+
/** @nocollapse */ static ɵfac = function RowMagicDirective_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
4310
|
+
return new (__ngFactoryType__ || RowMagicDirective)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
4303
4311
|
/** @nocollapse */ static ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: RowMagicDirective, selectors: [["", "magicRow", ""]], hostBindings: function RowMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
4304
4312
|
i0.ɵɵlistener("click", function RowMagicDirective_click_HostBindingHandler($event) { return ctx.onClick($event); });
|
|
4305
4313
|
} }, inputs: { rowId: [0, "magicRow", "rowId"] }, standalone: false });
|
|
@@ -4616,7 +4624,8 @@ class MagicDirective {
|
|
|
4616
4624
|
ngOnDestroy() {
|
|
4617
4625
|
this.subscribeRefreshDom.unsubscribe();
|
|
4618
4626
|
}
|
|
4619
|
-
/** @nocollapse */ static ɵfac = function MagicDirective_Factory(__ngFactoryType__) {
|
|
4627
|
+
/** @nocollapse */ static ɵfac = function MagicDirective_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
4628
|
+
return new (__ngFactoryType__ || MagicDirective)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i2$2.Platform), i0.ɵɵdirectiveInject(RowMagicDirective, 8)); };
|
|
4620
4629
|
/** @nocollapse */ static ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: MagicDirective, selectors: [["", "magic", ""]], inputs: { magic: "magic", eventsOnly: "eventsOnly", pollTime: "pollTime", rowId: "rowId" }, standalone: false });
|
|
4621
4630
|
}
|
|
4622
4631
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicDirective, [{
|
|
@@ -4814,7 +4823,8 @@ class NoControlMagicDirective extends MagicDirective {
|
|
|
4814
4823
|
break;
|
|
4815
4824
|
}
|
|
4816
4825
|
}
|
|
4817
|
-
/** @nocollapse */ static ɵfac = function NoControlMagicDirective_Factory(__ngFactoryType__) {
|
|
4826
|
+
/** @nocollapse */ static ɵfac = function NoControlMagicDirective_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
4827
|
+
return new (__ngFactoryType__ || NoControlMagicDirective)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i2$2.Platform), i0.ɵɵdirectiveInject(RowMagicDirective, 8)); };
|
|
4818
4828
|
/** @nocollapse */ static ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: NoControlMagicDirective, selectors: [["", "magicnc", ""]], inputs: { magic: [0, "magicnc", "magic"] }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature] });
|
|
4819
4829
|
}
|
|
4820
4830
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NoControlMagicDirective, [{
|
|
@@ -4864,7 +4874,8 @@ class DateMagicPipe extends DatePipe {
|
|
|
4864
4874
|
value = "";
|
|
4865
4875
|
return value;
|
|
4866
4876
|
}
|
|
4867
|
-
/** @nocollapse */ static ɵfac = function DateMagicPipe_Factory(__ngFactoryType__) {
|
|
4877
|
+
/** @nocollapse */ static ɵfac = function DateMagicPipe_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
4878
|
+
return new (__ngFactoryType__ || DateMagicPipe)(i0.ɵɵdirectiveInject(TaskMagicService, 16)); };
|
|
4868
4879
|
/** @nocollapse */ static ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "magicDate", type: DateMagicPipe, pure: true, standalone: false });
|
|
4869
4880
|
}
|
|
4870
4881
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateMagicPipe, [{
|
|
@@ -5544,7 +5555,8 @@ class MgformatMagicDirective {
|
|
|
5544
5555
|
return true;
|
|
5545
5556
|
return false;
|
|
5546
5557
|
}
|
|
5547
|
-
/** @nocollapse */ static ɵfac = function MgformatMagicDirective_Factory(__ngFactoryType__) {
|
|
5558
|
+
/** @nocollapse */ static ɵfac = function MgformatMagicDirective_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
5559
|
+
return new (__ngFactoryType__ || MgformatMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective), i0.ɵɵdirectiveInject(TaskMagicService)); };
|
|
5548
5560
|
/** @nocollapse */ static ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: MgformatMagicDirective, selectors: [["", "mgFormat", ""]], hostBindings: function MgformatMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
5549
5561
|
i0.ɵɵlistener("focus", function MgformatMagicDirective_focus_HostBindingHandler($event) { return ctx.onFocusEvent($event); })("paste", function MgformatMagicDirective_paste_HostBindingHandler($event) { return ctx.onPaste($event); })("input", function MgformatMagicDirective_input_HostBindingHandler($event) { return ctx.onInputEvent($event); })("change", function MgformatMagicDirective_change_HostBindingHandler($event) { return ctx.onChangeEvent($event); })("blur", function MgformatMagicDirective_blur_HostBindingHandler($event) { return ctx.onBlurEvent($event); });
|
|
5550
5562
|
} }, standalone: false });
|
|
@@ -5610,7 +5622,8 @@ class TimeMagicPipe extends DatePipe {
|
|
|
5610
5622
|
}
|
|
5611
5623
|
return value;
|
|
5612
5624
|
}
|
|
5613
|
-
/** @nocollapse */ static ɵfac = function TimeMagicPipe_Factory(__ngFactoryType__) {
|
|
5625
|
+
/** @nocollapse */ static ɵfac = function TimeMagicPipe_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
5626
|
+
return new (__ngFactoryType__ || TimeMagicPipe)(i0.ɵɵdirectiveInject(TaskMagicService, 16)); };
|
|
5614
5627
|
/** @nocollapse */ static ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "magicTime", type: TimeMagicPipe, pure: true, standalone: false });
|
|
5615
5628
|
}
|
|
5616
5629
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimeMagicPipe, [{
|
|
@@ -5669,7 +5682,8 @@ class RangeValidatorMagicDirective {
|
|
|
5669
5682
|
const formGroup = c.parent.controls;
|
|
5670
5683
|
return Object.keys(formGroup).find(name => c === formGroup[name]) || null;
|
|
5671
5684
|
}
|
|
5672
|
-
/** @nocollapse */ static ɵfac = function RangeValidatorMagicDirective_Factory(__ngFactoryType__) {
|
|
5685
|
+
/** @nocollapse */ static ɵfac = function RangeValidatorMagicDirective_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
5686
|
+
return new (__ngFactoryType__ || RangeValidatorMagicDirective)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
|
|
5673
5687
|
/** @nocollapse */ static ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: RangeValidatorMagicDirective, selectors: [["", "rangevalidator", ""]], standalone: false, features: [i0.ɵɵProvidersFeature([
|
|
5674
5688
|
{
|
|
5675
5689
|
provide: NG_VALIDATORS,
|
|
@@ -5739,12 +5753,13 @@ class SubformMagicComponent {
|
|
|
5739
5753
|
get Parameters() {
|
|
5740
5754
|
return this.mgSub.mgGetParameters(this.id);
|
|
5741
5755
|
}
|
|
5742
|
-
/** @nocollapse */ static ɵfac = function SubformMagicComponent_Factory(__ngFactoryType__) {
|
|
5756
|
+
/** @nocollapse */ static ɵfac = function SubformMagicComponent_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
5757
|
+
return new (__ngFactoryType__ || SubformMagicComponent)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(SubformMagicService)); };
|
|
5743
5758
|
/** @nocollapse */ static ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SubformMagicComponent, selectors: [["magic-subform"]], inputs: { magic: "magic" }, standalone: false, decls: 1, vars: 1, consts: [[3, "ndcDynamicComponent", "ndcDynamicInputs"]], template: function SubformMagicComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5744
5759
|
i0.ɵɵconditionalCreate(0, SubformMagicComponent_Conditional_0_Template, 1, 2, "ndc-dynamic", 0);
|
|
5745
5760
|
} if (rf & 2) {
|
|
5746
5761
|
i0.ɵɵconditional(ctx.Component ? 0 : -1);
|
|
5747
|
-
} }, dependencies: [i2$3.DynamicIoDirective, i2$3.DynamicComponent], encapsulation: 2 });
|
|
5762
|
+
} }, dependencies: [i2$3.DynamicIoDirective, i2$3.DynamicComponent], encapsulation: 2, changeDetection: 1 });
|
|
5748
5763
|
}
|
|
5749
5764
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubformMagicComponent, [{
|
|
5750
5765
|
type: Component,
|
|
@@ -5758,13 +5773,14 @@ class SubformMagicComponent {
|
|
|
5758
5773
|
</ndc-dynamic>
|
|
5759
5774
|
}
|
|
5760
5775
|
`,
|
|
5776
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
5761
5777
|
standalone: false
|
|
5762
5778
|
}]
|
|
5763
5779
|
}], () => [{ type: i0.ViewContainerRef }, { type: SubformMagicService }], { magic: [{
|
|
5764
5780
|
type: Input,
|
|
5765
5781
|
args: ['magic']
|
|
5766
5782
|
}] }); })();
|
|
5767
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SubformMagicComponent, { className: "SubformMagicComponent", filePath: "src/ui/subform.magic.component.ts", lineNumber:
|
|
5783
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SubformMagicComponent, { className: "SubformMagicComponent", filePath: "src/ui/subform.magic.component.ts", lineNumber: 24 }); })();
|
|
5768
5784
|
|
|
5769
5785
|
const _c0$1 = ["customContent"];
|
|
5770
5786
|
const _c1 = ["*"];
|
|
@@ -5864,7 +5880,8 @@ class ErrorMagicComponent {
|
|
|
5864
5880
|
}
|
|
5865
5881
|
return false;
|
|
5866
5882
|
}
|
|
5867
|
-
/** @nocollapse */ static ɵfac = function ErrorMagicComponent_Factory(__ngFactoryType__) {
|
|
5883
|
+
/** @nocollapse */ static ɵfac = function ErrorMagicComponent_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
5884
|
+
return new (__ngFactoryType__ || ErrorMagicComponent)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(AccessorMagicService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
5868
5885
|
/** @nocollapse */ static ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: ErrorMagicComponent, selectors: [["mgError"]], viewQuery: function ErrorMagicComponent_Query(rf, ctx) { if (rf & 1) {
|
|
5869
5886
|
i0.ɵɵviewQuery(_c0$1, 5);
|
|
5870
5887
|
} if (rf & 2) {
|
|
@@ -5875,7 +5892,7 @@ class ErrorMagicComponent {
|
|
|
5875
5892
|
i0.ɵɵconditionalCreate(0, ErrorMagicComponent_Conditional_0_Template, 5, 1, "div");
|
|
5876
5893
|
} if (rf & 2) {
|
|
5877
5894
|
i0.ɵɵconditional(ctx.HasErrors(ctx.id) ? 0 : -1);
|
|
5878
|
-
} }, encapsulation: 2 });
|
|
5895
|
+
} }, encapsulation: 2, changeDetection: 1 });
|
|
5879
5896
|
}
|
|
5880
5897
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorMagicComponent, [{
|
|
5881
5898
|
type: Component,
|
|
@@ -5894,6 +5911,7 @@ class ErrorMagicComponent {
|
|
|
5894
5911
|
</div>
|
|
5895
5912
|
}
|
|
5896
5913
|
`,
|
|
5914
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
5897
5915
|
standalone: false
|
|
5898
5916
|
}]
|
|
5899
5917
|
}], () => [{ type: TaskMagicService }, { type: AccessorMagicService }, { type: i0.ChangeDetectorRef }], { magic: [{
|
|
@@ -5906,7 +5924,7 @@ class ErrorMagicComponent {
|
|
|
5906
5924
|
type: ViewChild,
|
|
5907
5925
|
args: ['customContent', { static: false }]
|
|
5908
5926
|
}] }); })();
|
|
5909
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ErrorMagicComponent, { className: "ErrorMagicComponent", filePath: "src/ui/mgerror.magic.component.ts", lineNumber:
|
|
5927
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ErrorMagicComponent, { className: "ErrorMagicComponent", filePath: "src/ui/mgerror.magic.component.ts", lineNumber: 29 }); })();
|
|
5910
5928
|
|
|
5911
5929
|
/**
|
|
5912
5930
|
* Directive for checkboxes, to handle the 'change' event
|
|
@@ -5993,7 +6011,8 @@ class CheckboxMagicDirective {
|
|
|
5993
6011
|
if (this.subscribeRefreshDom !== null)
|
|
5994
6012
|
this.subscribeRefreshDom.unsubscribe();
|
|
5995
6013
|
}
|
|
5996
|
-
/** @nocollapse */ static ɵfac = function CheckboxMagicDirective_Factory(__ngFactoryType__) {
|
|
6014
|
+
/** @nocollapse */ static ɵfac = function CheckboxMagicDirective_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
6015
|
+
return new (__ngFactoryType__ || CheckboxMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(TaskMagicService)); };
|
|
5997
6016
|
/** @nocollapse */ static ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: CheckboxMagicDirective, selectors: [["input", "type", "checkbox", "magic", "", 3, "noFormControl", ""]], hostBindings: function CheckboxMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
5998
6017
|
i0.ɵɵlistener("change", function CheckboxMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
|
|
5999
6018
|
} }, inputs: { threeState: "threeState" }, standalone: false });
|
|
@@ -6041,7 +6060,8 @@ class ComboboxMagicDirective {
|
|
|
6041
6060
|
onComboboxItemsListChanged() {
|
|
6042
6061
|
this.magicDirective.task.refreshView();
|
|
6043
6062
|
}
|
|
6044
|
-
/** @nocollapse */ static ɵfac = function ComboboxMagicDirective_Factory(__ngFactoryType__) {
|
|
6063
|
+
/** @nocollapse */ static ɵfac = function ComboboxMagicDirective_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
6064
|
+
return new (__ngFactoryType__ || ComboboxMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
|
|
6045
6065
|
/** @nocollapse */ static ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: ComboboxMagicDirective, selectors: [["select", "magic", "", 3, "multiple", ""]], hostBindings: function ComboboxMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
6046
6066
|
i0.ɵɵlistener("change", function ComboboxMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
|
|
6047
6067
|
} }, standalone: false });
|
|
@@ -6280,7 +6300,8 @@ class MagicShellComponent {
|
|
|
6280
6300
|
break;
|
|
6281
6301
|
}
|
|
6282
6302
|
}
|
|
6283
|
-
/** @nocollapse */ static ɵfac = function MagicShellComponent_Factory(__ngFactoryType__) {
|
|
6303
|
+
/** @nocollapse */ static ɵfac = function MagicShellComponent_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
6304
|
+
return new (__ngFactoryType__ || MagicShellComponent)(i0.ɵɵdirectiveInject(EngineMagicService), i0.ɵɵdirectiveInject(ComponentListMagicService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$1.Title), i0.ɵɵdirectiveInject(OverlayWindowService), i0.ɵɵdirectiveInject(i1$2.HttpClient), i0.ɵɵdirectiveInject(CommandsCollectorMagicService), i0.ɵɵdirectiveInject(i2.ActivatedRoute), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(ExitMagicService, 8)); };
|
|
6284
6305
|
/** @nocollapse */ static ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: MagicShellComponent, selectors: [["magic-root"]], viewQuery: function MagicShellComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6285
6306
|
i0.ɵɵviewQuery(_c0, 7);
|
|
6286
6307
|
} if (rf & 2) {
|
|
@@ -6302,7 +6323,7 @@ class MagicShellComponent {
|
|
|
6302
6323
|
i0.ɵɵconditional(ctx.RootComponent !== null ? 2 : -1);
|
|
6303
6324
|
i0.ɵɵadvance(3);
|
|
6304
6325
|
i0.ɵɵconditional(ctx.showSpinner ? 5 : -1);
|
|
6305
|
-
} }, dependencies: [i1.NgTemplateOutlet, i2$3.DynamicIoDirective, i2$3.DynamicComponent, MagicViewContainerRef], styles: [".mgSpinnerClass[_ngcontent-%COMP%]{border:10px solid #cccccc;border-top:10px solid black;border-radius:50%;position:fixed;margin:auto;inset:0;width:100px;height:100px;animation:_ngcontent-%COMP%_spin 2s linear infinite}.spinner-background[_ngcontent-%COMP%]{position:fixed;z-index:1000;inset:0;opacity:.5}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"] });
|
|
6326
|
+
} }, dependencies: [i1.NgTemplateOutlet, i2$3.DynamicIoDirective, i2$3.DynamicComponent, MagicViewContainerRef], styles: [".mgSpinnerClass[_ngcontent-%COMP%]{border:10px solid #cccccc;border-top:10px solid black;border-radius:50%;position:fixed;margin:auto;inset:0;width:100px;height:100px;animation:_ngcontent-%COMP%_spin 2s linear infinite}.spinner-background[_ngcontent-%COMP%]{position:fixed;z-index:1000;inset:0;opacity:.5}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"], changeDetection: 1 });
|
|
6306
6327
|
}
|
|
6307
6328
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicShellComponent, [{
|
|
6308
6329
|
type: Component,
|
|
@@ -6330,7 +6351,7 @@ class MagicShellComponent {
|
|
|
6330
6351
|
<ng-template #defaultSpinner>
|
|
6331
6352
|
<div class="mgSpinnerClass"></div>
|
|
6332
6353
|
</ng-template>
|
|
6333
|
-
`, standalone: false, styles: [".mgSpinnerClass{border:10px solid #cccccc;border-top:10px solid black;border-radius:50%;position:fixed;margin:auto;inset:0;width:100px;height:100px;animation:spin 2s linear infinite}.spinner-background{position:fixed;z-index:1000;inset:0;opacity:.5}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
|
|
6354
|
+
`, changeDetection: ChangeDetectionStrategy.Eager, standalone: false, styles: [".mgSpinnerClass{border:10px solid #cccccc;border-top:10px solid black;border-radius:50%;position:fixed;margin:auto;inset:0;width:100px;height:100px;animation:spin 2s linear infinite}.spinner-background{position:fixed;z-index:1000;inset:0;opacity:.5}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
|
|
6334
6355
|
}], () => [{ type: EngineMagicService }, { type: ComponentListMagicService }, { type: i0.ChangeDetectorRef }, { type: i1$1.Title }, { type: OverlayWindowService }, { type: i1$2.HttpClient }, { type: CommandsCollectorMagicService }, { type: i2.ActivatedRoute }, { type: i2.Router }, { type: ExitMagicService, decorators: [{
|
|
6335
6356
|
type: Optional
|
|
6336
6357
|
}] }], { rootMagicElementRef: [{
|
|
@@ -6345,7 +6366,7 @@ class MagicShellComponent {
|
|
|
6345
6366
|
type: HostListener,
|
|
6346
6367
|
args: ['window:unload', ['$event']]
|
|
6347
6368
|
}] }); })();
|
|
6348
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MagicShellComponent, { className: "MagicShellComponent", filePath: "src/ui/magic-root.component.ts", lineNumber:
|
|
6369
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MagicShellComponent, { className: "MagicShellComponent", filePath: "src/ui/magic-root.component.ts", lineNumber: 92 }); })();
|
|
6349
6370
|
|
|
6350
6371
|
/**
|
|
6351
6372
|
* @ignore
|
|
@@ -6372,7 +6393,7 @@ class MagicCheckboxControlValueAccessor extends CheckboxControlValueAccessor {
|
|
|
6372
6393
|
input[type=checkbox][magic]:not([formControl]),
|
|
6373
6394
|
input[type=checkbox][magic]:not([ngModel])
|
|
6374
6395
|
`,
|
|
6375
|
-
host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },
|
|
6396
|
+
host: { '(change)': 'onChange($any($event.target).checked)', '(blur)': 'onTouched()' },
|
|
6376
6397
|
providers: [CHECKBOX_VALUE_ACCESSOR],
|
|
6377
6398
|
standalone: false
|
|
6378
6399
|
}]
|
|
@@ -6403,10 +6424,10 @@ class MagicDefaultValueAccessor extends DefaultValueAccessor {
|
|
|
6403
6424
|
textarea[magic]:not([formControlName]):not([noFormControl]):not([no-form-control])
|
|
6404
6425
|
`,
|
|
6405
6426
|
host: {
|
|
6406
|
-
'(input)': '$any(this)._handleInput($event.target.value)',
|
|
6427
|
+
'(input)': '$any(this)._handleInput($any($event.target).value)',
|
|
6407
6428
|
'(blur)': 'onTouched()',
|
|
6408
6429
|
'(compositionstart)': '$any(this)._compositionStart()',
|
|
6409
|
-
'(compositionend)': '$any(this)._compositionEnd($event.target.value)'
|
|
6430
|
+
'(compositionend)': '$any(this)._compositionEnd($any($event.target).value)'
|
|
6410
6431
|
},
|
|
6411
6432
|
providers: [MAGIC_DEFAULT_VALUE_ACCESSOR],
|
|
6412
6433
|
exportAs: 'magic',
|
|
@@ -6428,7 +6449,8 @@ class CheckboxNoFormControlMagicDirective {
|
|
|
6428
6449
|
onChange($event) {
|
|
6429
6450
|
this.magicDirective.task.onCheckChanged($event, this.magicDirective.id, +this.magicDirective.rowId);
|
|
6430
6451
|
}
|
|
6431
|
-
/** @nocollapse */ static ɵfac = function CheckboxNoFormControlMagicDirective_Factory(__ngFactoryType__) {
|
|
6452
|
+
/** @nocollapse */ static ɵfac = function CheckboxNoFormControlMagicDirective_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
6453
|
+
return new (__ngFactoryType__ || CheckboxNoFormControlMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
|
|
6432
6454
|
/** @nocollapse */ static ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: CheckboxNoFormControlMagicDirective, selectors: [["input", "type", "checkbox", "magic", "", "noFormControl", ""]], hostBindings: function CheckboxNoFormControlMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
6433
6455
|
i0.ɵɵlistener("change", function CheckboxNoFormControlMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
|
|
6434
6456
|
} }, standalone: false });
|
|
@@ -6460,7 +6482,8 @@ class InputNoFormControlMagicDirective {
|
|
|
6460
6482
|
onChange($event) {
|
|
6461
6483
|
this.magicDirective.task.setInputTextValue(this.magicDirective.id, this.magicDirective.rowId, event.srcElement.value);
|
|
6462
6484
|
}
|
|
6463
|
-
/** @nocollapse */ static ɵfac = function InputNoFormControlMagicDirective_Factory(__ngFactoryType__) {
|
|
6485
|
+
/** @nocollapse */ static ɵfac = function InputNoFormControlMagicDirective_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
6486
|
+
return new (__ngFactoryType__ || InputNoFormControlMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
|
|
6464
6487
|
/** @nocollapse */ static ɵdir = /** @pureOrBreakMyCode */ 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) {
|
|
6465
6488
|
i0.ɵɵlistener("change", function InputNoFormControlMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
|
|
6466
6489
|
} }, standalone: false });
|
|
@@ -6545,7 +6568,8 @@ class DateValueAccessor {
|
|
|
6545
6568
|
setDisabledState(isDisabled) {
|
|
6546
6569
|
this.renderer.setProperty(this.elementRef.nativeElement, "disabled", isDisabled);
|
|
6547
6570
|
}
|
|
6548
|
-
/** @nocollapse */ static ɵfac = function DateValueAccessor_Factory(__ngFactoryType__) {
|
|
6571
|
+
/** @nocollapse */ static ɵfac = function DateValueAccessor_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
6572
|
+
return new (__ngFactoryType__ || DateValueAccessor)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(MagicDirective), i0.ɵɵdirectiveInject(TaskMagicService)); };
|
|
6549
6573
|
/** @nocollapse */ static ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: DateValueAccessor, selectors: [["", "dateInput", ""]], hostBindings: function DateValueAccessor_HostBindings(rf, ctx) { if (rf & 1) {
|
|
6550
6574
|
i0.ɵɵlistener("input", function DateValueAccessor_input_HostBindingHandler($event) { return ctx.onChange($event.target.valueAsDate); })("blur", function DateValueAccessor_blur_HostBindingHandler($event) { return ctx.onBlurEvent($event); });
|
|
6551
6575
|
} }, standalone: false, features: [i0.ɵɵProvidersFeature([DATE_VALUE_ACCESSOR])] });
|
|
@@ -6650,7 +6674,8 @@ class NonMagicControlDirective {
|
|
|
6650
6674
|
ngOnInit() {
|
|
6651
6675
|
this.regEvents();
|
|
6652
6676
|
}
|
|
6653
|
-
/** @nocollapse */ static ɵfac = function NonMagicControlDirective_Factory(__ngFactoryType__) {
|
|
6677
|
+
/** @nocollapse */ static ɵfac = function NonMagicControlDirective_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
6678
|
+
return new (__ngFactoryType__ || NonMagicControlDirective)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
|
|
6654
6679
|
/** @nocollapse */ static ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: NonMagicControlDirective, selectors: [["", "NonMagicControl", ""]], inputs: { magic: [0, "NonMagicControl", "magic"] }, standalone: false });
|
|
6655
6680
|
}
|
|
6656
6681
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NonMagicControlDirective, [{
|
|
@@ -6685,7 +6710,8 @@ class Time24MagicPipe {
|
|
|
6685
6710
|
}
|
|
6686
6711
|
return value;
|
|
6687
6712
|
}
|
|
6688
|
-
/** @nocollapse */ static ɵfac = function Time24MagicPipe_Factory(__ngFactoryType__) {
|
|
6713
|
+
/** @nocollapse */ static ɵfac = function Time24MagicPipe_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
6714
|
+
return new (__ngFactoryType__ || Time24MagicPipe)(i0.ɵɵdirectiveInject(TaskMagicService, 16)); };
|
|
6689
6715
|
/** @nocollapse */ static ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "magicTime24", type: Time24MagicPipe, pure: true, standalone: false });
|
|
6690
6716
|
}
|
|
6691
6717
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Time24MagicPipe, [{
|
|
@@ -6736,27 +6762,28 @@ const decs = [
|
|
|
6736
6762
|
class MagicModule {
|
|
6737
6763
|
/** @nocollapse */ static ɵfac = function MagicModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MagicModule)(); };
|
|
6738
6764
|
/** @nocollapse */ static ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: MagicModule });
|
|
6739
|
-
/** @nocollapse */ static ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider, provideHttpClient(withInterceptorsFromDi())], imports: [CommonModule,
|
|
6765
|
+
/** @nocollapse */ static ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider, provideHttpClient(withXhr(), withInterceptorsFromDi())], imports: [CommonModule,
|
|
6740
6766
|
FormsModule,
|
|
6741
6767
|
ReactiveFormsModule,
|
|
6742
6768
|
RouterModule,
|
|
6743
6769
|
DynamicModule,
|
|
6744
|
-
DragDropModule
|
|
6770
|
+
DragDropModule] });
|
|
6745
6771
|
}
|
|
6746
6772
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicModule, [{
|
|
6747
6773
|
type: NgModule,
|
|
6748
6774
|
args: [{
|
|
6749
6775
|
declarations: [...decs],
|
|
6750
|
-
exports: [...decs,
|
|
6776
|
+
exports: [...decs, MaskitoDirective],
|
|
6751
6777
|
imports: [CommonModule,
|
|
6752
6778
|
FormsModule,
|
|
6753
6779
|
ReactiveFormsModule,
|
|
6754
6780
|
RouterModule,
|
|
6755
6781
|
DynamicModule,
|
|
6782
|
+
MaskitoDirective,
|
|
6756
6783
|
CdkDragHandle,
|
|
6757
6784
|
CdkDrag,
|
|
6758
6785
|
DragDropModule],
|
|
6759
|
-
providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider, provideHttpClient(withInterceptorsFromDi())]
|
|
6786
|
+
providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider, provideHttpClient(withXhr(), withInterceptorsFromDi())]
|
|
6760
6787
|
}]
|
|
6761
6788
|
}], null, null); })();
|
|
6762
6789
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MagicModule, { declarations: [MagicDirective,
|
|
@@ -6792,6 +6819,7 @@ class MagicModule {
|
|
|
6792
6819
|
ReactiveFormsModule,
|
|
6793
6820
|
RouterModule,
|
|
6794
6821
|
DynamicModule,
|
|
6822
|
+
MaskitoDirective,
|
|
6795
6823
|
CdkDragHandle,
|
|
6796
6824
|
CdkDrag,
|
|
6797
6825
|
DragDropModule], exports: [MagicDirective,
|
|
@@ -6822,7 +6850,7 @@ class MagicModule {
|
|
|
6822
6850
|
NonMagicControlDirective,
|
|
6823
6851
|
MagicFocusDirective,
|
|
6824
6852
|
MagicViewContainerRef,
|
|
6825
|
-
Time24MagicPipe,
|
|
6853
|
+
Time24MagicPipe, MaskitoDirective] }); })();
|
|
6826
6854
|
|
|
6827
6855
|
const MG_FORMATS = {
|
|
6828
6856
|
parse: { dateInput: { month: 'short', year: 'numeric', day: 'numeric' } },
|
|
@@ -6838,7 +6866,7 @@ class MgDateAdapter extends NativeDateAdapter {
|
|
|
6838
6866
|
localeId;
|
|
6839
6867
|
mgdtfmt = null;
|
|
6840
6868
|
constructor(task, localeId) {
|
|
6841
|
-
super(
|
|
6869
|
+
super();
|
|
6842
6870
|
this.task = task;
|
|
6843
6871
|
this.localeId = localeId;
|
|
6844
6872
|
this.setLocale(localeId);
|
|
@@ -6916,7 +6944,8 @@ class MgDateAdapter extends NativeDateAdapter {
|
|
|
6916
6944
|
return date.toDateString();
|
|
6917
6945
|
}
|
|
6918
6946
|
}
|
|
6919
|
-
/** @nocollapse */ static ɵfac = function MgDateAdapter_Factory(__ngFactoryType__) {
|
|
6947
|
+
/** @nocollapse */ static ɵfac = function MgDateAdapter_Factory(__ngFactoryType__) { /* @ts-ignore */
|
|
6948
|
+
return new (__ngFactoryType__ || MgDateAdapter)(i0.ɵɵinject(TaskMagicService), i0.ɵɵinject(MAT_DATE_LOCALE)); };
|
|
6920
6949
|
/** @nocollapse */ static ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: MgDateAdapter, factory: MgDateAdapter.ɵfac });
|
|
6921
6950
|
}
|
|
6922
6951
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MgDateAdapter, [{
|