@crystaldesign/diva-backoffice 25.13.0-beta.34 → 25.13.0-beta.36

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.
@@ -76,7 +76,7 @@ import DeleteOutlined from '@ant-design/icons/DeleteOutlined';
76
76
  import JSONEditor from 'jsoneditor';
77
77
  import 'jsoneditor/dist/jsoneditor.css';
78
78
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
79
- import { MinusCircleOutlined, PlusOutlined, DownloadOutlined as DownloadOutlined$1, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1, FullscreenOutlined, FileUnknownOutlined, CloseOutlined as CloseOutlined$1, PlusCircleOutlined as PlusCircleOutlined$1, HomeOutlined as HomeOutlined$1, InboxOutlined, EditOutlined, EyeOutlined, InfoCircleOutlined as InfoCircleOutlined$1, LoadingOutlined, DownOutlined as DownOutlined$1, UploadOutlined as UploadOutlined$2, GlobalOutlined, DatabaseOutlined as DatabaseOutlined$1, DatabaseFilled, ReloadOutlined as ReloadOutlined$1 } from '@ant-design/icons';
79
+ import { MinusCircleOutlined, PlusOutlined, DownloadOutlined as DownloadOutlined$1, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1, FullscreenOutlined, FileUnknownOutlined, CloseOutlined as CloseOutlined$1, PlusCircleOutlined as PlusCircleOutlined$1, HomeOutlined as HomeOutlined$1, InboxOutlined, EditOutlined, EyeOutlined, InfoCircleOutlined as InfoCircleOutlined$1, FilePdfOutlined, LoadingOutlined, DownOutlined as DownOutlined$1, UploadOutlined as UploadOutlined$2, GlobalOutlined, DatabaseOutlined as DatabaseOutlined$1, DatabaseFilled, ReloadOutlined as ReloadOutlined$1 } from '@ant-design/icons';
80
80
  import classnames from 'classnames';
81
81
  import RTFEditor from '@crystaldesign/rtf-editor';
82
82
  import debounce from 'lodash/debounce';
@@ -38345,6 +38345,46 @@ var TableCatalogs = observer(function () {
38345
38345
  }
38346
38346
  return action;
38347
38347
  }()
38348
+ }, {
38349
+ icon: /*#__PURE__*/jsx(FilePdfOutlined, {}),
38350
+ action: function () {
38351
+ var _action2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref3) {
38352
+ var selectedNodes, url, alertTimeout;
38353
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
38354
+ while (1) switch (_context2.prev = _context2.next) {
38355
+ case 0:
38356
+ selectedNodes = _ref3.selectedNodes;
38357
+ url = apiConfig.idmService + '/v3.0/catalogs/' + selectedNodes[0].data._id + '/analyse/pdf'; // Show modal if download takes more than 3 seconds
38358
+ alertTimeout = setTimeout(function () {
38359
+ showLoadingModal(t('backoffice.idmEnricher.analyse.modaltext'));
38360
+ }, 3000);
38361
+ _context2.prev = 3;
38362
+ _context2.next = 6;
38363
+ return downloadFile(url, root.dataStore.jwt, 'application/pdf', selectedNodes[0].data.name + '.pdf');
38364
+ case 6:
38365
+ closeModal();
38366
+ _context2.next = 12;
38367
+ break;
38368
+ case 9:
38369
+ _context2.prev = 9;
38370
+ _context2.t0 = _context2["catch"](3);
38371
+ showErrorModal('File download failed:' + _context2.t0);
38372
+ case 12:
38373
+ _context2.prev = 12;
38374
+ // Clear the alert timeout once the download is complete or fails
38375
+ clearTimeout(alertTimeout);
38376
+ return _context2.finish(12);
38377
+ case 15:
38378
+ case "end":
38379
+ return _context2.stop();
38380
+ }
38381
+ }, _callee2, null, [[3, 9, 12, 15]]);
38382
+ }));
38383
+ function action(_x2) {
38384
+ return _action2.apply(this, arguments);
38385
+ }
38386
+ return action;
38387
+ }()
38348
38388
  }];
38349
38389
  }, []);
38350
38390
  var configuration = useMemo(function () {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableCatalogs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAuBvE,eAAO,MAAM,aAAa;;CAu0BxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableCatalogs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAuBvE,eAAO,MAAM,aAAa;;CA61BxB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "25.13.0-beta.34",
3
+ "version": "25.13.0-beta.36",
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": "5.4.0",
17
17
  "@babel/runtime": "7.24.7",
18
- "@crystaldesign/content-box": "25.13.0-beta.34",
19
- "@crystaldesign/content-item": "25.13.0-beta.34",
20
- "@crystaldesign/diva-core": "25.13.0-beta.34",
21
- "@crystaldesign/diva-utils": "25.13.0-beta.34",
22
- "@crystaldesign/media-upload": "25.13.0-beta.34",
23
- "@crystaldesign/rtf-editor": "25.13.0-beta.34",
24
- "@crystaldesign/spreadsheet": "25.13.0-beta.34",
18
+ "@crystaldesign/content-box": "25.13.0-beta.36",
19
+ "@crystaldesign/content-item": "25.13.0-beta.36",
20
+ "@crystaldesign/diva-core": "25.13.0-beta.36",
21
+ "@crystaldesign/diva-utils": "25.13.0-beta.36",
22
+ "@crystaldesign/media-upload": "25.13.0-beta.36",
23
+ "@crystaldesign/rtf-editor": "25.13.0-beta.36",
24
+ "@crystaldesign/spreadsheet": "25.13.0-beta.36",
25
25
  "@google/model-viewer": "3.5.0",
26
26
  "ag-charts-community": "^10.1.0",
27
27
  "ag-charts-react": "^10.1.0",
@@ -51,5 +51,5 @@
51
51
  },
52
52
  "module": "build/esm/index.js",
53
53
  "types": "./build/types/backoffice/src/index.d.ts",
54
- "gitHead": "d6b0e5636fd594689a9d52f2ed57fab9a900ab1f"
54
+ "gitHead": "843614f5422b156710317f6ca62f5c27d878611a"
55
55
  }