@magic-xpa/angular 4.800.0 → 4.801.0-dev000.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/index.mjs +57 -0
- package/{esm2015/magic-xpa-angular.js → esm2020/magic-xpa-angular.mjs} +0 -0
- package/esm2020/src/controls.metadata.model.mjs +180 -0
- package/{esm2015/src/interfaces/sub-form-definition.iterface.js → esm2020/src/interfaces/sub-form-definition.iterface.mjs} +1 -0
- package/esm2020/src/magic.core.module.mjs +157 -0
- package/{esm2015/src/services/ISubformMagicService.js → esm2020/src/services/ISubformMagicService.mjs} +1 -0
- package/esm2020/src/services/OverlayWindowService.mjs +208 -0
- package/esm2020/src/services/StylesMapManager.mjs +28 -0
- package/esm2020/src/services/accessor.magic.service.mjs +302 -0
- package/{esm2015/src/services/commands-collector.magic.service.js → esm2020/src/services/commands-collector.magic.service.mjs} +7 -4
- package/esm2020/src/services/component-list.magic.service.mjs +46 -0
- package/{esm2015/src/services/confirmation.components.magic.provider.js → esm2020/src/services/confirmation.components.magic.provider.mjs} +2 -2
- package/esm2020/src/services/engine.magic.service.mjs +82 -0
- package/{esm2015/src/services/exit.magic.service.js → esm2020/src/services/exit.magic.service.mjs} +2 -2
- package/esm2020/src/services/magic.lazy.loader.service.mjs +16 -0
- package/{esm2015/src/services/magic.providers.js → esm2020/src/services/magic.providers.mjs} +0 -0
- package/{esm2015/src/services/magic.services.js → esm2020/src/services/magic.services.mjs} +2 -2
- package/{esm2015/src/services/mg-date-adapter.js → esm2020/src/services/mg-date-adapter.mjs} +2 -2
- package/{esm2015/src/services/overlay.conainer.magic.provider.js → esm2020/src/services/overlay.conainer.magic.provider.mjs} +2 -2
- package/esm2020/src/services/router-commands.magic.service.mjs +28 -0
- package/esm2020/src/services/subform.magic.service.mjs +185 -0
- package/{esm2015/src/services/table.magic.service.js → esm2020/src/services/table.magic.service.mjs} +2 -2
- package/esm2020/src/services/task.magics.service.mjs +611 -0
- package/{esm2015/src/services/title.magic.service.js → esm2020/src/services/title.magic.service.mjs} +2 -2
- package/esm2020/src/ui/GuiInteractiveExecutor.mjs +98 -0
- package/{esm2015/src/ui/components/base-magic-alert.component.js → esm2020/src/ui/components/base-magic-alert.component.mjs} +2 -2
- package/{esm2015/src/ui/components/base-magic-confirm.component.js → esm2020/src/ui/components/base-magic-confirm.component.mjs} +2 -2
- package/esm2020/src/ui/components/magic-alert.component.mjs +71 -0
- package/esm2020/src/ui/components/magic-confirmation-box.component.mjs +82 -0
- package/{esm2015/src/ui/directives/NonMagicControlDirective.js → esm2020/src/ui/directives/NonMagicControlDirective.mjs} +2 -2
- package/{esm2015/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.js → esm2020/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.mjs} +2 -2
- package/{esm2015/src/ui/directives/magic/checkbox.magic.directive.js → esm2020/src/ui/directives/magic/checkbox.magic.directive.mjs} +2 -2
- package/{esm2015/src/ui/directives/magic/combobox.magic.directive.js → esm2020/src/ui/directives/magic/combobox.magic.directive.mjs} +2 -2
- package/{esm2015/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.js → esm2020/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.mjs} +3 -4
- package/{esm2015/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.js → esm2020/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.mjs} +2 -2
- package/{esm2015/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.js → esm2020/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.mjs} +3 -4
- package/{esm2015/src/ui/directives/magic/input.noformcontrol.magic.directive.js → esm2020/src/ui/directives/magic/input.noformcontrol.magic.directive.mjs} +2 -2
- package/{esm2015/src/ui/directives/magic/nocontrol.magic.directive.js → esm2020/src/ui/directives/magic/nocontrol.magic.directive.mjs} +2 -2
- package/{esm2015/src/ui/directives/magic/row.magic.directive.js → esm2020/src/ui/directives/magic/row.magic.directive.mjs} +2 -2
- package/{esm2015/src/ui/directives/magic-focus.directive.js → esm2020/src/ui/directives/magic-focus.directive.mjs} +2 -2
- package/esm2020/src/ui/directives/magic.directive.mjs +207 -0
- package/esm2020/src/ui/directives/magicViewContainerRef.directive.mjs +20 -0
- package/{esm2015/src/ui/directives/mgformat.magic.directive.js → esm2020/src/ui/directives/mgformat.magic.directive.mjs} +2 -2
- package/{esm2015/src/ui/directives/range-validator.magic.directive.js → esm2020/src/ui/directives/range-validator.magic.directive.mjs} +2 -2
- package/{esm2015/src/ui/magic-confirmationBox.js → esm2020/src/ui/magic-confirmationBox.mjs} +0 -0
- package/{esm2015/src/ui/magic-modal/base-magic-overlay-container.js → esm2020/src/ui/magic-modal/base-magic-overlay-container.mjs} +0 -0
- package/{esm2015/src/ui/magic-modal/magic-modal-form.js → esm2020/src/ui/magic-modal/magic-modal-form.mjs} +0 -0
- package/{esm2015/src/ui/magic-modal/magic-modal-interface.js → esm2020/src/ui/magic-modal/magic-modal-interface.mjs} +1 -0
- package/esm2020/src/ui/magic-modal/magic-overlay-container-wrapper.mjs +135 -0
- package/esm2020/src/ui/magic-modal/magic-overlay-container.mjs +165 -0
- package/esm2020/src/ui/magic-root.component.mjs +237 -0
- package/esm2020/src/ui/mgerror.magic.component.mjs +120 -0
- package/esm2020/src/ui/pipes/date.magic.pipe.mjs +105 -0
- package/{esm2015/src/ui/pipes/time.magic.pipe.js → esm2020/src/ui/pipes/time.magic.pipe.mjs} +3 -3
- package/esm2020/src/ui/router-container.magic.component.mjs +109 -0
- package/esm2020/src/ui/subform.magic.component.mjs +52 -0
- package/{esm2015/src/ui/task-base.magic.component.js → esm2020/src/ui/task-base.magic.component.mjs} +2 -2
- package/{esm2015/src/ui/utils.js → esm2020/src/ui/utils.mjs} +0 -0
- package/fesm2015/magic-xpa-angular.mjs +4578 -0
- package/fesm2015/magic-xpa-angular.mjs.map +1 -0
- package/{fesm2015/magic-xpa-angular.js → fesm2020/magic-xpa-angular.mjs} +435 -415
- package/fesm2020/magic-xpa-angular.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/package.json +28 -15
- package/src/magic.core.module.d.ts +3 -8
- package/src/services/OverlayWindowService.d.ts +2 -2
- package/src/services/accessor.magic.service.d.ts +2 -2
- package/src/services/commands-collector.magic.service.d.ts +2 -2
- package/src/services/component-list.magic.service.d.ts +3 -0
- package/src/services/confirmation.components.magic.provider.d.ts +2 -2
- package/src/services/engine.magic.service.d.ts +2 -2
- package/src/services/exit.magic.service.d.ts +2 -2
- package/src/services/magic.lazy.loader.service.d.ts +6 -0
- package/src/services/magic.services.d.ts +2 -2
- package/src/services/mg-date-adapter.d.ts +2 -2
- package/src/services/overlay.conainer.magic.provider.d.ts +2 -2
- package/src/services/router-commands.magic.service.d.ts +2 -2
- package/src/services/subform.magic.service.d.ts +6 -4
- package/src/services/table.magic.service.d.ts +2 -2
- package/src/services/task.magics.service.d.ts +2 -2
- package/src/services/title.magic.service.d.ts +2 -2
- package/src/ui/components/base-magic-alert.component.d.ts +2 -2
- package/src/ui/components/base-magic-confirm.component.d.ts +2 -2
- package/src/ui/components/magic-alert.component.d.ts +2 -2
- package/src/ui/components/magic-confirmation-box.component.d.ts +2 -2
- package/src/ui/directives/NonMagicControlDirective.d.ts +2 -2
- package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +2 -2
- package/src/ui/directives/magic/checkbox.magic.directive.d.ts +2 -2
- package/src/ui/directives/magic/combobox.magic.directive.d.ts +2 -2
- package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +2 -2
- package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +2 -2
- package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +2 -2
- package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +2 -2
- package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +2 -2
- package/src/ui/directives/magic/row.magic.directive.d.ts +2 -2
- package/src/ui/directives/magic-focus.directive.d.ts +2 -2
- package/src/ui/directives/magic.directive.d.ts +2 -2
- package/src/ui/directives/magicViewContainerRef.directive.d.ts +2 -2
- package/src/ui/directives/mgformat.magic.directive.d.ts +2 -2
- package/src/ui/directives/range-validator.magic.directive.d.ts +2 -2
- package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +7 -5
- package/src/ui/magic-modal/magic-overlay-container.d.ts +2 -2
- package/src/ui/magic-root.component.d.ts +2 -2
- package/src/ui/mgerror.magic.component.d.ts +2 -2
- package/src/ui/pipes/date.magic.pipe.d.ts +2 -2
- package/src/ui/pipes/time.magic.pipe.d.ts +2 -2
- package/src/ui/router-container.magic.component.d.ts +2 -2
- package/src/ui/subform.magic.component.d.ts +2 -2
- package/src/ui/task-base.magic.component.d.ts +2 -2
- package/bundles/magic-xpa-angular.umd.js +0 -5028
- package/bundles/magic-xpa-angular.umd.js.map +0 -1
- package/bundles/magic-xpa-angular.umd.min.js +0 -16
- package/bundles/magic-xpa-angular.umd.min.js.map +0 -1
- package/esm2015/index.js +0 -56
- package/esm2015/src/controls.metadata.model.js +0 -180
- package/esm2015/src/magic.core.module.js +0 -173
- package/esm2015/src/services/OverlayWindowService.js +0 -205
- package/esm2015/src/services/StylesMapManager.js +0 -29
- package/esm2015/src/services/accessor.magic.service.js +0 -302
- package/esm2015/src/services/component-list.magic.service.js +0 -36
- package/esm2015/src/services/engine.magic.service.js +0 -82
- package/esm2015/src/services/router-commands.magic.service.js +0 -25
- package/esm2015/src/services/subform.magic.service.js +0 -182
- package/esm2015/src/services/task.magics.service.js +0 -611
- package/esm2015/src/ui/GuiInteractiveExecutor.js +0 -98
- package/esm2015/src/ui/components/magic-alert.component.js +0 -72
- package/esm2015/src/ui/components/magic-confirmation-box.component.js +0 -83
- package/esm2015/src/ui/directives/magic.directive.js +0 -207
- package/esm2015/src/ui/directives/magicViewContainerRef.directive.js +0 -20
- package/esm2015/src/ui/magic-modal/magic-overlay-container-wrapper.js +0 -131
- package/esm2015/src/ui/magic-modal/magic-overlay-container.js +0 -169
- package/esm2015/src/ui/magic-root.component.js +0 -237
- package/esm2015/src/ui/mgerror.magic.component.js +0 -120
- package/esm2015/src/ui/pipes/date.magic.pipe.js +0 -106
- package/esm2015/src/ui/router-container.magic.component.js +0 -109
- package/esm2015/src/ui/subform.magic.component.js +0 -52
- package/fesm2015/magic-xpa-angular.js.map +0 -1
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { isNullOrUndefined, isUndefined } from '
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { isNullOrUndefined, NString, List, isUndefined, StringBuilder, RefParam } from '@magic-xpa/mscorelib';
|
|
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
|
|
7
|
-
import {
|
|
8
|
-
import { Subject } from 'rxjs';
|
|
9
|
-
import { MagicBridge, getGuiEventObj, CookieService } from '@magic-xpa/engine';
|
|
9
|
+
import * as i3 from 'ng-dynamic-component';
|
|
10
|
+
import { DynamicModule } from 'ng-dynamic-component';
|
|
10
11
|
import { InteractiveCommandType, OverlayType, Styles, HtmlProperties, GuiConstants, CommandType, PIC, GuiEnvironment, Modifiers } from '@magic-xpa/gui';
|
|
12
|
+
import { MagicBridge, getGuiEventObj, CookieService } from '@magic-xpa/engine';
|
|
11
13
|
import { MagicProperties, Logger, StrUtil, StorageAttribute, BindingLevel, StorageAttributeType, PICInterface } from '@magic-xpa/utils';
|
|
12
14
|
import { filter, map, debounceTime } from 'rxjs/operators';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import
|
|
15
|
+
import { Subject, fromEvent } from 'rxjs';
|
|
16
|
+
import { __decorate, __metadata } from 'tslib';
|
|
17
|
+
import * as i1$1 from '@angular/platform-browser';
|
|
18
|
+
import * as i5 from '@angular/common/http';
|
|
19
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
17
20
|
import { NativeDateAdapter, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
|
|
18
|
-
import
|
|
21
|
+
import * as i1$2 from '@angular/cdk/platform';
|
|
19
22
|
|
|
20
23
|
class ControlMetadata {
|
|
21
24
|
constructor() {
|
|
@@ -196,6 +199,32 @@ var HtmlClasses;
|
|
|
196
199
|
HtmlClasses["HintColor"] = "hintcolor";
|
|
197
200
|
})(HtmlClasses || (HtmlClasses = {}));
|
|
198
201
|
|
|
202
|
+
class StylesMapManager {
|
|
203
|
+
static magicValueGetStyle(styleName, magicValue) {
|
|
204
|
+
let style = "";
|
|
205
|
+
if (!isNullOrUndefined(magicValue)) {
|
|
206
|
+
let value = StylesMapManager.StylesMap.get(styleName);
|
|
207
|
+
if (value.constructor === Map) {
|
|
208
|
+
style = value.get(magicValue);
|
|
209
|
+
}
|
|
210
|
+
else if (value.constructor === String) {
|
|
211
|
+
style = NString.Format(value.toString(), magicValue);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return style;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
StylesMapManager.StylesMap = new Map([
|
|
218
|
+
[MagicProperties.LineDivider, new Map([[true, "solid"], [false, "hidden"]])],
|
|
219
|
+
[MagicProperties.ImageFile, "url('\{0}\')"],
|
|
220
|
+
[MagicProperties.Wallpaper, "url('\{0}\')"]
|
|
221
|
+
]);
|
|
222
|
+
StylesMapManager.MagicPropertyToHtmlAttributeMap = new Map([
|
|
223
|
+
[MagicProperties.LineDivider, "border-bottom-style"],
|
|
224
|
+
[MagicProperties.ImageFile, "background-image"],
|
|
225
|
+
[MagicProperties.Wallpaper, "background-image"]
|
|
226
|
+
]);
|
|
227
|
+
|
|
199
228
|
class EngineMagicService {
|
|
200
229
|
constructor() {
|
|
201
230
|
this.magicBridge = MagicBridge;
|
|
@@ -228,10 +257,8 @@ class EngineMagicService {
|
|
|
228
257
|
});
|
|
229
258
|
this.magicBridge.Initialize(httpClient);
|
|
230
259
|
}
|
|
231
|
-
terminateMagic() {
|
|
232
|
-
|
|
233
|
-
yield this.magicBridge.TerminateMagic();
|
|
234
|
-
});
|
|
260
|
+
async terminateMagic() {
|
|
261
|
+
await this.magicBridge.TerminateMagic();
|
|
235
262
|
}
|
|
236
263
|
insertEvent(guiEvent) {
|
|
237
264
|
if (!this.isStub)
|
|
@@ -268,9 +295,12 @@ class EngineMagicService {
|
|
|
268
295
|
}
|
|
269
296
|
}
|
|
270
297
|
EngineMagicService.ɵfac = function EngineMagicService_Factory(t) { return new (t || EngineMagicService)(); };
|
|
271
|
-
EngineMagicService.ɵprov =
|
|
272
|
-
(function () {
|
|
273
|
-
type: Injectable
|
|
298
|
+
EngineMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: EngineMagicService, factory: EngineMagicService.ɵfac, providedIn: 'root' });
|
|
299
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EngineMagicService, [{
|
|
300
|
+
type: Injectable,
|
|
301
|
+
args: [{
|
|
302
|
+
providedIn: 'root'
|
|
303
|
+
}]
|
|
274
304
|
}], null, null); })();
|
|
275
305
|
|
|
276
306
|
class ComponentListMagicService {
|
|
@@ -307,33 +337,15 @@ class ComponentListMagicService {
|
|
|
307
337
|
getLazyLoadModuleData(name) {
|
|
308
338
|
return (this.lazyLoadModulesMap != null && this.lazyLoadModulesMap.hasOwnProperty(name)) ? this.lazyLoadModulesMap[name] : null;
|
|
309
339
|
}
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
class StylesMapManager {
|
|
313
|
-
static magicValueGetStyle(styleName, magicValue) {
|
|
314
|
-
let style = "";
|
|
315
|
-
if (!isNullOrUndefined(magicValue)) {
|
|
316
|
-
let value = StylesMapManager.StylesMap.get(styleName);
|
|
317
|
-
if (value.constructor === Map) {
|
|
318
|
-
style = value.get(magicValue);
|
|
319
|
-
}
|
|
320
|
-
else if (value.constructor === String) {
|
|
321
|
-
style = NString.Format(value.toString(), magicValue);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
return style;
|
|
325
|
-
}
|
|
326
340
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
[MagicProperties.Wallpaper, "background-image"]
|
|
336
|
-
]);
|
|
341
|
+
ComponentListMagicService.ɵfac = function ComponentListMagicService_Factory(t) { return new (t || ComponentListMagicService)(); };
|
|
342
|
+
ComponentListMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: ComponentListMagicService, factory: ComponentListMagicService.ɵfac, providedIn: 'root' });
|
|
343
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ComponentListMagicService, [{
|
|
344
|
+
type: Injectable,
|
|
345
|
+
args: [{
|
|
346
|
+
providedIn: 'root'
|
|
347
|
+
}]
|
|
348
|
+
}], null, null); })();
|
|
337
349
|
|
|
338
350
|
class CommandsCollectorMagicService {
|
|
339
351
|
constructor(magic) {
|
|
@@ -366,10 +378,13 @@ class CommandsCollectorMagicService {
|
|
|
366
378
|
return commands;
|
|
367
379
|
}
|
|
368
380
|
}
|
|
369
|
-
CommandsCollectorMagicService.ɵfac = function CommandsCollectorMagicService_Factory(t) { return new (t || CommandsCollectorMagicService)(
|
|
370
|
-
CommandsCollectorMagicService.ɵprov =
|
|
371
|
-
(function () {
|
|
372
|
-
type: Injectable
|
|
381
|
+
CommandsCollectorMagicService.ɵfac = function CommandsCollectorMagicService_Factory(t) { return new (t || CommandsCollectorMagicService)(i0.ɵɵinject(EngineMagicService)); };
|
|
382
|
+
CommandsCollectorMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: CommandsCollectorMagicService, factory: CommandsCollectorMagicService.ɵfac, providedIn: 'root' });
|
|
383
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CommandsCollectorMagicService, [{
|
|
384
|
+
type: Injectable,
|
|
385
|
+
args: [{
|
|
386
|
+
providedIn: 'root'
|
|
387
|
+
}]
|
|
373
388
|
}], function () { return [{ type: EngineMagicService }]; }, null); })();
|
|
374
389
|
|
|
375
390
|
class RouteCommand {
|
|
@@ -389,13 +404,30 @@ class RouterCommandsMagicService {
|
|
|
389
404
|
}
|
|
390
405
|
}
|
|
391
406
|
RouterCommandsMagicService.ɵfac = function RouterCommandsMagicService_Factory(t) { return new (t || RouterCommandsMagicService)(); };
|
|
392
|
-
RouterCommandsMagicService.ɵprov =
|
|
393
|
-
(function () {
|
|
394
|
-
type: Injectable
|
|
407
|
+
RouterCommandsMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: RouterCommandsMagicService, factory: RouterCommandsMagicService.ɵfac, providedIn: 'root' });
|
|
408
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RouterCommandsMagicService, [{
|
|
409
|
+
type: Injectable,
|
|
410
|
+
args: [{
|
|
411
|
+
providedIn: 'root'
|
|
412
|
+
}]
|
|
413
|
+
}], null, null); })();
|
|
414
|
+
|
|
415
|
+
class MagicLazyLoaderService {
|
|
416
|
+
Load(path) {
|
|
417
|
+
return Promise.reject('error in loading module :' + path);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
MagicLazyLoaderService.ɵfac = function MagicLazyLoaderService_Factory(t) { return new (t || MagicLazyLoaderService)(); };
|
|
421
|
+
MagicLazyLoaderService.ɵprov = i0.ɵɵdefineInjectable({ token: MagicLazyLoaderService, factory: MagicLazyLoaderService.ɵfac, providedIn: 'root' });
|
|
422
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicLazyLoaderService, [{
|
|
423
|
+
type: Injectable,
|
|
424
|
+
args: [{
|
|
425
|
+
providedIn: 'root'
|
|
426
|
+
}]
|
|
395
427
|
}], null, null); })();
|
|
396
428
|
|
|
397
429
|
class SubformMagicService {
|
|
398
|
-
constructor(task, activatedRoute, componentList, pendingCommandsCollector, router, routerCommandsMagicService, componentListMagicService, loader, injector) {
|
|
430
|
+
constructor(task, activatedRoute, componentList, pendingCommandsCollector, router, routerCommandsMagicService, componentListMagicService, loader, injector, compiler) {
|
|
399
431
|
this.task = task;
|
|
400
432
|
this.activatedRoute = activatedRoute;
|
|
401
433
|
this.componentList = componentList;
|
|
@@ -405,6 +437,7 @@ class SubformMagicService {
|
|
|
405
437
|
this.componentListMagicService = componentListMagicService;
|
|
406
438
|
this.loader = loader;
|
|
407
439
|
this.injector = injector;
|
|
440
|
+
this.compiler = compiler;
|
|
408
441
|
this.subformsDict = {};
|
|
409
442
|
this.routesDict = {};
|
|
410
443
|
this.currentRouteDefinition = null;
|
|
@@ -446,10 +479,11 @@ class SubformMagicService {
|
|
|
446
479
|
if (moduleRef == null) {
|
|
447
480
|
let lazyLoadModule = this.componentListMagicService.getLazyLoadModuleData(formName);
|
|
448
481
|
if (lazyLoadModule != null) {
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
482
|
+
let moduleName = lazyLoadModule.moduleName.replace("Magic", "");
|
|
483
|
+
moduleName = moduleName.replace("Module", "");
|
|
484
|
+
this.loader.Load(moduleName).then(m => {
|
|
485
|
+
const compiled = this.compiler.compileModuleAndAllComponentsSync(m[lazyLoadModule.moduleName]);
|
|
486
|
+
moduleRef = compiled.ngModuleFactory.create(this.injector);
|
|
453
487
|
this.subformsDict[subformControlName] = {
|
|
454
488
|
formName,
|
|
455
489
|
parameters: { taskIdParam: taskId, taskDescription: taskDescription }
|
|
@@ -556,11 +590,11 @@ class SubformMagicService {
|
|
|
556
590
|
}
|
|
557
591
|
SubformMagicService.currentCallerMgSubformServiceRef = null;
|
|
558
592
|
SubformMagicService.routerContainers = new Array();
|
|
559
|
-
SubformMagicService.ɵfac = function SubformMagicService_Factory(t) { return new (t || SubformMagicService)(
|
|
560
|
-
SubformMagicService.ɵprov =
|
|
561
|
-
(function () {
|
|
593
|
+
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(MagicLazyLoaderService), i0.ɵɵinject(i0.Injector), i0.ɵɵinject(i0.Compiler)); };
|
|
594
|
+
SubformMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: SubformMagicService, factory: SubformMagicService.ɵfac });
|
|
595
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubformMagicService, [{
|
|
562
596
|
type: Injectable
|
|
563
|
-
}], function () { return [{ type: TaskMagicService }, { type: ActivatedRoute }, { type: ComponentListMagicService }, { type: CommandsCollectorMagicService }, { type: Router }, { type: RouterCommandsMagicService }, { type: ComponentListMagicService }, { type:
|
|
597
|
+
}], function () { return [{ type: TaskMagicService }, { type: i2.ActivatedRoute }, { type: ComponentListMagicService }, { type: CommandsCollectorMagicService }, { type: i2.Router }, { type: RouterCommandsMagicService }, { type: ComponentListMagicService }, { type: MagicLazyLoaderService }, { type: i0.Injector }, { type: i0.Compiler }]; }, null); })();
|
|
564
598
|
|
|
565
599
|
class RouterContainerMagicComponent {
|
|
566
600
|
constructor(activatedRoute, router, magic, containerTaskService, componentFactoryResolver, viewContainerRef, componentList, pendingCommandsCollector, routerCommandsMagicService) {
|
|
@@ -604,7 +638,7 @@ class RouterContainerMagicComponent {
|
|
|
604
638
|
guiEvent.RouterPath = tokens[0];
|
|
605
639
|
guiEvent.RouterParams = new List();
|
|
606
640
|
for (let i = 1; i < tokens.length; i++) {
|
|
607
|
-
guiEvent.RouterParams.push(
|
|
641
|
+
guiEvent.RouterParams.push(currentActiveRoute.snapshot.params[tokens[i]]);
|
|
608
642
|
}
|
|
609
643
|
}
|
|
610
644
|
this.containerTaskService.insertEvent(guiEvent);
|
|
@@ -642,16 +676,16 @@ class RouterContainerMagicComponent {
|
|
|
642
676
|
}
|
|
643
677
|
}
|
|
644
678
|
RouterContainerMagicComponent.lastRoute = "/";
|
|
645
|
-
RouterContainerMagicComponent.ɵfac = function RouterContainerMagicComponent_Factory(t) { return new (t || RouterContainerMagicComponent)(
|
|
646
|
-
RouterContainerMagicComponent.ɵcmp =
|
|
647
|
-
(function () {
|
|
679
|
+
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)); };
|
|
680
|
+
RouterContainerMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RouterContainerMagicComponent, selectors: [["magic-route-outlet"]], decls: 0, vars: 0, template: function RouterContainerMagicComponent_Template(rf, ctx) { }, encapsulation: 2 });
|
|
681
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RouterContainerMagicComponent, [{
|
|
648
682
|
type: Component,
|
|
649
683
|
args: [{
|
|
650
684
|
selector: 'magic-route-outlet',
|
|
651
685
|
template: `
|
|
652
686
|
`
|
|
653
687
|
}]
|
|
654
|
-
}], function () { return [{ type: ActivatedRoute }, { type: Router }, { type: EngineMagicService }, { type: TaskMagicService }, { type: ComponentFactoryResolver }, { type: ViewContainerRef }, { type: ComponentListMagicService }, { type: CommandsCollectorMagicService }, { type: RouterCommandsMagicService }]; }, null); })();
|
|
688
|
+
}], 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); })();
|
|
655
689
|
|
|
656
690
|
class GuiInteractiveExecutor {
|
|
657
691
|
Run() {
|
|
@@ -771,41 +805,41 @@ class MagicViewContainerRef {
|
|
|
771
805
|
constructor(vcRef, resolver) {
|
|
772
806
|
this.vcRef = vcRef;
|
|
773
807
|
this.resolver = resolver;
|
|
774
|
-
let comp = (this.vcRef.
|
|
808
|
+
let comp = (this.vcRef._hostLView).find(v => v != null && !isNullOrUndefined(v.setViewContainerRef));
|
|
775
809
|
comp.setViewContainerRef(vcRef);
|
|
776
810
|
}
|
|
777
811
|
}
|
|
778
|
-
MagicViewContainerRef.ɵfac = function MagicViewContainerRef_Factory(t) { return new (t || MagicViewContainerRef)(
|
|
779
|
-
MagicViewContainerRef.ɵdir =
|
|
780
|
-
(function () {
|
|
812
|
+
MagicViewContainerRef.ɵfac = function MagicViewContainerRef_Factory(t) { return new (t || MagicViewContainerRef)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver)); };
|
|
813
|
+
MagicViewContainerRef.ɵdir = i0.ɵɵdefineDirective({ type: MagicViewContainerRef, selectors: [["", "magicViewContainerRef", ""]] });
|
|
814
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicViewContainerRef, [{
|
|
781
815
|
type: Directive,
|
|
782
816
|
args: [{
|
|
783
817
|
selector: '[magicViewContainerRef]',
|
|
784
818
|
}]
|
|
785
|
-
}], function () { return [{ type: ViewContainerRef }, { type: ComponentFactoryResolver }]; }, null); })();
|
|
819
|
+
}], function () { return [{ type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }]; }, null); })();
|
|
786
820
|
|
|
787
|
-
const _c0 = ["modalheader"];
|
|
788
|
-
const _c1 = ["modalForeground"];
|
|
821
|
+
const _c0$3 = ["modalheader"];
|
|
822
|
+
const _c1$1 = ["modalForeground"];
|
|
789
823
|
function MagicOverlayContainer_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
790
|
-
const _r5 =
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
824
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
825
|
+
i0.ɵɵelementStart(0, "button", 8);
|
|
826
|
+
i0.ɵɵlistener("click", function MagicOverlayContainer_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.OnClose(); });
|
|
827
|
+
i0.ɵɵtext(1, "X");
|
|
828
|
+
i0.ɵɵelementEnd();
|
|
795
829
|
} }
|
|
796
830
|
function MagicOverlayContainer_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
797
|
-
const _r8 =
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
831
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
832
|
+
i0.ɵɵelementStart(0, "div", 9, 10);
|
|
833
|
+
i0.ɵɵtext(2);
|
|
834
|
+
i0.ɵɵelementStart(3, "button", 11);
|
|
835
|
+
i0.ɵɵlistener("click", function MagicOverlayContainer_div_5_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.OnClose(); });
|
|
836
|
+
i0.ɵɵtext(4, "X");
|
|
837
|
+
i0.ɵɵelementEnd();
|
|
838
|
+
i0.ɵɵelementEnd();
|
|
805
839
|
} if (rf & 2) {
|
|
806
|
-
const ctx_r2 =
|
|
807
|
-
|
|
808
|
-
|
|
840
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
841
|
+
i0.ɵɵadvance(2);
|
|
842
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.getText(), " ");
|
|
809
843
|
} }
|
|
810
844
|
class MagicOverlayContainer extends BaseMagicOverlayContainer {
|
|
811
845
|
constructor(injector, componentFactoryResolver) {
|
|
@@ -879,42 +913,40 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
|
|
|
879
913
|
this.OnClose();
|
|
880
914
|
}
|
|
881
915
|
}
|
|
882
|
-
MagicOverlayContainer.ɵfac = function MagicOverlayContainer_Factory(t) { return new (t || MagicOverlayContainer)(
|
|
883
|
-
MagicOverlayContainer.ɵcmp =
|
|
884
|
-
|
|
885
|
-
|
|
916
|
+
MagicOverlayContainer.ɵfac = function MagicOverlayContainer_Factory(t) { return new (t || MagicOverlayContainer)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver)); };
|
|
917
|
+
MagicOverlayContainer.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlayContainer, selectors: [["app-magic-overlay-container"]], viewQuery: function MagicOverlayContainer_Query(rf, ctx) { if (rf & 1) {
|
|
918
|
+
i0.ɵɵviewQuery(_c0$3, 5);
|
|
919
|
+
i0.ɵɵviewQuery(_c1$1, 5);
|
|
886
920
|
} if (rf & 2) {
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
} }, inputs: { ModalComp: "ModalComp", ModalCompParameters: "ModalCompParameters" }, outputs: { onClose: "onClose" }, features: [
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
921
|
+
let _t;
|
|
922
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerElementRef = _t.first);
|
|
923
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.foregroundElementRef = _t.first);
|
|
924
|
+
} }, 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) {
|
|
925
|
+
i0.ɵɵelementStart(0, "div");
|
|
926
|
+
i0.ɵɵelementStart(1, "div", 0);
|
|
927
|
+
i0.ɵɵlistener("click", function MagicOverlayContainer_Template_div_click_1_listener() { return ctx.OnBackgroundClick(); });
|
|
928
|
+
i0.ɵɵtemplate(2, MagicOverlayContainer_button_2_Template, 2, 0, "button", 1);
|
|
929
|
+
i0.ɵɵelementEnd();
|
|
930
|
+
i0.ɵɵelementStart(3, "div", 2, 3);
|
|
931
|
+
i0.ɵɵtemplate(5, MagicOverlayContainer_div_5_Template, 5, 1, "div", 4);
|
|
932
|
+
i0.ɵɵelementStart(6, "div", 5);
|
|
933
|
+
i0.ɵɵelement(7, "div", 6, 7);
|
|
934
|
+
i0.ɵɵelementEnd();
|
|
935
|
+
i0.ɵɵelementEnd();
|
|
936
|
+
i0.ɵɵelementEnd();
|
|
903
937
|
} if (rf & 2) {
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
} }, directives: [NgIf, NgStyle, MagicViewContainerRef], styles: [".modal-foreground[_ngcontent-%COMP%]{background-color:#fff}.modal-background[_ngcontent-%COMP%]
|
|
913
|
-
(function () {
|
|
938
|
+
i0.ɵɵadvance(2);
|
|
939
|
+
i0.ɵɵproperty("ngIf", !ctx.getShowTitleBar());
|
|
940
|
+
i0.ɵɵadvance(1);
|
|
941
|
+
i0.ɵɵproperty("ngStyle", ctx.getStyle());
|
|
942
|
+
i0.ɵɵadvance(2);
|
|
943
|
+
i0.ɵɵproperty("ngIf", ctx.getShowTitleBar());
|
|
944
|
+
i0.ɵɵadvance(1);
|
|
945
|
+
i0.ɵɵproperty("ngStyle", ctx.getClientAreaStyles());
|
|
946
|
+
} }, directives: [i1.NgIf, i1.NgStyle, MagicViewContainerRef], styles: [".modal-foreground[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#fff}.modal-background[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000;opacity:.75}.modal-header[_ngcontent-%COMP%]{background-color:beige;border-bottom:2px solid red}"] });
|
|
947
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicOverlayContainer, [{
|
|
914
948
|
type: Component,
|
|
915
|
-
args: [{
|
|
916
|
-
selector: 'app-magic-overlay-container',
|
|
917
|
-
template: `
|
|
949
|
+
args: [{ selector: 'app-magic-overlay-container', template: `
|
|
918
950
|
<div>
|
|
919
951
|
<div class="modal-background" (click)="OnBackgroundClick()">
|
|
920
952
|
<button (click)="OnClose()" tabindex="-1" style="float:right; border: none; background-color: transparent; outline: none; color: white" *ngIf="!getShowTitleBar()">X</button>
|
|
@@ -930,10 +962,8 @@ MagicOverlayContainer.ɵcmp = ɵɵdefineComponent({ type: MagicOverlayContainer,
|
|
|
930
962
|
</div>
|
|
931
963
|
</div>
|
|
932
964
|
</div>
|
|
933
|
-
`,
|
|
934
|
-
|
|
935
|
-
}]
|
|
936
|
-
}], function () { return [{ type: Injector }, { type: ComponentFactoryResolver }]; }, { headerElementRef: [{
|
|
965
|
+
`, styles: [".modal-foreground{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#fff}.modal-background{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000;opacity:.75}.modal-header{background-color:beige;border-bottom:2px solid red}\n"] }]
|
|
966
|
+
}], function () { return [{ type: i0.Injector }, { type: i0.ComponentFactoryResolver }]; }, { headerElementRef: [{
|
|
937
967
|
type: ViewChild,
|
|
938
968
|
args: ['modalheader', { static: false }]
|
|
939
969
|
}], foregroundElementRef: [{
|
|
@@ -953,8 +983,8 @@ class OverlayContainerMagicProvider {
|
|
|
953
983
|
}
|
|
954
984
|
}
|
|
955
985
|
OverlayContainerMagicProvider.ɵfac = function OverlayContainerMagicProvider_Factory(t) { return new (t || OverlayContainerMagicProvider)(); };
|
|
956
|
-
OverlayContainerMagicProvider.ɵprov =
|
|
957
|
-
(function () {
|
|
986
|
+
OverlayContainerMagicProvider.ɵprov = i0.ɵɵdefineInjectable({ token: OverlayContainerMagicProvider, factory: OverlayContainerMagicProvider.ɵfac });
|
|
987
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OverlayContainerMagicProvider, [{
|
|
958
988
|
type: Injectable
|
|
959
989
|
}], null, null); })();
|
|
960
990
|
|
|
@@ -967,8 +997,8 @@ class BaseMagicConfirmComponent {
|
|
|
967
997
|
}
|
|
968
998
|
}
|
|
969
999
|
BaseMagicConfirmComponent.ɵfac = function BaseMagicConfirmComponent_Factory(t) { return new (t || BaseMagicConfirmComponent)(); };
|
|
970
|
-
BaseMagicConfirmComponent.ɵcmp =
|
|
971
|
-
(function () {
|
|
1000
|
+
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: [""] });
|
|
1001
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseMagicConfirmComponent, [{
|
|
972
1002
|
type: Component,
|
|
973
1003
|
args: [{
|
|
974
1004
|
selector: 'mg-base-alert',
|
|
@@ -992,8 +1022,8 @@ class BaseMagicAlertComponent {
|
|
|
992
1022
|
}
|
|
993
1023
|
}
|
|
994
1024
|
BaseMagicAlertComponent.ɵfac = function BaseMagicAlertComponent_Factory(t) { return new (t || BaseMagicAlertComponent)(); };
|
|
995
|
-
BaseMagicAlertComponent.ɵcmp =
|
|
996
|
-
(function () {
|
|
1025
|
+
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: [""] });
|
|
1026
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseMagicAlertComponent, [{
|
|
997
1027
|
type: Component,
|
|
998
1028
|
args: [{
|
|
999
1029
|
selector: 'mg-base-alert',
|
|
@@ -1016,23 +1046,24 @@ class MagicFocusDirective {
|
|
|
1016
1046
|
this.hostElement.nativeElement.focus();
|
|
1017
1047
|
}
|
|
1018
1048
|
}
|
|
1019
|
-
MagicFocusDirective.ɵfac = function MagicFocusDirective_Factory(t) { return new (t || MagicFocusDirective)(
|
|
1020
|
-
MagicFocusDirective.ɵdir =
|
|
1021
|
-
(function () {
|
|
1049
|
+
MagicFocusDirective.ɵfac = function MagicFocusDirective_Factory(t) { return new (t || MagicFocusDirective)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
1050
|
+
MagicFocusDirective.ɵdir = i0.ɵɵdefineDirective({ type: MagicFocusDirective, selectors: [["", "magicFocus", ""]] });
|
|
1051
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicFocusDirective, [{
|
|
1022
1052
|
type: Directive,
|
|
1023
1053
|
args: [{
|
|
1024
1054
|
selector: '[magicFocus]'
|
|
1025
1055
|
}]
|
|
1026
|
-
}], function () { return [{ type: ElementRef }]; }, null); })();
|
|
1056
|
+
}], function () { return [{ type: i0.ElementRef }]; }, null); })();
|
|
1027
1057
|
|
|
1028
|
-
const _c0$
|
|
1058
|
+
const _c0$2 = ["overlayContainerWrapper"];
|
|
1029
1059
|
class MagicOverlayContainerWrapper {
|
|
1030
|
-
constructor(componentListMagicService,
|
|
1060
|
+
constructor(componentListMagicService, magicLazyModuleLoader, injector, componentFactoryResolver, changeDetectorRef, compiler) {
|
|
1031
1061
|
this.componentListMagicService = componentListMagicService;
|
|
1032
|
-
this.
|
|
1062
|
+
this.magicLazyModuleLoader = magicLazyModuleLoader;
|
|
1033
1063
|
this.injector = injector;
|
|
1034
1064
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
1035
1065
|
this.changeDetectorRef = changeDetectorRef;
|
|
1066
|
+
this.compiler = compiler;
|
|
1036
1067
|
this.Component = null;
|
|
1037
1068
|
this.Parameters = {};
|
|
1038
1069
|
this.onClose = new EventEmitter();
|
|
@@ -1042,10 +1073,11 @@ class MagicOverlayContainerWrapper {
|
|
|
1042
1073
|
if (moduleRef == null) {
|
|
1043
1074
|
let lazyLoadModule = this.componentListMagicService.getLazyLoadModuleData(this.Parameters.MagicFormName);
|
|
1044
1075
|
if (lazyLoadModule != null) {
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1076
|
+
let moduleName = lazyLoadModule.moduleName.replace("Magic", "");
|
|
1077
|
+
moduleName = moduleName.replace("Module", "");
|
|
1078
|
+
this.magicLazyModuleLoader.Load(moduleName).then(m => {
|
|
1079
|
+
const compiled = this.compiler.compileModuleAndAllComponentsSync(m[lazyLoadModule.moduleName]);
|
|
1080
|
+
moduleRef = compiled.ngModuleFactory.create(this.injector);
|
|
1049
1081
|
this.loadComponent(moduleRef);
|
|
1050
1082
|
});
|
|
1051
1083
|
}
|
|
@@ -1091,22 +1123,22 @@ MagicOverlayContainerWrapper.allowedBaseComps = new Map([
|
|
|
1091
1123
|
[OverlayType.Alert, { comp: BaseMagicAlertComponent, error: 'BaseMagicAlertComponent. Alert ' }],
|
|
1092
1124
|
[OverlayType.ConfirmationBox, { comp: BaseMagicConfirmComponent, error: 'BaseMagicConfirmComponent. Confirmation ' }]
|
|
1093
1125
|
]);
|
|
1094
|
-
MagicOverlayContainerWrapper.ɵfac = function MagicOverlayContainerWrapper_Factory(t) { return new (t || MagicOverlayContainerWrapper)(
|
|
1095
|
-
MagicOverlayContainerWrapper.ɵcmp =
|
|
1096
|
-
|
|
1126
|
+
MagicOverlayContainerWrapper.ɵfac = function MagicOverlayContainerWrapper_Factory(t) { return new (t || MagicOverlayContainerWrapper)(i0.ɵɵdirectiveInject(ComponentListMagicService), i0.ɵɵdirectiveInject(MagicLazyLoaderService), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.Compiler)); };
|
|
1127
|
+
MagicOverlayContainerWrapper.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlayContainerWrapper, selectors: [["app-magic-overlay-container-wrapper"]], viewQuery: function MagicOverlayContainerWrapper_Query(rf, ctx) { if (rf & 1) {
|
|
1128
|
+
i0.ɵɵviewQuery(_c0$2, 7);
|
|
1097
1129
|
} if (rf & 2) {
|
|
1098
|
-
|
|
1099
|
-
|
|
1130
|
+
let _t;
|
|
1131
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.overlayContainerWrapperElementRef = _t.first);
|
|
1100
1132
|
} }, 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) {
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
} }, directives: [MagicFocusDirective, MagicViewContainerRef], styles: [".overlay-container-wrapper-background[_ngcontent-%COMP%]
|
|
1109
|
-
(function () {
|
|
1133
|
+
i0.ɵɵelementStart(0, "div");
|
|
1134
|
+
i0.ɵɵelement(1, "div", 0);
|
|
1135
|
+
i0.ɵɵelementStart(2, "div", 1, 2);
|
|
1136
|
+
i0.ɵɵelement(4, "div", 3, 4);
|
|
1137
|
+
i0.ɵɵelementEnd();
|
|
1138
|
+
i0.ɵɵelement(6, "div", 5);
|
|
1139
|
+
i0.ɵɵelementEnd();
|
|
1140
|
+
} }, directives: [MagicFocusDirective, MagicViewContainerRef], styles: [".overlay-container-wrapper-background[_ngcontent-%COMP%]{position:fixed;top:0;z-index:999;right:0;bottom:0;left:0}"] });
|
|
1141
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicOverlayContainerWrapper, [{
|
|
1110
1142
|
type: Component,
|
|
1111
1143
|
args: [{
|
|
1112
1144
|
selector: 'app-magic-overlay-container-wrapper',
|
|
@@ -1132,7 +1164,7 @@ MagicOverlayContainerWrapper.ɵcmp = ɵɵdefineComponent({ type: MagicOverlayCon
|
|
|
1132
1164
|
}
|
|
1133
1165
|
`]
|
|
1134
1166
|
}]
|
|
1135
|
-
}], function () { return [{ type: ComponentListMagicService }, { type:
|
|
1167
|
+
}], function () { return [{ type: ComponentListMagicService }, { type: MagicLazyLoaderService }, { type: i0.Injector }, { type: i0.ComponentFactoryResolver }, { type: i0.ChangeDetectorRef }, { type: i0.Compiler }]; }, { Component: [{
|
|
1136
1168
|
type: Input
|
|
1137
1169
|
}], Parameters: [{
|
|
1138
1170
|
type: Input
|
|
@@ -1147,30 +1179,29 @@ MagicOverlayContainerWrapper.ɵcmp = ɵɵdefineComponent({ type: MagicOverlayCon
|
|
|
1147
1179
|
|
|
1148
1180
|
class MagicAlertComponent extends BaseMagicAlertComponent {
|
|
1149
1181
|
}
|
|
1150
|
-
MagicAlertComponent.ɵfac = function MagicAlertComponent_Factory(t) { return ɵMagicAlertComponent_BaseFactory(t || MagicAlertComponent); };
|
|
1151
|
-
MagicAlertComponent.ɵcmp =
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1182
|
+
MagicAlertComponent.ɵfac = function () { let ɵMagicAlertComponent_BaseFactory; return function MagicAlertComponent_Factory(t) { return (ɵMagicAlertComponent_BaseFactory || (ɵMagicAlertComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MagicAlertComponent)))(t || MagicAlertComponent); }; }();
|
|
1183
|
+
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) {
|
|
1184
|
+
i0.ɵɵelementStart(0, "div");
|
|
1185
|
+
i0.ɵɵelementStart(1, "div", 0);
|
|
1186
|
+
i0.ɵɵelementStart(2, "h2");
|
|
1187
|
+
i0.ɵɵtext(3);
|
|
1188
|
+
i0.ɵɵelementEnd();
|
|
1189
|
+
i0.ɵɵelementStart(4, "p");
|
|
1190
|
+
i0.ɵɵtext(5);
|
|
1191
|
+
i0.ɵɵelementEnd();
|
|
1192
|
+
i0.ɵɵelementStart(6, "button", 1);
|
|
1193
|
+
i0.ɵɵlistener("click", function MagicAlertComponent_Template_button_click_6_listener() { return ctx.OnClose(); });
|
|
1194
|
+
i0.ɵɵtext(7, "OK");
|
|
1195
|
+
i0.ɵɵelementEnd();
|
|
1196
|
+
i0.ɵɵelementEnd();
|
|
1197
|
+
i0.ɵɵelementEnd();
|
|
1166
1198
|
} if (rf & 2) {
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
} }, styles: [".mg-message-background[_ngcontent-%COMP%]
|
|
1172
|
-
|
|
1173
|
-
(function () { ɵsetClassMetadata(MagicAlertComponent, [{
|
|
1199
|
+
i0.ɵɵadvance(3);
|
|
1200
|
+
i0.ɵɵtextInterpolate1(" ", ctx.title, "");
|
|
1201
|
+
i0.ɵɵadvance(2);
|
|
1202
|
+
i0.ɵɵtextInterpolate1("", ctx.message, " ");
|
|
1203
|
+
} }, styles: [".mg-message-background[_ngcontent-%COMP%]{background-color:#f5f5f5;width:40%;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;padding:17px;border-radius:5px;text-align:center;margin-top:10%;margin-left:auto;margin-right:auto;border:1px solid gray}button[_ngcontent-%COMP%]{background-color:#8cd4f5;color:#fff;border:none;box-shadow:none;font-size:17px;font-weight:500;border-radius:5px;padding:10px 32px;margin:26px 5px 0;cursor:pointer}"] });
|
|
1204
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicAlertComponent, [{
|
|
1174
1205
|
type: Component,
|
|
1175
1206
|
args: [{
|
|
1176
1207
|
selector: 'sample-magic-alert-component',
|
|
@@ -1216,34 +1247,33 @@ const ɵMagicAlertComponent_BaseFactory = ɵɵgetInheritedFactory(MagicAlertComp
|
|
|
1216
1247
|
|
|
1217
1248
|
class MagicConfirmationBoxComponent extends BaseMagicConfirmComponent {
|
|
1218
1249
|
}
|
|
1219
|
-
MagicConfirmationBoxComponent.ɵfac = function MagicConfirmationBoxComponent_Factory(t) { return ɵMagicConfirmationBoxComponent_BaseFactory(t || MagicConfirmationBoxComponent); };
|
|
1220
|
-
MagicConfirmationBoxComponent.ɵcmp =
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1250
|
+
MagicConfirmationBoxComponent.ɵfac = function () { let ɵMagicConfirmationBoxComponent_BaseFactory; return function MagicConfirmationBoxComponent_Factory(t) { return (ɵMagicConfirmationBoxComponent_BaseFactory || (ɵMagicConfirmationBoxComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MagicConfirmationBoxComponent)))(t || MagicConfirmationBoxComponent); }; }();
|
|
1251
|
+
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) {
|
|
1252
|
+
i0.ɵɵelementStart(0, "div");
|
|
1253
|
+
i0.ɵɵelementStart(1, "div", 0);
|
|
1254
|
+
i0.ɵɵelementStart(2, "h2");
|
|
1255
|
+
i0.ɵɵtext(3);
|
|
1256
|
+
i0.ɵɵelementEnd();
|
|
1257
|
+
i0.ɵɵtext(4);
|
|
1258
|
+
i0.ɵɵelement(5, "br");
|
|
1259
|
+
i0.ɵɵelement(6, "br");
|
|
1260
|
+
i0.ɵɵelementStart(7, "button", 1);
|
|
1261
|
+
i0.ɵɵlistener("click", function MagicConfirmationBoxComponent_Template_button_click_7_listener() { return ctx.OnClose(true); });
|
|
1262
|
+
i0.ɵɵtext(8, "OK");
|
|
1263
|
+
i0.ɵɵelementEnd();
|
|
1264
|
+
i0.ɵɵelementStart(9, "button", 2);
|
|
1265
|
+
i0.ɵɵlistener("click", function MagicConfirmationBoxComponent_Template_button_click_9_listener() { return ctx.OnClose(false); });
|
|
1266
|
+
i0.ɵɵtext(10, "Cancel");
|
|
1267
|
+
i0.ɵɵelementEnd();
|
|
1268
|
+
i0.ɵɵelementEnd();
|
|
1269
|
+
i0.ɵɵelementEnd();
|
|
1239
1270
|
} if (rf & 2) {
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
} }, styles: [".mg-message-background[_ngcontent-%COMP%]
|
|
1245
|
-
|
|
1246
|
-
(function () { ɵsetClassMetadata(MagicConfirmationBoxComponent, [{
|
|
1271
|
+
i0.ɵɵadvance(3);
|
|
1272
|
+
i0.ɵɵtextInterpolate1(" ", ctx.title, "");
|
|
1273
|
+
i0.ɵɵadvance(1);
|
|
1274
|
+
i0.ɵɵtextInterpolate1(" ", ctx.message, " ");
|
|
1275
|
+
} }, styles: [".mg-message-background[_ngcontent-%COMP%]{background-color:#f5f5f5;width:40%;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;padding:17px;border-radius:5px;text-align:center;margin-top:10%;margin-left:auto;margin-right:auto;border:1px solid gray}button[_ngcontent-%COMP%]{background-color:#8cd4f5;color:#fff;border:none;box-shadow:none;font-size:17px;font-weight:500;border-radius:5px;padding:10px 32px;margin:26px 5px 0;cursor:pointer}button.cancel[_ngcontent-%COMP%]{background-color:#c1c1c1}"] });
|
|
1276
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicConfirmationBoxComponent, [{
|
|
1247
1277
|
type: Component,
|
|
1248
1278
|
args: [{
|
|
1249
1279
|
selector: 'sample-magic-confirmation-box',
|
|
@@ -1306,8 +1336,8 @@ class ConfirmationComponentsMagicProvider {
|
|
|
1306
1336
|
}
|
|
1307
1337
|
}
|
|
1308
1338
|
ConfirmationComponentsMagicProvider.ɵfac = function ConfirmationComponentsMagicProvider_Factory(t) { return new (t || ConfirmationComponentsMagicProvider)(); };
|
|
1309
|
-
ConfirmationComponentsMagicProvider.ɵprov =
|
|
1310
|
-
(function () {
|
|
1339
|
+
ConfirmationComponentsMagicProvider.ɵprov = i0.ɵɵdefineInjectable({ token: ConfirmationComponentsMagicProvider, factory: ConfirmationComponentsMagicProvider.ɵfac });
|
|
1340
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfirmationComponentsMagicProvider, [{
|
|
1311
1341
|
type: Injectable
|
|
1312
1342
|
}], null, null); })();
|
|
1313
1343
|
|
|
@@ -1420,11 +1450,14 @@ class OverlayWindowService {
|
|
|
1420
1450
|
return componentRef;
|
|
1421
1451
|
}
|
|
1422
1452
|
}
|
|
1423
|
-
OverlayWindowService.ɵfac = function OverlayWindowService_Factory(t) { return new (t || OverlayWindowService)(
|
|
1424
|
-
OverlayWindowService.ɵprov =
|
|
1425
|
-
(function () {
|
|
1426
|
-
type: Injectable
|
|
1427
|
-
|
|
1453
|
+
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)); };
|
|
1454
|
+
OverlayWindowService.ɵprov = i0.ɵɵdefineInjectable({ token: OverlayWindowService, factory: OverlayWindowService.ɵfac, providedIn: 'root' });
|
|
1455
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OverlayWindowService, [{
|
|
1456
|
+
type: Injectable,
|
|
1457
|
+
args: [{
|
|
1458
|
+
providedIn: 'root'
|
|
1459
|
+
}]
|
|
1460
|
+
}], function () { return [{ type: i0.ComponentFactoryResolver }, { type: ComponentListMagicService }, { type: EngineMagicService }, { type: OverlayContainerMagicProvider }, { type: ConfirmationComponentsMagicProvider }]; }, null); })();
|
|
1428
1461
|
class OverlayWindowFocusManager {
|
|
1429
1462
|
constructor(rootMagicElement) {
|
|
1430
1463
|
this.rootMagicElement = null;
|
|
@@ -2131,9 +2164,9 @@ class TaskMagicService {
|
|
|
2131
2164
|
}
|
|
2132
2165
|
}
|
|
2133
2166
|
}
|
|
2134
|
-
TaskMagicService.ɵfac = function TaskMagicService_Factory(t) { return new (t || TaskMagicService)(
|
|
2135
|
-
TaskMagicService.ɵprov =
|
|
2136
|
-
(function () {
|
|
2167
|
+
TaskMagicService.ɵfac = function TaskMagicService_Factory(t) { return new (t || TaskMagicService)(i0.ɵɵinject(EngineMagicService), i0.ɵɵinject(OverlayWindowService)); };
|
|
2168
|
+
TaskMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: TaskMagicService, factory: TaskMagicService.ɵfac });
|
|
2169
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TaskMagicService, [{
|
|
2137
2170
|
type: Injectable
|
|
2138
2171
|
}], function () { return [{ type: EngineMagicService }, { type: OverlayWindowService }]; }, null); })();
|
|
2139
2172
|
|
|
@@ -2199,9 +2232,9 @@ class TableMagicService {
|
|
|
2199
2232
|
return topIndex;
|
|
2200
2233
|
}
|
|
2201
2234
|
}
|
|
2202
|
-
TableMagicService.ɵfac = function TableMagicService_Factory(t) { return new (t || TableMagicService)(
|
|
2203
|
-
TableMagicService.ɵprov =
|
|
2204
|
-
(function () {
|
|
2235
|
+
TableMagicService.ɵfac = function TableMagicService_Factory(t) { return new (t || TableMagicService)(i0.ɵɵinject(ComponentListMagicService), i0.ɵɵinject(TaskMagicService)); };
|
|
2236
|
+
TableMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: TableMagicService, factory: TableMagicService.ɵfac });
|
|
2237
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableMagicService, [{
|
|
2205
2238
|
type: Injectable
|
|
2206
2239
|
}], function () { return [{ type: ComponentListMagicService }, { type: TaskMagicService }]; }, null); })();
|
|
2207
2240
|
|
|
@@ -2213,11 +2246,11 @@ class TitleMagicService {
|
|
|
2213
2246
|
this.titleService.setTitle(newTitle);
|
|
2214
2247
|
}
|
|
2215
2248
|
}
|
|
2216
|
-
TitleMagicService.ɵfac = function TitleMagicService_Factory(t) { return new (t || TitleMagicService)(
|
|
2217
|
-
TitleMagicService.ɵprov =
|
|
2218
|
-
(function () {
|
|
2249
|
+
TitleMagicService.ɵfac = function TitleMagicService_Factory(t) { return new (t || TitleMagicService)(i0.ɵɵinject(i1$1.Title)); };
|
|
2250
|
+
TitleMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: TitleMagicService, factory: TitleMagicService.ɵfac });
|
|
2251
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TitleMagicService, [{
|
|
2219
2252
|
type: Injectable
|
|
2220
|
-
}], function () { return [{ type: Title }]; }, null); })();
|
|
2253
|
+
}], function () { return [{ type: i1$1.Title }]; }, null); })();
|
|
2221
2254
|
|
|
2222
2255
|
class AccessorMagicService {
|
|
2223
2256
|
constructor(task) {
|
|
@@ -2507,9 +2540,9 @@ class AccessorMagicService {
|
|
|
2507
2540
|
return CookieService.deleteCookie(name);
|
|
2508
2541
|
}
|
|
2509
2542
|
}
|
|
2510
|
-
AccessorMagicService.ɵfac = function AccessorMagicService_Factory(t) { return new (t || AccessorMagicService)(
|
|
2511
|
-
AccessorMagicService.ɵprov =
|
|
2512
|
-
(function () {
|
|
2543
|
+
AccessorMagicService.ɵfac = function AccessorMagicService_Factory(t) { return new (t || AccessorMagicService)(i0.ɵɵinject(TaskMagicService)); };
|
|
2544
|
+
AccessorMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: AccessorMagicService, factory: AccessorMagicService.ɵfac });
|
|
2545
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccessorMagicService, [{
|
|
2513
2546
|
type: Injectable
|
|
2514
2547
|
}], function () { return [{ type: TaskMagicService }]; }, null); })();
|
|
2515
2548
|
|
|
@@ -2526,9 +2559,9 @@ class MagicServices {
|
|
|
2526
2559
|
task.mgAccessorService = mgAccessorService;
|
|
2527
2560
|
}
|
|
2528
2561
|
}
|
|
2529
|
-
MagicServices.ɵfac = function MagicServices_Factory(t) { return new (t || MagicServices)(
|
|
2530
|
-
MagicServices.ɵprov =
|
|
2531
|
-
(function () {
|
|
2562
|
+
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)); };
|
|
2563
|
+
MagicServices.ɵprov = i0.ɵɵdefineInjectable({ token: MagicServices, factory: MagicServices.ɵfac });
|
|
2564
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicServices, [{
|
|
2532
2565
|
type: Injectable
|
|
2533
2566
|
}], function () { return [{ type: TaskMagicService }, { type: SubformMagicService }, { type: TableMagicService }, { type: TitleMagicService }, { type: AccessorMagicService }]; }, null); })();
|
|
2534
2567
|
|
|
@@ -2589,16 +2622,16 @@ class TaskBaseMagicComponent {
|
|
|
2589
2622
|
this.task.dispose();
|
|
2590
2623
|
}
|
|
2591
2624
|
}
|
|
2592
|
-
TaskBaseMagicComponent.ɵfac = function TaskBaseMagicComponent_Factory(t) { return new (t || TaskBaseMagicComponent)(
|
|
2593
|
-
TaskBaseMagicComponent.ɵcmp =
|
|
2594
|
-
(function () {
|
|
2625
|
+
TaskBaseMagicComponent.ɵfac = function TaskBaseMagicComponent_Factory(t) { return new (t || TaskBaseMagicComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(MagicServices)); };
|
|
2626
|
+
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 });
|
|
2627
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TaskBaseMagicComponent, [{
|
|
2595
2628
|
type: Component,
|
|
2596
2629
|
args: [{
|
|
2597
2630
|
selector: 'task-magic',
|
|
2598
2631
|
providers: [TaskMagicService, SubformMagicService, TableMagicService],
|
|
2599
2632
|
template: ''
|
|
2600
2633
|
}]
|
|
2601
|
-
}], function () { return [{ type: ChangeDetectorRef }, { type: MagicServices }]; }, { taskIdParam: [{
|
|
2634
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: MagicServices }]; }, { taskIdParam: [{
|
|
2602
2635
|
type: Input
|
|
2603
2636
|
}], taskDescription: [{
|
|
2604
2637
|
type: Input
|
|
@@ -2638,16 +2671,16 @@ class RowMagicDirective {
|
|
|
2638
2671
|
}
|
|
2639
2672
|
}
|
|
2640
2673
|
}
|
|
2641
|
-
RowMagicDirective.ɵfac = function RowMagicDirective_Factory(t) { return new (t || RowMagicDirective)(
|
|
2642
|
-
RowMagicDirective.ɵdir =
|
|
2643
|
-
|
|
2674
|
+
RowMagicDirective.ɵfac = function RowMagicDirective_Factory(t) { return new (t || RowMagicDirective)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
2675
|
+
RowMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: RowMagicDirective, selectors: [["", "magicRow", ""]], hostBindings: function RowMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
2676
|
+
i0.ɵɵlistener("click", function RowMagicDirective_click_HostBindingHandler($event) { return ctx.onClick($event); });
|
|
2644
2677
|
} }, inputs: { rowId: ["magicRow", "rowId"] } });
|
|
2645
|
-
(function () {
|
|
2678
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RowMagicDirective, [{
|
|
2646
2679
|
type: Directive,
|
|
2647
2680
|
args: [{
|
|
2648
2681
|
selector: '[magicRow]'
|
|
2649
2682
|
}]
|
|
2650
|
-
}], function () { return [{ type: TaskMagicService }, { type: ElementRef }]; }, { rowId: [{
|
|
2683
|
+
}], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }]; }, { rowId: [{
|
|
2651
2684
|
type: Input,
|
|
2652
2685
|
args: ['magicRow']
|
|
2653
2686
|
}], onClick: [{
|
|
@@ -2798,7 +2831,7 @@ class MagicDirective {
|
|
|
2798
2831
|
case InteractiveCommandType.CALL_JS:
|
|
2799
2832
|
let methodName = command._str;
|
|
2800
2833
|
let args = command.arguments;
|
|
2801
|
-
let magicComponent = (this.vcRef.
|
|
2834
|
+
let magicComponent = (this.vcRef._hostLView).find(v => v instanceof TaskBaseMagicComponent);
|
|
2802
2835
|
let resultString = '';
|
|
2803
2836
|
try {
|
|
2804
2837
|
if (!isNullOrUndefined(magicComponent[methodName])) {
|
|
@@ -2830,14 +2863,14 @@ class MagicDirective {
|
|
|
2830
2863
|
}
|
|
2831
2864
|
MagicDirective.opened = false;
|
|
2832
2865
|
MagicDirective.noOfAutoCompleteBoxesOpened = 0;
|
|
2833
|
-
MagicDirective.ɵfac = function MagicDirective_Factory(t) { return new (t || MagicDirective)(
|
|
2834
|
-
MagicDirective.ɵdir =
|
|
2835
|
-
(function () {
|
|
2866
|
+
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)); };
|
|
2867
|
+
MagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MagicDirective, selectors: [["", "magic", ""]], inputs: { magic: "magic", eventsOnly: "eventsOnly", rowId: "rowId" } });
|
|
2868
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicDirective, [{
|
|
2836
2869
|
type: Directive,
|
|
2837
2870
|
args: [{
|
|
2838
2871
|
selector: '[magic]'
|
|
2839
2872
|
}]
|
|
2840
|
-
}], function () { return [{ type: TaskMagicService }, { type: ElementRef }, { type: Renderer2 }, { type: ViewContainerRef }, { type: RowMagicDirective, decorators: [{
|
|
2873
|
+
}], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: RowMagicDirective, decorators: [{
|
|
2841
2874
|
type: Optional
|
|
2842
2875
|
}] }]; }, { magic: [{
|
|
2843
2876
|
type: Input,
|
|
@@ -3016,14 +3049,14 @@ class NoControlMagicDirective extends MagicDirective {
|
|
|
3016
3049
|
}
|
|
3017
3050
|
}
|
|
3018
3051
|
}
|
|
3019
|
-
NoControlMagicDirective.ɵfac = function NoControlMagicDirective_Factory(t) { return new (t || NoControlMagicDirective)(
|
|
3020
|
-
NoControlMagicDirective.ɵdir =
|
|
3021
|
-
(function () {
|
|
3052
|
+
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)); };
|
|
3053
|
+
NoControlMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: NoControlMagicDirective, selectors: [["", "magicnc", ""]], inputs: { magic: ["magicnc", "magic"] }, features: [i0.ɵɵInheritDefinitionFeature] });
|
|
3054
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NoControlMagicDirective, [{
|
|
3022
3055
|
type: Directive,
|
|
3023
3056
|
args: [{
|
|
3024
3057
|
selector: '[magicnc]'
|
|
3025
3058
|
}]
|
|
3026
|
-
}], function () { return [{ type: TaskMagicService }, { type: ElementRef }, { type: Renderer2 }, { type: ViewContainerRef }, { type: RowMagicDirective, decorators: [{
|
|
3059
|
+
}], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: RowMagicDirective, decorators: [{
|
|
3027
3060
|
type: Optional
|
|
3028
3061
|
}] }]; }, { magic: [{
|
|
3029
3062
|
type: Input,
|
|
@@ -3057,9 +3090,9 @@ class DateMagicPipe extends DatePipe {
|
|
|
3057
3090
|
return value;
|
|
3058
3091
|
}
|
|
3059
3092
|
}
|
|
3060
|
-
DateMagicPipe.ɵfac = function DateMagicPipe_Factory(t) { return new (t || DateMagicPipe)(
|
|
3061
|
-
DateMagicPipe.ɵpipe =
|
|
3062
|
-
(function () {
|
|
3093
|
+
DateMagicPipe.ɵfac = function DateMagicPipe_Factory(t) { return new (t || DateMagicPipe)(i0.ɵɵdirectiveInject(TaskMagicService, 16)); };
|
|
3094
|
+
DateMagicPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "magicDate", type: DateMagicPipe, pure: true });
|
|
3095
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateMagicPipe, [{
|
|
3063
3096
|
type: Pipe,
|
|
3064
3097
|
args: [{
|
|
3065
3098
|
name: 'magicDate'
|
|
@@ -3327,11 +3360,11 @@ class MgformatMagicDirective {
|
|
|
3327
3360
|
return false;
|
|
3328
3361
|
}
|
|
3329
3362
|
}
|
|
3330
|
-
MgformatMagicDirective.ɵfac = function MgformatMagicDirective_Factory(t) { return new (t || MgformatMagicDirective)(
|
|
3331
|
-
MgformatMagicDirective.ɵdir =
|
|
3332
|
-
|
|
3363
|
+
MgformatMagicDirective.ɵfac = function MgformatMagicDirective_Factory(t) { return new (t || MgformatMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective), i0.ɵɵdirectiveInject(TaskMagicService)); };
|
|
3364
|
+
MgformatMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MgformatMagicDirective, selectors: [["", "mgFormat", ""]], hostBindings: function MgformatMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
3365
|
+
i0.ɵɵlistener("focus", function MgformatMagicDirective_focus_HostBindingHandler($event) { return ctx.onFocusEvent($event); })("change", function MgformatMagicDirective_change_HostBindingHandler($event) { return ctx.onChangeEvent($event); });
|
|
3333
3366
|
} } });
|
|
3334
|
-
(function () {
|
|
3367
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MgformatMagicDirective, [{
|
|
3335
3368
|
type: Directive,
|
|
3336
3369
|
args: [{
|
|
3337
3370
|
selector: '[mgFormat]'
|
|
@@ -3379,9 +3412,9 @@ class TimeMagicPipe extends DatePipe {
|
|
|
3379
3412
|
return value;
|
|
3380
3413
|
}
|
|
3381
3414
|
}
|
|
3382
|
-
TimeMagicPipe.ɵfac = function TimeMagicPipe_Factory(t) { return new (t || TimeMagicPipe)(
|
|
3383
|
-
TimeMagicPipe.ɵpipe =
|
|
3384
|
-
(function () {
|
|
3415
|
+
TimeMagicPipe.ɵfac = function TimeMagicPipe_Factory(t) { return new (t || TimeMagicPipe)(i0.ɵɵdirectiveInject(TaskMagicService, 16)); };
|
|
3416
|
+
TimeMagicPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "magicTime", type: TimeMagicPipe, pure: true });
|
|
3417
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimeMagicPipe, [{
|
|
3385
3418
|
type: Pipe,
|
|
3386
3419
|
args: [{
|
|
3387
3420
|
name: 'magicTime'
|
|
@@ -3419,15 +3452,15 @@ class RangeValidatorMagicDirective {
|
|
|
3419
3452
|
return Object.keys(formGroup).find(name => c === formGroup[name]) || null;
|
|
3420
3453
|
}
|
|
3421
3454
|
}
|
|
3422
|
-
RangeValidatorMagicDirective.ɵfac = function RangeValidatorMagicDirective_Factory(t) { return new (t || RangeValidatorMagicDirective)(
|
|
3423
|
-
RangeValidatorMagicDirective.ɵdir =
|
|
3455
|
+
RangeValidatorMagicDirective.ɵfac = function RangeValidatorMagicDirective_Factory(t) { return new (t || RangeValidatorMagicDirective)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
|
|
3456
|
+
RangeValidatorMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: RangeValidatorMagicDirective, selectors: [["", "rangevalidator", ""]], features: [i0.ɵɵProvidersFeature([
|
|
3424
3457
|
{
|
|
3425
3458
|
provide: NG_VALIDATORS,
|
|
3426
3459
|
useExisting: RangeValidatorMagicDirective,
|
|
3427
3460
|
multi: true,
|
|
3428
3461
|
}
|
|
3429
3462
|
])] });
|
|
3430
|
-
(function () {
|
|
3463
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RangeValidatorMagicDirective, [{
|
|
3431
3464
|
type: Directive,
|
|
3432
3465
|
args: [{
|
|
3433
3466
|
selector: '[rangevalidator] ',
|
|
@@ -3439,20 +3472,20 @@ RangeValidatorMagicDirective.ɵdir = ɵɵdefineDirective({ type: RangeValidatorM
|
|
|
3439
3472
|
}
|
|
3440
3473
|
]
|
|
3441
3474
|
}]
|
|
3442
|
-
}], function () { return [{ type: TaskMagicService }, { type: ViewContainerRef }]; }, null); })();
|
|
3475
|
+
}], function () { return [{ type: TaskMagicService }, { type: i0.ViewContainerRef }]; }, null); })();
|
|
3443
3476
|
|
|
3444
3477
|
function SubformMagicComponent_ndc_dynamic_0_Template(rf, ctx) { if (rf & 1) {
|
|
3445
|
-
|
|
3478
|
+
i0.ɵɵelement(0, "ndc-dynamic", 1);
|
|
3446
3479
|
} if (rf & 2) {
|
|
3447
|
-
const ctx_r0 =
|
|
3448
|
-
|
|
3480
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
3481
|
+
i0.ɵɵproperty("ndcDynamicComponent", ctx_r0.Component)("ndcDynamicInputs", ctx_r0.Parameters);
|
|
3449
3482
|
} }
|
|
3450
3483
|
class SubformMagicComponent {
|
|
3451
3484
|
constructor(vcRef, mgSub) {
|
|
3452
3485
|
this.vcRef = vcRef;
|
|
3453
3486
|
this.mgSub = mgSub;
|
|
3454
3487
|
this.component = null;
|
|
3455
|
-
this.component = (this.vcRef.
|
|
3488
|
+
this.component = (this.vcRef._hostLView).find(v => !isNullOrUndefined(v));
|
|
3456
3489
|
}
|
|
3457
3490
|
set magic(val) { this.id = val; }
|
|
3458
3491
|
;
|
|
@@ -3463,13 +3496,13 @@ class SubformMagicComponent {
|
|
|
3463
3496
|
return this.mgSub.mgGetParameters(this.id);
|
|
3464
3497
|
}
|
|
3465
3498
|
}
|
|
3466
|
-
SubformMagicComponent.ɵfac = function SubformMagicComponent_Factory(t) { return new (t || SubformMagicComponent)(
|
|
3467
|
-
SubformMagicComponent.ɵcmp =
|
|
3468
|
-
|
|
3499
|
+
SubformMagicComponent.ɵfac = function SubformMagicComponent_Factory(t) { return new (t || SubformMagicComponent)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(SubformMagicService)); };
|
|
3500
|
+
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) {
|
|
3501
|
+
i0.ɵɵtemplate(0, SubformMagicComponent_ndc_dynamic_0_Template, 1, 2, "ndc-dynamic", 0);
|
|
3469
3502
|
} if (rf & 2) {
|
|
3470
|
-
|
|
3471
|
-
} }, directives: [NgIf, DynamicComponent, DynamicIoDirective], encapsulation: 2 });
|
|
3472
|
-
(function () {
|
|
3503
|
+
i0.ɵɵproperty("ngIf", ctx.Component);
|
|
3504
|
+
} }, directives: [i1.NgIf, i3.DynamicComponent, i3.DynamicIoDirective], encapsulation: 2 });
|
|
3505
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubformMagicComponent, [{
|
|
3473
3506
|
type: Component,
|
|
3474
3507
|
args: [{
|
|
3475
3508
|
selector: 'magic-subform',
|
|
@@ -3481,34 +3514,34 @@ SubformMagicComponent.ɵcmp = ɵɵdefineComponent({ type: SubformMagicComponent,
|
|
|
3481
3514
|
</ndc-dynamic>
|
|
3482
3515
|
`
|
|
3483
3516
|
}]
|
|
3484
|
-
}], function () { return [{ type: ViewContainerRef }, { type: SubformMagicService }]; }, { magic: [{
|
|
3517
|
+
}], function () { return [{ type: i0.ViewContainerRef }, { type: SubformMagicService }]; }, { magic: [{
|
|
3485
3518
|
type: Input,
|
|
3486
3519
|
args: ['magic']
|
|
3487
3520
|
}] }); })();
|
|
3488
3521
|
|
|
3489
|
-
const _c0$
|
|
3522
|
+
const _c0$1 = ["customContent"];
|
|
3490
3523
|
function ErrorMagicComponent_div_0_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3524
|
+
i0.ɵɵelementStart(0, "span");
|
|
3525
|
+
i0.ɵɵtext(1);
|
|
3526
|
+
i0.ɵɵelementEnd();
|
|
3494
3527
|
} if (rf & 2) {
|
|
3495
|
-
const ctx_r2 =
|
|
3496
|
-
|
|
3497
|
-
|
|
3528
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
3529
|
+
i0.ɵɵadvance(1);
|
|
3530
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.mgService.getErrMsg(ctx_r2.id, ctx_r2.rowId), " ");
|
|
3498
3531
|
} }
|
|
3499
3532
|
function ErrorMagicComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3533
|
+
i0.ɵɵelementStart(0, "div");
|
|
3534
|
+
i0.ɵɵelementStart(1, "div", null, 1);
|
|
3535
|
+
i0.ɵɵprojection(3);
|
|
3536
|
+
i0.ɵɵelementEnd();
|
|
3537
|
+
i0.ɵɵtemplate(4, ErrorMagicComponent_div_0_span_4_Template, 2, 1, "span", 0);
|
|
3538
|
+
i0.ɵɵelementEnd();
|
|
3506
3539
|
} if (rf & 2) {
|
|
3507
|
-
const ctx_r0 =
|
|
3508
|
-
|
|
3509
|
-
|
|
3540
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
3541
|
+
i0.ɵɵadvance(4);
|
|
3542
|
+
i0.ɵɵproperty("ngIf", ctx_r0.defaultDisplay);
|
|
3510
3543
|
} }
|
|
3511
|
-
const _c1
|
|
3544
|
+
const _c1 = ["*"];
|
|
3512
3545
|
class ErrorMagicComponent {
|
|
3513
3546
|
constructor(_task, mgService, changeDetectorRef) {
|
|
3514
3547
|
this._task = _task;
|
|
@@ -3561,19 +3594,19 @@ class ErrorMagicComponent {
|
|
|
3561
3594
|
return false;
|
|
3562
3595
|
}
|
|
3563
3596
|
}
|
|
3564
|
-
ErrorMagicComponent.ɵfac = function ErrorMagicComponent_Factory(t) { return new (t || ErrorMagicComponent)(
|
|
3565
|
-
ErrorMagicComponent.ɵcmp =
|
|
3566
|
-
|
|
3597
|
+
ErrorMagicComponent.ɵfac = function ErrorMagicComponent_Factory(t) { return new (t || ErrorMagicComponent)(i0.ɵɵdirectiveInject(TaskMagicService), i0.ɵɵdirectiveInject(AccessorMagicService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
3598
|
+
ErrorMagicComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ErrorMagicComponent, selectors: [["mgError"]], viewQuery: function ErrorMagicComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3599
|
+
i0.ɵɵviewQuery(_c0$1, 5);
|
|
3567
3600
|
} if (rf & 2) {
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
} }, inputs: { magic: "magic", rowId1: ["rowId", "rowId1"] }, ngContentSelectors: _c1
|
|
3571
|
-
|
|
3572
|
-
|
|
3601
|
+
let _t;
|
|
3602
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.CustomContent = _t.first);
|
|
3603
|
+
} }, 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) {
|
|
3604
|
+
i0.ɵɵprojectionDef();
|
|
3605
|
+
i0.ɵɵtemplate(0, ErrorMagicComponent_div_0_Template, 5, 1, "div", 0);
|
|
3573
3606
|
} if (rf & 2) {
|
|
3574
|
-
|
|
3575
|
-
} }, directives: [NgIf], encapsulation: 2 });
|
|
3576
|
-
(function () {
|
|
3607
|
+
i0.ɵɵproperty("ngIf", ctx.HasErrors(ctx.id));
|
|
3608
|
+
} }, directives: [i1.NgIf], encapsulation: 2 });
|
|
3609
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorMagicComponent, [{
|
|
3577
3610
|
type: Component,
|
|
3578
3611
|
args: [{
|
|
3579
3612
|
selector: 'mgError',
|
|
@@ -3587,7 +3620,7 @@ ErrorMagicComponent.ɵcmp = ɵɵdefineComponent({ type: ErrorMagicComponent, sel
|
|
|
3587
3620
|
</div>
|
|
3588
3621
|
`
|
|
3589
3622
|
}]
|
|
3590
|
-
}], function () { return [{ type: TaskMagicService }, { type: AccessorMagicService }, { type: ChangeDetectorRef }]; }, { magic: [{
|
|
3623
|
+
}], function () { return [{ type: TaskMagicService }, { type: AccessorMagicService }, { type: i0.ChangeDetectorRef }]; }, { magic: [{
|
|
3591
3624
|
type: Input,
|
|
3592
3625
|
args: ['magic']
|
|
3593
3626
|
}], rowId1: [{
|
|
@@ -3606,11 +3639,11 @@ class CheckboxMagicDirective {
|
|
|
3606
3639
|
this.magicDirective.task.onCheckChanged($event, this.magicDirective.id, +this.magicDirective.rowId);
|
|
3607
3640
|
}
|
|
3608
3641
|
}
|
|
3609
|
-
CheckboxMagicDirective.ɵfac = function CheckboxMagicDirective_Factory(t) { return new (t || CheckboxMagicDirective)(
|
|
3610
|
-
CheckboxMagicDirective.ɵdir =
|
|
3611
|
-
|
|
3642
|
+
CheckboxMagicDirective.ɵfac = function CheckboxMagicDirective_Factory(t) { return new (t || CheckboxMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
|
|
3643
|
+
CheckboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: CheckboxMagicDirective, selectors: [["input", "type", "checkbox", "magic", "", 3, "noFormControl", ""]], hostBindings: function CheckboxMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
3644
|
+
i0.ɵɵlistener("change", function CheckboxMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
|
|
3612
3645
|
} } });
|
|
3613
|
-
(function () {
|
|
3646
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxMagicDirective, [{
|
|
3614
3647
|
type: Directive,
|
|
3615
3648
|
args: [{
|
|
3616
3649
|
selector: `
|
|
@@ -3630,11 +3663,11 @@ class ComboboxMagicDirective {
|
|
|
3630
3663
|
this.magicDirective.task.onComboboxSelectionChanged($event, this.magicDirective.id, +this.magicDirective.rowId);
|
|
3631
3664
|
}
|
|
3632
3665
|
}
|
|
3633
|
-
ComboboxMagicDirective.ɵfac = function ComboboxMagicDirective_Factory(t) { return new (t || ComboboxMagicDirective)(
|
|
3634
|
-
ComboboxMagicDirective.ɵdir =
|
|
3635
|
-
|
|
3666
|
+
ComboboxMagicDirective.ɵfac = function ComboboxMagicDirective_Factory(t) { return new (t || ComboboxMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
|
|
3667
|
+
ComboboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: ComboboxMagicDirective, selectors: [["select", "magic", "", 3, "multiple", ""]], hostBindings: function ComboboxMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
3668
|
+
i0.ɵɵlistener("change", function ComboboxMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
|
|
3636
3669
|
} } });
|
|
3637
|
-
(function () {
|
|
3670
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ComboboxMagicDirective, [{
|
|
3638
3671
|
type: Directive,
|
|
3639
3672
|
args: [{
|
|
3640
3673
|
selector: `select[magic]:not([multiple])`,
|
|
@@ -3650,30 +3683,30 @@ class ExitMagicService {
|
|
|
3650
3683
|
}
|
|
3651
3684
|
}
|
|
3652
3685
|
ExitMagicService.ɵfac = function ExitMagicService_Factory(t) { return new (t || ExitMagicService)(); };
|
|
3653
|
-
ExitMagicService.ɵprov =
|
|
3654
|
-
(function () {
|
|
3686
|
+
ExitMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: ExitMagicService, factory: ExitMagicService.ɵfac });
|
|
3687
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExitMagicService, [{
|
|
3655
3688
|
type: Injectable
|
|
3656
3689
|
}], null, null); })();
|
|
3657
3690
|
|
|
3658
|
-
const _c0
|
|
3691
|
+
const _c0 = ["magicRoot"];
|
|
3659
3692
|
function MagicShellComponent_ndc_dynamic_2_Template(rf, ctx) { if (rf & 1) {
|
|
3660
|
-
|
|
3693
|
+
i0.ɵɵelement(0, "ndc-dynamic", 6);
|
|
3661
3694
|
} if (rf & 2) {
|
|
3662
|
-
const ctx_r1 =
|
|
3663
|
-
|
|
3695
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
3696
|
+
i0.ɵɵproperty("ndcDynamicComponent", ctx_r1.RootComponent)("ndcDynamicInputs", ctx_r1.RootComponentParameters);
|
|
3664
3697
|
} }
|
|
3665
3698
|
function MagicShellComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3699
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
3700
|
+
i0.ɵɵelementContainer(1, 8);
|
|
3701
|
+
i0.ɵɵelementEnd();
|
|
3669
3702
|
} if (rf & 2) {
|
|
3670
|
-
const ctx_r3 =
|
|
3671
|
-
const _r4 =
|
|
3672
|
-
|
|
3673
|
-
|
|
3703
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
3704
|
+
const _r4 = i0.ɵɵreference(7);
|
|
3705
|
+
i0.ɵɵadvance(1);
|
|
3706
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.SpinnerTemplate ? ctx_r3.SpinnerTemplate : _r4);
|
|
3674
3707
|
} }
|
|
3675
3708
|
function MagicShellComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
3676
|
-
|
|
3709
|
+
i0.ɵɵelement(0, "div", 9);
|
|
3677
3710
|
} }
|
|
3678
3711
|
class MagicShellComponent {
|
|
3679
3712
|
constructor(engineMagicService, componentList, changeDetectorRef, titleService, overlayWindowService, httpClient, pendingCommandsCollector, exitMagicService) {
|
|
@@ -3778,28 +3811,28 @@ class MagicShellComponent {
|
|
|
3778
3811
|
}
|
|
3779
3812
|
}
|
|
3780
3813
|
}
|
|
3781
|
-
MagicShellComponent.ɵfac = function MagicShellComponent_Factory(t) { return new (t || MagicShellComponent)(
|
|
3782
|
-
MagicShellComponent.ɵcmp =
|
|
3783
|
-
|
|
3814
|
+
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)); };
|
|
3815
|
+
MagicShellComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicShellComponent, selectors: [["magic-root"]], viewQuery: function MagicShellComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3816
|
+
i0.ɵɵviewQuery(_c0, 7);
|
|
3784
3817
|
} if (rf & 2) {
|
|
3785
|
-
|
|
3786
|
-
|
|
3818
|
+
let _t;
|
|
3819
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.rootMagicElementRef = _t.first);
|
|
3787
3820
|
} }, hostBindings: function MagicShellComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
3788
|
-
|
|
3789
|
-
} }, inputs: { SpinnerTemplate: "SpinnerTemplate" }, features: [
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3821
|
+
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);
|
|
3822
|
+
} }, 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) {
|
|
3823
|
+
i0.ɵɵelementStart(0, "div", null, 0);
|
|
3824
|
+
i0.ɵɵtemplate(2, MagicShellComponent_ndc_dynamic_2_Template, 1, 2, "ndc-dynamic", 1);
|
|
3825
|
+
i0.ɵɵelement(3, "div", 2, 3);
|
|
3826
|
+
i0.ɵɵelementEnd();
|
|
3827
|
+
i0.ɵɵtemplate(5, MagicShellComponent_div_5_Template, 2, 1, "div", 4);
|
|
3828
|
+
i0.ɵɵtemplate(6, MagicShellComponent_ng_template_6_Template, 1, 0, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
|
3796
3829
|
} if (rf & 2) {
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
} }, directives: [NgIf,
|
|
3802
|
-
(function () {
|
|
3830
|
+
i0.ɵɵadvance(2);
|
|
3831
|
+
i0.ɵɵproperty("ngIf", ctx.RootComponent !== null);
|
|
3832
|
+
i0.ɵɵadvance(3);
|
|
3833
|
+
i0.ɵɵproperty("ngIf", ctx.showSpinner);
|
|
3834
|
+
} }, directives: [i1.NgIf, i3.DynamicComponent, i3.DynamicIoDirective, MagicViewContainerRef, i1.NgTemplateOutlet], styles: [".mgSpinnerClass[_ngcontent-%COMP%]{border:10px solid #cccccc;border-top:10px solid black;border-radius:50%;position:fixed;margin:auto;top:0;right:0;bottom:0;left:0;width:100px;height:100px;animation:spin 2s linear infinite}.spinner-background[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;z-index:1000;left:0;opacity:.5}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"] });
|
|
3835
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicShellComponent, [{
|
|
3803
3836
|
type: Component,
|
|
3804
3837
|
args: [{
|
|
3805
3838
|
selector: 'magic-root',
|
|
@@ -3855,7 +3888,7 @@ MagicShellComponent.ɵcmp = ɵɵdefineComponent({ type: MagicShellComponent, sel
|
|
|
3855
3888
|
}
|
|
3856
3889
|
`]
|
|
3857
3890
|
}]
|
|
3858
|
-
}], function () { return [{ type: EngineMagicService }, { type: ComponentListMagicService }, { type: ChangeDetectorRef }, { type: Title }, { type: OverlayWindowService }, { type: HttpClient }, { type: CommandsCollectorMagicService }, { type: ExitMagicService, decorators: [{
|
|
3891
|
+
}], function () { return [{ type: EngineMagicService }, { type: ComponentListMagicService }, { type: i0.ChangeDetectorRef }, { type: i1$1.Title }, { type: OverlayWindowService }, { type: i5.HttpClient }, { type: CommandsCollectorMagicService }, { type: ExitMagicService, decorators: [{
|
|
3859
3892
|
type: Optional
|
|
3860
3893
|
}] }]; }, { rootMagicElementRef: [{
|
|
3861
3894
|
type: ViewChild,
|
|
@@ -3877,12 +3910,11 @@ const CHECKBOX_VALUE_ACCESSOR = {
|
|
|
3877
3910
|
};
|
|
3878
3911
|
class MagicCheckboxControlValueAccessor extends CheckboxControlValueAccessor {
|
|
3879
3912
|
}
|
|
3880
|
-
MagicCheckboxControlValueAccessor.ɵfac = function MagicCheckboxControlValueAccessor_Factory(t) { return ɵMagicCheckboxControlValueAccessor_BaseFactory(t || MagicCheckboxControlValueAccessor); };
|
|
3881
|
-
MagicCheckboxControlValueAccessor.ɵdir =
|
|
3882
|
-
|
|
3883
|
-
} }, features: [
|
|
3884
|
-
|
|
3885
|
-
(function () { ɵsetClassMetadata(MagicCheckboxControlValueAccessor, [{
|
|
3913
|
+
MagicCheckboxControlValueAccessor.ɵfac = function () { let ɵMagicCheckboxControlValueAccessor_BaseFactory; return function MagicCheckboxControlValueAccessor_Factory(t) { return (ɵMagicCheckboxControlValueAccessor_BaseFactory || (ɵMagicCheckboxControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(MagicCheckboxControlValueAccessor)))(t || MagicCheckboxControlValueAccessor); }; }();
|
|
3914
|
+
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) {
|
|
3915
|
+
i0.ɵɵlistener("change", function MagicCheckboxControlValueAccessor_change_HostBindingHandler($event) { return ctx.onChange($event.target.checked); })("blur", function MagicCheckboxControlValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
|
|
3916
|
+
} }, features: [i0.ɵɵProvidersFeature([CHECKBOX_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature] });
|
|
3917
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicCheckboxControlValueAccessor, [{
|
|
3886
3918
|
type: Directive,
|
|
3887
3919
|
args: [{
|
|
3888
3920
|
selector: `
|
|
@@ -3902,12 +3934,11 @@ const MAGIC_DEFAULT_VALUE_ACCESSOR = {
|
|
|
3902
3934
|
};
|
|
3903
3935
|
class MagicDefaultValueAccessor extends DefaultValueAccessor {
|
|
3904
3936
|
}
|
|
3905
|
-
MagicDefaultValueAccessor.ɵfac = function MagicDefaultValueAccessor_Factory(t) { return ɵMagicDefaultValueAccessor_BaseFactory(t || MagicDefaultValueAccessor); };
|
|
3906
|
-
MagicDefaultValueAccessor.ɵdir =
|
|
3907
|
-
|
|
3908
|
-
} }, exportAs: ["magic"], features: [
|
|
3909
|
-
|
|
3910
|
-
(function () { ɵsetClassMetadata(MagicDefaultValueAccessor, [{
|
|
3937
|
+
MagicDefaultValueAccessor.ɵfac = function () { let ɵMagicDefaultValueAccessor_BaseFactory; return function MagicDefaultValueAccessor_Factory(t) { return (ɵMagicDefaultValueAccessor_BaseFactory || (ɵMagicDefaultValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(MagicDefaultValueAccessor)))(t || MagicDefaultValueAccessor); }; }();
|
|
3938
|
+
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) {
|
|
3939
|
+
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); });
|
|
3940
|
+
} }, exportAs: ["magic"], features: [i0.ɵɵProvidersFeature([MAGIC_DEFAULT_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature] });
|
|
3941
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicDefaultValueAccessor, [{
|
|
3911
3942
|
type: Directive,
|
|
3912
3943
|
args: [{
|
|
3913
3944
|
selector: `
|
|
@@ -3933,11 +3964,11 @@ class CheckboxNoFormControlMagicDirective {
|
|
|
3933
3964
|
this.magicDirective.task.onCheckChanged($event, this.magicDirective.id, +this.magicDirective.rowId);
|
|
3934
3965
|
}
|
|
3935
3966
|
}
|
|
3936
|
-
CheckboxNoFormControlMagicDirective.ɵfac = function CheckboxNoFormControlMagicDirective_Factory(t) { return new (t || CheckboxNoFormControlMagicDirective)(
|
|
3937
|
-
CheckboxNoFormControlMagicDirective.ɵdir =
|
|
3938
|
-
|
|
3967
|
+
CheckboxNoFormControlMagicDirective.ɵfac = function CheckboxNoFormControlMagicDirective_Factory(t) { return new (t || CheckboxNoFormControlMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
|
|
3968
|
+
CheckboxNoFormControlMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: CheckboxNoFormControlMagicDirective, selectors: [["input", "type", "checkbox", "magic", "", "noFormControl", ""]], hostBindings: function CheckboxNoFormControlMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
3969
|
+
i0.ɵɵlistener("change", function CheckboxNoFormControlMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
|
|
3939
3970
|
} } });
|
|
3940
|
-
(function () {
|
|
3971
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxNoFormControlMagicDirective, [{
|
|
3941
3972
|
type: Directive,
|
|
3942
3973
|
args: [{
|
|
3943
3974
|
selector: `
|
|
@@ -3957,11 +3988,11 @@ class InputNoFormControlMagicDirective {
|
|
|
3957
3988
|
this.magicDirective.task.setInputTextValue(this.magicDirective.id, this.magicDirective.rowId, event.srcElement.value);
|
|
3958
3989
|
}
|
|
3959
3990
|
}
|
|
3960
|
-
InputNoFormControlMagicDirective.ɵfac = function InputNoFormControlMagicDirective_Factory(t) { return new (t || InputNoFormControlMagicDirective)(
|
|
3961
|
-
InputNoFormControlMagicDirective.ɵdir =
|
|
3962
|
-
|
|
3991
|
+
InputNoFormControlMagicDirective.ɵfac = function InputNoFormControlMagicDirective_Factory(t) { return new (t || InputNoFormControlMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
|
|
3992
|
+
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) {
|
|
3993
|
+
i0.ɵɵlistener("change", function InputNoFormControlMagicDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
|
|
3963
3994
|
} } });
|
|
3964
|
-
(function () {
|
|
3995
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputNoFormControlMagicDirective, [{
|
|
3965
3996
|
type: Directive,
|
|
3966
3997
|
args: [{
|
|
3967
3998
|
selector: `input[magic]:([noFormControl]):not([type=checkbox]),
|
|
@@ -4003,17 +4034,17 @@ class DateValueAccessor {
|
|
|
4003
4034
|
this.renderer.setProperty(this.elementRef.nativeElement, "disabled", isDisabled);
|
|
4004
4035
|
}
|
|
4005
4036
|
}
|
|
4006
|
-
DateValueAccessor.ɵfac = function DateValueAccessor_Factory(t) { return new (t || DateValueAccessor)(
|
|
4007
|
-
DateValueAccessor.ɵdir =
|
|
4008
|
-
|
|
4009
|
-
} }, features: [
|
|
4010
|
-
(function () {
|
|
4037
|
+
DateValueAccessor.ɵfac = function DateValueAccessor_Factory(t) { return new (t || DateValueAccessor)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
4038
|
+
DateValueAccessor.ɵdir = i0.ɵɵdefineDirective({ type: DateValueAccessor, selectors: [["", "dateInput", ""]], hostBindings: function DateValueAccessor_HostBindings(rf, ctx) { if (rf & 1) {
|
|
4039
|
+
i0.ɵɵlistener("input", function DateValueAccessor_input_HostBindingHandler($event) { return ctx.onChange($event.target.valueAsDate); })("blur", function DateValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
|
|
4040
|
+
} }, features: [i0.ɵɵProvidersFeature([DATE_VALUE_ACCESSOR])] });
|
|
4041
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateValueAccessor, [{
|
|
4011
4042
|
type: Directive,
|
|
4012
4043
|
args: [{
|
|
4013
4044
|
selector: "[dateInput]",
|
|
4014
4045
|
providers: [DATE_VALUE_ACCESSOR]
|
|
4015
4046
|
}]
|
|
4016
|
-
}], function () { return [{ type: Renderer2 }, { type: ElementRef }]; }, { onChange: [{
|
|
4047
|
+
}], function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { onChange: [{
|
|
4017
4048
|
type: HostListener,
|
|
4018
4049
|
args: ["input", ["$event.target.valueAsDate"]]
|
|
4019
4050
|
}], onTouched: [{
|
|
@@ -4053,14 +4084,14 @@ class NonMagicControlDirective {
|
|
|
4053
4084
|
this.regEvents();
|
|
4054
4085
|
}
|
|
4055
4086
|
}
|
|
4056
|
-
NonMagicControlDirective.ɵfac = function NonMagicControlDirective_Factory(t) { return new (t || NonMagicControlDirective)(
|
|
4057
|
-
NonMagicControlDirective.ɵdir =
|
|
4058
|
-
(function () {
|
|
4087
|
+
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)); };
|
|
4088
|
+
NonMagicControlDirective.ɵdir = i0.ɵɵdefineDirective({ type: NonMagicControlDirective, selectors: [["", "NonMagicControl", ""]], inputs: { magic: ["NonMagicControl", "magic"] } });
|
|
4089
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NonMagicControlDirective, [{
|
|
4059
4090
|
type: Directive,
|
|
4060
4091
|
args: [{
|
|
4061
4092
|
selector: '[NonMagicControl]'
|
|
4062
4093
|
}]
|
|
4063
|
-
}], function () { return [{ type: TaskMagicService }, { type: ElementRef }, { type: Renderer2 }, { type: ViewContainerRef }]; }, { magic: [{
|
|
4094
|
+
}], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }]; }, { magic: [{
|
|
4064
4095
|
type: Input,
|
|
4065
4096
|
args: ['NonMagicControl']
|
|
4066
4097
|
}] }); })();
|
|
@@ -4096,21 +4127,10 @@ const decs = [
|
|
|
4096
4127
|
MagicViewContainerRef
|
|
4097
4128
|
];
|
|
4098
4129
|
class MagicModule {
|
|
4099
|
-
static forRoot() {
|
|
4100
|
-
return {
|
|
4101
|
-
ngModule: MagicModule,
|
|
4102
|
-
providers: [
|
|
4103
|
-
EngineMagicService,
|
|
4104
|
-
ComponentListMagicService,
|
|
4105
|
-
CommandsCollectorMagicService,
|
|
4106
|
-
RouterCommandsMagicService,
|
|
4107
|
-
OverlayWindowService,
|
|
4108
|
-
]
|
|
4109
|
-
};
|
|
4110
|
-
}
|
|
4111
4130
|
}
|
|
4112
|
-
MagicModule.ɵ
|
|
4113
|
-
MagicModule.ɵ
|
|
4131
|
+
MagicModule.ɵfac = function MagicModule_Factory(t) { return new (t || MagicModule)(); };
|
|
4132
|
+
MagicModule.ɵmod = i0.ɵɵdefineNgModule({ type: MagicModule });
|
|
4133
|
+
MagicModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider], imports: [[
|
|
4114
4134
|
CommonModule,
|
|
4115
4135
|
FormsModule,
|
|
4116
4136
|
ReactiveFormsModule,
|
|
@@ -4118,7 +4138,24 @@ MagicModule.ɵinj = ɵɵdefineInjector({ factory: function MagicModule_Factory(t
|
|
|
4118
4138
|
DynamicModule,
|
|
4119
4139
|
HttpClientModule
|
|
4120
4140
|
]] });
|
|
4121
|
-
(function () { (typeof
|
|
4141
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicModule, [{
|
|
4142
|
+
type: NgModule,
|
|
4143
|
+
args: [{
|
|
4144
|
+
declarations: [...decs],
|
|
4145
|
+
exports: [...decs],
|
|
4146
|
+
entryComponents: [],
|
|
4147
|
+
imports: [
|
|
4148
|
+
CommonModule,
|
|
4149
|
+
FormsModule,
|
|
4150
|
+
ReactiveFormsModule,
|
|
4151
|
+
RouterModule,
|
|
4152
|
+
DynamicModule,
|
|
4153
|
+
HttpClientModule
|
|
4154
|
+
],
|
|
4155
|
+
providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider]
|
|
4156
|
+
}]
|
|
4157
|
+
}], null, null); })();
|
|
4158
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MagicModule, { declarations: [MagicDirective,
|
|
4122
4159
|
CheckboxMagicDirective,
|
|
4123
4160
|
CheckboxNoFormControlMagicDirective,
|
|
4124
4161
|
InputNoFormControlMagicDirective,
|
|
@@ -4177,24 +4214,7 @@ MagicModule.ɵinj = ɵɵdefineInjector({ factory: function MagicModule_Factory(t
|
|
|
4177
4214
|
RangeValidatorMagicDirective,
|
|
4178
4215
|
NonMagicControlDirective,
|
|
4179
4216
|
MagicFocusDirective,
|
|
4180
|
-
MagicViewContainerRef] }); })();
|
|
4181
|
-
(function () { ɵsetClassMetadata(MagicModule, [{
|
|
4182
|
-
type: NgModule,
|
|
4183
|
-
args: [{
|
|
4184
|
-
declarations: [...decs],
|
|
4185
|
-
exports: [...decs],
|
|
4186
|
-
entryComponents: [],
|
|
4187
|
-
imports: [
|
|
4188
|
-
CommonModule,
|
|
4189
|
-
FormsModule,
|
|
4190
|
-
ReactiveFormsModule,
|
|
4191
|
-
RouterModule,
|
|
4192
|
-
DynamicModule,
|
|
4193
|
-
HttpClientModule
|
|
4194
|
-
],
|
|
4195
|
-
providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider]
|
|
4196
|
-
}]
|
|
4197
|
-
}], null, null); })();
|
|
4217
|
+
MagicViewContainerRef] }); })();
|
|
4198
4218
|
|
|
4199
4219
|
const MG_FORMATS = {
|
|
4200
4220
|
parse: { dateInput: { month: 'short', year: 'numeric', day: 'numeric' } },
|
|
@@ -4287,11 +4307,11 @@ class MgDateAdapter extends NativeDateAdapter {
|
|
|
4287
4307
|
}
|
|
4288
4308
|
}
|
|
4289
4309
|
}
|
|
4290
|
-
MgDateAdapter.ɵfac = function MgDateAdapter_Factory(t) { return new (t || MgDateAdapter)(
|
|
4291
|
-
MgDateAdapter.ɵprov =
|
|
4292
|
-
(function () {
|
|
4310
|
+
MgDateAdapter.ɵfac = function MgDateAdapter_Factory(t) { return new (t || MgDateAdapter)(i0.ɵɵinject(i1$2.Platform), i0.ɵɵinject(TaskMagicService)); };
|
|
4311
|
+
MgDateAdapter.ɵprov = i0.ɵɵdefineInjectable({ token: MgDateAdapter, factory: MgDateAdapter.ɵfac });
|
|
4312
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MgDateAdapter, [{
|
|
4293
4313
|
type: Injectable
|
|
4294
|
-
}], function () { return [{ type: Platform }, { type: TaskMagicService }]; }, null); })();
|
|
4314
|
+
}], function () { return [{ type: i1$2.Platform }, { type: TaskMagicService }]; }, null); })();
|
|
4295
4315
|
|
|
4296
4316
|
const matDateProviders = [
|
|
4297
4317
|
{ provide: DateAdapter, useClass: MgDateAdapter },
|
|
@@ -4380,5 +4400,5 @@ class ModalFormDefinition {
|
|
|
4380
4400
|
}
|
|
4381
4401
|
}
|
|
4382
4402
|
|
|
4383
|
-
export { AccessorMagicService, BaseMagicAlertComponent, BaseMagicConfirmComponent, BaseMagicOverlayContainer, CHECKBOX_VALUE_ACCESSOR, CheckboxMagicDirective, CheckboxNoFormControlMagicDirective, ComboboxMagicDirective, CommandsCollectorMagicService, ComponentListMagicService, ConfirmationComponentsMagicProvider, Constants, ControlMetadata, ControlsMetadata, DATE_VALUE_ACCESSOR, DateMagicPipe, DateValueAccessor, EngineMagicService, ErrorMagicComponent, ExitMagicService, GuiInteractiveExecutor, HtmlClasses, InputNoFormControlMagicDirective, MAGIC_DEFAULT_VALUE_ACCESSOR, MG_FORMATS, MagicAlertComponent, MagicCheckboxControlValueAccessor, MagicConfirmationBoxComponent, MagicDefaultValueAccessor, MagicDirective, MagicFocusDirective, MagicModule, MagicOverlayContainer, MagicOverlayContainerWrapper, MagicServices, MagicShellComponent, MagicViewContainerRef, MgDateAdapter, MgDateFormatter, MgformatMagicDirective, ModalFormDefinition, NoControlMagicDirective, NonMagicControlDirective, OverlayContainerMagicProvider, OverlayWindowService, RangeValidatorMagicDirective, Records, RouteCommand, RouterCommandsMagicService, RouterContainerMagicComponent, RowMagicDirective, StylesMapManager, SubformMagicComponent, SubformMagicService, TableMagicService, TaskBaseMagicComponent, TaskMagicService, TimeMagicPipe, TitleMagicService, basicMagicProviders, confirmationBox, magicProviders, matDateProviders, utils };
|
|
4384
|
-
//# sourceMappingURL=magic-xpa-angular.
|
|
4403
|
+
export { AccessorMagicService, BaseMagicAlertComponent, BaseMagicConfirmComponent, BaseMagicOverlayContainer, CHECKBOX_VALUE_ACCESSOR, CheckboxMagicDirective, CheckboxNoFormControlMagicDirective, ComboboxMagicDirective, CommandsCollectorMagicService, ComponentListMagicService, ConfirmationComponentsMagicProvider, Constants, ControlMetadata, ControlsMetadata, DATE_VALUE_ACCESSOR, DateMagicPipe, DateValueAccessor, EngineMagicService, ErrorMagicComponent, ExitMagicService, GuiInteractiveExecutor, HtmlClasses, InputNoFormControlMagicDirective, MAGIC_DEFAULT_VALUE_ACCESSOR, MG_FORMATS, MagicAlertComponent, MagicCheckboxControlValueAccessor, MagicConfirmationBoxComponent, MagicDefaultValueAccessor, MagicDirective, MagicFocusDirective, MagicLazyLoaderService, MagicModule, MagicOverlayContainer, MagicOverlayContainerWrapper, MagicServices, MagicShellComponent, MagicViewContainerRef, MgDateAdapter, MgDateFormatter, MgformatMagicDirective, ModalFormDefinition, NoControlMagicDirective, NonMagicControlDirective, OverlayContainerMagicProvider, OverlayWindowService, RangeValidatorMagicDirective, Records, RouteCommand, RouterCommandsMagicService, RouterContainerMagicComponent, RowMagicDirective, StylesMapManager, SubformMagicComponent, SubformMagicService, TableMagicService, TaskBaseMagicComponent, TaskMagicService, TimeMagicPipe, TitleMagicService, basicMagicProviders, confirmationBox, magicProviders, matDateProviders, utils };
|
|
4404
|
+
//# sourceMappingURL=magic-xpa-angular.mjs.map
|