@magic-xpa/angular 4.1100.0-dev4110.1 → 4.1100.0-dev4110.3

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.
@@ -18,9 +18,9 @@ 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
20
  import { maskitoTimeOptionsGenerator } from '@maskito/kit';
21
+ import * as i2$1 from '@angular/cdk/platform';
21
22
  import { MaskitoModule } from '@maskito/angular';
22
23
  import { NativeDateAdapter, MAT_DATE_LOCALE, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
23
- import * as i1$3 from '@angular/cdk/platform';
24
24
 
25
25
  class ControlMetadata {
26
26
  constructor() {
@@ -2759,11 +2759,12 @@ class MagicDirective {
2759
2759
  this.eventsOnlyVal = true;
2760
2760
  }
2761
2761
  ;
2762
- constructor(_task, element, renderer, vcRef, magicRow) {
2762
+ constructor(_task, element, renderer, vcRef, platform, magicRow) {
2763
2763
  this._task = _task;
2764
2764
  this.element = element;
2765
2765
  this.renderer = renderer;
2766
2766
  this.vcRef = vcRef;
2767
+ this.platform = platform;
2767
2768
  this.magicRow = magicRow;
2768
2769
  this.eventHandlers = {};
2769
2770
  this.eventsOnlyVal = false;
@@ -2785,6 +2786,8 @@ class MagicDirective {
2785
2786
  let fromButton = false;
2786
2787
  if (this.htmlElement instanceof HTMLButtonElement)
2787
2788
  fromButton = true;
2789
+ if (fromButton && (this.platform.IOS || this.platform.SAFARI))
2790
+ this.task.insertEvent(getGuiEventObj("focus", this.id, +this.rowId));
2788
2791
  this.task.insertEvent(getGuiEventObj(event, this.id, +this.rowId, fromButton));
2789
2792
  if (MagicDirective.noOfAutoCompleteBoxesOpened < 1)
2790
2793
  e.cancelBubble = true;
@@ -2926,14 +2929,14 @@ class MagicDirective {
2926
2929
  }
2927
2930
  MagicDirective.opened = false;
2928
2931
  MagicDirective.noOfAutoCompleteBoxesOpened = 0;
2929
- 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)); };
2932
+ 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)); };
2930
2933
  MagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MagicDirective, selectors: [["", "magic", ""]], inputs: { magic: "magic", eventsOnly: "eventsOnly", rowId: "rowId" } });
2931
2934
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicDirective, [{
2932
2935
  type: Directive,
2933
2936
  args: [{
2934
2937
  selector: "[magic]"
2935
2938
  }]
2936
- }], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: RowMagicDirective, decorators: [{
2939
+ }], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i2$1.Platform }, { type: RowMagicDirective, decorators: [{
2937
2940
  type: Optional
2938
2941
  }] }]; }, { magic: [{
2939
2942
  type: Input,
@@ -2948,8 +2951,8 @@ MagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MagicDirective, selectors:
2948
2951
  class NoControlMagicDirective extends MagicDirective {
2949
2952
  set magic(val) { this.id = val; this.selector = 'magicnc'; }
2950
2953
  ;
2951
- constructor(_task, element, renderer, vcRef, magicRow) {
2952
- super(_task, element, renderer, vcRef, magicRow);
2954
+ constructor(_task, element, renderer, vcRef, platform, magicRow) {
2955
+ super(_task, element, renderer, vcRef, platform, magicRow);
2953
2956
  }
2954
2957
  regEvents() {
2955
2958
  super.regEvents();
@@ -3111,14 +3114,14 @@ class NoControlMagicDirective extends MagicDirective {
3111
3114
  }
3112
3115
  }
3113
3116
  }
3114
- 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)); };
3117
+ 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)); };
3115
3118
  NoControlMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: NoControlMagicDirective, selectors: [["", "magicnc", ""]], inputs: { magic: ["magicnc", "magic"] }, features: [i0.ɵɵInheritDefinitionFeature] });
3116
3119
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NoControlMagicDirective, [{
3117
3120
  type: Directive,
3118
3121
  args: [{
3119
3122
  selector: '[magicnc]'
3120
3123
  }]
3121
- }], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: RowMagicDirective, decorators: [{
3124
+ }], function () { return [{ type: TaskMagicService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i2$1.Platform }, { type: RowMagicDirective, decorators: [{
3122
3125
  type: Optional
3123
3126
  }] }]; }, { magic: [{
3124
3127
  type: Input,
@@ -4555,11 +4558,11 @@ class MgDateAdapter extends NativeDateAdapter {
4555
4558
  }
4556
4559
  }
4557
4560
  }
4558
- MgDateAdapter.ɵfac = function MgDateAdapter_Factory(t) { return new (t || MgDateAdapter)(i0.ɵɵinject(i1$3.Platform), i0.ɵɵinject(TaskMagicService), i0.ɵɵinject(MAT_DATE_LOCALE)); };
4561
+ MgDateAdapter.ɵfac = function MgDateAdapter_Factory(t) { return new (t || MgDateAdapter)(i0.ɵɵinject(i2$1.Platform), i0.ɵɵinject(TaskMagicService), i0.ɵɵinject(MAT_DATE_LOCALE)); };
4559
4562
  MgDateAdapter.ɵprov = i0.ɵɵdefineInjectable({ token: MgDateAdapter, factory: MgDateAdapter.ɵfac });
4560
4563
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MgDateAdapter, [{
4561
4564
  type: Injectable
4562
- }], function () { return [{ type: i1$3.Platform }, { type: TaskMagicService }, { type: undefined, decorators: [{
4565
+ }], function () { return [{ type: i2$1.Platform }, { type: TaskMagicService }, { type: undefined, decorators: [{
4563
4566
  type: Inject,
4564
4567
  args: [MAT_DATE_LOCALE]
4565
4568
  }] }]; }, null); })();