@magic-xpa/angular 4.1000.0-dev4100.98 → 4.1000.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 +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 +14 -4
- 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/combobox.magic.directive.mjs +11 -1
- 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 +168 -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 +323 -197
- package/fesm2015/magic-xpa-angular.mjs.map +1 -1
- package/fesm2020/magic-xpa-angular.mjs +321 -197
- 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 +1 -1
- 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 +1 -1
- 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 +5 -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
@@ -13,6 +13,7 @@ export class MgformatMagicDirective {
|
|
13
13
|
constructor(magicDir, _task) {
|
14
14
|
this.magicDir = magicDir;
|
15
15
|
this._task = _task;
|
16
|
+
this.datePasteFlag = false;
|
16
17
|
}
|
17
18
|
ngAfterViewInit() {
|
18
19
|
let control = this._task.getFormControl(this.magicDir.rowId, this.magicDir.id);
|
@@ -26,9 +27,170 @@ export class MgformatMagicDirective {
|
|
26
27
|
onFocusEvent($event) {
|
27
28
|
this.calculatePattern();
|
28
29
|
}
|
29
|
-
|
30
|
+
onPaste(event) {
|
31
|
+
this.datePasteFlag = true;
|
32
|
+
}
|
33
|
+
onInputEvent(event) {
|
34
|
+
let attr = this._task.Records.list[0].getControlMetadata(this.magicDir.id).dataType;
|
35
|
+
if (attr == StorageAttribute.DATE) {
|
36
|
+
if (!this.datePasteFlag)
|
37
|
+
this.dateMasking(event);
|
38
|
+
this.datePasteFlag = false;
|
39
|
+
}
|
30
40
|
this.calculatePattern();
|
31
41
|
}
|
42
|
+
dateMasking(event) {
|
43
|
+
const input = event.target;
|
44
|
+
let cursorPos = event.target.selectionStart;
|
45
|
+
const separator = this._task.mgInputDateFormat.includes('/') ? '/' : '-';
|
46
|
+
if (cursorPos >= input.value.length) {
|
47
|
+
const value = input.value.replace(/[^a-zA-Z0-9/-]/g, '');
|
48
|
+
if (this._task.mgInputDateFormat == "dd/MM/yyyy" || this._task.mgInputDateFormat == "MM/dd/yyyy" || this._task.mgInputDateFormat == "dd-MM-yyyy" || this._task.mgInputDateFormat == "MM-dd-yyyy") {
|
49
|
+
if (value.length == 1 && value[0] == separator)
|
50
|
+
input.value = '01' + separator;
|
51
|
+
else if (value.length == 2 && value[1] == separator)
|
52
|
+
input.value = 0 + value;
|
53
|
+
else if (value.length == 3 && value[2] != separator)
|
54
|
+
input.value = value.slice(0, 2) + separator + value.slice(2);
|
55
|
+
else if (value.length == 4 && value[3] == separator)
|
56
|
+
input.value = value.slice(0, 3) + '01' + value.slice(3);
|
57
|
+
else if (value.length == 5 && value[4] == separator)
|
58
|
+
input.value = value.slice(0, 3) + '0' + value.slice(3);
|
59
|
+
else if (value.length == 6 && value[5] != separator)
|
60
|
+
input.value = value.slice(0, 5) + separator + value.slice(5);
|
61
|
+
else if (value.length >= 10)
|
62
|
+
input.value = value.slice(0, 10);
|
63
|
+
}
|
64
|
+
else if (this._task.mgInputDateFormat == "yyyy/MM/dd" || this._task.mgInputDateFormat == "yyyy/dd/MM" || this._task.mgInputDateFormat == "yyyy-MM-dd" || this._task.mgInputDateFormat == "yyyy-dd-MM") {
|
65
|
+
if (value.length == 1 && value[0] == separator)
|
66
|
+
input.value = '0000' + separator;
|
67
|
+
else if (value.length == 2 && value[1] == separator)
|
68
|
+
input.value = '000' + value.slice(0);
|
69
|
+
else if (value.length == 3 && value[2] == separator)
|
70
|
+
input.value = '00' + value.slice(0);
|
71
|
+
else if (value.length == 4 && value[3] == separator)
|
72
|
+
input.value = '0' + value.slice(0);
|
73
|
+
else if (value.length == 5 && value[4] != separator)
|
74
|
+
input.value = value.slice(0, 4) + separator + value.slice(4);
|
75
|
+
else if (value.length == 6 && value[5] == separator)
|
76
|
+
input.value = value.slice(0, 5) + '01' + value.slice(5);
|
77
|
+
else if (value.length == 7 && value[6] == separator)
|
78
|
+
input.value = value.slice(0, 5) + '0' + value.slice(5);
|
79
|
+
else if (value.length == 8 && value[7] != separator)
|
80
|
+
input.value = value.slice(0, 7) + separator + value.slice(7);
|
81
|
+
else if (value.length >= 10)
|
82
|
+
input.value = value.slice(0, 10);
|
83
|
+
}
|
84
|
+
else if (this._task.mgInputDateFormat == "dd/MM/yy" || this._task.mgInputDateFormat == "yy/MM/dd" || this._task.mgInputDateFormat == "MM/dd/yy" || this._task.mgInputDateFormat == "yy/dd/MM" || this._task.mgInputDateFormat == "dd-MM-yy" || this._task.mgInputDateFormat == "yy-MM-dd" || this._task.mgInputDateFormat == "MM-dd-yy" || this._task.mgInputDateFormat == "yy-dd-MM") {
|
85
|
+
if (value.length == 1 && value[0] == separator)
|
86
|
+
input.value = '01' + separator;
|
87
|
+
else if (value.length == 2 && value[1] == separator)
|
88
|
+
input.value = 0 + value;
|
89
|
+
else if (value.length == 3 && value[2] != separator)
|
90
|
+
input.value = value.slice(0, 2) + separator + value.slice(2);
|
91
|
+
else if (value.length == 4 && value[3] == separator)
|
92
|
+
input.value = value.slice(0, 3) + '01' + value.slice(3);
|
93
|
+
else if (value.length == 5 && value[4] == separator)
|
94
|
+
input.value = value.slice(0, 3) + '0' + value.slice(3);
|
95
|
+
else if (value.length == 6 && value[5] != separator)
|
96
|
+
input.value = value.slice(0, 5) + separator + value.slice(5);
|
97
|
+
else if (value.length >= 8)
|
98
|
+
input.value = value.slice(0, 8);
|
99
|
+
}
|
100
|
+
else if (this._task.mgInputDateFormat == "dd/MMM/yy" || this._task.mgInputDateFormat == "dd-MMM-yy") {
|
101
|
+
if (value.length == 1 && value[0] == separator)
|
102
|
+
input.value = '01' + separator;
|
103
|
+
else if (value.length == 2 && value[1] == separator)
|
104
|
+
input.value = 0 + value;
|
105
|
+
else if (value.length == 3 && value[2] != separator)
|
106
|
+
input.value = value.slice(0, 2) + separator + value.slice(2);
|
107
|
+
else if (value.length == 7 && value[6] != separator)
|
108
|
+
input.value = value.slice(0, 6) + separator + value.slice(6);
|
109
|
+
else if (value.length >= 9)
|
110
|
+
input.value = value.slice(0, 9);
|
111
|
+
}
|
112
|
+
else if (this._task.mgInputDateFormat == "dd/MMM/yyyy" || this._task.mgInputDateFormat == "dd-MMM-yyyy") {
|
113
|
+
if (value.length == 1 && value[0] == separator)
|
114
|
+
input.value = '01' + separator;
|
115
|
+
else if (value.length == 2 && value[1] == separator)
|
116
|
+
input.value = 0 + value;
|
117
|
+
else if (value.length == 3 && value[2] != separator)
|
118
|
+
input.value = value.slice(0, 2) + separator + value.slice(2);
|
119
|
+
else if (value.length == 7 && value[6] != separator)
|
120
|
+
input.value = value.slice(0, 6) + separator + value.slice(6);
|
121
|
+
else if (value.length >= 11)
|
122
|
+
input.value = value.slice(0, 11);
|
123
|
+
}
|
124
|
+
else if (this._task.mgInputDateFormat == "yy/dd/MMM" || this._task.mgInputDateFormat == "yy-dd-MMM") {
|
125
|
+
if (value.length == 1 && value[0] == separator)
|
126
|
+
input.value = '00' + separator;
|
127
|
+
else if (value.length == 2 && value[1] == separator)
|
128
|
+
input.value = 0 + value;
|
129
|
+
else if (value.length == 3 && value[2] != separator)
|
130
|
+
input.value = value.slice(0, 2) + separator + value.slice(2);
|
131
|
+
else if (value.length == 4 && value[3] == separator)
|
132
|
+
input.value = value.slice(0, 3) + '01' + value.slice(3);
|
133
|
+
else if (value.length == 5 && value[4] == separator)
|
134
|
+
input.value = value.slice(0, 3) + '0' + value.slice(3);
|
135
|
+
else if (value.length == 6 && value[5] != separator)
|
136
|
+
input.value = value.slice(0, 5) + separator + value.slice(5);
|
137
|
+
else if (value.length >= 9)
|
138
|
+
input.value = value.slice(0, 9);
|
139
|
+
}
|
140
|
+
else if (this._task.mgInputDateFormat == "yyyy/dd/MMM" || this._task.mgInputDateFormat == "yyyy-dd-MMM") {
|
141
|
+
if (value.length == 1 && value[0] == separator)
|
142
|
+
input.value = '0000' + separator;
|
143
|
+
else if (value.length == 2 && value[1] == separator)
|
144
|
+
input.value = '000' + value.slice(0);
|
145
|
+
else if (value.length == 3 && value[2] == separator)
|
146
|
+
input.value = '00' + value.slice(0);
|
147
|
+
else if (value.length == 4 && value[3] == separator)
|
148
|
+
input.value = '0' + value.slice(0);
|
149
|
+
else if (value.length == 5 && value[4] != separator)
|
150
|
+
input.value = value.slice(0, 4) + separator + value.slice(4);
|
151
|
+
else if (value.length == 6 && value[5] == separator)
|
152
|
+
input.value = value.slice(0, 5) + '01' + value.slice(5);
|
153
|
+
else if (value.length == 7 && value[6] == separator)
|
154
|
+
input.value = value.slice(0, 5) + '0' + value.slice(5);
|
155
|
+
else if (value.length == 8 && value[7] != separator)
|
156
|
+
input.value = value.slice(0, 7) + separator + value.slice(7);
|
157
|
+
else if (value.length >= 11)
|
158
|
+
input.value = value.slice(0, 11);
|
159
|
+
}
|
160
|
+
else if (this._task.mgInputDateFormat == "MMM/dd/yy" || this._task.mgInputDateFormat == "MMM-dd-yy") {
|
161
|
+
if (value.length == 4 && value[3] != separator)
|
162
|
+
input.value = value.slice(0, 3) + separator + value.slice(3);
|
163
|
+
else if (value.length == 5 && value[4] == separator)
|
164
|
+
input.value = value.slice(0, 4) + '01' + value.slice(4);
|
165
|
+
else if (value.length == 6 && value[5] == separator)
|
166
|
+
input.value = value.slice(0, 4) + '0' + value.slice(4);
|
167
|
+
else if (value.length == 7 && value[6] != separator)
|
168
|
+
input.value = value.slice(0, 6) + separator + value.slice(6);
|
169
|
+
else if (value.length >= 9)
|
170
|
+
input.value = value.slice(0, 9);
|
171
|
+
}
|
172
|
+
else if (this._task.mgInputDateFormat == "MMM/dd/yyyy" || this._task.mgInputDateFormat == "MMM-dd-yyyy") {
|
173
|
+
if (value.length == 4 && value[3] != separator)
|
174
|
+
input.value = value.slice(0, 3) + separator + value.slice(3);
|
175
|
+
else if (value.length == 5 && value[4] == separator)
|
176
|
+
input.value = value.slice(0, 4) + '01' + value.slice(4);
|
177
|
+
else if (value.length == 6 && value[5] == separator)
|
178
|
+
input.value = value.slice(0, 4) + '0' + value.slice(4);
|
179
|
+
else if (value.length == 7 && value[6] != separator)
|
180
|
+
input.value = value.slice(0, 6) + separator + value.slice(6);
|
181
|
+
else if (value.length >= 11)
|
182
|
+
input.value = value.slice(0, 11);
|
183
|
+
}
|
184
|
+
}
|
185
|
+
if (cursorPos < input.value.length && input.value.length > this._task.mgInputDateFormat.length) {
|
186
|
+
let inputDate = input.value;
|
187
|
+
let start = input.selectionStart - 1;
|
188
|
+
let end = input.selectionEnd - 1;
|
189
|
+
let indexToRemove = input.selectionStart - 1;
|
190
|
+
input.value = inputDate.slice(0, indexToRemove) + inputDate.slice(indexToRemove + 1);
|
191
|
+
input.setSelectionRange(start, end);
|
192
|
+
}
|
193
|
+
}
|
32
194
|
onChangeEvent($event) {
|
33
195
|
let control = this._task.getFormControl(this.magicDir.rowId, this.magicDir.id);
|
34
196
|
let attr = this._task.Records.list[0].getControlMetadata(this.magicDir.id).dataType;
|
@@ -223,7 +385,7 @@ export class MgformatMagicDirective {
|
|
223
385
|
}
|
224
386
|
MgformatMagicDirective.ɵfac = function MgformatMagicDirective_Factory(t) { return new (t || MgformatMagicDirective)(i0.ɵɵdirectiveInject(i1.MagicDirective), i0.ɵɵdirectiveInject(i2.TaskMagicService)); };
|
225
387
|
MgformatMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MgformatMagicDirective, selectors: [["", "mgFormat", ""]], hostBindings: function MgformatMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
226
|
-
i0.ɵɵlistener("focus", function MgformatMagicDirective_focus_HostBindingHandler($event) { return ctx.onFocusEvent($event); })("input", function MgformatMagicDirective_input_HostBindingHandler($event) { return ctx.onInputEvent($event); })("change", function MgformatMagicDirective_change_HostBindingHandler($event) { return ctx.onChangeEvent($event); });
|
388
|
+
i0.ɵɵlistener("focus", function MgformatMagicDirective_focus_HostBindingHandler($event) { return ctx.onFocusEvent($event); })("paste", function MgformatMagicDirective_paste_HostBindingHandler($event) { return ctx.onPaste($event); })("input", function MgformatMagicDirective_input_HostBindingHandler($event) { return ctx.onInputEvent($event); })("change", function MgformatMagicDirective_change_HostBindingHandler($event) { return ctx.onChangeEvent($event); });
|
227
389
|
} } });
|
228
390
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MgformatMagicDirective, [{
|
229
391
|
type: Directive,
|
@@ -233,6 +395,9 @@ MgformatMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MgformatMagicDirec
|
|
233
395
|
}], function () { return [{ type: i1.MagicDirective }, { type: i2.TaskMagicService }]; }, { onFocusEvent: [{
|
234
396
|
type: HostListener,
|
235
397
|
args: ['focus', ['$event']]
|
398
|
+
}], onPaste: [{
|
399
|
+
type: HostListener,
|
400
|
+
args: ['paste', ['$event']]
|
236
401
|
}], onInputEvent: [{
|
237
402
|
type: HostListener,
|
238
403
|
args: ['input', ['$event']]
|
@@ -240,4 +405,4 @@ MgformatMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MgformatMagicDirec
|
|
240
405
|
type: HostListener,
|
241
406
|
args: ['change', ['$event']]
|
242
407
|
}] }); })();
|
243
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWdmb3JtYXQubWFnaWMuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci9zcmMvdWkvZGlyZWN0aXZlcy9tZ2Zvcm1hdC5tYWdpYy5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxZQUFZLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDdEQsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sb0NBQW9DLENBQUM7QUFDcEUsT0FBTyxFQUFDLGFBQWEsRUFBRSxRQUFRLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUM3RCxPQUFPLEVBQUMsWUFBWSxFQUFFLGdCQUFnQixFQUFDLE1BQU0sa0JBQWtCLENBQUM7QUFDaEUsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBQ2pELE9BQU8sRUFBa0IsVUFBVSxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFFM0QsT0FBTyxFQUFDLGVBQWUsRUFBQyxNQUFNLDBCQUEwQixDQUFDO0FBQ3pELE9BQU8sRUFBQyxXQU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cbiAgICAgIHJldHVybiB0cnVlO1xyXG4gICAgcmV0dXJuIGZhbHNlO1xyXG4gIH1cclxufVxyXG4iXX0=
|
@@ -19,4 +19,4 @@ BaseMagicOverlayContainer = __decorate([
|
|
19
19
|
Output()
|
20
20
|
], BaseMagicOverlayContainer);
|
21
21
|
export { BaseMagicOverlayContainer };
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1tYWdpYy1vdmVybGF5LWNvbnRhaW5lci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXIvc3JjL3VpL21hZ2ljLW1vZGFsL2Jhc2UtbWFnaWMtb3ZlcmxheS1jb250YWluZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBR3ZDLElBQWUseUJBQXlCLEdBQXhDLE1BQWUseUJBQXlCO0NBZTlDLENBQUE7QUFYQztJQUFDLEtBQUssRUFBRTs7NERBQW9CO0FBSzVCO0lBQUMsS0FBSyxFQUFFOztzRUFBbUM7QUFLM0M7SUFBQyxNQUFNLEVBQUU7OzBEQUFrQjtBQWRQLHlCQUF5QjtJQUY5QyxLQUFLLEVBQUU7SUFDUCxNQUFNLEVBQUU7R0FDYSx5QkFBeUIsQ0FlOUM7U0FmcUIseUJBQXlCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5wdXQsIE91dHB1dCB9IGZyb20gXCJAYW5ndWxhci9jb3JlXCI7XHJcbkBJbnB1dCgpXHJcbkBPdXRwdXQoKVxyXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgQmFzZU1hZ2ljT3ZlcmxheUNvbnRhaW5lciB7XHJcbiAgLyoqXHJcbiAgICpcclxuICAgKi9cclxuICBASW5wdXQoKSBhYnN0cmFjdCBNb2RhbENvbXA7XHJcblxyXG4gIC8qKlxyXG4gICAqXHJcbiAgICovXHJcbiAgQElucHV0KCkgYWJzdHJhY3QgTW9kYWxDb21wUGFyYW1ldGVyczogYW55O1xyXG5cclxuICAvKipcclxuICAgKlxyXG4gICAqL1xyXG4gIEBPdXRwdXQoKSBhYnN0cmFjdCBvbkNsb3NlO1xyXG59XHJcbiJdfQ==
|
@@ -93,12 +93,10 @@ MagicOverlayContainerWrapper.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlay
|
|
93
93
|
i0.ɵɵelementEnd();
|
94
94
|
i0.ɵɵelement(6, "div", 5);
|
95
95
|
i0.ɵɵelementEnd();
|
96
|
-
} },
|
96
|
+
} }, dependencies: [i3.MagicFocusDirective, i4.MagicViewContainerRef], styles: [".overlay-container-wrapper-background[_ngcontent-%COMP%]{position:fixed;z-index:999;inset:0}"] });
|
97
97
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicOverlayContainerWrapper, [{
|
98
98
|
type: Component,
|
99
|
-
args: [{
|
100
|
-
selector: 'app-magic-overlay-container-wrapper',
|
101
|
-
template: `
|
99
|
+
args: [{ selector: 'app-magic-overlay-container-wrapper', template: `
|
102
100
|
<div>
|
103
101
|
<div class="overlay-container-wrapper-background" tabIndex="0" style="width: 0px; height: 0px;" magicFocus></div>
|
104
102
|
<div class="overlay-container-wrapper-background" #overlayContainerWrapper>
|
@@ -107,19 +105,7 @@ MagicOverlayContainerWrapper.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlay
|
|
107
105
|
</div>
|
108
106
|
<div class="overlay-container-wrapper-background" tabIndex="0" style="width: 0px; height: 0px;" ></div>
|
109
107
|
</div>
|
110
|
-
`,
|
111
|
-
styles: [`
|
112
|
-
.overlay-container-wrapper-background {
|
113
|
-
/* modal background fixed across whole screen */
|
114
|
-
position: fixed;
|
115
|
-
top: 0;
|
116
|
-
z-index: 999;
|
117
|
-
right: 0;
|
118
|
-
bottom: 0;
|
119
|
-
left: 0;
|
120
|
-
}
|
121
|
-
`]
|
122
|
-
}]
|
108
|
+
`, styles: [".overlay-container-wrapper-background{position:fixed;z-index:999;inset:0}\n"] }]
|
123
109
|
}], function () { return [{ type: i1.ComponentListMagicService }, { type: i2.MagicLazyLoaderService }, { type: i0.Injector }, { type: i0.ComponentFactoryResolver }, { type: i0.ChangeDetectorRef }, { type: i0.Compiler }]; }, { Component: [{
|
124
110
|
type: Input
|
125
111
|
}], Parameters: [{
|
@@ -132,4 +118,4 @@ MagicOverlayContainerWrapper.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlay
|
|
132
118
|
type: ViewChild,
|
133
119
|
args: ['overlayContainerWrapper', { static: true }]
|
134
120
|
}] }); })();
|
135
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFnaWMtb3ZlcmxheS1jb250YWluZXItd3JhcHBlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXIvc3JjL3VpL21hZ2ljLW1vZGFsL21hZ2ljLW92ZXJsYXktY29udGFpbmVyLXdyYXBwZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxLQUFLLEVBQ0wsTUFBTSxFQUNOLFlBQVksRUFDWixTQUFTLEVBRVQsd0JBQXdCLEVBQ3hCLFVBQVUsRUFDVixRQUFRLEVBQUUsaUJBQWlCLEVBQUUsUUFBUSxFQUN0QyxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUMzRSxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSw0Q0FBNEMsQ0FBQztBQ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vciArIFwid2luZG93IHdpbGwgbm90IHdvcmsgcHJvcGVybHkuXCI7XHJcbiAgICAgIGFsZXJ0KG1zZyk7XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICBzZXRWaWV3Q29udGFpbmVyUmVmKHZjUmVmOiBWaWV3Q29udGFpbmVyUmVmKXtcclxuICAgIHRoaXMub3ZlcmxheUNvbnRlbnRWaWV3Q29udGFpbmVyUmVmID0gdmNSZWY7XHJcbiAgfVxyXG5cclxuICBHZXRSb290RWxlbWVudCgpOiBIVE1MRWxlbWVudCB7XHJcbiAgICByZXR1cm4gdGhpcy5vdmVybGF5Q29udGFpbmVyV3JhcHBlckVsZW1lbnRSZWYubmF0aXZlRWxlbWVudDtcclxuICB9XHJcblxyXG4gIERldGVjdENoYW5nZXMoKVxyXG4gIHtcclxuICAgIHRoaXMuY2hhbmdlRGV0ZWN0b3JSZWYuZGV0ZWN0Q2hhbmdlcygpO1xyXG4gIH1cclxufVxyXG4iXX0=
|
@@ -9,7 +9,7 @@ const _c1 = ["modalForeground"];
|
|
9
9
|
function MagicOverlayContainer_button_2_Template(rf, ctx) { if (rf & 1) {
|
10
10
|
const _r5 = i0.ɵɵgetCurrentView();
|
11
11
|
i0.ɵɵelementStart(0, "button", 8);
|
12
|
-
i0.ɵɵlistener("click", function MagicOverlayContainer_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.OnClose(); });
|
12
|
+
i0.ɵɵlistener("click", function MagicOverlayContainer_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.OnClose()); });
|
13
13
|
i0.ɵɵtext(1, "X");
|
14
14
|
i0.ɵɵelementEnd();
|
15
15
|
} }
|
@@ -18,7 +18,7 @@ function MagicOverlayContainer_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
18
18
|
i0.ɵɵelementStart(0, "div", 9, 10);
|
19
19
|
i0.ɵɵtext(2);
|
20
20
|
i0.ɵɵelementStart(3, "button", 11);
|
21
|
-
i0.ɵɵlistener("click", function MagicOverlayContainer_div_5_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.OnClose(); });
|
21
|
+
i0.ɵɵlistener("click", function MagicOverlayContainer_div_5_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.OnClose()); });
|
22
22
|
i0.ɵɵtext(4, "X");
|
23
23
|
i0.ɵɵelementEnd()();
|
24
24
|
} if (rf & 2) {
|
@@ -123,7 +123,7 @@ MagicOverlayContainer.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlayContain
|
|
123
123
|
i0.ɵɵproperty("ngIf", ctx.getShowTitleBar());
|
124
124
|
i0.ɵɵadvance(1);
|
125
125
|
i0.ɵɵproperty("ngStyle", ctx.getClientAreaStyles());
|
126
|
-
} },
|
126
|
+
} }, dependencies: [i1.NgIf, i1.NgStyle, i2.MagicViewContainerRef], styles: [".modal-foreground[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#fff}.modal-background[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#000;opacity:.75}.modal-header[_ngcontent-%COMP%]{background-color:beige;border-bottom:2px solid red}"] });
|
127
127
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicOverlayContainer, [{
|
128
128
|
type: Component,
|
129
129
|
args: [{ selector: 'app-magic-overlay-container', template: `
|
@@ -156,4 +156,4 @@ MagicOverlayContainer.ɵcmp = i0.ɵɵdefineComponent({ type: MagicOverlayContain
|
|
156
156
|
}], onClose: [{
|
157
157
|
type: Output
|
158
158
|
}] }); })();
|
159
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFnaWMtb3ZlcmxheS1jb250YWluZXIuanMiLCJz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