@magic-xpa/angular 4.901.0-dev491.314 → 4.901.0-dev491.317
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/src/services/table.magic.service.mjs +2 -2
- package/esm2020/src/services/task.magics.service.mjs +2 -5
- package/esm2020/src/ui/directives/magic/nocontrol.magic.directive.mjs +8 -6
- package/esm2020/src/ui/directives/magic.directive.mjs +10 -5
- package/fesm2015/magic-xpa-angular.mjs +15 -15
- package/fesm2015/magic-xpa-angular.mjs.map +1 -1
- package/fesm2020/magic-xpa-angular.mjs +15 -15
- package/fesm2020/magic-xpa-angular.mjs.map +1 -1
- package/package.json +3 -3
- package/src/services/table.magic.service.d.ts +1 -1
- package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +3 -2
- package/src/ui/directives/magic.directive.d.ts +4 -2
@@ -17,8 +17,8 @@ import { __decorate, __metadata } from 'tslib';
|
|
17
17
|
import * as i1$1 from '@angular/platform-browser';
|
18
18
|
import * as i1$2 from '@angular/common/http';
|
19
19
|
import { HttpClientModule } from '@angular/common/http';
|
20
|
+
import * as i2$1 from '@angular/cdk/platform';
|
20
21
|
import { NativeDateAdapter, MAT_DATE_LOCALE, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
|
21
|
-
import * as i1$3 from '@angular/cdk/platform';
|
22
22
|
|
23
23
|
class ControlMetadata {
|
24
24
|
constructor() {
|
@@ -1961,10 +1961,7 @@ class TaskMagicService {
|
|
1961
1961
|
return val;
|
1962
1962
|
}
|
1963
1963
|
case StorageAttribute.NUMERIC:
|
1964
|
-
|
1965
|
-
return val;
|
1966
|
-
else
|
1967
|
-
return (val != null) ? +val : null;
|
1964
|
+
return +val;
|
1968
1965
|
default:
|
1969
1966
|
return val;
|
1970
1967
|
}
|
@@ -2193,7 +2190,7 @@ class TableMagicService {
|
|
2193
2190
|
this.task.onScrollDown();
|
2194
2191
|
}
|
2195
2192
|
sortData(e) { }
|
2196
|
-
mgOnPaginateChange(e
|
2193
|
+
mgOnPaginateChange(e) { }
|
2197
2194
|
mgOptionChanged(e) { }
|
2198
2195
|
updateTableSize(size) {
|
2199
2196
|
if (size === 0) {
|
@@ -2795,11 +2792,12 @@ RowMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: RowMagicDirective, sele
|
|
2795
2792
|
}] }); })();
|
2796
2793
|
|
2797
2794
|
class MagicDirective {
|
2798
|
-
constructor(_task, element, renderer, vcRef, magicRow) {
|
2795
|
+
constructor(_task, element, renderer, vcRef, platform, magicRow) {
|
2799
2796
|
this._task = _task;
|
2800
2797
|
this.element = element;
|
2801
2798
|
this.renderer = renderer;
|
2802
2799
|
this.vcRef = vcRef;
|
2800
|
+
this.platform = platform;
|
2803
2801
|
this.magicRow = magicRow;
|
2804
2802
|
this.eventHandlers = {};
|
2805
2803
|
this.eventsOnlyVal = false;
|
@@ -2831,6 +2829,8 @@ class MagicDirective {
|
|
2831
2829
|
let fromButton = false;
|
2832
2830
|
if (this.htmlElement instanceof HTMLButtonElement)
|
2833
2831
|
fromButton = true;
|
2832
|
+
if (fromButton && (this.platform.IOS || this.platform.SAFARI))
|
2833
|
+
this.task.insertEvent(getGuiEventObj("focus", this.id, +this.rowId));
|
2834
2834
|
this.task.insertEvent(getGuiEventObj(event, this.id, +this.rowId, fromButton));
|
2835
2835
|
if (MagicDirective.noOfAutoCompleteBoxesOpened < 1)
|
2836
2836
|
e.cancelBubble = true;
|
@@ -2972,14 +2972,14 @@ class MagicDirective {
|
|
2972
2972
|
}
|
2973
2973
|
MagicDirective.opened = false;
|
2974
2974
|
MagicDirective.noOfAutoCompleteBoxesOpened = 0;
|
2975
|
-
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)); };
|
2975
|
+
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(i2$1.Platform), i0.ɵɵdirectiveInject(RowMagicDirective, 8)); };
|
2976
2976
|
MagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MagicDirective, selectors: [["", "magic", ""]], inputs: { magic: "magic", eventsOnly: "eventsOnly", rowId: "rowId" } });
|
2977
2977
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicDirective, [{
|
2978
2978
|
type: Directive,
|
2979
2979
|
args: [{
|
2980
2980
|
selector: "[magic]"
|
2981
2981
|
}]
|
2982
|
-
}], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: RowMagicDirective, decorators: [{
|
2982
|
+
}], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i2$1.Platform }, { type: RowMagicDirective, decorators: [{
|
2983
2983
|
type: Optional
|
2984
2984
|
}] }]; }, { magic: [{
|
2985
2985
|
type: Input,
|
@@ -2992,8 +2992,8 @@ MagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MagicDirective, selectors:
|
|
2992
2992
|
}] }); })();
|
2993
2993
|
|
2994
2994
|
class NoControlMagicDirective extends MagicDirective {
|
2995
|
-
constructor(_task, element, renderer, vcRef, magicRow) {
|
2996
|
-
super(_task, element, renderer, vcRef, magicRow);
|
2995
|
+
constructor(_task, element, renderer, vcRef, platform, magicRow) {
|
2996
|
+
super(_task, element, renderer, vcRef, platform, magicRow);
|
2997
2997
|
}
|
2998
2998
|
set magic(val) { this.id = val; this.selector = 'magicnc'; }
|
2999
2999
|
;
|
@@ -3157,14 +3157,14 @@ class NoControlMagicDirective extends MagicDirective {
|
|
3157
3157
|
}
|
3158
3158
|
}
|
3159
3159
|
}
|
3160
|
-
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)); };
|
3160
|
+
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(i2$1.Platform), i0.ɵɵdirectiveInject(RowMagicDirective, 8)); };
|
3161
3161
|
NoControlMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: NoControlMagicDirective, selectors: [["", "magicnc", ""]], inputs: { magic: ["magicnc", "magic"] }, features: [i0.ɵɵInheritDefinitionFeature] });
|
3162
3162
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NoControlMagicDirective, [{
|
3163
3163
|
type: Directive,
|
3164
3164
|
args: [{
|
3165
3165
|
selector: '[magicnc]'
|
3166
3166
|
}]
|
3167
|
-
}], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: RowMagicDirective, decorators: [{
|
3167
|
+
}], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i2$1.Platform }, { type: RowMagicDirective, decorators: [{
|
3168
3168
|
type: Optional
|
3169
3169
|
}] }]; }, { magic: [{
|
3170
3170
|
type: Input,
|
@@ -4431,11 +4431,11 @@ class MgDateAdapter extends NativeDateAdapter {
|
|
4431
4431
|
}
|
4432
4432
|
}
|
4433
4433
|
}
|
4434
|
-
MgDateAdapter.ɵfac = function MgDateAdapter_Factory(t) { return new (t || MgDateAdapter)(i0.ɵɵinject(
|
4434
|
+
MgDateAdapter.ɵfac = function MgDateAdapter_Factory(t) { return new (t || MgDateAdapter)(i0.ɵɵinject(i2$1.Platform), i0.ɵɵinject(TaskMagicService), i0.ɵɵinject(MAT_DATE_LOCALE)); };
|
4435
4435
|
MgDateAdapter.ɵprov = i0.ɵɵdefineInjectable({ token: MgDateAdapter, factory: MgDateAdapter.ɵfac });
|
4436
4436
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MgDateAdapter, [{
|
4437
4437
|
type: Injectable
|
4438
|
-
}], function () { return [{ type:
|
4438
|
+
}], function () { return [{ type: i2$1.Platform }, { type: TaskMagicService }, { type: undefined, decorators: [{
|
4439
4439
|
type: Inject,
|
4440
4440
|
args: [MAT_DATE_LOCALE]
|
4441
4441
|
}] }]; }, null); })();
|