@roomle/embedding-lib 5.13.0 → 5.15.0-alpha.1
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 +17 -2
- package/{drag-in-Do47zdKL.mjs → drag-in-C6gLvrDx.mjs} +2 -2
- package/{drag-in-CYmR1HFI.mjs → drag-in-w_TrusdP.mjs} +1 -1
- package/{from-custom-view-DYkvyOw3.mjs → from-custom-view-BEcgFlAL.mjs} +1 -1
- package/{from-custom-view-BVWf7SQ7.mjs → from-custom-view-jmf3K6AT.mjs} +1 -1
- package/from-website-Ckh5GB2h.mjs +4 -0
- package/{from-website-DDMDPp-F.mjs → from-website-VCMg3teu.mjs} +2 -1
- package/package.json +2 -2
- package/packages/common/src/utils/init-data.d.ts +1 -0
- package/packages/embedding-lib/src/connector.d.ts +1 -1
- package/packages/embedding-lib/src/embedding-lib.d.ts +1 -1
- package/roomle-embedding-lib.es.js +9 -8
- package/roomle-embedding-lib.es.min.js +1 -1
- package/roomle-embedding-lib.umd.js +2 -2
- package/roomle-embedding-lib.umd.min.js +3 -3
- package/src/common/business-logic/event-emitter.d.ts +4 -1
- package/src/common/components/collection-view/-utils/collection-view-dynamic-components.d.ts +86 -965
- package/src/common/components/collection-view/CollectionViewElement.vue.d.ts +7 -0
- package/src/common/components/drawer-layout/DrawerElement.vue.d.ts +3 -0
- package/src/common/components/overlays/PartList.vue.d.ts +3 -4
- package/src/common/components/overlays/bottom-bar/CloseView.vue.d.ts +105 -60
- package/src/common/components/overlays/part-list/partlist-setup.d.ts +3 -4
- package/src/common/composables/use-configurator-api.d.ts +2 -2
- package/src/common/composables/use-core-instances.d.ts +2 -2
- package/src/common/composables/use-event-emitter-listener.d.ts +7 -1
- package/src/common/composables/use-open-close-anim.d.ts +9 -0
- package/src/common/composables/use-planner-actions-visibility.d.ts +1 -1
- package/src/common/composables/use-static-item-parameters.d.ts +2 -2
- package/src/common/utils/helper.d.ts +6 -7
- package/src/common/utils/parameters.d.ts +2 -2
- package/src/common/utils/types.d.ts +9 -1
- package/src/common/utils/ui-actions.d.ts +2 -3
- package/src/configurator/business-logic/roomle-sdk-wrapper.d.ts +3 -4
- package/src/configurator/business-logic/sdk-connector-configurator.d.ts +3 -4
- package/src/configurator/business-logic/sdk-connector.d.ts +7 -8
- package/src/configurator/components/Overlays.vue.d.ts +614 -356
- package/src/configurator/components/grid-view/-utils/ExpandedView.vue.d.ts +2 -2
- package/src/configurator/components/grid-view/-utils/GridViewHelper.d.ts +2 -2
- package/src/configurator/components/grid-view/GridView.vue.d.ts +25 -319
- package/src/configurator/components/overlays/DeleteWarning.vue.d.ts +102 -59
- package/src/configurator/components/overlays/ElementDisabled.vue.d.ts +102 -59
- package/src/configurator/components/overlays/GenericError.vue.d.ts +102 -59
- package/src/configurator/components/overlays/NoDocking.vue.d.ts +102 -59
- package/src/configurator/components/overlays/VariantWarning.vue.d.ts +102 -59
- package/src/configurator/components/overlays/ar/OpenAR.vue.d.ts +2 -2
- package/src/configurator/components/parameters/types/MaterialParameter.vue.d.ts +27 -320
- package/src/configurator/components/parameters/types/ProductVariant.vue.d.ts +27 -320
- package/src/configurator/components/parameters/types/ThumbnailsParameter.vue.d.ts +27 -320
- package/src/configurator/components/utils/PopUp.vue.d.ts +42 -72
- package/src/configurator/embedding/exposed-api.d.ts +7 -4
- package/src/configurator/embedding/exposed-callbacks.d.ts +4 -1
- package/src/configurator/embedding/helper.d.ts +4 -3
- package/src/configurator/embedding/types.d.ts +5 -0
- package/src/planner/business-logic/sdk-connector-planner.d.ts +5 -5
- package/src/planner/components/ObjectList.vue.d.ts +4 -2
- package/src/planner/components/PlannerSidebar.vue.d.ts +3 -1
- package/src/planner/components/measurements/MeasurementDisplayComponent.vue.d.ts +4 -0
- package/src/planner/components/measurements/ShowWallAtticMeasurements.vue.d.ts +8 -0
- package/src/planner/components/measurements/utils/AtticLabel.vue.d.ts +24 -0
- package/src/planner/components/measurements/utils/AtticLine.vue.d.ts +26 -0
- package/src/planner/components/overlays/ProductList.vue.d.ts +2 -2
- package/src/planner/components/overlays/ProductSettings.vue.d.ts +3 -4
- package/src/planner/components/overlays/product-list/ProductListEntry.vue.d.ts +2 -2
- package/src/planner/components/overlays/product-list/ProductListType.vue.d.ts +2 -2
- package/src/planner/components/overlays/product-settings/ProductPositions.vue.d.ts +3 -3
- package/src/planner/components/overlays/product-settings/ProductRotation.vue.d.ts +3 -3
- package/src/planner/components/overlays/product-settings/ProductSettingsInfos.vue.d.ts +3 -3
- package/src/planner/components/overlays/product-settings/ProductSize.vue.d.ts +3 -3
- package/src/planner/components/overlays/product-settings/ProductXYZChanger.vue.d.ts +3 -3
- package/src/planner/components/overlays/rooms/ConstructionVariants.vue.d.ts +28 -321
- package/src/planner/components/overlays/rooms/DoorParametersSetting.vue.d.ts +45 -326
- package/src/planner/components/overlays/rooms/ElementLengthScaling.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/FloorColor.vue.d.ts +14 -2
- package/src/planner/components/overlays/rooms/RoomGeneralSettings.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/RoomsList.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/SlopingRoof.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/SlopingRoofDirection.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/SlopingRoofDirectionTooltip.vue.d.ts +2 -0
- package/src/planner/components/overlays/rooms/SlopingRoofTooltip.vue.d.ts +2 -0
- package/src/planner/components/overlays/rooms/WallGeneralSettings.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/WindowParametersSetting.vue.d.ts +3 -4
- package/src/planner/components/utils/AssureConfiguratorHandlers.vue.d.ts +1 -1
- package/src/planner/components/utils/AssureSdkHandlers.vue.d.ts +1 -1
- package/src/planner/utils/planner-sidebar.d.ts +2 -2
- package/from-website-Dx2SUftr.mjs +0 -4
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { CloseReason } from '../../../../common/utils/types';
|
|
2
|
-
import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
1
|
+
import { CloseReason, RoomlePlannerWithExtObjs } from '../../../../common/utils/types';
|
|
3
2
|
import { BUTTON_ACTIONS } from '../../../../configurator/store/ui-state';
|
|
4
3
|
import { PlanInteractionHandler } from '@roomle/web-sdk/lib/definitions/typings/planner';
|
|
5
4
|
|
|
@@ -7,11 +6,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
7
6
|
onClose: (_buttonAction: BUTTON_ACTIONS, _reason: CloseReason) => Promise<void>;
|
|
8
7
|
onToggleExpand?: () => void;
|
|
9
8
|
interactionHandler: PlanInteractionHandler;
|
|
10
|
-
api:
|
|
9
|
+
api: RoomlePlannerWithExtObjs;
|
|
11
10
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
12
11
|
onClose: (_buttonAction: BUTTON_ACTIONS, _reason: CloseReason) => Promise<void>;
|
|
13
12
|
onToggleExpand?: () => void;
|
|
14
13
|
interactionHandler: PlanInteractionHandler;
|
|
15
|
-
api:
|
|
14
|
+
api: RoomlePlannerWithExtObjs;
|
|
16
15
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
16
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
-
configuratorApi: import('vue').ShallowRef<import('
|
|
2
|
+
configuratorApi: import('vue').ShallowRef<import('../../../common/utils/types').RoomleConfiguratorType>;
|
|
3
3
|
}, {}, {
|
|
4
4
|
isLoaded(): boolean;
|
|
5
5
|
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
-
api: import('vue').ShallowRef<import('
|
|
2
|
+
api: import('vue').ShallowRef<import('../../../common/utils/types').RoomlePlannerWithExtObjs>;
|
|
3
3
|
planInteractionHandler: import('vue').ShallowRef<import('@roomle/web-sdk/lib/definitions/typings/planner').PlanInteractionHandler>;
|
|
4
4
|
}, {}, {
|
|
5
5
|
isLoaded(): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { KernelPartList, UiPlanObject } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
2
2
|
import { StoreState } from '../../common/store';
|
|
3
3
|
import { RapiConfiguration, RapiItem } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
4
|
-
import {
|
|
4
|
+
import { RoomlePlannerWithExtObjs } from '../../common/utils/types';
|
|
5
5
|
|
|
6
6
|
export interface XYZCoords {
|
|
7
7
|
x: number;
|
|
@@ -13,4 +13,4 @@ export interface ProductListItem extends UiPlanObject {
|
|
|
13
13
|
runtimeIds?: number[];
|
|
14
14
|
}
|
|
15
15
|
export declare const matchProductListAndQuantity: (productList: UiPlanObject[]) => ProductListItem[];
|
|
16
|
-
export declare const fillPartList: (data: RapiItem | RapiConfiguration, partList: KernelPartList, hash: string, plannerApi:
|
|
16
|
+
export declare const fillPartList: (data: RapiItem | RapiConfiguration, partList: KernelPartList, hash: string, plannerApi: RoomlePlannerWithExtObjs, store: Store<StoreState>) => Promise<void>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var P=Object.defineProperty,R=(r,e,t)=>e in r?P(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,g=(r,e,t)=>R(r,typeof e!="symbol"?e+"":e,t);import{g as B,e as D,a as x,i as C,T as M}from"./touch-drag-C1SsZtt4.mjs";import{R as _,a as I,b as O,c as L,d as N,e as E,f as b,g as F,h as G,i as v,j as A,k as Y}from"./drag-in-CYmR1HFI.mjs";const w=(r,e,t=0,i=0)=>{const s=e.x+e.width+t,o=e.x-t,l=e.y+e.height+i,a=e.y-i,{x:h,y:n}=r;return h>=o&&h<=s&&n>=a&&n<=l},T=(r,e,t,i=0,s=0)=>{if(!(!t||!t.hiddenIn&&!t.visibleIn))return t.visibleIn?w({x:r,y:e},t.visibleIn,i,s):t.hiddenIn?!w({x:r,y:e},t.hiddenIn,-i,-s):!1},k=()=>{if(!document.getElementById(I)){const r=document.createElement("style");r.type="text/css",r.id=I,r.innerHTML=`
|
|
2
|
-
${O}
|
|
3
|
-
${L}
|
|
4
|
-
`,document.head.appendChild(r)}},U=({x:r,y:e},t)=>{var i,s,o,l,a,h;let n=document.getElementById(_);if(!n){if(n=document.createElement("div"),(i=t.ghost)!=null&&i.element)n.appendChild(t.ghost.element);else{const d=document.createElement("img");d.src=((s=t.ghost)==null?void 0:s.url)||N,d.width=((o=t.ghost)==null?void 0:o.width)||E,d.height=((l=t.ghost)==null?void 0:l.height)||b,n.appendChild(d)}n.id=_,n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.willChange="transform",n.style.transform="translate3d(0, 0, 0)",n.style.zIndex="9999",n.style.opacity="0.5",T(r,e,t.ghost||{},(a=t.settings)==null?void 0:a.dragInOverlapX,(h=t.settings)==null?void 0:h.dragInOverlapY)||(n.style.display="none"),n.style.pointerEvents="none",document.body.appendChild(n)}},X=({x:r,y:e},t)=>{var i,s,o,l;const a=document.getElementById(_);if(!a)return;let h=(i=t.ghost)==null?void 0:i.width,n=(s=t.ghost)==null?void 0:s.height;typeof h>"u"&&(h=a.getBoundingClientRect().width||E),typeof n>"u"&&(n=a.getBoundingClientRect().height||b);const d=r-h/2,c=e-n/2;a.style.transform=`translate3d(${d}px, ${c}px, 0)`,t.ghost&&(T(r,e,t.ghost,(o=t.settings)==null?void 0:o.dragInOverlapX,(l=t.settings)==null?void 0:l.dragInOverlapY)?a.style.animation!=F&&(a.style.animation=F):a.style.animation!=G&&(a.style.animation=G))};class ${constructor(e=null){g(this,"_dragGhostAnimationFrameId",null),g(this,"_dragGhostRemoveAnimationFrameId",null),g(this,"_dragGhostElement",null),this._dragGhostElement=e}updateDragGhost(e,t,i){var s;this._dragGhostRemoveAnimationFrameId&&(cancelAnimationFrame(this._dragGhostRemoveAnimationFrameId),this._dragGhostRemoveAnimationFrameId=null),!((s=i.ghost)!=null&&s.external)&&i.ghost&&(this._dragGhostAnimationFrameId||(this._dragGhostAnimationFrameId=requestAnimationFrame(()=>{k();const o={x:e,y:t};!i.ghost&&this._dragGhostElement&&(i.ghost={}),i.ghost&&!i.ghost.element&&this._dragGhostElement&&(i.ghost.element=this._dragGhostElement),U(o,i),X(o,i),this._dragGhostAnimationFrameId=null})))}removeDragGhost(){this._dragGhostAnimationFrameId&&(cancelAnimationFrame(this._dragGhostAnimationFrameId),this._dragGhostAnimationFrameId=null),this._dragGhostRemoveAnimationFrameId||(this._dragGhostRemoveAnimationFrameId=requestAnimationFrame(()=>{const e=document.getElementById(_);e&&document.body.removeChild(e),this._dragGhostRemoveAnimationFrameId=null}))}}class q{constructor(e,t,i){g(this,"_options",{}),g(this,"_instance"),g(this,"_mainDomElement"),g(this,"_currentDrag",{}),g(this,"_currentTouch",null),g(this,"_firefoxDragPosition",{x:0,y:0}),g(this,"_onBeforeUpdateDrag",()=>({})),g(this,"isDragging",!1),g(this,"_firefoxFallback",s=>{if(!this._currentDrag.event)return;const o=s||window.event;this._firefoxDragPosition.x=o.pageX||0,this._firefoxDragPosition.y=o.pageY||0}),this._instance=e,this._mainDomElement=t,this._options=i||{},this._firefoxFallback=this._firefoxFallback.bind(this),document.addEventListener("dragover",this._firefoxFallback)}beforeUpdateGhost(e){this._onBeforeUpdateDrag=e}dragStart(e,t,i="rml_id"){const s=this._mainDomElement.parentNode;if(B(s).position!=="relative"){console.warn("Parent of iframe should have position relative, otherwise drag-in can not detect the x/y coordinates correctly");return}this._mainDomElement.style.pointerEvents="none";let o=s.querySelector("."+v);o||(o=document.createElement("div"),o.classList.add(v),s.appendChild(o)),o.classList.remove(A.DISPLAY_NONE),t.target.getAttribute("draggable")||console.warn(`Draggable not detected correctly! Did you add draggable="true" to the element? In Sarafi only 'draggable' is too less`);const l=s.querySelector("."+Y);this._currentDrag.event=t;const a=t.target,h=a.cloneNode(),n=a.getBoundingClientRect();h.style.width=`${n.width}px`,h.style.height=`${n.height}px`,this._currentDrag.ghost=new $(h),this._currentDrag.offset||(this._currentDrag.offset={x:0,y:0});const{clientX:d,clientY:c}=D(t,this._firefoxDragPosition);this._currentDrag.offset.x=d-n.left,this._currentDrag.offset.y=c-n.top,t instanceof DragEvent&&t.dataTransfer&&t.dataTransfer.setDragImage&&t.dataTransfer.setDragImage(l,0,0);const{x:f,y:m}=x(s,this._currentDrag.event||t,this._firefoxDragPosition),p=Math.max(1,f),y=Math.max(1,m);this.isDragging=!0,this._instance.dragInObject(e,p,y,i)}dragUpdate(e){var t;const i=this._mainDomElement.parentNode,{x:s,y:o}=x(i,e,this._firefoxDragPosition);if(s===0&&o===0)return;const l=Math.max(1,s),a=Math.max(1,o);if(l===1&&a===1)return;let h=l,n=a;if(C(e)){const u=((t=this._options.settings)==null?void 0:t.fingerSize)||0;h=Math.max(2,l+u),n=Math.max(2,a-u)}const{x:d,y:c,options:f}=this._onBeforeUpdateDrag(h,n,{}),m=f||{settings:{},ghost:{}};m.ghost||(m.ghost={}),m.ghost.visibleIn&&m.ghost.hiddenIn||(m.ghost.hiddenIn=this._mainDomElement.getBoundingClientRect());const p=typeof d=="number"?d:h,y=typeof c=="number"?c:n;if(this._currentDrag.ghost){const{clientX:u,clientY:S}=D(e,this._firefoxDragPosition);this._currentDrag.ghost.updateDragGhost(u,S,m)}this._instance.updateDrag(p,y,{})}dragEnd(){this._mainDomElement.style.pointerEvents="all";const e=this._mainDomElement.parentNode;this.isDragging=!1,this._instance.dragInObjectEnd(),this._currentDrag.ghost&&(this._currentDrag.ghost.removeDragGhost(),this._currentDrag.ghost=null),this._currentDrag={},this._firefoxDragPosition={x:0,y:0};const t=e.querySelector("."+v);t&&t.classList.add(A.DISPLAY_NONE)}touchStart(e,t,i="rml_id"){var s,o,l,a;t.preventDefault();const h=(d,c)=>{this.dragStart(e,c,i)},n={};typeof((o=(s=this._options)==null?void 0:s.settings)==null?void 0:o.touchDragDelay)=="number"&&(n.delay=this._options.settings.touchDragDelay),(a=(l=this._options)==null?void 0:l.settings)!=null&&a.touchDragEpsilon&&(n.epsilon=this._options.settings.touchDragEpsilon),this._currentTouch=new M(void 0,{onTouchDragStart:h},n),this._currentTouch.onStart(t)}touchMove(e){this._currentTouch&&this._currentTouch.onMove(e),this._currentDrag.event&&this.dragUpdate(e)}touchEnd(){this._currentTouch&&this._currentTouch.onEnd(),this._currentTouch=null,this.dragEnd()}dispose(){document.removeEventListener("dragover",this._firefoxFallback)}releaseInput(e){}}export{q as DragInFromWebsiteStrategy};
|