@magic-xpa/angular 4.1000.0-dev4100.99 → 4.1000.410-0.428
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/index.mjs +2 -1
- package/esm2020/src/magic.core.module.mjs +16 -13
- package/esm2020/src/services/accessor.magic.service.mjs +28 -3
- package/esm2020/src/services/magic-color.service.mjs +4 -4
- package/esm2020/src/services/subform.magic.service.mjs +1 -1
- package/esm2020/src/services/table.magic.service.mjs +5 -2
- package/esm2020/src/services/task.magics.service.mjs +25 -4
- package/esm2020/src/ui/GuiInteractiveExecutor.mjs +7 -2
- package/esm2020/src/ui/components/base-magic-alert.component.mjs +3 -7
- package/esm2020/src/ui/components/base-magic-confirm.component.mjs +3 -7
- package/esm2020/src/ui/components/magic-alert.component.mjs +3 -35
- package/esm2020/src/ui/components/magic-confirmation-box.component.mjs +3 -39
- package/esm2020/src/ui/directives/NonMagicControlDirective.mjs +6 -6
- package/esm2020/src/ui/directives/magic/checkbox.magic.directive.mjs +76 -7
- package/esm2020/src/ui/directives/magic/combobox.magic.directive.mjs +11 -1
- package/esm2020/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.mjs +34 -5
- package/esm2020/src/ui/directives/magic/nocontrol.magic.directive.mjs +3 -3
- package/esm2020/src/ui/directives/magic.directive.mjs +11 -11
- package/esm2020/src/ui/directives/mgformat.magic.directive.mjs +336 -3
- package/esm2020/src/ui/magic-modal/base-magic-overlay-container.mjs +1 -1
- package/esm2020/src/ui/magic-modal/magic-overlay-container-wrapper.mjs +4 -18
- package/esm2020/src/ui/magic-modal/magic-overlay-container.mjs +4 -4
- package/esm2020/src/ui/magic-root.component.mjs +4 -38
- package/esm2020/src/ui/mgerror.magic.component.mjs +9 -9
- package/esm2020/src/ui/pipes/time24.magic.pipe.mjs +34 -0
- package/esm2020/src/ui/router-container.magic.component.mjs +4 -4
- package/esm2020/src/ui/subform.magic.component.mjs +4 -4
- package/esm2020/src/ui/task-base.magic.component.mjs +8 -2
- package/fesm2015/magic-xpa-angular.mjs +605 -208
- package/fesm2015/magic-xpa-angular.mjs.map +1 -1
- package/fesm2020/magic-xpa-angular.mjs +603 -208
- package/fesm2020/magic-xpa-angular.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +11 -8
- package/src/magic.core.module.d.ts +8 -6
- package/src/services/accessor.magic.service.d.ts +3 -0
- package/src/services/table.magic.service.d.ts +2 -0
- package/src/services/task.magics.service.d.ts +1 -0
- package/src/ui/components/base-magic-alert.component.d.ts +1 -1
- package/src/ui/components/base-magic-confirm.component.d.ts +1 -1
- package/src/ui/components/magic-alert.component.d.ts +1 -1
- package/src/ui/components/magic-confirmation-box.component.d.ts +1 -1
- package/src/ui/directives/NonMagicControlDirective.d.ts +1 -1
- package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +1 -1
- package/src/ui/directives/magic/checkbox.magic.directive.d.ts +15 -2
- package/src/ui/directives/magic/combobox.magic.directive.d.ts +2 -1
- package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +1 -1
- package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +9 -3
- package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +1 -1
- package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +1 -1
- package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +1 -1
- package/src/ui/directives/magic/row.magic.directive.d.ts +1 -1
- package/src/ui/directives/magic-focus.directive.d.ts +1 -1
- package/src/ui/directives/magic.directive.d.ts +2 -2
- package/src/ui/directives/magicViewContainerRef.directive.d.ts +1 -1
- package/src/ui/directives/mgformat.magic.directive.d.ts +12 -2
- package/src/ui/directives/range-validator.magic.directive.d.ts +1 -1
- package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +1 -1
- package/src/ui/magic-modal/magic-overlay-container.d.ts +1 -1
- package/src/ui/magic-root.component.d.ts +1 -1
- package/src/ui/mgerror.magic.component.d.ts +1 -1
- package/src/ui/pipes/date.magic.pipe.d.ts +1 -1
- package/src/ui/pipes/time.magic.pipe.d.ts +1 -1
- package/src/ui/pipes/time24.magic.pipe.d.ts +10 -0
- package/src/ui/router-container.magic.component.d.ts +1 -1
- package/src/ui/subform.magic.component.d.ts +1 -1
- package/src/ui/task-base.magic.component.d.ts +2 -1
- package/magic-xpa-angular.d.ts +0 -2
package/esm2020/index.mjs
CHANGED
@@ -55,4 +55,5 @@ export * from "./src/ui/magic-modal/magic-overlay-container-wrapper";
|
|
55
55
|
export * from "./src/ui/magic-modal/magic-overlay-container";
|
56
56
|
export * from "./src/ui/pipes/date.magic.pipe";
|
57
57
|
export * from "./src/ui/pipes/time.magic.pipe";
|
58
|
-
|
58
|
+
export * from "./src/ui/pipes/time24.magic.pipe";
|
59
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlBLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLCtDQUErQyxDQUFDO0FBQzlELGNBQWMsdUNBQXVDLENBQUM7QUFDdEQsY0FBYyxpREFBaUQsQ0FBQztBQUNoRSxjQUFjLDZDQUE2QyxDQUFDO0FBQzVELGNBQWMsdURBQXVELENBQUM7QUFDdEUsY0FBYyxxQ0FBcUMsQ0FBQztBQUNwRCxjQUFjLG1DQUFtQyxDQUFDO0FBQ2xELGNBQWMscUNBQXFDLENBQUM7QUFDcEQsY0FBYyxvQ0FBb0MsQ0FBQztBQUNuRCxjQUFjLDBDQUEwQyxDQUFDO0FBQ3pELGNBQWMsZ0NBQWdDLENBQUM7QUFDL0MsY0FBYywrQkFBK0IsQ0FB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tcbiJdfQ==
|
@@ -34,6 +34,8 @@ import { MagicFocusDirective } from './ui/directives/magic-focus.directive';
|
|
34
34
|
import { BaseMagicAlertComponent } from './ui/components/base-magic-alert.component';
|
35
35
|
import { BaseMagicConfirmComponent } from './ui/components/base-magic-confirm.component';
|
36
36
|
import { MagicViewContainerRef } from './ui/directives/magicViewContainerRef.directive';
|
37
|
+
import { MaskitoModule } from "@maskito/angular";
|
38
|
+
import { Time24MagicPipe } from "./ui/pipes/time24.magic.pipe";
|
37
39
|
import * as i0 from "@angular/core";
|
38
40
|
const decs = [
|
39
41
|
MagicDirective,
|
@@ -63,25 +65,24 @@ const decs = [
|
|
63
65
|
RangeValidatorMagicDirective,
|
64
66
|
NonMagicControlDirective,
|
65
67
|
MagicFocusDirective,
|
66
|
-
MagicViewContainerRef
|
68
|
+
MagicViewContainerRef,
|
69
|
+
Time24MagicPipe
|
67
70
|
];
|
68
71
|
export class MagicModule {
|
69
72
|
}
|
70
73
|
MagicModule.ɵfac = function MagicModule_Factory(t) { return new (t || MagicModule)(); };
|
71
74
|
MagicModule.ɵmod = i0.ɵɵdefineNgModule({ type: MagicModule });
|
72
|
-
MagicModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider], imports: [
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
HttpClientModule
|
79
|
-
]] });
|
75
|
+
MagicModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMagicProvider, OverlayContainerMagicProvider], imports: [CommonModule,
|
76
|
+
FormsModule,
|
77
|
+
ReactiveFormsModule,
|
78
|
+
RouterModule,
|
79
|
+
DynamicModule,
|
80
|
+
HttpClientModule, MaskitoModule] });
|
80
81
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicModule, [{
|
81
82
|
type: NgModule,
|
82
83
|
args: [{
|
83
84
|
declarations: [...decs],
|
84
|
-
exports: [...decs],
|
85
|
+
exports: [...decs, MaskitoModule],
|
85
86
|
entryComponents: [],
|
86
87
|
imports: [
|
87
88
|
CommonModule,
|
@@ -121,7 +122,8 @@ MagicModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMa
|
|
121
122
|
RangeValidatorMagicDirective,
|
122
123
|
NonMagicControlDirective,
|
123
124
|
MagicFocusDirective,
|
124
|
-
MagicViewContainerRef
|
125
|
+
MagicViewContainerRef,
|
126
|
+
Time24MagicPipe], imports: [CommonModule,
|
125
127
|
FormsModule,
|
126
128
|
ReactiveFormsModule,
|
127
129
|
RouterModule,
|
@@ -153,5 +155,6 @@ MagicModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ConfirmationComponentsMa
|
|
153
155
|
RangeValidatorMagicDirective,
|
154
156
|
NonMagicControlDirective,
|
155
157
|
MagicFocusDirective,
|
156
|
-
MagicViewContainerRef
|
157
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFnaWMuY29yZS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyL3NyYy9tYWdpYy5jb3JlLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsdUJBQXVCLEVBQU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cnlDb21wb25lbnRzOltdLFxyXG4gIGltcG9ydHM6IFtcclxuICAgIENvbW1vbk1vZHVsZSxcclxuICAgIEZvcm1zTW9kdWxlLFxyXG4gICAgUmVhY3RpdmVGb3Jtc01vZHVsZSxcclxuICAgIFJvdXRlck1vZHVsZSxcclxuICAgIER5bmFtaWNNb2R1bGUsXHJcbiAgICBIdHRwQ2xpZW50TW9kdWxlXHJcbiAgXSxcclxuICAvL0N1c3RvbWl6YWJsZSBwcm92aWRlcnNcclxuICBwcm92aWRlcnM6W0NvbmZpcm1hdGlvbkNvbXBvbmVudHNNYWdpY1Byb3ZpZGVyLCBPdmVybGF5Q29udGFpbmVyTWFnaWNQcm92aWRlcl1cclxufSlcclxuZXhwb3J0IGNsYXNzIE1hZ2ljTW9kdWxlIHtcclxuXHJcbn1cclxuIl19
|
158
|
+
MagicViewContainerRef,
|
159
|
+
Time24MagicPipe, MaskitoModule] }); })();
|
160
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFnaWMuY29yZS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyL3NyYy9tYWdpYy5jb3JlLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsdUJBQ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bWVNYWdpY1BpcGUsXHJcbiAgUmFuZ2VWYWxpZGF0b3JNYWdpY0RpcmVjdGl2ZSxcclxuICBOb25NYWdpY0NvbnRyb2xEaXJlY3RpdmUsXHJcbiAgTWFnaWNGb2N1c0RpcmVjdGl2ZSxcclxuICBNYWdpY1ZpZXdDb250YWluZXJSZWYsXHJcbiAgVGltZTI0TWFnaWNQaXBlXHJcblxyXG5cclxuXTtcclxuXHJcbi8qKlxyXG4gKiBAaWdub3JlXHJcbiAqL1xyXG5ATmdNb2R1bGUoe1xyXG4gIGRlY2xhcmF0aW9uczogWy4uLmRlY3NdLFxyXG4gIGV4cG9ydHMgICAgIDogWy4uLmRlY3MsTWFza2l0b01vZHVsZV0sXHJcbiAgZW50cnlDb21wb25lbnRzOltdLFxyXG4gIGltcG9ydHM6IFtcclxuICAgIENvbW1vbk1vZHVsZSxcclxuICAgIEZvcm1zTW9kdWxlLFxyXG4gICAgUmVhY3RpdmVGb3Jtc01vZHVsZSxcclxuICAgIFJvdXRlck1vZHVsZSxcclxuICAgIER5bmFtaWNNb2R1bGUsXHJcbiAgICBIdHRwQ2xpZW50TW9kdWxlXHJcbiAgXSxcclxuICAvL0N1c3RvbWl6YWJsZSBwcm92aWRlcnNcclxuICBwcm92aWRlcnM6W0NvbmZpcm1hdGlvbkNvbXBvbmVudHNNYWdpY1Byb3ZpZGVyLCBPdmVybGF5Q29udGFpbmVyTWFnaWNQcm92aWRlcl1cclxufSlcclxuZXhwb3J0IGNsYXNzIE1hZ2ljTW9kdWxlIHtcclxuXHJcbn1cclxuIl19
|
@@ -5,6 +5,7 @@ import { isNullOrUndefined, StringBuilder } from '@magic-xpa/mscorelib';
|
|
5
5
|
import { getGuiEventObj, CookieService } from '@magic-xpa/engine';
|
6
6
|
import { Logger, PICInterface, StorageAttribute } from '@magic-xpa/utils';
|
7
7
|
import { MagicColorService } from './magic-color.service';
|
8
|
+
import { maskitoTimeOptionsGenerator } from "@maskito/kit";
|
8
9
|
import * as i0 from "@angular/core";
|
9
10
|
import * as i1 from "./task.magics.service";
|
10
11
|
import * as i2 from "./magic-color.service";
|
@@ -13,6 +14,8 @@ export class AccessorMagicService {
|
|
13
14
|
this.task = task;
|
14
15
|
this.magicColor = magicColor;
|
15
16
|
this.Logger = null;
|
17
|
+
this.hhmm = maskitoTimeOptionsGenerator({ mode: 'HH:MM' });
|
18
|
+
this.hhmmss = maskitoTimeOptionsGenerator({ mode: 'HH:MM:SS' });
|
16
19
|
this.Logger = Logger.Instance;
|
17
20
|
}
|
18
21
|
checkIsReadOnly(controlId) {
|
@@ -248,8 +251,30 @@ export class AccessorMagicService {
|
|
248
251
|
let c = this.task.getFormControl(rowId, id);
|
249
252
|
if (c.hasError('required'))
|
250
253
|
return 'Control must be updated.';
|
251
|
-
if (c.hasError('pattern'))
|
252
|
-
|
254
|
+
if (c.hasError('pattern')) {
|
255
|
+
if (c.errors.pattern.actualValue < 0 && !c.errors.pattern.requiredPattern.includes('-'))
|
256
|
+
return 'Value must be non-negative';
|
257
|
+
if (c.errors.pattern.requiredPattern.includes('.')) {
|
258
|
+
const numericFormat = Math.abs(c.errors.pattern.actualValue).toString().split('.')[0];
|
259
|
+
const decimalFormat = Math.abs(c.errors.pattern.actualValue).toString().split('.')[1];
|
260
|
+
const actualNumericLimit = c.errors.pattern.requiredPattern.match(/,(\d+)/)[1];
|
261
|
+
const actualDecimalLimit = c.errors.pattern.requiredPattern.match(/(?:[^,]+,){2}(\d+)/)[1];
|
262
|
+
if (numericFormat.length > actualNumericLimit || decimalFormat.length > actualDecimalLimit) {
|
263
|
+
return "Numeric format is limited to " + actualNumericLimit + "." + actualDecimalLimit + " digits";
|
264
|
+
}
|
265
|
+
}
|
266
|
+
else if (!c.errors.pattern.requiredPattern.includes('.') && !Number.isInteger(c.errors.pattern.actualValue)) {
|
267
|
+
const actualNumericLimit = c.errors.pattern.requiredPattern.match(/,(\d+)/)[1];
|
268
|
+
return "Numeric format is limited to " + actualNumericLimit + "." + 0 + " digits";
|
269
|
+
}
|
270
|
+
else {
|
271
|
+
const numericFormat = Math.abs(c.errors.pattern.actualValue).toString();
|
272
|
+
const actualNumericLimit = c.errors.pattern.requiredPattern.match(/,(\d+)/)[1];
|
273
|
+
if (numericFormat.length > actualNumericLimit) {
|
274
|
+
return "Numeric format is limited to " + actualNumericLimit + "." + 0 + " digits";
|
275
|
+
}
|
276
|
+
}
|
277
|
+
}
|
253
278
|
if (c.hasError('rangevalidator'))
|
254
279
|
return c.errors.rangevalidator.errorMsg;
|
255
280
|
if (c.hasError('maxlength'))
|
@@ -328,4 +353,4 @@ AccessorMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: AccessorMagicServ
|
|
328
353
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccessorMagicService, [{
|
329
354
|
type: Injectable
|
330
355
|
}], function () { return [{ type: i1.TaskMagicService }, { type: i2.MagicColorService }]; }, null); })();
|
331
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjZXNzb3IubWFnaWMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXIvc3JjL3NlcnZpY2VzL2FjY2Vzc29yLm1hZ2ljLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUV6RCxPQUFPLEVBQW1CLGNBQWMsRUFBRSxjQUFjLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDdEYsT0FBTyxFQUFFLGlCQUFpQixFQUFHLGFBQWEsRUFBQyxNQUFNLHNCQUFzQixDQUFDO0FBRXhFLE9BQU8sRUF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HBhcmFtIHJvd0lkIElkIG9mIHJvdywgaWYgYXBwbGljYWJsZVxyXG4gICAqIEByZXR1cm5zIGFscGhhIG1hc2sgb2YgdGhlIGNvbnRyb2xcclxuICAgKi9cclxuICAvLyBnZXRBbHBoYU1hc2tcclxuICBnZXRBbHBoYU1hc2soY29udHJvbElkOiBzdHJpbmcsIHJvd0lkPzogc3RyaW5nKTpzdHJpbmd7XHJcbiAgICBpZiAoaXNOdWxsT3JVbmRlZmluZWQoY29udHJvbElkKSlcclxuICAgICAgcmV0dXJuIG51bGw7XHJcbiAgICBsZXQgcGljOiBQSUMgPSB0aGlzLnRhc2suR2V0Q29udHJvbFBpY3R1cmVNYXNrKGNvbnRyb2xJZCk7XHJcbiAgICBsZXQgbWFzazogc3RyaW5nID0gcGljLmdldE1hc2soKTtcclxuICAgIGxldCB2YWx1ZVN0cjogU3RyaW5nQnVpbGRlciA9IG5ldyBTdHJpbmdCdWlsZGVyKCk7XHJcblxyXG4gICAgZm9yIChsZXQgaTogbnVtYmVyID0gMDsgaSA8IG1hc2subGVuZ3RoOyBpKyspIHtcclxuICAgICAgc3dpdGNoIChtYXNrLmNoYXJDb2RlQXQoaSkpIHtcclxuICAgICAgICBjYXNlIFBJQ0ludGVyZmFjZS5QSUNfTjpcclxuICAgICAgICAgIHZhbHVlU3RyLkFwcGVuZChcIjBcIik7XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICBjYXNlIFBJQ0ludGVyZmFjZS5QSUNfVTpcclxuICAgICAgICBjYXNlIFBJQ0ludGVyZmFjZS5QSUNfTDpcclxuICAgICAgICBjYXNlIFBJQ0ludGVyZmFjZS5QSUNfWDpcclxuICAgICAgICAgIHZhbHVlU3RyLkFwcGVuZChcIkFcIik7XHJcbiAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgZGVmYXVsdDpcclxuICAgICAgICAgIHZhbHVlU3RyLkFwcGVuZChtYXNrLmNoYXJBdChpKSk7XHJcbiAgICAgICAgICBicmVhaztccl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vclR5cGUpO1xyXG4gIH1cclxufVxyXG4iXX0=
|
@@ -13,6 +13,9 @@ const SYSTEM_BG = 4;
|
|
13
13
|
const SYSTEM_FG_AND_SYSTEM_BG = 6;
|
14
14
|
const TRANSPERENT_BG = 1;
|
15
15
|
export class MagicColorService {
|
16
|
+
getColorFilePath() {
|
17
|
+
return 'assets/' + this.colorFileName;
|
18
|
+
}
|
16
19
|
constructor(http, colorFile1 = 'clr_rnt.eng') {
|
17
20
|
this.http = http;
|
18
21
|
this.colorFileName = 'clr_rnt.eng';
|
@@ -22,9 +25,6 @@ export class MagicColorService {
|
|
22
25
|
else
|
23
26
|
this.colorFileName = 'clr_rnt.eng';
|
24
27
|
}
|
25
|
-
getColorFilePath() {
|
26
|
-
return 'assets/' + this.colorFileName;
|
27
|
-
}
|
28
28
|
getColorData() {
|
29
29
|
if (!this.colorsData) {
|
30
30
|
this.http.get(this.getColorFilePath(), { responseType: 'text' }).subscribe(resp => {
|
@@ -96,4 +96,4 @@ MagicColorService.ɵprov = i0.ɵɵdefineInjectable({ token: MagicColorService, f
|
|
96
96
|
type: Inject,
|
97
97
|
args: [COLOR_FILE_NAME]
|
98
98
|
}] }]; }, null); })();
|
99
|
-
//# sourceMappingURL=data:application/json;base64,
|
99
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFnaWMtY29sb3Iuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXIvc3JjL3NlcnZpY2VzL21hZ2ljLWNvbG9yLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25FLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxzQkFBc0IsQ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ycmlidXRlcyAhPSBTWVNURU1fQkcgJiYgY29sb3JBdHJyaWJ1dGVzICE9U1lTVEVNX0ZHX0FORF9TWVNURU1fQkcpIHtcbiAgICAgICAgICAgICAgaWYgKGNvbG9yQXRycmlidXRlcyA9PSBUUkFOU1BFUkVOVF9CRylcbiAgICAgICAgICAgICAgICBpc1RyYW5zcGVyZW50ID0gdHJ1ZTtcbiAgICAgICAgICAgICAgaGV4ID0gKGNvbG9yWzJdKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICBjb25zb2xlLmxvZygnUGxlYXNlIGVudGVyIHZhbGlkIGNvbG9yIHR5cGUgOiAxLUZHLCAyLUJHICcgKyBjb2xvckluZGV4KTtcbiAgICAgICAgICAgIHJldHVybiAnJztcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB0aGlzLmhleFRvUmdiYSgnIycgKyBoZXgsIGlzVHJhbnNwZXJlbnQpO1xuICAgICAgfSBlbHNlXG4gICAgICAgIGNvbnNvbGUubG9nKCdDb3VsZCBub3QgZ2V0IGNvbG9yIGZvciBudW1iZXIgJyArIGNvbG9ySW5kZXgpO1xuICAgIH1cblxuICAgIHJldHVybiAnJztcbiAgfVxufVxuIl19
|
@@ -181,4 +181,4 @@ SubformMagicService.ɵprov = i0.ɵɵdefineInjectable({ token: SubformMagicServic
|
|
181
181
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubformMagicService, [{
|
182
182
|
type: Injectable
|
183
183
|
}], function () { return [{ type: i1.TaskMagicService }, { type: i2.ActivatedRoute }, { type: i3.ComponentListMagicService }, { type: i4.CommandsCollectorMagicService }, { type: i2.Router }, { type: i5.RouterCommandsMagicService }, { type: i3.ComponentListMagicService }, { type: i6.MagicLazyLoaderService }, { type: i0.Injector }, { type: i0.Compiler }]; }, null); })();
|
184
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2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