@ngx-formly/core 5.10.32 → 5.10.33

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.
@@ -1,10 +1,10 @@
1
1
  import { DOCUMENT, CommonModule } from '@angular/common';
2
- import { TemplateRef, Injectable, InjectionToken, NgModule, ANALYZE_FOR_ENTRY_COMPONENTS, Inject, Optional, Component, Input, ChangeDetectionStrategy, ComponentFactoryResolver, Injector, ChangeDetectorRef, Directive, EventEmitter, NgZone, Attribute, Output, ViewChild, Renderer2, ElementRef, ViewContainerRef, defineInjectable, inject, INJECTOR } from '@angular/core';
2
+ import { TemplateRef, Injectable, InjectionToken, NgModule, ANALYZE_FOR_ENTRY_COMPONENTS, Inject, Optional, Component, Input, ChangeDetectionStrategy, ComponentFactoryResolver, Injector, ChangeDetectorRef, Directive, EventEmitter, Renderer2, ElementRef, Attribute, Output, ViewChild, ViewContainerRef, NgZone, defineInjectable, inject, INJECTOR } from '@angular/core';
3
3
  import { DomSanitizer } from '@angular/platform-browser';
4
4
  import { debounceTime, switchMap, distinctUntilChanged, take, startWith, filter, map } from 'rxjs/operators';
5
5
  import { AbstractControl, FormArray, FormGroup, FormControl, FormGroupDirective, Validators } from '@angular/forms';
6
6
  import { isObservable, Subject, of, merge, Observable } from 'rxjs';
7
- import { __extends, __assign, __spread, __rest, __values, __read } from 'tslib';
7
+ import { __extends, __assign, __spread, __rest, __read, __values } from 'tslib';
8
8
 
9
9
  /**
10
10
  * @fileoverview added by tsickle
@@ -2120,6 +2120,24 @@ var FormlyAttributes = /** @class */ (function () {
2120
2120
  this.to.blur(this.field, $event);
2121
2121
  }
2122
2122
  };
2123
+ // handle custom `change` event, for regular ones rely on DOM listener
2124
+ // handle custom `change` event, for regular ones rely on DOM listener
2125
+ /**
2126
+ * @param {?} $event
2127
+ * @return {?}
2128
+ */
2129
+ FormlyAttributes.prototype.onHostChange =
2130
+ // handle custom `change` event, for regular ones rely on DOM listener
2131
+ /**
2132
+ * @param {?} $event
2133
+ * @return {?}
2134
+ */
2135
+ function ($event) {
2136
+ if ($event instanceof Event) {
2137
+ return;
2138
+ }
2139
+ this.onChange($event);
2140
+ };
2123
2141
  /**
2124
2142
  * @param {?} $event
2125
2143
  * @return {?}
@@ -2205,6 +2223,9 @@ var FormlyAttributes = /** @class */ (function () {
2205
2223
  FormlyAttributes.decorators = [
2206
2224
  { type: Directive, args: [{
2207
2225
  selector: '[formlyAttributes]',
2226
+ host: {
2227
+ '(change)': 'onHostChange($event)',
2228
+ },
2208
2229
  },] }
2209
2230
  ];
2210
2231
  /** @nocollapse */