versacall-dashboards-library-react 2.0.12 → 2.0.13
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.
|
@@ -416,7 +416,9 @@ class DashboardsCellGlobalConditions extends _react.Component {
|
|
|
416
416
|
}
|
|
417
417
|
|
|
418
418
|
updateCondition(change) {
|
|
419
|
-
var
|
|
419
|
+
var updatedValue = _objectSpread({}, this.props.value);
|
|
420
|
+
|
|
421
|
+
var conditions = updatedValue["".concat(this.state.typeCondition, "Conditions")]; // const conditions = JSON.parse(JSON.stringify(this.props.value[`${this.state.typeCondition}Conditions`]));
|
|
420
422
|
|
|
421
423
|
if (this.state.advanced) {
|
|
422
424
|
conditions[this.state.conditionIndex].condition = change.value;
|
|
@@ -440,10 +442,12 @@ class DashboardsCellGlobalConditions extends _react.Component {
|
|
|
440
442
|
conditions[this.state.conditionIndex].condition = '1 > 0';
|
|
441
443
|
break;
|
|
442
444
|
}
|
|
443
|
-
}
|
|
445
|
+
} // this.props.updateValue({ [`${this.state.typeCondition}Conditions`]: conditions });
|
|
446
|
+
|
|
444
447
|
|
|
445
448
|
this.props.updateValue({
|
|
446
|
-
|
|
449
|
+
styleConditions: updatedValue.styleConditions,
|
|
450
|
+
contentConditions: updatedValue.contentConditions
|
|
447
451
|
});
|
|
448
452
|
}
|
|
449
453
|
|
|
@@ -600,6 +604,13 @@ class DashboardsCellGlobalConditions extends _react.Component {
|
|
|
600
604
|
});
|
|
601
605
|
}
|
|
602
606
|
|
|
607
|
+
selectCondition(index) {
|
|
608
|
+
// TODO - Determine advanced state
|
|
609
|
+
this.setState({
|
|
610
|
+
conditionIndex: index
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
|
|
603
614
|
renderConditionCard(obj) {
|
|
604
615
|
var item = obj.item,
|
|
605
616
|
handler = obj.handler;
|
|
@@ -622,9 +633,7 @@ class DashboardsCellGlobalConditions extends _react.Component {
|
|
|
622
633
|
"aria-hidden": true,
|
|
623
634
|
style: divStyle,
|
|
624
635
|
className: classes.selectable,
|
|
625
|
-
onClick: () => this.
|
|
626
|
-
conditionIndex: item.index
|
|
627
|
-
})
|
|
636
|
+
onClick: () => this.selectCondition(item.index)
|
|
628
637
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
629
638
|
style: {
|
|
630
639
|
marginRight: 20,
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"versacall": {
|
|
3
3
|
"title": "Versacall Dashboards Library React",
|
|
4
4
|
"applicationType": "react-library",
|
|
5
|
-
"build":
|
|
5
|
+
"build": 13
|
|
6
6
|
},
|
|
7
7
|
"name": "versacall-dashboards-library-react",
|
|
8
|
-
"version": "2.0.
|
|
8
|
+
"version": "2.0.13",
|
|
9
9
|
"description": "Versacall Dashboards Library",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"module": "dist/index.js",
|