1
- //! angular-formly version 6.22 .0 built with ♥ by Astrism <[email protected] >, Kent C. Dodds <[email protected] > (ó ì_í)=óò=(ì_í ò)
1
+ //! angular-formly version 6.23 .0 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.22 .0" ) ) ; // <-- webpack variable
150
+ ngModule . constant ( 'formlyVersion' , ( "6.23 .0" ) ) ; // <-- webpack variable
151
151
152
152
ngModule . provider ( 'formlyUsability' , _providersFormlyUsability2 [ 'default' ] ) ;
153
153
ngModule . provider ( 'formlyConfig' , _providersFormlyConfig2 [ 'default' ] ) ;
@@ -448,7 +448,7 @@ return /******/ (function(modules) { // webpackBootstrap
448
448
Object . defineProperty ( exports , "__esModule" , {
449
449
value : true
450
450
} ) ;
451
- exports [ "default" ] = "https://github.com/formly-js/angular-formly/blob/" + ( "6.22 .0" ) + "/other/ERRORS_AND_WARNINGS.md#" ;
451
+ exports [ "default" ] = "https://github.com/formly-js/angular-formly/blob/" + ( "6.23 .0" ) + "/other/ERRORS_AND_WARNINGS.md#" ;
452
452
module . exports = exports [ "default" ] ;
453
453
454
454
/***/ } ,
@@ -1137,13 +1137,15 @@ return /******/ (function(modules) { // webpackBootstrap
1137
1137
var isPossiblyAsync = ! _angularFix2 [ 'default' ] . isString ( validator ) ;
1138
1138
var validatorCollection = isPossiblyAsync || isAsync ? '$asyncValidators' : '$validators' ;
1139
1139
1140
+ // UPDATE IN 7.0.0
1140
1141
// this is temporary until we can have a breaking change. Allow people to get the wins of the explicitAsync api
1141
1142
if ( formlyConfig . extras . explicitAsync && ! isAsync ) {
1142
1143
validatorCollection = '$validators' ;
1143
1144
}
1144
1145
1145
1146
ctrl [ validatorCollection ] [ name ] = function evalValidity ( modelValue , viewValue ) {
1146
1147
var value = formlyUtil . formlyEval ( scope , validator , modelValue , viewValue ) ;
1148
+ // UPDATE IN 7.0.0
1147
1149
// In the next breaking change, this code should simply return the value
1148
1150
if ( isAsync ) {
1149
1151
return value ;
@@ -1164,6 +1166,7 @@ return /******/ (function(modules) { // webpackBootstrap
1164
1166
var inFlightValidator = undefined ;
1165
1167
ctrl . $parsers . unshift ( function evalValidityOfParser ( viewValue ) {
1166
1168
var isValid = formlyUtil . formlyEval ( scope , validator , ctrl . $modelValue , viewValue ) ;
1169
+ // UPDATE IN 7.0.0
1167
1170
// In the next breaking change, rather than checking for isPromiseLike, it should just check for isAsync.
1168
1171
1169
1172
if ( isAsync || isPromiseLike ( isValid ) ) {
@@ -1879,11 +1882,11 @@ return /******/ (function(modules) { // webpackBootstrap
1879
1882
}
1880
1883
1881
1884
function runApiCheckForType ( apiCheck , apiCheckInstance , apiCheckFunction , apiCheckOptions , options ) {
1882
- /* eslint complexity:[2, 8 ] */
1885
+ /* eslint complexity:[2, 9 ] */
1883
1886
if ( ! apiCheck ) {
1884
1887
return ;
1885
1888
}
1886
- var instance = apiCheckInstance || formlyApiCheck ;
1889
+ var instance = apiCheckInstance || formlyConfig . extras . apiCheckInstance || formlyApiCheck ;
1887
1890
if ( instance . config . disabled || _apiCheck2 [ 'default' ] . globalConfig . disabled ) {
1888
1891
return ;
1889
1892
}
@@ -2349,22 +2352,21 @@ return /******/ (function(modules) { // webpackBootstrap
2349
2352
exports [ 'default' ] = addFormlyNgModelAttrsManipulator ;
2350
2353
2351
2354
// @ngInject
2352
- function addFormlyNgModelAttrsManipulator ( formlyConfig , $interpolate ) {
2355
+ function addFormlyNgModelAttrsManipulator ( formlyConfig , $interpolate , formlyWarn ) {
2353
2356
if ( formlyConfig . extras . disableNgModelAttrsManipulator ) {
2354
2357
return ;
2355
2358
}
2356
2359
formlyConfig . templateManipulators . preWrapper . push ( ngModelAttrsManipulator ) ;
2357
2360
2358
2361
function ngModelAttrsManipulator ( template , options , scope ) {
2359
2362
var node = document . createElement ( 'div' ) ;
2360
- var data = options . data ;
2361
- if ( data . skipNgModelAttrsManipulator === true ) {
2363
+ var skip = getSkip ( options ) ;
2364
+ if ( skip === true ) {
2362
2365
return template ;
2363
2366
}
2364
-
2365
2367
node . innerHTML = template ;
2366
2368
2367
- var modelNodes = getNgModelNodes ( node , data . skipNgModelAttrsManipulator ) ;
2369
+ var modelNodes = getNgModelNodes ( node , skip ) ;
2368
2370
if ( ! modelNodes || ! modelNodes . length ) {
2369
2371
return template ;
2370
2372
}
@@ -2470,6 +2472,18 @@ return /******/ (function(modules) { // webpackBootstrap
2470
2472
return node . querySelectorAll ( query ) ;
2471
2473
}
2472
2474
2475
+ function getSkip ( options ) {
2476
+ // UPDATE IN 7.0.0
2477
+ var skip = options . extras && options . extras . skipNgModelAttrsManipulator ;
2478
+ if ( ! _angularFix2 [ 'default' ] . isDefined ( skip ) ) {
2479
+ skip = options . data && options . data . skipNgModelAttrsManipulator ;
2480
+ if ( _angularFix2 [ 'default' ] . isDefined ( skip ) ) {
2481
+ formlyWarn ( 'skipngmodelattrsmanipulator-moved' , 'The skipNgModelAttrsManipulator property has been moved from the `data` property to the `extras` property' , options ) ;
2482
+ }
2483
+ }
2484
+ return skip ;
2485
+ }
2486
+
2473
2487
function getBuiltInAttributes ( ) {
2474
2488
var ngModelAttributes = {
2475
2489
focus : {
@@ -2522,7 +2536,7 @@ return /******/ (function(modules) { // webpackBootstrap
2522
2536
} ) ;
2523
2537
}
2524
2538
}
2525
- addFormlyNgModelAttrsManipulator . $inject = [ "formlyConfig" , "$interpolate" ] ;
2539
+ addFormlyNgModelAttrsManipulator . $inject = [ "formlyConfig" , "$interpolate" , "formlyWarn" ] ;
2526
2540
module . exports = exports [ 'default' ] ;
2527
2541
2528
2542
/***/ } ,
0 commit comments