kui-crm 0.0.182 → 0.0.184
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/cjs/index.js +7 -7
- package/cjs/index.js.map +1 -1
- package/index.d.ts +9 -6
- package/index.js +7 -7
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +9 -6
package/cjs/index.js
CHANGED
|
@@ -4037,25 +4037,25 @@ var valueOptions = {
|
|
|
4037
4037
|
warningMessage: "There are deviations in meter readings. It should be no more than",
|
|
4038
4038
|
};
|
|
4039
4039
|
var getPartialMeterInfoFields = function (resource, type, meter, withCheckValue, name, settings) {
|
|
4040
|
-
var _a, _b, _c, _d;
|
|
4040
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4041
4041
|
var prefixName = name ? "".concat(name, ".") : "";
|
|
4042
4042
|
if (resource === "electricity") {
|
|
4043
4043
|
return __spreadArray(__spreadArray([
|
|
4044
4044
|
__assign({ label: "Number", name: "".concat(prefixName, "number") }, settings === null || settings === void 0 ? void 0 : settings.number),
|
|
4045
4045
|
__assign(__assign({ label: "T1 value", name: "".concat(prefixName, "T1"), maxValue: ((_a = meter === null || meter === void 0 ? void 0 : meter.maxValue) === null || _a === void 0 ? void 0 : _a.T1) && withCheckValue
|
|
4046
4046
|
? Number(meter.maxValue.T1)
|
|
4047
|
-
: null, placeholder: meter === null || meter === void 0 ? void 0 : meter.values.T1 }, valueOptions), settings === null || settings === void 0 ? void 0 : settings.t1)
|
|
4048
|
-
], kuiUtils.addToArrayByCondition(type !== "T1", __assign(__assign({ label: "T2 value", name: "".concat(prefixName, "T2"), maxValue: ((
|
|
4047
|
+
: null, placeholder: (_b = meter === null || meter === void 0 ? void 0 : meter.values) === null || _b === void 0 ? void 0 : _b.T1 }, valueOptions), settings === null || settings === void 0 ? void 0 : settings.t1)
|
|
4048
|
+
], kuiUtils.addToArrayByCondition(type !== "T1", __assign(__assign({ label: "T2 value", name: "".concat(prefixName, "T2"), maxValue: ((_c = meter === null || meter === void 0 ? void 0 : meter.maxValue) === null || _c === void 0 ? void 0 : _c.T2) && withCheckValue
|
|
4049
4049
|
? Number(meter.maxValue.T2)
|
|
4050
|
-
: null, placeholder: meter === null || meter === void 0 ? void 0 : meter.values.T2 }, valueOptions), settings === null || settings === void 0 ? void 0 : settings.t2)), true), kuiUtils.addToArrayByCondition(type === "T3", __assign(__assign({ label: "T3 value", name: "".concat(prefixName, "T3"), maxValue: ((
|
|
4050
|
+
: null, placeholder: (_d = meter === null || meter === void 0 ? void 0 : meter.values) === null || _d === void 0 ? void 0 : _d.T2 }, valueOptions), settings === null || settings === void 0 ? void 0 : settings.t2)), true), kuiUtils.addToArrayByCondition(type === "T3", __assign(__assign({ label: "T3 value", name: "".concat(prefixName, "T3"), maxValue: ((_e = meter === null || meter === void 0 ? void 0 : meter.maxValue) === null || _e === void 0 ? void 0 : _e.T3) && withCheckValue
|
|
4051
4051
|
? Number(meter.maxValue.T3)
|
|
4052
|
-
: null, placeholder: meter === null || meter === void 0 ? void 0 : meter.values.T3 }, valueOptions), settings === null || settings === void 0 ? void 0 : settings.t3)), true);
|
|
4052
|
+
: null, placeholder: (_f = meter === null || meter === void 0 ? void 0 : meter.values) === null || _f === void 0 ? void 0 : _f.T3 }, valueOptions), settings === null || settings === void 0 ? void 0 : settings.t3)), true);
|
|
4053
4053
|
}
|
|
4054
4054
|
return [
|
|
4055
4055
|
__assign({ label: "Number", name: "".concat(prefixName, "number") }, settings === null || settings === void 0 ? void 0 : settings.number),
|
|
4056
|
-
__assign(__assign({ label: "Value", name: "".concat(prefixName, "value"), maxValue: ((
|
|
4056
|
+
__assign(__assign({ label: "Value", name: "".concat(prefixName, "value"), maxValue: ((_g = meter === null || meter === void 0 ? void 0 : meter.maxValue) === null || _g === void 0 ? void 0 : _g.value) && withCheckValue
|
|
4057
4057
|
? Number(meter.maxValue.value)
|
|
4058
|
-
: null, placeholder: meter === null || meter === void 0 ? void 0 : meter.values.value }, valueOptions), settings === null || settings === void 0 ? void 0 : settings.value),
|
|
4058
|
+
: null, placeholder: (_h = meter === null || meter === void 0 ? void 0 : meter.values) === null || _h === void 0 ? void 0 : _h.value }, valueOptions), settings === null || settings === void 0 ? void 0 : settings.value),
|
|
4059
4059
|
];
|
|
4060
4060
|
};
|
|
4061
4061
|
|