@sis-cc/dotstatsuite-components 15.0.4 → 15.0.5
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.
|
@@ -310,7 +310,7 @@ var toProperties = exports.toProperties = function toProperties(props, state, _o
|
|
|
310
310
|
onChange: function onChange(value) {
|
|
311
311
|
return _onChange({ title: value });
|
|
312
312
|
},
|
|
313
|
-
value: (
|
|
313
|
+
value: R.isNil(state.title) || R.isEmpty(state.title) ? R.pathOr('', ['title', 'label'], props) : state.title,
|
|
314
314
|
onReset: R.isNil(state.title) ? null : function () {
|
|
315
315
|
return _onChange({ title: null });
|
|
316
316
|
}
|
|
@@ -322,7 +322,7 @@ var toProperties = exports.toProperties = function toProperties(props, state, _o
|
|
|
322
322
|
onChange: function onChange(value) {
|
|
323
323
|
return _onChange({ subtitle: value });
|
|
324
324
|
},
|
|
325
|
-
value: R.
|
|
325
|
+
value: R.isNil(state.subtitle) || R.isEmpty(state.subtitle) ? (0, _getStringifiedSubtitle.stringifySubtitle)(props.subtitle || []) : state.subtitle,
|
|
326
326
|
onReset: R.isNil(state.subtitle) ? null : function () {
|
|
327
327
|
return _onChange({ subtitle: null });
|
|
328
328
|
}
|
package/package.json
CHANGED
|
@@ -319,7 +319,8 @@ export const toProperties = (props, state, onChange) => ({
|
|
|
319
319
|
isActive: isChart(props.type),
|
|
320
320
|
isDefault: R.isNil(state.title),
|
|
321
321
|
onChange: (value) => onChange({ title: value }),
|
|
322
|
-
value:
|
|
322
|
+
value: R.isNil(state.title) || R.isEmpty(state.title)
|
|
323
|
+
? R.pathOr('', ['title', 'label'], props) : state.title,
|
|
323
324
|
onReset: R.isNil(state.title)
|
|
324
325
|
? null : () => onChange({ title: null })
|
|
325
326
|
},
|
|
@@ -328,7 +329,8 @@ export const toProperties = (props, state, onChange) => ({
|
|
|
328
329
|
isActive: isChart(props.type),
|
|
329
330
|
isDefault: R.isNil(state.subtitle),
|
|
330
331
|
onChange: (value) => onChange({ subtitle: value }),
|
|
331
|
-
value: R.
|
|
332
|
+
value: R.isNil(state.subtitle) || R.isEmpty(state.subtitle)
|
|
333
|
+
? stringifySubtitle(props.subtitle || []) : state.subtitle,
|
|
332
334
|
onReset: R.isNil(state.subtitle)
|
|
333
335
|
? null : () => onChange({ subtitle: null })
|
|
334
336
|
},
|