@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.
- package/bundles/ngx-formly-core.umd.js +22 -10
- package/bundles/ngx-formly-core.umd.js.map +1 -1
- package/bundles/ngx-formly-core.umd.min.js +1 -1
- package/bundles/ngx-formly-core.umd.min.js.map +1 -1
- package/esm2015/lib/components/formly.attributes.js +15 -1
- package/esm2015/lib/core.js +1 -1
- package/esm2015/lib/templates/field-array.type.js +11 -7
- package/esm2015/lib/templates/field.type.js +18 -2
- package/esm5/lib/components/formly.attributes.js +22 -1
- package/esm5/lib/core.js +1 -1
- package/esm5/lib/templates/field-array.type.js +11 -11
- package/esm5/lib/templates/field.type.js +18 -2
- package/fesm2015/ngx-formly-core.js +16 -8
- package/fesm2015/ngx-formly-core.js.map +1 -1
- package/fesm5/ngx-formly-core.js +23 -12
- package/fesm5/ngx-formly-core.js.map +1 -1
- package/lib/components/formly.attributes.d.ts +1 -0
- package/lib/core.d.ts +2 -2
- package/lib/templates/field-array.type.d.ts +5 -2
- package/lib/templates/field.type.d.ts +9 -3
- package/ngx-formly-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2157,6 +2157,24 @@
|
|
|
2157
2157
|
this.to.blur(this.field, $event);
|
|
2158
2158
|
}
|
|
2159
2159
|
};
|
|
2160
|
+
// handle custom `change` event, for regular ones rely on DOM listener
|
|
2161
|
+
// handle custom `change` event, for regular ones rely on DOM listener
|
|
2162
|
+
/**
|
|
2163
|
+
* @param {?} $event
|
|
2164
|
+
* @return {?}
|
|
2165
|
+
*/
|
|
2166
|
+
FormlyAttributes.prototype.onHostChange =
|
|
2167
|
+
// handle custom `change` event, for regular ones rely on DOM listener
|
|
2168
|
+
/**
|
|
2169
|
+
* @param {?} $event
|
|
2170
|
+
* @return {?}
|
|
2171
|
+
*/
|
|
2172
|
+
function ($event) {
|
|
2173
|
+
if ($event instanceof Event) {
|
|
2174
|
+
return;
|
|
2175
|
+
}
|
|
2176
|
+
this.onChange($event);
|
|
2177
|
+
};
|
|
2160
2178
|
/**
|
|
2161
2179
|
* @param {?} $event
|
|
2162
2180
|
* @return {?}
|
|
@@ -2242,6 +2260,9 @@
|
|
|
2242
2260
|
FormlyAttributes.decorators = [
|
|
2243
2261
|
{ type: i0.Directive, args: [{
|
|
2244
2262
|
selector: '[formlyAttributes]',
|
|
2263
|
+
host: {
|
|
2264
|
+
'(change)': 'onHostChange($event)',
|
|
2265
|
+
},
|
|
2245
2266
|
},] }
|
|
2246
2267
|
];
|
|
2247
2268
|
/** @nocollapse */
|
|
@@ -2313,7 +2334,7 @@
|
|
|
2313
2334
|
Object.defineProperty(FieldType.prototype, "formControl", {
|
|
2314
2335
|
get: /**
|
|
2315
2336
|
* @return {?}
|
|
2316
|
-
*/ function () { return this.field.formControl; },
|
|
2337
|
+
*/ function () { return ( /** @type {?} */(this.field.formControl)); },
|
|
2317
2338
|
enumerable: true,
|
|
2318
2339
|
configurable: true
|
|
2319
2340
|
});
|
|
@@ -2392,15 +2413,6 @@
|
|
|
2392
2413
|
}
|
|
2393
2414
|
return _this;
|
|
2394
2415
|
}
|
|
2395
|
-
Object.defineProperty(FieldArrayType.prototype, "formControl", {
|
|
2396
|
-
get: /**
|
|
2397
|
-
* @return {?}
|
|
2398
|
-
*/ function () {
|
|
2399
|
-
return ( /** @type {?} */(this.field.formControl));
|
|
2400
|
-
},
|
|
2401
|
-
enumerable: true,
|
|
2402
|
-
configurable: true
|
|
2403
|
-
});
|
|
2404
2416
|
/**
|
|
2405
2417
|
* @param {?} field
|
|
2406
2418
|
* @return {?}
|