@@ -251,7 +251,7 @@ return /******/ (function(modules) { // webpackBootstrap
251
251
/***/ function ( module , exports ) {
252
252
253
253
var path = 'bootstrap/fieldset.html' ;
254
- var html = "<fieldset ng-disabled=\"form.readonly\" class=\"schema-form-fieldset {{::form.htmlClass}}\">\r\n <legend ng-class=\"{'sr-only': !showTitle() }\">{{ form.title }}</legend>\r\n <div class=\"help-block\" ng-show=\"form.description\" ng-bind-html=\"form.description\"></div>\r\n</fieldset>\r\n" ;
254
+ var html = "<fieldset ng-disabled=\"form.readonly\" class=\"schema-form-fieldset {{::form.htmlClass}}\" sf-key-controller sf-parent-key=\"[{{form.key.join('][')}}]\" sf-index=\"{{$index}}\" >\r\n <legend ng-class=\"{'sr-only': !showTitle() }\">{{ form.title }}</legend>\r\n <div class=\"help-block\" ng-show=\"form.description\" ng-bind-html=\"form.description\"></div>\r\n</fieldset>\r\n" ;
255
255
window . angular . module ( 'ng' ) . run ( [ '$templateCache' , function ( c ) { c . put ( path , html ) } ] ) ;
256
256
module . exports = path ;
257
257
@@ -269,7 +269,7 @@ return /******/ (function(modules) { // webpackBootstrap
269
269
/***/ function ( module , exports ) {
270
270
271
271
var path = 'bootstrap/radio-buttons.html' ;
272
- var html = "<div class=\"form-group schema-form-radiobuttons {{::form.htmlClass}}\"\r\n ng-class=\"{'has-error': form.disableErrorState !== true && hasError(), 'has-success': form.disableSuccessState !== true && hasSuccess()}\">\r\n <div>\r\n <label class=\"control-label {{::form.labelHtmlClass}}\" ng-show=\"showTitle()\">{{form.title}}</label>\r\n </div>\r\n <div class=\"btn-group\">\r\n <label sf-field-model=\"replaceAll\" class=\"btn {{ (item.value === $$value$$) ? form.style.selected || 'btn-default' : form.style.unselected || 'btn-default'; }}\"\r\n ng-class=\"{ active: item.value === $$value$$ }\"\r\n ng-repeat=\"item in form.titleMap\">\r\n <input type=\"radio\"\r\n class=\"{{::form.fieldHtmlClass}}\"\r\n sf-changed=\"form\"\r\n style=\"display: none;\"\r\n ng-disabled=\"form.readonly\"\r\n sf-field-model\r\n schema-validate=\"form\"\r\n ng-value=\"item.value\"\r\n name=\"{{form.key.join('.')}}\">\r\n <span ng-bind-html=\"item.name\"></span>\r\n </label>\r\n </div>\r\n <div class=\"help-block\" sf-message=\"form.description\"></div>\r\n</div>\r\n" ;
272
+ var html = "<div class=\"form-group schema-form-radiobuttons {{::form.htmlClass}}\"\r\n ng-class=\"{'has-error': form.disableErrorState !== true && hasError(), 'has-success': form.disableSuccessState !== true && hasSuccess()}\">\r\n <div>\r\n <label class=\"control-label {{::form.labelHtmlClass}}\" ng-show=\"showTitle()\">{{form.title}}</label>\r\n </div>\r\n <div class=\"btn-group\">\r\n <label sf-field-model=\"replaceAll\" class=\"btn {{ (tm.value === $$value$$) ? form.style.selected || 'btn-default' : form.style.unselected || 'btn-default'; }}\"\r\n ng-class=\"{ active: tm.value === $$value$$ }\"\r\n ng-repeat=\"tm in form.titleMap\">\r\n <input type=\"radio\"\r\n class=\"{{::form.fieldHtmlClass}}\"\r\n sf-changed=\"form\"\r\n style=\"display: none;\"\r\n ng-disabled=\"form.readonly\"\r\n sf-field-model\r\n schema-validate=\"form\"\r\n ng-value=\"tm.value\"\r\n name=\"{{::fieldId(true, false)}}\">\r\n <span ng-bind-html=\"tm.name\"></span>\r\n </label>\r\n </div>\r\n <div class=\"help-block\" sf-message=\"form.description\"></div>\r\n</div>\r\n" ;
273
273
window . angular . module ( 'ng' ) . run ( [ '$templateCache' , function ( c ) { c . put ( path , html ) } ] ) ;
274
274
module . exports = path ;
275
275
@@ -278,7 +278,7 @@ return /******/ (function(modules) { // webpackBootstrap
278
278
/***/ function ( module , exports ) {
279
279
280
280
var path = 'bootstrap/radios-inline.html' ;
281
- var html = "<div class=\"form-group schema-form-radios-inline {{::form.htmlClass}}\"\r\n ng-class=\"{'has-error': form.disableErrorState !== true && hasError(), 'has-success': form.disableSuccessState !== true && hasSuccess()}\">\r\n <label class=\"control-label {{::form.labelHtmlClass}}\"\r\n ng-show=\"showTitle()\" sf-field-model\r\n schema-validate=\"form\" >{{form.title}}</label>\r\n <div>\r\n <label class=\"radio-inline\" ng-repeat=\"item in form.titleMap\" >\r\n <input type=\"radio\"\r\n class=\"{{::form.fieldHtmlClass}}\"\r\n sf-changed=\"form\"\r\n ng-disabled=\"form.readonly\"\r\n sf-field-model\r\n ng-value=\"item .value\"\r\n name=\"{{form.key.join('.' )}}\">\r\n <span ng-bind-html=\"item .name\"></span>\r\n </label>\r\n </div>\r\n <div class=\"help-block\" sf-message=\"form.description\"></div>\r\n</div>\r\n" ;
281
+ var html = "<div class=\"form-group schema-form-radios-inline {{::form.htmlClass}}\"\r\n ng-class=\"{'has-error': form.disableErrorState !== true && hasError(), 'has-success': form.disableSuccessState !== true && hasSuccess()}\">\r\n <label class=\"control-label {{::form.labelHtmlClass}}\"\r\n ng-show=\"showTitle()\" sf-field-model\r\n schema-validate=\"form\" >{{form.title}}</label>\r\n <div>\r\n <label class=\"radio-inline\" ng-repeat=\"tm in form.titleMap\" >\r\n <input type=\"radio\"\r\n class=\"{{::form.fieldHtmlClass}}\"\r\n sf-changed=\"form\"\r\n ng-disabled=\"form.readonly\"\r\n sf-field-model\r\n ng-value=\"tm .value\"\r\n name=\"{{::fieldId(true, false )}}\">\r\n <span ng-bind-html=\"tm .name\"></span>\r\n </label>\r\n </div>\r\n <div class=\"help-block\" sf-message=\"form.description\"></div>\r\n</div>\r\n" ;
282
282
window . angular . module ( 'ng' ) . run ( [ '$templateCache' , function ( c ) { c . put ( path , html ) } ] ) ;
283
283
module . exports = path ;
284
284
@@ -287,7 +287,7 @@ return /******/ (function(modules) { // webpackBootstrap
287
287
/***/ function ( module , exports ) {
288
288
289
289
var path = 'bootstrap/radios.html' ;
290
- var html = "<div class=\"form-group schema-form-radios {{::form.htmlClass}}\" ng-class=\"{'has-error': form.disableErrorState !== true && hasError(), 'has-success': form.disableSuccessState !== true && hasSuccess()}\">\r\n <label class=\"control-label {{::form.labelHtmlClass}}\"\r\n sf-field-model schema-validate=\"form\"\r\n ng-show=\"showTitle()\">{{form.title}}</label>\r\n <div class=\"radio\" ng-repeat=\"item in form.titleMap\">\r\n <label>\r\n <input type=\"radio\"\r\n class=\"{{::form.fieldHtmlClass}}\"\r\n sf-changed=\"form\"\r\n ng-disabled=\"form.readonly\"\r\n sf-field-model\r\n ng-value=\"item .value\"\r\n name=\"{{form.key.join('.' )}}\">\r\n <span ng-bind-html=\"item .name\"></span>\r\n </label>\r\n </div>\r\n <div class=\"help-block\" sf-message=\"form.description\"></div>\r\n</div>\r\n" ;
290
+ var html = "<div class=\"form-group schema-form-radios {{::form.htmlClass}}\" ng-class=\"{'has-error': form.disableErrorState !== true && hasError(), 'has-success': form.disableSuccessState !== true && hasSuccess()}\">\r\n <label class=\"control-label {{::form.labelHtmlClass}}\"\r\n sf-field-model schema-validate=\"form\"\r\n ng-show=\"showTitle()\">{{form.title}}</label>\r\n <div class=\"radio\" ng-repeat=\"tm in form.titleMap\">\r\n <label>\r\n <input type=\"radio\"\r\n class=\"{{::form.fieldHtmlClass}}\"\r\n sf-changed=\"form\"\r\n ng-disabled=\"form.readonly\"\r\n sf-field-model\r\n ng-value=\"tm .value\"\r\n name=\"{{::fieldId(true, false )}}\">\r\n <span ng-bind-html=\"tm .name\"></span>\r\n </label>\r\n </div>\r\n <div class=\"help-block\" sf-message=\"form.description\"></div>\r\n</div>\r\n" ;
291
291
window . angular . module ( 'ng' ) . run ( [ '$templateCache' , function ( c ) { c . put ( path , html ) } ] ) ;
292
292
module . exports = path ;
293
293
@@ -296,7 +296,7 @@ return /******/ (function(modules) { // webpackBootstrap
296
296
/***/ function ( module , exports ) {
297
297
298
298
var path = 'bootstrap/section.html' ;
299
- var html = "<div class=\"schema-form-section {{::form.htmlClass}}\"></div>\r\n" ;
299
+ var html = "<div class=\"schema-form-section {{::form.htmlClass}}\" sf-key-controller sf-parent-key=\"[{{form.key.join('][')}}]\" sf-index=\"{{$index}}\" ></div>\r\n" ;
300
300
window . angular . module ( 'ng' ) . run ( [ '$templateCache' , function ( c ) { c . put ( path , html ) } ] ) ;
301
301
module . exports = path ;
302
302
@@ -686,7 +686,7 @@ return /******/ (function(modules) { // webpackBootstrap
686
686
state . modelName = 'item' ;
687
687
}
688
688
689
- // Flag to the builder that where in an array.
689
+ // Flag to the builder that we're in an array.
690
690
// This is needed for compatabiliy if a "old" add-on is used that
691
691
// hasn't been transitioned to the new builder.
692
692
state . arrayCompatFlag = true ;
@@ -3779,17 +3779,19 @@ return /******/ (function(modules) { // webpackBootstrap
3779
3779
return {
3780
3780
scope : true ,
3781
3781
require : [ '^^sfNewArray' ] ,
3782
- link : function link ( scope , element , attrs , ctrl ) {
3783
- var currentKey = sfPath . parse ( attrs . sfParentKey ) ;
3784
- if ( currentKey . length > 1 ) currentKey = currentKey . splice ( - 1 ) ;
3782
+ link : {
3783
+ pre : function pre ( scope , element , attrs , ctrl ) {
3784
+ var currentKey = sfPath . parse ( attrs . sfParentKey ) ;
3785
+ if ( currentKey . length > 1 ) currentKey = currentKey . splice ( - 1 ) ;
3785
3786
3786
- scope . parentKey = scope . parentKey || [ ] ;
3787
- scope . parentKey = scope . parentKey . concat ( currentKey , Number ( attrs . sfIndex ) ) ;
3787
+ scope . parentKey = scope . parentKey || [ ] ;
3788
+ scope . parentKey = scope . parentKey . concat ( currentKey , Number ( attrs . sfIndex ) ) ;
3788
3789
3789
- scope . arrayIndex = Number ( attrs . sfIndex ) ;
3790
- scope . arrayIndices = scope . arrayIndices || [ ] ;
3791
- scope . arrayIndices = scope . arrayIndices . concat ( scope . arrayIndex ) ;
3792
- scope . $i = scope . arrayIndices ;
3790
+ scope . arrayIndex = Number ( attrs . sfIndex ) ;
3791
+ scope . arrayIndices = scope . arrayIndices || [ ] ;
3792
+ scope . arrayIndices = scope . arrayIndices . concat ( scope . arrayIndex ) ;
3793
+ scope . $i = scope . arrayIndices ;
3794
+ }
3793
3795
}
3794
3796
} ;
3795
3797
} ;
0 commit comments