@crystaldesign/diva-backoffice 26.7.0-beta.3 → 26.7.0-beta.5
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 +191 -48
- package/build/types/backoffice/src/ui/CommonComponents/useCatalogVersionDialog.d.ts +13 -0
- package/build/types/backoffice/src/ui/CommonComponents/useCatalogVersionDialog.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogVersions.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/IdmCatalogs.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
|
@@ -127,6 +127,7 @@ import WarningOutlined from '@ant-design/icons/lib/icons/WarningOutlined';
|
|
|
127
127
|
import Modal$3 from 'antd/es/modal';
|
|
128
128
|
import Spin$1 from 'antd/es/spin';
|
|
129
129
|
import Flex from 'antd/es/flex';
|
|
130
|
+
import Radio$1 from 'antd/es/radio';
|
|
130
131
|
import EyeOutlined$1 from '@ant-design/icons/lib/icons/EyeOutlined';
|
|
131
132
|
import { useTranslation as useTranslation$1 } from 'react-i18next';
|
|
132
133
|
import InboxOutlined$1 from '@ant-design/icons/lib/icons/InboxOutlined';
|
|
@@ -36437,6 +36438,72 @@ var useLoadingModal = function useLoadingModal() {
|
|
|
36437
36438
|
};
|
|
36438
36439
|
};
|
|
36439
36440
|
|
|
36441
|
+
/**
|
|
36442
|
+
* Hook that provides a dialog to let the user choose the catalog download version (4.0 or 4.1).
|
|
36443
|
+
*/
|
|
36444
|
+
var useCatalogVersionDialog = function useCatalogVersionDialog() {
|
|
36445
|
+
var _useTranslation = useTranslation(),
|
|
36446
|
+
t = _useTranslation.t;
|
|
36447
|
+
var _useState = useState(false),
|
|
36448
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
36449
|
+
open = _useState2[0],
|
|
36450
|
+
setOpen = _useState2[1];
|
|
36451
|
+
var _useState3 = useState('4.1'),
|
|
36452
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
36453
|
+
version = _useState4[0],
|
|
36454
|
+
setVersion = _useState4[1];
|
|
36455
|
+
var resolveRef = useRef(null);
|
|
36456
|
+
var selectVersion = useCallback(function () {
|
|
36457
|
+
setVersion('4.1');
|
|
36458
|
+
setOpen(true);
|
|
36459
|
+
return new Promise(function (resolve) {
|
|
36460
|
+
resolveRef.current = resolve;
|
|
36461
|
+
});
|
|
36462
|
+
}, []);
|
|
36463
|
+
var handleOk = useCallback(function () {
|
|
36464
|
+
var _resolveRef$current;
|
|
36465
|
+
setOpen(false);
|
|
36466
|
+
(_resolveRef$current = resolveRef.current) === null || _resolveRef$current === void 0 || _resolveRef$current.call(resolveRef, version);
|
|
36467
|
+
resolveRef.current = null;
|
|
36468
|
+
}, [version]);
|
|
36469
|
+
var handleCancel = useCallback(function () {
|
|
36470
|
+
var _resolveRef$current2;
|
|
36471
|
+
setOpen(false);
|
|
36472
|
+
(_resolveRef$current2 = resolveRef.current) === null || _resolveRef$current2 === void 0 || _resolveRef$current2.call(resolveRef, undefined);
|
|
36473
|
+
resolveRef.current = null;
|
|
36474
|
+
}, []);
|
|
36475
|
+
var contextHolder = /*#__PURE__*/jsx(Modal$3, {
|
|
36476
|
+
open: open,
|
|
36477
|
+
title: t('backoffice.idmCatalog.download.versionDialog.title'),
|
|
36478
|
+
onOk: handleOk,
|
|
36479
|
+
onCancel: handleCancel,
|
|
36480
|
+
okText: t('backoffice.idmCatalog.download.versionDialog.ok'),
|
|
36481
|
+
cancelText: t('backoffice.idmCatalog.download.versionDialog.cancel'),
|
|
36482
|
+
centered: true,
|
|
36483
|
+
destroyOnClose: true,
|
|
36484
|
+
children: /*#__PURE__*/jsx(Radio$1.Group, {
|
|
36485
|
+
value: version,
|
|
36486
|
+
onChange: function onChange(e) {
|
|
36487
|
+
return setVersion(e.target.value);
|
|
36488
|
+
},
|
|
36489
|
+
children: /*#__PURE__*/jsxs(Space$1, {
|
|
36490
|
+
direction: "vertical",
|
|
36491
|
+
children: [/*#__PURE__*/jsx(Radio$1, {
|
|
36492
|
+
value: "4.1",
|
|
36493
|
+
children: t('backoffice.idmCatalog.download.versionDialog.v41')
|
|
36494
|
+
}), /*#__PURE__*/jsx(Radio$1, {
|
|
36495
|
+
value: "4.0",
|
|
36496
|
+
children: t('backoffice.idmCatalog.download.versionDialog.v40')
|
|
36497
|
+
})]
|
|
36498
|
+
})
|
|
36499
|
+
})
|
|
36500
|
+
});
|
|
36501
|
+
return {
|
|
36502
|
+
selectVersion: selectVersion,
|
|
36503
|
+
contextHolder: contextHolder
|
|
36504
|
+
};
|
|
36505
|
+
};
|
|
36506
|
+
|
|
36440
36507
|
var TablePackages = observer(function () {
|
|
36441
36508
|
var _root$dataStore$curre;
|
|
36442
36509
|
var root = useStore();
|
|
@@ -36448,6 +36515,9 @@ var TablePackages = observer(function () {
|
|
|
36448
36515
|
showErrorModal = modalState.showErrorModal,
|
|
36449
36516
|
closeModal = modalState.closeModal,
|
|
36450
36517
|
contextHolder = modalState.contextHolder;
|
|
36518
|
+
var _useCatalogVersionDia = useCatalogVersionDialog(),
|
|
36519
|
+
selectVersion = _useCatalogVersionDia.selectVersion,
|
|
36520
|
+
versionDialogContextHolder = _useCatalogVersionDia.contextHolder;
|
|
36451
36521
|
var _useEnricherContext = useEnricherContext([]),
|
|
36452
36522
|
setSelectedPackage = _useEnricherContext.setSelectedPackage;
|
|
36453
36523
|
var organizationId = root.dataStore.organizationId;
|
|
@@ -36516,36 +36586,59 @@ var TablePackages = observer(function () {
|
|
|
36516
36586
|
action: function () {
|
|
36517
36587
|
var _action = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref4) {
|
|
36518
36588
|
var _selectedNodes$0$data9, _selectedNodes$0$data10, _selectedNodes$0$data11, _selectedNodes$0$data12, _selectedNodes$0$data13;
|
|
36519
|
-
var selectedNodes, url, alertTimeout, _selectedNodes$0$data14;
|
|
36589
|
+
var selectedNodes, major, minor, isV41, version, selected, url, alertTimeout, _selectedNodes$0$data14;
|
|
36520
36590
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
36521
36591
|
while (1) switch (_context.prev = _context.next) {
|
|
36522
36592
|
case 0:
|
|
36523
36593
|
selectedNodes = _ref4.selectedNodes;
|
|
36524
|
-
|
|
36594
|
+
major = (_selectedNodes$0$data9 = (_selectedNodes$0$data10 = selectedNodes[0].data) === null || _selectedNodes$0$data10 === void 0 ? void 0 : _selectedNodes$0$data10.major) !== null && _selectedNodes$0$data9 !== void 0 ? _selectedNodes$0$data9 : 3;
|
|
36595
|
+
minor = (_selectedNodes$0$data11 = (_selectedNodes$0$data12 = selectedNodes[0].data) === null || _selectedNodes$0$data12 === void 0 ? void 0 : _selectedNodes$0$data12.minor) !== null && _selectedNodes$0$data11 !== void 0 ? _selectedNodes$0$data11 : 0;
|
|
36596
|
+
isV41 = Number(major) === 4 && Number(minor) === 1;
|
|
36597
|
+
if (!isV41) {
|
|
36598
|
+
_context.next = 13;
|
|
36599
|
+
break;
|
|
36600
|
+
}
|
|
36601
|
+
_context.next = 7;
|
|
36602
|
+
return selectVersion();
|
|
36603
|
+
case 7:
|
|
36604
|
+
selected = _context.sent;
|
|
36605
|
+
if (selected) {
|
|
36606
|
+
_context.next = 10;
|
|
36607
|
+
break;
|
|
36608
|
+
}
|
|
36609
|
+
return _context.abrupt("return");
|
|
36610
|
+
case 10:
|
|
36611
|
+
version = selected;
|
|
36612
|
+
_context.next = 14;
|
|
36613
|
+
break;
|
|
36614
|
+
case 13:
|
|
36615
|
+
version = major + '.' + minor;
|
|
36616
|
+
case 14:
|
|
36617
|
+
url = apiConfig.enricherService + '/packages/' + ((_selectedNodes$0$data13 = selectedNodes[0].data) === null || _selectedNodes$0$data13 === void 0 ? void 0 : _selectedNodes$0$data13._id) + '/catalog/v' + version; // Show modal if download takes more than 3 seconds
|
|
36525
36618
|
alertTimeout = setTimeout(function () {
|
|
36526
36619
|
showLoadingModal(t('backoffice.idmEnricher.export.modaltext'));
|
|
36527
36620
|
}, 3000);
|
|
36528
|
-
_context.prev =
|
|
36529
|
-
_context.next =
|
|
36621
|
+
_context.prev = 16;
|
|
36622
|
+
_context.next = 19;
|
|
36530
36623
|
return downloadFile(url, root.dataStore.jwt, 'application/zip', ((_selectedNodes$0$data14 = selectedNodes[0].data) === null || _selectedNodes$0$data14 === void 0 ? void 0 : _selectedNodes$0$data14.name) + '.zip');
|
|
36531
|
-
case
|
|
36624
|
+
case 19:
|
|
36532
36625
|
closeModal();
|
|
36533
|
-
_context.next =
|
|
36626
|
+
_context.next = 25;
|
|
36534
36627
|
break;
|
|
36535
|
-
case
|
|
36536
|
-
_context.prev =
|
|
36537
|
-
_context.t0 = _context["catch"](
|
|
36628
|
+
case 22:
|
|
36629
|
+
_context.prev = 22;
|
|
36630
|
+
_context.t0 = _context["catch"](16);
|
|
36538
36631
|
showErrorModal('File download failed:' + _context.t0);
|
|
36539
|
-
case
|
|
36540
|
-
_context.prev =
|
|
36632
|
+
case 25:
|
|
36633
|
+
_context.prev = 25;
|
|
36541
36634
|
// Clear the alert timeout once the download is complete or fails
|
|
36542
36635
|
clearTimeout(alertTimeout);
|
|
36543
|
-
return _context.finish(
|
|
36544
|
-
case
|
|
36636
|
+
return _context.finish(25);
|
|
36637
|
+
case 28:
|
|
36545
36638
|
case "end":
|
|
36546
36639
|
return _context.stop();
|
|
36547
36640
|
}
|
|
36548
|
-
}, _callee, null, [[
|
|
36641
|
+
}, _callee, null, [[16, 22, 25, 28]]);
|
|
36549
36642
|
}));
|
|
36550
36643
|
function action(_x) {
|
|
36551
36644
|
return _action.apply(this, arguments);
|
|
@@ -36553,7 +36646,7 @@ var TablePackages = observer(function () {
|
|
|
36553
36646
|
return action;
|
|
36554
36647
|
}()
|
|
36555
36648
|
}];
|
|
36556
|
-
}, [apiConfig.enricherService, root.dataStore.jwt, canOpen, canDownload, getOpenIcon, getOpenTooltip, getDownloadTooltip, setSelectedPackage, showLoadingModal, showErrorModal, closeModal, t]);
|
|
36649
|
+
}, [apiConfig.enricherService, root.dataStore.jwt, canOpen, canDownload, getOpenIcon, getOpenTooltip, getDownloadTooltip, setSelectedPackage, showLoadingModal, showErrorModal, closeModal, selectVersion, t]);
|
|
36557
36650
|
var apiInterface = useMemo(function () {
|
|
36558
36651
|
return {
|
|
36559
36652
|
read: apiConfig.enricherService + '/packages?organizationId=' + organizationId,
|
|
@@ -36881,7 +36974,7 @@ var TablePackages = observer(function () {
|
|
|
36881
36974
|
rowActions: rowActions,
|
|
36882
36975
|
configuration: configuration,
|
|
36883
36976
|
isRowEditable: isRowEditable
|
|
36884
|
-
}), contextHolder]
|
|
36977
|
+
}), contextHolder, versionDialogContextHolder]
|
|
36885
36978
|
});
|
|
36886
36979
|
});
|
|
36887
36980
|
|
|
@@ -41697,6 +41790,9 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
|
|
|
41697
41790
|
showErrorModal = _useLoadingModal.showErrorModal,
|
|
41698
41791
|
closeModal = _useLoadingModal.closeModal,
|
|
41699
41792
|
contextHolder = _useLoadingModal.contextHolder;
|
|
41793
|
+
var _useCatalogVersionDia = useCatalogVersionDialog(),
|
|
41794
|
+
selectVersion = _useCatalogVersionDia.selectVersion,
|
|
41795
|
+
versionDialogContextHolder = _useCatalogVersionDia.contextHolder;
|
|
41700
41796
|
var applicationData = useMemo(function () {
|
|
41701
41797
|
return {
|
|
41702
41798
|
organizationId: organizationId,
|
|
@@ -41715,35 +41811,57 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
|
|
|
41715
41811
|
icon: /*#__PURE__*/jsx(DownloadOutlined$1, {}),
|
|
41716
41812
|
action: function () {
|
|
41717
41813
|
var _action = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref3) {
|
|
41718
|
-
var selectedNodes, url, alertTimeout;
|
|
41814
|
+
var selectedNodes, _selectedNodes$0$data, major, minor, isV41, version, selected, url, alertTimeout;
|
|
41719
41815
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
41720
41816
|
while (1) switch (_context.prev = _context.next) {
|
|
41721
41817
|
case 0:
|
|
41722
41818
|
selectedNodes = _ref3.selectedNodes;
|
|
41723
|
-
|
|
41819
|
+
_selectedNodes$0$data = selectedNodes[0].data, major = _selectedNodes$0$data.major, minor = _selectedNodes$0$data.minor;
|
|
41820
|
+
isV41 = major === 4 && minor === 1;
|
|
41821
|
+
if (!isV41) {
|
|
41822
|
+
_context.next = 12;
|
|
41823
|
+
break;
|
|
41824
|
+
}
|
|
41825
|
+
_context.next = 6;
|
|
41826
|
+
return selectVersion();
|
|
41827
|
+
case 6:
|
|
41828
|
+
selected = _context.sent;
|
|
41829
|
+
if (selected) {
|
|
41830
|
+
_context.next = 9;
|
|
41831
|
+
break;
|
|
41832
|
+
}
|
|
41833
|
+
return _context.abrupt("return");
|
|
41834
|
+
case 9:
|
|
41835
|
+
version = selected;
|
|
41836
|
+
_context.next = 13;
|
|
41837
|
+
break;
|
|
41838
|
+
case 12:
|
|
41839
|
+
version = major + '.' + minor;
|
|
41840
|
+
case 13:
|
|
41841
|
+
url = apiConfig.idmService + '/catalogs/' + selectedNodes[0].data._id + '/complete/v' + version;
|
|
41724
41842
|
alertTimeout = setTimeout(function () {
|
|
41725
41843
|
showLoadingModal(t('backoffice.idmEnricher.export.modaltext'));
|
|
41726
41844
|
}, 3000);
|
|
41727
|
-
_context.prev =
|
|
41728
|
-
_context.next =
|
|
41845
|
+
_context.prev = 15;
|
|
41846
|
+
_context.next = 18;
|
|
41729
41847
|
return downloadFile(url, root.dataStore.jwt, 'application/zip', selectedNodes[0].data.name + '.zip');
|
|
41730
|
-
case
|
|
41848
|
+
case 18:
|
|
41731
41849
|
closeModal();
|
|
41732
|
-
_context.next =
|
|
41850
|
+
_context.next = 24;
|
|
41733
41851
|
break;
|
|
41734
|
-
case
|
|
41735
|
-
_context.prev =
|
|
41736
|
-
_context.t0 = _context["catch"](
|
|
41852
|
+
case 21:
|
|
41853
|
+
_context.prev = 21;
|
|
41854
|
+
_context.t0 = _context["catch"](15);
|
|
41737
41855
|
showErrorModal('File download failed:' + _context.t0);
|
|
41738
|
-
case
|
|
41739
|
-
_context.prev =
|
|
41856
|
+
case 24:
|
|
41857
|
+
_context.prev = 24;
|
|
41740
41858
|
clearTimeout(alertTimeout);
|
|
41741
|
-
return _context.finish(
|
|
41742
|
-
case
|
|
41859
|
+
return _context.finish(24);
|
|
41860
|
+
case 27:
|
|
41743
41861
|
case "end":
|
|
41744
41862
|
return _context.stop();
|
|
41745
41863
|
}
|
|
41746
|
-
}, _callee, null, [[
|
|
41864
|
+
}, _callee, null, [[15, 21, 24, 27]]);
|
|
41747
41865
|
}));
|
|
41748
41866
|
function action(_x) {
|
|
41749
41867
|
return _action.apply(this, arguments);
|
|
@@ -41790,7 +41908,7 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
|
|
|
41790
41908
|
return action;
|
|
41791
41909
|
}()
|
|
41792
41910
|
}];
|
|
41793
|
-
}, [setSelectedCatalog, apiConfig, showLoadingModal, showErrorModal, closeModal, t, root.dataStore.jwt]);
|
|
41911
|
+
}, [setSelectedCatalog, apiConfig, showLoadingModal, showErrorModal, closeModal, selectVersion, t, root.dataStore.jwt]);
|
|
41794
41912
|
var configuration = useMemo(function () {
|
|
41795
41913
|
var versionsBase = apiConfig.idmService + '/catalogs/${_id}/versions';
|
|
41796
41914
|
var apiInterface = {
|
|
@@ -42521,7 +42639,7 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
|
|
|
42521
42639
|
rowActions: rowActions,
|
|
42522
42640
|
configuration: configuration,
|
|
42523
42641
|
hooks: hooks
|
|
42524
|
-
}), contextHolder]
|
|
42642
|
+
}), contextHolder, versionDialogContextHolder]
|
|
42525
42643
|
});
|
|
42526
42644
|
});
|
|
42527
42645
|
|
|
@@ -42543,6 +42661,9 @@ var IdmCatalogs = /*#__PURE__*/forwardRef(function IdmCatalogs(_ref, ref) {
|
|
|
42543
42661
|
showErrorModal = _useLoadingModal.showErrorModal,
|
|
42544
42662
|
closeModal = _useLoadingModal.closeModal,
|
|
42545
42663
|
contextHolder = _useLoadingModal.contextHolder;
|
|
42664
|
+
var _useCatalogVersionDia = useCatalogVersionDialog(),
|
|
42665
|
+
selectVersion = _useCatalogVersionDia.selectVersion,
|
|
42666
|
+
versionDialogContextHolder = _useCatalogVersionDia.contextHolder;
|
|
42546
42667
|
var applicationData = useMemo(function () {
|
|
42547
42668
|
return {
|
|
42548
42669
|
organizationId: organizationId
|
|
@@ -42580,35 +42701,57 @@ var IdmCatalogs = /*#__PURE__*/forwardRef(function IdmCatalogs(_ref, ref) {
|
|
|
42580
42701
|
icon: /*#__PURE__*/jsx(DownloadOutlined$1, {}),
|
|
42581
42702
|
action: function () {
|
|
42582
42703
|
var _action = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref3) {
|
|
42583
|
-
var selectedNodes, url, alertTimeout;
|
|
42704
|
+
var selectedNodes, _selectedNodes$0$data, major, minor, isV41, version, selected, url, alertTimeout;
|
|
42584
42705
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
42585
42706
|
while (1) switch (_context.prev = _context.next) {
|
|
42586
42707
|
case 0:
|
|
42587
42708
|
selectedNodes = _ref3.selectedNodes;
|
|
42588
|
-
|
|
42709
|
+
_selectedNodes$0$data = selectedNodes[0].data, major = _selectedNodes$0$data.major, minor = _selectedNodes$0$data.minor;
|
|
42710
|
+
isV41 = major === 4 && minor === 1;
|
|
42711
|
+
if (!isV41) {
|
|
42712
|
+
_context.next = 12;
|
|
42713
|
+
break;
|
|
42714
|
+
}
|
|
42715
|
+
_context.next = 6;
|
|
42716
|
+
return selectVersion();
|
|
42717
|
+
case 6:
|
|
42718
|
+
selected = _context.sent;
|
|
42719
|
+
if (selected) {
|
|
42720
|
+
_context.next = 9;
|
|
42721
|
+
break;
|
|
42722
|
+
}
|
|
42723
|
+
return _context.abrupt("return");
|
|
42724
|
+
case 9:
|
|
42725
|
+
version = selected;
|
|
42726
|
+
_context.next = 13;
|
|
42727
|
+
break;
|
|
42728
|
+
case 12:
|
|
42729
|
+
version = major + '.' + minor;
|
|
42730
|
+
case 13:
|
|
42731
|
+
url = apiConfig.idmService + '/catalogs/' + selectedNodes[0].data._id + '/complete/v' + version;
|
|
42589
42732
|
alertTimeout = setTimeout(function () {
|
|
42590
42733
|
showLoadingModal(t('backoffice.idmEnricher.export.modaltext'));
|
|
42591
42734
|
}, 3000);
|
|
42592
|
-
_context.prev =
|
|
42593
|
-
_context.next =
|
|
42735
|
+
_context.prev = 15;
|
|
42736
|
+
_context.next = 18;
|
|
42594
42737
|
return downloadFile(url, root.dataStore.jwt, 'application/zip', selectedNodes[0].data.name + '.zip');
|
|
42595
|
-
case
|
|
42738
|
+
case 18:
|
|
42596
42739
|
closeModal();
|
|
42597
|
-
_context.next =
|
|
42740
|
+
_context.next = 24;
|
|
42598
42741
|
break;
|
|
42599
|
-
case
|
|
42600
|
-
_context.prev =
|
|
42601
|
-
_context.t0 = _context["catch"](
|
|
42742
|
+
case 21:
|
|
42743
|
+
_context.prev = 21;
|
|
42744
|
+
_context.t0 = _context["catch"](15);
|
|
42602
42745
|
showErrorModal('File download failed:' + _context.t0);
|
|
42603
|
-
case
|
|
42604
|
-
_context.prev =
|
|
42746
|
+
case 24:
|
|
42747
|
+
_context.prev = 24;
|
|
42605
42748
|
clearTimeout(alertTimeout);
|
|
42606
|
-
return _context.finish(
|
|
42607
|
-
case
|
|
42749
|
+
return _context.finish(24);
|
|
42750
|
+
case 27:
|
|
42608
42751
|
case "end":
|
|
42609
42752
|
return _context.stop();
|
|
42610
42753
|
}
|
|
42611
|
-
}, _callee, null, [[
|
|
42754
|
+
}, _callee, null, [[15, 21, 24, 27]]);
|
|
42612
42755
|
}));
|
|
42613
42756
|
function action(_x) {
|
|
42614
42757
|
return _action.apply(this, arguments);
|
|
@@ -42655,7 +42798,7 @@ var IdmCatalogs = /*#__PURE__*/forwardRef(function IdmCatalogs(_ref, ref) {
|
|
|
42655
42798
|
return action;
|
|
42656
42799
|
}()
|
|
42657
42800
|
}];
|
|
42658
|
-
}, [setSelectedCatalog, apiConfig, showLoadingModal, showErrorModal, closeModal, t, root.dataStore.jwt]);
|
|
42801
|
+
}, [setSelectedCatalog, apiConfig, showLoadingModal, showErrorModal, closeModal, selectVersion, t, root.dataStore.jwt]);
|
|
42659
42802
|
var contextMenuItems = useMemo(function () {
|
|
42660
42803
|
var cloneCatalogItem = function cloneCatalogItem(_ref5) {
|
|
42661
42804
|
var selectedNodes = _ref5.selectedNodes;
|
|
@@ -42988,7 +43131,7 @@ var IdmCatalogs = /*#__PURE__*/forwardRef(function IdmCatalogs(_ref, ref) {
|
|
|
42988
43131
|
configuration: configuration,
|
|
42989
43132
|
contextMenuItems: contextMenuItems,
|
|
42990
43133
|
hooks: hooks
|
|
42991
|
-
}), contextHolder]
|
|
43134
|
+
}), contextHolder, versionDialogContextHolder]
|
|
42992
43135
|
});
|
|
42993
43136
|
});
|
|
42994
43137
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type CatalogDownloadVersion = '4.0' | '4.1';
|
|
3
|
+
export interface CatalogVersionDialogState {
|
|
4
|
+
/** Opens the dialog and resolves with the chosen version, or undefined when cancelled. */
|
|
5
|
+
selectVersion: () => Promise<CatalogDownloadVersion | undefined>;
|
|
6
|
+
/** Render this element somewhere in the component tree to display the dialog. */
|
|
7
|
+
contextHolder: React.ReactElement;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Hook that provides a dialog to let the user choose the catalog download version (4.0 or 4.1).
|
|
11
|
+
*/
|
|
12
|
+
export declare const useCatalogVersionDialog: () => CatalogVersionDialogState;
|
|
13
|
+
//# sourceMappingURL=useCatalogVersionDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCatalogVersionDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/CommonComponents/useCatalogVersionDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAM7D,MAAM,MAAM,sBAAsB,GAAG,KAAK,GAAG,KAAK,CAAC;AAEnD,MAAM,WAAW,yBAAyB;IACxC,0FAA0F;IAC1F,aAAa,EAAE,MAAM,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;IACjE,iFAAiF;IACjF,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC;CACnC;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAAO,yBA+C1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CatalogVersions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/CatalogVersions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAgC,mBAAmB,EAAoB,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"CatalogVersions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/CatalogVersions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAgC,mBAAmB,EAAoB,MAAM,4BAA4B,CAAC;AAYjH,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,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAEhI,QAAA,MAAM,QAAQ;oBAGM,MAAM;eACX,SAAS;aACX,UAAU;eACR,OAAO;yBACG,oBAAoB;IACzC,mEAAmE;qBAClD,MAAM,IAAI;IAC3B,oFAAoF;qBACnE,MAAM;6CAk3BzB,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -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,EAGL,mBAAmB,EAIpB,MAAM,4BAA4B,CAAC;
|
|
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;AAYpC,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;6CA+YzB,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA+BpD,eAAO,MAAM,aAAa;;CAicxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "26.7.0-beta.
|
|
3
|
+
"version": "26.7.0-beta.5",
|
|
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.7.0-beta.
|
|
19
|
-
"@crystaldesign/content-item": "26.7.0-beta.
|
|
20
|
-
"@crystaldesign/diva-core": "26.7.0-beta.
|
|
21
|
-
"@crystaldesign/diva-utils": "26.7.0-beta.
|
|
22
|
-
"@crystaldesign/media-upload": "26.7.0-beta.
|
|
23
|
-
"@crystaldesign/rtf-editor": "26.7.0-beta.
|
|
24
|
-
"@crystaldesign/spreadsheet": "26.7.0-beta.
|
|
18
|
+
"@crystaldesign/content-box": "26.7.0-beta.5",
|
|
19
|
+
"@crystaldesign/content-item": "26.7.0-beta.5",
|
|
20
|
+
"@crystaldesign/diva-core": "26.7.0-beta.5",
|
|
21
|
+
"@crystaldesign/diva-utils": "26.7.0-beta.5",
|
|
22
|
+
"@crystaldesign/media-upload": "26.7.0-beta.5",
|
|
23
|
+
"@crystaldesign/rtf-editor": "26.7.0-beta.5",
|
|
24
|
+
"@crystaldesign/spreadsheet": "26.7.0-beta.5",
|
|
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": "e8a611b668bead1986997f7d23839e24b8aff164"
|
|
57
57
|
}
|