@crystaldesign/diva-backoffice 25.13.0-beta.33 → 25.13.0-beta.35
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
CHANGED
|
@@ -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';
|
|
@@ -4454,6 +4454,14 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
4454
4454
|
title: t('backoffice.table.prompts.title'),
|
|
4455
4455
|
type: 'Table',
|
|
4456
4456
|
canRefresh: true,
|
|
4457
|
+
filter: {
|
|
4458
|
+
toggle: {
|
|
4459
|
+
fields: ['archived'],
|
|
4460
|
+
label: t('backoffice.table.prompts.columns.archived'),
|
|
4461
|
+
labelOff: t('backoffice.table.prompts.columns.archived'),
|
|
4462
|
+
defaultChecked: false
|
|
4463
|
+
}
|
|
4464
|
+
},
|
|
4457
4465
|
pagination: {
|
|
4458
4466
|
pageSize: 50
|
|
4459
4467
|
},
|
|
@@ -38337,6 +38345,46 @@ var TableCatalogs = observer(function () {
|
|
|
38337
38345
|
}
|
|
38338
38346
|
return action;
|
|
38339
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
|
+
}()
|
|
38340
38388
|
}];
|
|
38341
38389
|
}, []);
|
|
38342
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;;
|
|
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.
|
|
3
|
+
"version": "25.13.0-beta.35",
|
|
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.
|
|
19
|
-
"@crystaldesign/content-item": "25.13.0-beta.
|
|
20
|
-
"@crystaldesign/diva-core": "25.13.0-beta.
|
|
21
|
-
"@crystaldesign/diva-utils": "25.13.0-beta.
|
|
22
|
-
"@crystaldesign/media-upload": "25.13.0-beta.
|
|
23
|
-
"@crystaldesign/rtf-editor": "25.13.0-beta.
|
|
24
|
-
"@crystaldesign/spreadsheet": "25.13.0-beta.
|
|
18
|
+
"@crystaldesign/content-box": "25.13.0-beta.35",
|
|
19
|
+
"@crystaldesign/content-item": "25.13.0-beta.35",
|
|
20
|
+
"@crystaldesign/diva-core": "25.13.0-beta.35",
|
|
21
|
+
"@crystaldesign/diva-utils": "25.13.0-beta.35",
|
|
22
|
+
"@crystaldesign/media-upload": "25.13.0-beta.35",
|
|
23
|
+
"@crystaldesign/rtf-editor": "25.13.0-beta.35",
|
|
24
|
+
"@crystaldesign/spreadsheet": "25.13.0-beta.35",
|
|
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": "
|
|
54
|
+
"gitHead": "d9dd5da386e8fa7045747d1f83cb8bde11928895"
|
|
55
55
|
}
|