react-jsonschema-form-extras 0.9.65 → 0.9.69
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/README.md +785 -785
- package/dist/form-with-extras.js +23 -210
- package/dist/form-with-extras.js.map +1 -1
- package/lib/CollapsibleField.js +162 -60
- package/lib/CollapsibleField.js.orig +402 -0
- package/lib/DraftRte.js +32 -32
- package/lib/TypeaheadField.js +8 -8
- package/lib/css/form-extras.css +10 -0
- package/lib/table/actionHeaderFactory.js +26 -6
- package/lib/table/index.js +27 -44
- package/lib/table/tableConfFactory.js +18 -2
- package/lib/utils.js +14 -0
- package/package.json +138 -136
package/lib/CollapsibleField.js
CHANGED
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
|
7
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
8
|
+
|
7
9
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
8
10
|
|
9
11
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
@@ -18,6 +20,8 @@ var _propTypes = require("prop-types");
|
|
18
20
|
|
19
21
|
var _propTypes2 = _interopRequireDefault(_propTypes);
|
20
22
|
|
23
|
+
var _utils2 = require("./utils");
|
24
|
+
|
21
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
22
26
|
|
23
27
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
@@ -90,55 +94,63 @@ var CollapseMenuAction = function (_Component) {
|
|
90
94
|
}(_react.Component);
|
91
95
|
|
92
96
|
function CollapseMenu(props) {
|
93
|
-
var
|
94
|
-
|
95
|
-
_props$uiSchema$colla2 = _props$uiSchema$colla2 === undefined ? {} : _props$uiSchema$colla2;
|
96
|
-
var _props$uiSchema$colla3 = _props$uiSchema$colla2.enabled,
|
97
|
-
enabled = _props$uiSchema$colla3 === undefined ? "glyphicon glyphicon-chevron-down" : _props$uiSchema$colla3,
|
98
|
-
_props$uiSchema$colla4 = _props$uiSchema$colla2.disabled,
|
99
|
-
disabled = _props$uiSchema$colla4 === undefined ? "glyphicon glyphicon-chevron-right" : _props$uiSchema$colla4,
|
100
|
-
_props$uiSchema$colla5 = _props$uiSchema$colla2.add,
|
101
|
-
add = _props$uiSchema$colla5 === undefined ? "glyphicon glyphicon-plus-sign" : _props$uiSchema$colla5,
|
102
|
-
_props$uiSchema$colla6 = _props$uiSchema$colla.separate,
|
103
|
-
separate = _props$uiSchema$colla6 === undefined ? true : _props$uiSchema$colla6,
|
104
|
-
addTo = _props$uiSchema$colla.addTo,
|
105
|
-
_props$uiSchema$colla7 = _props$uiSchema$colla.wrapClassName,
|
106
|
-
wrapClassName = _props$uiSchema$colla7 === undefined ? "lead" : _props$uiSchema$colla7,
|
107
|
-
_props$uiSchema$colla8 = _props$uiSchema$colla.actions,
|
108
|
-
actions = _props$uiSchema$colla8 === undefined ? [] : _props$uiSchema$colla8,
|
109
|
-
_props$uiSchema$colla9 = _props$uiSchema$colla.classNames,
|
110
|
-
classNames = _props$uiSchema$colla9 === undefined ? "collapsibleHeading" : _props$uiSchema$colla9,
|
111
|
-
_props$uiSchema$colla10 = _props$uiSchema$colla.collapseDivStyles;
|
112
|
-
_props$uiSchema$colla10 = _props$uiSchema$colla10 === undefined ? {} : _props$uiSchema$colla10;
|
113
|
-
var _props$uiSchema$colla11 = _props$uiSchema$colla10.textColor,
|
114
|
-
textColor = _props$uiSchema$colla11 === undefined ? "white" : _props$uiSchema$colla11,
|
115
|
-
_props$uiSchema$colla12 = _props$uiSchema$colla10.background,
|
116
|
-
background = _props$uiSchema$colla12 === undefined ? "linear-gradient(to right, #0472B6, white)" : _props$uiSchema$colla12,
|
117
|
-
_props$uiSchema$colla13 = _props$uiSchema$colla10.collapseGlyphColor,
|
118
|
-
collapseGlyphColor = _props$uiSchema$colla13 === undefined ? "white" : _props$uiSchema$colla13,
|
119
|
-
_props$uiSchema$colla14 = _props$uiSchema$colla10.addGlyphColor,
|
120
|
-
addGlyphColor = _props$uiSchema$colla14 === undefined ? "white" : _props$uiSchema$colla14,
|
121
|
-
_props$uiSchema$colla15 = _props$uiSchema$colla10.padding,
|
122
|
-
padding = _props$uiSchema$colla15 === undefined ? "14px" : _props$uiSchema$colla15,
|
123
|
-
_props$uiSchema$colla16 = _props$uiSchema$colla10.margin,
|
124
|
-
margin = _props$uiSchema$colla16 === undefined ? "" : _props$uiSchema$colla16,
|
125
|
-
_props$uiSchema$colla17 = _props$uiSchema$colla10.marginLeft,
|
126
|
-
marginLeft = _props$uiSchema$colla17 === undefined ? "-5px" : _props$uiSchema$colla17,
|
127
|
-
_props$uiSchema$colla18 = _props$uiSchema$colla10.marginBottom,
|
128
|
-
marginBottom = _props$uiSchema$colla18 === undefined ? "5px" : _props$uiSchema$colla18,
|
129
|
-
_props$uiSchema$colla19 = _props$uiSchema$colla10.zIndex,
|
130
|
-
zIndex = _props$uiSchema$colla19 === undefined ? -1 : _props$uiSchema$colla19,
|
131
|
-
_props$uiSchema$colla20 = _props$uiSchema$colla10.divCursor,
|
132
|
-
divCursor = _props$uiSchema$colla20 === undefined ? "pointer" : _props$uiSchema$colla20,
|
133
|
-
_props$uiSchema$colla21 = _props$uiSchema$colla10.addCursor,
|
134
|
-
addCursor = _props$uiSchema$colla21 === undefined ? "copy" : _props$uiSchema$colla21,
|
97
|
+
var headerElementsSchemas = props.headerElementsSchemas,
|
98
|
+
uiSchema = props.uiSchema,
|
135
99
|
_props$formContext = props.formContext,
|
136
100
|
formContext = _props$formContext === undefined ? {} : _props$formContext,
|
101
|
+
_props$formData = props.formData,
|
102
|
+
formData = _props$formData === undefined ? {} : _props$formData,
|
137
103
|
onChange = props.onChange,
|
138
104
|
onAdd = props.onAdd,
|
139
105
|
title = props.title,
|
140
106
|
name = props.name,
|
141
|
-
collapsed = props.collapsed
|
107
|
+
collapsed = props.collapsed,
|
108
|
+
fields = props.fields,
|
109
|
+
propsOnChange = props.propsOnChange;
|
110
|
+
var _uiSchema$collapse = uiSchema.collapse,
|
111
|
+
_uiSchema$collapse$co = _uiSchema$collapse.collapsibleHeaderElements,
|
112
|
+
collapsibleHeaderElements = _uiSchema$collapse$co === undefined ? {} : _uiSchema$collapse$co,
|
113
|
+
_uiSchema$collapse$ic = _uiSchema$collapse.icon;
|
114
|
+
_uiSchema$collapse$ic = _uiSchema$collapse$ic === undefined ? {} : _uiSchema$collapse$ic;
|
115
|
+
var _uiSchema$collapse$ic2 = _uiSchema$collapse$ic.enabled,
|
116
|
+
enabled = _uiSchema$collapse$ic2 === undefined ? "glyphicon glyphicon-chevron-down" : _uiSchema$collapse$ic2,
|
117
|
+
_uiSchema$collapse$ic3 = _uiSchema$collapse$ic.disabled,
|
118
|
+
disabled = _uiSchema$collapse$ic3 === undefined ? "glyphicon glyphicon-chevron-right" : _uiSchema$collapse$ic3,
|
119
|
+
_uiSchema$collapse$ic4 = _uiSchema$collapse$ic.add,
|
120
|
+
add = _uiSchema$collapse$ic4 === undefined ? "glyphicon glyphicon-plus-sign" : _uiSchema$collapse$ic4,
|
121
|
+
_uiSchema$collapse$se = _uiSchema$collapse.separate,
|
122
|
+
separate = _uiSchema$collapse$se === undefined ? true : _uiSchema$collapse$se,
|
123
|
+
addTo = _uiSchema$collapse.addTo,
|
124
|
+
_uiSchema$collapse$wr = _uiSchema$collapse.wrapClassName,
|
125
|
+
wrapClassName = _uiSchema$collapse$wr === undefined ? "lead" : _uiSchema$collapse$wr,
|
126
|
+
_uiSchema$collapse$ac = _uiSchema$collapse.actions,
|
127
|
+
actions = _uiSchema$collapse$ac === undefined ? [] : _uiSchema$collapse$ac,
|
128
|
+
_uiSchema$collapse$cl = _uiSchema$collapse.classNames,
|
129
|
+
classNames = _uiSchema$collapse$cl === undefined ? "collapsibleHeading" : _uiSchema$collapse$cl,
|
130
|
+
_uiSchema$collapse$co2 = _uiSchema$collapse.collapseDivStyles;
|
131
|
+
_uiSchema$collapse$co2 = _uiSchema$collapse$co2 === undefined ? {} : _uiSchema$collapse$co2;
|
132
|
+
var _uiSchema$collapse$co3 = _uiSchema$collapse$co2.textColor,
|
133
|
+
textColor = _uiSchema$collapse$co3 === undefined ? "white" : _uiSchema$collapse$co3,
|
134
|
+
_uiSchema$collapse$co4 = _uiSchema$collapse$co2.background,
|
135
|
+
background = _uiSchema$collapse$co4 === undefined ? "linear-gradient(to right, #0472B6, white)" : _uiSchema$collapse$co4,
|
136
|
+
_uiSchema$collapse$co5 = _uiSchema$collapse$co2.collapseGlyphColor,
|
137
|
+
collapseGlyphColor = _uiSchema$collapse$co5 === undefined ? "white" : _uiSchema$collapse$co5,
|
138
|
+
_uiSchema$collapse$co6 = _uiSchema$collapse$co2.addGlyphColor,
|
139
|
+
addGlyphColor = _uiSchema$collapse$co6 === undefined ? "white" : _uiSchema$collapse$co6,
|
140
|
+
_uiSchema$collapse$co7 = _uiSchema$collapse$co2.padding,
|
141
|
+
padding = _uiSchema$collapse$co7 === undefined ? "14px" : _uiSchema$collapse$co7,
|
142
|
+
_uiSchema$collapse$co8 = _uiSchema$collapse$co2.margin,
|
143
|
+
margin = _uiSchema$collapse$co8 === undefined ? "" : _uiSchema$collapse$co8,
|
144
|
+
_uiSchema$collapse$co9 = _uiSchema$collapse$co2.marginLeft,
|
145
|
+
marginLeft = _uiSchema$collapse$co9 === undefined ? "-5px" : _uiSchema$collapse$co9,
|
146
|
+
_uiSchema$collapse$co10 = _uiSchema$collapse$co2.marginBottom,
|
147
|
+
marginBottom = _uiSchema$collapse$co10 === undefined ? "5px" : _uiSchema$collapse$co10,
|
148
|
+
_uiSchema$collapse$co11 = _uiSchema$collapse$co2.zIndex,
|
149
|
+
zIndex = _uiSchema$collapse$co11 === undefined ? -1 : _uiSchema$collapse$co11,
|
150
|
+
_uiSchema$collapse$co12 = _uiSchema$collapse$co2.divCursor,
|
151
|
+
divCursor = _uiSchema$collapse$co12 === undefined ? "pointer" : _uiSchema$collapse$co12,
|
152
|
+
_uiSchema$collapse$co13 = _uiSchema$collapse$co2.addCursor,
|
153
|
+
addCursor = _uiSchema$collapse$co13 === undefined ? "copy" : _uiSchema$collapse$co13;
|
142
154
|
|
143
155
|
|
144
156
|
var handleAdd = function handleAdd(event) {
|
@@ -146,6 +158,38 @@ function CollapseMenu(props) {
|
|
146
158
|
onAdd(event);
|
147
159
|
};
|
148
160
|
|
161
|
+
var headerElements = [];
|
162
|
+
var _collapsibleHeaderEle = collapsibleHeaderElements.className,
|
163
|
+
headerElementsWrapperClass = _collapsibleHeaderEle === undefined ? "header-element-wrapper" : _collapsibleHeaderEle;
|
164
|
+
|
165
|
+
|
166
|
+
Object.keys(headerElementsSchemas).map(function (key) {
|
167
|
+
var fieldSchema = headerElementsSchemas[key];
|
168
|
+
var fieldName = (0, _utils2.getFieldName)(fieldSchema.type);
|
169
|
+
|
170
|
+
if (fieldName) {
|
171
|
+
var FieldElement = fields[fieldName];
|
172
|
+
var fieldId = "" + key;
|
173
|
+
var fieldUiSchema = uiSchema[key];
|
174
|
+
var fieldFormData = formData[key];
|
175
|
+
|
176
|
+
var elementOnChange = function elementOnChange(value, options) {
|
177
|
+
formData[key] = value;
|
178
|
+
propsOnChange(formData, options);
|
179
|
+
};
|
180
|
+
|
181
|
+
headerElements.push(_react2.default.createElement(FieldElement, {
|
182
|
+
formContext: formContext,
|
183
|
+
formData: fieldFormData,
|
184
|
+
idSchema: { $id: fieldId },
|
185
|
+
key: key,
|
186
|
+
onChange: elementOnChange,
|
187
|
+
schema: fieldSchema,
|
188
|
+
uiSchema: fieldUiSchema
|
189
|
+
}));
|
190
|
+
}
|
191
|
+
});
|
192
|
+
|
149
193
|
return _react2.default.createElement(
|
150
194
|
"div",
|
151
195
|
{ className: "" + wrapClassName },
|
@@ -162,7 +206,8 @@ function CollapseMenu(props) {
|
|
162
206
|
zIndex: zIndex,
|
163
207
|
cursor: divCursor,
|
164
208
|
background: background
|
165
|
-
}
|
209
|
+
}
|
210
|
+
},
|
166
211
|
_react2.default.createElement(
|
167
212
|
"span",
|
168
213
|
{ style: { color: textColor } },
|
@@ -173,7 +218,8 @@ function CollapseMenu(props) {
|
|
173
218
|
"a",
|
174
219
|
{
|
175
220
|
onClick: handleAdd,
|
176
|
-
style: { color: addGlyphColor, cursor: addCursor }
|
221
|
+
style: { color: addGlyphColor, cursor: addCursor }
|
222
|
+
},
|
177
223
|
_react2.default.createElement("i", { style: { cursor: addCursor }, className: add })
|
178
224
|
),
|
179
225
|
_react2.default.createElement(
|
@@ -184,6 +230,16 @@ function CollapseMenu(props) {
|
|
184
230
|
className: collapsed ? disabled : enabled
|
185
231
|
})
|
186
232
|
),
|
233
|
+
!!headerElements.length && _react2.default.createElement(
|
234
|
+
"div",
|
235
|
+
{
|
236
|
+
className: headerElementsWrapperClass,
|
237
|
+
onClick: function onClick(event) {
|
238
|
+
return event.stopPropagation();
|
239
|
+
}
|
240
|
+
},
|
241
|
+
headerElements
|
242
|
+
),
|
187
243
|
actions.map(function (action, i) {
|
188
244
|
return _react2.default.createElement(CollapseMenuAction, {
|
189
245
|
key: i,
|
@@ -311,10 +367,11 @@ var CollapsibleField = function (_Component5) {
|
|
311
367
|
schema = _this3$props.schema,
|
312
368
|
uiSchema = _this3$props.uiSchema,
|
313
369
|
formData = _this3$props.formData,
|
314
|
-
fields = _this3$props.registry.fields
|
315
|
-
|
316
|
-
|
317
|
-
|
370
|
+
fields = _this3$props.registry.fields,
|
371
|
+
formContext = _this3$props.formContext;
|
372
|
+
var _uiSchema$collapse2 = uiSchema.collapse,
|
373
|
+
addTo = _uiSchema$collapse2.addTo,
|
374
|
+
addElement = _uiSchema$collapse2.addElement;
|
318
375
|
|
319
376
|
|
320
377
|
var fieldSchema = addTo === "self" ? schema.items : schema.properties ? schema.properties[addTo] ? schema.properties[addTo].items : null : null;
|
@@ -322,6 +379,7 @@ var CollapsibleField = function (_Component5) {
|
|
322
379
|
return false;
|
323
380
|
}
|
324
381
|
var fieldUiSchema = addTo === "self" ? uiSchema : uiSchema[addTo];
|
382
|
+
var fieldFormData = addTo === "self" ? formData : formData[addTo];
|
325
383
|
|
326
384
|
if (addElement) {
|
327
385
|
if (typeof addElement === "function") {
|
@@ -343,7 +401,9 @@ var CollapsibleField = function (_Component5) {
|
|
343
401
|
uiSchema: fieldUiSchema,
|
344
402
|
onChange: function onChange(formData) {
|
345
403
|
onBlur(formData);
|
346
|
-
}
|
404
|
+
},
|
405
|
+
formContext: formContext,
|
406
|
+
formData: fieldFormData
|
347
407
|
});
|
348
408
|
};
|
349
409
|
_this3.setState({ AddElement: _AddElement });
|
@@ -361,10 +421,10 @@ var CollapsibleField = function (_Component5) {
|
|
361
421
|
});
|
362
422
|
};
|
363
423
|
|
364
|
-
var _props$uiSchema$
|
365
|
-
_props$uiSchema$
|
366
|
-
var _props$uiSchema$
|
367
|
-
collapsed = _props$uiSchema$
|
424
|
+
var _props$uiSchema$colla = props.uiSchema.collapse;
|
425
|
+
_props$uiSchema$colla = _props$uiSchema$colla === undefined ? {} : _props$uiSchema$colla;
|
426
|
+
var _props$uiSchema$colla2 = _props$uiSchema$colla.collapsed,
|
427
|
+
collapsed = _props$uiSchema$colla2 === undefined ? true : _props$uiSchema$colla2;
|
368
428
|
|
369
429
|
|
370
430
|
_this3.state = { collapsed: collapsed };
|
@@ -372,45 +432,87 @@ var CollapsibleField = function (_Component5) {
|
|
372
432
|
}
|
373
433
|
|
374
434
|
_createClass(CollapsibleField, [{
|
435
|
+
key: "componentDidCatch",
|
436
|
+
value: function componentDidCatch(error, errorInfo) {
|
437
|
+
// You can also log the error to an error reporting service
|
438
|
+
console.log({ error: error, errorInfo: errorInfo });
|
439
|
+
}
|
440
|
+
}, {
|
375
441
|
key: "render",
|
376
442
|
value: function render() {
|
377
443
|
var _props3 = this.props,
|
378
|
-
|
444
|
+
_props3$schema = _props3.schema,
|
445
|
+
title = _props3$schema.title,
|
446
|
+
_props3$schema$proper = _props3$schema.properties,
|
447
|
+
properties = _props3$schema$proper === undefined ? {} : _props3$schema$proper,
|
379
448
|
uiSchema = _props3.uiSchema,
|
380
449
|
fields = _props3.registry.fields,
|
381
450
|
_props3$idSchema = _props3.idSchema;
|
382
451
|
_props3$idSchema = _props3$idSchema === undefined ? {} : _props3$idSchema;
|
383
452
|
var $id = _props3$idSchema.$id,
|
384
453
|
name = _props3.name,
|
385
|
-
formContext = _props3.formContext
|
454
|
+
formContext = _props3.formContext,
|
455
|
+
formData = _props3.formData,
|
456
|
+
propsOnChange = _props3.onChange;
|
386
457
|
var _state = this.state,
|
387
458
|
collapsed = _state.collapsed,
|
388
459
|
AddElement = _state.AddElement;
|
389
|
-
var
|
460
|
+
var _uiSchema$collapse3 = uiSchema.collapse,
|
461
|
+
_uiSchema$collapse3$c = _uiSchema$collapse3.collapsibleHeaderElements,
|
462
|
+
collapsibleHeaderElements = _uiSchema$collapse3$c === undefined ? {} : _uiSchema$collapse3$c,
|
463
|
+
field = _uiSchema$collapse3.field;
|
390
464
|
|
391
465
|
var CollapseElement = fields[field];
|
392
|
-
|
466
|
+
var _collapsibleHeaderEle2 = collapsibleHeaderElements.elements,
|
467
|
+
elements = _collapsibleHeaderEle2 === undefined ? [] : _collapsibleHeaderEle2;
|
468
|
+
// uischema retains the value for the state
|
469
|
+
|
393
470
|
uiSchema.collapse.collapsed = this.state.collapsed;
|
394
471
|
|
395
472
|
title = uiSchema["ui:title"] ? uiSchema["ui:title"] : title ? title : name;
|
396
473
|
var customizedId = collapsed ? $id : undefined;
|
474
|
+
|
475
|
+
//remove header elements from the schema
|
476
|
+
var headerElementsSchemas = {};
|
477
|
+
var propertiesNoHeader = _extends({}, properties);
|
478
|
+
var orderNoHeader = uiSchema["ui:order"] ? uiSchema["ui:order"].filter(function (x) {
|
479
|
+
return elements.indexOf(x) < 0;
|
480
|
+
}) : uiSchema["ui:order"];
|
481
|
+
|
482
|
+
elements.forEach(function (key) {
|
483
|
+
if (propertiesNoHeader[key]) {
|
484
|
+
headerElementsSchemas[key] = propertiesNoHeader[key];
|
485
|
+
delete propertiesNoHeader[key];
|
486
|
+
}
|
487
|
+
});
|
488
|
+
|
489
|
+
var collapseElementProps = _extends({}, this.props, {
|
490
|
+
schema: _extends({}, this.props.schema, { properties: propertiesNoHeader }),
|
491
|
+
uiSchema: _extends({}, this.props.uiSchema, { "ui:order": orderNoHeader })
|
492
|
+
});
|
493
|
+
|
397
494
|
return _react2.default.createElement(
|
398
495
|
"div",
|
399
496
|
{ id: customizedId },
|
400
497
|
_react2.default.createElement(CollapseMenu, {
|
498
|
+
headerElementsSchemas: headerElementsSchemas,
|
499
|
+
collapsibleFieldId: $id,
|
401
500
|
title: title,
|
402
501
|
uiSchema: uiSchema,
|
403
502
|
collapsed: collapsed,
|
404
503
|
formContext: formContext,
|
504
|
+
formData: formData,
|
505
|
+
fields: fields,
|
405
506
|
onAdd: this.handleAdd,
|
406
|
-
onChange: this.handleCollapsed
|
507
|
+
onChange: this.handleCollapsed,
|
508
|
+
propsOnChange: propsOnChange
|
407
509
|
}),
|
408
510
|
_react2.default.createElement(
|
409
511
|
"div",
|
410
512
|
{ className: "form-group" },
|
411
513
|
AddElement && _react2.default.createElement(AddElement, null),
|
412
514
|
!collapsed && _react2.default.createElement(CollapseLegend, this.props),
|
413
|
-
!collapsed && _react2.default.createElement(CollapseElement,
|
515
|
+
!collapsed && _react2.default.createElement(CollapseElement, collapseElementProps)
|
414
516
|
)
|
415
517
|
);
|
416
518
|
}
|