@roomle/embedding-lib 5.9.0-alpha.3 → 5.9.0-alpha.5

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.
Files changed (367) hide show
  1. package/docs/md/web/embedding/CHANGELOG.md +2 -14
  2. package/index.d.ts +2 -179
  3. package/package.json +2 -2
  4. package/packages/build-tools/src/vite-file-size-check.d.ts +8 -0
  5. package/packages/build-tools/src/vite-minify.d.ts +3 -0
  6. package/packages/common/src/utils/browser.d.ts +4 -0
  7. package/packages/common/src/utils/custom-drag.d.ts +26 -0
  8. package/packages/common/src/utils/custom-view.d.ts +2 -0
  9. package/packages/common/src/utils/domain.d.ts +3 -0
  10. package/packages/common/src/utils/drag.d.ts +17 -0
  11. package/packages/common/src/utils/embedding.d.ts +23 -0
  12. package/packages/common/src/utils/get-computed-style-cached.d.ts +8 -0
  13. package/packages/common/src/utils/id-inferrer.d.ts +7 -0
  14. package/packages/common/src/utils/iframe.d.ts +3 -0
  15. package/packages/common/src/utils/init-data.d.ts +66 -0
  16. package/packages/common/src/utils/merge.d.ts +16 -0
  17. package/packages/common/src/utils/message-handler-creator.d.ts +3 -0
  18. package/packages/common/src/utils/message-handler.d.ts +35 -0
  19. package/packages/common/src/utils/promise.d.ts +5 -0
  20. package/packages/common/src/utils/timing.d.ts +1 -0
  21. package/packages/common/src/utils/touch-drag.d.ts +30 -0
  22. package/packages/common/src/utils/touch.d.ts +1 -0
  23. package/packages/embedding-lib/src/connector.d.ts +42 -0
  24. package/packages/embedding-lib/src/embedding-lib.d.ts +64 -0
  25. package/packages/embedding-lib/src/example.d.ts +5 -0
  26. package/packages/embedding-lib/src/examples/api-false.d.ts +10 -0
  27. package/packages/embedding-lib/src/examples/configurator-only.d.ts +7 -0
  28. package/packages/embedding-lib/src/examples/download-partlist.d.ts +7 -0
  29. package/packages/embedding-lib/src/examples/drag-in.d.ts +8 -0
  30. package/packages/embedding-lib/src/examples/ext-catalog/ext-catalog-connection.d.ts +1 -0
  31. package/packages/embedding-lib/src/examples/ext-catalog.d.ts +7 -0
  32. package/packages/embedding-lib/src/examples/ext-selection-overlay.d.ts +8 -0
  33. package/packages/embedding-lib/src/examples/planner-and-configurator.d.ts +7 -0
  34. package/packages/embedding-lib/src/examples/start-and-end-configurator.d.ts +7 -0
  35. package/packages/embedding-lib/src/examples/utils/drag-listeners.d.ts +6 -0
  36. package/packages/embedding-lib/src/overview.d.ts +1 -0
  37. package/packages/embedding-lib/src/plugins/constants.d.ts +19 -0
  38. package/packages/embedding-lib/src/plugins/drag-in.d.ts +33 -0
  39. package/packages/embedding-lib/src/plugins/strategy/from-custom-view.d.ts +31 -0
  40. package/packages/embedding-lib/src/plugins/strategy/from-website.d.ts +27 -0
  41. package/packages/embedding-lib/src/plugins/strategy/types.d.ts +15 -0
  42. package/packages/embedding-lib/src/plugins/types.d.ts +36 -0
  43. package/packages/embedding-lib/src/utils.d.ts +18 -0
  44. package/src/App.vue.d.ts +127 -0
  45. package/src/common/business-logic/connector.d.ts +9 -0
  46. package/src/common/business-logic/event-bus.d.ts +7 -0
  47. package/src/common/business-logic/event-emitter.d.ts +11 -0
  48. package/src/common/components/ActionButtons.vue.d.ts +8 -0
  49. package/src/common/components/BottomBar.vue.d.ts +2 -0
  50. package/src/common/components/BottomButtons.vue.d.ts +9 -0
  51. package/src/common/components/CounterDot.vue.d.ts +6 -0
  52. package/src/common/components/EmbeddedAdditionalInfo.vue.d.ts +12 -0
  53. package/src/common/components/EmbeddedExternalCatalog.vue.d.ts +16 -0
  54. package/src/common/components/EmbeddedInfoWrapper.vue.d.ts +27 -0
  55. package/src/common/components/ExpandableIcons.vue.d.ts +12 -0
  56. package/src/common/components/IconButton.vue.d.ts +15 -0
  57. package/src/common/components/Layer.vue.d.ts +9 -0
  58. package/src/common/components/Layout.vue.d.ts +15 -0
  59. package/src/common/components/LeftHeaderContainer.vue.d.ts +2 -0
  60. package/src/common/components/Loading.vue.d.ts +2 -0
  61. package/src/common/components/LoadingSpinner.vue.d.ts +2 -0
  62. package/src/common/components/MainComponent.vue.d.ts +2 -0
  63. package/src/common/components/SelectionButton.vue.d.ts +9 -0
  64. package/src/common/components/SelectionButtons.vue.d.ts +10 -0
  65. package/src/common/components/ShowCustomView.vue.d.ts +22 -0
  66. package/src/common/components/SwitchButton.vue.d.ts +16 -0
  67. package/src/common/components/ToggleButtons.vue.d.ts +12 -0
  68. package/src/common/components/Tooltip.vue.d.ts +29 -0
  69. package/src/common/components/action-buttons/-utils/ActionButton.vue.d.ts +21 -0
  70. package/src/common/components/collection-view/-utils/BackButton.vue.d.ts +16 -0
  71. package/src/common/components/collection-view/-utils/ParameterTooltip.vue.d.ts +14 -0
  72. package/src/common/components/collection-view/-utils/TabbedNav.vue.d.ts +18 -0
  73. package/src/common/components/collection-view/-utils/TabbedNavMenu.vue.d.ts +30 -0
  74. package/src/common/components/collection-view/-utils/TabbedNavStatic.vue.d.ts +6 -0
  75. package/src/common/components/collection-view/-utils/collection-view-dynamic-components.d.ts +3802 -0
  76. package/src/common/components/collection-view/-utils/collection-view-props.d.ts +45 -0
  77. package/src/common/components/collection-view/-utils/helper.d.ts +5 -0
  78. package/src/common/components/collection-view/-utils/render.d.ts +9 -0
  79. package/src/common/components/collection-view/-utils/types.d.ts +45 -0
  80. package/src/common/components/collection-view/CollectionView.vue.d.ts +70 -0
  81. package/src/common/components/collection-view/CollectionViewElement.vue.d.ts +200 -0
  82. package/src/common/components/collection-view/CollectionViewHint.vue.d.ts +10 -0
  83. package/src/common/components/drawer-layout/DrawerElement.vue.d.ts +100 -0
  84. package/src/common/components/drawer-layout/DrawerGroup.vue.d.ts +23 -0
  85. package/src/common/components/drawer-layout/DrawerLayout.vue.d.ts +101 -0
  86. package/src/common/components/flying-menu/FlyingMenu.vue.d.ts +8 -0
  87. package/src/common/components/flying-menu/MergeProductButtons.vue.d.ts +2 -0
  88. package/src/common/components/flying-menu/StartConfiguringButton.vue.d.ts +2 -0
  89. package/src/common/components/helpers.d.ts +6 -0
  90. package/src/common/components/inputs/BaseInput.vue.d.ts +24 -0
  91. package/src/common/components/inputs/NumericInput.vue.d.ts +22 -0
  92. package/src/common/components/inputs/NumericInputWrapper.vue.d.ts +15 -0
  93. package/src/common/components/inputs/RangeSlider.vue.d.ts +34 -0
  94. package/src/common/components/inputs/SelectDropdown.vue.d.ts +18 -0
  95. package/src/common/components/notifications/FirstPersonControlsNotification.vue.d.ts +6 -0
  96. package/src/common/components/notifications/InteractionNotes.vue.d.ts +10 -0
  97. package/src/common/components/notifications/LoadSavedPlanNotification.vue.d.ts +10 -0
  98. package/src/common/components/notifications/NotificationCard.vue.d.ts +19 -0
  99. package/src/common/components/notifications/Notifications.vue.d.ts +2 -0
  100. package/src/common/components/overlays/PartList.vue.d.ts +185 -0
  101. package/src/common/components/overlays/bottom-bar/CloseView.vue.d.ts +220 -0
  102. package/src/common/components/overlays/bottom-bar/ControlButtonsWrapper.vue.d.ts +2 -0
  103. package/src/common/components/overlays/bottom-bar/GoBack.vue.d.ts +49 -0
  104. package/src/common/components/overlays/bottom-bar/cart/AddToBasket.vue.d.ts +6 -0
  105. package/src/common/components/overlays/bottom-bar/cart/CartIconWithBadge.vue.d.ts +12 -0
  106. package/src/common/components/overlays/bottom-bar/cart/ExitBtn.vue.d.ts +40 -0
  107. package/src/common/components/overlays/bottom-bar/cart/GoToCartBtn.vue.d.ts +49 -0
  108. package/src/common/components/overlays/bottom-bar/cart/SaveCartBtn.vue.d.ts +50 -0
  109. package/src/common/components/overlays/part-list/PartListEntry.vue.d.ts +114 -0
  110. package/src/common/components/overlays/part-list/PartListHeader.vue.d.ts +10 -0
  111. package/src/common/components/overlays/part-list/PartListPrint.vue.d.ts +16 -0
  112. package/src/common/components/overlays/part-list/PartListRow.vue.d.ts +60 -0
  113. package/src/common/components/overlays/part-list/partlist-setup.d.ts +17 -0
  114. package/src/common/components/overlays/tutorials/SupaDemoEmbed.vue.d.ts +10 -0
  115. package/src/common/components/overlays/tutorials/Tutorials.vue.d.ts +6 -0
  116. package/src/common/components/overlays/tutorials/YouTubeEmbed.vue.d.ts +10 -0
  117. package/src/common/components/parameters/ColorParameter.vue.d.ts +2229 -0
  118. package/src/common/components/side-bar/BackAction.vue.d.ts +22 -0
  119. package/src/common/components/side-bar/NavigationButtonsWrapper.vue.d.ts +9 -0
  120. package/src/common/components/side-bar/NextAction.vue.d.ts +22 -0
  121. package/src/common/components/tool-bar/ToolBar.vue.d.ts +2 -0
  122. package/src/common/components/tool-bar/ToolBarWrapper.vue.d.ts +4 -0
  123. package/src/common/components/tool-tip/MoreInfoTooltipContent.vue.d.ts +18 -0
  124. package/src/common/components/top-bar/TopBar.vue.d.ts +2 -0
  125. package/src/common/components/utils/-utils/notifications.d.ts +50 -0
  126. package/src/common/components/utils/-utils/overlays.d.ts +65 -0
  127. package/src/common/components/utils/CollapsibleButtonsContainer.vue.d.ts +26 -0
  128. package/src/common/components/utils/HeightToggle.vue.d.ts +34 -0
  129. package/src/common/components/utils/QRCode.vue.d.ts +139 -0
  130. package/src/common/components/utils/ShadowOnStage.vue.d.ts +8 -0
  131. package/src/common/components/utils/StageActivityIndicator.vue.d.ts +2 -0
  132. package/src/common/components/utils/collapsible-buttons-container/CollapsibleButton.vue.d.ts +14 -0
  133. package/src/common/components/utils/collapsible-buttons-container/CollapsibleTrigger.vue.d.ts +27 -0
  134. package/src/common/components/utils/collapsible-buttons-container/collapsible-button-types.d.ts +1 -0
  135. package/src/common/composables/use-analytics.d.ts +3 -0
  136. package/src/common/composables/use-ar-service.d.ts +3 -0
  137. package/src/common/composables/use-async-function.d.ts +8 -0
  138. package/src/common/composables/use-configurator-actions-visibility.d.ts +4 -0
  139. package/src/common/composables/use-configurator-api.d.ts +6 -0
  140. package/src/common/composables/use-core-bound-value.d.ts +8 -0
  141. package/src/common/composables/use-core-instances.d.ts +8 -0
  142. package/src/common/composables/use-embedding-callbacks.d.ts +3 -0
  143. package/src/common/composables/use-event-emitter-listener.d.ts +61 -0
  144. package/src/common/composables/use-fetch-root-tag.d.ts +8 -0
  145. package/src/common/composables/use-intersection-observer.d.ts +8 -0
  146. package/src/common/composables/use-intl.d.ts +14 -0
  147. package/src/common/composables/use-item-variants.d.ts +7 -0
  148. package/src/common/composables/use-libs.d.ts +3 -0
  149. package/src/common/composables/use-local-storage.d.ts +3 -0
  150. package/src/common/composables/use-materials-and-ral-colors.d.ts +10 -0
  151. package/src/common/composables/use-materials-grouped.d.ts +10 -0
  152. package/src/common/composables/use-measurement-styles.d.ts +10 -0
  153. package/src/common/composables/use-on-click-outside.d.ts +7 -0
  154. package/src/common/composables/use-planner-actions-visibility.d.ts +11 -0
  155. package/src/common/composables/use-pointer-pos.d.ts +16 -0
  156. package/src/common/composables/use-product-price.d.ts +11 -0
  157. package/src/common/composables/use-purchasable-count.d.ts +3 -0
  158. package/src/common/composables/use-sdk-connector.d.ts +3 -0
  159. package/src/common/composables/use-sdk-event-emitter-listener.d.ts +36 -0
  160. package/src/common/composables/use-selected-object-center.d.ts +5 -0
  161. package/src/common/composables/use-selected-plan-element.d.ts +7 -0
  162. package/src/common/composables/use-shared-sidebar-setup.d.ts +96 -0
  163. package/src/common/composables/use-stage-activity-indicator.d.ts +9 -0
  164. package/src/common/composables/use-static-item-parameters.d.ts +1114 -0
  165. package/src/common/composables/use-ui-actions.d.ts +3 -0
  166. package/src/common/config/tutorial-data.d.ts +3 -0
  167. package/src/common/plugins/analytics.d.ts +12 -0
  168. package/src/common/plugins/event-emitter.d.ts +4 -0
  169. package/src/common/plugins/local-storage.d.ts +10 -0
  170. package/src/common/plugins/localize.d.ts +2 -0
  171. package/src/common/plugins/ui-actions.d.ts +13 -0
  172. package/src/common/store/collection-view-state.d.ts +51 -0
  173. package/src/common/store/common-ui-state.d.ts +35 -0
  174. package/src/common/store/index.d.ts +35 -0
  175. package/src/common/translations/local-translation-source.d.ts +9 -0
  176. package/src/common/utils/access-restriction.d.ts +8 -0
  177. package/src/common/utils/ar-service.d.ts +14 -0
  178. package/src/common/utils/async-guard.d.ts +12 -0
  179. package/src/common/utils/bezier.d.ts +2 -0
  180. package/src/common/utils/color.d.ts +27 -0
  181. package/src/common/utils/compatibility.d.ts +4 -0
  182. package/src/common/utils/composable-helpers.d.ts +10 -0
  183. package/src/common/utils/dom.d.ts +20 -0
  184. package/src/common/utils/font-size-detector.d.ts +1 -0
  185. package/src/common/utils/fonts.d.ts +3 -0
  186. package/src/common/utils/google-analytics.d.ts +68 -0
  187. package/src/common/utils/helper.d.ts +83 -0
  188. package/src/common/utils/init-data-helper.d.ts +3 -0
  189. package/src/common/utils/log-canvas-coords.d.ts +3 -0
  190. package/src/common/utils/parameters.d.ts +19 -0
  191. package/src/common/utils/performance.d.ts +2 -0
  192. package/src/common/utils/plan.d.ts +1 -0
  193. package/src/common/utils/playwright-handler.d.ts +5 -0
  194. package/src/common/utils/playwright-response-checker.d.ts +3 -0
  195. package/src/common/utils/root-tags.d.ts +5 -0
  196. package/src/common/utils/script-loader.d.ts +6 -0
  197. package/src/common/utils/share.d.ts +1 -0
  198. package/src/common/utils/tutorials.d.ts +6 -0
  199. package/src/common/utils/types.d.ts +145 -0
  200. package/src/common/utils/ui-actions.d.ts +38 -0
  201. package/src/common/utils/user-agent.d.ts +7 -0
  202. package/src/common/utils/variants.d.ts +4 -0
  203. package/src/configurator/ar/AppAR.vue.d.ts +11 -0
  204. package/src/configurator/ar/main.d.ts +1 -0
  205. package/src/configurator/business-logic/roomle-sdk-wrapper.d.ts +30 -0
  206. package/src/configurator/business-logic/sdk-connector-configurator.d.ts +39 -0
  207. package/src/configurator/business-logic/sdk-connector.d.ts +136 -0
  208. package/src/configurator/business-logic/ui-callback.d.ts +6 -0
  209. package/src/configurator/components/ActionButtonsParameterGroups.vue.d.ts +6 -0
  210. package/src/configurator/components/ConfiguratorMain.vue.d.ts +2 -0
  211. package/src/configurator/components/ConfiguratorSidebar.vue.d.ts +13 -0
  212. package/src/configurator/components/CookieBanner.vue.d.ts +6 -0
  213. package/src/configurator/components/Overlays.vue.d.ts +842 -0
  214. package/src/configurator/components/PoweredBy.vue.d.ts +10 -0
  215. package/src/configurator/components/SceneContainer.vue.d.ts +2 -0
  216. package/src/configurator/components/StopConfiguringButton.vue.d.ts +2 -0
  217. package/src/configurator/components/addons/AddonsTrigger.vue.d.ts +34 -0
  218. package/src/configurator/components/addons/PossibleChildren.vue.d.ts +19 -0
  219. package/src/configurator/components/grid-view/-utils/CollapsedView.vue.d.ts +107 -0
  220. package/src/configurator/components/grid-view/-utils/ExpandedHeader.vue.d.ts +88 -0
  221. package/src/configurator/components/grid-view/-utils/ExpandedView.vue.d.ts +31 -0
  222. package/src/configurator/components/grid-view/-utils/GridViewElement.vue.d.ts +177 -0
  223. package/src/configurator/components/grid-view/-utils/GridViewHelper.d.ts +23 -0
  224. package/src/configurator/components/grid-view/-utils/GridViewMaterialElement.vue.d.ts +44 -0
  225. package/src/configurator/components/grid-view/-utils/GridViewThumbnailsElement.vue.d.ts +60 -0
  226. package/src/configurator/components/grid-view/-utils/GridViewTooltipElement.vue.d.ts +8 -0
  227. package/src/configurator/components/grid-view/GridView.vue.d.ts +327 -0
  228. package/src/configurator/components/overlays/DeleteWarning.vue.d.ts +87 -0
  229. package/src/configurator/components/overlays/ElementDisabled.vue.d.ts +83 -0
  230. package/src/configurator/components/overlays/Export3D.vue.d.ts +6 -0
  231. package/src/configurator/components/overlays/GenericError.vue.d.ts +104 -0
  232. package/src/configurator/components/overlays/LoadProduct.vue.d.ts +13 -0
  233. package/src/configurator/components/overlays/NoDocking.vue.d.ts +83 -0
  234. package/src/configurator/components/overlays/SaveDraft.vue.d.ts +13 -0
  235. package/src/configurator/components/overlays/VariantWarning.vue.d.ts +99 -0
  236. package/src/configurator/components/overlays/ar/OpenAR.vue.d.ts +12 -0
  237. package/src/configurator/components/overlays/ar/OpenARView.vue.d.ts +26 -0
  238. package/src/configurator/components/parameters/BackParameterGroupButton.vue.d.ts +6 -0
  239. package/src/configurator/components/parameters/NextParameterGroupButton.vue.d.ts +6 -0
  240. package/src/configurator/components/parameters/OverflowIndicator.vue.d.ts +12 -0
  241. package/src/configurator/components/parameters/ParameterGroupArrowButton.vue.d.ts +10 -0
  242. package/src/configurator/components/parameters/ParameterGroupButton.vue.d.ts +45 -0
  243. package/src/configurator/components/parameters/ParameterGroups.vue.d.ts +8 -0
  244. package/src/configurator/components/parameters/types/MaterialParameter.vue.d.ts +372 -0
  245. package/src/configurator/components/parameters/types/OptionsParameter.vue.d.ts +18 -0
  246. package/src/configurator/components/parameters/types/OptionsParameterValue.vue.d.ts +14 -0
  247. package/src/configurator/components/parameters/types/ProductVariant.vue.d.ts +374 -0
  248. package/src/configurator/components/parameters/types/RangeParameter.vue.d.ts +15 -0
  249. package/src/configurator/components/parameters/types/ThumbnailsParameter.vue.d.ts +369 -0
  250. package/src/configurator/components/parameters/types/UnknownParameter.vue.d.ts +12 -0
  251. package/src/configurator/components/top-bar/ARButton.vue.d.ts +2 -0
  252. package/src/configurator/components/utils/-utils/SceneOffsetResizer.d.ts +25 -0
  253. package/src/configurator/components/utils/-utils/popup-types.d.ts +1 -0
  254. package/src/configurator/components/utils/ArrowButton.vue.d.ts +8 -0
  255. package/src/configurator/components/utils/AspectRatioBox.vue.d.ts +9 -0
  256. package/src/configurator/components/utils/CheckBox.vue.d.ts +10 -0
  257. package/src/configurator/components/utils/FullscreenContainer.vue.d.ts +15 -0
  258. package/src/configurator/components/utils/GdprEmailInput.vue.d.ts +12 -0
  259. package/src/configurator/components/utils/HeightContainer.vue.d.ts +12 -0
  260. package/src/configurator/components/utils/ImageWithFallback.vue.d.ts +23 -0
  261. package/src/configurator/components/utils/InteractionsContainer.vue.d.ts +18 -0
  262. package/src/configurator/components/utils/PopUp.vue.d.ts +79 -0
  263. package/src/configurator/components/utils/PrimaryButton.vue.d.ts +36 -0
  264. package/src/configurator/components/utils/RadioButton.vue.d.ts +25 -0
  265. package/src/configurator/components/utils/ScrollHint.vue.d.ts +13 -0
  266. package/src/configurator/components/utils/SearchInput.vue.d.ts +41 -0
  267. package/src/configurator/components/utils/Spinner.vue.d.ts +2 -0
  268. package/src/configurator/components/utils/StartConfiguringButton.vue.d.ts +31 -0
  269. package/src/configurator/components/utils/SvgIcon.vue.d.ts +8 -0
  270. package/src/configurator/components/utils/WordWrap.vue.d.ts +33 -0
  271. package/src/configurator/components/utils/transitions/SlideTransitionWrapper.vue.d.ts +10 -0
  272. package/src/configurator/embedding/drag-ghost.d.ts +11 -0
  273. package/src/configurator/embedding/drag-handler.d.ts +11 -0
  274. package/src/configurator/embedding/example/Embedding.vue.d.ts +67 -0
  275. package/src/configurator/embedding/example/GlbConfSwitch.vue.d.ts +21 -0
  276. package/src/configurator/embedding/example/GlbConfSwitchSecret.vue.d.ts +17 -0
  277. package/src/configurator/embedding/example/main.d.ts +1 -0
  278. package/src/configurator/embedding/exposed-analytics-callbacks.d.ts +10 -0
  279. package/src/configurator/embedding/exposed-api.d.ts +169 -0
  280. package/src/configurator/embedding/exposed-callbacks.d.ts +83 -0
  281. package/src/configurator/embedding/helper.d.ts +31 -0
  282. package/src/configurator/embedding/roomle-configurator-api.d.ts +65 -0
  283. package/src/configurator/embedding/types.d.ts +505 -0
  284. package/src/configurator/plugins/ar-service-plugin.d.ts +6 -0
  285. package/src/configurator/plugins/embedding-callbacks-plugin.d.ts +4 -0
  286. package/src/configurator/plugins/libs-plugin.d.ts +11 -0
  287. package/src/configurator/plugins/sdk-connector-plugin.d.ts +21 -0
  288. package/src/configurator/store/core-data.d.ts +25 -0
  289. package/src/configurator/store/core-state.d.ts +21 -0
  290. package/src/configurator/store/ui-state.d.ts +80 -0
  291. package/src/main.d.ts +24 -0
  292. package/src/planner/business-logic/general-room-parameters.d.ts +32 -0
  293. package/src/planner/business-logic/pre-defined-rooms.d.ts +4 -0
  294. package/src/planner/business-logic/rooms.d.ts +62 -0
  295. package/src/planner/business-logic/sdk-connector-planner.d.ts +67 -0
  296. package/src/planner/business-logic/selected-door-parameters.d.ts +10 -0
  297. package/src/planner/business-logic/selected-wall-parameters.d.ts +11 -0
  298. package/src/planner/business-logic/selected-window-parameters.d.ts +10 -0
  299. package/src/planner/components/DraggableButton.vue.d.ts +27 -0
  300. package/src/planner/components/ObjectList.vue.d.ts +19 -0
  301. package/src/planner/components/PlannerMain.vue.d.ts +2 -0
  302. package/src/planner/components/PlannerSidebar.vue.d.ts +15 -0
  303. package/src/planner/components/RotateButton.vue.d.ts +14 -0
  304. package/src/planner/components/RotationButtonWrapper.vue.d.ts +6 -0
  305. package/src/planner/components/RotationIndicator.vue.d.ts +69 -0
  306. package/src/planner/components/StartPlannerButton.vue.d.ts +2 -0
  307. package/src/planner/components/catalog/CatalogTrigger.vue.d.ts +2 -0
  308. package/src/planner/components/measurements/MeasurementDisplayComponent.vue.d.ts +48 -0
  309. package/src/planner/components/measurements/ShowConstructionMeasurements.vue.d.ts +8 -0
  310. package/src/planner/components/measurements/ShowFloorsAreasData.vue.d.ts +8 -0
  311. package/src/planner/components/measurements/ShowMeasurementLineDimension.vue.d.ts +8 -0
  312. package/src/planner/components/measurements/ShowObjectMeasurements.vue.d.ts +10 -0
  313. package/src/planner/components/measurements/ShowWallMeasurements.vue.d.ts +8 -0
  314. package/src/planner/components/measurements/utils/IndicatorArrow.vue.d.ts +14 -0
  315. package/src/planner/components/measurements/utils/IndicatorLine.vue.d.ts +21 -0
  316. package/src/planner/components/measurements/utils/MeasurementText.vue.d.ts +19 -0
  317. package/src/planner/components/overlays/ProductList.vue.d.ts +24 -0
  318. package/src/planner/components/overlays/ProductListButton.vue.d.ts +2 -0
  319. package/src/planner/components/overlays/ProductSettings.vue.d.ts +14 -0
  320. package/src/planner/components/overlays/RoomSidebar.vue.d.ts +14 -0
  321. package/src/planner/components/overlays/product-list/LoadProductButton.vue.d.ts +2 -0
  322. package/src/planner/components/overlays/product-list/ProductListEntry.vue.d.ts +19 -0
  323. package/src/planner/components/overlays/product-list/ProductListType.vue.d.ts +23 -0
  324. package/src/planner/components/overlays/product-list/ProductsTotalPrice.vue.d.ts +12 -0
  325. package/src/planner/components/overlays/product-settings/ProductLabelButton.vue.d.ts +12 -0
  326. package/src/planner/components/overlays/product-settings/ProductPositions.vue.d.ts +10 -0
  327. package/src/planner/components/overlays/product-settings/ProductRangeControl.vue.d.ts +65 -0
  328. package/src/planner/components/overlays/product-settings/ProductRotation.vue.d.ts +8 -0
  329. package/src/planner/components/overlays/product-settings/ProductSettingsControls.vue.d.ts +2 -0
  330. package/src/planner/components/overlays/product-settings/ProductSettingsInfos.vue.d.ts +13 -0
  331. package/src/planner/components/overlays/product-settings/ProductSize.vue.d.ts +8 -0
  332. package/src/planner/components/overlays/product-settings/ProductXYZChanger.vue.d.ts +33 -0
  333. package/src/planner/components/overlays/rooms/ConstructionVariants.vue.d.ts +382 -0
  334. package/src/planner/components/overlays/rooms/DoorParametersSetting.vue.d.ts +5479 -0
  335. package/src/planner/components/overlays/rooms/ElementLengthScaling.vue.d.ts +111 -0
  336. package/src/planner/components/overlays/rooms/FloorColor.vue.d.ts +3822 -0
  337. package/src/planner/components/overlays/rooms/IconSwitch.vue.d.ts +46 -0
  338. package/src/planner/components/overlays/rooms/ParameterSwitch.vue.d.ts +42 -0
  339. package/src/planner/components/overlays/rooms/RoomDrawControl.vue.d.ts +36 -0
  340. package/src/planner/components/overlays/rooms/RoomDrawControlsDesc.vue.d.ts +2 -0
  341. package/src/planner/components/overlays/rooms/RoomGeneralSettings.vue.d.ts +17 -0
  342. package/src/planner/components/overlays/rooms/RoomRangeParameter.vue.d.ts +47 -0
  343. package/src/planner/components/overlays/rooms/RoomUnitSwitch.vue.d.ts +84 -0
  344. package/src/planner/components/overlays/rooms/RoomsList.vue.d.ts +24 -0
  345. package/src/planner/components/overlays/rooms/SampleRooms.vue.d.ts +14 -0
  346. package/src/planner/components/overlays/rooms/WallGeneralSettings.vue.d.ts +16 -0
  347. package/src/planner/components/overlays/rooms/WindowParametersSetting.vue.d.ts +17 -0
  348. package/src/planner/components/overlays/rooms/utils/ral-colors.d.ts +1113 -0
  349. package/src/planner/components/utils/AddRoomButton.vue.d.ts +2 -0
  350. package/src/planner/components/utils/AssureConfiguratorHandlers.vue.d.ts +6 -0
  351. package/src/planner/components/utils/AssureSdkHandlers.vue.d.ts +7 -0
  352. package/src/planner/components/utils/ConfiguratorParameter.vue.d.ts +19 -0
  353. package/src/planner/components/utils/InteractionHeader.vue.d.ts +10 -0
  354. package/src/planner/components/utils/MeasurementsString.vue.d.ts +18 -0
  355. package/src/planner/components/utils/WallSideIcon.vue.d.ts +23 -0
  356. package/src/planner/components/utils/sidebar-nav/NavIndicatorLine.vue.d.ts +14 -0
  357. package/src/planner/components/utils/sidebar-nav/RoomNavOptionElement.vue.d.ts +49 -0
  358. package/src/planner/components/utils/sidebar-nav/SidebarNav.vue.d.ts +50 -0
  359. package/src/planner/store/planner-core-data.d.ts +20 -0
  360. package/src/planner/store/planner-ui-state.d.ts +50 -0
  361. package/src/planner/utils/interaction.d.ts +4 -0
  362. package/src/planner/utils/planner-sidebar.d.ts +16 -0
  363. package/src/planner/utils/rotation-calculation.d.ts +7 -0
  364. package/src/viewer/business-logic/sdk-connector-viewer.d.ts +19 -0
  365. package/src/viewer/components/ARButtonViewer.vue.d.ts +2 -0
  366. package/src/viewer/components/ViewerMain.vue.d.ts +146 -0
  367. package/src/viewer/components/ViewerSidebar.vue.d.ts +33 -0
