config-editor-base 1.9.7 → 1.9.9
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.
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +44 -0
- package/dist/index.modern.js.map +1 -1
- package/package.json +4 -4
package/dist/index.modern.js
CHANGED
|
@@ -18195,6 +18195,47 @@ function EditorNavs(_ref) {
|
|
|
18195
18195
|
}))))));
|
|
18196
18196
|
}
|
|
18197
18197
|
|
|
18198
|
+
function ArrayFieldTemplate(props) {
|
|
18199
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
18200
|
+
className: "reset-margins"
|
|
18201
|
+
}, /*#__PURE__*/React.createElement("legend", null, props.title), /*#__PURE__*/React.createElement("p", null, props.schema.description), props.items && props.items.map(function (element) {
|
|
18202
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
18203
|
+
key: element.index
|
|
18204
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
18205
|
+
className: "position-relative"
|
|
18206
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
18207
|
+
className: "rjsf-array-list"
|
|
18208
|
+
}, /*#__PURE__*/React.createElement("div", null, element.children), /*#__PURE__*/React.createElement("div", {
|
|
18209
|
+
className: "special-array-buttons"
|
|
18210
|
+
}, element.hasMoveDown && /*#__PURE__*/React.createElement("button", {
|
|
18211
|
+
className: "btn btn-default array-item-move-down",
|
|
18212
|
+
onClick: element.onReorderClick(element.index, element.index + 1)
|
|
18213
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
18214
|
+
className: "glyphicon glyphicon-arrow-down"
|
|
18215
|
+
})), element.hasMoveUp && /*#__PURE__*/React.createElement("button", {
|
|
18216
|
+
className: "btn btn-default array-item-move-up",
|
|
18217
|
+
onClick: element.onReorderClick(element.index, element.index - 1)
|
|
18218
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
18219
|
+
className: "glyphicon glyphicon-arrow-up"
|
|
18220
|
+
})), /*#__PURE__*/React.createElement("button", {
|
|
18221
|
+
className: "btn btn-danger array-item-remove",
|
|
18222
|
+
onClick: element.onDropIndexClick(element.index)
|
|
18223
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
18224
|
+
className: "glyphicon glyphicon-remove"
|
|
18225
|
+
}))))));
|
|
18226
|
+
}), props.canAdd && /*#__PURE__*/React.createElement("div", {
|
|
18227
|
+
className: "add-row-button"
|
|
18228
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
18229
|
+
className: "col-xs-2 col-xs-offset-10 array-item-add text-right"
|
|
18230
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
18231
|
+
className: "btn btn-info btn-add col-xs-12",
|
|
18232
|
+
onClick: props.onAddClick,
|
|
18233
|
+
type: "button"
|
|
18234
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
18235
|
+
className: "glyphicon glyphicon-plus"
|
|
18236
|
+
}), " "))));
|
|
18237
|
+
}
|
|
18238
|
+
|
|
18198
18239
|
var selectOptions$1 = function selectOptions(Files) {
|
|
18199
18240
|
Files = lodash.orderBy(Files, ["name"], ["desc"]);
|
|
18200
18241
|
return [].concat(Files, [{
|
|
@@ -18698,6 +18739,9 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
|
18698
18739
|
onChange: this.handleChange,
|
|
18699
18740
|
onError: this.handleError,
|
|
18700
18741
|
onNavChange: this.onNavChange.bind(this),
|
|
18742
|
+
templates: {
|
|
18743
|
+
ArrayFieldTemplate: ArrayFieldTemplate
|
|
18744
|
+
},
|
|
18701
18745
|
activeNav: activatedTab
|
|
18702
18746
|
}, /*#__PURE__*/React.createElement(EditorChangesComparison$1, {
|
|
18703
18747
|
isCompareChanges: this.state.isCompareChanges,
|