@roomle/embedding-lib 5.9.0-alpha.3 → 5.9.0-alpha.4
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/docs/md/web/embedding/CHANGELOG.md +6 -10
- package/index.d.ts +2 -179
- package/package.json +2 -2
- package/packages/build-tools/src/vite-file-size-check.d.ts +8 -0
- package/packages/build-tools/src/vite-minify.d.ts +3 -0
- package/packages/common/src/utils/browser.d.ts +4 -0
- package/packages/common/src/utils/custom-drag.d.ts +26 -0
- package/packages/common/src/utils/custom-view.d.ts +2 -0
- package/packages/common/src/utils/domain.d.ts +3 -0
- package/packages/common/src/utils/drag.d.ts +17 -0
- package/packages/common/src/utils/embedding.d.ts +23 -0
- package/packages/common/src/utils/get-computed-style-cached.d.ts +8 -0
- package/packages/common/src/utils/id-inferrer.d.ts +7 -0
- package/packages/common/src/utils/iframe.d.ts +3 -0
- package/packages/common/src/utils/init-data.d.ts +66 -0
- package/packages/common/src/utils/merge.d.ts +16 -0
- package/packages/common/src/utils/message-handler-creator.d.ts +3 -0
- package/packages/common/src/utils/message-handler.d.ts +35 -0
- package/packages/common/src/utils/promise.d.ts +5 -0
- package/packages/common/src/utils/timing.d.ts +1 -0
- package/packages/common/src/utils/touch-drag.d.ts +30 -0
- package/packages/common/src/utils/touch.d.ts +1 -0
- package/packages/embedding-lib/src/connector.d.ts +42 -0
- package/packages/embedding-lib/src/embedding-lib.d.ts +64 -0
- package/packages/embedding-lib/src/example.d.ts +5 -0
- package/packages/embedding-lib/src/examples/api-false.d.ts +10 -0
- package/packages/embedding-lib/src/examples/configurator-only.d.ts +7 -0
- package/packages/embedding-lib/src/examples/download-partlist.d.ts +7 -0
- package/packages/embedding-lib/src/examples/drag-in.d.ts +8 -0
- package/packages/embedding-lib/src/examples/ext-catalog/ext-catalog-connection.d.ts +1 -0
- package/packages/embedding-lib/src/examples/ext-catalog.d.ts +7 -0
- package/packages/embedding-lib/src/examples/ext-selection-overlay.d.ts +8 -0
- package/packages/embedding-lib/src/examples/planner-and-configurator.d.ts +7 -0
- package/packages/embedding-lib/src/examples/start-and-end-configurator.d.ts +7 -0
- package/packages/embedding-lib/src/examples/utils/drag-listeners.d.ts +6 -0
- package/packages/embedding-lib/src/overview.d.ts +1 -0
- package/packages/embedding-lib/src/plugins/constants.d.ts +19 -0
- package/packages/embedding-lib/src/plugins/drag-in.d.ts +33 -0
- package/packages/embedding-lib/src/plugins/strategy/from-custom-view.d.ts +31 -0
- package/packages/embedding-lib/src/plugins/strategy/from-website.d.ts +27 -0
- package/packages/embedding-lib/src/plugins/strategy/types.d.ts +15 -0
- package/packages/embedding-lib/src/plugins/types.d.ts +36 -0
- package/packages/embedding-lib/src/utils.d.ts +18 -0
- package/src/App.vue.d.ts +127 -0
- package/src/common/business-logic/connector.d.ts +9 -0
- package/src/common/business-logic/event-bus.d.ts +7 -0
- package/src/common/business-logic/event-emitter.d.ts +11 -0
- package/src/common/components/ActionButtons.vue.d.ts +8 -0
- package/src/common/components/BottomBar.vue.d.ts +2 -0
- package/src/common/components/BottomButtons.vue.d.ts +9 -0
- package/src/common/components/CounterDot.vue.d.ts +6 -0
- package/src/common/components/EmbeddedAdditionalInfo.vue.d.ts +12 -0
- package/src/common/components/EmbeddedExternalCatalog.vue.d.ts +16 -0
- package/src/common/components/EmbeddedInfoWrapper.vue.d.ts +27 -0
- package/src/common/components/ExpandableIcons.vue.d.ts +12 -0
- package/src/common/components/IconButton.vue.d.ts +15 -0
- package/src/common/components/Layer.vue.d.ts +9 -0
- package/src/common/components/Layout.vue.d.ts +15 -0
- package/src/common/components/LeftHeaderContainer.vue.d.ts +2 -0
- package/src/common/components/Loading.vue.d.ts +2 -0
- package/src/common/components/LoadingSpinner.vue.d.ts +2 -0
- package/src/common/components/MainComponent.vue.d.ts +2 -0
- package/src/common/components/SelectionButton.vue.d.ts +9 -0
- package/src/common/components/SelectionButtons.vue.d.ts +10 -0
- package/src/common/components/ShowCustomView.vue.d.ts +22 -0
- package/src/common/components/SwitchButton.vue.d.ts +16 -0
- package/src/common/components/ToggleButtons.vue.d.ts +12 -0
- package/src/common/components/Tooltip.vue.d.ts +29 -0
- package/src/common/components/action-buttons/-utils/ActionButton.vue.d.ts +21 -0
- package/src/common/components/collection-view/-utils/BackButton.vue.d.ts +16 -0
- package/src/common/components/collection-view/-utils/ParameterTooltip.vue.d.ts +14 -0
- package/src/common/components/collection-view/-utils/TabbedNav.vue.d.ts +18 -0
- package/src/common/components/collection-view/-utils/TabbedNavMenu.vue.d.ts +30 -0
- package/src/common/components/collection-view/-utils/TabbedNavStatic.vue.d.ts +6 -0
- package/src/common/components/collection-view/-utils/collection-view-dynamic-components.d.ts +3802 -0
- package/src/common/components/collection-view/-utils/collection-view-props.d.ts +45 -0
- package/src/common/components/collection-view/-utils/helper.d.ts +5 -0
- package/src/common/components/collection-view/-utils/render.d.ts +9 -0
- package/src/common/components/collection-view/-utils/types.d.ts +45 -0
- package/src/common/components/collection-view/CollectionView.vue.d.ts +70 -0
- package/src/common/components/collection-view/CollectionViewElement.vue.d.ts +200 -0
- package/src/common/components/collection-view/CollectionViewHint.vue.d.ts +10 -0
- package/src/common/components/drawer-layout/DrawerElement.vue.d.ts +100 -0
- package/src/common/components/drawer-layout/DrawerGroup.vue.d.ts +23 -0
- package/src/common/components/drawer-layout/DrawerLayout.vue.d.ts +101 -0
- package/src/common/components/flying-menu/FlyingMenu.vue.d.ts +8 -0
- package/src/common/components/flying-menu/MergeProductButtons.vue.d.ts +2 -0
- package/src/common/components/flying-menu/StartConfiguringButton.vue.d.ts +2 -0
- package/src/common/components/helpers.d.ts +6 -0
- package/src/common/components/inputs/BaseInput.vue.d.ts +24 -0
- package/src/common/components/inputs/NumericInput.vue.d.ts +22 -0
- package/src/common/components/inputs/NumericInputWrapper.vue.d.ts +15 -0
- package/src/common/components/inputs/RangeSlider.vue.d.ts +34 -0
- package/src/common/components/inputs/SelectDropdown.vue.d.ts +18 -0
- package/src/common/components/notifications/FirstPersonControlsNotification.vue.d.ts +6 -0
- package/src/common/components/notifications/InteractionNotes.vue.d.ts +10 -0
- package/src/common/components/notifications/LoadSavedPlanNotification.vue.d.ts +10 -0
- package/src/common/components/notifications/NotificationCard.vue.d.ts +19 -0
- package/src/common/components/notifications/Notifications.vue.d.ts +2 -0
- package/src/common/components/overlays/PartList.vue.d.ts +185 -0
- package/src/common/components/overlays/bottom-bar/CloseView.vue.d.ts +220 -0
- package/src/common/components/overlays/bottom-bar/ControlButtonsWrapper.vue.d.ts +2 -0
- package/src/common/components/overlays/bottom-bar/GoBack.vue.d.ts +49 -0
- package/src/common/components/overlays/bottom-bar/cart/AddToBasket.vue.d.ts +6 -0
- package/src/common/components/overlays/bottom-bar/cart/CartIconWithBadge.vue.d.ts +12 -0
- package/src/common/components/overlays/bottom-bar/cart/ExitBtn.vue.d.ts +40 -0
- package/src/common/components/overlays/bottom-bar/cart/GoToCartBtn.vue.d.ts +49 -0
- package/src/common/components/overlays/bottom-bar/cart/SaveCartBtn.vue.d.ts +50 -0
- package/src/common/components/overlays/part-list/PartListEntry.vue.d.ts +114 -0
- package/src/common/components/overlays/part-list/PartListHeader.vue.d.ts +10 -0
- package/src/common/components/overlays/part-list/PartListPrint.vue.d.ts +16 -0
- package/src/common/components/overlays/part-list/PartListRow.vue.d.ts +60 -0
- package/src/common/components/overlays/part-list/partlist-setup.d.ts +17 -0
- package/src/common/components/overlays/tutorials/SupaDemoEmbed.vue.d.ts +10 -0
- package/src/common/components/overlays/tutorials/Tutorials.vue.d.ts +6 -0
- package/src/common/components/overlays/tutorials/YouTubeEmbed.vue.d.ts +10 -0
- package/src/common/components/parameters/ColorParameter.vue.d.ts +2229 -0
- package/src/common/components/side-bar/BackAction.vue.d.ts +22 -0
- package/src/common/components/side-bar/NavigationButtonsWrapper.vue.d.ts +9 -0
- package/src/common/components/side-bar/NextAction.vue.d.ts +22 -0
- package/src/common/components/tool-bar/ToolBar.vue.d.ts +2 -0
- package/src/common/components/tool-bar/ToolBarWrapper.vue.d.ts +4 -0
- package/src/common/components/tool-tip/MoreInfoTooltipContent.vue.d.ts +18 -0
- package/src/common/components/top-bar/TopBar.vue.d.ts +2 -0
- package/src/common/components/utils/-utils/notifications.d.ts +50 -0
- package/src/common/components/utils/-utils/overlays.d.ts +65 -0
- package/src/common/components/utils/CollapsibleButtonsContainer.vue.d.ts +26 -0
- package/src/common/components/utils/HeightToggle.vue.d.ts +34 -0
- package/src/common/components/utils/QRCode.vue.d.ts +139 -0
- package/src/common/components/utils/ShadowOnStage.vue.d.ts +8 -0
- package/src/common/components/utils/StageActivityIndicator.vue.d.ts +2 -0
- package/src/common/components/utils/collapsible-buttons-container/CollapsibleButton.vue.d.ts +14 -0
- package/src/common/components/utils/collapsible-buttons-container/CollapsibleTrigger.vue.d.ts +27 -0
- package/src/common/components/utils/collapsible-buttons-container/collapsible-button-types.d.ts +1 -0
- package/src/common/composables/use-analytics.d.ts +3 -0
- package/src/common/composables/use-ar-service.d.ts +3 -0
- package/src/common/composables/use-async-function.d.ts +8 -0
- package/src/common/composables/use-configurator-actions-visibility.d.ts +4 -0
- package/src/common/composables/use-configurator-api.d.ts +6 -0
- package/src/common/composables/use-core-bound-value.d.ts +8 -0
- package/src/common/composables/use-core-instances.d.ts +8 -0
- package/src/common/composables/use-embedding-callbacks.d.ts +3 -0
- package/src/common/composables/use-event-emitter-listener.d.ts +61 -0
- package/src/common/composables/use-fetch-root-tag.d.ts +8 -0
- package/src/common/composables/use-intersection-observer.d.ts +8 -0
- package/src/common/composables/use-intl.d.ts +14 -0
- package/src/common/composables/use-item-variants.d.ts +7 -0
- package/src/common/composables/use-libs.d.ts +3 -0
- package/src/common/composables/use-local-storage.d.ts +3 -0
- package/src/common/composables/use-materials-and-ral-colors.d.ts +10 -0
- package/src/common/composables/use-materials-grouped.d.ts +10 -0
- package/src/common/composables/use-measurement-styles.d.ts +10 -0
- package/src/common/composables/use-on-click-outside.d.ts +7 -0
- package/src/common/composables/use-planner-actions-visibility.d.ts +11 -0
- package/src/common/composables/use-pointer-pos.d.ts +16 -0
- package/src/common/composables/use-product-price.d.ts +11 -0
- package/src/common/composables/use-purchasable-count.d.ts +3 -0
- package/src/common/composables/use-sdk-connector.d.ts +3 -0
- package/src/common/composables/use-sdk-event-emitter-listener.d.ts +36 -0
- package/src/common/composables/use-selected-object-center.d.ts +5 -0
- package/src/common/composables/use-selected-plan-element.d.ts +7 -0
- package/src/common/composables/use-shared-sidebar-setup.d.ts +96 -0
- package/src/common/composables/use-stage-activity-indicator.d.ts +9 -0
- package/src/common/composables/use-static-item-parameters.d.ts +1114 -0
- package/src/common/composables/use-ui-actions.d.ts +3 -0
- package/src/common/config/tutorial-data.d.ts +3 -0
- package/src/common/plugins/analytics.d.ts +12 -0
- package/src/common/plugins/event-emitter.d.ts +4 -0
- package/src/common/plugins/local-storage.d.ts +10 -0
- package/src/common/plugins/localize.d.ts +2 -0
- package/src/common/plugins/ui-actions.d.ts +13 -0
- package/src/common/store/collection-view-state.d.ts +51 -0
- package/src/common/store/common-ui-state.d.ts +35 -0
- package/src/common/store/index.d.ts +35 -0
- package/src/common/translations/local-translation-source.d.ts +9 -0
- package/src/common/utils/access-restriction.d.ts +8 -0
- package/src/common/utils/ar-service.d.ts +14 -0
- package/src/common/utils/async-guard.d.ts +12 -0
- package/src/common/utils/bezier.d.ts +2 -0
- package/src/common/utils/color.d.ts +27 -0
- package/src/common/utils/compatibility.d.ts +4 -0
- package/src/common/utils/composable-helpers.d.ts +10 -0
- package/src/common/utils/dom.d.ts +20 -0
- package/src/common/utils/font-size-detector.d.ts +1 -0
- package/src/common/utils/fonts.d.ts +3 -0
- package/src/common/utils/google-analytics.d.ts +68 -0
- package/src/common/utils/helper.d.ts +83 -0
- package/src/common/utils/init-data-helper.d.ts +3 -0
- package/src/common/utils/log-canvas-coords.d.ts +3 -0
- package/src/common/utils/parameters.d.ts +19 -0
- package/src/common/utils/performance.d.ts +2 -0
- package/src/common/utils/plan.d.ts +1 -0
- package/src/common/utils/playwright-handler.d.ts +5 -0
- package/src/common/utils/playwright-response-checker.d.ts +3 -0
- package/src/common/utils/root-tags.d.ts +5 -0
- package/src/common/utils/script-loader.d.ts +6 -0
- package/src/common/utils/share.d.ts +1 -0
- package/src/common/utils/tutorials.d.ts +6 -0
- package/src/common/utils/types.d.ts +145 -0
- package/src/common/utils/ui-actions.d.ts +38 -0
- package/src/common/utils/user-agent.d.ts +7 -0
- package/src/common/utils/variants.d.ts +4 -0
- package/src/configurator/ar/AppAR.vue.d.ts +11 -0
- package/src/configurator/ar/main.d.ts +1 -0
- package/src/configurator/business-logic/roomle-sdk-wrapper.d.ts +30 -0
- package/src/configurator/business-logic/sdk-connector-configurator.d.ts +39 -0
- package/src/configurator/business-logic/sdk-connector.d.ts +136 -0
- package/src/configurator/business-logic/ui-callback.d.ts +6 -0
- package/src/configurator/components/ActionButtonsParameterGroups.vue.d.ts +6 -0
- package/src/configurator/components/ConfiguratorMain.vue.d.ts +2 -0
- package/src/configurator/components/ConfiguratorSidebar.vue.d.ts +13 -0
- package/src/configurator/components/CookieBanner.vue.d.ts +6 -0
- package/src/configurator/components/Overlays.vue.d.ts +842 -0
- package/src/configurator/components/PoweredBy.vue.d.ts +10 -0
- package/src/configurator/components/SceneContainer.vue.d.ts +2 -0
- package/src/configurator/components/StopConfiguringButton.vue.d.ts +2 -0
- package/src/configurator/components/addons/AddonsTrigger.vue.d.ts +34 -0
- package/src/configurator/components/addons/PossibleChildren.vue.d.ts +19 -0
- package/src/configurator/components/grid-view/-utils/CollapsedView.vue.d.ts +107 -0
- package/src/configurator/components/grid-view/-utils/ExpandedHeader.vue.d.ts +88 -0
- package/src/configurator/components/grid-view/-utils/ExpandedView.vue.d.ts +31 -0
- package/src/configurator/components/grid-view/-utils/GridViewElement.vue.d.ts +177 -0
- package/src/configurator/components/grid-view/-utils/GridViewHelper.d.ts +23 -0
- package/src/configurator/components/grid-view/-utils/GridViewMaterialElement.vue.d.ts +44 -0
- package/src/configurator/components/grid-view/-utils/GridViewThumbnailsElement.vue.d.ts +60 -0
- package/src/configurator/components/grid-view/-utils/GridViewTooltipElement.vue.d.ts +8 -0
- package/src/configurator/components/grid-view/GridView.vue.d.ts +327 -0
- package/src/configurator/components/overlays/DeleteWarning.vue.d.ts +87 -0
- package/src/configurator/components/overlays/ElementDisabled.vue.d.ts +83 -0
- package/src/configurator/components/overlays/Export3D.vue.d.ts +6 -0
- package/src/configurator/components/overlays/GenericError.vue.d.ts +104 -0
- package/src/configurator/components/overlays/LoadProduct.vue.d.ts +13 -0
- package/src/configurator/components/overlays/NoDocking.vue.d.ts +83 -0
- package/src/configurator/components/overlays/SaveDraft.vue.d.ts +13 -0
- package/src/configurator/components/overlays/VariantWarning.vue.d.ts +99 -0
- package/src/configurator/components/overlays/ar/OpenAR.vue.d.ts +12 -0
- package/src/configurator/components/overlays/ar/OpenARView.vue.d.ts +24 -0
- package/src/configurator/components/parameters/BackParameterGroupButton.vue.d.ts +6 -0
- package/src/configurator/components/parameters/NextParameterGroupButton.vue.d.ts +6 -0
- package/src/configurator/components/parameters/OverflowIndicator.vue.d.ts +12 -0
- package/src/configurator/components/parameters/ParameterGroupArrowButton.vue.d.ts +10 -0
- package/src/configurator/components/parameters/ParameterGroupButton.vue.d.ts +45 -0
- package/src/configurator/components/parameters/ParameterGroups.vue.d.ts +8 -0
- package/src/configurator/components/parameters/types/MaterialParameter.vue.d.ts +372 -0
- package/src/configurator/components/parameters/types/OptionsParameter.vue.d.ts +18 -0
- package/src/configurator/components/parameters/types/OptionsParameterValue.vue.d.ts +14 -0
- package/src/configurator/components/parameters/types/ProductVariant.vue.d.ts +374 -0
- package/src/configurator/components/parameters/types/RangeParameter.vue.d.ts +15 -0
- package/src/configurator/components/parameters/types/ThumbnailsParameter.vue.d.ts +369 -0
- package/src/configurator/components/parameters/types/UnknownParameter.vue.d.ts +12 -0
- package/src/configurator/components/top-bar/ARButton.vue.d.ts +2 -0
- package/src/configurator/components/utils/-utils/SceneOffsetResizer.d.ts +25 -0
- package/src/configurator/components/utils/-utils/popup-types.d.ts +1 -0
- package/src/configurator/components/utils/ArrowButton.vue.d.ts +8 -0
- package/src/configurator/components/utils/AspectRatioBox.vue.d.ts +9 -0
- package/src/configurator/components/utils/CheckBox.vue.d.ts +10 -0
- package/src/configurator/components/utils/FullscreenContainer.vue.d.ts +15 -0
- package/src/configurator/components/utils/GdprEmailInput.vue.d.ts +12 -0
- package/src/configurator/components/utils/HeightContainer.vue.d.ts +12 -0
- package/src/configurator/components/utils/ImageWithFallback.vue.d.ts +23 -0
- package/src/configurator/components/utils/InteractionsContainer.vue.d.ts +18 -0
- package/src/configurator/components/utils/PopUp.vue.d.ts +79 -0
- package/src/configurator/components/utils/PrimaryButton.vue.d.ts +36 -0
- package/src/configurator/components/utils/RadioButton.vue.d.ts +25 -0
- package/src/configurator/components/utils/ScrollHint.vue.d.ts +13 -0
- package/src/configurator/components/utils/SearchInput.vue.d.ts +41 -0
- package/src/configurator/components/utils/Spinner.vue.d.ts +2 -0
- package/src/configurator/components/utils/StartConfiguringButton.vue.d.ts +31 -0
- package/src/configurator/components/utils/SvgIcon.vue.d.ts +8 -0
- package/src/configurator/components/utils/WordWrap.vue.d.ts +33 -0
- package/src/configurator/components/utils/transitions/SlideTransitionWrapper.vue.d.ts +10 -0
- package/src/configurator/embedding/drag-ghost.d.ts +11 -0
- package/src/configurator/embedding/drag-handler.d.ts +11 -0
- package/src/configurator/embedding/example/Embedding.vue.d.ts +67 -0
- package/src/configurator/embedding/example/GlbConfSwitch.vue.d.ts +21 -0
- package/src/configurator/embedding/example/GlbConfSwitchSecret.vue.d.ts +17 -0
- package/src/configurator/embedding/example/main.d.ts +1 -0
- package/src/configurator/embedding/exposed-analytics-callbacks.d.ts +10 -0
- package/src/configurator/embedding/exposed-api.d.ts +169 -0
- package/src/configurator/embedding/exposed-callbacks.d.ts +83 -0
- package/src/configurator/embedding/helper.d.ts +31 -0
- package/src/configurator/embedding/roomle-configurator-api.d.ts +65 -0
- package/src/configurator/embedding/types.d.ts +505 -0
- package/src/configurator/plugins/ar-service-plugin.d.ts +6 -0
- package/src/configurator/plugins/embedding-callbacks-plugin.d.ts +4 -0
- package/src/configurator/plugins/libs-plugin.d.ts +11 -0
- package/src/configurator/plugins/sdk-connector-plugin.d.ts +21 -0
- package/src/configurator/store/core-data.d.ts +25 -0
- package/src/configurator/store/core-state.d.ts +21 -0
- package/src/configurator/store/ui-state.d.ts +80 -0
- package/src/main.d.ts +24 -0
- package/src/planner/business-logic/general-room-parameters.d.ts +32 -0
- package/src/planner/business-logic/pre-defined-rooms.d.ts +4 -0
- package/src/planner/business-logic/rooms.d.ts +62 -0
- package/src/planner/business-logic/sdk-connector-planner.d.ts +67 -0
- package/src/planner/business-logic/selected-door-parameters.d.ts +10 -0
- package/src/planner/business-logic/selected-wall-parameters.d.ts +11 -0
- package/src/planner/business-logic/selected-window-parameters.d.ts +10 -0
- package/src/planner/components/DraggableButton.vue.d.ts +27 -0
- package/src/planner/components/ObjectList.vue.d.ts +19 -0
- package/src/planner/components/PlannerMain.vue.d.ts +2 -0
- package/src/planner/components/PlannerSidebar.vue.d.ts +15 -0
- package/src/planner/components/RotateButton.vue.d.ts +14 -0
- package/src/planner/components/RotationButtonWrapper.vue.d.ts +6 -0
- package/src/planner/components/RotationIndicator.vue.d.ts +69 -0
- package/src/planner/components/StartPlannerButton.vue.d.ts +2 -0
- package/src/planner/components/catalog/CatalogTrigger.vue.d.ts +2 -0
- package/src/planner/components/measurements/MeasurementDisplayComponent.vue.d.ts +48 -0
- package/src/planner/components/measurements/ShowConstructionMeasurements.vue.d.ts +8 -0
- package/src/planner/components/measurements/ShowFloorsAreasData.vue.d.ts +8 -0
- package/src/planner/components/measurements/ShowMeasurementLineDimension.vue.d.ts +8 -0
- package/src/planner/components/measurements/ShowObjectMeasurements.vue.d.ts +10 -0
- package/src/planner/components/measurements/ShowWallMeasurements.vue.d.ts +8 -0
- package/src/planner/components/measurements/utils/IndicatorArrow.vue.d.ts +14 -0
- package/src/planner/components/measurements/utils/IndicatorLine.vue.d.ts +21 -0
- package/src/planner/components/measurements/utils/MeasurementText.vue.d.ts +19 -0
- package/src/planner/components/overlays/ProductList.vue.d.ts +24 -0
- package/src/planner/components/overlays/ProductListButton.vue.d.ts +2 -0
- package/src/planner/components/overlays/ProductSettings.vue.d.ts +14 -0
- package/src/planner/components/overlays/RoomSidebar.vue.d.ts +14 -0
- package/src/planner/components/overlays/product-list/LoadProductButton.vue.d.ts +2 -0
- package/src/planner/components/overlays/product-list/ProductListEntry.vue.d.ts +19 -0
- package/src/planner/components/overlays/product-list/ProductListType.vue.d.ts +23 -0
- package/src/planner/components/overlays/product-list/ProductsTotalPrice.vue.d.ts +12 -0
- package/src/planner/components/overlays/product-settings/ProductLabelButton.vue.d.ts +12 -0
- package/src/planner/components/overlays/product-settings/ProductPositions.vue.d.ts +10 -0
- package/src/planner/components/overlays/product-settings/ProductRangeControl.vue.d.ts +65 -0
- package/src/planner/components/overlays/product-settings/ProductRotation.vue.d.ts +8 -0
- package/src/planner/components/overlays/product-settings/ProductSettingsControls.vue.d.ts +2 -0
- package/src/planner/components/overlays/product-settings/ProductSettingsInfos.vue.d.ts +13 -0
- package/src/planner/components/overlays/product-settings/ProductSize.vue.d.ts +8 -0
- package/src/planner/components/overlays/product-settings/ProductXYZChanger.vue.d.ts +33 -0
- package/src/planner/components/overlays/rooms/ConstructionVariants.vue.d.ts +382 -0
- package/src/planner/components/overlays/rooms/DoorParametersSetting.vue.d.ts +5479 -0
- package/src/planner/components/overlays/rooms/ElementLengthScaling.vue.d.ts +111 -0
- package/src/planner/components/overlays/rooms/FloorColor.vue.d.ts +3822 -0
- package/src/planner/components/overlays/rooms/IconSwitch.vue.d.ts +46 -0
- package/src/planner/components/overlays/rooms/ParameterSwitch.vue.d.ts +42 -0
- package/src/planner/components/overlays/rooms/RoomDrawControl.vue.d.ts +36 -0
- package/src/planner/components/overlays/rooms/RoomDrawControlsDesc.vue.d.ts +2 -0
- package/src/planner/components/overlays/rooms/RoomGeneralSettings.vue.d.ts +17 -0
- package/src/planner/components/overlays/rooms/RoomRangeParameter.vue.d.ts +47 -0
- package/src/planner/components/overlays/rooms/RoomUnitSwitch.vue.d.ts +84 -0
- package/src/planner/components/overlays/rooms/RoomsList.vue.d.ts +24 -0
- package/src/planner/components/overlays/rooms/SampleRooms.vue.d.ts +14 -0
- package/src/planner/components/overlays/rooms/WallGeneralSettings.vue.d.ts +16 -0
- package/src/planner/components/overlays/rooms/WindowParametersSetting.vue.d.ts +17 -0
- package/src/planner/components/overlays/rooms/utils/ral-colors.d.ts +1113 -0
- package/src/planner/components/utils/AddRoomButton.vue.d.ts +2 -0
- package/src/planner/components/utils/AssureConfiguratorHandlers.vue.d.ts +6 -0
- package/src/planner/components/utils/AssureSdkHandlers.vue.d.ts +7 -0
- package/src/planner/components/utils/ConfiguratorParameter.vue.d.ts +19 -0
- package/src/planner/components/utils/InteractionHeader.vue.d.ts +10 -0
- package/src/planner/components/utils/MeasurementsString.vue.d.ts +18 -0
- package/src/planner/components/utils/WallSideIcon.vue.d.ts +23 -0
- package/src/planner/components/utils/sidebar-nav/NavIndicatorLine.vue.d.ts +14 -0
- package/src/planner/components/utils/sidebar-nav/RoomNavOptionElement.vue.d.ts +49 -0
- package/src/planner/components/utils/sidebar-nav/SidebarNav.vue.d.ts +50 -0
- package/src/planner/store/planner-core-data.d.ts +20 -0
- package/src/planner/store/planner-ui-state.d.ts +50 -0
- package/src/planner/utils/interaction.d.ts +4 -0
- package/src/planner/utils/planner-sidebar.d.ts +16 -0
- package/src/planner/utils/rotation-calculation.d.ts +7 -0
- package/src/viewer/business-logic/sdk-connector-viewer.d.ts +19 -0
- package/src/viewer/components/ARButtonViewer.vue.d.ts +2 -0
- package/src/viewer/components/ViewerMain.vue.d.ts +146 -0
- package/src/viewer/components/ViewerSidebar.vue.d.ts +33 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { KernelVector3 } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
2
|
+
import { RapiConfigurationEnhanced, RapiPlanSnapshotGetData, RapiPlan } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
3
|
+
import { ComponentPublicInstance } from 'vue';
|
|
4
|
+
|
|
5
|
+
export type Nullable<T> = T | null;
|
|
6
|
+
export type AnyFunction<T = void> = (...args: any[]) => T;
|
|
7
|
+
export type Enumify<T> = T[keyof T];
|
|
8
|
+
export interface CssHash {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const enum USER_ACTION_MODULE {
|
|
12
|
+
CONFIGURATOR = 3,
|
|
13
|
+
PLANNER = 1,
|
|
14
|
+
ROOM_DESIGNER = 8
|
|
15
|
+
}
|
|
16
|
+
export declare enum USER_ACTION {
|
|
17
|
+
CONVERSION = 11,
|
|
18
|
+
SHARE_AR = 301,
|
|
19
|
+
SAVE_DRAFT = 302,
|
|
20
|
+
ROOM_DESIGNER_SHARE_AR = 801,
|
|
21
|
+
ROOM_DESIGNER_SAVE_DRAFT = 802
|
|
22
|
+
}
|
|
23
|
+
export type ToggleCallback = (isExpanded: boolean) => void;
|
|
24
|
+
export type CloseReason = 'toggle' | 'close';
|
|
25
|
+
export declare const MEASUREMENT_UNIT: {
|
|
26
|
+
readonly FEET: "feet";
|
|
27
|
+
readonly INCH_FEET: "inchfeet";
|
|
28
|
+
readonly INCH: "inch";
|
|
29
|
+
readonly CM: "cm";
|
|
30
|
+
readonly MM: "mm";
|
|
31
|
+
};
|
|
32
|
+
export declare const IMPERIAL_MEASUREMENT_UNITS: {
|
|
33
|
+
readonly INCH: "inch";
|
|
34
|
+
readonly INCH_FEET: "inchfeet";
|
|
35
|
+
};
|
|
36
|
+
export declare const METRIC_MEASUREMENT_UNITS: {
|
|
37
|
+
readonly FEET: "feet";
|
|
38
|
+
readonly CM: "cm";
|
|
39
|
+
readonly MM: "mm";
|
|
40
|
+
};
|
|
41
|
+
export declare const MEASUREMENT_SYSTEM: {
|
|
42
|
+
readonly IMPERIAL: "imperial";
|
|
43
|
+
readonly METRIC: "metric";
|
|
44
|
+
};
|
|
45
|
+
export declare const DEMO_TYPES: {
|
|
46
|
+
readonly SUPADEMO: "supademo";
|
|
47
|
+
readonly YOUTUBE: "youtube";
|
|
48
|
+
readonly UNKNOWN: "unknown";
|
|
49
|
+
};
|
|
50
|
+
export declare const DEMO_SCOPES: Record<string, CustomTutorialScope>;
|
|
51
|
+
export declare const DEMO_PLATFORMS: Record<string, CustomTutorialPlatform>;
|
|
52
|
+
export declare const PLAN_OBJECT_TYPES: {
|
|
53
|
+
readonly CONFIGURATION: "configuration";
|
|
54
|
+
readonly STATIC: "static";
|
|
55
|
+
readonly WALL: "wall";
|
|
56
|
+
readonly WINDOW: "window";
|
|
57
|
+
readonly FLOOR: "floor";
|
|
58
|
+
readonly DOOR: "door";
|
|
59
|
+
readonly MEASURE: "measure";
|
|
60
|
+
readonly UNKNOWN: "unknown";
|
|
61
|
+
};
|
|
62
|
+
export declare const HAS_DRAWER_VIEW_TYPES: Enumify<typeof PLAN_OBJECT_TYPES>[];
|
|
63
|
+
export declare const SIDEBAR_VIEW_NAMES: {
|
|
64
|
+
readonly WALL: "generalWallSettings";
|
|
65
|
+
readonly FLOOR: "floorColor";
|
|
66
|
+
readonly WINDOW: "windowParametersSettings";
|
|
67
|
+
readonly DOOR: "doorParametersSettings";
|
|
68
|
+
readonly CONFIGURATION: "productSettings";
|
|
69
|
+
readonly STATIC: "productSettings";
|
|
70
|
+
readonly EMBEDDED_INFO: "embeddedInfos";
|
|
71
|
+
};
|
|
72
|
+
export type GroupedCollection<T> = Record<string | symbol, T[]>;
|
|
73
|
+
export declare const RESIZING_ANCHOR: {
|
|
74
|
+
readonly CENTER: 0;
|
|
75
|
+
readonly BACK_LEFT: 1;
|
|
76
|
+
readonly BACK_RIGHT: 2;
|
|
77
|
+
readonly FRONT_LEFT: 3;
|
|
78
|
+
readonly FRONT_RIGHT: 4;
|
|
79
|
+
readonly BACK: 5;
|
|
80
|
+
readonly FRONT: 6;
|
|
81
|
+
readonly LEFT: 7;
|
|
82
|
+
readonly RIGHT: 8;
|
|
83
|
+
};
|
|
84
|
+
export declare const PERSPECTIVE_CAMERA_TYPES: {
|
|
85
|
+
readonly LEFT: "left";
|
|
86
|
+
readonly CENTER: "center";
|
|
87
|
+
readonly RIGHT: "right";
|
|
88
|
+
readonly TOP: "top";
|
|
89
|
+
};
|
|
90
|
+
export declare const ACTION_BUTTONS: {
|
|
91
|
+
readonly UNDO_REDO: "z";
|
|
92
|
+
};
|
|
93
|
+
export declare const INTERACTION_VIEW_TYPE: {
|
|
94
|
+
readonly PARTLIST: "rubens_partlist";
|
|
95
|
+
readonly MATERIAL_INFO: "material_info";
|
|
96
|
+
readonly SIDEBAR: "rubens_sidebar";
|
|
97
|
+
};
|
|
98
|
+
export interface GeneralStringObjectType {
|
|
99
|
+
[key: string]: string;
|
|
100
|
+
}
|
|
101
|
+
export interface ExtendedKernelVector3 extends KernelVector3 {
|
|
102
|
+
[key: string]: number;
|
|
103
|
+
}
|
|
104
|
+
export declare const CATALOG_INFOS_TYPES: {
|
|
105
|
+
readonly PARAMETER: "parameter";
|
|
106
|
+
readonly PARAMETER_VALUE: "paramValue";
|
|
107
|
+
readonly MATERIAL: "material";
|
|
108
|
+
readonly COMPONENT: "component";
|
|
109
|
+
readonly ITEM: "item";
|
|
110
|
+
};
|
|
111
|
+
export interface MessageEventData {
|
|
112
|
+
eventData: {
|
|
113
|
+
eventType: 'insertProduct' | 'dragProduct' | 'removeProduct';
|
|
114
|
+
payload: {
|
|
115
|
+
productId: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
export type DraftTypes = 'plan' | 'configuration';
|
|
120
|
+
export interface SaveDraftPayload {
|
|
121
|
+
type: Nullable<DraftTypes>;
|
|
122
|
+
payload: Nullable<RapiConfigurationEnhanced | RapiPlanSnapshotGetData | RapiPlan>;
|
|
123
|
+
}
|
|
124
|
+
export interface SaveDraft {
|
|
125
|
+
id: string;
|
|
126
|
+
image: string;
|
|
127
|
+
url: string;
|
|
128
|
+
data: SaveDraftPayload;
|
|
129
|
+
}
|
|
130
|
+
export interface CustomTutorialTranslation {
|
|
131
|
+
link: string;
|
|
132
|
+
label: string;
|
|
133
|
+
desc?: string;
|
|
134
|
+
[key: string]: string | undefined;
|
|
135
|
+
}
|
|
136
|
+
export type CustomTutorialScope = 'room-designer' | 'configurator';
|
|
137
|
+
export type CustomTutorialPlatform = 'desktop' | 'mobile';
|
|
138
|
+
export type TutorialData = {
|
|
139
|
+
scope?: CustomTutorialScope;
|
|
140
|
+
platform?: CustomTutorialPlatform;
|
|
141
|
+
en: CustomTutorialTranslation;
|
|
142
|
+
} & {
|
|
143
|
+
[key: string]: CustomTutorialTranslation | CustomTutorialPlatform | CustomTutorialScope;
|
|
144
|
+
};
|
|
145
|
+
export type TooltipTarget<T> = ComponentPublicInstance<T>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { SdkConnector } from '../../configurator/business-logic/sdk-connector';
|
|
2
|
+
import { StoreState } from '../store';
|
|
3
|
+
import { Store } from 'vuex';
|
|
4
|
+
import { ExposedCallbacks } from '../../configurator/embedding/exposed-callbacks';
|
|
5
|
+
import { Nullable } from './types';
|
|
6
|
+
import { default as PlanElementViewModel } from '@roomle/web-sdk/lib/definitions/common-core/src/view-model/plan-element-view-model';
|
|
7
|
+
import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
8
|
+
import { SidebarType } from '../composables/use-event-emitter-listener';
|
|
9
|
+
import { default as EventEmitter } from '../business-logic/event-emitter';
|
|
10
|
+
|
|
11
|
+
export declare const scrollToSelectedGroup: (selectedKey: string, direction?: string) => void;
|
|
12
|
+
export declare const isConstructionProduct: (selectionElement: PlanElementViewModel) => boolean;
|
|
13
|
+
export default class UiActions {
|
|
14
|
+
private _sdkConnector;
|
|
15
|
+
private _store;
|
|
16
|
+
private _eventEmitter;
|
|
17
|
+
constructor(sdkConnector: SdkConnector, store: Store<StoreState>, eventEmitter: EventEmitter);
|
|
18
|
+
get eventEmitter(): EventEmitter;
|
|
19
|
+
openCatalog(shouldSwitchVariants?: boolean): Promise<boolean>;
|
|
20
|
+
closeCatalog(): Promise<void>;
|
|
21
|
+
toggleInteractionCollapsibleState(active: boolean): boolean;
|
|
22
|
+
handleAddRoom(): Promise<void>;
|
|
23
|
+
setHasWallState(): Promise<void>;
|
|
24
|
+
openAddRoom(): Promise<void>;
|
|
25
|
+
openNewView(viewName: SidebarType, action: number, expandMobile: boolean): Promise<void>;
|
|
26
|
+
deleteCurrentSelectedWall(): Promise<void>;
|
|
27
|
+
activateFirstTimeRoomBehavior(): void;
|
|
28
|
+
deactivateFirstTimeRoomBehavior(): void;
|
|
29
|
+
private _expandInteraction;
|
|
30
|
+
startConfiguring(embeddingCallbacks: ExposedCallbacks): Promise<void>;
|
|
31
|
+
formatCartItemCount(cartItemsLength: number): string;
|
|
32
|
+
showBack(): any;
|
|
33
|
+
preparePartList(buttonAction: number): Promise<void>;
|
|
34
|
+
private _toggleAction;
|
|
35
|
+
switchProduct(): Promise<void>;
|
|
36
|
+
swapObject(api: RoomlePlanner, planElement: PlanElementViewModel, itemId: string): Promise<Nullable<number>>;
|
|
37
|
+
popSidebar(): void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Nullable } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const isIOs: () => boolean;
|
|
4
|
+
export declare function hasARQuicklook(): boolean | null;
|
|
5
|
+
export declare const isInAppBrowser: () => Nullable<boolean>;
|
|
6
|
+
export declare const isAndroid: () => boolean;
|
|
7
|
+
export declare const deviceSupportsAR: () => boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Analytics } from '../plugins/analytics';
|
|
2
|
+
import { SdkConnector } from '../../configurator/business-logic/sdk-connector';
|
|
3
|
+
|
|
4
|
+
export declare const loadVariant: (id: string, applyCurrentGlobalParameters: boolean | undefined, sdkConnector: SdkConnector, analytics?: Analytics) => Promise<void>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UiInitData } from '../embedding/types';
|
|
2
|
+
import { RoomleSdkWrapper } from '../business-logic/roomle-sdk-wrapper';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{
|
|
5
|
+
initData: UiInitData;
|
|
6
|
+
sdkWrapper: RoomleSdkWrapper;
|
|
7
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
8
|
+
initData: UiInitData;
|
|
9
|
+
sdkWrapper: RoomleSdkWrapper;
|
|
10
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as RapiAccess } from '@roomle/web-sdk/lib/definitions/common-core/src/rapi-access';
|
|
2
|
+
import { GlbViewer } from '@roomle/web-sdk/lib/definitions/glb-viewer-core/src/glb-viewer';
|
|
3
|
+
import { Configurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/configurator';
|
|
4
|
+
import { Nullable } from '../../common/utils/types';
|
|
5
|
+
import { UiInitData } from '../embedding/types';
|
|
6
|
+
import { GlobalInitDataDefinition } from '@roomle/web-sdk/lib/definitions/common-core/src/utils/shims';
|
|
7
|
+
import { Planner } from '@roomle/web-sdk/lib/definitions/planner-core/src/planner';
|
|
8
|
+
import { GlobalCallback } from '@roomle/web-sdk/lib/definitions/common-core/src/services/global-callback';
|
|
9
|
+
import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
10
|
+
import { default as IdbManager } from '@roomle/web-sdk/lib/definitions/common-core/src/services/idb-manager';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* We use this class in a plugin so we
|
|
14
|
+
* can rely on DI to change it during testing
|
|
15
|
+
*/
|
|
16
|
+
export declare class RoomleSdkWrapper {
|
|
17
|
+
private _configuratorInstance;
|
|
18
|
+
private _viewerInstance;
|
|
19
|
+
private _plannerInstance;
|
|
20
|
+
private _currentInstance;
|
|
21
|
+
get hasPlanner(): boolean;
|
|
22
|
+
getConfigurator(element: HTMLElement, initData?: UiInitData): Promise<Configurator>;
|
|
23
|
+
getConfiguratorApi(element: HTMLElement, initData?: UiInitData): Promise<RoomleConfigurator>;
|
|
24
|
+
getGlbViewer(element: HTMLElement, initData?: UiInitData): Promise<GlbViewer>;
|
|
25
|
+
getPlanner(element: HTMLElement, initData?: UiInitData): Promise<Planner>;
|
|
26
|
+
getRapiAccess(): Promise<RapiAccess>;
|
|
27
|
+
getGlobalCallback(): Promise<GlobalCallback>;
|
|
28
|
+
getStorage(): Nullable<IdbManager>;
|
|
29
|
+
setGlobalInitData(initData: Nullable<GlobalInitDataDefinition>): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
2
|
+
import { Nullable } from '../../common/utils/types';
|
|
3
|
+
import { UiInitData } from '../embedding/types';
|
|
4
|
+
import { StoreState } from '../../common/store';
|
|
5
|
+
import { KernelParameter } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
6
|
+
import { Store } from 'vuex';
|
|
7
|
+
import { RoomleSdkWrapper } from './roomle-sdk-wrapper';
|
|
8
|
+
import { Analytics } from '../../common/plugins/analytics';
|
|
9
|
+
import { UiCallbacks } from './ui-callback';
|
|
10
|
+
import { Connector } from '../../common/business-logic/connector';
|
|
11
|
+
import { default as EventEmitter } from '../../common/business-logic/event-emitter';
|
|
12
|
+
|
|
13
|
+
export declare class SdkConnectorConfigurator extends Connector {
|
|
14
|
+
private _configurator;
|
|
15
|
+
private _initWaiters;
|
|
16
|
+
private _store;
|
|
17
|
+
private _analytics;
|
|
18
|
+
private _eventEmitter;
|
|
19
|
+
private _initData;
|
|
20
|
+
private _previousParameters;
|
|
21
|
+
private _uiCallbacks;
|
|
22
|
+
constructor(store: Store<StoreState>, analytics: Nullable<Analytics>, eventEmitter: EventEmitter);
|
|
23
|
+
get api(): Promise<RoomleConfigurator>;
|
|
24
|
+
init(sdkWrapper: RoomleSdkWrapper, element: HTMLElement, initData: UiInitData): Promise<void>;
|
|
25
|
+
initConfigurator(configurator: RoomleConfigurator): Promise<void>;
|
|
26
|
+
setParameter(parameter: KernelParameter, value: string, isRaw?: boolean): Promise<void>;
|
|
27
|
+
setPrice(currencySymbol: string, price: number): void;
|
|
28
|
+
addUiCallback(listener: UiCallbacks): void;
|
|
29
|
+
removeUiCallback(listener: UiCallbacks): void;
|
|
30
|
+
private _checkForLocallySavedConfiguration;
|
|
31
|
+
saveConfigurationToIdb(): Promise<void>;
|
|
32
|
+
private _getKeyForIdb;
|
|
33
|
+
private _pruneLocallySavedPlans;
|
|
34
|
+
private _updateParameters;
|
|
35
|
+
private _dispatchNotificationOnGlobalParamChange;
|
|
36
|
+
private _updateParameterGroups;
|
|
37
|
+
private _updateAddons;
|
|
38
|
+
private _checkParameterGroups;
|
|
39
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { Store } from 'vuex';
|
|
2
|
+
import { StoreState } from '../../common/store';
|
|
3
|
+
import { Nullable } from '../../common/utils/types';
|
|
4
|
+
import { KernelParameter, KernelPartList, RuntimeId, UiPossibleChildTag } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
5
|
+
import { default as ConfiguratorUiCallbacks } from '@roomle/web-sdk/lib/definitions/configurator-core/src/services/configurator-ui-callback';
|
|
6
|
+
import { Analytics } from '../../common/plugins/analytics';
|
|
7
|
+
import { RoomleSdkWrapper } from './roomle-sdk-wrapper';
|
|
8
|
+
import { default as RoomleGLBViewer } from '@roomle/web-sdk/lib/definitions/glb-viewer-core/src/roomle-glb-viewer';
|
|
9
|
+
import { default as RapiAccess } from '@roomle/web-sdk/lib/definitions/common-core/src/rapi-access';
|
|
10
|
+
import { MessageHandler } from '../../../packages/common/src/utils/message-handler';
|
|
11
|
+
import { ExposedCallbacks } from '../embedding/exposed-callbacks';
|
|
12
|
+
import { UiInitData } from '../embedding/types';
|
|
13
|
+
import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
14
|
+
import { SdkConnectorConfigurator } from './sdk-connector-configurator';
|
|
15
|
+
import { SdkConnectorViewer } from '../../viewer/business-logic/sdk-connector-viewer';
|
|
16
|
+
import { SdkConnectorPlanner } from '../../planner/business-logic/sdk-connector-planner';
|
|
17
|
+
import { RapiConfigurationEnhanced, RapiPlan, RapiPlanSnapshotGetData } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
18
|
+
import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
19
|
+
import { UiCallbacks } from './ui-callback';
|
|
20
|
+
import { Base64Image } from '@roomle/web-sdk/lib/definitions/common-core/src/common-interfaces';
|
|
21
|
+
import { default as RoomlePlannerUiCallback } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner-ui-callback';
|
|
22
|
+
import { default as AsyncGuard } from '../../common/utils/async-guard';
|
|
23
|
+
import { default as EventEmitter } from '../../common/business-logic/event-emitter';
|
|
24
|
+
import { Translator } from '../../common/composables/use-intl';
|
|
25
|
+
import { Libs } from '../plugins/libs-plugin';
|
|
26
|
+
|
|
27
|
+
export declare enum SDK_MODULES {
|
|
28
|
+
VIEWER = 0,
|
|
29
|
+
CONFIGURATOR = 1,
|
|
30
|
+
PLANNER = 2
|
|
31
|
+
}
|
|
32
|
+
export interface Selectable {
|
|
33
|
+
key: string;
|
|
34
|
+
}
|
|
35
|
+
export interface UiPossibleChildTagWithKey extends UiPossibleChildTag {
|
|
36
|
+
key: string;
|
|
37
|
+
}
|
|
38
|
+
export type LoadResponse = PartlistResponse | void;
|
|
39
|
+
export interface PartlistResponse {
|
|
40
|
+
partList: KernelPartList;
|
|
41
|
+
}
|
|
42
|
+
export declare const getSelectableEntry: (selected: Selectable, data: Selectable[]) => Nullable<Selectable>;
|
|
43
|
+
export declare const REGISTERED_CALLBACKS: Map<keyof CallbackApi, boolean>;
|
|
44
|
+
export type CallbackApi = ConfiguratorUiCallbacks & RoomlePlannerUiCallback;
|
|
45
|
+
export declare class SdkConnector {
|
|
46
|
+
protected loadInProgress: boolean;
|
|
47
|
+
protected someLoadDone: boolean;
|
|
48
|
+
protected isInitialized: AsyncGuard<void>;
|
|
49
|
+
private _store;
|
|
50
|
+
private _loadWaiters;
|
|
51
|
+
private _analytics;
|
|
52
|
+
private _sdkWrapper;
|
|
53
|
+
private _messageHandlers;
|
|
54
|
+
private _embeddingCallbacks;
|
|
55
|
+
private _initWaitersConfiguratorConnector;
|
|
56
|
+
private _initWaitersViewerConnector;
|
|
57
|
+
private _initWaitersPlannerConnector;
|
|
58
|
+
private _waitForCanvasElementCallback;
|
|
59
|
+
private _canvasElement;
|
|
60
|
+
private _configuratorSettingsCache;
|
|
61
|
+
private _connectorConfigurator;
|
|
62
|
+
private _connectorViewer;
|
|
63
|
+
private _connectorPlanner;
|
|
64
|
+
private _eventEmitter;
|
|
65
|
+
private _intl;
|
|
66
|
+
private _libs;
|
|
67
|
+
get isE2E(): boolean;
|
|
68
|
+
get configuratorConnector(): Promise<SdkConnectorConfigurator>;
|
|
69
|
+
get viewerConnector(): Promise<SdkConnectorViewer>;
|
|
70
|
+
get plannerConnector(): Promise<SdkConnectorPlanner>;
|
|
71
|
+
get configuratorApi(): Promise<RoomleConfigurator>;
|
|
72
|
+
get plannerApi(): Promise<RoomlePlanner>;
|
|
73
|
+
get viewerApi(): Promise<RoomleGLBViewer>;
|
|
74
|
+
constructor(sdkWrapper: RoomleSdkWrapper, store: Store<StoreState>, analytics: Analytics, embeddingCallbacks: ExposedCallbacks, eventEmitter: EventEmitter, intl: Translator, libs: Libs);
|
|
75
|
+
createExposedApi(module: SDK_MODULES, mainMessageHandler: MessageHandler, eventEmitter: EventEmitter): Promise<void>;
|
|
76
|
+
initialized(): void;
|
|
77
|
+
getRapiAccess(): Promise<RapiAccess>;
|
|
78
|
+
waitForLoad(): Promise<Nullable<LoadResponse>>;
|
|
79
|
+
goBack(): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated use .configuratorConnector.then((connector) => connector.addUiCallback(listener))
|
|
82
|
+
* @param listener
|
|
83
|
+
*/
|
|
84
|
+
addUiCallback(listener: UiCallbacks): void;
|
|
85
|
+
/**
|
|
86
|
+
* @deprecated use configuratorConnector.then((connector) => connector.removeUiCallback(listener))
|
|
87
|
+
* @param listener
|
|
88
|
+
*/
|
|
89
|
+
removeUiCallback(listener: UiCallbacks): void;
|
|
90
|
+
setParameter(parameter: KernelParameter, value: string, isRaw?: boolean): Promise<void>;
|
|
91
|
+
hasActivePackage(): Promise<boolean>;
|
|
92
|
+
isCorrectConfiguratorDomain(configuratorId: string): Promise<boolean>;
|
|
93
|
+
private _createPlanAndSelectObj;
|
|
94
|
+
/**
|
|
95
|
+
* Load a object which can be one of the following:
|
|
96
|
+
* - Component (use your component id and prefix it with 'component@', e.g. component@demoCatalogId:externalMeshes)
|
|
97
|
+
* - Plan
|
|
98
|
+
* - Static item (e.g. GLB)
|
|
99
|
+
* - Configurable Item
|
|
100
|
+
* - Configuration
|
|
101
|
+
* @param id
|
|
102
|
+
*/
|
|
103
|
+
loadObject(id: string): Promise<Nullable<LoadResponse>>;
|
|
104
|
+
loadStaticItem(id: Nullable<string>): Promise<null>;
|
|
105
|
+
loadPlan(id: Nullable<string>, options?: {
|
|
106
|
+
isObjectId?: boolean;
|
|
107
|
+
doNotFinishLoading?: boolean;
|
|
108
|
+
}): Promise<{
|
|
109
|
+
plan: Nullable<void> /** Nullable void reserved for later, just to indicate that we could also return something about the plan in the future */;
|
|
110
|
+
objectRuntimeId: Nullable<RuntimeId>;
|
|
111
|
+
}>;
|
|
112
|
+
getStorage(): import('@roomle/web-sdk/lib/definitions/common-core/src/services/idb-manager').default;
|
|
113
|
+
saveConfigToIdb(): Promise<void>;
|
|
114
|
+
loadConfiguration(configurationId: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
|
|
115
|
+
loadComponent(componentId: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
|
|
116
|
+
loadSelectedPlanObject(shouldStartConfigure?: boolean): Promise<void>;
|
|
117
|
+
loadConfigurationString(configurationString: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
|
|
118
|
+
loadConfigurableItem(configurableItemId: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
|
|
119
|
+
isIdAGlb(id: string): Promise<boolean>;
|
|
120
|
+
canvasElementReady(element: HTMLElement): void;
|
|
121
|
+
initCanvasElement(module: SDK_MODULES): Promise<void>;
|
|
122
|
+
initConfigurator(): Promise<void>;
|
|
123
|
+
getTenant(): Promise<import('@roomle/web-sdk/lib/definitions/typings/rapi-types').RapiTenant>;
|
|
124
|
+
saveCurrentConfiguration(): Promise<RapiConfigurationEnhanced>;
|
|
125
|
+
giveGaConsent(): void;
|
|
126
|
+
get hasPlanner(): boolean;
|
|
127
|
+
saveCurrentObject(): Promise<RapiPlan | RapiPlanSnapshotGetData | RapiConfigurationEnhanced>;
|
|
128
|
+
preparePerspectiveImage(): Promise<Base64Image>;
|
|
129
|
+
private _finishLoading;
|
|
130
|
+
private _waitForCanvasElement;
|
|
131
|
+
private _needsInit;
|
|
132
|
+
private _fetchVariants;
|
|
133
|
+
private _execLoadingConfiguratorProcess;
|
|
134
|
+
private _startLoading;
|
|
135
|
+
private _selectFirstObjAndStartConfiguring;
|
|
136
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { KernelComponent } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
2
|
+
|
|
3
|
+
export declare class UiCallbacks {
|
|
4
|
+
onSelectionChange: (_selectionMode: string, _isRoot: boolean, _hasChildren: boolean, _components: KernelComponent[]) => any;
|
|
5
|
+
onSelectionCancel: () => any;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
onChangeParameterGroup: () => void;
|
|
3
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
4
|
+
onChangeParameterGroup: () => void;
|
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ToggleCallback } from '../../common/utils/types';
|
|
2
|
+
import { EventBus } from '../../common/business-logic/event-bus';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{
|
|
5
|
+
onToggleExpand: () => void;
|
|
6
|
+
onToggleEvent: EventBus<ToggleCallback>;
|
|
7
|
+
onChangeParameterGroup: () => void;
|
|
8
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
9
|
+
onToggleExpand: () => void;
|
|
10
|
+
onToggleEvent: EventBus<ToggleCallback>;
|
|
11
|
+
onChangeParameterGroup: () => void;
|
|
12
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
onAccept: () => void;
|
|
3
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
4
|
+
onAccept: () => void;
|
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|