@@ -0,0 +1,65 @@
1
+ import { ExposedApi } from './exposed-api';
2
+ import { UiInitData } from './types';
3
+ import { default as ConfiguratorUiCallbacks } from '@roomle/web-sdk/lib/definitions/configurator-core/src/services/configurator-ui-callback';
4
+ import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
5
+ import { ExposedAnalyticsCallbacks } from './exposed-analytics-callbacks';
6
+ import { default as RoomleGLBViewer } from '@roomle/web-sdk/lib/definitions/glb-viewer-core/src/roomle-glb-viewer';
7
+ import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
8
+ import { GlobalCallback } from '@roomle/web-sdk/lib/definitions/common-core/src/services/global-callback';
9
+
10
+ export interface RoomleEmbeddingApiKeys {
11
+ extended: any;
12
+ ui: any;
13
+ analytics: any;
14
+ global: any;
15
+ }
16
+ export type RoomleConfiguratorApi = RoomleEmbeddingApi<RoomleConfigurator, ConfiguratorUiCallbacks>;
17
+ export type RoomleViewerApi = RoomleEmbeddingApi<RoomleGLBViewer, ConfiguratorUiCallbacks>;
18
+ export type RoomlePlannerApi = RoomleEmbeddingApi<RoomlePlanner, ConfiguratorUiCallbacks>;
19
+ export default class RoomleEmbeddingApi<SdkType, SdkCallbacks> implements RoomleEmbeddingApiKeys {
20
+ static createPlanner(configuratorId: string, container: HTMLElement, initData: UiInitData): Promise<RoomlePlannerApi>;
21
+ /**
22
+ * Method to create a new instance of a Roomle Configurator
23
+ * @param configuratorId the id which identifies your configurator, you will get this ID from your Roomle Contact Person
24
+ * @param container DOM container in which the configurator should be placed
25
+ * @param initData settings with which the configurator should be started
26
+ */
27
+ static createConfigurator(configuratorId: string, container: HTMLElement, initData: UiInitData): Promise<RoomleConfiguratorApi>;
28
+ /**
29
+ * Method to create a new instance of a Roomle Configurator
30
+ * @deprecated please use "createConfigurator"
31
+ * @param configuratorId the id which identifies your configurator, you will get this ID from your Roomle Contact Person
32
+ * @param container DOM container in which the configurator should be placed
33
+ * @param initData settings with which the configurator should be started
34
+ */
35
+ static create(configuratorId: string, container: HTMLElement, initData: UiInitData): Promise<RoomleConfiguratorApi>;
36
+ /**
37
+ * Method to create a new instance of a Roomle Viewer
38
+ * @param configuratorId the id which identifies your configurator, you will get this ID from your Roomle Contact Person
39
+ * @param container DOM container in which the configurator should be placed
40
+ * @param initData settings with which the configurator should be started
41
+ */
42
+ static createViewer(configuratorId: string, container: HTMLElement, initData: UiInitData): Promise<RoomleViewerApi>;
43
+ private static _create;
44
+ ui: ExposedApi;
45
+ extended: SdkType;
46
+ analytics: {
47
+ callbacks: ExposedAnalyticsCallbacks;
48
+ };
49
+ global: {
50
+ callbacks: GlobalCallback;
51
+ };
52
+ private _waitForIframe;
53
+ private _container;
54
+ private _messageHandler;
55
+ private _configuratorSettings;
56
+ private _initData;
57
+ private _iframe;
58
+ private constructor();
59
+ teardown(): void;
60
+ private _createIframe;
61
+ private _onResize;
62
+ private _onUseFullPage;
63
+ private _onBackToWebsite;
64
+ private _executeMessage;
65
+ }
@@ -0,0 +1,505 @@
1
+ import { FeatureFlags, GlobalInitDataDefinition, InitDataDefinition } from '@roomle/web-sdk/lib/definitions/common-core/src/utils/shims';
2
+ import { HexColorString, RapiConfiguratorSettings, RapiId } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
3
+ import { Enumify, MEASUREMENT_UNIT, MEASUREMENT_SYSTEM, Nullable, TutorialData } from '../../common/utils/types';
4
+ import { ViewTypeState } from '../../common/store/collection-view-state';
5
+ import { KernelPartList } from '@roomle/web-sdk/lib/definitions/typings/kernel';
6
+ import { INTERACTION_NOTIFICATIONS, NOTIFICATIONS } from '../../common/components/utils/-utils/notifications';
7
+
8
+ export interface ThumbnailsSettings {
9
+ collapsed: {
10
+ desktop: ViewTypeState;
11
+ mobile: ViewTypeState;
12
+ };
13
+ expanded: {
14
+ desktop: ViewTypeState;
15
+ mobile: ViewTypeState;
16
+ };
17
+ }
18
+ export declare enum UI_BUTTON {
19
+ AR = "ar",
20
+ PARTLIST = "partlist",
21
+ MULTISELECT = "multiselect",
22
+ DIMENSIONS = "dimensions",
23
+ FULLSCREEN = "fullscreen",
24
+ RESETCAMERA = "resetcamera",
25
+ RENDERIMAGE = "renderimage",
26
+ ADDONS = "addons",
27
+ REQUESTPRODUCT = "requestproduct",
28
+ REQUESTPLAN = "requestplan",
29
+ SAVEDRAFT = "savedraft",
30
+ STARTCONFIGURE = "startconfigure",
31
+ PAUSECONFIGURE = "pauseconfigure",
32
+ FIRST_PERSON = "firstperson",
33
+ EXPORT_3D = "export3d",
34
+ ROTATE = "rotate",
35
+ SNAPPING = "snapping",
36
+ UNDO = "undo",
37
+ REDO = "redo",
38
+ PARTLIST_PLANNER = "partlist_planner",
39
+ PARTLIST_PRINT = "partlist_print",
40
+ PRODUCTLIST = "productlist",
41
+ TWO_D_VIEW = "2dview",
42
+ ADD_ROOM = "add_room",
43
+ STARTPLANNER = "startPlanner",
44
+ THREE_D_VIEW = "3dview",
45
+ CLOSE_VIEW = "close_view",
46
+ ADD_TO_BASKET = "add_to_basket",
47
+ VIEW_MODE = "view_mode",
48
+ ADD_MEASUREMENT_LINE = "add_measurement_line",
49
+ HELP_CENTER = "help_center",
50
+ LOAD_PRODUCT = "load_product",
51
+ CONFIGURE_IN_ROOM = "configure_in_room"
52
+ }
53
+ export declare enum UI_ELEMENTS {
54
+ BOTTOM_BAR = "bottom_bar",
55
+ PARTLIST_BOUNDS = "partlist_bounds",
56
+ INTERACTION_NOTES = "interaction_notes"
57
+ }
58
+ export interface HelpCenterSetting {
59
+ configurator?: boolean;
60
+ roomdesigner?: boolean;
61
+ disable?: boolean;
62
+ }
63
+ interface UiFeatureFlags extends FeatureFlags {
64
+ realPartList?: boolean;
65
+ globalCallbacks?: boolean;
66
+ mocAr?: boolean;
67
+ wallAutoHeight?: boolean;
68
+ }
69
+ export interface VariantsMap {
70
+ [key: string]: RapiId;
71
+ }
72
+ export type LogLevelCanvasCoords = 'all' | 'click' | 'move';
73
+ export interface UiInitData extends InitDataDefinition, GlobalInitDataDefinition {
74
+ /**
75
+ * @description show and hide certain buttons
76
+ */
77
+ buttons?: {
78
+ [UI_BUTTON.AR]?: boolean;
79
+ [UI_BUTTON.PARTLIST]?: boolean;
80
+ [UI_BUTTON.MULTISELECT]?: boolean;
81
+ [UI_BUTTON.DIMENSIONS]?: boolean;
82
+ [UI_BUTTON.FULLSCREEN]?: boolean;
83
+ [UI_BUTTON.RESETCAMERA]?: boolean;
84
+ [UI_BUTTON.RENDERIMAGE]?: boolean;
85
+ [UI_BUTTON.ADDONS]?: boolean;
86
+ [UI_BUTTON.REQUESTPRODUCT]?: boolean;
87
+ [UI_BUTTON.REQUESTPLAN]?: boolean;
88
+ [UI_BUTTON.SAVEDRAFT]?: boolean;
89
+ [UI_BUTTON.LOAD_PRODUCT]?: boolean;
90
+ [UI_BUTTON.STARTCONFIGURE]?: boolean;
91
+ [UI_BUTTON.PAUSECONFIGURE]?: boolean;
92
+ [UI_BUTTON.EXPORT_3D]?: boolean;
93
+ [UI_BUTTON.ROTATE]?: boolean;
94
+ [UI_BUTTON.SNAPPING]?: boolean;
95
+ [UI_BUTTON.UNDO]?: boolean;
96
+ [UI_BUTTON.REDO]?: boolean;
97
+ [UI_BUTTON.TWO_D_VIEW]?: boolean;
98
+ [UI_BUTTON.PARTLIST_PLANNER]?: boolean;
99
+ [UI_BUTTON.PARTLIST_PRINT]?: boolean;
100
+ [UI_BUTTON.PRODUCTLIST]?: boolean;
101
+ [UI_BUTTON.ADD_ROOM]?: boolean;
102
+ [UI_BUTTON.STARTPLANNER]?: boolean;
103
+ [UI_BUTTON.THREE_D_VIEW]?: boolean;
104
+ [UI_BUTTON.FIRST_PERSON]?: boolean;
105
+ [UI_BUTTON.CLOSE_VIEW]?: boolean;
106
+ [UI_BUTTON.ADD_TO_BASKET]?: boolean;
107
+ [UI_BUTTON.VIEW_MODE]?: boolean;
108
+ [UI_BUTTON.ADD_MEASUREMENT_LINE]?: boolean;
109
+ [UI_BUTTON.HELP_CENTER]?: boolean;
110
+ [UI_BUTTON.CONFIGURE_IN_ROOM]?: boolean;
111
+ [key: string]: boolean | undefined;
112
+ };
113
+ /**
114
+ * @description show and hide certain elements
115
+ */
116
+ elements?: {
117
+ [UI_ELEMENTS.BOTTOM_BAR]?: boolean;
118
+ [UI_ELEMENTS.PARTLIST_BOUNDS]?: boolean;
119
+ [UI_ELEMENTS.INTERACTION_NOTES]?: boolean;
120
+ [key: string]: boolean | undefined;
121
+ };
122
+ /**
123
+ * @description show and hide certain notifications
124
+ */
125
+ notifications?: {
126
+ [NOTIFICATIONS.LOAD_IDB_CONFIG]?: boolean;
127
+ [NOTIFICATIONS.FIRST_PERSON_CONTROLS]?: boolean;
128
+ [NOTIFICATIONS.STOP_CONFIGURE_HINT]?: boolean;
129
+ [NOTIFICATIONS.INTERACTION_NOTE]?: {
130
+ [INTERACTION_NOTIFICATIONS.ROOT_ELEMENT]?: boolean;
131
+ [INTERACTION_NOTIFICATIONS.CONFIRM_GHOSTS]?: boolean;
132
+ [INTERACTION_NOTIFICATIONS.ADD_ELEMENT]?: boolean;
133
+ [INTERACTION_NOTIFICATIONS.PARAMETER_CHANGED]?: boolean;
134
+ };
135
+ };
136
+ /**
137
+ * @description skin the embedding instance
138
+ */
139
+ skin?: EmbeddingSkin;
140
+ /**
141
+ * @description set the z-index of the embedding instance
142
+ */
143
+ zIndex?: number;
144
+ /**
145
+ * @internal
146
+ * @description use a local version of the embedding
147
+ */
148
+ useLocalRoomle?: boolean;
149
+ /**
150
+ * @internal
151
+ * @description use another server url for the embedding
152
+ */
153
+ overrideServerUrl?: string;
154
+ /**
155
+ * @deprecated
156
+ * @description for details see deeplink, the only change is
157
+ * that the placeholder is <CONF_ID> here instead
158
+ * of #CONFIGURATIONID#
159
+ */
160
+ shareUrl?: string;
161
+ /**
162
+ * @description Set this parameter to use your custom share url.
163
+ * The provided url has to contain a configuration id parameter (`#CONFIGURATIONID#`) which will be replaced with the real
164
+ * configuration id.
165
+ * default: not set -> use Roomle short url service (linking to roomle.com domain)
166
+ * usage: http://www.example.com/configurator?id=#CONFIGURATIONID#
167
+ */
168
+ deeplink?: string;
169
+ /**
170
+ * @description Define to which variants you can switch from which root component id. This is a simple JS object which is
171
+ * used like a map, e.g.: '"usm:frame": "DB_Start_ohne_Element"' now if a configuration with root component
172
+ * usm:frame is loaded all the items from the tag "DB_Start_ohne_Element" are now shown as variants
173
+ */
174
+ variants?: VariantsMap;
175
+ /**
176
+ * @description if set to true you can load the configurator in an iframe.src but without any embedding lib
177
+ * This is needed if you do not want to interact with the configurator and only want to use it
178
+ * to view 3d content. Imagine it then as a <img> tag for 3d content
179
+ */
180
+ api?: boolean;
181
+ /**
182
+ * @description if this is set to true the "save draft" will be done by sending
183
+ * an e-mail
184
+ */
185
+ emails?: boolean;
186
+ /**
187
+ * @description set this flag to true if you want to configure on small devices in landscape as well
188
+ * this is relevant for things like Rubens Admin, where the configurator is embedded into a very
189
+ * small div
190
+ */
191
+ mobileLandscape?: boolean;
192
+ /**
193
+ * @description set this flag to true if you want to group the part list by main components
194
+ */
195
+ groupPartList?: boolean;
196
+ /**
197
+ * @internal
198
+ * @description this is an object which is for Roomle internal usage, we can set feature flags
199
+ * so that we can ensure a smooth transition between different versions of our configurator
200
+ */
201
+ featureFlags?: UiFeatureFlags;
202
+ /**
203
+ * @description set this flag to false if the user did not give the consent to Analytics
204
+ */
205
+ gaConsent?: boolean;
206
+ /**
207
+ * @description override translations to change labels for some or all languages.
208
+ * Example:
209
+ *
210
+ * ```
211
+ * "translations": {
212
+ * "en": {
213
+ * "params": {
214
+ * "request-product": "Add to cart",
215
+ * }
216
+ * }
217
+ * }
218
+ * ```
219
+ *
220
+ * You can find all labels here: [Base.json](../translate-labels)
221
+ */
222
+ translations?: any;
223
+ /**
224
+ * @description set this flag to false and global parameters are not applied when switching variants
225
+ */
226
+ applyCurrentGlobalParameters?: boolean;
227
+ /**
228
+ * @description set this flag to true if you want that a user can select more than one material category at once
229
+ */
230
+ materialMultiSelect?: boolean;
231
+ /**
232
+ * @description set this flag to true if you want to start the moc in configuring mode if there is only one object in the scene
233
+ * @groups room-designer
234
+ */
235
+ startInDetail?: boolean;
236
+ /**
237
+ * @description use this param to initialize the configurator ui state, like opening certain views, camera modes, etc
238
+ * @groups room-designer
239
+ */
240
+ state?: UiState;
241
+ /**
242
+ * @description define the root tag of your catalog
243
+ * you can define multiple root tags by using []
244
+ * e.g.: catalogRootTag[]=123&catalogRootTag[]=456
245
+ * @groups room-designer
246
+ */
247
+ catalogRootTag?: RapiId | RapiId[];
248
+ /**
249
+ * @description define the root tag of the construction elements, default is "construction_moc" when moc=true and null otherwise
250
+ * you can define multiple root tags by using []
251
+ * e.g.: constructionRootTag[]=123&constructionRootTag[]=456
252
+ * @groups room-designer
253
+ */
254
+ constructionRootTag?: RapiId | RapiId[];
255
+ /**
256
+ * @description define the root tag of the materials that can be used for floors
257
+ * you can define multiple root tags by using []
258
+ * e.g.: floorMaterialRootTag[]=123&floorMaterialRootTag[]=456
259
+ * @groups room-designer
260
+ */
261
+ floorMaterialRootTag?: RapiId | RapiId[];
262
+ /**
263
+ * @description define the root tag of the materials that can be used for walls
264
+ * you can define multiple root tags by using []
265
+ * e.g.: wallMaterialRootTag[]=123&wallMaterialRootTag[]=456
266
+ * @groups room-designer
267
+ */
268
+ wallMaterialRootTag?: RapiId | RapiId[];
269
+ /**
270
+ * @description define the root tag of the materials that can be used for doors
271
+ * you can define multiple root tags by using []
272
+ * e.g.: doorMaterialRootTag[]=123&doorMaterialRootTag[]=456
273
+ * @groups room-designer
274
+ */
275
+ doorMaterialRootTag?: RapiId | RapiId[];
276
+ /**
277
+ * @description define the root tag of the materials that can be used for windows
278
+ * you can define multiple root tags by using []
279
+ * e.g.: windowMaterialRootTag[]=123&windowMaterialRootTag[]=456
280
+ * @groups room-designer
281
+ */
282
+ windowMaterialRootTag?: RapiId | RapiId[];
283
+ /**
284
+ * @description define the root tag of the materials that can be used for objects
285
+ * you can define multiple root tags by using []
286
+ * e.g.: objectMaterialRootTag[]=123&objectMaterialRootTag[]=456
287
+ * @groups room-designer
288
+ */
289
+ objectMaterialRootTag?: RapiId | RapiId[];
290
+ /**
291
+ * @description define the root tag of the materials that can be used, this sets
292
+ * floorMaterialRootTag, wallMaterialRootTag, doorMaterialRootTag,
293
+ * windowMaterialRootTag, objectMaterialRootTag
294
+ * if they are not set
295
+ * you can define multiple root tags by using []
296
+ * e.g.: materialRootTag[]=123&materialRootTag[]=456
297
+ * @groups room-designer
298
+ */
299
+ materialRootTag?: RapiId | RapiId[];
300
+ /**
301
+ * @description sets the measurement unit to be displayed in the planner and configurator UI.
302
+ */
303
+ unit?: Enumify<typeof MEASUREMENT_UNIT>;
304
+ /**
305
+ * @description sets the measurement unit to be displayed in the planner and configurator UI.
306
+ * imperial sets measurementUnit to inches if no unit is passed
307
+ * metric sets measurementUnit to cm if no unit is passed
308
+ * if unit is not a metric unit (i.e. inch) but unitType=metric it will default to a metric unit (CM)
309
+ * and vice-versa
310
+ */
311
+ measurementSystem?: Enumify<typeof MEASUREMENT_SYSTEM>;
312
+ /**
313
+ * @description the query param thumbnails will be converted to the following object:
314
+ * ```
315
+ * {
316
+ * collapsed: { desktop: ViewTypeState; mobile: ViewTypeState };
317
+ * expanded: { desktop: ViewTypeState; mobile: ViewTypeState };
318
+ * }
319
+ * ```
320
+ *
321
+ * You have separate options to specify the settings for the thumbnails e.g.:
322
+ * ?thumbnails=big this sets all the values to "big" or you do:
323
+ * ?thumbnails.collapsed=big&thumbnails.expanded=list this sets the collapsed
324
+ * state to "big" and the expanded state to "list". Or you can specify the full
325
+ * object like:
326
+ * ?thumbnails.collapsed.desktop=big&thumbnails.collapsed.mobile=small&thumbnails.expanded.desktop=list&thumbnails.expanded.mobile=big
327
+ *
328
+ * the following values for ViewTypeState are valid: list | small | big
329
+ * for the collapsed state list will have no effect and just be rendered like small.
330
+ * On mobile collapsed will only use small
331
+ */
332
+ thumbnails?: ThumbnailsSettings;
333
+ /**
334
+ * @description start embedding instance only as viewer
335
+ */
336
+ viewer?: boolean;
337
+ /**
338
+ * @description use an external catalog (deprecated, use customView.extCatalog instead)
339
+ * @deprecated
340
+ * @groups room-designer
341
+ */
342
+ extCatalog?: string;
343
+ /**
344
+ * @description specify a custom font to be used. When using a custom font make sure you understand
345
+ * the legal implications. For example: copyrigth law, data protection law, etc.
346
+ * - source needs to be a valid url to a font file CSS.
347
+ * Similar to what Google Fonts provides. For an example see:
348
+ * https://fonts.googleapis.com/css?family=Lato:300,400,700&display=swap&subset=latin-ext
349
+ * The font should provide the following weights: 300, 400, 700
350
+ * If you use the URL as a query param make sure to use encodeURIComponent
351
+ * - family needs to be a valid CSS font family name.
352
+ * If you use font family as a query param make sure to use encodeURIComponent
353
+ */
354
+ fonts?: {
355
+ source?: string;
356
+ family?: string;
357
+ };
358
+ /**
359
+ * @description Shows or hides the first person mode toggle button in the sidebar menu
360
+ * @groups room-designer
361
+ */
362
+ firstPersonView?: boolean;
363
+ /**
364
+ * @description Specify which context (i.e room designer or configurator or neither) to show the tutorial/helpcenter
365
+ * button in the sidebar.
366
+ */
367
+ helpcenter?: HelpCenterSetting;
368
+ /**
369
+ * @description Specify custom tutorials to be shown in the tutorial/helpcenter.
370
+ * Should be of the following format:
371
+ * [{
372
+ * "en": { // mandatory
373
+ * "link": "SOME_LINK",
374
+ * "label": "first step",
375
+ * "desc": "some description",
376
+ * },
377
+ * "de": { // optional
378
+ * "link": "SOME_LINK",
379
+ * "label": "first step",
380
+ * "desc": "some description",
381
+ * },
382
+ * "SOME_OTHER_LOCALE": { // optional --> SOME_OTHER_LOCALE should be a valid locale from: https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes
383
+ * "link": "SOME_LINK",
384
+ * "label": "first step",
385
+ * "desc": "some description",
386
+ * },
387
+ * "scope": "room-designer", // optional
388
+ * "platform": "desktop" // optional
389
+ * }]
390
+ */
391
+ customTutorials?: TutorialData[];
392
+ /**
393
+ * @description Enables saving changes to the current configuration and or plan to indexedDB storage locally in the
394
+ * browser, reloading the page will prompt the user to restore the saved configuration/plan.
395
+ * - The data saved in indexedDB is stored in a key-value pair under the database 'rml-idb' and the table
396
+ * named 'rml-config-store' where the key consists of the current hostname (if inside an iframe it will be 'window.referrer'),
397
+ * the configurator ID and the plan or configurator ID separated by underscores (_).
398
+ * - This key format allows saved data to be scoped by the aforementioned IDs and hostname.
399
+ * - The data stored in 'rml-config-store' follows the following format:
400
+ * {
401
+ * "id": "example.com_exampleConfiguratorId_examplePlanOrConfigurationId",
402
+ * "data": "<...configurationOrPlanDataString...>",
403
+ * "lastModified": "2024-04-16T04:54:48.825Z"
404
+ * "referrer": "example.com"
405
+ * }
406
+ * - Any data in the 'rml-idb' database older than 30 days is removed automatically when the app loads.
407
+ */
408
+ saveToIdb?: boolean;
409
+ /**
410
+ * @description when the configurator/Room Designer is embedded into a too small space we start it in view
411
+ * only mode, then the user has to click the "start" button and the configurator/Room Designer expands over
412
+ * the whole window. This is great for UX but it's not always ideal in every use case. Therefore you can
413
+ * turn on/off this behavior now with this toggle.
414
+ */
415
+ autoStart?: boolean;
416
+ /**
417
+ * @internal
418
+ * @description if set to true the coords of the clicks on the canvas will be logged to the console
419
+ */
420
+ logCanvasCoords?: LogLevelCanvasCoords;
421
+ /**
422
+ * @description For use with planner only, if set to true the room will be shown while configuring a configurable object.
423
+ */
424
+ configureInRoom?: boolean;
425
+ /**
426
+ * @description define when you want to show the search bar, currently we hide the search bar until there are more than 10 elements.
427
+ * since it is a query param the value is a string. Please only provide a string that can be parseInt(x,10) otherwise it will be
428
+ * undefined behavior
429
+ */
430
+ searchThreshold?: string;
431
+ /**
432
+ * @description Sets the rotation indicator to snap a plan object to the nearest supplied degree value while being rotated, default is 10 degrees.
433
+ * Supplying 0 will allow the rotation indicator to rotate plan object freely.
434
+ */
435
+ rotationSnapDegrees?: number;
436
+ /**
437
+ * @description specify an url which can be used as src for an iframe
438
+ */
439
+ customView?: CustomViews;
440
+ }
441
+ export interface UiState {
442
+ /**
443
+ * define which modes are active when starting the planner/MOC
444
+ */
445
+ mode?: 'room' | 'catalog';
446
+ }
447
+ export interface EmbeddingSkin {
448
+ 'primary-color'?: HexColorString;
449
+ 'primary-color-in-rgb'?: HexColorString;
450
+ 'color-on-primary'?: HexColorString;
451
+ 'cta-color'?: HexColorString;
452
+ 'color-on-cta'?: HexColorString;
453
+ [key: string]: HexColorString | undefined;
454
+ }
455
+ export interface ConfiguratorSettings extends RapiConfiguratorSettings {
456
+ id: string;
457
+ allowedHost: string;
458
+ tenant: number;
459
+ url: string;
460
+ settings: UiInitData;
461
+ }
462
+ interface PartlistPrintPayload {
463
+ partList: KernelPartList[];
464
+ price: Nullable<string>;
465
+ label: string;
466
+ bounds: string;
467
+ catalogLabel: Nullable<string>;
468
+ }
469
+ type CallbackPayloads = {
470
+ [UI_BUTTON.PARTLIST_PRINT]: PartlistPrintPayload;
471
+ };
472
+ type DefaultCallbackPayloads<T, U extends string> = {
473
+ [K in U]: K extends keyof T ? T[K] : void;
474
+ };
475
+ export type ButtonCallbackPayloads = DefaultCallbackPayloads<CallbackPayloads, UI_BUTTON>;
476
+ interface CustomViewSettingsBase<T> {
477
+ options?: T;
478
+ }
479
+ export interface CustomViewSettingsForOverlay<T> extends CustomViewSettingsBase<T> {
480
+ overlay: boolean;
481
+ }
482
+ export interface CustomViewSettingsForIframe<T> extends CustomViewSettingsBase<T> {
483
+ url: string;
484
+ }
485
+ export type CustomViewSettings<T> = CustomViewSettingsForOverlay<T> | CustomViewSettingsForIframe<T>;
486
+ export interface CustomViews {
487
+ itemSelection?: CustomViewSettings<object>;
488
+ extCatalog?: CustomViewSettings<{
489
+ showHeader: boolean;
490
+ }>;
491
+ }
492
+ export interface CustomViewsCallbacks {
493
+ itemSelection: void;
494
+ extCatalog: void;
495
+ }
496
+ export type CustomViewCallbackInfo = {
497
+ [K in keyof CustomViewsCallbacks]: [
498
+ viewName: K,
499
+ viewArgs: CustomViewsCallbacks[K]
500
+ ];
501
+ }[keyof CustomViewsCallbacks];
502
+ export type PossibleCustomViewSettings = CustomViews[keyof CustomViews];
503
+ export type PossibleCustomViews = keyof CustomViews;
504
+ export type PossibleCustomViewsAndMain = PossibleCustomViews | 'main';
505
+ export {};
@@ -0,0 +1,6 @@
1
+ declare const ARServicePlugin: {
2
+ install(app: any, { configuratorId }: {
3
+ configuratorId: string;
4
+ }): void;
5
+ };
6
+ export default ARServicePlugin;
@@ -0,0 +1,4 @@
1
+ declare const EmbeddingCallbacksPlugin: {
2
+ install(app: any): void;
3
+ };
4
+ export default EmbeddingCallbacksPlugin;
@@ -0,0 +1,11 @@
1
+ /// <reference types="jspdf" />
2
+ export declare class Libs {
3
+ getJsPdf(): Promise<{
4
+ jsPDF: typeof import('jspdf').jsPDF;
5
+ autoTable: typeof import('jspdf-autotable').default;
6
+ }>;
7
+ }
8
+ declare const LibsPlugin: {
9
+ install(app: any): void;
10
+ };
11
+ export default LibsPlugin;
@@ -0,0 +1,21 @@
1
+ import { Analytics } from '../../common/plugins/analytics';
2
+ import { RoomleSdkWrapper } from '../business-logic/roomle-sdk-wrapper';
3
+ import { Store } from 'vuex';
4
+ import { StoreState } from '../../common/store';
5
+ import { ExposedCallbacks } from '../embedding/exposed-callbacks';
6
+ import { default as EventEmitter } from '../../common/business-logic/event-emitter';
7
+ import { Translator } from '../../common/composables/use-intl';
8
+ import { Libs } from './libs-plugin';
9
+
10
+ declare const SdkConnectorPlugin: {
11
+ install(app: any, { analytics, store, sdkWrapper, embeddingCallbacks, eventEmitter, intl, libs, }: {
12
+ analytics: Analytics;
13
+ sdkWrapper: RoomleSdkWrapper;
14
+ store: Store<StoreState>;
15
+ embeddingCallbacks: ExposedCallbacks;
16
+ eventEmitter: EventEmitter;
17
+ intl: Translator;
18
+ libs: Libs;
19
+ }): void;
20
+ };
21
+ export default SdkConnectorPlugin;
@@ -0,0 +1,25 @@
1
+ import { Module } from 'vuex';
2
+ import { StoreState } from '../../common/store';
3
+ import { KernelParameterGroup, KernelPartList, UiKernelParameter, UiPossibleChildTag } from '@roomle/web-sdk/lib/definitions/typings/kernel';
4
+ import { Nullable } from '../../common/utils/types';
5
+ import { KernelBoundsFormatted } from '../../common/utils/helper';
6
+ import { EnsurePrefix } from './ui-state';
7
+
8
+ export interface ParameterGroup extends KernelParameterGroup {
9
+ parameters: UiKernelParameter[];
10
+ }
11
+ type CoreDataIdentifier = EnsurePrefix<'CORE_DATA_'>;
12
+ export interface CoreData {
13
+ groups: ParameterGroup[];
14
+ parameters: UiKernelParameter[];
15
+ addons: UiPossibleChildTag[];
16
+ partList: KernelPartList;
17
+ bounds: Nullable<KernelBoundsFormatted>;
18
+ currencySymbol: string;
19
+ price: Nullable<number>;
20
+ }
21
+ export declare const CORE_DATA_MUTATIONS: CoreDataIdentifier;
22
+ export declare const CORE_DATA_ACTIONS: CoreDataIdentifier;
23
+ export declare const CORE_DATA_GETTERS: CoreDataIdentifier;
24
+ export declare const coreData: Module<CoreData, StoreState>;
25
+ export {};
@@ -0,0 +1,21 @@
1
+ import { Module } from 'vuex';
2
+ import { StoreState } from '../../common/store';
3
+ import { Nullable } from '../../common/utils/types';
4
+ import { EnsurePrefix } from './ui-state';
5
+ import { UiPlanObject } from '@roomle/web-sdk/lib/definitions/typings/kernel';
6
+
7
+ type CoreStateIdentifier = EnsurePrefix<'CORE_STATE_'>;
8
+ export interface CoreState {
9
+ label: string;
10
+ componentHasChildren: boolean;
11
+ componentRuntimeId: Nullable<number>;
12
+ catalogLabel: Nullable<string>;
13
+ initialHash: Nullable<string>;
14
+ currentHash: Nullable<string>;
15
+ currentPlanElement: Nullable<UiPlanObject>;
16
+ }
17
+ export declare const CORE_STATE_MUTATIONS: CoreStateIdentifier;
18
+ export declare const CORE_STATE_ACTIONS: CoreStateIdentifier;
19
+ export declare const CORE_STATE_GETTERS: CoreStateIdentifier;
20
+ export declare const coreState: Module<CoreState, StoreState>;
21
+ export {};