@bigbinary/neeto-rules-frontend 0.2.2 → 0.2.4
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.cjs.js +21 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +21 -12
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs.js
CHANGED
|
@@ -1748,20 +1748,29 @@ var Router = /*#__PURE__*/function (_React$Component) {
|
|
|
1748
1748
|
_this._pendingLocation = null;
|
|
1749
1749
|
if (!props.staticContext) {
|
|
1750
1750
|
_this.unlisten = props.history.listen(function (location) {
|
|
1751
|
-
|
|
1752
|
-
_this.setState({
|
|
1753
|
-
location: location
|
|
1754
|
-
});
|
|
1755
|
-
} else {
|
|
1756
|
-
_this._pendingLocation = location;
|
|
1757
|
-
}
|
|
1751
|
+
_this._pendingLocation = location;
|
|
1758
1752
|
});
|
|
1759
1753
|
}
|
|
1760
1754
|
return _this;
|
|
1761
1755
|
}
|
|
1762
1756
|
var _proto = Router.prototype;
|
|
1763
1757
|
_proto.componentDidMount = function componentDidMount() {
|
|
1758
|
+
var _this2 = this;
|
|
1764
1759
|
this._isMounted = true;
|
|
1760
|
+
if (this.unlisten) {
|
|
1761
|
+
// Any pre-mount location changes have been captured at
|
|
1762
|
+
// this point, so unregister the listener.
|
|
1763
|
+
this.unlisten();
|
|
1764
|
+
}
|
|
1765
|
+
if (!this.props.staticContext) {
|
|
1766
|
+
this.unlisten = this.props.history.listen(function (location) {
|
|
1767
|
+
if (_this2._isMounted) {
|
|
1768
|
+
_this2.setState({
|
|
1769
|
+
location: location
|
|
1770
|
+
});
|
|
1771
|
+
}
|
|
1772
|
+
});
|
|
1773
|
+
}
|
|
1765
1774
|
if (this._pendingLocation) {
|
|
1766
1775
|
this.setState({
|
|
1767
1776
|
location: this._pendingLocation
|
|
@@ -56003,7 +56012,7 @@ cov_28jtkso8zg().s[34]++;
|
|
|
56003
56012
|
|
|
56004
56013
|
function cov_19hofz0kl6() {
|
|
56005
56014
|
var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/Conditions/Fields/InputField.jsx";
|
|
56006
|
-
var hash = "
|
|
56015
|
+
var hash = "193ee35a0e125782b91b884cc1ef1faffff3b103";
|
|
56007
56016
|
var global = new Function("return this")();
|
|
56008
56017
|
var gcv = "__coverage__";
|
|
56009
56018
|
var coverageData = {
|
|
@@ -56086,7 +56095,7 @@ function cov_19hofz0kl6() {
|
|
|
56086
56095
|
},
|
|
56087
56096
|
end: {
|
|
56088
56097
|
line: 26,
|
|
56089
|
-
column:
|
|
56098
|
+
column: 57
|
|
56090
56099
|
}
|
|
56091
56100
|
},
|
|
56092
56101
|
"8": {
|
|
@@ -56528,7 +56537,7 @@ function cov_19hofz0kl6() {
|
|
|
56528
56537
|
"3": [0, 0]
|
|
56529
56538
|
},
|
|
56530
56539
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
56531
|
-
hash: "
|
|
56540
|
+
hash: "193ee35a0e125782b91b884cc1ef1faffff3b103"
|
|
56532
56541
|
};
|
|
56533
56542
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
56534
56543
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -56546,7 +56555,7 @@ function cov_19hofz0kl6() {
|
|
|
56546
56555
|
cov_19hofz0kl6();
|
|
56547
56556
|
cov_19hofz0kl6().s[0]++;
|
|
56548
56557
|
var InputField$1 = function InputField(_ref) {
|
|
56549
|
-
var _condition$metadata, _errors$conditions, _errors$conditions$va, _touched$conditions, _touched$conditions$v;
|
|
56558
|
+
var _condition$metadata, _condition$metadata$v, _errors$conditions, _errors$conditions$va, _touched$conditions, _touched$conditions$v;
|
|
56550
56559
|
var name = _ref.name,
|
|
56551
56560
|
index = _ref.index,
|
|
56552
56561
|
placeholder = _ref.placeholder;
|
|
@@ -56567,7 +56576,7 @@ var InputField$1 = function InputField(_ref) {
|
|
|
56567
56576
|
return setShowInput(false);
|
|
56568
56577
|
});
|
|
56569
56578
|
var condition = (cov_19hofz0kl6().s[6]++, conditions.value[index]);
|
|
56570
|
-
var valueTerm = (cov_19hofz0kl6().s[7]++, (_condition$metadata = condition.metadata) === null || _condition$metadata === void 0 ? void 0 : _condition$metadata.value);
|
|
56579
|
+
var valueTerm = (cov_19hofz0kl6().s[7]++, (_condition$metadata = condition.metadata) === null || _condition$metadata === void 0 ? void 0 : (_condition$metadata$v = _condition$metadata.value) === null || _condition$metadata$v === void 0 ? void 0 : _condition$metadata$v.toString());
|
|
56571
56580
|
var label = (cov_19hofz0kl6().s[8]++, (cov_19hofz0kl6().b[1][0]++, valueTerm) && (cov_19hofz0kl6().b[1][1]++, valueTerm !== null && valueTerm !== void 0 && valueTerm.trim().length) ? (cov_19hofz0kl6().b[0][0]++, valueTerm) : (cov_19hofz0kl6().b[0][1]++, t("form.addValue")));
|
|
56572
56581
|
var isValid = (cov_19hofz0kl6().s[9]++, (cov_19hofz0kl6().b[2][0]++, errors.conditions) && (cov_19hofz0kl6().b[2][1]++, ramda.isNotNil((_errors$conditions = errors.conditions) === null || _errors$conditions === void 0 ? void 0 : (_errors$conditions$va = _errors$conditions.value) === null || _errors$conditions$va === void 0 ? void 0 : _errors$conditions$va[index])) && (cov_19hofz0kl6().b[2][2]++, ramda.isNotNil((_touched$conditions = touched.conditions) === null || _touched$conditions === void 0 ? void 0 : (_touched$conditions$v = _touched$conditions.value) === null || _touched$conditions$v === void 0 ? void 0 : _touched$conditions$v[index])));
|
|
56573
56582
|
cov_19hofz0kl6().s[10]++;
|