@roomle/embedding-lib 5.25.0-alpha.6 → 5.25.0-alpha.8
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 +2 -2
- package/package.json +1 -1
- package/packages/embedding-lib/src/examples/homag-intelligence-example.d.ts +9 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/create-catalog.d.ts +1 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/default-api-options.d.ts +43 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/dom-helper.d.ts +13 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/drag-in.d.ts +3 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/overlay.d.ts +2 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/state.d.ts +14 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/util.d.ts +19 -0
- package/packages/web-sdk/packages/common-core/src/main.d.ts +2 -2
- package/packages/web-sdk/packages/common-core/src/utils/init-data.d.ts +2 -0
- package/packages/web-sdk/packages/common-core/src/utils/shims.d.ts +6 -0
- package/packages/web-sdk/packages/configurator-core/src/configurator.d.ts +1 -1
- package/packages/web-sdk/packages/configurator-core/src/utils/component-raycast-helper.d.ts +1 -1
- package/packages/web-sdk/packages/glb-viewer-core/src/glb-viewer.d.ts +1 -1
- package/packages/web-sdk/packages/homag-intelligence/src/api.d.ts +22 -0
- package/packages/web-sdk/packages/homag-intelligence/src/callbacks.d.ts +37 -0
- package/packages/web-sdk/packages/homag-intelligence/src/emulator.d.ts +101 -0
- package/packages/web-sdk/packages/homag-intelligence/src/homag-intelligence.d.ts +28 -0
- package/packages/web-sdk/packages/homag-intelligence/src/loader.d.ts +24 -0
- package/packages/web-sdk/packages/homag-intelligence/src/model/oc-scripts-domain.model.d.ts +312 -0
- package/packages/web-sdk/packages/homag-intelligence/src/orders.d.ts +39 -0
- package/packages/web-sdk/packages/homag-intelligence/src/rml-plugin.d.ts +3 -0
- package/packages/web-sdk/packages/homag-intelligence/src/util.d.ts +5 -0
- package/packages/web-sdk/packages/material-viewer/src/material-viewer.d.ts +1 -1
- package/packages/web-sdk/packages/planner-core/src/planner.d.ts +1 -1
- package/packages/web-sdk/packages/planner-core/src/roomle-planner.d.ts +8 -1
- package/packages/web-sdk/packages/tools-core/src/tools-core.d.ts +1 -1
- package/packages/web-sdk/packages/typings/external-objects.d.ts +8 -0
- package/packages/web-sdk/packages/typings/planner.d.ts +1 -1
- package/src/common/components/collection-view/-utils/collection-view-dynamic-components.d.ts +1 -1
- package/src/common/composables/use-configurator-api.d.ts +1 -1
- package/src/common/composables/use-core-instances.d.ts +1 -1
- package/src/common/composables/use-static-item-parameters.d.ts +1 -1
- package/src/common/utils/helper.d.ts +1 -1
- package/src/common/utils/parameters.d.ts +0 -1
- package/src/common/utils/types.d.ts +0 -7
- package/src/configurator/business-logic/roomle-sdk-wrapper.d.ts +2 -1
- package/src/configurator/embedding/exposed-api.d.ts +2 -1
- package/src/planner/components/overlays/ProductSettings.vue.d.ts +2 -2
- package/src/planner/components/overlays/product-settings/ProductPositions.vue.d.ts +2 -2
- package/src/planner/components/overlays/product-settings/ProductRotation.vue.d.ts +2 -2
- package/src/planner/components/overlays/product-settings/ProductSettingsInfos.vue.d.ts +2 -2
- package/src/planner/components/overlays/product-settings/ProductSize.vue.d.ts +2 -2
- package/src/planner/components/overlays/product-settings/ProductXYZChanger.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/ConstructionVariants.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/DoorParametersSetting.vue.d.ts +7 -7
- package/src/planner/components/overlays/rooms/ElementLengthScaling.vue.d.ts +1 -1
- package/src/planner/components/overlays/rooms/WindowParametersSetting.vue.d.ts +2 -2
- 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 +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [5.25.0-alpha.
|
|
1
|
+
## [5.25.0-alpha.8](https://github.com/roomle-dev/roomle-ui/compare/embedding-lib-v5.25.0-alpha.7...embedding-lib-v5.25.0-alpha.8) (2025-08-07)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* make material transition async again ([533feff](https://github.com/roomle-dev/roomle-ui/commit/533feff2f59ba75533c9be9b4a548e78940cb226))
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createCatalog: (articleCatalog: HTMLElement, draggable?: boolean) => Promise<void>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
enableArrangementCorrection: boolean;
|
|
3
|
+
uiConfiguration: {
|
|
4
|
+
userRight: string;
|
|
5
|
+
materialAttributes: string[];
|
|
6
|
+
attributesVisibleInPlanner: string[];
|
|
7
|
+
attributeGroupsVisibleInPlanner: any[];
|
|
8
|
+
showPossibleSubModules: boolean;
|
|
9
|
+
animatedOpenClose: boolean;
|
|
10
|
+
showThumbnails: boolean;
|
|
11
|
+
};
|
|
12
|
+
materialConfiguration: {
|
|
13
|
+
defaultMaterial: string;
|
|
14
|
+
replaceUnmappedMaterialsWithDefault: boolean;
|
|
15
|
+
materialMapping: {
|
|
16
|
+
materialName: string;
|
|
17
|
+
materialId: string;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
debugConfiguration: {
|
|
21
|
+
createDebugGeometry: boolean;
|
|
22
|
+
};
|
|
23
|
+
tecConfigInfo: {
|
|
24
|
+
baseUrlDebug: string;
|
|
25
|
+
/**
|
|
26
|
+
* If you do not want to use the proxy provided by Roomle
|
|
27
|
+
* uncomment the next three lines and comment the line
|
|
28
|
+
* which has the Roomle proxy URL in it.
|
|
29
|
+
* BE AWARE: That the example url dfteccdeveu01-app.azurewebsites.net
|
|
30
|
+
* only works if you requesting from localhost:3100 otherwise you
|
|
31
|
+
* will have CORS issues
|
|
32
|
+
*/
|
|
33
|
+
/** comment this line if you do not want to use the Roomle proxy */
|
|
34
|
+
baseUrl: string;
|
|
35
|
+
om: {
|
|
36
|
+
subscriptionId: string;
|
|
37
|
+
key: string;
|
|
38
|
+
importBaseUrl: string;
|
|
39
|
+
};
|
|
40
|
+
libraryId: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RoomDesignerApiType } from './overlay';
|
|
2
|
+
|
|
3
|
+
export declare const GROUP_SELECTION_STR = "Group selection";
|
|
4
|
+
export declare const getOverlayDomElement: () => HTMLElement;
|
|
5
|
+
export declare const positionOverlay: (roomDesignerApi: RoomDesignerApiType) => Promise<void>;
|
|
6
|
+
export declare const showOverlay: () => void;
|
|
7
|
+
export declare const hideOverlay: () => void;
|
|
8
|
+
export declare const addShadow: (roomDesignerApi: RoomDesignerApiType) => Promise<void>;
|
|
9
|
+
export declare const removeShadow: () => void;
|
|
10
|
+
export declare const currentSelectionType: (selectionPayload: any) => "Group selection" | "Unknown selection type" | "Root module selection" | "Sub module selection";
|
|
11
|
+
export declare const showItemSelectionWarning: (roomDesignerApi: RoomDesignerApiType) => Promise<void>;
|
|
12
|
+
export declare const showCustomItemSelectionView: (state: any, roomDesignerApi: RoomDesignerApiType) => Promise<void>;
|
|
13
|
+
export declare const showCustomCatalogView: (roomDesignerApi: RoomDesignerApiType) => Promise<void>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const state: {
|
|
2
|
+
selection: {
|
|
3
|
+
type: any;
|
|
4
|
+
payload: any;
|
|
5
|
+
parameters: any[];
|
|
6
|
+
};
|
|
7
|
+
currentContext: string;
|
|
8
|
+
currentCustomView: any;
|
|
9
|
+
currentSidebar: any;
|
|
10
|
+
abortController: AbortController;
|
|
11
|
+
isBuildingCatalog: any;
|
|
12
|
+
waitForCatalog: () => Promise<void>;
|
|
13
|
+
};
|
|
14
|
+
export declare const resetSelectionState: () => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const fetchJSONData: (url: string) => Promise<any>;
|
|
2
|
+
export declare const fetchDataWithAuthorization: (url: string, type: string, property: string) => Promise<Response>;
|
|
3
|
+
export declare const logMessage: (message: string, ...args: (string | null)[]) => void;
|
|
4
|
+
export declare const logApiCall: (message: string) => void;
|
|
5
|
+
export declare const logApiCallback: (message: string, ...args: (string | null)[]) => void;
|
|
6
|
+
export declare const logLink: (message: string, linkUrl: string) => void;
|
|
7
|
+
export declare class RenderQueue {
|
|
8
|
+
reRenders: number;
|
|
9
|
+
queue: Array<{
|
|
10
|
+
renderFn: any;
|
|
11
|
+
resolve: any;
|
|
12
|
+
reject: any;
|
|
13
|
+
}>;
|
|
14
|
+
isProcessing: boolean;
|
|
15
|
+
constructor();
|
|
16
|
+
enqueue(renderFn: any): Promise<unknown>;
|
|
17
|
+
processQueue(): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
export declare const getQueryParam: (key: string, url?: string) => string;
|
|
@@ -86,7 +86,7 @@ export default abstract class Main implements LifeCycleCallbacks {
|
|
|
86
86
|
protected abstract setupDependencies(): void;
|
|
87
87
|
protected abstract cleanUpGlobals(): void;
|
|
88
88
|
protected abstract cleanUpDependencies(): void;
|
|
89
|
-
protected abstract bootFinished(): void
|
|
89
|
+
protected abstract bootFinished(): Promise<void>;
|
|
90
90
|
protected abstract getContextName(): string;
|
|
91
91
|
abstract getApi(): ExternalEmbeddable;
|
|
92
92
|
constructor(creator?: string);
|
|
@@ -94,7 +94,7 @@ export default abstract class Main implements LifeCycleCallbacks {
|
|
|
94
94
|
private _setupCommonDependencies;
|
|
95
95
|
private _cleanUpCommonGlobals;
|
|
96
96
|
private _cleanUpCommonDependencies;
|
|
97
|
-
boot(settings?: object): void
|
|
97
|
+
boot(settings?: object): Promise<void>;
|
|
98
98
|
protected lookup<T>(specifier: string, context?: string): T;
|
|
99
99
|
teardown(): void;
|
|
100
100
|
pause(): void;
|
|
@@ -9,6 +9,7 @@ import { CustomShadingParameters, SceneShadingType } from '../webgl/renderer/sha
|
|
|
9
9
|
import { RapiId } from '../../../typings/rapi-types';
|
|
10
10
|
import { CanvasOffset } from '../common-interfaces';
|
|
11
11
|
import { ExternalObjectApiConfiguration } from '../../../planner-core/src/external-object-api';
|
|
12
|
+
import { HomagIntelligenceInitData } from '../../../homag-intelligence/src/loader';
|
|
12
13
|
|
|
13
14
|
export declare const DEFAULT_ENV_MAP_INTENSITY = 1.5;
|
|
14
15
|
export declare const DEFAULT_ENV_MAP_ROTATION = 0;
|
|
@@ -49,6 +50,7 @@ export default class InitData implements Context, Omit<InitDataDefinition, 'colo
|
|
|
49
50
|
customShading?: CustomShadingParameters;
|
|
50
51
|
customShadingMoc?: CustomShadingParameters;
|
|
51
52
|
restrictionLevel?: number;
|
|
53
|
+
hi?: HomagIntelligenceInitData;
|
|
52
54
|
offlineSync?: string;
|
|
53
55
|
highlighting?: Enumify<typeof ROOMLE_HIGHLIGHTNG>;
|
|
54
56
|
initialFloorMaterial?: string;
|
|
@@ -6,6 +6,7 @@ import { Enumify } from '../types';
|
|
|
6
6
|
import { DefaultEnvironmentSceneType } from '../webgl/renderer/environment-scene';
|
|
7
7
|
import { CustomShadingParameters, SceneShadingType } from '../webgl/renderer/shading-settings';
|
|
8
8
|
import { Color } from 'three';
|
|
9
|
+
import { HomagIntelligenceInitData } from '../../../homag-intelligence/src/loader';
|
|
9
10
|
|
|
10
11
|
export declare const enum WINDOW_EVENT {
|
|
11
12
|
RESIZE = "resize",
|
|
@@ -315,6 +316,11 @@ export interface CommonInitData {
|
|
|
315
316
|
* @description restrictionLevel defines visibility of parameters and possible children
|
|
316
317
|
*/
|
|
317
318
|
restrictionLevel?: number;
|
|
319
|
+
/**
|
|
320
|
+
* @description Settings for Homag Intelligence
|
|
321
|
+
* @internal
|
|
322
|
+
*/
|
|
323
|
+
hi?: HomagIntelligenceInitData;
|
|
318
324
|
}
|
|
319
325
|
export interface ConfiguratorInitData {
|
|
320
326
|
/**
|
|
@@ -9,6 +9,6 @@ export declare class Configurator extends Main {
|
|
|
9
9
|
protected cleanUpDependencies(): void;
|
|
10
10
|
protected setupGlobals(appState?: AppState): void;
|
|
11
11
|
getApi(): RoomleConfigurator;
|
|
12
|
-
protected bootFinished(): void
|
|
12
|
+
protected bootFinished(): Promise<void>;
|
|
13
13
|
protected getContextName(): string;
|
|
14
14
|
}
|
|
@@ -12,7 +12,7 @@ export default class ComponentRaycastHelper {
|
|
|
12
12
|
init(object: Object3D, camera: PerspectiveCamera): void;
|
|
13
13
|
setCamera(camera: PerspectiveCamera): void;
|
|
14
14
|
setObject(object: Object3D): void;
|
|
15
|
-
changeMaterialsOnSelect(object: Object3D, component: RoomleComponent, selected?: boolean, callback?: () => void):
|
|
15
|
+
changeMaterialsOnSelect(object: Object3D, component: RoomleComponent, selected?: boolean, callback?: () => void): void;
|
|
16
16
|
private _changeMaterialsOnSelect;
|
|
17
17
|
isComponentVisible(component: RoomleComponent): boolean;
|
|
18
18
|
checkComponentAndPreviewVisibility(sceneEventHandler: ConfiguratorSceneEventHandler, configuratorViewModel: ConfiguratorViewModel): void;
|
|
@@ -7,7 +7,7 @@ export declare class GlbViewer extends Main {
|
|
|
7
7
|
protected setupDependencies(): void;
|
|
8
8
|
protected cleanUpGlobals(): void;
|
|
9
9
|
protected cleanUpDependencies(): void;
|
|
10
|
-
protected bootFinished(): void
|
|
10
|
+
protected bootFinished(): Promise<void>;
|
|
11
11
|
getApi(): RoomleGLBViewer;
|
|
12
12
|
protected getContextName(): string;
|
|
13
13
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RoomDesignerRequests } from './emulator';
|
|
2
|
+
import { MasterData, PosGroup } from './model/oc-scripts-domain.model';
|
|
3
|
+
import { RoomlePlannerType } from '../../typings/external-objects';
|
|
4
|
+
|
|
5
|
+
export declare class RoomDesignerApi implements RoomDesignerRequests {
|
|
6
|
+
private _roomlePlanner;
|
|
7
|
+
constructor(roomlePlanner: RoomlePlannerType);
|
|
8
|
+
loadMasterData(masterData: MasterData): void;
|
|
9
|
+
loadPosGroups(posDataJson: PosGroup | PosGroup[], findFreeSpaceInPlan: boolean, verifyArrangement: boolean, mergedGroups?: string[]): Promise<void>;
|
|
10
|
+
selectGroup(groupId: string): Promise<void>;
|
|
11
|
+
selectRoot(rootModuleId: string): Promise<void>;
|
|
12
|
+
selectModule(rootModuleId: string, subModuleId: string): Promise<void>;
|
|
13
|
+
openCloseGroup(groupOrRootModuleId: string, subModuleId: string | null, open: boolean, animate: boolean): Promise<void>;
|
|
14
|
+
deleteGroup(groupId: string, wasMerged?: boolean): Promise<void>;
|
|
15
|
+
deleteRootModule(rootModuleId: string): Promise<void>;
|
|
16
|
+
getPosDataOfAllGroups(): Promise<PosGroup[]>;
|
|
17
|
+
generatePlanSnapshot(): Promise<void>;
|
|
18
|
+
saveExternalObjectSnapshot(): Promise<import('../../typings/rapi-types').RapiPlanSnapshotGetDataWith3dUrls>;
|
|
19
|
+
saveCurrentPlanSnapshot(): Promise<import('../../typings/rapi-types').RapiPlanSnapshotGetData>;
|
|
20
|
+
renderPosDataImage(posDataJson: object): Promise<void>;
|
|
21
|
+
downloadGlb(): Promise<void>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { GlueLogic } from './emulator';
|
|
2
|
+
import { default as RoomlePlanner } from '../../planner-core/src/roomle-planner';
|
|
3
|
+
|
|
4
|
+
export interface ExternalObjectSegment {
|
|
5
|
+
cmd: string;
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
type?: string;
|
|
9
|
+
angle?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface ExternalObjectContour {
|
|
12
|
+
level: number;
|
|
13
|
+
segments: ExternalObjectSegment[];
|
|
14
|
+
}
|
|
15
|
+
export interface ExternalObjectGroupPosition {
|
|
16
|
+
pos: number[];
|
|
17
|
+
rotationY?: number;
|
|
18
|
+
contours?: ExternalObjectContour[];
|
|
19
|
+
}
|
|
20
|
+
export interface ExternalObjectRootModule {
|
|
21
|
+
moduleId: string;
|
|
22
|
+
pos: number[];
|
|
23
|
+
rotationY?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface ExternalObjectGroup {
|
|
26
|
+
groupId: string;
|
|
27
|
+
pos: number[];
|
|
28
|
+
rotationY?: number;
|
|
29
|
+
rootModules: ExternalObjectRootModule[];
|
|
30
|
+
contours?: ExternalObjectContour[];
|
|
31
|
+
}
|
|
32
|
+
export interface ExternalModuleInformation {
|
|
33
|
+
groupId: string;
|
|
34
|
+
rootModuleId: string;
|
|
35
|
+
subModuleId: string | null;
|
|
36
|
+
}
|
|
37
|
+
export declare const initCallbacks: (roomlePlanner: RoomlePlanner, gluLogic: GlueLogic) => void;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ExternalModuleInformation, ExternalObjectGroup, ExternalObjectGroupPosition } from './callbacks';
|
|
2
|
+
import { MasterData, PosModuleAttribute, PosGroup, PosModuleData, PosModuleRootData } from './model/oc-scripts-domain.model';
|
|
3
|
+
|
|
4
|
+
export interface LibraryData {
|
|
5
|
+
get masterData(): MasterData | null;
|
|
6
|
+
get posGroupVersion(): number;
|
|
7
|
+
calculateGroup(posGroup: PosGroup): PosGroup;
|
|
8
|
+
getOrderData(posGroup: PosGroup[], roomlePlannerId?: string): PosGroup;
|
|
9
|
+
getAttributesDropDownValues(module: PosModuleRootData): Promise<any>;
|
|
10
|
+
solveModuleAttributeConflict(module: PosModuleData, attributeName: string, value: string | number | boolean): PosModuleAttribute[] | undefined;
|
|
11
|
+
}
|
|
12
|
+
export interface RoomDesignerRequests {
|
|
13
|
+
loadMasterData(masterData: MasterData): void;
|
|
14
|
+
loadPosGroups(posDataJson: PosGroup | PosGroup[], findFreeSpaceInPlan: boolean, verifyArrangement: boolean, mergedGroups?: string[]): Promise<void>;
|
|
15
|
+
selectGroup(groupId: string): Promise<void>;
|
|
16
|
+
selectRoot(rootModuleId: string): Promise<void>;
|
|
17
|
+
selectModule(rootModuleId: string, subModuleId: string): Promise<void>;
|
|
18
|
+
openCloseGroup(groupOrRootModuleId: string, subModuleId: string | null, open: boolean, animate: boolean): Promise<void>;
|
|
19
|
+
deleteGroup(groupId: string, wasMerged?: boolean): Promise<void>;
|
|
20
|
+
deleteRootModule(rootModuleId: string): Promise<void>;
|
|
21
|
+
getPosDataOfAllGroups(): Promise<PosGroup[]>;
|
|
22
|
+
generatePlanSnapshot(): Promise<void>;
|
|
23
|
+
saveExternalObjectSnapshot(): Promise<any>;
|
|
24
|
+
saveCurrentPlanSnapshot(): Promise<any>;
|
|
25
|
+
}
|
|
26
|
+
export interface GlueLogic {
|
|
27
|
+
mergeGroups(targetGroup: ExternalObjectGroup, idsOfGroupsMerged: string | string[], idOfTargetRootModule: string): void;
|
|
28
|
+
deleteRootModule(remainingGroup: ExternalObjectGroup, rootModuleIdToDelete: string, splitOffGroups: ExternalObjectGroup[]): void;
|
|
29
|
+
splitRootModuleFromGroup(splitGroup: ExternalObjectGroup, newGroupedRootModules: ExternalObjectGroup[]): void;
|
|
30
|
+
duplicateGroup(sourceGroupId: string, newGroupPosition: ExternalObjectGroupPosition): void;
|
|
31
|
+
modifyAttribute(groupId: string, moduleIdObjects: ExternalModuleInformation[], attributeName: string, value: string): void;
|
|
32
|
+
arrangeRootModulesOfGroup(changedGroup: ExternalObjectGroup): void;
|
|
33
|
+
changedGroupPlanningSituation(changedGroup: ExternalObjectGroup): void;
|
|
34
|
+
deleteGroup(groupId: string): Promise<void>;
|
|
35
|
+
changedGroup(posDataJson: PosGroup): void;
|
|
36
|
+
loadedGroup(posDataJson: PosGroup): void;
|
|
37
|
+
removedGroup(groupId: string): void;
|
|
38
|
+
openCloseGroup(groupId: string): void;
|
|
39
|
+
getGroupDataForOrder(roomlePlannerId?: string): Promise<any>;
|
|
40
|
+
savePlanSnapshot(): Promise<PlanSnapshot>;
|
|
41
|
+
}
|
|
42
|
+
interface PlanSnapshot {
|
|
43
|
+
id: string;
|
|
44
|
+
perspectiveImageLink: string;
|
|
45
|
+
topImageLink: string;
|
|
46
|
+
room3dLink: string;
|
|
47
|
+
room3dFullLink: string;
|
|
48
|
+
}
|
|
49
|
+
interface GroupItem {
|
|
50
|
+
posDataJson: PosGroup;
|
|
51
|
+
opened: boolean;
|
|
52
|
+
}
|
|
53
|
+
export declare class Emulator implements GlueLogic {
|
|
54
|
+
_designerRequests: RoomDesignerRequests;
|
|
55
|
+
_libraryData: LibraryData;
|
|
56
|
+
_posDataJsonMap: Map<string, any>;
|
|
57
|
+
_groupMap: Map<string, GroupItem>;
|
|
58
|
+
_nextPosDataId: number;
|
|
59
|
+
constructor(designerRequests: RoomDesignerRequests, libraryData: LibraryData);
|
|
60
|
+
loadPosData(articleCatalogJson: any, libraryId: string): void;
|
|
61
|
+
newPosDataFromId(id: string): any;
|
|
62
|
+
deleteGroup(groupId: string): Promise<void>;
|
|
63
|
+
selectGroup(groupId: string): Promise<void>;
|
|
64
|
+
selectCheckAttributes(root: PosModuleRootData): Promise<void>;
|
|
65
|
+
selectRoot(_groupId: any, rootId: string): Promise<void>;
|
|
66
|
+
deleteRoot(groupId: any, rootId: string): Promise<void>;
|
|
67
|
+
selectSubModule(groupId: any, rootId: string, moduleId: string): Promise<void>;
|
|
68
|
+
openCloseGroup(groupId: string): Promise<void>;
|
|
69
|
+
deleteRootModule(remainingGroup: ExternalObjectGroup, rootModuleIdToDelete: string, splitOffGroups: ExternalObjectGroup[]): void;
|
|
70
|
+
duplicateGroup(sourceGroupId: string, newGroupPosition: ExternalObjectGroupPosition): Promise<void>;
|
|
71
|
+
mergeGroups(targetGroup: ExternalObjectGroup, idsOfGroupsMerged: string | string[], idOfTargetRootModule: string): void;
|
|
72
|
+
private _applyImplicitRelevantAttributes;
|
|
73
|
+
splitRootModuleFromGroup(splitGroup: ExternalObjectGroup, newGroupedRootModules: ExternalObjectGroup[]): void;
|
|
74
|
+
arrangeRootModulesOfGroup(changedGroup: ExternalObjectGroup): void;
|
|
75
|
+
removedGroup(groupId: string): void;
|
|
76
|
+
changedGroup(posDataJson: PosGroup): void;
|
|
77
|
+
changedGroupPlanningSituation(changedGroup: ExternalObjectGroup): void;
|
|
78
|
+
loadedGroup(posDataJson: PosGroup): void;
|
|
79
|
+
getGroupDataForOrder(roomlePlannerId?: string): Promise<PosGroup>;
|
|
80
|
+
private _setGroupContour;
|
|
81
|
+
private _setGroupPosition;
|
|
82
|
+
private _setRootModulesPosition;
|
|
83
|
+
private _loadPosData;
|
|
84
|
+
private _splitOffGroupsFromGroups;
|
|
85
|
+
private _splitOffRootModulesFromGroup;
|
|
86
|
+
private _calculateNewGroup;
|
|
87
|
+
private _calculate;
|
|
88
|
+
private _calculateAndUpdateGroupMap;
|
|
89
|
+
private _addNewGroup;
|
|
90
|
+
private _addGroupToMap;
|
|
91
|
+
updateAttribute(rootModuleId: string | undefined, moduleId: string, attributeId: string, attributeValue: string | boolean): Promise<void>;
|
|
92
|
+
modifyAttribute(groupId: string, moduleIdObjects: ExternalModuleInformation[], attributeName: string, value: string): void;
|
|
93
|
+
_modifyAttributeOfModules(emulatorGroupItem: GroupItem, moduleIds: string[] | string, attributeName: string, value: string | boolean): PosGroup;
|
|
94
|
+
private _setAttribute;
|
|
95
|
+
savePlanSnapshot(): Promise<PlanSnapshot>;
|
|
96
|
+
private _findModule;
|
|
97
|
+
private _replacesIDs;
|
|
98
|
+
private _replacesModuleIDs;
|
|
99
|
+
private _getNextID;
|
|
100
|
+
}
|
|
101
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { RmlPlugin } from './rml-plugin';
|
|
2
|
+
import { Emulator } from './emulator';
|
|
3
|
+
import { ApiOptions } from './loader';
|
|
4
|
+
import { MasterData } from './model/oc-scripts-domain.model';
|
|
5
|
+
import { default as RoomlePlanner } from '../../planner-core/src/roomle-planner';
|
|
6
|
+
|
|
7
|
+
export declare const HOMAG_INTELLIGENCE_ENDPOINT = "https://europe-west3-rml-showcases.cloudfunctions.net/proxy_request?url=";
|
|
8
|
+
export declare class HomagIntelligence extends RmlPlugin {
|
|
9
|
+
private _roomlePlanner;
|
|
10
|
+
private _api;
|
|
11
|
+
private _masterData;
|
|
12
|
+
private _emulator;
|
|
13
|
+
private _articles;
|
|
14
|
+
private _scriptLoaded;
|
|
15
|
+
private _hiLibraryLoaded;
|
|
16
|
+
private _orders;
|
|
17
|
+
constructor();
|
|
18
|
+
loadHiLibrary(libraryId: string, apiOptions: ApiOptions): Promise<{
|
|
19
|
+
articles: any;
|
|
20
|
+
masterData: MasterData;
|
|
21
|
+
calcScriptLoaded: boolean;
|
|
22
|
+
}>;
|
|
23
|
+
init(roomlePlanner: RoomlePlanner, libraryId: string, apiOptions: ApiOptions): Promise<this>;
|
|
24
|
+
private _loadMasterData;
|
|
25
|
+
getEmulator(): Emulator;
|
|
26
|
+
sendToOM(withPrice?: boolean): Promise<void>;
|
|
27
|
+
fetchPrice(planId?: string): Promise<any>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MasterData } from './model/oc-scripts-domain.model';
|
|
2
|
+
|
|
3
|
+
export interface HomagIntelligenceInitData {
|
|
4
|
+
libraryId: string;
|
|
5
|
+
serverOptions: ApiOptions;
|
|
6
|
+
}
|
|
7
|
+
export interface OrderManagerOptions {
|
|
8
|
+
key?: string;
|
|
9
|
+
importBaseUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ApiOptions {
|
|
12
|
+
subscriptionId: string;
|
|
13
|
+
om?: OrderManagerOptions;
|
|
14
|
+
endpointUrl?: string;
|
|
15
|
+
localUrl?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const fetchDataWithAuthorization: (url: string, type: 'json' | 'text', apiOptions: ApiOptions, debug?: {
|
|
18
|
+
property: string;
|
|
19
|
+
}) => Promise<Response>;
|
|
20
|
+
export declare const loadHiLibrary: (libraryId: string, apiOptions: ApiOptions) => Promise<{
|
|
21
|
+
articles: any;
|
|
22
|
+
masterData: MasterData;
|
|
23
|
+
calcScriptLoaded: boolean;
|
|
24
|
+
}>;
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
export declare const enum PosUserRight {
|
|
2
|
+
Simple = "Simple",
|
|
3
|
+
Advanced = "Advanced",
|
|
4
|
+
Master = "Master"
|
|
5
|
+
}
|
|
6
|
+
export declare const enum UserRightLevel {
|
|
7
|
+
Simple = 0,
|
|
8
|
+
Advanced = 1,
|
|
9
|
+
Master = 2
|
|
10
|
+
}
|
|
11
|
+
export declare const getUserRightLevel: (right?: PosUserRight | null) => UserRightLevel;
|
|
12
|
+
export interface PosArticleInfo {
|
|
13
|
+
/**
|
|
14
|
+
* Defined the library that is used / must match the MasterData
|
|
15
|
+
*/
|
|
16
|
+
libraryId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Defined the library that is used / must match the MasterData
|
|
19
|
+
*/
|
|
20
|
+
catalog: string;
|
|
21
|
+
/**
|
|
22
|
+
* The id of the initial article
|
|
23
|
+
*/
|
|
24
|
+
articleId: string;
|
|
25
|
+
/**
|
|
26
|
+
* The name of the initial article
|
|
27
|
+
*/
|
|
28
|
+
articleName?: string;
|
|
29
|
+
desc?: string;
|
|
30
|
+
imageUrl?: string;
|
|
31
|
+
category?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface PosPartData {
|
|
34
|
+
id: string;
|
|
35
|
+
hidden?: boolean;
|
|
36
|
+
relPos: number[];
|
|
37
|
+
dim: number[];
|
|
38
|
+
fullMatrix: number[];
|
|
39
|
+
openfullMatrix?: number[];
|
|
40
|
+
name: string;
|
|
41
|
+
material?: PosFaceMaterial[] | string;
|
|
42
|
+
extrude?: PosPartExtrudeInfo;
|
|
43
|
+
model?: PosPartModelInfo;
|
|
44
|
+
hideModelWhenOpen?: boolean;
|
|
45
|
+
modelOpen?: PosPartModelInfo;
|
|
46
|
+
}
|
|
47
|
+
export interface PosPartExtrudeInfo {
|
|
48
|
+
svg: string;
|
|
49
|
+
direction: string;
|
|
50
|
+
}
|
|
51
|
+
export interface PosFaceMaterial {
|
|
52
|
+
materialId: string;
|
|
53
|
+
faceKey?: PosFaceKey;
|
|
54
|
+
uvRotation?: number;
|
|
55
|
+
uvOffset?: number[];
|
|
56
|
+
uvScale?: number[];
|
|
57
|
+
}
|
|
58
|
+
export declare enum PosFaceKey {
|
|
59
|
+
Default = "default",
|
|
60
|
+
Bottom = "bottom",
|
|
61
|
+
Top = "top",
|
|
62
|
+
Left = "left",
|
|
63
|
+
Right = "right",
|
|
64
|
+
Front = "front",
|
|
65
|
+
Back = "back",
|
|
66
|
+
Side = "side"
|
|
67
|
+
}
|
|
68
|
+
export interface PosPartModelInfo {
|
|
69
|
+
url: string;
|
|
70
|
+
params?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface PosModuleAttribute {
|
|
73
|
+
id: string;
|
|
74
|
+
value?: number | string | boolean;
|
|
75
|
+
isInput?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export interface PosModuleData {
|
|
78
|
+
id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
modules?: PosModuleData[];
|
|
81
|
+
parts?: PosPartData[];
|
|
82
|
+
imageUrl?: string;
|
|
83
|
+
attributes?: PosModuleAttribute[];
|
|
84
|
+
canBeDeleted?: boolean;
|
|
85
|
+
isGenerated?: boolean;
|
|
86
|
+
checkAttributes?: Map<string, string | number | boolean | undefined>;
|
|
87
|
+
}
|
|
88
|
+
export interface PosModuleRootData extends PosModuleData, PosArticleInfo {
|
|
89
|
+
/**
|
|
90
|
+
* Additional text for this root module
|
|
91
|
+
*/
|
|
92
|
+
additionalText?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Position of this article; if not set it is always 0,0,0 (x/y/z)
|
|
95
|
+
*/
|
|
96
|
+
articlePos?: number[];
|
|
97
|
+
/**
|
|
98
|
+
* Rotation on the vertical axis in degree (0-359)
|
|
99
|
+
*/
|
|
100
|
+
rotationY?: number;
|
|
101
|
+
logMessages: PosErrorMsg[];
|
|
102
|
+
dockInfos: PosDockInfo[];
|
|
103
|
+
insertLevelInfos?: PosInsertLevelInfo[];
|
|
104
|
+
insertLevelFixed?: boolean;
|
|
105
|
+
}
|
|
106
|
+
export interface PosInsertLevelInfo {
|
|
107
|
+
height: number;
|
|
108
|
+
isDefault?: boolean;
|
|
109
|
+
}
|
|
110
|
+
export interface PosDockInfo {
|
|
111
|
+
id: PosDock;
|
|
112
|
+
start: number[];
|
|
113
|
+
end: number[];
|
|
114
|
+
}
|
|
115
|
+
export declare const enum PosDock {
|
|
116
|
+
RightTop = "RightTop",
|
|
117
|
+
BackTop = "BackTop",
|
|
118
|
+
LeftTop = "LeftTop",
|
|
119
|
+
RightBottom = "RightBottom",
|
|
120
|
+
BackBottom = "BackBottom",
|
|
121
|
+
LeftBottom = "LeftBottom",
|
|
122
|
+
LeftBackTop = "LeftBackTop",
|
|
123
|
+
RightBackTop = "RightBackTop",
|
|
124
|
+
LeftBackBottom = "LeftBackBottom",
|
|
125
|
+
RightBackBottom = "RightBackBottom"
|
|
126
|
+
}
|
|
127
|
+
export interface PosErrorMsg {
|
|
128
|
+
category: LogMessageCategoryType;
|
|
129
|
+
msg: string;
|
|
130
|
+
seqNo: number;
|
|
131
|
+
timestamp: string;
|
|
132
|
+
scope?: LogMessageScope;
|
|
133
|
+
}
|
|
134
|
+
export interface LogMessageScope {
|
|
135
|
+
moduleUniqueId?: string;
|
|
136
|
+
attrId?: string;
|
|
137
|
+
}
|
|
138
|
+
export declare const enum LogMessageCategoryType {
|
|
139
|
+
Fatal = "Fatal",
|
|
140
|
+
Error = "Error",
|
|
141
|
+
Warning = "Warning",
|
|
142
|
+
Info = "Info",
|
|
143
|
+
Debug = "Debug"
|
|
144
|
+
}
|
|
145
|
+
export interface PosContourSegment {
|
|
146
|
+
cmd: string;
|
|
147
|
+
x: number;
|
|
148
|
+
y: number;
|
|
149
|
+
angle: number;
|
|
150
|
+
type?: string;
|
|
151
|
+
}
|
|
152
|
+
export interface PosContour {
|
|
153
|
+
level: number;
|
|
154
|
+
segments: PosContourSegment[];
|
|
155
|
+
}
|
|
156
|
+
export interface PosGroup {
|
|
157
|
+
/**
|
|
158
|
+
* The unique id of the Group
|
|
159
|
+
*/
|
|
160
|
+
id: string;
|
|
161
|
+
/**
|
|
162
|
+
* One or multiple roots for this article group
|
|
163
|
+
*/
|
|
164
|
+
roots: PosModuleRootData[];
|
|
165
|
+
/**
|
|
166
|
+
* Global (error) messages
|
|
167
|
+
*/
|
|
168
|
+
logMessages: PosErrorMsg[];
|
|
169
|
+
/**
|
|
170
|
+
* Position/Orientation inside the room
|
|
171
|
+
*/
|
|
172
|
+
/**
|
|
173
|
+
* Optional a position of this group
|
|
174
|
+
*/
|
|
175
|
+
pos?: number[];
|
|
176
|
+
/**
|
|
177
|
+
* The rotation on the vertical axis in degree (0-360)
|
|
178
|
+
*/
|
|
179
|
+
rotationY?: number;
|
|
180
|
+
/**
|
|
181
|
+
* Optional a contour list of the surrounding elements
|
|
182
|
+
*/
|
|
183
|
+
contours?: PosContour[];
|
|
184
|
+
/**
|
|
185
|
+
* The version used for this data structure
|
|
186
|
+
*/
|
|
187
|
+
ver?: number;
|
|
188
|
+
}
|
|
189
|
+
export interface PosArticle extends PosArticleInfo {
|
|
190
|
+
roots: PosModuleRootData[];
|
|
191
|
+
}
|
|
192
|
+
export interface PosSaveData {
|
|
193
|
+
groups: PosGroup[];
|
|
194
|
+
roomlePlannerId?: string;
|
|
195
|
+
perspectiveImageLink?: string;
|
|
196
|
+
topImageLink?: string;
|
|
197
|
+
room3dLink?: string;
|
|
198
|
+
room3dFullLink?: string;
|
|
199
|
+
}
|
|
200
|
+
export interface PosPriceData {
|
|
201
|
+
Groups: PosPriceGroup[];
|
|
202
|
+
LogMessages: PosErrorMsg[];
|
|
203
|
+
}
|
|
204
|
+
export interface PosPriceGroup {
|
|
205
|
+
Id: string;
|
|
206
|
+
Roots: PosRootPrice[];
|
|
207
|
+
}
|
|
208
|
+
export interface PosRootPrice {
|
|
209
|
+
Id: string;
|
|
210
|
+
TotalPrice?: number;
|
|
211
|
+
Currency?: string;
|
|
212
|
+
}
|
|
213
|
+
export interface PosArticleCalculation {
|
|
214
|
+
/**
|
|
215
|
+
* Calculates the article group
|
|
216
|
+
* @param article
|
|
217
|
+
* @returns calc
|
|
218
|
+
*/
|
|
219
|
+
calc(article: PosGroup): PosGroup;
|
|
220
|
+
}
|
|
221
|
+
export type MDAttributeSelection = MDBoolAttributeSelection | MDTextAttributeSelection | MDIntegerAttributeSelection | MDRealAttributeSelection | MDDimAttributeSelection;
|
|
222
|
+
interface BaseAttributeSelection {
|
|
223
|
+
imageUrl?: string;
|
|
224
|
+
desc?: string;
|
|
225
|
+
name?: string;
|
|
226
|
+
}
|
|
227
|
+
export interface MDBoolAttributeSelection extends BaseAttributeSelection {
|
|
228
|
+
value?: boolean;
|
|
229
|
+
}
|
|
230
|
+
export interface MDTextAttributeSelection extends BaseAttributeSelection {
|
|
231
|
+
value?: string;
|
|
232
|
+
}
|
|
233
|
+
export interface MDIntegerAttributeSelection extends BaseAttributeSelection {
|
|
234
|
+
value?: number;
|
|
235
|
+
}
|
|
236
|
+
export interface MDRealAttributeSelection extends BaseAttributeSelection {
|
|
237
|
+
value?: number;
|
|
238
|
+
}
|
|
239
|
+
export interface MDDimAttributeSelection extends BaseAttributeSelection {
|
|
240
|
+
value?: number;
|
|
241
|
+
}
|
|
242
|
+
export interface MDNumberMinMaxAttributeSelection {
|
|
243
|
+
min?: number;
|
|
244
|
+
max?: string;
|
|
245
|
+
desc?: string;
|
|
246
|
+
}
|
|
247
|
+
export declare const enum MDType {
|
|
248
|
+
Dim = "Dim",
|
|
249
|
+
Integer = "Integer",
|
|
250
|
+
Real = "Real",
|
|
251
|
+
Bool = "Bool",
|
|
252
|
+
Text = "Text"
|
|
253
|
+
}
|
|
254
|
+
export type MDAttributeInfo = MDBoolAttributeInfo | MDTextAttributeInfo | MDIntegerAttributeInfo | MDRealAttributeInfo | MDDimAttributeInfo;
|
|
255
|
+
interface BaseMDAttributeInfo {
|
|
256
|
+
id: string;
|
|
257
|
+
name: string;
|
|
258
|
+
isMain?: boolean;
|
|
259
|
+
desc?: string;
|
|
260
|
+
group?: string;
|
|
261
|
+
imageUrl?: string;
|
|
262
|
+
type: MDType;
|
|
263
|
+
userRight?: PosUserRight | null;
|
|
264
|
+
userView?: string | null;
|
|
265
|
+
implicitRelevant?: boolean;
|
|
266
|
+
sorting?: number;
|
|
267
|
+
}
|
|
268
|
+
export interface MDBoolAttributeInfo extends BaseMDAttributeInfo {
|
|
269
|
+
selections?: MDBoolAttributeSelection[];
|
|
270
|
+
type: MDType.Bool;
|
|
271
|
+
}
|
|
272
|
+
export interface MDTextAttributeInfo extends BaseMDAttributeInfo {
|
|
273
|
+
selections?: MDTextAttributeSelection[];
|
|
274
|
+
type: MDType.Text;
|
|
275
|
+
}
|
|
276
|
+
export interface MDIntegerAttributeInfo extends BaseMDAttributeInfo {
|
|
277
|
+
selections?: (MDIntegerAttributeSelection | MDNumberMinMaxAttributeSelection)[];
|
|
278
|
+
type: MDType.Integer;
|
|
279
|
+
}
|
|
280
|
+
export interface MDRealAttributeInfo extends BaseMDAttributeInfo {
|
|
281
|
+
selections?: (MDRealAttributeSelection | MDNumberMinMaxAttributeSelection)[];
|
|
282
|
+
type: MDType.Real;
|
|
283
|
+
}
|
|
284
|
+
export interface MDDimAttributeInfo extends BaseMDAttributeInfo {
|
|
285
|
+
selections?: (MDDimAttributeSelection | MDNumberMinMaxAttributeSelection)[];
|
|
286
|
+
type: MDType.Dim;
|
|
287
|
+
}
|
|
288
|
+
export interface MDModuleInfo {
|
|
289
|
+
id: string;
|
|
290
|
+
name: string;
|
|
291
|
+
desc?: string;
|
|
292
|
+
group?: string;
|
|
293
|
+
imageUrl?: string;
|
|
294
|
+
assignedAttributes: string[];
|
|
295
|
+
}
|
|
296
|
+
export interface MasterData {
|
|
297
|
+
libraryId: string;
|
|
298
|
+
modules: MDModuleInfo[];
|
|
299
|
+
attributes: MDAttributeInfo[];
|
|
300
|
+
}
|
|
301
|
+
export interface CheckResult {
|
|
302
|
+
calcResult: CheckDropDownEntry[];
|
|
303
|
+
}
|
|
304
|
+
export interface CheckDropDownEntry {
|
|
305
|
+
value: string | number | boolean;
|
|
306
|
+
kind: CheckDropDownEntryKind;
|
|
307
|
+
}
|
|
308
|
+
export declare enum CheckDropDownEntryKind {
|
|
309
|
+
Normal = 0,
|
|
310
|
+
Conflicting = 1
|
|
311
|
+
}
|
|
312
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as RoomlePlanner } from '../../planner-core/src/roomle-planner';
|
|
2
|
+
import { GlueLogic } from './emulator';
|
|
3
|
+
import { ApiOptions } from './loader';
|
|
4
|
+
|
|
5
|
+
export declare const createEmptyOrder: () => {
|
|
6
|
+
id: any;
|
|
7
|
+
state: string;
|
|
8
|
+
orderNumber: string;
|
|
9
|
+
orderName: string;
|
|
10
|
+
orderDescription: string;
|
|
11
|
+
project: string;
|
|
12
|
+
personInCharge: string;
|
|
13
|
+
orderDate: string;
|
|
14
|
+
deliveryDatePlanned: string;
|
|
15
|
+
addresses: {
|
|
16
|
+
type: string;
|
|
17
|
+
street: string;
|
|
18
|
+
houseNumber: string;
|
|
19
|
+
postalCode: string;
|
|
20
|
+
city: string;
|
|
21
|
+
country: string;
|
|
22
|
+
}[];
|
|
23
|
+
customerName: string;
|
|
24
|
+
customerNumber: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
changedAt: string;
|
|
27
|
+
changedBy: string;
|
|
28
|
+
items: any[];
|
|
29
|
+
};
|
|
30
|
+
export declare const sendToOM: (apiOptions: ApiOptions, roomlePlanner: RoomlePlanner, gluLogic: GlueLogic, withPrice?: boolean) => Promise<void>;
|
|
31
|
+
export declare const fetchPrice: (apiOptions: ApiOptions, gluLogic: GlueLogic, planId?: string) => Promise<any>;
|
|
32
|
+
export default class Orders {
|
|
33
|
+
private _roomlePlanner;
|
|
34
|
+
private _gluLogic;
|
|
35
|
+
private _apiOptions;
|
|
36
|
+
constructor(roomlePlanner: RoomlePlanner, gluLogic: GlueLogic, apiOptions: ApiOptions);
|
|
37
|
+
sendToOM(withPrice?: boolean): Promise<void>;
|
|
38
|
+
fetchPrice(planId?: string): Promise<any>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type Logable = string | number | boolean | object | null | undefined;
|
|
2
|
+
export declare const logApiCallback: (...args: Logable[]) => void;
|
|
3
|
+
export declare const logMessage: (...args: Logable[]) => void;
|
|
4
|
+
export declare const logApiCall: (...args: Logable[]) => void;
|
|
5
|
+
export {};
|
|
@@ -7,7 +7,7 @@ export declare class MaterialViewer extends Main {
|
|
|
7
7
|
protected setupDependencies(): void;
|
|
8
8
|
protected cleanUpGlobals(): void;
|
|
9
9
|
protected cleanUpDependencies(): void;
|
|
10
|
-
protected bootFinished(): void
|
|
10
|
+
protected bootFinished(): Promise<void>;
|
|
11
11
|
getApi(): RoomleMaterialViewer;
|
|
12
12
|
protected getContextName(): string;
|
|
13
13
|
}
|
|
@@ -10,7 +10,7 @@ export declare class Planner<P extends readonly PluginName[] = readonly []> exte
|
|
|
10
10
|
protected setupDependencies(): void;
|
|
11
11
|
protected cleanUpGlobals(): void;
|
|
12
12
|
protected cleanUpDependencies(): void;
|
|
13
|
-
protected bootFinished(): void
|
|
13
|
+
protected bootFinished(): Promise<void>;
|
|
14
14
|
getApi(): RoomlePlanner<P>;
|
|
15
15
|
protected getContextName(): string;
|
|
16
16
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as RapiAccess } from '../../common-core/src/rapi-access';
|
|
1
2
|
import { default as RoomlePlannerUiCallback } from './roomle-planner-ui-callback';
|
|
2
3
|
import { GlbViewer } from '../../glb-viewer-core/src/glb-viewer';
|
|
3
4
|
import { ExternalEmbeddable, GlobalAPI, KernelUtilityForUi, RubensAPI, default as Main } from '../../common-core/src/main';
|
|
@@ -26,6 +27,7 @@ import { ExternalGroupData, ExternalObject, ExtObjId } from '../../typings/exter
|
|
|
26
27
|
import { PluginName } from '../../configurator-core/src/utils/plugin-types';
|
|
27
28
|
import { Nullable } from '../../typings/helper';
|
|
28
29
|
import { MaybePromise } from '../../common-core/src/utils/common-utils';
|
|
30
|
+
import { HomagIntelligence } from '../../homag-intelligence/src/homag-intelligence';
|
|
29
31
|
|
|
30
32
|
export type ID_TYPE = 'rml_id' | 'tc_id' | 'rml_serialized' | 'tc_serialized';
|
|
31
33
|
export declare const EXT_OBJ_EXCEPTION = "Could not retrieve configuration for external object! Did you implement onGetConfigurationForExternalObject?";
|
|
@@ -75,9 +77,9 @@ export interface InsertItemResult {
|
|
|
75
77
|
export default class RoomlePlanner<P extends readonly PluginName[] = readonly []> implements KernelAccessCallbackI, RoomlePlannerCallback, GlobalAPI, Context, KernelUtilityForUi, ExternalEmbeddable<RoomlePlannerUiCallback>, RubensAPI, ExternalObjectAPI {
|
|
76
78
|
_creator_: string;
|
|
77
79
|
private _activePlugins;
|
|
80
|
+
private _homagIntelligence;
|
|
78
81
|
private _configuratorContext;
|
|
79
82
|
private _domHelper;
|
|
80
|
-
private _scriptLoader;
|
|
81
83
|
private _kernelAccessCallback;
|
|
82
84
|
private _plannerKernelAccess;
|
|
83
85
|
private _rapiAccess;
|
|
@@ -518,4 +520,9 @@ export default class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
518
520
|
* only possible if undo was called before
|
|
519
521
|
*/
|
|
520
522
|
redo(): Promise<void>;
|
|
523
|
+
setHomagIntelligence(homagIntelligence: HomagIntelligence): void;
|
|
524
|
+
newPosDataFromId(id: string): any;
|
|
525
|
+
sendToOM(withPrice?: boolean): Promise<void>;
|
|
526
|
+
fetchPrice(planId?: string): Promise<any>;
|
|
527
|
+
getRapiAccess(): RapiAccess;
|
|
521
528
|
}
|
|
@@ -7,7 +7,7 @@ export declare class ToolsCore extends Main {
|
|
|
7
7
|
protected setupDependencies(): void;
|
|
8
8
|
protected cleanUpGlobals(): void;
|
|
9
9
|
protected cleanUpDependencies(): void;
|
|
10
|
-
protected bootFinished(): void
|
|
10
|
+
protected bootFinished(): Promise<void>;
|
|
11
11
|
getApi(): RoomleToolsCore;
|
|
12
12
|
protected getContextName(): string;
|
|
13
13
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { RapiItem, RapiConfigurationEnhanced, Element, RapiTag } from './rapi-types';
|
|
2
|
+
import { default as RoomlePlanner } from '../planner-core/src/roomle-planner';
|
|
3
|
+
import { default as RoomleConfigurator } from '../configurator-core/src/roomle-configurator';
|
|
2
4
|
|
|
3
5
|
export declare const EXTERNAL_ID_PREFIX = "__ext__obj__#";
|
|
4
6
|
export type ExtObjId = `${typeof EXTERNAL_ID_PREFIX}${string}`;
|
|
@@ -17,4 +19,10 @@ export type ExternalTag = Partial<RapiTag> & Pick<RapiTag, 'label'> & {
|
|
|
17
19
|
id: ExtObjId;
|
|
18
20
|
};
|
|
19
21
|
export type ExternalGroupData = object | string | string[];
|
|
22
|
+
export type RoomlePlannerWithExtObjs = RoomlePlanner<['external-objects']>;
|
|
23
|
+
export type RoomlePlannerType = RoomlePlanner | RoomlePlannerWithExtObjs;
|
|
24
|
+
export type RoomleConfiguratorWithExtObjs = RoomleConfigurator<[
|
|
25
|
+
'external-objects'
|
|
26
|
+
]>;
|
|
27
|
+
export type RoomleConfiguratorType = RoomleConfigurator | RoomleConfiguratorWithExtObjs;
|
|
20
28
|
export {};
|
|
@@ -284,7 +284,7 @@ export interface KernelObjectConfiguration {
|
|
|
284
284
|
serializedDefinition: string;
|
|
285
285
|
uniqueId: string;
|
|
286
286
|
}
|
|
287
|
-
declare class KernelObjectConfigurationArray extends EmsArray<KernelObjectConfiguration> {
|
|
287
|
+
export declare class KernelObjectConfigurationArray extends EmsArray<KernelObjectConfiguration> {
|
|
288
288
|
}
|
|
289
289
|
export interface LightSourceConfiguration {
|
|
290
290
|
lightSourceAreaInSquareMeters: number;
|
package/src/common/components/collection-view/-utils/collection-view-dynamic-components.d.ts
CHANGED
|
@@ -2666,7 +2666,7 @@ declare const dynamicComponents: {
|
|
|
2666
2666
|
required: true;
|
|
2667
2667
|
};
|
|
2668
2668
|
}>, {
|
|
2669
|
-
api: import('vue').ShallowRef<
|
|
2669
|
+
api: import('vue').ShallowRef<RoomlePlannerWithExtObjs>;
|
|
2670
2670
|
}, {
|
|
2671
2671
|
scalingDirection: number;
|
|
2672
2672
|
}, {}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GridViewElement } from '../../configurator/components/grid-view/-utils/GridViewHelper';
|
|
2
2
|
import { MaterialsForObjects } from '../../planner/business-logic/rooms';
|
|
3
3
|
|
|
4
|
-
export declare const useStaticItemParameters: (api:
|
|
4
|
+
export declare const useStaticItemParameters: (api: RoomlePlannerWithExtObjs, materialRootTag?: string[] | string) => {
|
|
5
5
|
show: {
|
|
6
6
|
sizeControls: any;
|
|
7
7
|
colorControls: any;
|
|
@@ -65,7 +65,7 @@ export type WithRequired<T, K extends keyof T> = T & {
|
|
|
65
65
|
};
|
|
66
66
|
export declare const radToDeg: (rad: number) => number;
|
|
67
67
|
export declare const isValidPlanID: (planId: string) => boolean;
|
|
68
|
-
export declare const convertToUIValuesHelper: (valuesMM: KernelVector3, api:
|
|
68
|
+
export declare const convertToUIValuesHelper: (valuesMM: KernelVector3, api: RoomlePlannerWithExtObjs) => {
|
|
69
69
|
x: any;
|
|
70
70
|
y: any;
|
|
71
71
|
z: any;
|
|
@@ -2,7 +2,6 @@ import { RapiMaterial, RapiMaterialGroup, RapiTagForUi, RapiTexture } from '@roo
|
|
|
2
2
|
import { KernelPartListParameter, UiPossibleChildTag } from '@roomle/web-sdk/typings/kernel';
|
|
3
3
|
import { CollectionViewElement, TabCategory } from '../components/collection-view/-utils/types';
|
|
4
4
|
import { VariantsMap } from '../../configurator/embedding/types';
|
|
5
|
-
import { RoomleConfiguratorType } from './types';
|
|
6
5
|
import { Translator } from '../composables/use-intl';
|
|
7
6
|
|
|
8
7
|
export declare const DISABLED_PARAMETERS_ELEM_KEY = "disabled-parameters";
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { default as RoomleConfigurator } from '@roomle/web-sdk/configurator-core/src/roomle-configurator';
|
|
2
|
-
import { default as RoomlePlanner } from '@roomle/web-sdk/planner-core/src/roomle-planner';
|
|
3
1
|
import { ExternalConfiguration } from '@roomle/web-sdk/typings/external-objects';
|
|
4
2
|
import { KernelVector3 } from '@roomle/web-sdk/typings/kernel';
|
|
5
3
|
import { RapiConfigurationEnhanced, RapiPlanSnapshotGetData, RapiPlan } from '@roomle/web-sdk/typings/rapi-types';
|
|
@@ -147,9 +145,4 @@ export type TutorialData = {
|
|
|
147
145
|
[key: string]: CustomTutorialTranslation | CustomTutorialPlatform | CustomTutorialScope;
|
|
148
146
|
};
|
|
149
147
|
export type TooltipTarget<T> = ComponentPublicInstance<T>;
|
|
150
|
-
export type RoomlePlannerWithExtObjs = RoomlePlanner<['external-objects']>;
|
|
151
|
-
export type RoomleConfiguratorWithExtObjs = RoomleConfigurator<[
|
|
152
|
-
'external-objects'
|
|
153
|
-
]>;
|
|
154
|
-
export type RoomleConfiguratorType = RoomleConfigurator | RoomleConfiguratorWithExtObjs;
|
|
155
148
|
export type RapiCallbacks = Record<any, any>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { default as RapiAccess } from '@roomle/web-sdk/common-core/src/rapi-access';
|
|
2
2
|
import { GlbViewer } from '@roomle/web-sdk/glb-viewer-core/src/glb-viewer';
|
|
3
3
|
import { Configurator } from '@roomle/web-sdk/configurator-core/src/configurator';
|
|
4
|
-
import { Nullable
|
|
4
|
+
import { Nullable } from '../../common/utils/types';
|
|
5
5
|
import { UiInitData } from '../embedding/types';
|
|
6
6
|
import { GlobalInitDataDefinition } from '@roomle/web-sdk/common-core/src/utils/shims';
|
|
7
7
|
import { Planner } from '@roomle/web-sdk/planner-core/src/planner';
|
|
8
8
|
import { GlobalCallback } from '@roomle/web-sdk/common-core/src/services/global-callback';
|
|
9
9
|
import { default as IdbManager } from '@roomle/web-sdk/common-core/src/services/idb-manager';
|
|
10
|
+
import { RoomleConfiguratorType } from '@roomle/web-sdk/typings/external-objects';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* We use this class in a plugin so we
|
|
@@ -3,7 +3,8 @@ import { LoadResponse, SdkConnector } from '../business-logic/sdk-connector';
|
|
|
3
3
|
import { MessageHandler } from '../../../packages/common/src/utils/message-handler';
|
|
4
4
|
import { Store } from 'vuex';
|
|
5
5
|
import { StoreState } from '../../common/store';
|
|
6
|
-
import { Nullable
|
|
6
|
+
import { Nullable } from '../../common/utils/types';
|
|
7
|
+
import { RoomlePlannerWithExtObjs, RoomleConfiguratorType } from '@roomle/web-sdk/typings/external-objects';
|
|
7
8
|
import { Analytics } from '../../common/plugins/analytics';
|
|
8
9
|
import { default as RoomleGLBViewer } from '@roomle/web-sdk/glb-viewer-core/src/roomle-glb-viewer';
|
|
9
10
|
import { GlobalCallback } from '@roomle/web-sdk/common-core/src/services/global-callback';
|
|
@@ -4,10 +4,10 @@ import { CloseReason, ToggleCallback } from '../../../common/utils/types';
|
|
|
4
4
|
declare const _default: import('vue').DefineComponent<{
|
|
5
5
|
onClose: (_action: BUTTON_ACTIONS, _reason: CloseReason) => void;
|
|
6
6
|
onToggleExpand?: ToggleCallback;
|
|
7
|
-
api:
|
|
7
|
+
api: RoomlePlannerWithExtObjs;
|
|
8
8
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
9
9
|
onClose: (_action: BUTTON_ACTIONS, _reason: CloseReason) => void;
|
|
10
10
|
onToggleExpand?: ToggleCallback;
|
|
11
|
-
api:
|
|
11
|
+
api: RoomlePlannerWithExtObjs;
|
|
12
12
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
api:
|
|
2
|
+
api: RoomlePlannerWithExtObjs;
|
|
3
3
|
isConstructionElement?: boolean;
|
|
4
4
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
5
|
-
api:
|
|
5
|
+
api: RoomlePlannerWithExtObjs;
|
|
6
6
|
isConstructionElement?: boolean;
|
|
7
7
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
8
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
api:
|
|
2
|
+
api: RoomlePlannerWithExtObjs;
|
|
3
3
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
4
|
-
api:
|
|
4
|
+
api: RoomlePlannerWithExtObjs;
|
|
5
5
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
2
|
selectionElement: PlanElementViewModel;
|
|
3
|
-
api:
|
|
3
|
+
api: RoomlePlannerWithExtObjs;
|
|
4
4
|
productName: string;
|
|
5
5
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
6
6
|
selectionElement: PlanElementViewModel;
|
|
7
|
-
api:
|
|
7
|
+
api: RoomlePlannerWithExtObjs;
|
|
8
8
|
productName: string;
|
|
9
9
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
api:
|
|
2
|
+
api: RoomlePlannerWithExtObjs;
|
|
3
3
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
4
|
-
api:
|
|
4
|
+
api: RoomlePlannerWithExtObjs;
|
|
5
5
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
api:
|
|
2
|
+
api: RoomlePlannerWithExtObjs;
|
|
3
3
|
setValues: (values: KernelVector3) => Promise<void>;
|
|
4
4
|
getValues: () => KernelVector3;
|
|
5
5
|
labels: {
|
|
@@ -13,7 +13,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
13
13
|
z: boolean;
|
|
14
14
|
};
|
|
15
15
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
16
|
-
api:
|
|
16
|
+
api: RoomlePlannerWithExtObjs;
|
|
17
17
|
setValues: (values: KernelVector3) => Promise<void>;
|
|
18
18
|
getValues: () => KernelVector3;
|
|
19
19
|
labels: {
|
|
@@ -4,14 +4,14 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
4
4
|
onExpand: (event: MouseEvent) => void;
|
|
5
5
|
onCollapse?: (_payload: MouseEvent) => void;
|
|
6
6
|
isDesktop?: boolean;
|
|
7
|
-
api:
|
|
7
|
+
api: RoomlePlannerWithExtObjs;
|
|
8
8
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
9
9
|
groups: RapiTag[];
|
|
10
10
|
isExpanded?: boolean;
|
|
11
11
|
onExpand: (event: MouseEvent) => void;
|
|
12
12
|
onCollapse?: (_payload: MouseEvent) => void;
|
|
13
13
|
isDesktop?: boolean;
|
|
14
|
-
api:
|
|
14
|
+
api: RoomlePlannerWithExtObjs;
|
|
15
15
|
}> & Readonly<{}>, {
|
|
16
16
|
isDesktop: boolean;
|
|
17
17
|
isExpanded: boolean;
|
|
@@ -7,7 +7,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
7
7
|
required: true;
|
|
8
8
|
};
|
|
9
9
|
api: {
|
|
10
|
-
type: PropType<
|
|
10
|
+
type: PropType<RoomlePlannerWithExtObjs>;
|
|
11
11
|
required: true;
|
|
12
12
|
};
|
|
13
13
|
interactionHandler: {
|
|
@@ -2260,7 +2260,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2260
2260
|
required: true;
|
|
2261
2261
|
};
|
|
2262
2262
|
api: {
|
|
2263
|
-
type: PropType<
|
|
2263
|
+
type: PropType<RoomlePlannerWithExtObjs>;
|
|
2264
2264
|
required: true;
|
|
2265
2265
|
};
|
|
2266
2266
|
interactionHandler: {
|
|
@@ -2497,7 +2497,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
2497
2497
|
required: true;
|
|
2498
2498
|
};
|
|
2499
2499
|
}>, {
|
|
2500
|
-
api: import('vue').ShallowRef<
|
|
2500
|
+
api: import('vue').ShallowRef<RoomlePlannerWithExtObjs>;
|
|
2501
2501
|
}, {
|
|
2502
2502
|
scalingDirection: number;
|
|
2503
2503
|
}, {}, {
|
|
@@ -4851,24 +4851,24 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4851
4851
|
onExpand: (event: MouseEvent) => void;
|
|
4852
4852
|
onCollapse?: (_payload: MouseEvent) => void;
|
|
4853
4853
|
isDesktop?: boolean;
|
|
4854
|
-
api:
|
|
4854
|
+
api: RoomlePlannerWithExtObjs;
|
|
4855
4855
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
4856
4856
|
groups: RapiTag[];
|
|
4857
4857
|
isExpanded?: boolean;
|
|
4858
4858
|
onExpand: (event: MouseEvent) => void;
|
|
4859
4859
|
onCollapse?: (_payload: MouseEvent) => void;
|
|
4860
4860
|
isDesktop?: boolean;
|
|
4861
|
-
api:
|
|
4861
|
+
api: RoomlePlannerWithExtObjs;
|
|
4862
4862
|
}> & Readonly<{}>, {
|
|
4863
4863
|
isDesktop: boolean;
|
|
4864
4864
|
isExpanded: boolean;
|
|
4865
4865
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
4866
4866
|
LoadingSpinner: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
4867
4867
|
ProductPositions: import('vue').DefineComponent<{
|
|
4868
|
-
api:
|
|
4868
|
+
api: RoomlePlannerWithExtObjs;
|
|
4869
4869
|
isConstructionElement?: boolean;
|
|
4870
4870
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
4871
|
-
api:
|
|
4871
|
+
api: RoomlePlannerWithExtObjs;
|
|
4872
4872
|
isConstructionElement?: boolean;
|
|
4873
4873
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
4874
4874
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -19,7 +19,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
21
|
}>, {
|
|
22
|
-
api: ShallowRef<
|
|
22
|
+
api: ShallowRef<RoomlePlannerWithExtObjs>;
|
|
23
23
|
}, {
|
|
24
24
|
scalingDirection: number;
|
|
25
25
|
}, {}, {
|
|
@@ -5,11 +5,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
5
5
|
onClose: (_buttonAction: BUTTON_ACTIONS, _reason: CloseReason) => Promise<void>;
|
|
6
6
|
onToggleExpand?: () => void;
|
|
7
7
|
interactionHandler: PlanInteractionHandler;
|
|
8
|
-
api:
|
|
8
|
+
api: RoomlePlannerWithExtObjs;
|
|
9
9
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
10
10
|
onClose: (_buttonAction: BUTTON_ACTIONS, _reason: CloseReason) => Promise<void>;
|
|
11
11
|
onToggleExpand?: () => void;
|
|
12
12
|
interactionHandler: PlanInteractionHandler;
|
|
13
|
-
api:
|
|
13
|
+
api: RoomlePlannerWithExtObjs;
|
|
14
14
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
-
configuratorApi: import('vue').ShallowRef<
|
|
2
|
+
configuratorApi: import('vue').ShallowRef<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<
|
|
2
|
+
api: import('vue').ShallowRef<RoomlePlannerWithExtObjs>;
|
|
3
3
|
planInteractionHandler: import('vue').ShallowRef<PlanInteractionHandler>;
|
|
4
4
|
}, {}, {
|
|
5
5
|
isLoaded(): boolean;
|
|
@@ -25,4 +25,4 @@ export declare const CONFIGURATOR_SIDEBAR_STATE_KEYS: {
|
|
|
25
25
|
readonly SHOULD_SHOW_COLLECTION_VIEW_ELEMENT: "configurator_sidebar_show_collection_view_element";
|
|
26
26
|
};
|
|
27
27
|
export declare const matchProductListAndQuantity: (productList: UiPlanObject[]) => ProductListItem[];
|
|
28
|
-
export declare const fillPartList: (data: RapiItem | RapiConfiguration, partList: KernelPartList, hash: string, plannerApi:
|
|
28
|
+
export declare const fillPartList: (data: RapiItem | RapiConfiguration, partList: KernelPartList, hash: string, plannerApi: RoomlePlannerWithExtObjs, store: Store<StoreState>) => Promise<void>;
|