elab_components 0.10.60 → 0.10.61
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare const props: () => {
|
|
2
|
-
activeRangeEnd: "
|
|
2
|
+
activeRangeEnd: "end" | "start";
|
|
3
3
|
allowReverse: import("@storybook/addon-knobs/dist/type-defs").Mutable<boolean>;
|
|
4
4
|
bottomView: "month" | "year" | "decade" | "century";
|
|
5
5
|
defaultActiveView: "month" | "year" | "decade" | "century";
|
|
6
|
-
mode: "
|
|
6
|
+
mode: "range" | "multiple" | "single";
|
|
7
7
|
topView: "month" | "year" | "decade" | "century";
|
|
8
8
|
views: number;
|
|
9
9
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -32994,29 +32994,29 @@ var OkGrid = function (_a) {
|
|
|
32994
32994
|
});
|
|
32995
32995
|
}, [setResultState, idGetter, dataItemKey, setSelectedState]);
|
|
32996
32996
|
var GridDataCellInput = function (cellProps, col) {
|
|
32997
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
|
32997
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
32998
32998
|
var value = cellProps.dataItem[cellProps.field];
|
|
32999
32999
|
var disabledCondition = !col.editable ||
|
|
33000
33000
|
(isNotSOUser &&
|
|
33001
33001
|
((_a = cellProps.dataItem) === null || _a === void 0 ? void 0 : _a.qcreadingid) !== null &&
|
|
33002
33002
|
((_b = cellProps.dataItem) === null || _b === void 0 ? void 0 : _b.qcreadingid) !== undefined) || // this disable logic applies for qcentry,qclotparameter,and newqcrangeupdate and lotappoval dont remove it
|
|
33003
|
-
(
|
|
33004
|
-
|
|
33005
|
-
(((
|
|
33006
|
-
(((
|
|
33007
|
-
(((
|
|
33008
|
-
(((
|
|
33009
|
-
(((
|
|
33003
|
+
// (cellProps?.dataItem?.newEndDate === undefined &&
|
|
33004
|
+
// cellProps.dataItem?.analyteRangeId) ||
|
|
33005
|
+
(((_c = cellProps.dataItem) === null || _c === void 0 ? void 0 : _c.formulaOff) && cellProps.field === 'meanVar') ||
|
|
33006
|
+
(((_d = cellProps.dataItem) === null || _d === void 0 ? void 0 : _d.formulaOff) && cellProps.field === 'sdVar') ||
|
|
33007
|
+
(((_e = cellProps.dataItem) === null || _e === void 0 ? void 0 : _e.formulaOff) && cellProps.field === 'newSD') ||
|
|
33008
|
+
(((_f = cellProps.dataItem) === null || _f === void 0 ? void 0 : _f.formulaOff) && cellProps.field === 'newMean') ||
|
|
33009
|
+
(((_h = (_g = cellProps.dataItem) === null || _g === void 0 ? void 0 : _g.itemCategoryID) === null || _h === void 0 ? void 0 : _h.id) !== 6 &&
|
|
33010
33010
|
cellProps.field === 'amount') ||
|
|
33011
|
-
(((
|
|
33011
|
+
(((_k = (_j = cellProps.dataItem) === null || _j === void 0 ? void 0 : _j.itemCategoryID) === null || _k === void 0 ? void 0 : _k.id) !== 6 &&
|
|
33012
33012
|
cellProps.field === 'expectedValue') ||
|
|
33013
|
-
(((
|
|
33013
|
+
(((_m = (_l = cellProps.dataItem) === null || _l === void 0 ? void 0 : _l.itemCategoryID) === null || _m === void 0 ? void 0 : _m.id) !== 6 &&
|
|
33014
33014
|
cellProps.field === 'overAllLimit');
|
|
33015
33015
|
return (React__default.createElement("td", __assign({}, cellProps.tdProps),
|
|
33016
|
-
React__default.createElement(Input$2, { value: value, type: (
|
|
33016
|
+
React__default.createElement(Input$2, { value: value, type: (_o = col === null || col === void 0 ? void 0 : col.type) !== null && _o !== void 0 ? _o : 'text', onChange: function (e) { return GridDataInputChange(e, cellProps); }, disabled: disabledCondition > 0 ? true : false, min: col === null || col === void 0 ? void 0 : col.min, max: col === null || col === void 0 ? void 0 : col.max })));
|
|
33017
33017
|
};
|
|
33018
33018
|
var GridDataCellDatePicker = function (cellProps, col) {
|
|
33019
|
-
var _a, _b, _c, _d, _e, _f
|
|
33019
|
+
var _a, _b, _c, _d, _e, _f;
|
|
33020
33020
|
var value = cellProps.dataItem[cellProps.field];
|
|
33021
33021
|
var dateValue = new Date(value && typeof value === 'string' && !value.endsWith('Z')
|
|
33022
33022
|
? value + 'Z'
|
|
@@ -33025,42 +33025,42 @@ var OkGrid = function (_a) {
|
|
|
33025
33025
|
(isNotSOUser &&
|
|
33026
33026
|
((_a = cellProps.dataItem) === null || _a === void 0 ? void 0 : _a.qcreadingid) !== null &&
|
|
33027
33027
|
((_b = cellProps.dataItem) === null || _b === void 0 ? void 0 : _b.qcreadingid) !== undefined) || // this disable logic applies for qcentry,qclotparameter,and newqcrangeupdate and lotappoval dont remove it
|
|
33028
|
-
(
|
|
33029
|
-
|
|
33030
|
-
(((
|
|
33031
|
-
(((
|
|
33032
|
-
(((
|
|
33033
|
-
(((
|
|
33028
|
+
// (cellProps?.dataItem?.newEndDate === undefined &&
|
|
33029
|
+
// cellProps.dataItem?.analyteRangeId) ||
|
|
33030
|
+
(((_c = cellProps.dataItem) === null || _c === void 0 ? void 0 : _c.formulaOff) && cellProps.field === 'meanVar') ||
|
|
33031
|
+
(((_d = cellProps.dataItem) === null || _d === void 0 ? void 0 : _d.formulaOff) && cellProps.field === 'sdVar') ||
|
|
33032
|
+
(((_e = cellProps.dataItem) === null || _e === void 0 ? void 0 : _e.formulaOff) && cellProps.field === 'newSD') ||
|
|
33033
|
+
(((_f = cellProps.dataItem) === null || _f === void 0 ? void 0 : _f.formulaOff) && cellProps.field === 'newMean');
|
|
33034
33034
|
return (React__default.createElement("td", __assign({}, cellProps.tdProps),
|
|
33035
33035
|
React__default.createElement(DatePicker, { min: col === null || col === void 0 ? void 0 : col.min, max: col === null || col === void 0 ? void 0 : col.max, format: 'dd/MM/yyyy', defaultValue: new Date(dateValue), onChange: function (e) { return GridDataDateChange(e, cellProps); }, disabled: disabledCondition > 0 ? true : false })));
|
|
33036
33036
|
};
|
|
33037
33037
|
var GridDataCellSwitch = useCallback(function (cellProps, col) {
|
|
33038
|
-
var _a, _b, _c, _d, _e, _f
|
|
33038
|
+
var _a, _b, _c, _d, _e, _f;
|
|
33039
33039
|
var disabledCondition = !col.editable ||
|
|
33040
33040
|
(isNotSOUser &&
|
|
33041
33041
|
((_a = cellProps.dataItem) === null || _a === void 0 ? void 0 : _a.qcreadingid) !== null &&
|
|
33042
33042
|
((_b = cellProps.dataItem) === null || _b === void 0 ? void 0 : _b.qcreadingid) !== undefined) || // this disable logic applies for qcentry,qclotparameter,and newqcrangeupdate and lotappoval dont remove it
|
|
33043
|
-
(
|
|
33044
|
-
|
|
33045
|
-
(((
|
|
33046
|
-
(((
|
|
33047
|
-
(((
|
|
33048
|
-
(((
|
|
33043
|
+
// (cellProps?.dataItem?.newEndDate === undefined &&
|
|
33044
|
+
// cellProps.dataItem?.analyteRangeId) ||
|
|
33045
|
+
(((_c = cellProps.dataItem) === null || _c === void 0 ? void 0 : _c.formulaOff) && cellProps.field === 'meanVar') ||
|
|
33046
|
+
(((_d = cellProps.dataItem) === null || _d === void 0 ? void 0 : _d.formulaOff) && cellProps.field === 'sdVar') ||
|
|
33047
|
+
(((_e = cellProps.dataItem) === null || _e === void 0 ? void 0 : _e.formulaOff) && cellProps.field === 'newSD') ||
|
|
33048
|
+
(((_f = cellProps.dataItem) === null || _f === void 0 ? void 0 : _f.formulaOff) && cellProps.field === 'newMean');
|
|
33049
33049
|
return (React__default.createElement("td", __assign({}, cellProps.tdProps),
|
|
33050
33050
|
React__default.createElement(Switch, { defaultChecked: cellProps.dataItem[cellProps.field], value: cellProps.dataItem[cellProps.field], onChange: function (e) { return GridDataInputChange(e, cellProps); }, disabled: disabledCondition > 0 ? true : false })));
|
|
33051
33051
|
}, [GridDataInputChange]);
|
|
33052
33052
|
var GridDataCellButton = useCallback(function (cellProps, col) {
|
|
33053
|
-
var _a, _b, _c, _d, _e, _f
|
|
33053
|
+
var _a, _b, _c, _d, _e, _f;
|
|
33054
33054
|
var disabledCondition = !col.editable ||
|
|
33055
33055
|
(isNotSOUser &&
|
|
33056
33056
|
((_a = cellProps.dataItem) === null || _a === void 0 ? void 0 : _a.qcreadingid) !== null &&
|
|
33057
33057
|
((_b = cellProps.dataItem) === null || _b === void 0 ? void 0 : _b.qcreadingid) !== undefined) || // this disable logic applies for qcentry,qclotparameter,and newqcrangeupdate and lotappoval dont remove it
|
|
33058
|
-
(
|
|
33059
|
-
|
|
33060
|
-
(((
|
|
33061
|
-
(((
|
|
33062
|
-
(((
|
|
33063
|
-
(((
|
|
33058
|
+
// (cellProps?.dataItem?.newEndDate === undefined &&
|
|
33059
|
+
// cellProps.dataItem?.analyteRangeId) ||
|
|
33060
|
+
(((_c = cellProps.dataItem) === null || _c === void 0 ? void 0 : _c.formulaOff) && cellProps.field === 'meanVar') ||
|
|
33061
|
+
(((_d = cellProps.dataItem) === null || _d === void 0 ? void 0 : _d.formulaOff) && cellProps.field === 'sdVar') ||
|
|
33062
|
+
(((_e = cellProps.dataItem) === null || _e === void 0 ? void 0 : _e.formulaOff) && cellProps.field === 'newSD') ||
|
|
33063
|
+
(((_f = cellProps.dataItem) === null || _f === void 0 ? void 0 : _f.formulaOff) && cellProps.field === 'newMean');
|
|
33064
33064
|
return (React__default.createElement("td", __assign({}, cellProps.tdProps),
|
|
33065
33065
|
React__default.createElement(Button$2, { onClick: function () { return gridInlineButton(cellProps); }, themeColor: 'primary', disabled: disabledCondition > 0 ? true : false }, cellProps.editor)));
|
|
33066
33066
|
}, [gridInlineButton]);
|
|
@@ -33110,17 +33110,17 @@ var OkGrid = function (_a) {
|
|
|
33110
33110
|
} }, cellProps === null || cellProps === void 0 ? void 0 : cellProps.dataItem[cellProps.field])))));
|
|
33111
33111
|
}, [gridInlineButton]);
|
|
33112
33112
|
var GridDataCellCheckBox = useCallback(function (cellProps, col) {
|
|
33113
|
-
var _a, _b, _c, _d, _e, _f
|
|
33113
|
+
var _a, _b, _c, _d, _e, _f;
|
|
33114
33114
|
var disabledCondition = !col.editable ||
|
|
33115
33115
|
(isNotSOUser &&
|
|
33116
33116
|
((_a = cellProps.dataItem) === null || _a === void 0 ? void 0 : _a.qcreadingid) !== null &&
|
|
33117
33117
|
((_b = cellProps.dataItem) === null || _b === void 0 ? void 0 : _b.qcreadingid) !== undefined) || // this disable logic applies for qcentry,qclotparameter,and newqcrangeupdate and lotappoval dont remove it
|
|
33118
|
-
(
|
|
33119
|
-
|
|
33120
|
-
(((
|
|
33121
|
-
(((
|
|
33122
|
-
(((
|
|
33123
|
-
(((
|
|
33118
|
+
// (cellProps?.dataItem?.newEndDate === undefined &&
|
|
33119
|
+
// cellProps.dataItem?.analyteRangeId) ||
|
|
33120
|
+
(((_c = cellProps.dataItem) === null || _c === void 0 ? void 0 : _c.formulaOff) && cellProps.field === 'meanVar') ||
|
|
33121
|
+
(((_d = cellProps.dataItem) === null || _d === void 0 ? void 0 : _d.formulaOff) && cellProps.field === 'sdVar') ||
|
|
33122
|
+
(((_e = cellProps.dataItem) === null || _e === void 0 ? void 0 : _e.formulaOff) && cellProps.field === 'newSD') ||
|
|
33123
|
+
(((_f = cellProps.dataItem) === null || _f === void 0 ? void 0 : _f.formulaOff) && cellProps.field === 'newMean') ||
|
|
33124
33124
|
cellProps.editor === 'disabled';
|
|
33125
33125
|
return (React__default.createElement("td", __assign({}, cellProps.tdProps, { style: { textTransform: 'capitalize' } }),
|
|
33126
33126
|
React__default.createElement(Checkbox, { onChange: function (e) { return GridDataCellCheckboxChange(e, cellProps); }, checked: cellProps.dataItem[cellProps.field], label: cellProps.field === 'rerun_Manual' ? 'Rerun' : '', style: { textTransform: 'capitalize' }, disabled: disabledCondition > 0 ? true : false })));
|
package/dist/index.js
CHANGED
|
@@ -33022,29 +33022,29 @@ var OkGrid = function (_a) {
|
|
|
33022
33022
|
});
|
|
33023
33023
|
}, [setResultState, idGetter, dataItemKey, setSelectedState]);
|
|
33024
33024
|
var GridDataCellInput = function (cellProps, col) {
|
|
33025
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
|
33025
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
33026
33026
|
var value = cellProps.dataItem[cellProps.field];
|
|
33027
33027
|
var disabledCondition = !col.editable ||
|
|
33028
33028
|
(isNotSOUser &&
|
|
33029
33029
|
((_a = cellProps.dataItem) === null || _a === void 0 ? void 0 : _a.qcreadingid) !== null &&
|
|
33030
33030
|
((_b = cellProps.dataItem) === null || _b === void 0 ? void 0 : _b.qcreadingid) !== undefined) || // this disable logic applies for qcentry,qclotparameter,and newqcrangeupdate and lotappoval dont remove it
|
|
33031
|
-
(
|
|
33032
|
-
|
|
33033
|
-
(((
|
|
33034
|
-
(((
|
|
33035
|
-
(((
|
|
33036
|
-
(((
|
|
33037
|
-
(((
|
|
33031
|
+
// (cellProps?.dataItem?.newEndDate === undefined &&
|
|
33032
|
+
// cellProps.dataItem?.analyteRangeId) ||
|
|
33033
|
+
(((_c = cellProps.dataItem) === null || _c === void 0 ? void 0 : _c.formulaOff) && cellProps.field === 'meanVar') ||
|
|
33034
|
+
(((_d = cellProps.dataItem) === null || _d === void 0 ? void 0 : _d.formulaOff) && cellProps.field === 'sdVar') ||
|
|
33035
|
+
(((_e = cellProps.dataItem) === null || _e === void 0 ? void 0 : _e.formulaOff) && cellProps.field === 'newSD') ||
|
|
33036
|
+
(((_f = cellProps.dataItem) === null || _f === void 0 ? void 0 : _f.formulaOff) && cellProps.field === 'newMean') ||
|
|
33037
|
+
(((_h = (_g = cellProps.dataItem) === null || _g === void 0 ? void 0 : _g.itemCategoryID) === null || _h === void 0 ? void 0 : _h.id) !== 6 &&
|
|
33038
33038
|
cellProps.field === 'amount') ||
|
|
33039
|
-
(((
|
|
33039
|
+
(((_k = (_j = cellProps.dataItem) === null || _j === void 0 ? void 0 : _j.itemCategoryID) === null || _k === void 0 ? void 0 : _k.id) !== 6 &&
|
|
33040
33040
|
cellProps.field === 'expectedValue') ||
|
|
33041
|
-
(((
|
|
33041
|
+
(((_m = (_l = cellProps.dataItem) === null || _l === void 0 ? void 0 : _l.itemCategoryID) === null || _m === void 0 ? void 0 : _m.id) !== 6 &&
|
|
33042
33042
|
cellProps.field === 'overAllLimit');
|
|
33043
33043
|
return (React__default["default"].createElement("td", __assign({}, cellProps.tdProps),
|
|
33044
|
-
React__default["default"].createElement(kendoReactInputs.Input, { value: value, type: (
|
|
33044
|
+
React__default["default"].createElement(kendoReactInputs.Input, { value: value, type: (_o = col === null || col === void 0 ? void 0 : col.type) !== null && _o !== void 0 ? _o : 'text', onChange: function (e) { return GridDataInputChange(e, cellProps); }, disabled: disabledCondition > 0 ? true : false, min: col === null || col === void 0 ? void 0 : col.min, max: col === null || col === void 0 ? void 0 : col.max })));
|
|
33045
33045
|
};
|
|
33046
33046
|
var GridDataCellDatePicker = function (cellProps, col) {
|
|
33047
|
-
var _a, _b, _c, _d, _e, _f
|
|
33047
|
+
var _a, _b, _c, _d, _e, _f;
|
|
33048
33048
|
var value = cellProps.dataItem[cellProps.field];
|
|
33049
33049
|
var dateValue = new Date(value && typeof value === 'string' && !value.endsWith('Z')
|
|
33050
33050
|
? value + 'Z'
|
|
@@ -33053,42 +33053,42 @@ var OkGrid = function (_a) {
|
|
|
33053
33053
|
(isNotSOUser &&
|
|
33054
33054
|
((_a = cellProps.dataItem) === null || _a === void 0 ? void 0 : _a.qcreadingid) !== null &&
|
|
33055
33055
|
((_b = cellProps.dataItem) === null || _b === void 0 ? void 0 : _b.qcreadingid) !== undefined) || // this disable logic applies for qcentry,qclotparameter,and newqcrangeupdate and lotappoval dont remove it
|
|
33056
|
-
(
|
|
33057
|
-
|
|
33058
|
-
(((
|
|
33059
|
-
(((
|
|
33060
|
-
(((
|
|
33061
|
-
(((
|
|
33056
|
+
// (cellProps?.dataItem?.newEndDate === undefined &&
|
|
33057
|
+
// cellProps.dataItem?.analyteRangeId) ||
|
|
33058
|
+
(((_c = cellProps.dataItem) === null || _c === void 0 ? void 0 : _c.formulaOff) && cellProps.field === 'meanVar') ||
|
|
33059
|
+
(((_d = cellProps.dataItem) === null || _d === void 0 ? void 0 : _d.formulaOff) && cellProps.field === 'sdVar') ||
|
|
33060
|
+
(((_e = cellProps.dataItem) === null || _e === void 0 ? void 0 : _e.formulaOff) && cellProps.field === 'newSD') ||
|
|
33061
|
+
(((_f = cellProps.dataItem) === null || _f === void 0 ? void 0 : _f.formulaOff) && cellProps.field === 'newMean');
|
|
33062
33062
|
return (React__default["default"].createElement("td", __assign({}, cellProps.tdProps),
|
|
33063
33063
|
React__default["default"].createElement(kendoReactDateinputs.DatePicker, { min: col === null || col === void 0 ? void 0 : col.min, max: col === null || col === void 0 ? void 0 : col.max, format: 'dd/MM/yyyy', defaultValue: new Date(dateValue), onChange: function (e) { return GridDataDateChange(e, cellProps); }, disabled: disabledCondition > 0 ? true : false })));
|
|
33064
33064
|
};
|
|
33065
33065
|
var GridDataCellSwitch = React.useCallback(function (cellProps, col) {
|
|
33066
|
-
var _a, _b, _c, _d, _e, _f
|
|
33066
|
+
var _a, _b, _c, _d, _e, _f;
|
|
33067
33067
|
var disabledCondition = !col.editable ||
|
|
33068
33068
|
(isNotSOUser &&
|
|
33069
33069
|
((_a = cellProps.dataItem) === null || _a === void 0 ? void 0 : _a.qcreadingid) !== null &&
|
|
33070
33070
|
((_b = cellProps.dataItem) === null || _b === void 0 ? void 0 : _b.qcreadingid) !== undefined) || // this disable logic applies for qcentry,qclotparameter,and newqcrangeupdate and lotappoval dont remove it
|
|
33071
|
-
(
|
|
33072
|
-
|
|
33073
|
-
(((
|
|
33074
|
-
(((
|
|
33075
|
-
(((
|
|
33076
|
-
(((
|
|
33071
|
+
// (cellProps?.dataItem?.newEndDate === undefined &&
|
|
33072
|
+
// cellProps.dataItem?.analyteRangeId) ||
|
|
33073
|
+
(((_c = cellProps.dataItem) === null || _c === void 0 ? void 0 : _c.formulaOff) && cellProps.field === 'meanVar') ||
|
|
33074
|
+
(((_d = cellProps.dataItem) === null || _d === void 0 ? void 0 : _d.formulaOff) && cellProps.field === 'sdVar') ||
|
|
33075
|
+
(((_e = cellProps.dataItem) === null || _e === void 0 ? void 0 : _e.formulaOff) && cellProps.field === 'newSD') ||
|
|
33076
|
+
(((_f = cellProps.dataItem) === null || _f === void 0 ? void 0 : _f.formulaOff) && cellProps.field === 'newMean');
|
|
33077
33077
|
return (React__default["default"].createElement("td", __assign({}, cellProps.tdProps),
|
|
33078
33078
|
React__default["default"].createElement(kendoReactInputs.Switch, { defaultChecked: cellProps.dataItem[cellProps.field], value: cellProps.dataItem[cellProps.field], onChange: function (e) { return GridDataInputChange(e, cellProps); }, disabled: disabledCondition > 0 ? true : false })));
|
|
33079
33079
|
}, [GridDataInputChange]);
|
|
33080
33080
|
var GridDataCellButton = React.useCallback(function (cellProps, col) {
|
|
33081
|
-
var _a, _b, _c, _d, _e, _f
|
|
33081
|
+
var _a, _b, _c, _d, _e, _f;
|
|
33082
33082
|
var disabledCondition = !col.editable ||
|
|
33083
33083
|
(isNotSOUser &&
|
|
33084
33084
|
((_a = cellProps.dataItem) === null || _a === void 0 ? void 0 : _a.qcreadingid) !== null &&
|
|
33085
33085
|
((_b = cellProps.dataItem) === null || _b === void 0 ? void 0 : _b.qcreadingid) !== undefined) || // this disable logic applies for qcentry,qclotparameter,and newqcrangeupdate and lotappoval dont remove it
|
|
33086
|
-
(
|
|
33087
|
-
|
|
33088
|
-
(((
|
|
33089
|
-
(((
|
|
33090
|
-
(((
|
|
33091
|
-
(((
|
|
33086
|
+
// (cellProps?.dataItem?.newEndDate === undefined &&
|
|
33087
|
+
// cellProps.dataItem?.analyteRangeId) ||
|
|
33088
|
+
(((_c = cellProps.dataItem) === null || _c === void 0 ? void 0 : _c.formulaOff) && cellProps.field === 'meanVar') ||
|
|
33089
|
+
(((_d = cellProps.dataItem) === null || _d === void 0 ? void 0 : _d.formulaOff) && cellProps.field === 'sdVar') ||
|
|
33090
|
+
(((_e = cellProps.dataItem) === null || _e === void 0 ? void 0 : _e.formulaOff) && cellProps.field === 'newSD') ||
|
|
33091
|
+
(((_f = cellProps.dataItem) === null || _f === void 0 ? void 0 : _f.formulaOff) && cellProps.field === 'newMean');
|
|
33092
33092
|
return (React__default["default"].createElement("td", __assign({}, cellProps.tdProps),
|
|
33093
33093
|
React__default["default"].createElement(kendoReactButtons.Button, { onClick: function () { return gridInlineButton(cellProps); }, themeColor: 'primary', disabled: disabledCondition > 0 ? true : false }, cellProps.editor)));
|
|
33094
33094
|
}, [gridInlineButton]);
|
|
@@ -33138,17 +33138,17 @@ var OkGrid = function (_a) {
|
|
|
33138
33138
|
} }, cellProps === null || cellProps === void 0 ? void 0 : cellProps.dataItem[cellProps.field])))));
|
|
33139
33139
|
}, [gridInlineButton]);
|
|
33140
33140
|
var GridDataCellCheckBox = React.useCallback(function (cellProps, col) {
|
|
33141
|
-
var _a, _b, _c, _d, _e, _f
|
|
33141
|
+
var _a, _b, _c, _d, _e, _f;
|
|
33142
33142
|
var disabledCondition = !col.editable ||
|
|
33143
33143
|
(isNotSOUser &&
|
|
33144
33144
|
((_a = cellProps.dataItem) === null || _a === void 0 ? void 0 : _a.qcreadingid) !== null &&
|
|
33145
33145
|
((_b = cellProps.dataItem) === null || _b === void 0 ? void 0 : _b.qcreadingid) !== undefined) || // this disable logic applies for qcentry,qclotparameter,and newqcrangeupdate and lotappoval dont remove it
|
|
33146
|
-
(
|
|
33147
|
-
|
|
33148
|
-
(((
|
|
33149
|
-
(((
|
|
33150
|
-
(((
|
|
33151
|
-
(((
|
|
33146
|
+
// (cellProps?.dataItem?.newEndDate === undefined &&
|
|
33147
|
+
// cellProps.dataItem?.analyteRangeId) ||
|
|
33148
|
+
(((_c = cellProps.dataItem) === null || _c === void 0 ? void 0 : _c.formulaOff) && cellProps.field === 'meanVar') ||
|
|
33149
|
+
(((_d = cellProps.dataItem) === null || _d === void 0 ? void 0 : _d.formulaOff) && cellProps.field === 'sdVar') ||
|
|
33150
|
+
(((_e = cellProps.dataItem) === null || _e === void 0 ? void 0 : _e.formulaOff) && cellProps.field === 'newSD') ||
|
|
33151
|
+
(((_f = cellProps.dataItem) === null || _f === void 0 ? void 0 : _f.formulaOff) && cellProps.field === 'newMean') ||
|
|
33152
33152
|
cellProps.editor === 'disabled';
|
|
33153
33153
|
return (React__default["default"].createElement("td", __assign({}, cellProps.tdProps, { style: { textTransform: 'capitalize' } }),
|
|
33154
33154
|
React__default["default"].createElement(kendoReactInputs.Checkbox, { onChange: function (e) { return GridDataCellCheckboxChange(e, cellProps); }, checked: cellProps.dataItem[cellProps.field], label: cellProps.field === 'rerun_Manual' ? 'Rerun' : '', style: { textTransform: 'capitalize' }, disabled: disabledCondition > 0 ? true : false })));
|