@formio/js 5.1.0-dev.6055.13dee3b → 5.1.0-dev.6058.189ce78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -81,6 +81,25 @@ exports.default = [
81
81
  }
82
82
  ]
83
83
  },
84
+ {
85
+ name: 'hide',
86
+ trigger: {
87
+ type: 'javascript',
88
+ javascript: 'result = instance.root.options.editJson === false;'
89
+ },
90
+ actions: [
91
+ {
92
+ name: 'hide',
93
+ type: 'property',
94
+ property: {
95
+ label: 'Hidden',
96
+ value: 'hidden',
97
+ type: 'boolean'
98
+ },
99
+ state: true
100
+ }
101
+ ]
102
+ },
84
103
  {
85
104
  name: 'disabledToolTip',
86
105
  trigger: {
@@ -115,19 +115,6 @@ class AddressComponent extends Container_1.default {
115
115
  NestedComponent_1.default.prototype.addComponents.call(this, this.manualMode ? this.address : {});
116
116
  }
117
117
  Field_1.default.prototype.init.call(this);
118
- // Added for backwards compatibility
119
- if (this.component.providerOptions) {
120
- const { params, url, queryProperty, responseProperty, displayValueProperty } = this.component.providerOptions;
121
- const key = params === null || params === void 0 ? void 0 : params.key;
122
- const autocompleteOptions = params === null || params === void 0 ? void 0 : params.autocompleteOptions;
123
- delete this.component.providerOptions;
124
- this.component.url = url;
125
- this.component.queryProperty = queryProperty;
126
- this.component.responseProperty = responseProperty;
127
- this.component.displayValueProperty = displayValueProperty;
128
- this.component.apiKey = key;
129
- this.component.autocompleteOptions = autocompleteOptions;
130
- }
131
118
  let provider = this.component.provider;
132
119
  const providerOptions = this.providerOptions;
133
120
  const map = this.component.map;
@@ -76,6 +76,25 @@ export default [
76
76
  }
77
77
  ]
78
78
  },
79
+ {
80
+ name: 'hide',
81
+ trigger: {
82
+ type: 'javascript',
83
+ javascript: 'result = instance.root.options.editJson === false;'
84
+ },
85
+ actions: [
86
+ {
87
+ name: 'hide',
88
+ type: 'property',
89
+ property: {
90
+ label: 'Hidden',
91
+ value: 'hidden',
92
+ type: 'boolean'
93
+ },
94
+ state: true
95
+ }
96
+ ]
97
+ },
79
98
  {
80
99
  name: 'disabledToolTip',
81
100
  trigger: {
@@ -112,19 +112,6 @@ export default class AddressComponent extends ContainerComponent {
112
112
  NestedComponent.prototype.addComponents.call(this, this.manualMode ? this.address : {});
113
113
  }
114
114
  Field.prototype.init.call(this);
115
- // Added for backwards compatibility
116
- if (this.component.providerOptions) {
117
- const { params, url, queryProperty, responseProperty, displayValueProperty } = this.component.providerOptions;
118
- const key = params?.key;
119
- const autocompleteOptions = params?.autocompleteOptions;
120
- delete this.component.providerOptions;
121
- this.component.url = url;
122
- this.component.queryProperty = queryProperty;
123
- this.component.responseProperty = responseProperty;
124
- this.component.displayValueProperty = displayValueProperty;
125
- this.component.apiKey = key;
126
- this.component.autocompleteOptions = autocompleteOptions;
127
- }
128
115
  let provider = this.component.provider;
129
116
  const providerOptions = this.providerOptions;
130
117
  const map = this.component.map;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.1.0-dev.6055.13dee3b",
3
+ "version": "5.1.0-dev.6058.189ce78",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {