1
1
/*!
2
2
* angular-schema-form
3
3
* @version 1.0.0-alpha.5
4
- * @date Wed, 26 Apr 2017 14:49:08 GMT
4
+ * @date Mon, 01 May 2017 08:39:39 GMT
5
5
* @link https://github.com/json-schema-form/angular-schema-form
6
6
* @license MIT
7
7
* Copyright (c) 2014-2017 JSON Schema Form
14
14
/******/ function __webpack_require__ ( moduleId ) {
15
15
/******/
16
16
/******/ // Check if module is in cache
17
- /******/ if ( installedModules [ moduleId ] )
17
+ /******/ if ( installedModules [ moduleId ] ) {
18
18
/******/ return installedModules [ moduleId ] . exports ;
19
- /******/
19
+ /******/ }
20
20
/******/ // Create a new module (and put it into the cache)
21
21
/******/ var module = installedModules [ moduleId ] = {
22
22
/******/ i : moduleId ,
@@ -2729,33 +2729,34 @@ module.exports = __webpack_require__(4);
2729
2729
/***/ } )
2730
2730
/******/ ] ) ;
2731
2731
//# sourceMappingURL=json-schema-form-core.js.map
2732
+
2732
2733
/* WEBPACK VAR INJECTION */ } . call ( exports , __webpack_require__ ( 2 ) , __webpack_require__ ( 19 ) . setImmediate ) )
2733
2734
2734
2735
/***/ } ) ,
2735
2736
/* 2 */
2736
2737
/***/ ( function ( module , exports ) {
2737
2738
2738
- var g ;
2739
-
2740
- // This works in non-strict mode
2741
- g = ( function ( ) {
2742
- return this ;
2743
- } ) ( ) ;
2744
-
2745
- try {
2746
- // This works if eval is allowed (see CSP)
2747
- g = g || Function ( "return this" ) ( ) || ( 1 , eval ) ( "this" ) ;
2748
- } catch ( e ) {
2749
- // This works if the window reference is available
2750
- if ( typeof window === "object" )
2751
- g = window ;
2752
- }
2753
-
2754
- // g can still be undefined, but nothing to do about it...
2755
- // We return undefined, instead of nothing here, so it's
2756
- // easier to handle this case. if(!global) { ...}
2757
-
2758
- module . exports = g ;
2739
+ var g ;
2740
+
2741
+ // This works in non-strict mode
2742
+ g = ( function ( ) {
2743
+ return this ;
2744
+ } ) ( ) ;
2745
+
2746
+ try {
2747
+ // This works if eval is allowed (see CSP)
2748
+ g = g || Function ( "return this" ) ( ) || ( 1 , eval ) ( "this" ) ;
2749
+ } catch ( e ) {
2750
+ // This works if the window reference is available
2751
+ if ( typeof window === "object" )
2752
+ g = window ;
2753
+ }
2754
+
2755
+ // g can still be undefined, but nothing to do about it...
2756
+ // We return undefined, instead of nothing here, so it's
2757
+ // easier to handle this case. if(!global) { ...}
2758
+
2759
+ module . exports = g ;
2759
2760
2760
2761
2761
2762
/***/ } ) ,
@@ -2842,7 +2843,7 @@ __WEBPACK_IMPORTED_MODULE_1_angular___default.a.module('schemaForm', deps)
2842
2843
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_angular___default = __webpack_require__ . n ( __WEBPACK_IMPORTED_MODULE_0_angular__ ) ;
2843
2844
2844
2845
2845
- /* harmony default export */ __webpack_exports__ [ "a" ] = function ( sfValidator , $parse , sfSelect , $interpolate ) {
2846
+ /* harmony default export */ __webpack_exports__ [ "a" ] = ( function ( sfValidator , $parse , sfSelect , $interpolate ) {
2846
2847
return {
2847
2848
restrict : 'A' ,
2848
2849
scope : false ,
@@ -3032,7 +3033,7 @@ __WEBPACK_IMPORTED_MODULE_1_angular___default.a.module('schemaForm', deps)
3032
3033
} ;
3033
3034
}
3034
3035
} ;
3035
- } ;
3036
+ } ) ;
3036
3037
3037
3038
/***/ } ) ,
3038
3039
/* 6 */
@@ -3048,7 +3049,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3048
3049
/**
3049
3050
* Directive that handles the model arrays
3050
3051
*/
3051
- /* harmony default export */ __webpack_exports__ [ "a" ] = function ( sfSelect , sfPath , schemaForm ) {
3052
+ /* harmony default export */ __webpack_exports__ [ "a" ] = ( function ( sfSelect , sfPath , schemaForm ) {
3052
3053
return {
3053
3054
scope : true ,
3054
3055
controller : [ '$scope' , function SFArrayController ( $scope ) {
@@ -3279,7 +3280,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3279
3280
} ;
3280
3281
}
3281
3282
} ;
3282
- } ;
3283
+ } ) ;
3283
3284
3284
3285
/***/ } ) ,
3285
3286
/* 7 */
@@ -3297,7 +3298,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3297
3298
* Takes the form definition as argument.
3298
3299
* If the form definition has a "onChange" defined as either a function or
3299
3300
*/
3300
- /* harmony default export */ __webpack_exports__ [ "a" ] = function ( ) {
3301
+ /* harmony default export */ __webpack_exports__ [ "a" ] = ( function ( ) {
3301
3302
return {
3302
3303
require : 'ngModel' ,
3303
3304
restrict : 'AC' ,
@@ -3325,7 +3326,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3325
3326
}
3326
3327
}
3327
3328
} ;
3328
- } ;
3329
+ } ) ;
3329
3330
3330
3331
/***/ } ) ,
3331
3332
/* 8 */
@@ -3338,7 +3339,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3338
3339
3339
3340
3340
3341
3341
- /* harmony default export */ __webpack_exports__ [ "a" ] = function ( $parse , $compile , $http , $templateCache , $interpolate , $q , sfErrorMessage , sfPath , sfSelect ) {
3342
+ /* harmony default export */ __webpack_exports__ [ "a" ] = ( function ( $parse , $compile , $http , $templateCache , $interpolate , $q , sfErrorMessage , sfPath , sfSelect ) {
3342
3343
3343
3344
var keyFormat = {
3344
3345
COMPLETE : '*' ,
@@ -3383,17 +3384,17 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3383
3384
if ( scope . completeKey !== scope . form . key ) {
3384
3385
if ( typeof scope . $index === 'number' ) {
3385
3386
key = key . concat ( scope . $index ) ;
3386
- } ;
3387
+ }
3387
3388
3388
3389
if ( scope . form . key && scope . form . key . length ) {
3389
3390
if ( typeof key [ key . length - 1 ] === 'number' && scope . form . key . length >= 1 ) {
3390
3391
var trim = scope . form . key . length - key . length ;
3391
- scope . completeKey = key . concat ( scope . form . key . slice ( - trim ) ) ;
3392
+ scope . completeKey = trim > 0 ? key . concat ( scope . form . key . slice ( - trim ) ) : key ;
3392
3393
} else {
3393
3394
scope . completeKey = scope . form . key . slice ( ) ;
3394
- } ;
3395
- } ;
3396
- } ;
3395
+ }
3396
+ }
3397
+ }
3397
3398
3398
3399
// If there is no key then there's nothing to return
3399
3400
if ( ! Array . isArray ( scope . completeKey ) ) {
@@ -3659,7 +3660,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3659
3660
}
3660
3661
}
3661
3662
} ;
3662
- } ;
3663
+ } ) ;
3663
3664
3664
3665
/***/ } ) ,
3665
3666
/* 9 */
@@ -3669,7 +3670,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3669
3670
/**
3670
3671
* Directive that handles keys and array indexes
3671
3672
*/
3672
- /* harmony default export */ __webpack_exports__ [ "a" ] = function ( schemaForm , sfPath ) {
3673
+ /* harmony default export */ __webpack_exports__ [ "a" ] = ( function ( schemaForm , sfPath ) {
3673
3674
return {
3674
3675
scope : true ,
3675
3676
require : [ '?^^sfNewArray' ] ,
@@ -3698,7 +3699,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3698
3699
}
3699
3700
}
3700
3701
} ;
3701
- } ; ;
3702
+ } ) ; ;
3702
3703
3703
3704
/***/ } ) ,
3704
3705
/* 10 */
@@ -3709,7 +3710,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3709
3710
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_angular___default = __webpack_require__ . n ( __WEBPACK_IMPORTED_MODULE_0_angular__ ) ;
3710
3711
3711
3712
3712
- /* harmony default export */ __webpack_exports__ [ "a" ] = function ( $injector , sfErrorMessage ) {
3713
+ /* harmony default export */ __webpack_exports__ [ "a" ] = ( function ( $injector , sfErrorMessage ) {
3713
3714
3714
3715
//Inject sanitizer if it exists
3715
3716
var $sanitize = $injector . has ( '$sanitize' ) ? $injector . get ( '$sanitize' ) : function ( html ) {
@@ -3802,7 +3803,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3802
3803
} ) ;
3803
3804
}
3804
3805
} ;
3805
- } ;
3806
+ } ) ;
3806
3807
3807
3808
/***/ } ) ,
3808
3809
/* 11 */
@@ -3818,7 +3819,7 @@ FIXME: real documentation
3818
3819
<form sf-form="form" sf-schema="schema" sf-decorator="foobar"></form>
3819
3820
*/
3820
3821
3821
- /* harmony default export */ __webpack_exports__ [ "a" ] = function ( $compile , $http , $templateCache , $q , schemaForm , schemaFormDecorators , sfSelect , sfPath , sfBuilder ) {
3822
+ /* harmony default export */ __webpack_exports__ [ "a" ] = ( function ( $compile , $http , $templateCache , $q , schemaForm , schemaFormDecorators , sfSelect , sfPath , sfBuilder ) {
3822
3823
3823
3824
return {
3824
3825
scope : {
@@ -4032,7 +4033,7 @@ FIXME: real documentation
4032
4033
} ;
4033
4034
}
4034
4035
} ;
4035
- } ;
4036
+ } ) ;
4036
4037
4037
4038
/***/ } ) ,
4038
4039
/* 12 */
@@ -4043,7 +4044,7 @@ FIXME: real documentation
4043
4044
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_angular___default = __webpack_require__ . n ( __WEBPACK_IMPORTED_MODULE_0_angular__ ) ;
4044
4045
4045
4046
4046
- /* harmony default export */ __webpack_exports__ [ "a" ] = function ( $compileProvider , sfPathProvider ) {
4047
+ /* harmony default export */ __webpack_exports__ [ "a" ] = ( function ( $compileProvider , sfPathProvider ) {
4047
4048
var defaultDecorator = '' ;
4048
4049
var decorators = { } ;
4049
4050
@@ -4463,11 +4464,11 @@ FIXME: real documentation
4463
4464
* @param {string } name directive name (CamelCased)
4464
4465
* @param {Object } fields, an object that maps "type" => `{ template, builder, replace}`.
4465
4466
attributes `builder` and `replace` are optional, and replace defaults to true.
4466
- `template` should be the key of the template to load and it should be pre-loaded
4467
+ `template` should be the key of the template to load and it should be pre-loaded
4467
4468
in `$templateCache`.
4468
- `builder` can be a function or an array of functions. They will be called in
4469
+ `builder` can be a function or an array of functions. They will be called in
4469
4470
the order they are supplied.
4470
- `replace` (DEPRECATED) is for backwards compatability. If false the builder
4471
+ `replace` (DEPRECATED) is for backwards compatability. If false the builder
4471
4472
will use the "old" way of building that form field using a <sf-decorator>
4472
4473
directive.
4473
4474
*/
@@ -4575,7 +4576,7 @@ FIXME: real documentation
4575
4576
4576
4577
//Create a default directive
4577
4578
createDirective ( 'sfDecorator' ) ;
4578
- } ; ;
4579
+ } ) ; ;
4579
4580
4580
4581
/***/ } ) ,
4581
4582
/* 13 */
@@ -4593,7 +4594,7 @@ FIXME: real documentation
4593
4594
/**
4594
4595
* Schema form service.
4595
4596
*/
4596
- /* harmony default export */ __webpack_exports__ [ "a" ] = function ( ) {
4597
+ /* harmony default export */ __webpack_exports__ [ "a" ] = ( function ( ) {
4597
4598
var postProcessFn = function postProcessFn ( form ) {
4598
4599
return form ;
4599
4600
} ;
@@ -4714,7 +4715,7 @@ FIXME: real documentation
4714
4715
4715
4716
return service ;
4716
4717
} ;
4717
- } ;
4718
+ } ) ;
4718
4719
4719
4720
/***/ } ) ,
4720
4721
/* 14 */
@@ -4723,7 +4724,7 @@ FIXME: real documentation
4723
4724
"use strict" ;
4724
4725
4725
4726
// FIXME: type template (using custom builder)
4726
- /* harmony default export */ __webpack_exports__ [ "a" ] = function ( sfPathProvider ) {
4727
+ /* harmony default export */ __webpack_exports__ [ "a" ] = ( function ( sfPathProvider ) {
4727
4728
4728
4729
var SNAKE_CASE_REGEXP = / [ A - Z ] / g;
4729
4730
var snakeCase = function snakeCase ( name , separator ) {
@@ -5042,7 +5043,7 @@ FIXME: real documentation
5042
5043
internalBuild : _build
5043
5044
} ;
5044
5045
} ] ;
5045
- } ;
5046
+ } ) ;
5046
5047
5047
5048
/***/ } ) ,
5048
5049
/* 15 */
@@ -5053,7 +5054,7 @@ FIXME: real documentation
5053
5054
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_angular___default = __webpack_require__ . n ( __WEBPACK_IMPORTED_MODULE_0_angular__ ) ;
5054
5055
5055
5056
5056
- /* harmony default export */ __webpack_exports__ [ "a" ] = function ( ) {
5057
+ /* harmony default export */ __webpack_exports__ [ "a" ] = ( function ( ) {
5057
5058
5058
5059
// The codes are tv4 error codes.
5059
5060
// Not all of these can actually happen in a field, but for
@@ -5179,7 +5180,7 @@ FIXME: real documentation
5179
5180
5180
5181
return service ;
5181
5182
} ] ;
5182
- } ;
5183
+ } ) ;
5183
5184
5184
5185
/***/ } ) ,
5185
5186
/* 16 */
@@ -5219,7 +5220,7 @@ var sfPathProviderClass = function () {
5219
5220
return sfPathProviderClass ;
5220
5221
} ( ) ;
5221
5222
5222
- /* harmony default export */ __webpack_exports__ [ "a" ] = sfPathProviderClass ;
5223
+ /* harmony default export */ __webpack_exports__ [ "a" ] = ( sfPathProviderClass ) ;
5223
5224
5224
5225
/***/ } ) ,
5225
5226
/* 17 */
0 commit comments