|
1 | | -//! angular-formly version 6.23.7 built with ♥ by Astrism <[email protected]>, Kent C. Dodds <[email protected]> (ó ì_í)=óò=(ì_í ò) |
| 1 | +//! angular-formly version 6.24.22 built with ♥ by Astrism <[email protected]>, Kent C. Dodds <[email protected]> (ó ì_í)=óò=(ì_í ò) |
2 | 2 |
|
3 | 3 | (function webpackUniversalModuleDefinition(root, factory) { |
4 | 4 | if(typeof exports === 'object' && typeof module === 'object') |
@@ -147,7 +147,7 @@ return /******/ (function(modules) { // webpackBootstrap |
147 | 147 |
|
148 | 148 | ngModule.constant('formlyApiCheck', _providersFormlyApiCheck2['default']); |
149 | 149 | ngModule.constant('formlyErrorAndWarningsUrlPrefix', _otherDocsBaseUrl2['default']); |
150 | | - ngModule.constant('formlyVersion', ("6.23.7")); // <-- webpack variable |
| 150 | + ngModule.constant('formlyVersion', ("6.24.22")); // <-- webpack variable |
151 | 151 |
|
152 | 152 | ngModule.provider('formlyUsability', _providersFormlyUsability2['default']); |
153 | 153 | ngModule.provider('formlyConfig', _providersFormlyConfig2['default']); |
@@ -324,6 +324,7 @@ return /******/ (function(modules) { // webpackBootstrap |
324 | 324 | templateUrl: apiCheck.shape.ifNot(['type', 'template'], apiCheck.oneOfType([apiCheck.string, apiCheck.func])).optional, |
325 | 325 | key: apiCheck.oneOfType([apiCheck.string, apiCheck.number]).optional, |
326 | 326 | model: modelChecker.optional, |
| 327 | + originalModel: modelChecker.optional, |
327 | 328 | className: apiCheck.string.optional, |
328 | 329 | id: apiCheck.string.optional, |
329 | 330 | name: apiCheck.string.optional, |
@@ -353,6 +354,7 @@ return /******/ (function(modules) { // webpackBootstrap |
353 | 354 | noFormControl: apiCheck.bool.optional, |
354 | 355 | hide: apiCheck.bool.optional, |
355 | 356 | hideExpression: formlyExpression.optional, |
| 357 | + ngModelElAttrs: apiCheck.objectOf(apiCheck.string).optional, |
356 | 358 | ngModelAttrs: apiCheck.objectOf(apiCheck.shape({ |
357 | 359 | expression: apiCheck.shape.ifNot(['value', 'attribute', 'bound'], apiCheck.any).optional, |
358 | 360 | value: apiCheck.shape.ifNot('expression', apiCheck.any).optional, |
@@ -449,7 +451,7 @@ return /******/ (function(modules) { // webpackBootstrap |
449 | 451 | Object.defineProperty(exports, "__esModule", { |
450 | 452 | value: true |
451 | 453 | }); |
452 | | - exports["default"] = "https://github.com/formly-js/angular-formly/blob/" + ("6.23.7") + "/other/ERRORS_AND_WARNINGS.md#"; |
| 454 | + exports["default"] = "https://github.com/formly-js/angular-formly/blob/" + ("6.24.22") + "/other/ERRORS_AND_WARNINGS.md#"; |
453 | 455 | module.exports = exports["default"]; |
454 | 456 |
|
455 | 457 | /***/ }, |
@@ -1267,6 +1269,7 @@ return /******/ (function(modules) { // webpackBootstrap |
1267 | 1269 | scope: { |
1268 | 1270 | options: '=', |
1269 | 1271 | model: '=', |
| 1272 | + originalModel: '=?', |
1270 | 1273 | formId: '@', // TODO remove formId in a breaking release |
1271 | 1274 | index: '=?', |
1272 | 1275 | fields: '=?', |
@@ -1330,6 +1333,7 @@ return /******/ (function(modules) { // webpackBootstrap |
1330 | 1333 | function simplifyLife(options) { |
1331 | 1334 | // add a few empty objects (if they don't already exist) so you don't have to undefined check everywhere |
1332 | 1335 | formlyUtil.reverseDeepMerge(options, { |
| 1336 | + originalModel: options.model, |
1333 | 1337 | extras: {}, |
1334 | 1338 | data: {}, |
1335 | 1339 | templateOptions: {}, |
@@ -2045,7 +2049,7 @@ return /******/ (function(modules) { // webpackBootstrap |
2045 | 2049 | if (attrs.hasOwnProperty('isFieldGroup') && el.parent().parent().hasClass('formly')) { |
2046 | 2050 | parentFormAttributes = copyAttributes(el.parent().parent()[0].attributes); |
2047 | 2051 | } |
2048 | | - return '\n <' + rootEl + ' class="formly"\n name="' + getFormName() + '"\n role="form" ' + parentFormAttributes + '>\n <' + fieldRootEl + ' formly-field\n ng-repeat="field in fields ' + getTrackBy() + '"\n ' + getHideDirective() + '="!field.hide"\n class="formly-field"\n options="field"\n model="field.model || model"\n fields="fields"\n form="theFormlyForm"\n form-id="' + getFormName() + '"\n form-state="options.formState"\n form-options="options"\n index="$index">\n </' + fieldRootEl + '>\n <div ng-transclude class="' + getTranscludeClass() + '"></div>\n </' + rootEl + '>\n '; |
| 2052 | + return '\n <' + rootEl + ' class="formly"\n name="' + getFormName() + '"\n role="form" ' + parentFormAttributes + '>\n <' + fieldRootEl + ' formly-field\n ng-repeat="field in fields ' + getTrackBy() + '"\n ' + getHideDirective() + '="!field.hide"\n class="formly-field"\n options="field"\n model="field.model || model"\n original-model="model"\n fields="fields"\n form="theFormlyForm"\n form-id="' + getFormName() + '"\n form-state="options.formState"\n form-options="options"\n index="$index">\n </' + fieldRootEl + '>\n <div ng-transclude class="' + getTranscludeClass() + '"></div>\n </' + rootEl + '>\n '; |
2049 | 2053 |
|
2050 | 2054 | function getRootEl() { |
2051 | 2055 | return attrs.rootEl || 'ng-form'; |
@@ -2416,6 +2420,7 @@ return /******/ (function(modules) { // webpackBootstrap |
2416 | 2420 | addValidation(); |
2417 | 2421 | addModelOptions(); |
2418 | 2422 | addTemplateOptionsAttrs(); |
| 2423 | + addNgModelElAttrs(); |
2419 | 2424 |
|
2420 | 2425 | return node.innerHTML; |
2421 | 2426 |
|
@@ -2501,6 +2506,12 @@ return /******/ (function(modules) { // webpackBootstrap |
2501 | 2506 | } |
2502 | 2507 | }); |
2503 | 2508 | } |
| 2509 | + |
| 2510 | + function addNgModelElAttrs() { |
| 2511 | + _angularFix2['default'].forEach(options.ngModelElAttrs, function (val, name) { |
| 2512 | + addIfNotPresent(modelNodes, name, val); |
| 2513 | + }); |
| 2514 | + } |
2504 | 2515 | } |
2505 | 2516 |
|
2506 | 2517 | // Utility functions |
|
0 commit comments