@crystaldesign/diva-backoffice 25.3.0-rc.8 → 25.3.0
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
|
@@ -7875,6 +7875,9 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
7875
7875
|
label: t('backoffice.form.organizationdetails.items.api2Location.ek'),
|
|
7876
7876
|
type: 'select',
|
|
7877
7877
|
mode: 'single',
|
|
7878
|
+
required: function required(data) {
|
|
7879
|
+
return (data === null || data === void 0 ? void 0 : data.type) !== undefined;
|
|
7880
|
+
},
|
|
7878
7881
|
hidden: function hidden(data) {
|
|
7879
7882
|
return (data === null || data === void 0 ? void 0 : data.type) === undefined;
|
|
7880
7883
|
},
|
|
@@ -24306,14 +24309,15 @@ function DropdownCell (_ref) {
|
|
|
24306
24309
|
function _createForOfIteratorHelper$6(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$6(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
24307
24310
|
function _unsupportedIterableToArray$6(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$6(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$6(r, a) : void 0; } }
|
|
24308
24311
|
function _arrayLikeToArray$6(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
24309
|
-
if (!window.customElements.get('model-viewer')) {
|
|
24310
|
-
import('@google/model-viewer');
|
|
24311
|
-
}
|
|
24312
24312
|
function MediaViewerCell (_ref) {
|
|
24313
24313
|
var children = _ref.children,
|
|
24314
24314
|
column = _ref.column;
|
|
24315
24315
|
var _useDivaCore = useDivaCore(),
|
|
24316
|
+
actions = _useDivaCore.actions,
|
|
24316
24317
|
isFirefox = _useDivaCore.state.isFirefox;
|
|
24318
|
+
useEffect(function () {
|
|
24319
|
+
actions.loadModelViewer();
|
|
24320
|
+
}, []);
|
|
24317
24321
|
if (!(children !== null && children !== void 0 && children[1])) {
|
|
24318
24322
|
return /*#__PURE__*/jsx(Fragment, {});
|
|
24319
24323
|
}
|
|
@@ -24484,9 +24488,6 @@ var UtilStore = /*#__PURE__*/function () {
|
|
|
24484
24488
|
}();
|
|
24485
24489
|
_defineProperty(UtilStore, "viewConfig", void 0);
|
|
24486
24490
|
|
|
24487
|
-
if (!window.customElements.get('model-viewer')) {
|
|
24488
|
-
import('@google/model-viewer');
|
|
24489
|
-
}
|
|
24490
24491
|
function MediaItemViewerCell (_ref) {
|
|
24491
24492
|
var children = _ref.children;
|
|
24492
24493
|
_ref.column;
|
|
@@ -24500,6 +24501,8 @@ function MediaItemViewerCell (_ref) {
|
|
|
24500
24501
|
setTimeStamp = _useState4[1];
|
|
24501
24502
|
var id;
|
|
24502
24503
|
var _useDivaCore = useDivaCore(),
|
|
24504
|
+
handler = _useDivaCore.handler,
|
|
24505
|
+
actions = _useDivaCore.actions,
|
|
24503
24506
|
isFirefox = _useDivaCore.state.isFirefox;
|
|
24504
24507
|
|
|
24505
24508
|
//! for renderjob table mediaItems because can't filter mediaItems.0
|
|
@@ -24508,6 +24511,9 @@ function MediaItemViewerCell (_ref) {
|
|
|
24508
24511
|
} else {
|
|
24509
24512
|
id = children[0];
|
|
24510
24513
|
}
|
|
24514
|
+
useEffect(function () {
|
|
24515
|
+
actions.loadModelViewer();
|
|
24516
|
+
}, []);
|
|
24511
24517
|
useEffect(function () {
|
|
24512
24518
|
if (!id) return;
|
|
24513
24519
|
handler.mediaHandler.getMediaById(id).then(function (res) {
|
|
@@ -24532,9 +24538,6 @@ function MediaItemViewerCell (_ref) {
|
|
|
24532
24538
|
});
|
|
24533
24539
|
}, [timeStamp, id]);
|
|
24534
24540
|
if (!id) return /*#__PURE__*/jsx(FileUnknownOutlined, {});
|
|
24535
|
-
var _useDivaCore2 = useDivaCore(),
|
|
24536
|
-
handler = _useDivaCore2.handler,
|
|
24537
|
-
actions = _useDivaCore2.actions;
|
|
24538
24541
|
var openModelViewer = function openModelViewer() {
|
|
24539
24542
|
actions.openFullscreen({
|
|
24540
24543
|
content: /*#__PURE__*/jsx("model-viewer", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/Table/BaseTable/cellRenderer/MediaItemViewerCell/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/Table/BaseTable/cellRenderer/MediaItemViewerCell/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAOxC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,cAAc,EAAE,GAAG,CAAC;SACrB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,kBAAkB,qBAqFhE"}
|
package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/MediaViewerCell/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/Table/BaseTable/cellRenderer/MediaViewerCell/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/Table/BaseTable/cellRenderer/MediaViewerCell/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAMxC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,cAAc,EAAE,GAAG,CAAC;SACrB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,kBAAkB,qBAkFhE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "25.3.0
|
|
3
|
+
"version": "25.3.0",
|
|
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.3.0
|
|
19
|
-
"@crystaldesign/content-item": "25.3.0
|
|
20
|
-
"@crystaldesign/diva-core": "25.3.0
|
|
21
|
-
"@crystaldesign/diva-utils": "25.3.0
|
|
22
|
-
"@crystaldesign/media-upload": "25.3.0
|
|
23
|
-
"@crystaldesign/rtf-editor": "25.3.0
|
|
24
|
-
"@crystaldesign/spreadsheet": "25.3.0
|
|
18
|
+
"@crystaldesign/content-box": "25.3.0",
|
|
19
|
+
"@crystaldesign/content-item": "25.3.0",
|
|
20
|
+
"@crystaldesign/diva-core": "25.3.0",
|
|
21
|
+
"@crystaldesign/diva-utils": "25.3.0",
|
|
22
|
+
"@crystaldesign/media-upload": "25.3.0",
|
|
23
|
+
"@crystaldesign/rtf-editor": "25.3.0",
|
|
24
|
+
"@crystaldesign/spreadsheet": "25.3.0",
|
|
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": "b6ec1f4a971651956ce27e973dd40c8d621ede19"
|
|
55
55
|
}
|