elab_components 0.9.8 → 0.9.11
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,5 +1,5 @@
|
|
|
1
1
|
declare const props: () => {
|
|
2
|
-
activeRangeEnd: "
|
|
2
|
+
activeRangeEnd: "start" | "end";
|
|
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";
|
package/dist/index.esm.js
CHANGED
|
@@ -32952,7 +32952,7 @@ var OkGrid = function (_a) {
|
|
|
32952
32952
|
});
|
|
32953
32953
|
}, [setResultState, idGetter, dataItemKey, setSelectedState]);
|
|
32954
32954
|
var GridDataCellInput = function (cellProps, col) {
|
|
32955
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
32955
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
32956
32956
|
var value = cellProps.dataItem[cellProps.field];
|
|
32957
32957
|
var disabledCondition = !col.editable ||
|
|
32958
32958
|
(isNotSOUser &&
|
|
@@ -32965,7 +32965,7 @@ var OkGrid = function (_a) {
|
|
|
32965
32965
|
(((_g = cellProps.dataItem) === null || _g === void 0 ? void 0 : _g.formulaOff) && cellProps.field === 'newSD') ||
|
|
32966
32966
|
(((_h = cellProps.dataItem) === null || _h === void 0 ? void 0 : _h.formulaOff) && cellProps.field === 'newMean');
|
|
32967
32967
|
return (React__default.createElement("td", __assign({}, cellProps.tdProps),
|
|
32968
|
-
React__default.createElement(Input$2, { value: value, onChange: function (e) { return GridDataInputChange(e, cellProps); }, disabled: disabledCondition > 0 ? true : false })));
|
|
32968
|
+
React__default.createElement(Input$2, { value: value, type: (_j = cellProps === null || cellProps === void 0 ? void 0 : cellProps.type) !== null && _j !== void 0 ? _j : 'text', onChange: function (e) { return GridDataInputChange(e, cellProps); }, disabled: disabledCondition > 0 ? true : false })));
|
|
32969
32969
|
};
|
|
32970
32970
|
var GridDataCellDatePicker = function (cellProps, col) {
|
|
32971
32971
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -33103,7 +33103,7 @@ var OkGrid = function (_a) {
|
|
|
33103
33103
|
var dataItem = cellProps.dataItem, field = cellProps.field;
|
|
33104
33104
|
var value = dataItem[field];
|
|
33105
33105
|
// Local state to hold selected option and filtered data
|
|
33106
|
-
var _a = useState(col.data.find(function (item) { return value; }) || null), selectedOption = _a[0], setSelectedOption = _a[1];
|
|
33106
|
+
var _a = useState(col.data.find(function (item) { return item.id === value.id; }) || null), selectedOption = _a[0], setSelectedOption = _a[1];
|
|
33107
33107
|
var _b = useState(col.data || []), filteredData = _b[0], setFilteredData = _b[1];
|
|
33108
33108
|
var disabledCondition = !col.editable;
|
|
33109
33109
|
// Handle dropdown selection change
|
package/dist/index.js
CHANGED
|
@@ -32980,7 +32980,7 @@ var OkGrid = function (_a) {
|
|
|
32980
32980
|
});
|
|
32981
32981
|
}, [setResultState, idGetter, dataItemKey, setSelectedState]);
|
|
32982
32982
|
var GridDataCellInput = function (cellProps, col) {
|
|
32983
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
32983
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
32984
32984
|
var value = cellProps.dataItem[cellProps.field];
|
|
32985
32985
|
var disabledCondition = !col.editable ||
|
|
32986
32986
|
(isNotSOUser &&
|
|
@@ -32993,7 +32993,7 @@ var OkGrid = function (_a) {
|
|
|
32993
32993
|
(((_g = cellProps.dataItem) === null || _g === void 0 ? void 0 : _g.formulaOff) && cellProps.field === 'newSD') ||
|
|
32994
32994
|
(((_h = cellProps.dataItem) === null || _h === void 0 ? void 0 : _h.formulaOff) && cellProps.field === 'newMean');
|
|
32995
32995
|
return (React__default["default"].createElement("td", __assign({}, cellProps.tdProps),
|
|
32996
|
-
React__default["default"].createElement(kendoReactInputs.Input, { value: value, onChange: function (e) { return GridDataInputChange(e, cellProps); }, disabled: disabledCondition > 0 ? true : false })));
|
|
32996
|
+
React__default["default"].createElement(kendoReactInputs.Input, { value: value, type: (_j = cellProps === null || cellProps === void 0 ? void 0 : cellProps.type) !== null && _j !== void 0 ? _j : 'text', onChange: function (e) { return GridDataInputChange(e, cellProps); }, disabled: disabledCondition > 0 ? true : false })));
|
|
32997
32997
|
};
|
|
32998
32998
|
var GridDataCellDatePicker = function (cellProps, col) {
|
|
32999
32999
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -33131,7 +33131,7 @@ var OkGrid = function (_a) {
|
|
|
33131
33131
|
var dataItem = cellProps.dataItem, field = cellProps.field;
|
|
33132
33132
|
var value = dataItem[field];
|
|
33133
33133
|
// Local state to hold selected option and filtered data
|
|
33134
|
-
var _a = React.useState(col.data.find(function (item) { return value; }) || null), selectedOption = _a[0], setSelectedOption = _a[1];
|
|
33134
|
+
var _a = React.useState(col.data.find(function (item) { return item.id === value.id; }) || null), selectedOption = _a[0], setSelectedOption = _a[1];
|
|
33135
33135
|
var _b = React.useState(col.data || []), filteredData = _b[0], setFilteredData = _b[1];
|
|
33136
33136
|
var disabledCondition = !col.editable;
|
|
33137
33137
|
// Handle dropdown selection change
|