Skip to content

Commit e188352

Browse files
committed
Recompile assets and bump version
1 parent f4baeef commit e188352

File tree

2 files changed

+43
-32
lines changed

2 files changed

+43
-32
lines changed

assets/js/build-min.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,16 @@ if(controls===false){$.oc.flashMsg({'text':$.oc.builder.formbuilder.domToPropert
227227
return}
228228
var data={controls:controls}
229229
$target.request('onModelFormSave',{data:data}).done(this.proxy(this.saveFormDone))}
230+
ModelForm.prototype.cmdAddDatabaseFields=function(ev){var $target=$(ev.currentTarget)
231+
var $placeholder=this.getMasterTabsActivePane().find('.builder-control-list .control.placeholder:first')[0]
232+
var fields=$target.find('.control-table').data('oc.table').dataSource.data.filter(function(column){return column.add}).reverse()
233+
$target.closest('.control-popup').data('oc.popup').hide()
234+
$.oc.stripeLoadIndicator.show()
235+
function addField(field){return function(){var defer=$.Deferred()
236+
$.oc.builder.formbuilder.controller.addControlToPlaceholder($placeholder,field.type,field.label?field.label:field.column,false,field.column).complete(function(){defer.resolve()})
237+
return defer.promise()};}
238+
var allFields=$.when({})
239+
$.each(fields,function(index,field){allFields=allFields.then(addField(field))});$.when(allFields).always($.oc.builder.indexController.hideStripeIndicatorProxy)}
230240
ModelForm.prototype.cmdOpenForm=function(ev){var form=$(ev.currentTarget).data('form'),model=$(ev.currentTarget).data('modelClass')
231241
this.indexController.openOrLoadMasterTab($(ev.target),'onModelFormCreateOrOpen',this.makeTabId(model+'-'+form),{file_name:form,model_class:model})}
232242
ModelForm.prototype.cmdDeleteForm=function(ev){var $target=$(ev.currentTarget)

updates/version.yaml

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
1.0.1: Initialize plugin.
2-
1.0.2: Fixes the problem with selecting a plugin. Minor localization corrections. Configuration files in the list and form behaviors are now autocomplete.
3-
1.0.3: Improved handling of the enum data type.
4-
1.0.4: Added user permissions to work with the Builder.
5-
1.0.5: Fixed permissions registration.
6-
1.0.6: Fixed front-end record ordering in the Record List component.
7-
1.0.7: Builder settings are now protected with user permissions. The database table column list is scrollable now. Minor code cleanup.
8-
1.0.8: Added the Reorder Controller behavior.
9-
1.0.9: Minor API and UI updates.
10-
1.0.10: Minor styling update.
11-
1.0.11: Fixed a bug where clicking placeholder in a repeater would open Inspector. Fixed a problem with saving forms with repeaters in tabs. Minor style fix.
12-
1.0.12: Added support for the Trigger property to the Media Finder widget configuration. Names of form fields and list columns definition files can now contain underscores.
13-
1.0.13: Minor styling fix on the database editor.
14-
1.0.14: Added support for published_at timestamp field
15-
1.0.15: Fixed a bug where saving a localization string in Inspector could cause a JavaScript error. Added support for Timestamps and Soft Deleting for new models.
16-
1.0.16: Fixed a bug when saving a form with the Repeater widget in a tab could create invalid fields in the form's outside area. Added a check that prevents creating localization strings inside other existing strings.
17-
1.0.17: Added support Trigger attribute support for RecordFinder and Repeater form widgets.
18-
1.0.18: Fixes a bug where '::class' notations in a model class definition could prevent the model from appearing in the Builder model list. Added emptyOption property support to the dropdown form control.
19-
1.0.19: Added a feature allowing to add all database columns to a list definition. Added max length validation for database table and column names.
20-
1.0.20: Fixes a bug where form the builder could trigger the "current.hasAttribute is not a function" error.
21-
1.0.21: Back-end navigation sort order updated.
22-
1.0.22: Added scopeValue property to the RecordList component.
23-
1.0.23: Added support for balloon-selector field type, added Brazilian Portuguese translation, fixed some bugs
24-
1.0.24: Added support for tag list field type, added read only toggle for fields. Prevent plugins from using reserved PHP keywords for class names and namespaces
25-
1.0.25: Allow editing of migration code in the "Migration" popup when saving changes in the database editor.
26-
1.0.26: Allow special default values for columns and added new "Add ID column" button to database editor.
27-
1.0.27: Added ability to use 'scope' in a form relation field, added ability to change the sort order of versions and added additional properties for repeater widget in form builder. Added Polish translation.
28-
1.0.28: Fixes support for PHP 8
29-
1.0.29: Disable touch device detection
30-
1.0.30: Minor styling improvements
31-
1.0.31: Added support for more rich editor and file upload properties
32-
1.0.32: Minor styling improvements
1+
v1.0.1: Initialize plugin.
2+
v1.0.2: Fixes the problem with selecting a plugin. Minor localization corrections. Configuration files in the list and form behaviors are now autocomplete.
3+
v1.0.3: Improved handling of the enum data type.
4+
v1.0.4: Added user permissions to work with the Builder.
5+
v1.0.5: Fixed permissions registration.
6+
v1.0.6: Fixed front-end record ordering in the Record List component.
7+
v1.0.7: Builder settings are now protected with user permissions. The database table column list is scrollable now. Minor code cleanup.
8+
v1.0.8: Added the Reorder Controller behavior.
9+
v1.0.9: Minor API and UI updates.
10+
v1.0.10: Minor styling update.
11+
v1.0.11: Fixed a bug where clicking placeholder in a repeater would open Inspector. Fixed a problem with saving forms with repeaters in tabs. Minor style fix.
12+
v1.0.12: Added support for the Trigger property to the Media Finder widget configuration. Names of form fields and list columns definition files can now contain underscores.
13+
v1.0.13: Minor styling fix on the database editor.
14+
v1.0.14: Added support for published_at timestamp field
15+
v1.0.15: Fixed a bug where saving a localization string in Inspector could cause a JavaScript error. Added support for Timestamps and Soft Deleting for new models.
16+
v1.0.16: Fixed a bug when saving a form with the Repeater widget in a tab could create invalid fields in the form's outside area. Added a check that prevents creating localization strings inside other existing strings.
17+
v1.0.17: Added support Trigger attribute support for RecordFinder and Repeater form widgets.
18+
v1.0.18: Fixes a bug where '::class' notations in a model class definition could prevent the model from appearing in the Builder model list. Added emptyOption property support to the dropdown form control.
19+
v1.0.19: Added a feature allowing to add all database columns to a list definition. Added max length validation for database table and column names.
20+
v1.0.20: Fixes a bug where form the builder could trigger the "current.hasAttribute is not a function" error.
21+
v1.0.21: Back-end navigation sort order updated.
22+
v1.0.22: Added scopeValue property to the RecordList component.
23+
v1.0.23: Added support for balloon-selector field type, added Brazilian Portuguese translation, fixed some bugs
24+
v1.0.24: Added support for tag list field type, added read only toggle for fields. Prevent plugins from using reserved PHP keywords for class names and namespaces
25+
v1.0.25: Allow editing of migration code in the "Migration" popup when saving changes in the database editor.
26+
v1.0.26: Allow special default values for columns and added new "Add ID column" button to database editor.
27+
v1.0.27: Added ability to use 'scope' in a form relation field, added ability to change the sort order of versions and added additional properties for repeater widget in form builder. Added Polish translation.
28+
v1.0.28: Fixes support for PHP 8
29+
v1.0.29: Disable touch device detection
30+
v1.0.30: Minor styling improvements
31+
v1.0.31: Added support for more rich editor and file upload properties
32+
v1.0.32: Minor styling improvements
33+
v1.1.0: Adds feature for adding database fields to a form definition.

0 commit comments

Comments
 (0)