@roomle/embedding-lib 5.26.0-alpha.2 → 5.26.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 +10 -5
- package/{drag-in-DuufO5eB.mjs → drag-in-BEjBh6zz.mjs} +2 -2
- package/{drag-in-DTA1FCDc.mjs → drag-in-BmoiEqfA.mjs} +1 -1
- package/{from-custom-view-BdnViEhf.mjs → from-custom-view-CobBUshK.mjs} +3 -3
- package/from-custom-view-fYea37BE.mjs +1 -0
- package/{from-website-CktA6Icy.mjs → from-website-C2cG-X9g.mjs} +1 -1
- package/{from-website-CcDHgCCy.mjs → from-website-CDEUbvDF.mjs} +1 -1
- package/package.json +1 -1
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/nobilia-api-options.d.ts +45 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/state.d.ts +11 -5
- package/packages/embedding-lib/src/plugins/strategy/from-custom-view.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/mock/mock-draco-loader.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/mock/mock-idb-manager.d.ts +2 -2
- package/packages/web-sdk/packages/common-core/mock/mock-image-renderer.d.ts +2 -2
- package/packages/web-sdk/packages/common-core/mock/mock-input-event-dispatcher.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/configurator-kernel-access.d.ts +2 -2
- package/packages/web-sdk/packages/common-core/src/main.d.ts +1 -2
- package/packages/web-sdk/packages/common-core/src/rapi-access.d.ts +6 -5
- package/packages/web-sdk/packages/common-core/src/services/hdr-environment-loader.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/utils/enumerable.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/utils/threejs-utils.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/utils/ui-callback.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/view-model/configurator-view-model.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/pass/ao-pass.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/render-pass-manager.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/webgl/scene-manager.d.ts +1 -1
- package/packages/web-sdk/packages/configurator-core/src/roomle-configurator.d.ts +10 -10
- package/packages/web-sdk/packages/homag-intelligence/src/emulator.d.ts +2 -2
- package/packages/web-sdk/packages/homag-intelligence/src/model/oc-scripts-domain.model.d.ts +3 -3
- package/packages/web-sdk/packages/homag-intelligence/src/orders.d.ts +1 -1
- package/packages/web-sdk/packages/material-viewer/src/roomle-material-viewer.d.ts +1 -1
- package/packages/web-sdk/packages/planner-core/src/roomle-planner.d.ts +2 -2
- package/packages/web-sdk/packages/planner-core/src/services/planner-kernel-access.d.ts +4 -4
- package/packages/web-sdk/packages/planner-core/src/webgl/planner-scene-manager.d.ts +2 -2
- package/packages/web-sdk/packages/typings/kernel.d.ts +1 -0
- package/packages/web-sdk/packages/typings/rapi-types.d.ts +11 -10
- package/roomle-embedding-lib.es.js +80 -79
- package/roomle-embedding-lib.es.min.js +1 -1
- package/roomle-embedding-lib.umd.js +2 -2
- package/roomle-embedding-lib.umd.min.js +1 -1
- package/src/common/components/overlays/part-list/partlist-setup.d.ts +2 -1
- package/src/common/utils/helper.d.ts +2 -2
- package/src/common/utils/ui-actions.d.ts +2 -1
- package/src/configurator/business-logic/sdk-connector-configurator.d.ts +2 -1
- package/src/configurator/business-logic/sdk-connector.d.ts +2 -2
- package/src/configurator/components/grid-view/-utils/CollapsedView.vue.d.ts +14 -14
- package/src/configurator/embedding/exposed-api.d.ts +1 -1
- package/src/configurator/embedding/exposed-callbacks.d.ts +1 -1
- package/src/configurator/embedding/types.d.ts +1 -0
- package/src/planner/business-logic/sdk-connector-planner.d.ts +2 -2
- package/src/planner/components/catalog/CatalogBreadcrumb.vue.d.ts +18 -0
- package/src/planner/components/catalog/CatalogEmptyState.vue.d.ts +10 -0
- package/src/planner/components/catalog/CatalogLevels.vue.d.ts +20 -0
- package/src/planner/components/catalog/CatalogNavigation.vue.d.ts +42 -0
- package/src/planner/components/catalog/CatalogProducts.vue.d.ts +24 -0
- package/src/planner/components/catalog/ProductCard.vue.d.ts +14 -0
- package/src/planner/components/catalog/ProductGrid.vue.d.ts +14 -0
- package/src/planner/components/overlays/RoomSidebar.vue.d.ts +2 -0
- package/src/planner/components/overlays/rooms/DoorParametersSetting.vue.d.ts +2 -0
- package/src/planner/components/overlays/rooms/WindowParametersSetting.vue.d.ts +2 -0
- package/from-custom-view-DIYHP31u.mjs +0 -1
- package/packages/web-sdk/packages/configurator-core/src/utils/test-helpers/async-test-helper.d.ts +0 -1
- package/src/common/store/common-ui-state.d.ts +0 -1
|
@@ -7,11 +7,13 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
7
7
|
onCollapse?: () => void;
|
|
8
8
|
interactionHandler: PlanInteractionHandler;
|
|
9
9
|
api: RoomlePlannerWithExtObjs;
|
|
10
|
+
onToggleExpand?: () => void;
|
|
10
11
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
11
12
|
onClose: (_buttonAction: BUTTON_ACTIONS, _reason: CloseReason) => Promise<void>;
|
|
12
13
|
onExpand?: () => void;
|
|
13
14
|
onCollapse?: () => void;
|
|
14
15
|
interactionHandler: PlanInteractionHandler;
|
|
15
16
|
api: RoomlePlannerWithExtObjs;
|
|
17
|
+
onToggleExpand?: () => void;
|
|
16
18
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
19
|
export default _default;
|
|
@@ -7,11 +7,13 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
7
7
|
onCollapse?: () => void;
|
|
8
8
|
interactionHandler: PlanInteractionHandler;
|
|
9
9
|
api: RoomlePlannerWithExtObjs;
|
|
10
|
+
onToggleExpand?: () => void;
|
|
10
11
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
11
12
|
onClose: (_buttonAction: BUTTON_ACTIONS, _reason: CloseReason) => Promise<void>;
|
|
12
13
|
onExpand?: () => void;
|
|
13
14
|
onCollapse?: () => void;
|
|
14
15
|
interactionHandler: PlanInteractionHandler;
|
|
15
16
|
api: RoomlePlannerWithExtObjs;
|
|
17
|
+
onToggleExpand?: () => void;
|
|
16
18
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
19
|
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as t,e,T as r,i as s,b as a,c as i,d as n}from"./touch-drag-B5zCf87J.mjs";import{f as o,e as h,d as g}from"./drag-in-DTA1FCDc.mjs";const _=t=>{t.preventDefault(),t.stopPropagation()};class l{_startX=0;_startY=0;_lastX=0;_lastY=0;_epsilon;_isWaiting=!1;_onCustomDragStart;constructor({onCustomDragStart:e},r={}){this._epsilon="number"==typeof r.epsilon?r.epsilon:t,this._onCustomDragStart=e}onMove(t){this._lastX=t.clientX,this._lastY=t.clientY,this._isWaiting&&((t,e)=>{const r=this._lastX-t,s=this._lastY-e;return Math.sqrt(r*r+s*s)})(this._startX,this._startY)>this._epsilon&&(this._onCustomDragStart(t),this._isWaiting=!1)}onStart(t){this._startX=t.clientX,this._startY=t.clientY,this.onMove(t),this._isWaiting=!0}onEnd(){this._reset()}_reset(){this._startX=0,this._startY=0,this._lastX=0,this._lastY=0,this._isWaiting=!1}}const u="data-rml-old-draggable",c=(e,r)=>{const o=s(e),h={delay:o?i:n,epsilon:o?a:t};if(!r)return h;if(!(o||e instanceof MouseEvent))return h;const{delayKey:g,epsilonKey:_}=o?{delayKey:"touchDragDelay",epsilonKey:"touchDragEpsilon"}:{delayKey:"customDragDelay",epsilonKey:"customDragEpsilon"};return"number"==typeof r[g]&&(h.delay=r.touchDragDelay),"number"==typeof r[_]&&(h.epsilon=r.touchDragEpsilon),h};class d{_options={};_instance;_mainDomElement;_viewName;_currentCustomDrag=null;_currentBb=null;_startTarget=null;_onBeforeUpdateDrag=()=>({});isDragging=!1;constructor(t,e,r){this._instance=t,this._options=e||{},this._viewName=r,this._mainDomElement=mainDomElement,this._mainDomElement.parentElement?.addEventListener("dragleave",()=>{this._instance.cancelDragIn()})}beforeUpdateGhost(t){this._onBeforeUpdateDrag=t}async _dragStart(t,r,s="rml_id"){var a;this._startTarget&&(this._startTarget.style.pointerEvents="none",this._startTarget.style.userSelect="none",this._startTarget.setAttribute(u,this._startTarget.draggable.toString()),this._startTarget.draggable=!1,this._startTarget.removeEventListener("dragstart",_),this._startTarget.addEventListener("dragstart",_)),this._currentBb=await this._instance.getBoundingClientRect((a=this._viewName,`[data-rml-custom-view="${a}"]`));const{clientX:i,clientY:n}=e(r),o=this._currentBb.x+i,h=this._currentBb.y+n;this.isDragging=!0,this._instance.dragInObject(t,o,h,s)}_dragUpdate(t){if(document.body.focus(),this._currentCustomDrag&&this._currentCustomDrag.onMove(t),!this._currentBb||!this.isDragging)return;const{clientX:r,clientY:s}=e(t),{url:a,width:i,height:n}=(t=>{let e="",r=h,s=o;if(!t)return{url:g,width:r,height:s};const a=t;if(a instanceof HTMLElement){const t=a.getBoundingClientRect(),i=a.getAttribute("data-rml-ghost-url"),n=a.getAttribute("data-rml-ghost-width"),o=a.getAttribute("data-rml-ghost-height");i?e=i:!i&&a instanceof HTMLImageElement&&a.src&&(e=a.src),e?(r=t.width,s=t.height):e=g,r=n?parseInt(n,10):r,s=o?parseInt(o,10):s}return{url:e||g,width:r,height:s}})(this._startTarget),_=this._currentBb.x+r,l=this._currentBb.y+s,u=this._options||{},c={ghost:{visibleIn:{x:this._currentBb.x-(u.dragInOverlapX||0),y:this._currentBb.y+(u.dragInOverlapY||0),width:this._currentBb.width+(u.dragInOverlapX||0),height:this._currentBb.height+(u.dragInOverlapY||0)},url:a,width:i,height:n},mode:"custom-view"},{x:d,y:m,options:p}=this._onBeforeUpdateDrag(_,l,c),D="number"==typeof d?d:_,b="number"==typeof m?m:l,y=p||c;this._instance.updateDrag(D,b,y)}_dragEnd(){this._currentCustomDrag&&this._currentCustomDrag.onEnd(),this._currentCustomDrag=null,this.isDragging=!1,this._currentBb=null,this._resetStartTarget(),this._instance.enableEvents(),this._instance.dragInObjectEnd()}dragStart(t,e,a){this._instance.disableEvents(),this._startTarget=e.target,this._currentCustomDrag=s(e)?new r(void 0,{onTouchDragStart:(e,r)=>{this._dragStart(t,r,a)}},c(e,this._options)):new l({onCustomDragStart:e=>this._dragStart(t,e,a)},c(e,this._options)),this._currentCustomDrag.onStart(e)}dragEnd(){this._dragEnd()}dragUpdate(t){this._dragUpdate(t)}touchStart(t,e,r="rml_id"){this.dragStart(t,e,r)}touchMove(t){this.dragUpdate(t)}touchEnd(){this.dragEnd()}dispose(){}_resetStartTarget(){this._startTarget&&(this._startTarget.style.pointerEvents="",this._startTarget.style.userSelect="",this._startTarget.draggable="true"===this._startTarget.getAttribute(u),this._startTarget.removeAttribute(u),this._startTarget.removeEventListener("dragstart",_))}releaseInput(t){this._currentCustomDrag&&this._currentCustomDrag.onEnd(),this._resetStartTarget()}}export{d as DragInFromCustomViewStrategy};
|
package/packages/web-sdk/packages/configurator-core/src/utils/test-helpers/async-test-helper.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function (test: (reject: (error: Error) => void) => void): Promise<unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|