@crystaldesign/diva-backoffice 24.8.0-beta.22 → 24.8.0-beta.24

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.
@@ -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',
@@ -15844,7 +15845,8 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
15844
15845
  title: item.action.label,
15845
15846
  type: item.action.type,
15846
15847
  description: item.action.description,
15847
- footer: item.action.footer
15848
+ footer: item.action.footer,
15849
+ width: item.action.width
15848
15850
  });
15849
15851
  },
15850
15852
  style: {
@@ -28535,18 +28537,21 @@ function Detail(_ref) {
28535
28537
  }), info.type == 'Group' && /*#__PURE__*/jsx(Group, {
28536
28538
  id: info.configurationId
28537
28539
  }), info.type == 'RoomSelector' && /*#__PURE__*/jsx(RoomSelection, {
28538
- onClose: function onClose() {
28539
- return left ? root.detailStore.closeLeftDetail() : root.detailStore.closeRightDetail();
28540
- },
28541
- onSave: function onSave(room, viewpoint) {
28542
- var _info$callback2;
28540
+ configuration: {},
28541
+ roomId: undefined,
28542
+ viewPointId: undefined,
28543
+ onSelect: function onSelect(room, variant, viewpoint) {
28544
+ var _info$callback2, _variant$id;
28543
28545
  (_info$callback2 = info.callback) === null || _info$callback2 === void 0 || _info$callback2.call(info, {
28544
- room: room,
28546
+ room: (_variant$id = variant.id) !== null && _variant$id !== void 0 ? _variant$id : room._id,
28545
28547
  viewpoint: viewpoint
28546
28548
  });
28547
28549
  left ? root.detailStore.closeLeftDetail() : root.detailStore.closeRightDetail();
28548
28550
  },
28549
- theme: root.contentStore.theme == 'darkmode' ? 'dark' : 'bright'
28551
+ onClose: function onClose() {
28552
+ return left ? root.detailStore.closeLeftDetail() : root.detailStore.closeRightDetail();
28553
+ },
28554
+ themeType: root.contentStore.theme == 'darkmode' ? 'dark' : 'white'
28550
28555
  })]
28551
28556
  })]
28552
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,eAoO3H;AAED,QAAA,MAAM,kBAAkB;;CAAmB,CAAC;AAC5C,eAAe,kBAAkB,CAAC"}
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;;;;;;;;;;AA0dD,wBAA2D;AAQ3D,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,uBAY/C;AAED,cAAc,SAAS,CAAC"}
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.22",
3
+ "version": "24.8.0-beta.24",
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.22",
18
+ "@crystaldesign/spreadsheet": "24.8.0-beta.24",
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": "8756c0bdce1dd1517ace1ebb4ce446d78490543f"
54
+ "gitHead": "dfb147007ed8dacef973c402d9dfd8b793e63d30"
55
55
  }