@crystaldesign/diva-backoffice 24.8.0-beta.21 → 24.8.0-beta.23
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
|
@@ -81,6 +81,7 @@ import DivaUtils$1, { nanoid } from '@crystaldesign/diva-utils';
|
|
|
81
81
|
import classnames from 'classnames';
|
|
82
82
|
import ReactCrop from 'react-image-crop';
|
|
83
83
|
import 'react-image-crop/dist/ReactCrop.css';
|
|
84
|
+
import RoomSelection from '@crystaldesign/room-selection';
|
|
84
85
|
import AssetEditor from '@crystaldesign/media-upload';
|
|
85
86
|
import ReloadOutlined from '@ant-design/icons/ReloadOutlined';
|
|
86
87
|
import QuestionCircleOutlined from '@ant-design/icons/QuestionCircleOutlined';
|
|
@@ -112,7 +113,6 @@ import Descriptions$1 from 'antd/es/descriptions';
|
|
|
112
113
|
import Space$1 from 'antd/es/space';
|
|
113
114
|
import { Spreadsheet } from '@crystaldesign/spreadsheet';
|
|
114
115
|
import EditOutlined from '@ant-design/icons/lib/icons/EditOutlined';
|
|
115
|
-
import RoomSelection from '@crystaldesign/room-selection';
|
|
116
116
|
import Switch$1 from 'antd/es/switch';
|
|
117
117
|
import Layout$1 from 'antd/es/layout';
|
|
118
118
|
import Menu from 'antd/es/menu';
|
|
@@ -7991,7 +7991,8 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
7991
7991
|
actionType: 'Detail',
|
|
7992
7992
|
id: 'openRoomSelector',
|
|
7993
7993
|
type: 'RoomSelector',
|
|
7994
|
-
footer: false
|
|
7994
|
+
footer: false,
|
|
7995
|
+
width: 2000
|
|
7995
7996
|
},
|
|
7996
7997
|
callbackMapping: [{
|
|
7997
7998
|
sourceField: 'renderScene',
|
|
@@ -12722,6 +12723,7 @@ var _default$1 = /*#__PURE__*/function () {
|
|
|
12722
12723
|
|
|
12723
12724
|
var storeContext = /*#__PURE__*/createContext(null);
|
|
12724
12725
|
var StoreProvider = function StoreProvider(_ref) {
|
|
12726
|
+
var _location$pathname;
|
|
12725
12727
|
var children = _ref.children,
|
|
12726
12728
|
settings = _ref.settings;
|
|
12727
12729
|
_ref.isVisible;
|
|
@@ -12744,14 +12746,15 @@ var StoreProvider = function StoreProvider(_ref) {
|
|
|
12744
12746
|
var navigate = useNavigate();
|
|
12745
12747
|
var _useState = useState(new _default$1(actions, handler, t, navigate, {
|
|
12746
12748
|
searchParams: searchParams,
|
|
12747
|
-
path: location.pathname
|
|
12749
|
+
path: (_location$pathname = location.pathname) !== null && _location$pathname !== void 0 ? _location$pathname : '/'
|
|
12748
12750
|
})),
|
|
12749
12751
|
_useState2 = _slicedToArray(_useState, 1),
|
|
12750
12752
|
store = _useState2[0];
|
|
12751
12753
|
useEffect(function () {
|
|
12754
|
+
var _location$pathname2;
|
|
12752
12755
|
store.updateNavigationState({
|
|
12753
12756
|
searchParams: searchParams,
|
|
12754
|
-
path: location.pathname
|
|
12757
|
+
path: (_location$pathname2 = location.pathname) !== null && _location$pathname2 !== void 0 ? _location$pathname2 : '/'
|
|
12755
12758
|
});
|
|
12756
12759
|
store.dataStore.setUserData(jwt, nToken, user);
|
|
12757
12760
|
store.dataStore.setOrganizationData(organization);
|
|
@@ -15842,7 +15845,8 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
|
|
|
15842
15845
|
title: item.action.label,
|
|
15843
15846
|
type: item.action.type,
|
|
15844
15847
|
description: item.action.description,
|
|
15845
|
-
footer: item.action.footer
|
|
15848
|
+
footer: item.action.footer,
|
|
15849
|
+
width: item.action.width
|
|
15846
15850
|
});
|
|
15847
15851
|
},
|
|
15848
15852
|
style: {
|
|
@@ -28533,18 +28537,21 @@ function Detail(_ref) {
|
|
|
28533
28537
|
}), info.type == 'Group' && /*#__PURE__*/jsx(Group, {
|
|
28534
28538
|
id: info.configurationId
|
|
28535
28539
|
}), info.type == 'RoomSelector' && /*#__PURE__*/jsx(RoomSelection, {
|
|
28536
|
-
|
|
28537
|
-
|
|
28538
|
-
|
|
28539
|
-
|
|
28540
|
-
var _info$callback2;
|
|
28540
|
+
configuration: {},
|
|
28541
|
+
roomId: undefined,
|
|
28542
|
+
viewPointId: undefined,
|
|
28543
|
+
onSelect: function onSelect(room, variant, viewpoint) {
|
|
28544
|
+
var _info$callback2, _variant$id;
|
|
28541
28545
|
(_info$callback2 = info.callback) === null || _info$callback2 === void 0 || _info$callback2.call(info, {
|
|
28542
|
-
room: room,
|
|
28546
|
+
room: (_variant$id = variant.id) !== null && _variant$id !== void 0 ? _variant$id : room._id,
|
|
28543
28547
|
viewpoint: viewpoint
|
|
28544
28548
|
});
|
|
28545
28549
|
left ? root.detailStore.closeLeftDetail() : root.detailStore.closeRightDetail();
|
|
28546
28550
|
},
|
|
28547
|
-
|
|
28551
|
+
onClose: function onClose() {
|
|
28552
|
+
return left ? root.detailStore.closeLeftDetail() : root.detailStore.closeRightDetail();
|
|
28553
|
+
},
|
|
28554
|
+
themeType: root.contentStore.theme == 'darkmode' ? 'dark' : 'white'
|
|
28548
28555
|
})]
|
|
28549
28556
|
})]
|
|
28550
28557
|
}), /*#__PURE__*/jsx(DetailWithObserver, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Detail.d.ts","sourceRoot":"","sources":["../../../../../src/layout/Detail.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAkBxE,iBAAS,MAAM,CAAC,EAAE,KAAS,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"Detail.d.ts","sourceRoot":"","sources":["../../../../../src/layout/Detail.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAkBxE,iBAAS,MAAM,CAAC,EAAE,KAAS,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,eAuO3H;AAED,QAAA,MAAM,kBAAkB;;CAAmB,CAAC;AAC5C,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Form/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAMxE,OAAO,EAAyC,IAAI,EAAE,MAAM,SAAS,CAAC;AAQtE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAYnD,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Form/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAMxE,OAAO,EAAyC,IAAI,EAAE,MAAM,SAAS,CAAC;AAQtE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAYnD,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;;;;;;;;;;AA2dD,wBAA2D;AAQ3D,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,uBAY/C;AAED,cAAc,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "24.8.0-beta.
|
|
3
|
+
"version": "24.8.0-beta.23",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^5.15.0",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@ant-design/icons": "5.0.1",
|
|
17
17
|
"@babel/runtime": "7.18.0",
|
|
18
|
-
"@crystaldesign/spreadsheet": "24.8.0-beta.
|
|
18
|
+
"@crystaldesign/spreadsheet": "24.8.0-beta.23",
|
|
19
19
|
"@google/model-viewer": "3.4.0",
|
|
20
20
|
"@tinymce/tinymce-react": "^3.13.0",
|
|
21
21
|
"ag-charts-community": "^9.3.1",
|
|
@@ -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": "7bac2c14c2e5e4823f0286d5dd8e30f1cf350abe"
|
|
55
55
|
}
|