elab_components 0.3.36 → 0.3.41

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.esm.js CHANGED
@@ -30981,7 +30981,7 @@ function Filters(_a) {
30981
30981
  return handleOnChange(e, item.field, item.type);
30982
30982
  }, ranges: defaultRanges, className: "input-box-width date-picker-range", value: selectedData[item.field], defaultValue: [moment().toDate(), moment().toDate()], placeholder: item.placeholder, disabled: (_f = (_e = selectedData[item.field]) === null || _e === void 0 ? void 0 : _e.disabled) !== null && _f !== void 0 ? _f : false })))));
30983
30983
  }),
30984
- ((_b = filterData[0]) === null || _b === void 0 ? void 0 : _b.field) !== undefined && (React__default.createElement(OkButton$1, { type: "button", onClick: filterSubmit, className: "external-filters", themeColor: "primary", style: { marginTop: '1.5rem', padding: '0px 30px' } }, "Apply")))))),
30984
+ ((_b = filterData[0]) === null || _b === void 0 ? void 0 : _b.field) !== undefined && (React__default.createElement(OkButton$1, { type: "button", onClick: filterSubmit, className: "external-filters", themeColor: "primary", style: { marginTop: '1.5rem', padding: '6px 30px' } }, "Apply")))))),
30985
30985
  !isQueryShow ? (React__default.createElement("div", { style: {
30986
30986
  display: 'flex',
30987
30987
  justifyContent: 'space-between',
@@ -31099,7 +31099,7 @@ var CheckboxCell = function (props, field, title) {
31099
31099
  var StyledGrid = styled(Grid$2)(templateObject_1$f || (templateObject_1$f = __makeTemplateObject([""], [""])));
31100
31100
  var OkGrid = function (_a) {
31101
31101
  var props = __rest(_a, []);
31102
- var resizable = props.resizable, reorderable = props.reorderable, dataItemKey = props.dataItemKey, selectField = props.selectField, apiColumnConfig = props.apiColumnConfig, allColumnsField = props.allColumnsField, filterData = props.filterData, showFilter = props.showFilter, size = props.size, expandColumn = props.expandColumn, isAction = props.isAction, queryShow = props.queryShow, filterAndGrouping = props.filterAndGrouping, editColumnOption = props.editColumnOption, gridDropdownlist = props.gridDropdownlist, childColumnConfig = props.childColumnConfig, childSelectField = props.childSelectField, externalActionsButtons = props.externalActionsButtons, data = props.data, setSelectedFilterData = props.setSelectedFilterData, selectedFilterData = props.selectedFilterData, navigateToNewPage = props.navigateToNewPage, handleGridData = props.handleGridData, handleExternalButtons = props.handleExternalButtons, handleUpdatedColumnConfig = props.handleUpdatedColumnConfig, childData = props.childData, totalCount = props.totalCount, externalFilterShow = props.externalFilterShow, showSearchInput = props.showSearchInput, allData = props.allData; props.isLoading;
31102
+ var resizable = props.resizable, reorderable = props.reorderable, dataItemKey = props.dataItemKey, selectField = props.selectField, apiColumnConfig = props.apiColumnConfig, allColumnsField = props.allColumnsField, filterData = props.filterData, showFilter = props.showFilter, size = props.size, expandColumn = props.expandColumn, isAction = props.isAction, queryShow = props.queryShow, filterAndGrouping = props.filterAndGrouping, editColumnOption = props.editColumnOption, gridDropdownlist = props.gridDropdownlist, childColumnConfig = props.childColumnConfig, childSelectField = props.childSelectField, externalActionsButtons = props.externalActionsButtons, data = props.data, setSelectedFilterData = props.setSelectedFilterData, selectedFilterData = props.selectedFilterData, navigateToNewPage = props.navigateToNewPage, handleGridData = props.handleGridData, handleExternalButtons = props.handleExternalButtons, handleUpdatedColumnConfig = props.handleUpdatedColumnConfig, childData = props.childData, totalCount = props.totalCount, externalFilterShow = props.externalFilterShow, showSearchInput = props.showSearchInput, allData = props.allData, isLoading = props.isLoading;
31103
31103
  console.log('totalCount', allData === null || allData === void 0 ? void 0 : allData.data);
31104
31104
  var idGetter = s$3(dataItemKey);
31105
31105
  var grid = React__default.useRef(null);
@@ -31433,7 +31433,7 @@ var OkGrid = function (_a) {
31433
31433
  };
31434
31434
  return (React__default.createElement("div", { className: "filters-container" },
31435
31435
  React__default.createElement(Filters, { isQueryShow: isQueryShow, searchKeyword: searchKeyword, setSearchKeyword: setSearchKeyword, onFilterChange: onFilterChange, editColumnOption: editColumnOption, setColumnOption: setColumnOption, showFilter: showFilter, externalFilterShow: externalFilterShow, showSearchInput: showSearchInput, setFilterShow: setFilterShow, filterShow: filterShow, excelExport: excelExportFunc, isExcelExportLoading: allData === null || allData === void 0 ? void 0 : allData.isLoading, selectedData: selectedData, queryShow: queryShow, setIsQueryShow: setIsQueryShow, filterAndGrouping: filterAndGrouping, externalActionsButtons: externalActionsButtons, handleExternalButtons: handleExternalButtons, filterData: filterData, combBoxFilterData: combBoxFilterData, handleOnChange: handleOnChange, handleLocationChange: handleLocationChange, filterSubmit: filterSubmit, allColumnsField: allColumnsField, setRunQueries: setRunQueries, selectedState: selectedState, detailSelectedState: detailSelectedState }),
31436
- data !== undefined ? (React__default.createElement("div", { style: { textAlign: 'center', margin: 'auto', marginTop: '70px' } },
31436
+ isLoading ? (React__default.createElement("div", { style: { textAlign: 'center', margin: 'auto', marginTop: '70px' } },
31437
31437
  React__default.createElement(Loader$2, { size: "large", type: "converging-spinner" }))) : (React__default.createElement(ExcelExport, { data: allData === null || allData === void 0 ? void 0 : allData.data, ref: excelExport },
31438
31438
  React__default.createElement(StyledGrid, __assign({ ref: grid, filterable: gridOptions.filter, groupable: gridOptions.groupable, reorderable: reorderable, resizable: resizable, data: dataResult, dataItemKey: dataItemKey, selectedField: selectField, editField: "inEdit", sortable: {
31439
31439
  mode: 'single',
package/dist/index.js CHANGED
@@ -31009,7 +31009,7 @@ function Filters(_a) {
31009
31009
  return handleOnChange(e, item.field, item.type);
31010
31010
  }, ranges: defaultRanges, className: "input-box-width date-picker-range", value: selectedData[item.field], defaultValue: [moment().toDate(), moment().toDate()], placeholder: item.placeholder, disabled: (_f = (_e = selectedData[item.field]) === null || _e === void 0 ? void 0 : _e.disabled) !== null && _f !== void 0 ? _f : false })))));
31011
31011
  }),
31012
- ((_b = filterData[0]) === null || _b === void 0 ? void 0 : _b.field) !== undefined && (React__default["default"].createElement(OkButton$1, { type: "button", onClick: filterSubmit, className: "external-filters", themeColor: "primary", style: { marginTop: '1.5rem', padding: '0px 30px' } }, "Apply")))))),
31012
+ ((_b = filterData[0]) === null || _b === void 0 ? void 0 : _b.field) !== undefined && (React__default["default"].createElement(OkButton$1, { type: "button", onClick: filterSubmit, className: "external-filters", themeColor: "primary", style: { marginTop: '1.5rem', padding: '6px 30px' } }, "Apply")))))),
31013
31013
  !isQueryShow ? (React__default["default"].createElement("div", { style: {
31014
31014
  display: 'flex',
31015
31015
  justifyContent: 'space-between',
@@ -31127,7 +31127,7 @@ var CheckboxCell = function (props, field, title) {
31127
31127
  var StyledGrid = styled__default["default"](kendoReactGrid.Grid)(templateObject_1$f || (templateObject_1$f = __makeTemplateObject([""], [""])));
31128
31128
  var OkGrid = function (_a) {
31129
31129
  var props = __rest(_a, []);
31130
- var resizable = props.resizable, reorderable = props.reorderable, dataItemKey = props.dataItemKey, selectField = props.selectField, apiColumnConfig = props.apiColumnConfig, allColumnsField = props.allColumnsField, filterData = props.filterData, showFilter = props.showFilter, size = props.size, expandColumn = props.expandColumn, isAction = props.isAction, queryShow = props.queryShow, filterAndGrouping = props.filterAndGrouping, editColumnOption = props.editColumnOption, gridDropdownlist = props.gridDropdownlist, childColumnConfig = props.childColumnConfig, childSelectField = props.childSelectField, externalActionsButtons = props.externalActionsButtons, data = props.data, setSelectedFilterData = props.setSelectedFilterData, selectedFilterData = props.selectedFilterData, navigateToNewPage = props.navigateToNewPage, handleGridData = props.handleGridData, handleExternalButtons = props.handleExternalButtons, handleUpdatedColumnConfig = props.handleUpdatedColumnConfig, childData = props.childData, totalCount = props.totalCount, externalFilterShow = props.externalFilterShow, showSearchInput = props.showSearchInput, allData = props.allData; props.isLoading;
31130
+ var resizable = props.resizable, reorderable = props.reorderable, dataItemKey = props.dataItemKey, selectField = props.selectField, apiColumnConfig = props.apiColumnConfig, allColumnsField = props.allColumnsField, filterData = props.filterData, showFilter = props.showFilter, size = props.size, expandColumn = props.expandColumn, isAction = props.isAction, queryShow = props.queryShow, filterAndGrouping = props.filterAndGrouping, editColumnOption = props.editColumnOption, gridDropdownlist = props.gridDropdownlist, childColumnConfig = props.childColumnConfig, childSelectField = props.childSelectField, externalActionsButtons = props.externalActionsButtons, data = props.data, setSelectedFilterData = props.setSelectedFilterData, selectedFilterData = props.selectedFilterData, navigateToNewPage = props.navigateToNewPage, handleGridData = props.handleGridData, handleExternalButtons = props.handleExternalButtons, handleUpdatedColumnConfig = props.handleUpdatedColumnConfig, childData = props.childData, totalCount = props.totalCount, externalFilterShow = props.externalFilterShow, showSearchInput = props.showSearchInput, allData = props.allData, isLoading = props.isLoading;
31131
31131
  console.log('totalCount', allData === null || allData === void 0 ? void 0 : allData.data);
31132
31132
  var idGetter = s$3(dataItemKey);
31133
31133
  var grid = React__default["default"].useRef(null);
@@ -31461,7 +31461,7 @@ var OkGrid = function (_a) {
31461
31461
  };
31462
31462
  return (React__default["default"].createElement("div", { className: "filters-container" },
31463
31463
  React__default["default"].createElement(Filters, { isQueryShow: isQueryShow, searchKeyword: searchKeyword, setSearchKeyword: setSearchKeyword, onFilterChange: onFilterChange, editColumnOption: editColumnOption, setColumnOption: setColumnOption, showFilter: showFilter, externalFilterShow: externalFilterShow, showSearchInput: showSearchInput, setFilterShow: setFilterShow, filterShow: filterShow, excelExport: excelExportFunc, isExcelExportLoading: allData === null || allData === void 0 ? void 0 : allData.isLoading, selectedData: selectedData, queryShow: queryShow, setIsQueryShow: setIsQueryShow, filterAndGrouping: filterAndGrouping, externalActionsButtons: externalActionsButtons, handleExternalButtons: handleExternalButtons, filterData: filterData, combBoxFilterData: combBoxFilterData, handleOnChange: handleOnChange, handleLocationChange: handleLocationChange, filterSubmit: filterSubmit, allColumnsField: allColumnsField, setRunQueries: setRunQueries, selectedState: selectedState, detailSelectedState: detailSelectedState }),
31464
- data !== undefined ? (React__default["default"].createElement("div", { style: { textAlign: 'center', margin: 'auto', marginTop: '70px' } },
31464
+ isLoading ? (React__default["default"].createElement("div", { style: { textAlign: 'center', margin: 'auto', marginTop: '70px' } },
31465
31465
  React__default["default"].createElement(kendoReactIndicators.Loader, { size: "large", type: "converging-spinner" }))) : (React__default["default"].createElement(kendoReactExcelExport.ExcelExport, { data: allData === null || allData === void 0 ? void 0 : allData.data, ref: excelExport },
31466
31466
  React__default["default"].createElement(StyledGrid, __assign({ ref: grid, filterable: gridOptions.filter, groupable: gridOptions.groupable, reorderable: reorderable, resizable: resizable, data: dataResult, dataItemKey: dataItemKey, selectedField: selectField, editField: "inEdit", sortable: {
31467
31467
  mode: 'single',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elab_components",
3
- "version": "0.3.36",
3
+ "version": "0.3.41",
4
4
  "private": false,
5
5
  "author": "Amar",
6
6
  "main": "dist/index.js",