oa-componentbook 1.0.1-stage.368 → 1.0.1-stage.369
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/build/layout/EntityOverviewLayout/EntityOverviewLayout.js +0 -2
- package/build/layout/GenricLayOut/GenricLayOut.js +0 -2
- package/build/widgets/oa-widget-add-spare-part/AddSparePartWidget.js +0 -1
- package/build/widgets/oa-widget-collapsible-key-value/CollapsibleKeyValueWidget.js +0 -4
- package/build/widgets/oa-widget-dropdown-search-input/DropdownSearchInput.js +0 -3
- package/build/widgets/oa-widget-image-carousel/ImageCarouselWidget.js +0 -1
- package/package.json +1 -1
|
@@ -125,8 +125,6 @@ function EntityOverviewLayout(_ref) {
|
|
|
125
125
|
case "PROFILE-DRAWER":
|
|
126
126
|
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 ? void 0 : _config$drawer[actionData === null || actionData === void 0 ? void 0 : actionData.drawerKey]);
|
|
127
127
|
const drawerDetailData = handleDrawerData(actionData === null || actionData === void 0 ? void 0 : actionData.drawerData);
|
|
128
|
-
console.log(record, "record");
|
|
129
|
-
console.log(drawerDetailData, "drawerDetailData");
|
|
130
128
|
const dynamicConfig = (0, _staticConfigResolver.default)(record, (_drawerDetailData$dat = drawerDetailData === null || drawerDetailData === void 0 ? void 0 : drawerDetailData.data) !== null && _drawerDetailData$dat !== void 0 ? _drawerDetailData$dat : {});
|
|
131
129
|
dispatch({
|
|
132
130
|
type: _entityOverviewLayoutReducer.actionTypes.SET_DRAWER,
|
|
@@ -977,8 +977,6 @@ function GenricLayOut(_ref) {
|
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
979
|
} else if ((configData === null || configData === void 0 ? void 0 : configData.action) === "ACTION_ON_CTA") {
|
|
980
|
-
console.log("here");
|
|
981
|
-
console.log(state, "statedata");
|
|
982
980
|
if (handleTableFooterApi) {
|
|
983
981
|
var _state$tables2;
|
|
984
982
|
const {
|
|
@@ -220,7 +220,6 @@ function AddSparePartWidget(_ref) {
|
|
|
220
220
|
// Ensure field is corrected after losing focus
|
|
221
221
|
const value = form.getFieldValue("discount-".concat(spare.scopeId));
|
|
222
222
|
const maxDiscount = form.getFieldValue("cost-".concat(spare.scopeId));
|
|
223
|
-
console.log(maxDiscount, value, 'value');
|
|
224
223
|
if (value > maxDiscount) {
|
|
225
224
|
form.setFieldValue("discount-".concat(spare.scopeId), maxDiscount);
|
|
226
225
|
form.validateFields(["discount-".concat(spare.scopeId)]);
|
|
@@ -65,7 +65,6 @@ function CollapsibleKeyValueWidget(_ref) {
|
|
|
65
65
|
const [loadingItems, setLoadingItems] = (0, _react.useState)(new Set());
|
|
66
66
|
const [loadedMoreInfo, setLoadedMoreInfo] = (0, _react.useState)({});
|
|
67
67
|
const [itemsState, setItemsState] = (0, _react.useState)(items);
|
|
68
|
-
console.log(items, "items");
|
|
69
68
|
const handleItemToggle = async (itemId, itemData) => {
|
|
70
69
|
const newOpenItemId = openItemId === itemId ? null : itemId;
|
|
71
70
|
setOpenItemId(newOpenItemId);
|
|
@@ -73,7 +72,6 @@ function CollapsibleKeyValueWidget(_ref) {
|
|
|
73
72
|
// If opening an item and we don't have the data yet, fetch it
|
|
74
73
|
if (newOpenItemId !== null && !loadedMoreInfo[itemId] && handleCollapsibleKeyData) {
|
|
75
74
|
setLoadingItems(prev => new Set(prev).add(itemId));
|
|
76
|
-
console.log(itemData, "itemData");
|
|
77
75
|
try {
|
|
78
76
|
const {
|
|
79
77
|
error,
|
|
@@ -84,8 +82,6 @@ function CollapsibleKeyValueWidget(_ref) {
|
|
|
84
82
|
if (error) {
|
|
85
83
|
console.error("Error fetching more info:", error);
|
|
86
84
|
} else {
|
|
87
|
-
console.log(data, "collapsedata");
|
|
88
|
-
console.log(itemsState, "itemsState");
|
|
89
85
|
// Update the items state to populate the data array in moreInfoData
|
|
90
86
|
const updatedItems = itemsState.map(item => {
|
|
91
87
|
if (item.orderId === itemId) {
|
|
@@ -136,10 +136,7 @@ function DropdownSearchInput(_ref) {
|
|
|
136
136
|
let {
|
|
137
137
|
key
|
|
138
138
|
} = _ref2;
|
|
139
|
-
console.log(options, "options");
|
|
140
|
-
console.log(key, "key");
|
|
141
139
|
const selectedOption = options.find(option => option && option.value === key);
|
|
142
|
-
console.log(selectedOption, "selectedOption");
|
|
143
140
|
handleSelectChange(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value);
|
|
144
141
|
};
|
|
145
142
|
const handleClearClick = () => {
|