@roomle/embedding-lib 4.42.0 → 4.43.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/.releaserc.json +1 -1
- package/docs/api/classes/exposed_analytics_callbacks.ExposedAnalyticsCallbacks.md +1 -1
- package/docs/api/classes/exposed_api.ExposedApi.md +11 -11
- package/docs/api/classes/exposed_callbacks.ExposedCallbacks.md +8 -8
- package/docs/api/classes/roomle_configurator_api.default.md +9 -9
- package/docs/api/enums/types.UI_BUTTON.md +23 -23
- package/docs/api/interfaces/exposed_callbacks.Labels.md +2 -2
- package/docs/api/interfaces/exposed_callbacks.Price.md +2 -2
- package/docs/api/interfaces/roomle_configurator_api.RoomleEmbeddingApiKeys.md +4 -4
- package/docs/api/interfaces/types.ConfiguratorSettings.md +5 -5
- package/docs/api/interfaces/types.EmbeddingSkin.md +5 -5
- package/docs/api/interfaces/types.UiInitData.md +31 -17
- package/docs/api/modules/roomle_configurator_api.md +3 -3
- package/docs/md/web/ui/EMBEDDING-CHANGELOG.md +55 -8
- package/package.json +2 -2
- package/types/index.d.ts +32 -10
- package/types/src/common/components/collection-view/-utils/types.d.ts +2 -2
- package/types/src/common/store/index.d.ts +4 -0
- package/types/src/common/utils/types.d.ts +4 -0
- package/types/src/configurator/business-logic/sdk-connector.d.ts +2 -1
- package/types/src/configurator/embedding/types.d.ts +5 -0
- package/types/src/configurator/store/ui-state.d.ts +3 -1
- package/types/src/planner/business-logic/general-room-parameters.d.ts +17 -0
- package/types/src/planner/business-logic/rooms.d.ts +27 -2
- package/types/src/planner/store/planner-core-data.d.ts +2 -2
- package/types/src/planner/store/planner-ui-state.d.ts +9 -2
- package/types/src/planner/utils/planner-sidebar.d.ts +1 -2
- package/types/tests/helpers/data/planObject.d.ts +134 -0
- package/types/tests/helpers/mocks/roomle-sdk-wrapper.d.ts +135 -0
- package/types/tests/integration/planner/components/{SelectionPreview.spec.d.ts → overlays/rooms/RoomGeneralSettings.spec.d.ts} +0 -0
- package/types/tests/integration/planner/components/overlays/rooms/RoomRangeParameter.spec.d.ts +1 -0
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
- [gaConsent](types.UiInitData.md#gaconsent)
|
|
40
40
|
- [groupPartList](types.UiInitData.md#grouppartlist)
|
|
41
41
|
- [id](types.UiInitData.md#id)
|
|
42
|
+
- [initMocInConfiguringMode](types.UiInitData.md#initmocinconfiguringmode)
|
|
42
43
|
- [initialFloorMaterial](types.UiInitData.md#initialfloormaterial)
|
|
43
44
|
- [isItem](types.UiInitData.md#isitem)
|
|
44
45
|
- [locale](types.UiInitData.md#locale)
|
|
@@ -128,7 +129,7 @@ to view 3d content. Imagine it then as a <img> tag for 3d content
|
|
|
128
129
|
|
|
129
130
|
#### Defined in
|
|
130
131
|
|
|
131
|
-
[src/configurator/embedding/types.ts:92](https://
|
|
132
|
+
[src/configurator/embedding/types.ts:92](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L92)
|
|
132
133
|
|
|
133
134
|
___
|
|
134
135
|
|
|
@@ -145,7 +146,7 @@ InitDataDefinition.applyCurrentGlobalParameters
|
|
|
145
146
|
|
|
146
147
|
#### Defined in
|
|
147
148
|
|
|
148
|
-
[src/configurator/embedding/types.ts:139](https://
|
|
149
|
+
[src/configurator/embedding/types.ts:139](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L139)
|
|
149
150
|
|
|
150
151
|
___
|
|
151
152
|
|
|
@@ -216,7 +217,7 @@ ___
|
|
|
216
217
|
|
|
217
218
|
#### Defined in
|
|
218
219
|
|
|
219
|
-
[src/configurator/embedding/types.ts:40](https://
|
|
220
|
+
[src/configurator/embedding/types.ts:40](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L40)
|
|
220
221
|
|
|
221
222
|
___
|
|
222
223
|
|
|
@@ -347,7 +348,7 @@ usage: http://www.example.com/configurator?id=#CONFIGURATIONID#
|
|
|
347
348
|
|
|
348
349
|
#### Defined in
|
|
349
350
|
|
|
350
|
-
[src/configurator/embedding/types.ts:79](https://
|
|
351
|
+
[src/configurator/embedding/types.ts:79](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L79)
|
|
351
352
|
|
|
352
353
|
___
|
|
353
354
|
|
|
@@ -412,7 +413,7 @@ an e-mail
|
|
|
412
413
|
|
|
413
414
|
#### Defined in
|
|
414
415
|
|
|
415
|
-
[src/configurator/embedding/types.ts:97](https://
|
|
416
|
+
[src/configurator/embedding/types.ts:97](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L97)
|
|
416
417
|
|
|
417
418
|
___
|
|
418
419
|
|
|
@@ -426,7 +427,7 @@ so that we can ensure a smooth transition between different versions of our conf
|
|
|
426
427
|
|
|
427
428
|
#### Defined in
|
|
428
429
|
|
|
429
|
-
[src/configurator/embedding/types.ts:113](https://
|
|
430
|
+
[src/configurator/embedding/types.ts:113](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L113)
|
|
430
431
|
|
|
431
432
|
___
|
|
432
433
|
|
|
@@ -454,7 +455,7 @@ set this flag to false if the user did not give the consent to Analytics
|
|
|
454
455
|
|
|
455
456
|
#### Defined in
|
|
456
457
|
|
|
457
|
-
[src/configurator/embedding/types.ts:117](https://
|
|
458
|
+
[src/configurator/embedding/types.ts:117](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L117)
|
|
458
459
|
|
|
459
460
|
___
|
|
460
461
|
|
|
@@ -466,7 +467,7 @@ set this flag to true if you want to group the part list by main components
|
|
|
466
467
|
|
|
467
468
|
#### Defined in
|
|
468
469
|
|
|
469
|
-
[src/configurator/embedding/types.ts:107](https://
|
|
470
|
+
[src/configurator/embedding/types.ts:107](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L107)
|
|
470
471
|
|
|
471
472
|
___
|
|
472
473
|
|
|
@@ -489,6 +490,19 @@ node_modules/@roomle/web-sdk/lib/definitions/common-core/src/utils/shims.d.ts:81
|
|
|
489
490
|
|
|
490
491
|
___
|
|
491
492
|
|
|
493
|
+
### initMocInConfiguringMode
|
|
494
|
+
|
|
495
|
+
• `Optional` **initMocInConfiguringMode**: false \| true
|
|
496
|
+
|
|
497
|
+
set this flag to true if you want to start the moc in configuring mode if there is only one object in the scene
|
|
498
|
+
default: true
|
|
499
|
+
|
|
500
|
+
#### Defined in
|
|
501
|
+
|
|
502
|
+
[src/configurator/embedding/types.ts:149](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L149)
|
|
503
|
+
|
|
504
|
+
___
|
|
505
|
+
|
|
492
506
|
### initialFloorMaterial
|
|
493
507
|
|
|
494
508
|
• `Optional` **initialFloorMaterial**: `string`
|
|
@@ -563,7 +577,7 @@ default: false
|
|
|
563
577
|
|
|
564
578
|
#### Defined in
|
|
565
579
|
|
|
566
|
-
[src/configurator/embedding/types.ts:144](https://
|
|
580
|
+
[src/configurator/embedding/types.ts:144](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L144)
|
|
567
581
|
|
|
568
582
|
___
|
|
569
583
|
|
|
@@ -666,7 +680,7 @@ small div
|
|
|
666
680
|
|
|
667
681
|
#### Defined in
|
|
668
682
|
|
|
669
|
-
[src/configurator/embedding/types.ts:103](https://
|
|
683
|
+
[src/configurator/embedding/types.ts:103](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L103)
|
|
670
684
|
|
|
671
685
|
___
|
|
672
686
|
|
|
@@ -787,7 +801,7 @@ ___
|
|
|
787
801
|
|
|
788
802
|
#### Defined in
|
|
789
803
|
|
|
790
|
-
[src/configurator/embedding/types.ts:65](https://
|
|
804
|
+
[src/configurator/embedding/types.ts:65](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L65)
|
|
791
805
|
|
|
792
806
|
___
|
|
793
807
|
|
|
@@ -902,7 +916,7 @@ for details see deeplink, the only change is that the placeholder is <CONF_ID> h
|
|
|
902
916
|
|
|
903
917
|
#### Defined in
|
|
904
918
|
|
|
905
|
-
[src/configurator/embedding/types.ts:70](https://
|
|
919
|
+
[src/configurator/embedding/types.ts:70](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L70)
|
|
906
920
|
|
|
907
921
|
___
|
|
908
922
|
|
|
@@ -964,7 +978,7 @@ ___
|
|
|
964
978
|
|
|
965
979
|
#### Defined in
|
|
966
980
|
|
|
967
|
-
[src/configurator/embedding/types.ts:62](https://
|
|
981
|
+
[src/configurator/embedding/types.ts:62](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L62)
|
|
968
982
|
|
|
969
983
|
___
|
|
970
984
|
|
|
@@ -1022,7 +1036,7 @@ You can find all labels here: [Base.json](../../../ui/base.json)
|
|
|
1022
1036
|
|
|
1023
1037
|
#### Defined in
|
|
1024
1038
|
|
|
1025
|
-
[src/configurator/embedding/types.ts:134](https://
|
|
1039
|
+
[src/configurator/embedding/types.ts:134](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L134)
|
|
1026
1040
|
|
|
1027
1041
|
___
|
|
1028
1042
|
|
|
@@ -1103,7 +1117,7 @@ ___
|
|
|
1103
1117
|
|
|
1104
1118
|
#### Defined in
|
|
1105
1119
|
|
|
1106
|
-
[src/configurator/embedding/types.ts:64](https://
|
|
1120
|
+
[src/configurator/embedding/types.ts:64](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L64)
|
|
1107
1121
|
|
|
1108
1122
|
___
|
|
1109
1123
|
|
|
@@ -1154,7 +1168,7 @@ usm:frame is loaded all the items from the tag "DB_Start_ohne_Element" are now s
|
|
|
1154
1168
|
|
|
1155
1169
|
#### Defined in
|
|
1156
1170
|
|
|
1157
|
-
[src/configurator/embedding/types.ts:86](https://
|
|
1171
|
+
[src/configurator/embedding/types.ts:86](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L86)
|
|
1158
1172
|
|
|
1159
1173
|
___
|
|
1160
1174
|
|
|
@@ -1164,7 +1178,7 @@ ___
|
|
|
1164
1178
|
|
|
1165
1179
|
#### Defined in
|
|
1166
1180
|
|
|
1167
|
-
[src/configurator/embedding/types.ts:63](https://
|
|
1181
|
+
[src/configurator/embedding/types.ts:63](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/types.ts#L63)
|
|
1168
1182
|
|
|
1169
1183
|
___
|
|
1170
1184
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
#### Defined in
|
|
28
28
|
|
|
29
|
-
[src/configurator/embedding/roomle-configurator-api.ts:70](https://
|
|
29
|
+
[src/configurator/embedding/roomle-configurator-api.ts:70](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/roomle-configurator-api.ts#L70)
|
|
30
30
|
|
|
31
31
|
___
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@ ___
|
|
|
36
36
|
|
|
37
37
|
#### Defined in
|
|
38
38
|
|
|
39
|
-
[src/configurator/embedding/roomle-configurator-api.ts:72](https://
|
|
39
|
+
[src/configurator/embedding/roomle-configurator-api.ts:72](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/roomle-configurator-api.ts#L72)
|
|
40
40
|
|
|
41
41
|
___
|
|
42
42
|
|
|
@@ -46,4 +46,4 @@ ___
|
|
|
46
46
|
|
|
47
47
|
#### Defined in
|
|
48
48
|
|
|
49
|
-
[src/configurator/embedding/roomle-configurator-api.ts:71](https://
|
|
49
|
+
[src/configurator/embedding/roomle-configurator-api.ts:71](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/roomle-configurator-api.ts#L71)
|
|
@@ -1,16 +1,63 @@
|
|
|
1
|
-
## [4.
|
|
1
|
+
## [4.43.0](https://github.com/roomle-dev/roomle-ui/compare/embedding-v4.42.0...embedding-v4.43.0) (2022-10-13)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
* add
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* add flag for disabling starting in the configure mode if only one object in the scene ([19b6917](https://github.com/roomle-dev/roomle-ui/commit/19b691772d52b54a806df2dfa035a98c5e3216e4))
|
|
7
|
+
* add loading screen for init configurator if only one item in planner ([1427bb6](https://github.com/roomle-dev/roomle-ui/commit/1427bb665b3769df60f2698f9e62554186112c5f))
|
|
8
|
+
* add logic for opening configuring mode if only one object in plan ([d574770](https://github.com/roomle-dev/roomle-ui/commit/d574770da5fe3e2e7f48da1d3d6787dd2834e743))
|
|
9
|
+
* add measurement unit for room sidebar ([b97249c](https://github.com/roomle-dev/roomle-ui/commit/b97249cd4ff516540567ae89afd16d7b83c706da))
|
|
10
|
+
* add new more generic RoomSidebar ([88a0e70](https://github.com/roomle-dev/roomle-ui/commit/88a0e70d3db1b678dcfbac2288b6192e035e8cab))
|
|
11
|
+
* add room parameters on mobile ([e8b14ed](https://github.com/roomle-dev/roomle-ui/commit/e8b14edae98824a5b6b65c8cc9db427c60562f65))
|
|
12
|
+
* add switch button for sidebar ([67c155e](https://github.com/roomle-dev/roomle-ui/commit/67c155ecff77029fa4f44903c427253a4ab2befd))
|
|
13
|
+
* add unit formatter for displaying cm and inch correctly ([5a0e020](https://github.com/roomle-dev/roomle-ui/commit/5a0e02087b7aab57b121d233ed64af0fc49e45e3))
|
|
14
|
+
* cancel drawing on click Escape button ([0c7bd6b](https://github.com/roomle-dev/roomle-ui/commit/0c7bd6baf6ea96bc80e7693ad073e25f1b9ea126))
|
|
15
|
+
* change draw section design on desktop ([97c6e3f](https://github.com/roomle-dev/roomle-ui/commit/97c6e3f7c4986640ffdfd5d16631a1570d762216))
|
|
16
|
+
* Enable drawing mode when in room mode and 2d ([3ad533a](https://github.com/roomle-dev/roomle-ui/commit/3ad533a93638b81a690ae03962e2c6ed0e5d8b54))
|
|
17
|
+
* enable wall drawing in MOC ([26afd29](https://github.com/roomle-dev/roomle-ui/commit/26afd29a930838bf5ae9083906c6a3f8ce7765e1))
|
|
18
|
+
* enable wall drawing on mobile RML-5095 ([7ed0e52](https://github.com/roomle-dev/roomle-ui/commit/7ed0e52fc04d20bc286f28bd9ad12c28213a4f9f))
|
|
19
|
+
* refactor rangparameter to generic component and add component for general room range parameters ([988f840](https://github.com/roomle-dev/roomle-ui/commit/988f840befe51648f174c749686c7770aa491615))
|
|
20
|
+
* tell SDK to ignore certain UI elements ([be1a4d4](https://github.com/roomle-dev/roomle-ui/commit/be1a4d4adbdc91f0a47e19acc6f01f9d74521d23))
|
|
21
|
+
* unify the interaction headers in MOC ([6ffea9a](https://github.com/roomle-dev/roomle-ui/commit/6ffea9a6e995419d96239ef86c58bc2194fb000a))
|
|
22
|
+
* **SDK:** upgrade SDK to version 2.40.0 ([beaeafa](https://github.com/roomle-dev/roomle-ui/commit/beaeafae237caeb272f7da72b35b44f838ae2538))
|
|
23
|
+
* **SDK:** upgrade to version 2.39.0 ([e13eba3](https://github.com/roomle-dev/roomle-ui/commit/e13eba3c87068bccd6aca69bad6e0d0c8e7163a6))
|
|
24
|
+
* **SDK:** upgrade to version 2.39.0-alpha.1 ([a1dca3e](https://github.com/roomle-dev/roomle-ui/commit/a1dca3ed1cc4f8ee4bc888a6fc1da14266d03102))
|
|
25
|
+
* **SDK:** upgrade to version 2.39.0-alpha.2 ([9d32d1b](https://github.com/roomle-dev/roomle-ui/commit/9d32d1b10c95d59a11b951a0aefc80a3e1a24634))
|
|
26
|
+
* **SDK:** upgrade to version 2.39.0-alpha.3 ([7c812cf](https://github.com/roomle-dev/roomle-ui/commit/7c812cfbec49d87af1f13ca6bde983a649850637))
|
|
27
|
+
* **SDK:** upgrade to version 2.40.0-alpha.1 ([f6be2d6](https://github.com/roomle-dev/roomle-ui/commit/f6be2d61896f2223811aa86dca112e4d0921eec5))
|
|
28
|
+
* **SDK:** upgrade to version 2.40.0-alpha.2 ([8a9a3f9](https://github.com/roomle-dev/roomle-ui/commit/8a9a3f9bc7af1b3900f8760b1ec56fe51fc1b729))
|
|
29
|
+
* **SDK:** upgrade to version 2.40.0-alpha.3 ([8833fc5](https://github.com/roomle-dev/roomle-ui/commit/8833fc519f4983409212ead36eb38a8c1a93aef1))
|
|
30
|
+
* **SDK:** upgrade to version 2.40.0-alpha.4 ([c0940c1](https://github.com/roomle-dev/roomle-ui/commit/c0940c13b40b10c3fe779c28571e5a96c67acd48))
|
|
31
|
+
* **SDK:** upgrade to version 2.40.0-alpha.5 ([579a79a](https://github.com/roomle-dev/roomle-ui/commit/579a79af6358eb13e9a3b3efd5e857a3d558ba23))
|
|
32
|
+
* **SDK:** upgrade to version 2.40.0-alpha.6 ([e1323da](https://github.com/roomle-dev/roomle-ui/commit/e1323dada1fca1a61a09e2ad79530d8f3d325a05))
|
|
33
|
+
* **SDK:** upgrade to version 2.40.0-alpha.7 ([6aa4032](https://github.com/roomle-dev/roomle-ui/commit/6aa40325dcc514b490ed6ca41206ea29f63461f4))
|
|
34
|
+
* **SDK:** upgrade to version 2.40.0-alpha.8 ([c721d2e](https://github.com/roomle-dev/roomle-ui/commit/c721d2ee71c09fa5452f36d078be4415aa6c4a4e))
|
|
12
35
|
|
|
13
36
|
|
|
14
37
|
### Bug Fixes
|
|
15
38
|
|
|
16
|
-
*
|
|
39
|
+
* add correct icons for room nav sidebar ([80e6cbb](https://github.com/roomle-dev/roomle-ui/commit/80e6cbba4eb9a9017016c0e3a5dc3f7039b27948))
|
|
40
|
+
* add key so that Vue can cache list and render faster ([83c6360](https://github.com/roomle-dev/roomle-ui/commit/83c63607a108d0ebf783dae23894570e8589cb66))
|
|
41
|
+
* add missing german translation and remove double wall parameter translation ([463d829](https://github.com/roomle-dev/roomle-ui/commit/463d829423b7af02de3ab33841e8f243b5e1514f))
|
|
42
|
+
* broken icons ([0b0b937](https://github.com/roomle-dev/roomle-ui/commit/0b0b937a12f92a1a998fbf07d56513e070cc5f2e))
|
|
43
|
+
* change bottom bar label as in the designs ([5157813](https://github.com/roomle-dev/roomle-ui/commit/51578131c49095cc97429d5cc619c0a971a7d810))
|
|
44
|
+
* change incorrect german spelling ([10f6e6a](https://github.com/roomle-dev/roomle-ui/commit/10f6e6ad7311b3020e5560a99cb18e677d8f2638))
|
|
45
|
+
* change the wrong header for room sidebar ([3e94e1c](https://github.com/roomle-dev/roomle-ui/commit/3e94e1c99653c215ffb779e8d2ca8c6d62c2af55))
|
|
46
|
+
* cropped inch ([f884757](https://github.com/roomle-dev/roomle-ui/commit/f88475763e6e61e370b296f950b5bfd78114bd9d))
|
|
47
|
+
* fix design issue of action button and refactor css to component intern ([63f5555](https://github.com/roomle-dev/roomle-ui/commit/63f555518de306b77002f1f890162035dd7bbe58))
|
|
48
|
+
* handle genImageUrl exception ([4aa223a](https://github.com/roomle-dev/roomle-ui/commit/4aa223a36acef40490fbdd70b867d183c6eddcda))
|
|
49
|
+
* hide measurements when switching between configurator to planner ([3c9335b](https://github.com/roomle-dev/roomle-ui/commit/3c9335badfabdef116d79fa01bda9da3333e3355))
|
|
50
|
+
* implement correct mobile design of room icons ([f2b8f57](https://github.com/roomle-dev/roomle-ui/commit/f2b8f577029439b5c4d5064389c40dab90b955c6))
|
|
51
|
+
* incorrect function should also check if value is undefined or null ([b06386d](https://github.com/roomle-dev/roomle-ui/commit/b06386df3b714703a95599d2171c8e7888dceed5))
|
|
52
|
+
* incorrect icons ([a530d65](https://github.com/roomle-dev/roomle-ui/commit/a530d65da0393eccb01e18696ada619c5168a781))
|
|
53
|
+
* MOC partlist print ([6a9dcde](https://github.com/roomle-dev/roomle-ui/commit/6a9dcde11f1f972d63174729460aa293333ffb39))
|
|
54
|
+
* MOC: the room header not exact like the design ([639ff5e](https://github.com/roomle-dev/roomle-ui/commit/639ff5ed326e38d31899b444fb853b112c50c606))
|
|
55
|
+
* MOC(Mobile): disable 2D view toggle if we are in drawing mode ([052aa1a](https://github.com/roomle-dev/roomle-ui/commit/052aa1abcd794064a1934ec84b91ddfe76cb248f))
|
|
56
|
+
* only show icon without text as request button, only 2 lines for main label RML-5021 ([05d050a](https://github.com/roomle-dev/roomle-ui/commit/05d050a4ec31338a6b2f1afdb0896a7fc2e470b9))
|
|
57
|
+
* range slider bugs and refactor functions into room general settings component ([9e2edc4](https://github.com/roomle-dev/roomle-ui/commit/9e2edc4538f87046499bdf5a47eb58782e48db79))
|
|
58
|
+
* remove code smell and make dependency on plannerUiState.measurementUnit explicit ([d589ff7](https://github.com/roomle-dev/roomle-ui/commit/d589ff7eb88916b13f62798d984a00e8c8d54977))
|
|
59
|
+
* remove the wired callback registration from embedding example RML-4804 RML-4806 ([5ffb735](https://github.com/roomle-dev/roomle-ui/commit/5ffb735357447d355b3d616938394b9ea00436d9))
|
|
60
|
+
* should show error message if input is too great or low ([36ea24b](https://github.com/roomle-dev/roomle-ui/commit/36ea24bc5981f729c901e925322a287e25a8bc59))
|
|
61
|
+
* update wall measurements on update walls ([94acb6d](https://github.com/roomle-dev/roomle-ui/commit/94acb6d35a01dbf4f4b25b6aedf67d49bc53038d))
|
|
62
|
+
* wall general param state on undo/redo ([c75eda2](https://github.com/roomle-dev/roomle-ui/commit/c75eda22fcb4a4397829d724414667f79d6074a3))
|
|
63
|
+
* wrong name of class ([41e8a6b](https://github.com/roomle-dev/roomle-ui/commit/41e8a6b10bdac6af7962028a8e4d7f0352f75256))
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roomle/embedding-lib",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.43.0",
|
|
4
4
|
"main": "roomle-configurator-api.es.min.js",
|
|
5
5
|
"types": "types/index.d.ts",
|
|
6
6
|
"author": "Roomle Development",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@roomle/web-sdk": "2.
|
|
8
|
+
"@roomle/web-sdk": "2.40.0"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@semantic-release/changelog": "^5.0.1",
|
package/types/index.d.ts
CHANGED
|
@@ -14,6 +14,10 @@ declare module "common/utils/types" {
|
|
|
14
14
|
}
|
|
15
15
|
export type ToggleCallback = (isExpanded: boolean) => void;
|
|
16
16
|
export type CloseReason = 'toggle';
|
|
17
|
+
export enum MEASUREMENT_UNIT {
|
|
18
|
+
CM = "cm",
|
|
19
|
+
INCH = "inchfeet"
|
|
20
|
+
}
|
|
17
21
|
}
|
|
18
22
|
declare module "configurator/embedding/message-handler" {
|
|
19
23
|
import { Nullable } from "common/utils/types";
|
|
@@ -186,6 +190,11 @@ declare module "configurator/embedding/types" {
|
|
|
186
190
|
* default: false
|
|
187
191
|
*/
|
|
188
192
|
materialMultiSelect?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* set this flag to true if you want to start the moc in configuring mode if there is only one object in the scene
|
|
195
|
+
* default: true
|
|
196
|
+
*/
|
|
197
|
+
initMocInConfiguringMode?: boolean;
|
|
189
198
|
}
|
|
190
199
|
export interface EmbeddingSkin {
|
|
191
200
|
'primary-color'?: string;
|
|
@@ -366,9 +375,9 @@ declare module "configurator/store/core-data" {
|
|
|
366
375
|
}
|
|
367
376
|
declare module "common/components/collection-view/-utils/types" {
|
|
368
377
|
import { Nullable } from "common/utils/types";
|
|
369
|
-
import {
|
|
378
|
+
import { UiKernelParameter, UiPossibleChildTag } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
370
379
|
import { RapiTagForUi } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
371
|
-
export type CollectionViewElementType = 'addon' | 'parameter' | 'variant' | 'object' | 'room';
|
|
380
|
+
export type CollectionViewElementType = 'addon' | 'parameter' | 'variant' | 'object' | 'room' | 'generalRoomSetting' | 'unitSwitch';
|
|
372
381
|
export interface CollectionViewElement<T = (UiPossibleChildTag | UiKernelParameter | RapiTagForUi)> {
|
|
373
382
|
label: Nullable<string>;
|
|
374
383
|
key: string;
|
|
@@ -469,8 +478,7 @@ declare module "planner/utils/planner-sidebar" {
|
|
|
469
478
|
catalog: boolean;
|
|
470
479
|
productList: boolean;
|
|
471
480
|
partList: boolean;
|
|
472
|
-
|
|
473
|
-
selectionDetail: boolean;
|
|
481
|
+
roomSidebar: boolean;
|
|
474
482
|
mobileExpanded: boolean;
|
|
475
483
|
[key: string]: boolean;
|
|
476
484
|
}
|
|
@@ -484,7 +492,7 @@ declare module "planner/utils/planner-sidebar" {
|
|
|
484
492
|
declare module "planner/store/planner-ui-state" {
|
|
485
493
|
import { Module } from 'vuex';
|
|
486
494
|
import { SharedUiState, StoreState } from "common/store/index";
|
|
487
|
-
import { Nullable } from "common/utils/types";
|
|
495
|
+
import { MEASUREMENT_UNIT, Nullable } from "common/utils/types";
|
|
488
496
|
import { SelectionPayload } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner-ui-callback';
|
|
489
497
|
import { BUTTON_ACTIONS } from "configurator/store/ui-state";
|
|
490
498
|
import { RapiTagForUi } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
@@ -500,6 +508,9 @@ declare module "planner/store/planner-ui-state" {
|
|
|
500
508
|
selectedActions: BUTTON_ACTIONS[];
|
|
501
509
|
stackViewStack: PlannerSidebarState[];
|
|
502
510
|
lastWalls: KernelWall[];
|
|
511
|
+
measurementUnit: MEASUREMENT_UNIT;
|
|
512
|
+
isDrawing: boolean;
|
|
513
|
+
hasWalls: boolean;
|
|
503
514
|
}
|
|
504
515
|
export enum PLANNER_UI_STATE_MUTATIONS {
|
|
505
516
|
SET_SELECTION = "PLANNER_UI_STATE_setSelection",
|
|
@@ -518,7 +529,10 @@ declare module "planner/store/planner-ui-state" {
|
|
|
518
529
|
PUSH_SIDEBAR_VIEW = "PUSH_SIDEBAR_VIEW",
|
|
519
530
|
POP_SIDEBAR_VIEW = "POP_SIDEBAR_VIEW",
|
|
520
531
|
CLEAR_SIDEBAR = "CLEAR_SIDEBAR",
|
|
521
|
-
SET_LAST_WALLS = "SET_LAST_WALLS"
|
|
532
|
+
SET_LAST_WALLS = "SET_LAST_WALLS",
|
|
533
|
+
SET_MEASUREMENT_UNIT = "SET_MEASUREMENT_UNIT",
|
|
534
|
+
SET_IS_DRAWING = "SET_IS_DRAWING",
|
|
535
|
+
SET_HAS_WALLS = "SET_HAS_WALLS"
|
|
522
536
|
}
|
|
523
537
|
export enum PLANNER_UI_STATE_ACTIONS {
|
|
524
538
|
SELECT_VIEW_MODE = "PLANNER_UI_STATE_SELECT_VIEW_MODE",
|
|
@@ -534,6 +548,7 @@ declare module "planner/store/planner-ui-state" {
|
|
|
534
548
|
PRODUCT_LIST_SHOWN = "PRODUCT_LIST_SHOWN",
|
|
535
549
|
LAST_OF_STACK_VIEW_STACK = "LAST_OF_STACK_VIEW_STACK"
|
|
536
550
|
}
|
|
551
|
+
export const initialState: PlannerUiState;
|
|
537
552
|
export const plannerUiState: Module<PlannerUiState, StoreState>;
|
|
538
553
|
}
|
|
539
554
|
declare module "common/store/collection-view-state" {
|
|
@@ -653,6 +668,7 @@ declare module "configurator/store/ui-state" {
|
|
|
653
668
|
materialMultiSelect: boolean;
|
|
654
669
|
wallsDimensions: WallDimension[];
|
|
655
670
|
objPosOnPlanner: any[];
|
|
671
|
+
initPlannerWithObjID: boolean;
|
|
656
672
|
}
|
|
657
673
|
export enum UI_STATE_MUTATIONS {
|
|
658
674
|
SET_SELECTED_GROUP = "setSelectedGroup",
|
|
@@ -683,7 +699,8 @@ declare module "configurator/store/ui-state" {
|
|
|
683
699
|
SET_TOPBAR_ACTION_SELECTED = "SET_TOPBAR_ACTION_SELECTED",
|
|
684
700
|
SET_TOPBAR_ACTION_DESELECTED = "SET_TOPBAR_ACTION_DESELECTED",
|
|
685
701
|
SET_WALLS_DIMENSIONS = "SET_WALLS_DIMENSIONS",
|
|
686
|
-
SET_PLANNER_OBJ_POS = "SET_PLANNER_OBJ_POS"
|
|
702
|
+
SET_PLANNER_OBJ_POS = "SET_PLANNER_OBJ_POS",
|
|
703
|
+
SET_PLANNER_INIT_WITH_OBJ_ID = "SET_PLANNER_INIT_WITH_OBJ_ID"
|
|
687
704
|
}
|
|
688
705
|
export enum UI_STATE_ACTIONS {
|
|
689
706
|
SELECT_GROUP = "SELECT_GROUP",
|
|
@@ -717,9 +734,9 @@ declare module "planner/store/planner-core-data" {
|
|
|
717
734
|
import { StoreState } from "common/store/index";
|
|
718
735
|
import { Nullable } from "common/utils/types";
|
|
719
736
|
import { Module } from 'vuex';
|
|
720
|
-
import {
|
|
737
|
+
import { UiPlanObject } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
721
738
|
export interface PlannerCoreData {
|
|
722
|
-
productList:
|
|
739
|
+
productList: UiPlanObject[];
|
|
723
740
|
currencySymbol: string;
|
|
724
741
|
price: Nullable<number>;
|
|
725
742
|
}
|
|
@@ -782,6 +799,9 @@ declare module "common/store/index" {
|
|
|
782
799
|
POP_SIDEBAR_VIEW: PLANNER_UI_STATE_MUTATIONS.POP_SIDEBAR_VIEW;
|
|
783
800
|
CLEAR_SIDEBAR: PLANNER_UI_STATE_MUTATIONS.CLEAR_SIDEBAR;
|
|
784
801
|
SET_LAST_WALLS: PLANNER_UI_STATE_MUTATIONS.SET_LAST_WALLS;
|
|
802
|
+
SET_MEASUREMENT_UNIT: PLANNER_UI_STATE_MUTATIONS.SET_MEASUREMENT_UNIT;
|
|
803
|
+
SET_IS_DRAWING: PLANNER_UI_STATE_MUTATIONS.SET_IS_DRAWING;
|
|
804
|
+
SET_HAS_WALLS: PLANNER_UI_STATE_MUTATIONS.SET_HAS_WALLS;
|
|
785
805
|
SET_SELECTED_GROUP: UI_STATE_MUTATIONS.SET_SELECTED_GROUP;
|
|
786
806
|
SET_IS_PART_LIST_SHOWN: UI_STATE_MUTATIONS.SET_IS_PART_LIST_SHOWN;
|
|
787
807
|
SHOW_ONLY_ADDONS: UI_STATE_MUTATIONS.SHOW_ONLY_ADDONS;
|
|
@@ -804,6 +824,7 @@ declare module "common/store/index" {
|
|
|
804
824
|
SET_REDO_PLANNER: UI_STATE_MUTATIONS.SET_REDO_PLANNER;
|
|
805
825
|
SET_WALLS_DIMENSIONS: UI_STATE_MUTATIONS.SET_WALLS_DIMENSIONS;
|
|
806
826
|
SET_PLANNER_OBJ_POS: UI_STATE_MUTATIONS.SET_PLANNER_OBJ_POS;
|
|
827
|
+
SET_PLANNER_INIT_WITH_OBJ_ID: UI_STATE_MUTATIONS.SET_PLANNER_INIT_WITH_OBJ_ID;
|
|
807
828
|
UPDATE_GROUPS: CORE_DATA_MUTATIONS.UPDATE_GROUPS;
|
|
808
829
|
UPDATE_PARAMETERS: CORE_DATA_MUTATIONS.UPDATE_PARAMETERS;
|
|
809
830
|
UPDATE_ADDONS: CORE_DATA_MUTATIONS.UPDATE_ADDONS;
|
|
@@ -1225,13 +1246,14 @@ declare module "configurator/business-logic/sdk-connector" {
|
|
|
1225
1246
|
get hasPlanner(): boolean;
|
|
1226
1247
|
saveCurrentObject(): Promise<RapiPlan | RapiConfigurationEnhanced>;
|
|
1227
1248
|
preparePerspectiveImage(): Promise<Base64Image>;
|
|
1249
|
+
finishLoading(kernelParts: Nullable<LoadResponse>): void;
|
|
1228
1250
|
private _waitForCanvasElement;
|
|
1229
1251
|
private _needsInit;
|
|
1230
1252
|
private _fetchVariants;
|
|
1231
1253
|
private _execLoadingConfiguratorProcess;
|
|
1232
1254
|
private _startLoading;
|
|
1233
|
-
private _finishLoading;
|
|
1234
1255
|
private _showGenericError;
|
|
1256
|
+
private _selectFirstObjAndStartConfiguring;
|
|
1235
1257
|
}
|
|
1236
1258
|
}
|
|
1237
1259
|
declare module "configurator/embedding/helper" {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Nullable } from '@/common/utils/types';
|
|
2
|
-
import {
|
|
2
|
+
import { UiKernelParameter, UiPossibleChildTag } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
3
3
|
import { RapiTagForUi } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
4
|
-
export declare type CollectionViewElementType = 'addon' | 'parameter' | 'variant' | 'object' | 'room';
|
|
4
|
+
export declare type CollectionViewElementType = 'addon' | 'parameter' | 'variant' | 'object' | 'room' | 'generalRoomSetting' | 'unitSwitch';
|
|
5
5
|
export interface CollectionViewElement<T = (UiPossibleChildTag | UiKernelParameter | RapiTagForUi)> {
|
|
6
6
|
label: Nullable<string>;
|
|
7
7
|
key: string;
|
|
@@ -43,6 +43,9 @@ export declare const MUTATIONS: {
|
|
|
43
43
|
POP_SIDEBAR_VIEW: PLANNER_UI_STATE_MUTATIONS.POP_SIDEBAR_VIEW;
|
|
44
44
|
CLEAR_SIDEBAR: PLANNER_UI_STATE_MUTATIONS.CLEAR_SIDEBAR;
|
|
45
45
|
SET_LAST_WALLS: PLANNER_UI_STATE_MUTATIONS.SET_LAST_WALLS;
|
|
46
|
+
SET_MEASUREMENT_UNIT: PLANNER_UI_STATE_MUTATIONS.SET_MEASUREMENT_UNIT;
|
|
47
|
+
SET_IS_DRAWING: PLANNER_UI_STATE_MUTATIONS.SET_IS_DRAWING;
|
|
48
|
+
SET_HAS_WALLS: PLANNER_UI_STATE_MUTATIONS.SET_HAS_WALLS;
|
|
46
49
|
SET_SELECTED_GROUP: UI_STATE_MUTATIONS.SET_SELECTED_GROUP;
|
|
47
50
|
SET_IS_PART_LIST_SHOWN: UI_STATE_MUTATIONS.SET_IS_PART_LIST_SHOWN;
|
|
48
51
|
SHOW_ONLY_ADDONS: UI_STATE_MUTATIONS.SHOW_ONLY_ADDONS;
|
|
@@ -65,6 +68,7 @@ export declare const MUTATIONS: {
|
|
|
65
68
|
SET_REDO_PLANNER: UI_STATE_MUTATIONS.SET_REDO_PLANNER;
|
|
66
69
|
SET_WALLS_DIMENSIONS: UI_STATE_MUTATIONS.SET_WALLS_DIMENSIONS;
|
|
67
70
|
SET_PLANNER_OBJ_POS: UI_STATE_MUTATIONS.SET_PLANNER_OBJ_POS;
|
|
71
|
+
SET_PLANNER_INIT_WITH_OBJ_ID: UI_STATE_MUTATIONS.SET_PLANNER_INIT_WITH_OBJ_ID;
|
|
68
72
|
UPDATE_GROUPS: CORE_DATA_MUTATIONS.UPDATE_GROUPS;
|
|
69
73
|
UPDATE_PARAMETERS: CORE_DATA_MUTATIONS.UPDATE_PARAMETERS;
|
|
70
74
|
UPDATE_ADDONS: CORE_DATA_MUTATIONS.UPDATE_ADDONS;
|
|
@@ -108,11 +108,12 @@ export declare class SdkConnector {
|
|
|
108
108
|
get hasPlanner(): boolean;
|
|
109
109
|
saveCurrentObject(): Promise<RapiPlan | RapiConfigurationEnhanced>;
|
|
110
110
|
preparePerspectiveImage(): Promise<Base64Image>;
|
|
111
|
+
finishLoading(kernelParts: Nullable<LoadResponse>): void;
|
|
111
112
|
private _waitForCanvasElement;
|
|
112
113
|
private _needsInit;
|
|
113
114
|
private _fetchVariants;
|
|
114
115
|
private _execLoadingConfiguratorProcess;
|
|
115
116
|
private _startLoading;
|
|
116
|
-
private _finishLoading;
|
|
117
117
|
private _showGenericError;
|
|
118
|
+
private _selectFirstObjAndStartConfiguring;
|
|
118
119
|
}
|
|
@@ -136,6 +136,11 @@ export interface UiInitData extends InitDataDefinition, GlobalInitDataDefinition
|
|
|
136
136
|
* default: false
|
|
137
137
|
*/
|
|
138
138
|
materialMultiSelect?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* set this flag to true if you want to start the moc in configuring mode if there is only one object in the scene
|
|
141
|
+
* default: true
|
|
142
|
+
*/
|
|
143
|
+
initMocInConfiguringMode?: boolean;
|
|
139
144
|
}
|
|
140
145
|
export interface EmbeddingSkin {
|
|
141
146
|
'primary-color'?: string;
|
|
@@ -55,6 +55,7 @@ export interface UiState extends SharedUiState {
|
|
|
55
55
|
materialMultiSelect: boolean;
|
|
56
56
|
wallsDimensions: WallDimension[];
|
|
57
57
|
objPosOnPlanner: any[];
|
|
58
|
+
initPlannerWithObjID: boolean;
|
|
58
59
|
}
|
|
59
60
|
export declare enum UI_STATE_MUTATIONS {
|
|
60
61
|
SET_SELECTED_GROUP = "setSelectedGroup",
|
|
@@ -85,7 +86,8 @@ export declare enum UI_STATE_MUTATIONS {
|
|
|
85
86
|
SET_TOPBAR_ACTION_SELECTED = "SET_TOPBAR_ACTION_SELECTED",
|
|
86
87
|
SET_TOPBAR_ACTION_DESELECTED = "SET_TOPBAR_ACTION_DESELECTED",
|
|
87
88
|
SET_WALLS_DIMENSIONS = "SET_WALLS_DIMENSIONS",
|
|
88
|
-
SET_PLANNER_OBJ_POS = "SET_PLANNER_OBJ_POS"
|
|
89
|
+
SET_PLANNER_OBJ_POS = "SET_PLANNER_OBJ_POS",
|
|
90
|
+
SET_PLANNER_INIT_WITH_OBJ_ID = "SET_PLANNER_INIT_WITH_OBJ_ID"
|
|
89
91
|
}
|
|
90
92
|
export declare enum UI_STATE_ACTIONS {
|
|
91
93
|
SELECT_GROUP = "SELECT_GROUP",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GeneralRoomParameterView } from '@/planner/business-logic/rooms';
|
|
2
|
+
export interface RangeValues {
|
|
3
|
+
ceilingHeight: string;
|
|
4
|
+
parapetHeight: string;
|
|
5
|
+
thickness: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const DEFAULT_MAX_RANGE: {
|
|
8
|
+
ceilingHeight: string;
|
|
9
|
+
parapetHeight: string;
|
|
10
|
+
thickness: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const DEFAULT_MIN_RANGE: {
|
|
13
|
+
ceilingHeight: string;
|
|
14
|
+
parapetHeight: string;
|
|
15
|
+
thickness: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const getGeneralRoomParameters: (translate: (key: string) => string, minRange: RangeValues, maxRange: RangeValues, switchUnit: (activeSwitch: number) => void) => GeneralRoomParameterView;
|
|
@@ -1,12 +1,37 @@
|
|
|
1
1
|
import { CollectionViewElement } from '@/common/components/collection-view/-utils/types';
|
|
2
2
|
import { WallDefinition } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
3
3
|
import { PlanOverview } from '@roomle/web-sdk/lib/definitions/typings/planner';
|
|
4
|
+
import { PlanInteractionHandler } from '@roomle/web-sdk/lib/definitions/typings/planner';
|
|
4
5
|
export declare type RoomType = 'wall' | 'corner' | 'square' | 'L';
|
|
5
6
|
export interface SampleRoom {
|
|
6
7
|
id: string;
|
|
7
|
-
roomSketch:
|
|
8
|
+
roomSketch: object;
|
|
8
9
|
label: string;
|
|
9
10
|
type: RoomType;
|
|
10
11
|
}
|
|
11
|
-
export
|
|
12
|
+
export interface WallsGeneralTab {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
desc: string;
|
|
16
|
+
isGeneralTab: boolean;
|
|
17
|
+
hasCustomTabAction: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface RoomRangeParametersTab {
|
|
20
|
+
id: string;
|
|
21
|
+
uiType: string;
|
|
22
|
+
heading: string;
|
|
23
|
+
minRange: string;
|
|
24
|
+
maxRange: string;
|
|
25
|
+
setValue: (value: string, interactionHandler: PlanInteractionHandler) => void;
|
|
26
|
+
getValue: (interactionHandler: PlanInteractionHandler) => string;
|
|
27
|
+
}
|
|
28
|
+
export interface UnitSwitchTab {
|
|
29
|
+
id: string;
|
|
30
|
+
label: string;
|
|
31
|
+
switchUnit: (activeSwitch: number) => void;
|
|
32
|
+
firstOption: string;
|
|
33
|
+
secondOption: string;
|
|
34
|
+
}
|
|
35
|
+
export declare type SampleRoomsCollectionView = Array<CollectionViewElement<SampleRoom[] | WallsGeneralTab[]>>;
|
|
36
|
+
export declare type GeneralRoomParameterView = Array<CollectionViewElement<RoomRangeParametersTab | UnitSwitchTab>>;
|
|
12
37
|
export declare const getRoomDefinition: (type: RoomType, planOverview: PlanOverview) => WallDefinition[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { StoreState } from '@/common/store';
|
|
2
2
|
import { Nullable } from '@/common/utils/types';
|
|
3
3
|
import { Module } from 'vuex';
|
|
4
|
-
import {
|
|
4
|
+
import { UiPlanObject } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
5
5
|
export interface PlannerCoreData {
|
|
6
|
-
productList:
|
|
6
|
+
productList: UiPlanObject[];
|
|
7
7
|
currencySymbol: string;
|
|
8
8
|
price: Nullable<number>;
|
|
9
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Module } from 'vuex';
|
|
2
2
|
import { SharedUiState, StoreState } from '@/common/store';
|
|
3
|
-
import { Nullable } from '@/common/utils/types';
|
|
3
|
+
import { MEASUREMENT_UNIT, Nullable } from '@/common/utils/types';
|
|
4
4
|
import { SelectionPayload } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner-ui-callback';
|
|
5
5
|
import { BUTTON_ACTIONS } from '@/configurator/store/ui-state';
|
|
6
6
|
import { RapiTagForUi } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
@@ -16,6 +16,9 @@ export interface PlannerUiState extends SharedUiState {
|
|
|
16
16
|
selectedActions: BUTTON_ACTIONS[];
|
|
17
17
|
stackViewStack: PlannerSidebarState[];
|
|
18
18
|
lastWalls: KernelWall[];
|
|
19
|
+
measurementUnit: MEASUREMENT_UNIT;
|
|
20
|
+
isDrawing: boolean;
|
|
21
|
+
hasWalls: boolean;
|
|
19
22
|
}
|
|
20
23
|
export declare enum PLANNER_UI_STATE_MUTATIONS {
|
|
21
24
|
SET_SELECTION = "PLANNER_UI_STATE_setSelection",
|
|
@@ -34,7 +37,10 @@ export declare enum PLANNER_UI_STATE_MUTATIONS {
|
|
|
34
37
|
PUSH_SIDEBAR_VIEW = "PUSH_SIDEBAR_VIEW",
|
|
35
38
|
POP_SIDEBAR_VIEW = "POP_SIDEBAR_VIEW",
|
|
36
39
|
CLEAR_SIDEBAR = "CLEAR_SIDEBAR",
|
|
37
|
-
SET_LAST_WALLS = "SET_LAST_WALLS"
|
|
40
|
+
SET_LAST_WALLS = "SET_LAST_WALLS",
|
|
41
|
+
SET_MEASUREMENT_UNIT = "SET_MEASUREMENT_UNIT",
|
|
42
|
+
SET_IS_DRAWING = "SET_IS_DRAWING",
|
|
43
|
+
SET_HAS_WALLS = "SET_HAS_WALLS"
|
|
38
44
|
}
|
|
39
45
|
export declare enum PLANNER_UI_STATE_ACTIONS {
|
|
40
46
|
SELECT_VIEW_MODE = "PLANNER_UI_STATE_SELECT_VIEW_MODE",
|
|
@@ -50,5 +56,6 @@ export declare enum PLANNER_UI_STATE_GETTERS {
|
|
|
50
56
|
PRODUCT_LIST_SHOWN = "PRODUCT_LIST_SHOWN",
|
|
51
57
|
LAST_OF_STACK_VIEW_STACK = "LAST_OF_STACK_VIEW_STACK"
|
|
52
58
|
}
|
|
59
|
+
export declare const initialState: PlannerUiState;
|
|
53
60
|
export declare const plannerUiState: Module<PlannerUiState, StoreState>;
|
|
54
61
|
export {};
|