oa-componentbook 1.0.1-stage.459 → 1.0.1-stage.460
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.
|
@@ -2397,7 +2397,7 @@ function GenricLayOut(_ref) {
|
|
|
2397
2397
|
type: _layoutReducer.actionTypes.SET_TABLE_EMPTY
|
|
2398
2398
|
});
|
|
2399
2399
|
} else {
|
|
2400
|
-
var _config$tables33, _config$tables34;
|
|
2400
|
+
var _config$tables33, _config$tables34, _config$tabs2;
|
|
2401
2401
|
if (staticFilter !== null && staticFilter !== void 0 && staticFilter.visible) {
|
|
2402
2402
|
setStaticFilterData(data);
|
|
2403
2403
|
}
|
|
@@ -2412,6 +2412,22 @@ function GenricLayOut(_ref) {
|
|
|
2412
2412
|
pageSize: config === null || config === void 0 || (_config$tables34 = config.tables) === null || _config$tables34 === void 0 || (_config$tables34 = _config$tables34.pagination) === null || _config$tables34 === void 0 ? void 0 : _config$tables34.pageSize
|
|
2413
2413
|
}
|
|
2414
2414
|
});
|
|
2415
|
+
// Update tabs extraAction using replaceVariables with response data
|
|
2416
|
+
if (config !== null && config !== void 0 && (_config$tabs2 = config.tabs) !== null && _config$tabs2 !== void 0 && _config$tabs2.extraAction) {
|
|
2417
|
+
const updatedExtraAction = (0, _staticConfigResolver.default)(config.tabs.extraAction, data);
|
|
2418
|
+
dispatch({
|
|
2419
|
+
type: _layoutReducer.actionTypes.SET_TABS_EXTRA_ACTION,
|
|
2420
|
+
payload: updatedExtraAction
|
|
2421
|
+
});
|
|
2422
|
+
}
|
|
2423
|
+
// Update infoData using replaceVariables with response data
|
|
2424
|
+
if (config !== null && config !== void 0 && config.infoData) {
|
|
2425
|
+
const updatedInfoData = (0, _staticConfigResolver.default)(config.infoData, data);
|
|
2426
|
+
dispatch({
|
|
2427
|
+
type: _layoutReducer.actionTypes.SET_INFO_DATA,
|
|
2428
|
+
payload: updatedInfoData
|
|
2429
|
+
});
|
|
2430
|
+
}
|
|
2415
2431
|
}
|
|
2416
2432
|
dispatch({
|
|
2417
2433
|
type: _layoutReducer.actionTypes.SET_LOADING,
|
|
@@ -58,7 +58,9 @@ const actionTypes = exports.actionTypes = {
|
|
|
58
58
|
SET_STATIC_FILTER: "SET_STATIC_FILTER",
|
|
59
59
|
SET_PROFILE_DATA: "SET_PROFILE_DATA",
|
|
60
60
|
CHANGE_ROW: "CHANGE_ROW",
|
|
61
|
-
SET_TABS_EXTRA_ACTION_CHECKED: "SET_TABS_EXTRA_ACTION_CHECKED"
|
|
61
|
+
SET_TABS_EXTRA_ACTION_CHECKED: "SET_TABS_EXTRA_ACTION_CHECKED",
|
|
62
|
+
SET_TABS_EXTRA_ACTION: "SET_TABS_EXTRA_ACTION",
|
|
63
|
+
SET_INFO_DATA: "SET_INFO_DATA"
|
|
62
64
|
};
|
|
63
65
|
function getFieldDefaultValue(widget) {
|
|
64
66
|
switch (widget) {
|
|
@@ -75,7 +77,7 @@ function getFieldDefaultValue(widget) {
|
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
79
|
const genericLayoutReducer = exports.genericLayoutReducer = (0, _immer.produce)((draft, action) => {
|
|
78
|
-
var _draft$imageViewer, _action$payload, _action$payload2, _draft$tabs, _draft$customDrawer$d, _draft$tables, _action$payload3, _action$payload4, _action$payload5, _draft$tabs$active, _draft$tabs2, _action$payload6, _action$payload7, _action$payload8, _draft$staticFilter, _draft$tables2, _draft$customDrawer$d2, _draft$customDrawer$d3, _draft$customDrawer$d4, _draft$tabs4;
|
|
80
|
+
var _draft$imageViewer, _action$payload, _action$payload2, _draft$tabs, _draft$customDrawer$d, _draft$tables, _action$payload3, _action$payload4, _action$payload5, _draft$tabs$active, _draft$tabs2, _action$payload6, _action$payload7, _action$payload8, _draft$staticFilter, _draft$tables2, _draft$customDrawer$d2, _draft$customDrawer$d3, _draft$customDrawer$d4, _draft$tabs4, _draft$tabs5;
|
|
79
81
|
switch (action.type) {
|
|
80
82
|
case actionTypes.INIT:
|
|
81
83
|
return (0, _staticConfigResolver.removeHidden)(action.payload);
|
|
@@ -310,6 +312,16 @@ const genericLayoutReducer = exports.genericLayoutReducer = (0, _immer.produce)(
|
|
|
310
312
|
draft.tabs.extraAction.checked = action.payload;
|
|
311
313
|
}
|
|
312
314
|
break;
|
|
315
|
+
case actionTypes.SET_TABS_EXTRA_ACTION:
|
|
316
|
+
if ((_draft$tabs5 = draft.tabs) !== null && _draft$tabs5 !== void 0 && _draft$tabs5.extraAction && action.payload) {
|
|
317
|
+
draft.tabs.extraAction = _objectSpread(_objectSpread({}, draft.tabs.extraAction), action.payload);
|
|
318
|
+
}
|
|
319
|
+
break;
|
|
320
|
+
case actionTypes.SET_INFO_DATA:
|
|
321
|
+
if (action.payload) {
|
|
322
|
+
draft.infoData = _objectSpread(_objectSpread({}, draft.infoData), action.payload);
|
|
323
|
+
}
|
|
324
|
+
break;
|
|
313
325
|
default:
|
|
314
326
|
break;
|
|
315
327
|
}
|