oa-componentbook 1.0.1-stage.401 → 1.0.1-stage.402
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.
|
@@ -149,12 +149,12 @@ function GenricLayOut(_ref) {
|
|
|
149
149
|
payload: true
|
|
150
150
|
});
|
|
151
151
|
if (getInitialData) {
|
|
152
|
-
var
|
|
152
|
+
var _config$tabs, _state$misc;
|
|
153
153
|
const {
|
|
154
154
|
error,
|
|
155
155
|
data
|
|
156
|
-
} = await (getInitialData === null || getInitialData === void 0 ? void 0 : getInitialData(_objectSpread(_objectSpread({},
|
|
157
|
-
selectedTab:
|
|
156
|
+
} = await (getInitialData === null || getInitialData === void 0 ? void 0 : getInitialData(_objectSpread(_objectSpread({}, config !== null && config !== void 0 && (_config$tabs = config.tabs) !== null && _config$tabs !== void 0 && _config$tabs.active ? {
|
|
157
|
+
selectedTab: config.tabs.active
|
|
158
158
|
} : {}), (_state$misc = state === null || state === void 0 ? void 0 : state.misc) !== null && _state$misc !== void 0 ? _state$misc : {})));
|
|
159
159
|
if (error) {
|
|
160
160
|
showErrorNotification(error);
|
|
@@ -250,7 +250,7 @@ function GenricLayOut(_ref) {
|
|
|
250
250
|
});
|
|
251
251
|
if (value === "") {
|
|
252
252
|
if (handleInputSearchChange) {
|
|
253
|
-
var _state$inputSearch, _state$
|
|
253
|
+
var _state$inputSearch, _state$tabs, _customDrawer$applied, _config$tables, _config$tables2, _tables$sorting, _tables$sorting2, _header$subHeading, _header$subHeading2;
|
|
254
254
|
dispatch({
|
|
255
255
|
type: _layoutReducer.actionTypes.SET_LOADING,
|
|
256
256
|
payload: true
|
|
@@ -258,7 +258,7 @@ function GenricLayOut(_ref) {
|
|
|
258
258
|
const {
|
|
259
259
|
error,
|
|
260
260
|
data
|
|
261
|
-
} = await handleInputSearchChange(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, state === null || state === void 0 || (_state$inputSearch = state.inputSearch) === null || _state$inputSearch === void 0 ? void 0 : _state$inputSearch.request), state !== null && state !== void 0 && (_state$
|
|
261
|
+
} = await handleInputSearchChange(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, state === null || state === void 0 || (_state$inputSearch = state.inputSearch) === null || _state$inputSearch === void 0 ? void 0 : _state$inputSearch.request), state !== null && state !== void 0 && (_state$tabs = state.tabs) !== null && _state$tabs !== void 0 && _state$tabs.active ? {
|
|
262
262
|
selectedTab: state.tabs.active
|
|
263
263
|
} : {}), (customDrawer === null || customDrawer === void 0 ? void 0 : customDrawer.appliedFilters) && Object.keys((_customDrawer$applied = customDrawer === null || customDrawer === void 0 ? void 0 : customDrawer.appliedFilters) !== null && _customDrawer$applied !== void 0 ? _customDrawer$applied : {}).length > 0 && _objectSpread({}, customDrawer === null || customDrawer === void 0 ? void 0 : customDrawer.appliedFilters)), {}, {
|
|
264
264
|
current: config === null || config === void 0 || (_config$tables = config.tables) === null || _config$tables === void 0 || (_config$tables = _config$tables.pagination) === null || _config$tables === void 0 ? void 0 : _config$tables.current,
|
|
@@ -328,11 +328,11 @@ function GenricLayOut(_ref) {
|
|
|
328
328
|
payload: trimedValue
|
|
329
329
|
});
|
|
330
330
|
if (handleInputSearchEnter) {
|
|
331
|
-
var _state$
|
|
331
|
+
var _state$tabs2, _config$tables5, _config$tables6, _tables$sorting3, _tables$sorting4, _customDrawer$applied2, _header$subHeading3, _header$subHeading4;
|
|
332
332
|
const {
|
|
333
333
|
error,
|
|
334
334
|
data
|
|
335
|
-
} = await handleInputSearchEnter(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, state !== null && state !== void 0 && (_state$
|
|
335
|
+
} = await handleInputSearchEnter(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, state !== null && state !== void 0 && (_state$tabs2 = state.tabs) !== null && _state$tabs2 !== void 0 && _state$tabs2.active ? {
|
|
336
336
|
selectedTab: state.tabs.active
|
|
337
337
|
} : {}), {}, {
|
|
338
338
|
searchedValue: trimedValue,
|
|
@@ -395,7 +395,7 @@ function GenricLayOut(_ref) {
|
|
|
395
395
|
});
|
|
396
396
|
if (value === "") {
|
|
397
397
|
if (handleDropdownSearchInputChange) {
|
|
398
|
-
var _state$
|
|
398
|
+
var _state$tabs3, _config$tables9, _config$tables10, _tables$sorting5, _tables$sorting6, _tables$filter, _staticFilter$data, _customDrawer$applied3, _header$subHeading5, _header$subHeading6, _state$misc2, _state$staticFilter$m, _state$staticFilter;
|
|
399
399
|
dispatch({
|
|
400
400
|
type: _layoutReducer.actionTypes.SET_LOADING,
|
|
401
401
|
payload: true
|
|
@@ -404,7 +404,7 @@ function GenricLayOut(_ref) {
|
|
|
404
404
|
error,
|
|
405
405
|
data
|
|
406
406
|
} = await handleDropdownSearchInputChange(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
407
|
-
selectedTab: state === null || state === void 0 || (_state$
|
|
407
|
+
selectedTab: state === null || state === void 0 || (_state$tabs3 = state.tabs) === null || _state$tabs3 === void 0 ? void 0 : _state$tabs3.active,
|
|
408
408
|
current: config === null || config === void 0 || (_config$tables9 = config.tables) === null || _config$tables9 === void 0 || (_config$tables9 = _config$tables9.pagination) === null || _config$tables9 === void 0 ? void 0 : _config$tables9.current,
|
|
409
409
|
pageSize: config === null || config === void 0 || (_config$tables10 = config.tables) === null || _config$tables10 === void 0 || (_config$tables10 = _config$tables10.pagination) === null || _config$tables10 === void 0 ? void 0 : _config$tables10.pageSize,
|
|
410
410
|
field: tables === null || tables === void 0 || (_tables$sorting5 = tables.sorting) === null || _tables$sorting5 === void 0 ? void 0 : _tables$sorting5.sortBy,
|
|
@@ -487,13 +487,13 @@ function GenricLayOut(_ref) {
|
|
|
487
487
|
payload: value
|
|
488
488
|
});
|
|
489
489
|
if (handleDropdownSearchEnter) {
|
|
490
|
-
var _state$
|
|
490
|
+
var _state$tabs4, _config$tables13, _config$tables14, _tables$sorting7, _tables$sorting8, _tables$filter2, _staticFilter$data2, _customDrawer$applied4, _header$subHeading7, _header$subHeading8, _state$misc3, _state$staticFilter$m2, _state$staticFilter2;
|
|
491
491
|
const {
|
|
492
492
|
error,
|
|
493
493
|
data
|
|
494
494
|
} = await handleDropdownSearchEnter(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
495
495
|
searchedValue: value,
|
|
496
|
-
selectedTab: state === null || state === void 0 || (_state$
|
|
496
|
+
selectedTab: state === null || state === void 0 || (_state$tabs4 = state.tabs) === null || _state$tabs4 === void 0 ? void 0 : _state$tabs4.active,
|
|
497
497
|
selectedOption: state === null || state === void 0 ? void 0 : state.dropdownSearch.selectedOption,
|
|
498
498
|
current: config === null || config === void 0 || (_config$tables13 = config.tables) === null || _config$tables13 === void 0 || (_config$tables13 = _config$tables13.pagination) === null || _config$tables13 === void 0 ? void 0 : _config$tables13.current,
|
|
499
499
|
pageSize: config === null || config === void 0 || (_config$tables14 = config.tables) === null || _config$tables14 === void 0 || (_config$tables14 = _config$tables14.pagination) === null || _config$tables14 === void 0 ? void 0 : _config$tables14.pageSize,
|
|
@@ -669,12 +669,12 @@ function GenricLayOut(_ref) {
|
|
|
669
669
|
payload: null
|
|
670
670
|
});
|
|
671
671
|
if (handleDropdownSearchClear) {
|
|
672
|
-
var _state$
|
|
672
|
+
var _state$tabs5, _config$tables21, _config$tables22, _tables$sorting9, _tables$sorting10, _tables$filter3, _staticFilter$data4, _customDrawer$applied6, _header$subHeading11, _header$subHeading12, _state$misc5, _state$staticFilter$m4, _state$staticFilter4;
|
|
673
673
|
const {
|
|
674
674
|
error,
|
|
675
675
|
data
|
|
676
676
|
} = await handleDropdownSearchClear(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
677
|
-
selectedTab: state === null || state === void 0 || (_state$
|
|
677
|
+
selectedTab: state === null || state === void 0 || (_state$tabs5 = state.tabs) === null || _state$tabs5 === void 0 ? void 0 : _state$tabs5.active,
|
|
678
678
|
current: config === null || config === void 0 || (_config$tables21 = config.tables) === null || _config$tables21 === void 0 || (_config$tables21 = _config$tables21.pagination) === null || _config$tables21 === void 0 ? void 0 : _config$tables21.current,
|
|
679
679
|
pageSize: config === null || config === void 0 || (_config$tables22 = config.tables) === null || _config$tables22 === void 0 || (_config$tables22 = _config$tables22.pagination) === null || _config$tables22 === void 0 ? void 0 : _config$tables22.pageSize,
|
|
680
680
|
field: tables === null || tables === void 0 || (_tables$sorting9 = tables.sorting) === null || _tables$sorting9 === void 0 ? void 0 : _tables$sorting9.sortBy,
|
|
@@ -733,11 +733,11 @@ function GenricLayOut(_ref) {
|
|
|
733
733
|
payload: null
|
|
734
734
|
});
|
|
735
735
|
if (handleInputSearchClear) {
|
|
736
|
-
var _state$
|
|
736
|
+
var _state$tabs6, _config$tables25, _config$tables26, _tables$sorting11, _tables$sorting12, _customDrawer$applied7, _header$subHeading13, _header$subHeading14, _state$misc6;
|
|
737
737
|
const {
|
|
738
738
|
error,
|
|
739
739
|
data
|
|
740
|
-
} = await handleInputSearchClear(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, state !== null && state !== void 0 && (_state$
|
|
740
|
+
} = await handleInputSearchClear(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, state !== null && state !== void 0 && (_state$tabs6 = state.tabs) !== null && _state$tabs6 !== void 0 && _state$tabs6.active ? {
|
|
741
741
|
selectedTab: state.tabs.active
|
|
742
742
|
} : {}), {}, {
|
|
743
743
|
current: config === null || config === void 0 || (_config$tables25 = config.tables) === null || _config$tables25 === void 0 || (_config$tables25 = _config$tables25.pagination) === null || _config$tables25 === void 0 ? void 0 : _config$tables25.current,
|
|
@@ -823,8 +823,8 @@ function GenricLayOut(_ref) {
|
|
|
823
823
|
type: _layoutReducer.actionTypes.NESTED_DRAWER_OPEN
|
|
824
824
|
});
|
|
825
825
|
} else {
|
|
826
|
-
var _config$drawer, _state$tabs$active, _state$
|
|
827
|
-
const record = _objectSpread({}, config === null || config === void 0 || (_config$drawer = config.drawer) === null || _config$drawer === void 0 || (_config$drawer = _config$drawer.data) === null || _config$drawer === void 0 || (_config$drawer = _config$drawer[(_state$tabs$active = state === null || state === void 0 || (_state$
|
|
826
|
+
var _config$drawer, _state$tabs$active, _state$tabs7;
|
|
827
|
+
const record = _objectSpread({}, config === null || config === void 0 || (_config$drawer = config.drawer) === null || _config$drawer === void 0 || (_config$drawer = _config$drawer.data) === null || _config$drawer === void 0 || (_config$drawer = _config$drawer[(_state$tabs$active = state === null || state === void 0 || (_state$tabs7 = state.tabs) === null || _state$tabs7 === void 0 ? void 0 : _state$tabs7.active) !== null && _state$tabs$active !== void 0 ? _state$tabs$active : "default"]) === null || _config$drawer === void 0 ? void 0 : _config$drawer[selectkey]);
|
|
828
828
|
const dynamicConfig = (0, _staticConfigResolver.removeHidden)((0, _staticConfigResolver.default)(record, data !== null && data !== void 0 ? data : {}));
|
|
829
829
|
dispatch({
|
|
830
830
|
type: _layoutReducer.actionTypes.SET_DRAWER,
|
|
@@ -1090,7 +1090,7 @@ function GenricLayOut(_ref) {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
});
|
|
1092
1092
|
if (handleTableChange) {
|
|
1093
|
-
var _state$dropdownSearch3, _state$inputSearch4, _state$
|
|
1093
|
+
var _state$dropdownSearch3, _state$inputSearch4, _state$tabs8, _header$subHeading15, _header$subHeading16, _staticFilter$data5, _customDrawer$applied8, _state$misc8, _state$staticFilter$m5, _state$staticFilter5;
|
|
1094
1094
|
dispatch({
|
|
1095
1095
|
type: _layoutReducer.actionTypes.SET_LOADING,
|
|
1096
1096
|
payload: true
|
|
@@ -1104,7 +1104,7 @@ function GenricLayOut(_ref) {
|
|
|
1104
1104
|
}), (state === null || state === void 0 || (_state$inputSearch4 = state.inputSearch) === null || _state$inputSearch4 === void 0 || (_state$inputSearch4 = _state$inputSearch4.value) === null || _state$inputSearch4 === void 0 ? void 0 : _state$inputSearch4.trim()) && {
|
|
1105
1105
|
searchedValue: state.inputSearch.value
|
|
1106
1106
|
}), {}, {
|
|
1107
|
-
selectedTab: state === null || state === void 0 || (_state$
|
|
1107
|
+
selectedTab: state === null || state === void 0 || (_state$tabs8 = state.tabs) === null || _state$tabs8 === void 0 ? void 0 : _state$tabs8.active,
|
|
1108
1108
|
current: current,
|
|
1109
1109
|
pageSize: pageSize,
|
|
1110
1110
|
columnFilterStatus: _f,
|
|
@@ -1154,9 +1154,9 @@ function GenricLayOut(_ref) {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
});
|
|
1156
1156
|
if (tables !== null && tables !== void 0 && tables.selectionType) {
|
|
1157
|
-
var _state$
|
|
1157
|
+
var _state$tabs9;
|
|
1158
1158
|
const selectionKey = Object.keys(tables === null || tables === void 0 ? void 0 : tables.selectionType).find(key => (tables === null || tables === void 0 ? void 0 : tables.selectionType[key]) === "checkbox");
|
|
1159
|
-
if ((state === null || state === void 0 || (_state$
|
|
1159
|
+
if ((state === null || state === void 0 || (_state$tabs9 = state.tabs) === null || _state$tabs9 === void 0 ? void 0 : _state$tabs9.activeKey) !== selectionKey) {
|
|
1160
1160
|
dispatch({
|
|
1161
1161
|
type: _layoutReducer.actionTypes.TABLE_FOOTER_TOGGLE,
|
|
1162
1162
|
payload: false
|
|
@@ -1309,8 +1309,8 @@ function GenricLayOut(_ref) {
|
|
|
1309
1309
|
*/
|
|
1310
1310
|
|
|
1311
1311
|
const drawerFormOnFinish = async formData => {
|
|
1312
|
-
var _state$drawer, _state$tabs$active2, _state$
|
|
1313
|
-
const record = _objectSpread({}, state === null || state === void 0 || (_state$drawer = state.drawer) === null || _state$drawer === void 0 || (_state$drawer = _state$drawer.data) === null || _state$drawer === void 0 || (_state$drawer = _state$drawer[(_state$tabs$active2 = state === null || state === void 0 || (_state$
|
|
1312
|
+
var _state$drawer, _state$tabs$active2, _state$tabs10, _state$drawer2;
|
|
1313
|
+
const record = _objectSpread({}, state === null || state === void 0 || (_state$drawer = state.drawer) === null || _state$drawer === void 0 || (_state$drawer = _state$drawer.data) === null || _state$drawer === void 0 || (_state$drawer = _state$drawer[(_state$tabs$active2 = state === null || state === void 0 || (_state$tabs10 = state.tabs) === null || _state$tabs10 === void 0 ? void 0 : _state$tabs10.active) !== null && _state$tabs$active2 !== void 0 ? _state$tabs$active2 : "default"]) === null || _state$drawer === void 0 || (_state$drawer = _state$drawer[state === null || state === void 0 || (_state$drawer2 = state.drawer) === null || _state$drawer2 === void 0 ? void 0 : _state$drawer2.active]) === null || _state$drawer === void 0 ? void 0 : _state$drawer.value);
|
|
1314
1314
|
if ((formData === null || formData === void 0 ? void 0 : formData.type) === "openNestedDrawer") {
|
|
1315
1315
|
customTableChange(record, _objectSpread({}, formData));
|
|
1316
1316
|
return;
|
|
@@ -1344,7 +1344,7 @@ function GenricLayOut(_ref) {
|
|
|
1344
1344
|
|
|
1345
1345
|
// If there are remaining filters, reapply them
|
|
1346
1346
|
if (Object.keys(currentFilters).length > 0) {
|
|
1347
|
-
var _state$dropdownSearch5, _state$inputSearch5, _state$
|
|
1347
|
+
var _state$dropdownSearch5, _state$inputSearch5, _state$tabs11, _tables$pagination3, _tables$pagination4, _tables$filter6, _tables$sorting15, _header$subHeading19, _header$subHeading20, _staticFilter$data6, _tables$sorting16, _state$misc12, _state$staticFilter$m7, _state$staticFilter7;
|
|
1348
1348
|
const {
|
|
1349
1349
|
error,
|
|
1350
1350
|
data
|
|
@@ -1357,7 +1357,7 @@ function GenricLayOut(_ref) {
|
|
|
1357
1357
|
filterOn: currentFilters === null || currentFilters === void 0 ? void 0 : currentFilters.filterBy,
|
|
1358
1358
|
fromDate: currentFilters === null || currentFilters === void 0 ? void 0 : currentFilters.fromDate,
|
|
1359
1359
|
toDate: currentFilters === null || currentFilters === void 0 ? void 0 : currentFilters.toDate,
|
|
1360
|
-
selectedTab: state === null || state === void 0 || (_state$
|
|
1360
|
+
selectedTab: state === null || state === void 0 || (_state$tabs11 = state.tabs) === null || _state$tabs11 === void 0 ? void 0 : _state$tabs11.active,
|
|
1361
1361
|
current: tables === null || tables === void 0 || (_tables$pagination3 = tables.pagination) === null || _tables$pagination3 === void 0 ? void 0 : _tables$pagination3.current,
|
|
1362
1362
|
pageSize: tables === null || tables === void 0 || (_tables$pagination4 = tables.pagination) === null || _tables$pagination4 === void 0 ? void 0 : _tables$pagination4.pageSize
|
|
1363
1363
|
}, (tables === null || tables === void 0 || (_tables$filter6 = tables.filter) === null || _tables$filter6 === void 0 ? void 0 : _tables$filter6.key) && {
|
|
@@ -1404,7 +1404,7 @@ function GenricLayOut(_ref) {
|
|
|
1404
1404
|
const filterFormOnFinish = async formData => {
|
|
1405
1405
|
// Check if this is a cancel/clear action - check both buttonClickType and the actual button data
|
|
1406
1406
|
if (formData.type === "FILTER-CANCEL") {
|
|
1407
|
-
var _state$dropdownSearch6, _state$inputSearch6, _state$
|
|
1407
|
+
var _state$dropdownSearch6, _state$inputSearch6, _state$tabs12, _tables$pagination5, _tables$pagination6, _tables$filter7, _tables$sorting17, _header$subHeading21, _header$subHeading22, _staticFilter$data7, _tables$sorting18, _state$misc13, _state$staticFilter$m8, _state$staticFilter8;
|
|
1408
1408
|
if (isFiltersEmpty(customDrawer === null || customDrawer === void 0 ? void 0 : customDrawer.appliedFilters)) {
|
|
1409
1409
|
dispatch({
|
|
1410
1410
|
type: _layoutReducer.actionTypes.CUSTOM_DRAWER_CLOSED
|
|
@@ -1420,7 +1420,7 @@ function GenricLayOut(_ref) {
|
|
|
1420
1420
|
}), (state === null || state === void 0 || (_state$inputSearch6 = state.inputSearch) === null || _state$inputSearch6 === void 0 || (_state$inputSearch6 = _state$inputSearch6.value) === null || _state$inputSearch6 === void 0 ? void 0 : _state$inputSearch6.trim()) && {
|
|
1421
1421
|
searchedValue: state.inputSearch.value
|
|
1422
1422
|
}), {}, {
|
|
1423
|
-
selectedTab: state === null || state === void 0 || (_state$
|
|
1423
|
+
selectedTab: state === null || state === void 0 || (_state$tabs12 = state.tabs) === null || _state$tabs12 === void 0 ? void 0 : _state$tabs12.active,
|
|
1424
1424
|
current: tables === null || tables === void 0 || (_tables$pagination5 = tables.pagination) === null || _tables$pagination5 === void 0 ? void 0 : _tables$pagination5.current,
|
|
1425
1425
|
pageSize: tables === null || tables === void 0 || (_tables$pagination6 = tables.pagination) === null || _tables$pagination6 === void 0 ? void 0 : _tables$pagination6.pageSize
|
|
1426
1426
|
}, (tables === null || tables === void 0 || (_tables$filter7 = tables.filter) === null || _tables$filter7 === void 0 ? void 0 : _tables$filter7.key) && {
|
|
@@ -1483,7 +1483,7 @@ function GenricLayOut(_ref) {
|
|
|
1483
1483
|
|
|
1484
1484
|
// Only process filter data if this is actually a filter drawer
|
|
1485
1485
|
if (formData.type === "FILTER-SUBMIT") {
|
|
1486
|
-
var _state$dropdownSearch7, _state$inputSearch7, _ref4, _appliedFilters$filte, _state$
|
|
1486
|
+
var _state$dropdownSearch7, _state$inputSearch7, _ref4, _appliedFilters$filte, _state$tabs13, _config$tables29, _config$tables30, _tables$filter8, _tables$sorting19, _header$subHeading23, _header$subHeading24, _staticFilter$data8, _tables$sorting20, _state$misc14, _state$staticFilter$m9, _state$staticFilter9;
|
|
1487
1487
|
const appliedFilters = {};
|
|
1488
1488
|
Object.keys(formData).forEach(key => {
|
|
1489
1489
|
const value = formData[key];
|
|
@@ -1509,7 +1509,7 @@ function GenricLayOut(_ref) {
|
|
|
1509
1509
|
filterOn: (_ref4 = (_appliedFilters$filte = appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters.filterBy) !== null && _appliedFilters$filte !== void 0 ? _appliedFilters$filte : customDrawer === null || customDrawer === void 0 ? void 0 : customDrawer.defaultAppliedFilter) !== null && _ref4 !== void 0 ? _ref4 : "",
|
|
1510
1510
|
fromDate: appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters.fromDate,
|
|
1511
1511
|
toDate: appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters.toDate,
|
|
1512
|
-
selectedTab: state === null || state === void 0 || (_state$
|
|
1512
|
+
selectedTab: state === null || state === void 0 || (_state$tabs13 = state.tabs) === null || _state$tabs13 === void 0 ? void 0 : _state$tabs13.active,
|
|
1513
1513
|
current: config === null || config === void 0 || (_config$tables29 = config.tables) === null || _config$tables29 === void 0 || (_config$tables29 = _config$tables29.pagination) === null || _config$tables29 === void 0 ? void 0 : _config$tables29.current,
|
|
1514
1514
|
pageSize: config === null || config === void 0 || (_config$tables30 = config.tables) === null || _config$tables30 === void 0 || (_config$tables30 = _config$tables30.pagination) === null || _config$tables30 === void 0 ? void 0 : _config$tables30.pageSize
|
|
1515
1515
|
}, (tables === null || tables === void 0 || (_tables$filter8 = tables.filter) === null || _tables$filter8 === void 0 ? void 0 : _tables$filter8.key) && {
|
|
@@ -1577,7 +1577,7 @@ function GenricLayOut(_ref) {
|
|
|
1577
1577
|
}
|
|
1578
1578
|
});
|
|
1579
1579
|
if (handleSecondaryTableCTAClick) {
|
|
1580
|
-
var _state$dropdownSearch8, _state$inputSearch8, _state$
|
|
1580
|
+
var _state$dropdownSearch8, _state$inputSearch8, _state$tabs14, _tables$pagination7, _tables$pagination8, _tables$filter9, _tables$sorting21, _tables$sorting22, _header$subHeading25, _header$subHeading26, _staticFilter$data9, _state$misc15, _state$staticFilter$m10, _state$staticFilter10;
|
|
1581
1581
|
const {
|
|
1582
1582
|
error,
|
|
1583
1583
|
data
|
|
@@ -1587,7 +1587,7 @@ function GenricLayOut(_ref) {
|
|
|
1587
1587
|
}), (state === null || state === void 0 || (_state$inputSearch8 = state.inputSearch) === null || _state$inputSearch8 === void 0 || (_state$inputSearch8 = _state$inputSearch8.value) === null || _state$inputSearch8 === void 0 ? void 0 : _state$inputSearch8.trim()) && {
|
|
1588
1588
|
searchedValue: state.inputSearch.value
|
|
1589
1589
|
}), {}, {
|
|
1590
|
-
selectedTab: state === null || state === void 0 || (_state$
|
|
1590
|
+
selectedTab: state === null || state === void 0 || (_state$tabs14 = state.tabs) === null || _state$tabs14 === void 0 ? void 0 : _state$tabs14.active,
|
|
1591
1591
|
current: tables === null || tables === void 0 || (_tables$pagination7 = tables.pagination) === null || _tables$pagination7 === void 0 ? void 0 : _tables$pagination7.current,
|
|
1592
1592
|
pageSize: tables === null || tables === void 0 || (_tables$pagination8 = tables.pagination) === null || _tables$pagination8 === void 0 ? void 0 : _tables$pagination8.pageSize,
|
|
1593
1593
|
columnFilterStatus: tables === null || tables === void 0 || (_tables$filter9 = tables.filter) === null || _tables$filter9 === void 0 ? void 0 : _tables$filter9.value,
|
|
@@ -1618,7 +1618,7 @@ function GenricLayOut(_ref) {
|
|
|
1618
1618
|
}
|
|
1619
1619
|
};
|
|
1620
1620
|
const onClearAllAppliedFilters = async () => {
|
|
1621
|
-
var _state$dropdownSearch9, _state$inputSearch9, _state$
|
|
1621
|
+
var _state$dropdownSearch9, _state$inputSearch9, _state$tabs15, _tables$pagination9, _tables$pagination10, _tables$filter10, _tables$sorting23, _header$subHeading27, _header$subHeading28, _staticFilter$data10, _tables$sorting24, _state$misc16, _state$staticFilter$m11, _state$staticFilter11;
|
|
1622
1622
|
const {
|
|
1623
1623
|
error,
|
|
1624
1624
|
data
|
|
@@ -1628,7 +1628,7 @@ function GenricLayOut(_ref) {
|
|
|
1628
1628
|
}), (state === null || state === void 0 || (_state$inputSearch9 = state.inputSearch) === null || _state$inputSearch9 === void 0 || (_state$inputSearch9 = _state$inputSearch9.value) === null || _state$inputSearch9 === void 0 ? void 0 : _state$inputSearch9.trim()) && {
|
|
1629
1629
|
searchedValue: state.inputSearch.value
|
|
1630
1630
|
}), {}, {
|
|
1631
|
-
selectedTab: state === null || state === void 0 || (_state$
|
|
1631
|
+
selectedTab: state === null || state === void 0 || (_state$tabs15 = state.tabs) === null || _state$tabs15 === void 0 ? void 0 : _state$tabs15.active,
|
|
1632
1632
|
current: tables === null || tables === void 0 || (_tables$pagination9 = tables.pagination) === null || _tables$pagination9 === void 0 ? void 0 : _tables$pagination9.current,
|
|
1633
1633
|
pageSize: tables === null || tables === void 0 || (_tables$pagination10 = tables.pagination) === null || _tables$pagination10 === void 0 ? void 0 : _tables$pagination10.pageSize
|
|
1634
1634
|
}, (tables === null || tables === void 0 || (_tables$filter10 = tables.filter) === null || _tables$filter10 === void 0 ? void 0 : _tables$filter10.key) && {
|
|
@@ -1824,7 +1824,7 @@ function GenricLayOut(_ref) {
|
|
|
1824
1824
|
};
|
|
1825
1825
|
const rightHeaderSecondButtonClick = async () => {
|
|
1826
1826
|
if ((rightHeaderSecondButton === null || rightHeaderSecondButton === void 0 ? void 0 : rightHeaderSecondButton.action) === "RESET_CUSTOM_DRAWER") {
|
|
1827
|
-
var _state$dropdownSearch10, _state$inputSearch10, _state$
|
|
1827
|
+
var _state$dropdownSearch10, _state$inputSearch10, _state$tabs16, _tables$pagination11, _tables$pagination12, _tables$filter11, _tables$sorting25, _header$subHeading29, _header$subHeading30, _staticFilter$data11, _tables$sorting26, _state$misc18, _state$staticFilter$m12, _state$staticFilter12;
|
|
1828
1828
|
const {
|
|
1829
1829
|
error,
|
|
1830
1830
|
data
|
|
@@ -1834,7 +1834,7 @@ function GenricLayOut(_ref) {
|
|
|
1834
1834
|
}), (state === null || state === void 0 || (_state$inputSearch10 = state.inputSearch) === null || _state$inputSearch10 === void 0 || (_state$inputSearch10 = _state$inputSearch10.value) === null || _state$inputSearch10 === void 0 ? void 0 : _state$inputSearch10.trim()) && {
|
|
1835
1835
|
searchedValue: state.inputSearch.value
|
|
1836
1836
|
}), {}, {
|
|
1837
|
-
selectedTab: state === null || state === void 0 || (_state$
|
|
1837
|
+
selectedTab: state === null || state === void 0 || (_state$tabs16 = state.tabs) === null || _state$tabs16 === void 0 ? void 0 : _state$tabs16.active,
|
|
1838
1838
|
current: tables === null || tables === void 0 || (_tables$pagination11 = tables.pagination) === null || _tables$pagination11 === void 0 ? void 0 : _tables$pagination11.current,
|
|
1839
1839
|
pageSize: tables === null || tables === void 0 || (_tables$pagination12 = tables.pagination) === null || _tables$pagination12 === void 0 ? void 0 : _tables$pagination12.pageSize
|
|
1840
1840
|
}, (tables === null || tables === void 0 || (_tables$filter11 = tables.filter) === null || _tables$filter11 === void 0 ? void 0 : _tables$filter11.key) && {
|
|
@@ -1900,7 +1900,7 @@ function GenricLayOut(_ref) {
|
|
|
1900
1900
|
};
|
|
1901
1901
|
const handleSubHeadingSelect = async val => {
|
|
1902
1902
|
if (val) {
|
|
1903
|
-
var _state$
|
|
1903
|
+
var _state$tabs17, _tables$pagination13, _tables$pagination14, _state$misc19;
|
|
1904
1904
|
dispatch({
|
|
1905
1905
|
type: _layoutReducer.actionTypes.SET_SUBHEADING_SELECTED_CONFIG,
|
|
1906
1906
|
payload: val
|
|
@@ -1909,7 +1909,7 @@ function GenricLayOut(_ref) {
|
|
|
1909
1909
|
error,
|
|
1910
1910
|
data
|
|
1911
1911
|
} = await handleSubHeadingSelectClick(_objectSpread({
|
|
1912
|
-
selectedTab: state === null || state === void 0 || (_state$
|
|
1912
|
+
selectedTab: state === null || state === void 0 || (_state$tabs17 = state.tabs) === null || _state$tabs17 === void 0 ? void 0 : _state$tabs17.active,
|
|
1913
1913
|
searchedValue: inputSearch === null || inputSearch === void 0 ? void 0 : inputSearch.value,
|
|
1914
1914
|
current: tables === null || tables === void 0 || (_tables$pagination13 = tables.pagination) === null || _tables$pagination13 === void 0 ? void 0 : _tables$pagination13.current,
|
|
1915
1915
|
pageSize: tables === null || tables === void 0 || (_tables$pagination14 = tables.pagination) === null || _tables$pagination14 === void 0 ? void 0 : _tables$pagination14.pageSize,
|
|
@@ -1950,7 +1950,7 @@ function GenricLayOut(_ref) {
|
|
|
1950
1950
|
|
|
1951
1951
|
// Call the handler if provided
|
|
1952
1952
|
if (handleTableChange) {
|
|
1953
|
-
var _state$dropdownSearch11, _state$inputSearch11, _state$
|
|
1953
|
+
var _state$dropdownSearch11, _state$inputSearch11, _state$tabs18, _tables$pagination15, _tables$sorting27, _tables$sorting28, _header$subHeading31, _header$subHeading32, _customDrawer$applied10, _state$misc20;
|
|
1954
1954
|
dispatch({
|
|
1955
1955
|
type: _layoutReducer.actionTypes.SET_LOADING,
|
|
1956
1956
|
payload: true
|
|
@@ -1964,7 +1964,7 @@ function GenricLayOut(_ref) {
|
|
|
1964
1964
|
}), (state === null || state === void 0 || (_state$inputSearch11 = state.inputSearch) === null || _state$inputSearch11 === void 0 || (_state$inputSearch11 = _state$inputSearch11.value) === null || _state$inputSearch11 === void 0 ? void 0 : _state$inputSearch11.trim()) && {
|
|
1965
1965
|
searchedValue: state.inputSearch.value
|
|
1966
1966
|
}), {}, {
|
|
1967
|
-
selectedTab: state === null || state === void 0 || (_state$
|
|
1967
|
+
selectedTab: state === null || state === void 0 || (_state$tabs18 = state.tabs) === null || _state$tabs18 === void 0 ? void 0 : _state$tabs18.active,
|
|
1968
1968
|
current: 1,
|
|
1969
1969
|
// Reset to first page when filtering
|
|
1970
1970
|
pageSize: tables === null || tables === void 0 || (_tables$pagination15 = tables.pagination) === null || _tables$pagination15 === void 0 ? void 0 : _tables$pagination15.pageSize,
|
|
@@ -2017,7 +2017,7 @@ function GenricLayOut(_ref) {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
});
|
|
2019
2019
|
if (handleTableChange) {
|
|
2020
|
-
var _state$dropdownSearch12, _state$inputSearch12, _state$
|
|
2020
|
+
var _state$dropdownSearch12, _state$inputSearch12, _state$tabs19, _tables$filter12, _tables$sorting29, _tables$sorting30, _header$subHeading33, _header$subHeading34, _staticFilter$data12, _customDrawer$applied11, _state$misc21, _state$staticFilter$m13, _state$staticFilter13;
|
|
2021
2021
|
const {
|
|
2022
2022
|
error,
|
|
2023
2023
|
data
|
|
@@ -2027,7 +2027,7 @@ function GenricLayOut(_ref) {
|
|
|
2027
2027
|
}), (state === null || state === void 0 || (_state$inputSearch12 = state.inputSearch) === null || _state$inputSearch12 === void 0 || (_state$inputSearch12 = _state$inputSearch12.value) === null || _state$inputSearch12 === void 0 ? void 0 : _state$inputSearch12.trim()) && {
|
|
2028
2028
|
searchedValue: state.inputSearch.value
|
|
2029
2029
|
}), {}, {
|
|
2030
|
-
selectedTab: state === null || state === void 0 || (_state$
|
|
2030
|
+
selectedTab: state === null || state === void 0 || (_state$tabs19 = state.tabs) === null || _state$tabs19 === void 0 ? void 0 : _state$tabs19.active,
|
|
2031
2031
|
current,
|
|
2032
2032
|
pageSize,
|
|
2033
2033
|
columnFilterStatus: tables === null || tables === void 0 || (_tables$filter12 = tables.filter) === null || _tables$filter12 === void 0 ? void 0 : _tables$filter12.value,
|