config-editor-base 1.9.8 → 2.0.0

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.
@@ -18195,47 +18195,6 @@ 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
-
18239
18198
  var selectOptions$1 = function selectOptions(Files) {
18240
18199
  Files = lodash.orderBy(Files, ["name"], ["desc"]);
18241
18200
  return [].concat(Files, [{
@@ -18739,9 +18698,6 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
18739
18698
  onChange: this.handleChange,
18740
18699
  onError: this.handleError,
18741
18700
  onNavChange: this.onNavChange.bind(this),
18742
- templates: {
18743
- ArrayFieldTemplate: ArrayFieldTemplate
18744
- },
18745
18701
  activeNav: activatedTab
18746
18702
  }, /*#__PURE__*/React.createElement(EditorChangesComparison$1, {
18747
18703
  isCompareChanges: this.state.isCompareChanges,