@ngx-formly/core 5.10.32 → 5.11.1

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,5 +1,5 @@
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, NgZone, Attribute, Output, ViewChild, Renderer2, ElementRef, defineInjectable, ViewContainerRef, 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';
@@ -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 */
@@ -2282,7 +2303,7 @@ var FieldType = /** @class */ (function () {
2282
2303
  get: /**
2283
2304
  * @return {?}
2284
2305
  */
2285
- function () { return this.field.formControl; },
2306
+ function () { return (/** @type {?} */ (this.field.formControl)); },
2286
2307
  enumerable: true,
2287
2308
  configurable: true
2288
2309
  });
@@ -2366,16 +2387,6 @@ var FieldArrayType = /** @class */ (function (_super) {
2366
2387
  }
2367
2388
  return _this;
2368
2389
  }
2369
- Object.defineProperty(FieldArrayType.prototype, "formControl", {
2370
- get: /**
2371
- * @return {?}
2372
- */
2373
- function () {
2374
- return (/** @type {?} */ (this.field.formControl));
2375
- },
2376
- enumerable: true,
2377
- configurable: true
2378
- });
2379
2390
  /**
2380
2391
  * @param {?} field
2381
2392
  * @return {?}