@crystaldesign/diva-backoffice 26.6.0-beta.1 → 26.6.0-beta.10
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/esm/index.js +221 -12
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/IdmCatalogs.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/ActionsForm.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts +5 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
|
@@ -41861,6 +41861,110 @@ var IdmCatalogs = /*#__PURE__*/forwardRef(function IdmCatalogs(_ref, ref) {
|
|
|
41861
41861
|
}()
|
|
41862
41862
|
}];
|
|
41863
41863
|
}, [setSelectedCatalog, apiConfig, showLoadingModal, showErrorModal, closeModal, t, root.dataStore.jwt]);
|
|
41864
|
+
var contextMenuItems = useMemo(function () {
|
|
41865
|
+
var cloneCatalogItem = function cloneCatalogItem(_ref5) {
|
|
41866
|
+
var selectedNodes = _ref5.selectedNodes;
|
|
41867
|
+
return {
|
|
41868
|
+
name: t('backoffice.idmCatalog.catalogs.contextMenu.cloneCatalog'),
|
|
41869
|
+
icon: '<span class="ag-icon ag-icon-copy"/>',
|
|
41870
|
+
disabled: !selectedNodes.length,
|
|
41871
|
+
action: function () {
|
|
41872
|
+
var _action3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(actionParams) {
|
|
41873
|
+
var _actionParams$selecte;
|
|
41874
|
+
var catalogDocId, jwt, alertTimeout, _current, _current$refresh, res, message, errBody, _message;
|
|
41875
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
41876
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
41877
|
+
case 0:
|
|
41878
|
+
catalogDocId = (_actionParams$selecte = actionParams.selectedNodes[0]) === null || _actionParams$selecte === void 0 || (_actionParams$selecte = _actionParams$selecte.data) === null || _actionParams$selecte === void 0 ? void 0 : _actionParams$selecte._id;
|
|
41879
|
+
jwt = root.dataStore.jwt;
|
|
41880
|
+
if (!(!catalogDocId || !jwt)) {
|
|
41881
|
+
_context3.next = 4;
|
|
41882
|
+
break;
|
|
41883
|
+
}
|
|
41884
|
+
return _context3.abrupt("return");
|
|
41885
|
+
case 4:
|
|
41886
|
+
alertTimeout = setTimeout(function () {
|
|
41887
|
+
showLoadingModal(t('backoffice.idmCatalog.catalogs.clone.modaltext'));
|
|
41888
|
+
}, 300);
|
|
41889
|
+
_context3.prev = 5;
|
|
41890
|
+
_context3.next = 8;
|
|
41891
|
+
return fetch("".concat(apiConfig.idmService, "/catalogs/").concat(catalogDocId, "/clone"), {
|
|
41892
|
+
method: 'POST',
|
|
41893
|
+
headers: {
|
|
41894
|
+
Authorization: "Bearer ".concat(jwt),
|
|
41895
|
+
'Content-Type': 'application/json'
|
|
41896
|
+
},
|
|
41897
|
+
body: '{}'
|
|
41898
|
+
});
|
|
41899
|
+
case 8:
|
|
41900
|
+
res = _context3.sent;
|
|
41901
|
+
closeModal();
|
|
41902
|
+
if (res.ok) {
|
|
41903
|
+
_context3.next = 34;
|
|
41904
|
+
break;
|
|
41905
|
+
}
|
|
41906
|
+
message = "HTTP ".concat(res.status);
|
|
41907
|
+
_context3.prev = 12;
|
|
41908
|
+
_context3.next = 15;
|
|
41909
|
+
return res.json();
|
|
41910
|
+
case 15:
|
|
41911
|
+
errBody = _context3.sent;
|
|
41912
|
+
if (errBody && _typeof(errBody) === 'object' && 'message' in errBody) {
|
|
41913
|
+
message = String((_message = errBody.message) !== null && _message !== void 0 ? _message : message);
|
|
41914
|
+
}
|
|
41915
|
+
_context3.next = 32;
|
|
41916
|
+
break;
|
|
41917
|
+
case 19:
|
|
41918
|
+
_context3.prev = 19;
|
|
41919
|
+
_context3.t0 = _context3["catch"](12);
|
|
41920
|
+
_context3.prev = 21;
|
|
41921
|
+
_context3.next = 24;
|
|
41922
|
+
return res.text();
|
|
41923
|
+
case 24:
|
|
41924
|
+
_context3.t1 = _context3.sent;
|
|
41925
|
+
if (_context3.t1) {
|
|
41926
|
+
_context3.next = 27;
|
|
41927
|
+
break;
|
|
41928
|
+
}
|
|
41929
|
+
_context3.t1 = message;
|
|
41930
|
+
case 27:
|
|
41931
|
+
message = _context3.t1;
|
|
41932
|
+
_context3.next = 32;
|
|
41933
|
+
break;
|
|
41934
|
+
case 30:
|
|
41935
|
+
_context3.prev = 30;
|
|
41936
|
+
_context3.t2 = _context3["catch"](21);
|
|
41937
|
+
case 32:
|
|
41938
|
+
showErrorModal(message);
|
|
41939
|
+
return _context3.abrupt("return");
|
|
41940
|
+
case 34:
|
|
41941
|
+
ref === null || ref === void 0 || (_current = ref.current) === null || _current === void 0 || (_current$refresh = _current.refresh) === null || _current$refresh === void 0 || _current$refresh.call(_current);
|
|
41942
|
+
_context3.next = 41;
|
|
41943
|
+
break;
|
|
41944
|
+
case 37:
|
|
41945
|
+
_context3.prev = 37;
|
|
41946
|
+
_context3.t3 = _context3["catch"](5);
|
|
41947
|
+
closeModal();
|
|
41948
|
+
showErrorModal(_context3.t3 instanceof Error ? _context3.t3.message : String(_context3.t3));
|
|
41949
|
+
case 41:
|
|
41950
|
+
_context3.prev = 41;
|
|
41951
|
+
clearTimeout(alertTimeout);
|
|
41952
|
+
return _context3.finish(41);
|
|
41953
|
+
case 44:
|
|
41954
|
+
case "end":
|
|
41955
|
+
return _context3.stop();
|
|
41956
|
+
}
|
|
41957
|
+
}, _callee3, null, [[5, 37, 41, 44], [12, 19], [21, 30]]);
|
|
41958
|
+
}));
|
|
41959
|
+
function action(_x3) {
|
|
41960
|
+
return _action3.apply(this, arguments);
|
|
41961
|
+
}
|
|
41962
|
+
return action;
|
|
41963
|
+
}()
|
|
41964
|
+
};
|
|
41965
|
+
};
|
|
41966
|
+
return ['insertRow', 'duplicateRow', cloneCatalogItem, 'paste', 'copy', 'cut', 'cutRow', 'separator', 'delete', 'deleteRow'];
|
|
41967
|
+
}, [apiConfig.idmService, closeModal, ref, root.dataStore.jwt, showErrorModal, showLoadingModal, t]);
|
|
41864
41968
|
var configuration = useMemo(function () {
|
|
41865
41969
|
var apiInterface = {
|
|
41866
41970
|
read: apiConfig.idmService + '/catalogs?organizationId=${organizationId}',
|
|
@@ -42054,9 +42158,9 @@ var IdmCatalogs = /*#__PURE__*/forwardRef(function IdmCatalogs(_ref, ref) {
|
|
|
42054
42158
|
return ((_oldData = u.oldData) === null || _oldData === void 0 ? void 0 : _oldData.actual) !== ((_data = u.data) === null || _data === void 0 ? void 0 : _data.actual);
|
|
42055
42159
|
});
|
|
42056
42160
|
if (actualChanged) {
|
|
42057
|
-
var
|
|
42161
|
+
var _current2, _current2$refresh;
|
|
42058
42162
|
onActualChange();
|
|
42059
|
-
ref === null || ref === void 0 || (
|
|
42163
|
+
ref === null || ref === void 0 || (_current2 = ref.current) === null || _current2 === void 0 || (_current2$refresh = _current2.refresh) === null || _current2$refresh === void 0 || _current2$refresh.call(_current2);
|
|
42060
42164
|
}
|
|
42061
42165
|
};
|
|
42062
42166
|
}
|
|
@@ -42087,6 +42191,7 @@ var IdmCatalogs = /*#__PURE__*/forwardRef(function IdmCatalogs(_ref, ref) {
|
|
|
42087
42191
|
rowActions: rowActions,
|
|
42088
42192
|
preFilter: preFilter,
|
|
42089
42193
|
configuration: configuration,
|
|
42194
|
+
contextMenuItems: contextMenuItems,
|
|
42090
42195
|
hooks: hooks
|
|
42091
42196
|
}), contextHolder]
|
|
42092
42197
|
});
|
|
@@ -45312,7 +45417,12 @@ function ActionsForm(_ref) {
|
|
|
45312
45417
|
disabled: optionRefNeedsFeature,
|
|
45313
45418
|
apiInterface: refType === REFERENCE_TYPES.OPTION_REF ? optionsReadForOptionRef : allFeaturesRead,
|
|
45314
45419
|
selectMapping: refType === REFERENCE_TYPES.OPTION_REF ? optionSelectMapping : featureSelectMapping,
|
|
45315
|
-
useValueAsData: true
|
|
45420
|
+
useValueAsData: true,
|
|
45421
|
+
classNames: {
|
|
45422
|
+
popup: {
|
|
45423
|
+
root: 'ag-custom-component-popup'
|
|
45424
|
+
}
|
|
45425
|
+
}
|
|
45316
45426
|
}, refType === REFERENCE_TYPES.OPTION_REF ? "option-ref-".concat((_toLookupScalar = toLookupScalar(watchedFeatureNo)) !== null && _toLookupScalar !== void 0 ? _toLookupScalar : '') : undefined)
|
|
45317
45427
|
});
|
|
45318
45428
|
}, [allFeaturesRead, fieldLabel, optionRefNeedsFeatureHint, optionSelectMapping, optionsReadForOptionRef, featureSelectMapping, requiredRules, watchedActionType, watchedFeatureNo]);
|
|
@@ -45370,7 +45480,12 @@ function ActionsForm(_ref) {
|
|
|
45370
45480
|
minWidth: "100%",
|
|
45371
45481
|
apiInterface: allFeaturesRead,
|
|
45372
45482
|
selectMapping: featureSelectMapping,
|
|
45373
|
-
useValueAsData: true
|
|
45483
|
+
useValueAsData: true,
|
|
45484
|
+
classNames: {
|
|
45485
|
+
popup: {
|
|
45486
|
+
root: 'ag-custom-component-popup'
|
|
45487
|
+
}
|
|
45488
|
+
}
|
|
45374
45489
|
})
|
|
45375
45490
|
}), decision && /*#__PURE__*/jsx(Form$2.Item, {
|
|
45376
45491
|
name: "decisionNo",
|
|
@@ -45382,7 +45497,12 @@ function ActionsForm(_ref) {
|
|
|
45382
45497
|
minWidth: "100%",
|
|
45383
45498
|
apiInterface: decisionsRead,
|
|
45384
45499
|
selectMapping: decisionSelectMapping,
|
|
45385
|
-
useValueAsData: true
|
|
45500
|
+
useValueAsData: true,
|
|
45501
|
+
classNames: {
|
|
45502
|
+
popup: {
|
|
45503
|
+
root: 'ag-custom-component-popup'
|
|
45504
|
+
}
|
|
45505
|
+
}
|
|
45386
45506
|
})
|
|
45387
45507
|
}), (decision || needsRef) && /*#__PURE__*/jsx(Form$2.Item, {
|
|
45388
45508
|
name: "referenceType",
|
|
@@ -47240,12 +47360,16 @@ var TableDetailInfos = observer(function () {
|
|
|
47240
47360
|
});
|
|
47241
47361
|
|
|
47242
47362
|
function PartlistPos(_ref) {
|
|
47363
|
+
var _partlist$lastUpdated;
|
|
47243
47364
|
var organizationId = _ref.organizationId,
|
|
47244
47365
|
catalog = _ref.catalog,
|
|
47245
47366
|
partlist = _ref.partlist,
|
|
47246
47367
|
apiConfig = _ref.apiConfig,
|
|
47247
47368
|
hooks = _ref.hooks,
|
|
47248
|
-
setNodeDataValue = _ref.setNodeDataValue
|
|
47369
|
+
setNodeDataValue = _ref.setNodeDataValue,
|
|
47370
|
+
onPartlistPosExcelImportComplete = _ref.onPartlistPosExcelImportComplete,
|
|
47371
|
+
_ref$spreadsheetRemou = _ref.spreadsheetRemountNonce,
|
|
47372
|
+
spreadsheetRemountNonce = _ref$spreadsheetRemou === void 0 ? 0 : _ref$spreadsheetRemou;
|
|
47249
47373
|
var _useTranslation = useTranslation(),
|
|
47250
47374
|
t = _useTranslation.t;
|
|
47251
47375
|
var addFeature = useCallback(function (value) {
|
|
@@ -47275,6 +47399,7 @@ function PartlistPos(_ref) {
|
|
|
47275
47399
|
var ref = useRef(null);
|
|
47276
47400
|
var _useDivaCore = useDivaCore(),
|
|
47277
47401
|
jwt = _useDivaCore.state.jwt;
|
|
47402
|
+
var partlistPosSpreadsheetKey = "".concat(partlist._id, "-").concat(String((_partlist$lastUpdated = partlist.lastUpdatedDate) !== null && _partlist$lastUpdated !== void 0 ? _partlist$lastUpdated : ''), "-").concat(spreadsheetRemountNonce);
|
|
47278
47403
|
var visibility = useMemo(function () {
|
|
47279
47404
|
return [{
|
|
47280
47405
|
name: t('backoffice.idmCatalog.partlistpos.label.visiblityDic.v0'),
|
|
@@ -47577,10 +47702,34 @@ function PartlistPos(_ref) {
|
|
|
47577
47702
|
authToken: jwt,
|
|
47578
47703
|
acceptedFileTypes: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
47579
47704
|
uploadHint: t('backoffice.idmEnricher.importexcel.uploadhint'),
|
|
47580
|
-
onUploadComplete: function
|
|
47581
|
-
var
|
|
47582
|
-
|
|
47583
|
-
|
|
47705
|
+
onUploadComplete: function () {
|
|
47706
|
+
var _onUploadComplete = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
47707
|
+
var _ref$current;
|
|
47708
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
47709
|
+
while (1) switch (_context.prev = _context.next) {
|
|
47710
|
+
case 0:
|
|
47711
|
+
if (!onPartlistPosExcelImportComplete) {
|
|
47712
|
+
_context.next = 5;
|
|
47713
|
+
break;
|
|
47714
|
+
}
|
|
47715
|
+
_context.next = 3;
|
|
47716
|
+
return onPartlistPosExcelImportComplete();
|
|
47717
|
+
case 3:
|
|
47718
|
+
_context.next = 6;
|
|
47719
|
+
break;
|
|
47720
|
+
case 5:
|
|
47721
|
+
(_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.refresh();
|
|
47722
|
+
case 6:
|
|
47723
|
+
case "end":
|
|
47724
|
+
return _context.stop();
|
|
47725
|
+
}
|
|
47726
|
+
}, _callee);
|
|
47727
|
+
}));
|
|
47728
|
+
function onUploadComplete() {
|
|
47729
|
+
return _onUploadComplete.apply(this, arguments);
|
|
47730
|
+
}
|
|
47731
|
+
return onUploadComplete;
|
|
47732
|
+
}()
|
|
47584
47733
|
}, {
|
|
47585
47734
|
type: 'export',
|
|
47586
47735
|
key: 'download',
|
|
@@ -47599,13 +47748,15 @@ function PartlistPos(_ref) {
|
|
|
47599
47748
|
applicationData: applicationData,
|
|
47600
47749
|
configuration: configuration,
|
|
47601
47750
|
hooks: hooks
|
|
47602
|
-
},
|
|
47751
|
+
}, partlistPosSpreadsheetKey)]
|
|
47603
47752
|
});
|
|
47604
47753
|
}
|
|
47605
47754
|
|
|
47606
47755
|
var TablePartlists = observer(function () {
|
|
47607
47756
|
var _useTranslation = useTranslation(),
|
|
47608
47757
|
t = _useTranslation.t;
|
|
47758
|
+
var _useDivaCore = useDivaCore(),
|
|
47759
|
+
jwt = _useDivaCore.state.jwt;
|
|
47609
47760
|
var spreadsheetRef = useRef(null);
|
|
47610
47761
|
var _useModule = useModule(['partlists']),
|
|
47611
47762
|
selectedCatalog = _useModule.selectedCatalog,
|
|
@@ -47624,6 +47775,62 @@ var TablePartlists = observer(function () {
|
|
|
47624
47775
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
47625
47776
|
selectedNodeId = _React$useState4[0],
|
|
47626
47777
|
setSelectedNodeId = _React$useState4[1];
|
|
47778
|
+
var _React$useState5 = React.useState(0),
|
|
47779
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
47780
|
+
partlistPosSpreadsheetRemountNonce = _React$useState6[0],
|
|
47781
|
+
setPartlistPosSpreadsheetRemountNonce = _React$useState6[1];
|
|
47782
|
+
var selectedPartlistRef = useRef(selectedPartlist);
|
|
47783
|
+
selectedPartlistRef.current = selectedPartlist;
|
|
47784
|
+
|
|
47785
|
+
// Excel import does not go through the grid transaction path, so hooks.onDataUpdated never runs for that row.
|
|
47786
|
+
// Reload the partlist document like a fresh row selection, then remount PartlistPos so feature columns match.
|
|
47787
|
+
var onPartlistPosExcelImportComplete = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
47788
|
+
var _spreadsheetRef$curre, _selectedPartlistRef$;
|
|
47789
|
+
var partlistId, res;
|
|
47790
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
47791
|
+
while (1) switch (_context.prev = _context.next) {
|
|
47792
|
+
case 0:
|
|
47793
|
+
(_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 || _spreadsheetRef$curre.refresh();
|
|
47794
|
+
partlistId = (_selectedPartlistRef$ = selectedPartlistRef.current) === null || _selectedPartlistRef$ === void 0 ? void 0 : _selectedPartlistRef$._id;
|
|
47795
|
+
if (!(partlistId && jwt && catalogId)) {
|
|
47796
|
+
_context.next = 17;
|
|
47797
|
+
break;
|
|
47798
|
+
}
|
|
47799
|
+
_context.prev = 3;
|
|
47800
|
+
_context.next = 6;
|
|
47801
|
+
return fetch("".concat(apiConfig.idmService, "/catalogs/").concat(catalogId, "/partlists/").concat(partlistId), {
|
|
47802
|
+
headers: {
|
|
47803
|
+
Authorization: "Bearer ".concat(jwt)
|
|
47804
|
+
}
|
|
47805
|
+
});
|
|
47806
|
+
case 6:
|
|
47807
|
+
res = _context.sent;
|
|
47808
|
+
if (!res.ok) {
|
|
47809
|
+
_context.next = 13;
|
|
47810
|
+
break;
|
|
47811
|
+
}
|
|
47812
|
+
_context.t0 = setSelectedPartlist;
|
|
47813
|
+
_context.next = 11;
|
|
47814
|
+
return res.json();
|
|
47815
|
+
case 11:
|
|
47816
|
+
_context.t1 = _context.sent;
|
|
47817
|
+
(0, _context.t0)(_context.t1);
|
|
47818
|
+
case 13:
|
|
47819
|
+
_context.next = 17;
|
|
47820
|
+
break;
|
|
47821
|
+
case 15:
|
|
47822
|
+
_context.prev = 15;
|
|
47823
|
+
_context.t2 = _context["catch"](3);
|
|
47824
|
+
case 17:
|
|
47825
|
+
setPartlistPosSpreadsheetRemountNonce(function (n) {
|
|
47826
|
+
return n + 1;
|
|
47827
|
+
});
|
|
47828
|
+
case 18:
|
|
47829
|
+
case "end":
|
|
47830
|
+
return _context.stop();
|
|
47831
|
+
}
|
|
47832
|
+
}, _callee, null, [[3, 15]]);
|
|
47833
|
+
})), [apiConfig.idmService, catalogId, jwt]);
|
|
47627
47834
|
var setNodeDataValue = useCallback(function (data) {
|
|
47628
47835
|
spreadsheetRef.current.setNodeDataValue(selectedNodeId, data);
|
|
47629
47836
|
}, [selectedNodeId]);
|
|
@@ -47643,7 +47850,9 @@ var TablePartlists = observer(function () {
|
|
|
47643
47850
|
catalog: selectedCatalog,
|
|
47644
47851
|
apiConfig: apiConfig,
|
|
47645
47852
|
partlist: selectedPartlist,
|
|
47646
|
-
|
|
47853
|
+
spreadsheetRemountNonce: partlistPosSpreadsheetRemountNonce,
|
|
47854
|
+
setNodeDataValue: setNodeDataValue,
|
|
47855
|
+
onPartlistPosExcelImportComplete: onPartlistPosExcelImportComplete
|
|
47647
47856
|
},
|
|
47648
47857
|
condition: function condition() {
|
|
47649
47858
|
return (selectedPartlist === null || selectedPartlist === void 0 ? void 0 : selectedPartlist._id) !== undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdmCatalogs.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/IdmCatalogs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,
|
|
1
|
+
{"version":3,"file":"IdmCatalogs.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/IdmCatalogs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAGL,mBAAmB,EAIpB,MAAM,4BAA4B,CAAC;AAWpC,MAAM,MAAM,oBAAoB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;AAEnH,MAAM,MAAM,UAAU,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhI,QAAA,MAAM,WAAW;oBAGG,MAAM;eACX,SAAS;eACT,OAAO;yBACG,oBAAoB;+BACd,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI;IAC/D,mEAAmE;qBAClD,MAAM,IAAI;IAC3B,oFAAoF;qBACnE,MAAM;6CAmZzB,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionsForm.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/ActionsForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAK/D,OAAO,EAOL,KAAK,YAAY,EAGlB,MAAM,gBAAgB,CAAC;AA+DxB,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ActionsForm.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/ActionsForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAK/D,OAAO,EAOL,KAAK,YAAY,EAGlB,MAAM,gBAAgB,CAAC;AA+DxB,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,gBAAgB,qBA6Z/F"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ApiConfig } from '@crystaldesign/diva-core';
|
|
3
3
|
import { DivaSpreadsheetHooks } from '@crystaldesign/spreadsheet';
|
|
4
|
-
export default function PartlistPos({ organizationId, catalog, partlist, apiConfig, hooks, setNodeDataValue, }: {
|
|
4
|
+
export default function PartlistPos({ organizationId, catalog, partlist, apiConfig, hooks, setNodeDataValue, onPartlistPosExcelImportComplete, spreadsheetRemountNonce, }: {
|
|
5
5
|
organizationId: string;
|
|
6
6
|
catalog: any;
|
|
7
7
|
partlist: any;
|
|
8
8
|
apiConfig: ApiConfig;
|
|
9
9
|
hooks?: DivaSpreadsheetHooks<any>;
|
|
10
10
|
setNodeDataValue: (data: Record<string, any>) => boolean;
|
|
11
|
+
/** Refreshes partlists, reloads the partlist from the API (featureRefs etc.), remounts the PartlistPos grid. */
|
|
12
|
+
onPartlistPosExcelImportComplete?: () => void | Promise<void>;
|
|
13
|
+
/** Changing this value remounts the partlistpos Spreadsheet (e.g. after Excel import). */
|
|
14
|
+
spreadsheetRemountNonce?: number;
|
|
11
15
|
}): React.JSX.Element;
|
|
12
16
|
//# sourceMappingURL=PartlistPos.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PartlistPos.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PartlistPos.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAqC,MAAM,0BAA0B,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAmD,MAAM,4BAA4B,CAAC;AAQnH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,cAAc,EACd,OAAO,EACP,QAAQ,EACR,SAAS,EACT,KAAK,EACL,gBAAgB,
|
|
1
|
+
{"version":3,"file":"PartlistPos.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PartlistPos.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAqC,MAAM,0BAA0B,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAmD,MAAM,4BAA4B,CAAC;AAQnH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,cAAc,EACd,OAAO,EACP,QAAQ,EACR,SAAS,EACT,KAAK,EACL,gBAAgB,EAChB,gCAAgC,EAChC,uBAA2B,GAC5B,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAClC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,gHAAgH;IAChH,gCAAgC,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,0FAA0F;IAC1F,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,qBA4WA"}
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePartlists/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePartlists/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAa5D,eAAO,MAAM,cAAc;;CAiOzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "26.6.0-beta.
|
|
3
|
+
"version": "26.6.0-beta.10",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@ant-design/icons": "6.1.0",
|
|
17
17
|
"@babel/runtime": "7.24.7",
|
|
18
|
-
"@crystaldesign/content-box": "26.6.0-beta.
|
|
19
|
-
"@crystaldesign/content-item": "26.6.0-beta.
|
|
20
|
-
"@crystaldesign/diva-core": "26.6.0-beta.
|
|
21
|
-
"@crystaldesign/diva-utils": "26.6.0-beta.
|
|
22
|
-
"@crystaldesign/media-upload": "26.6.0-beta.
|
|
23
|
-
"@crystaldesign/rtf-editor": "26.6.0-beta.
|
|
24
|
-
"@crystaldesign/spreadsheet": "26.6.0-beta.
|
|
18
|
+
"@crystaldesign/content-box": "26.6.0-beta.10",
|
|
19
|
+
"@crystaldesign/content-item": "26.6.0-beta.10",
|
|
20
|
+
"@crystaldesign/diva-core": "26.6.0-beta.10",
|
|
21
|
+
"@crystaldesign/diva-utils": "26.6.0-beta.10",
|
|
22
|
+
"@crystaldesign/media-upload": "26.6.0-beta.10",
|
|
23
|
+
"@crystaldesign/rtf-editor": "26.6.0-beta.10",
|
|
24
|
+
"@crystaldesign/spreadsheet": "26.6.0-beta.10",
|
|
25
25
|
"@google/genai": "^1.22.0",
|
|
26
26
|
"@google/model-viewer": "3.5.0",
|
|
27
27
|
"ag-charts-community": "^10.1.0",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
},
|
|
54
54
|
"module": "build/esm/index.js",
|
|
55
55
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "b85d93c8f6fac2f864d53f8d745d4c06c5ec343e"
|
|
57
57
|
}
|