@roomle/embedding-lib 5.31.0 → 5.32.0
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 +62 -69
- package/package.json +1 -1
- package/packages/embedding-lib/src/examples/hi-single-object-configurator.d.ts +12 -0
- package/packages/embedding-lib/src/examples/utils/homag-intelligence/util.d.ts +1 -0
- package/packages/web-sdk/packages/common-core/src/configurator-kernel-access.d.ts +1 -2
- package/packages/web-sdk/packages/common-core/src/services/hdr-environment-loader.d.ts +2 -1
- package/packages/web-sdk/packages/common-core/src/utils/shims.d.ts +11 -0
- package/packages/web-sdk/packages/common-core/src/utils/threejs-utils.d.ts +4 -1
- package/packages/web-sdk/packages/common-core/src/view-model/configurator-plan-object-view-model.d.ts +1 -0
- package/packages/web-sdk/packages/common-core/src/webgl/baked-shadow-plane.d.ts +2 -2
- package/packages/web-sdk/packages/common-core/src/webgl/image-renderer.d.ts +1 -0
- package/packages/web-sdk/packages/common-core/src/webgl/mesh-generator.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/environment-definition.d.ts +4 -2
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/light-source-detection.d.ts +5 -4
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/pass/baked-ground-contact-shadow-pass.d.ts +3 -2
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/pass/gbuffer-render-pass.d.ts +2 -1
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/pass/ground-reflection-pass.d.ts +2 -1
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/pass/outline-pass.d.ts +3 -2
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/pass/render-pass.d.ts +3 -2
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/pass/scene-render-pass.d.ts +2 -1
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/pass/screen-space-shadow-map-pass.d.ts +2 -1
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/pass/shadow-and-ao-pass.d.ts +2 -1
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/pmrem-environment.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/render-pass-manager.d.ts +8 -5
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/render-utility.d.ts +8 -7
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/scene-renderer.d.ts +5 -2
- package/packages/web-sdk/packages/common-core/src/webgl/renderer/shader-utility.d.ts +3 -3
- package/packages/web-sdk/packages/common-core/src/webgl/roomle-component-factory.d.ts +1 -1
- package/packages/web-sdk/packages/common-core/src/webgl/roomle-webgl-renderer.d.ts +4 -2
- package/packages/web-sdk/packages/configurator-core/src/webgl/configurator-scene-manager.d.ts +3 -2
- package/packages/web-sdk/packages/homag-intelligence/src/callbacks.d.ts +0 -33
- package/packages/web-sdk/packages/homag-intelligence/src/debug-logging.d.ts +9 -3
- package/packages/web-sdk/packages/homag-intelligence/src/external-object-api-callbacks.d.ts +10 -1
- package/packages/web-sdk/packages/homag-intelligence/src/external-object-api.d.ts +17 -3
- package/packages/web-sdk/packages/homag-intelligence/src/glue-logic.d.ts +31 -9
- package/packages/web-sdk/packages/homag-intelligence/src/model/oc-scripts-domain.model.d.ts +9 -3
- package/packages/web-sdk/packages/material-viewer/src/webgl/material-viewer-scene-manager.d.ts +1 -0
- package/packages/web-sdk/packages/planner-core/src/roomle-planner.d.ts +28 -9
- package/packages/web-sdk/packages/planner-core/src/services/planner-kernel-access.d.ts +4 -1
- package/packages/web-sdk/packages/planner-core/src/view-model/measurement-line-plan-element-view-model.d.ts +2 -2
- package/packages/web-sdk/packages/planner-core/src/view-model/plan-view-model.d.ts +2 -0
- package/packages/web-sdk/packages/planner-core/src/webgl/planner-mesh-generator.d.ts +1 -1
- package/packages/web-sdk/packages/planner-core/src/webgl/planner-scene-manager.d.ts +5 -1
- package/packages/web-sdk/packages/typings/kernel.d.ts +24 -14
- package/packages/web-sdk/packages/typings/planner.d.ts +6 -0
- package/roomle-embedding-lib.es.js +2 -1
- package/roomle-embedding-lib.es.min.js +1 -1
- package/roomle-embedding-lib.umd.js +3 -3
- package/roomle-embedding-lib.umd.min.js +1 -1
- package/src/common/components/overlays/PartList.vue.d.ts +54 -3
- package/src/common/composables/use-shared-sidebar-setup.d.ts +1 -1
- package/src/common/store/index.d.ts +2 -4
- package/src/configurator/business-logic/sdk-connector.d.ts +6 -0
- package/src/configurator/embedding/exposed-api.d.ts +6 -0
- package/src/configurator/store/core-data-store.d.ts +55 -4
- package/src/planner/components/overlays/rooms/RoomGeneralSettings.vue.d.ts +4 -0
- package/src/planner/utils/planner-sidebar.d.ts +1 -2
- package/src/configurator/store/core-state.d.ts +0 -21
|
@@ -33,14 +33,31 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
33
33
|
}>;
|
|
34
34
|
currencySymbol: import('vue').Ref<string, string>;
|
|
35
35
|
price: import('vue').Ref<number, number>;
|
|
36
|
+
label: import('vue').Ref<string, string>;
|
|
37
|
+
componentHasChildren: import('vue').Ref<boolean, boolean>;
|
|
38
|
+
componentRuntimeId: import('vue').Ref<number, number>;
|
|
39
|
+
catalogLabel: import('vue').Ref<string, string>;
|
|
40
|
+
initialHash: import('vue').Ref<string, string>;
|
|
41
|
+
currentHash: import('vue').Ref<string, string>;
|
|
42
|
+
currentPlanElement: import('vue').Ref<UiPlanObject, UiPlanObject>;
|
|
36
43
|
currentPrice: import('vue').ComputedRef<string>;
|
|
37
44
|
hasNonGroupAddons: import('vue').ComputedRef<boolean>;
|
|
45
|
+
safeLabel: import('vue').ComputedRef<string>;
|
|
46
|
+
hasConfigurationChange: import('vue').ComputedRef<boolean>;
|
|
38
47
|
updatePrice: (priceData: {
|
|
39
48
|
currencySymbol: string;
|
|
40
49
|
price: number;
|
|
41
50
|
}) => void;
|
|
42
51
|
setPiniaVuexReference: (store: Store<import('../../store').StoreState>) => void;
|
|
43
|
-
|
|
52
|
+
setLabel: (newLabel: string) => void;
|
|
53
|
+
setCatalogLabel: (newLabel: string) => void;
|
|
54
|
+
setComponentHasChildren: (hasChildren: boolean) => void;
|
|
55
|
+
setComponentRuntimeId: (runtimeId: number) => void;
|
|
56
|
+
setInitialHash: (hash: string) => void;
|
|
57
|
+
setCurrentHash: (hash: string) => void;
|
|
58
|
+
setCurrentPlanElement: (planElement: any) => void;
|
|
59
|
+
updateHash: (hash: string) => void;
|
|
60
|
+
}, "label" | "parameters" | "groups" | "addons" | "partList" | "bounds" | "currencySymbol" | "price" | "componentHasChildren" | "componentRuntimeId" | "catalogLabel" | "initialHash" | "currentHash" | "currentPlanElement">, Pick<{
|
|
44
61
|
groups: import('vue').Ref<{
|
|
45
62
|
parameters: any[];
|
|
46
63
|
}[], import('../../../configurator/store/core-data-store').ParameterGroup[] | {
|
|
@@ -60,14 +77,31 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
60
77
|
}>;
|
|
61
78
|
currencySymbol: import('vue').Ref<string, string>;
|
|
62
79
|
price: import('vue').Ref<number, number>;
|
|
80
|
+
label: import('vue').Ref<string, string>;
|
|
81
|
+
componentHasChildren: import('vue').Ref<boolean, boolean>;
|
|
82
|
+
componentRuntimeId: import('vue').Ref<number, number>;
|
|
83
|
+
catalogLabel: import('vue').Ref<string, string>;
|
|
84
|
+
initialHash: import('vue').Ref<string, string>;
|
|
85
|
+
currentHash: import('vue').Ref<string, string>;
|
|
86
|
+
currentPlanElement: import('vue').Ref<UiPlanObject, UiPlanObject>;
|
|
63
87
|
currentPrice: import('vue').ComputedRef<string>;
|
|
64
88
|
hasNonGroupAddons: import('vue').ComputedRef<boolean>;
|
|
89
|
+
safeLabel: import('vue').ComputedRef<string>;
|
|
90
|
+
hasConfigurationChange: import('vue').ComputedRef<boolean>;
|
|
65
91
|
updatePrice: (priceData: {
|
|
66
92
|
currencySymbol: string;
|
|
67
93
|
price: number;
|
|
68
94
|
}) => void;
|
|
69
95
|
setPiniaVuexReference: (store: Store<import('../../store').StoreState>) => void;
|
|
70
|
-
|
|
96
|
+
setLabel: (newLabel: string) => void;
|
|
97
|
+
setCatalogLabel: (newLabel: string) => void;
|
|
98
|
+
setComponentHasChildren: (hasChildren: boolean) => void;
|
|
99
|
+
setComponentRuntimeId: (runtimeId: number) => void;
|
|
100
|
+
setInitialHash: (hash: string) => void;
|
|
101
|
+
setCurrentHash: (hash: string) => void;
|
|
102
|
+
setCurrentPlanElement: (planElement: any) => void;
|
|
103
|
+
updateHash: (hash: string) => void;
|
|
104
|
+
}, "currentPrice" | "hasNonGroupAddons" | "safeLabel" | "hasConfigurationChange">, Pick<{
|
|
71
105
|
groups: import('vue').Ref<{
|
|
72
106
|
parameters: any[];
|
|
73
107
|
}[], import('../../../configurator/store/core-data-store').ParameterGroup[] | {
|
|
@@ -87,14 +121,31 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
87
121
|
}>;
|
|
88
122
|
currencySymbol: import('vue').Ref<string, string>;
|
|
89
123
|
price: import('vue').Ref<number, number>;
|
|
124
|
+
label: import('vue').Ref<string, string>;
|
|
125
|
+
componentHasChildren: import('vue').Ref<boolean, boolean>;
|
|
126
|
+
componentRuntimeId: import('vue').Ref<number, number>;
|
|
127
|
+
catalogLabel: import('vue').Ref<string, string>;
|
|
128
|
+
initialHash: import('vue').Ref<string, string>;
|
|
129
|
+
currentHash: import('vue').Ref<string, string>;
|
|
130
|
+
currentPlanElement: import('vue').Ref<UiPlanObject, UiPlanObject>;
|
|
90
131
|
currentPrice: import('vue').ComputedRef<string>;
|
|
91
132
|
hasNonGroupAddons: import('vue').ComputedRef<boolean>;
|
|
133
|
+
safeLabel: import('vue').ComputedRef<string>;
|
|
134
|
+
hasConfigurationChange: import('vue').ComputedRef<boolean>;
|
|
92
135
|
updatePrice: (priceData: {
|
|
93
136
|
currencySymbol: string;
|
|
94
137
|
price: number;
|
|
95
138
|
}) => void;
|
|
96
139
|
setPiniaVuexReference: (store: Store<import('../../store').StoreState>) => void;
|
|
97
|
-
|
|
140
|
+
setLabel: (newLabel: string) => void;
|
|
141
|
+
setCatalogLabel: (newLabel: string) => void;
|
|
142
|
+
setComponentHasChildren: (hasChildren: boolean) => void;
|
|
143
|
+
setComponentRuntimeId: (runtimeId: number) => void;
|
|
144
|
+
setInitialHash: (hash: string) => void;
|
|
145
|
+
setCurrentHash: (hash: string) => void;
|
|
146
|
+
setCurrentPlanElement: (planElement: any) => void;
|
|
147
|
+
updateHash: (hash: string) => void;
|
|
148
|
+
}, "setPiniaVuexReference" | "updatePrice" | "setLabel" | "setCatalogLabel" | "setComponentHasChildren" | "setComponentRuntimeId" | "setInitialHash" | "setCurrentHash" | "setCurrentPlanElement" | "updateHash">>;
|
|
98
149
|
store: any;
|
|
99
150
|
label: import('vue').ComputedRef<any>;
|
|
100
151
|
price: import('vue').ComputedRef<string>;
|
|
@@ -51,7 +51,7 @@ export declare const useSharedSidebarSetup: (topBar: Ref<HTMLElement> | null) =>
|
|
|
51
51
|
showArButton: import('vue').ComputedRef<boolean>;
|
|
52
52
|
showConfigureInRoomButton: import('vue').ComputedRef<boolean>;
|
|
53
53
|
showPartlistButton: import('vue').ComputedRef<boolean>;
|
|
54
|
-
showMultiselectButton: import('vue').ComputedRef<
|
|
54
|
+
showMultiselectButton: import('vue').ComputedRef<boolean>;
|
|
55
55
|
enableMultiselectButton: import('vue').ComputedRef<boolean>;
|
|
56
56
|
showDimensionsButton: import('vue').ComputedRef<boolean>;
|
|
57
57
|
showFullscreenButton: import('vue').ComputedRef<boolean>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CoreState } from '../../configurator/store/core-state';
|
|
2
1
|
import { BUTTON_ACTIONS, UiState } from '../../configurator/store/ui-state';
|
|
3
2
|
import { PlannerUiState } from '../../planner/store/planner-ui-state';
|
|
4
3
|
import { Nullable } from '../utils/types';
|
|
@@ -14,13 +13,12 @@ export interface SharedUiState {
|
|
|
14
13
|
topBarSelectedActions: BUTTON_ACTIONS[];
|
|
15
14
|
}
|
|
16
15
|
export declare const MUTATIONS: {
|
|
17
|
-
[x: string]: `UI_STATE_${string}` | `PLANNER_UI_STATE_${string}` | `
|
|
16
|
+
[x: string]: `UI_STATE_${string}` | `PLANNER_UI_STATE_${string}` | `PLANNER_CORE_STATE_${string}`;
|
|
18
17
|
};
|
|
19
18
|
export declare const ACTIONS: {
|
|
20
|
-
[x: string]: `UI_STATE_${string}` | `PLANNER_UI_STATE_${string}` | `
|
|
19
|
+
[x: string]: `UI_STATE_${string}` | `PLANNER_UI_STATE_${string}` | `PLANNER_CORE_STATE_${string}`;
|
|
21
20
|
};
|
|
22
21
|
export interface StoreState {
|
|
23
|
-
coreState: CoreState;
|
|
24
22
|
uiState: UiState;
|
|
25
23
|
plannerUiState: PlannerUiState;
|
|
26
24
|
plannerCoreData: PlannerCoreData;
|
|
@@ -23,6 +23,7 @@ import { Translator } from '../../common/composables/use-intl';
|
|
|
23
23
|
import { Libs } from '../plugins/libs-plugin';
|
|
24
24
|
import { ExternalConfiguration, RoomleConfiguratorType, RoomlePlannerWithExtObjs } from '@roomle/web-sdk/typings/external-objects';
|
|
25
25
|
import { default as PlanElementViewModel } from '@roomle/web-sdk/common-core/src/view-model/plan-element-view-model';
|
|
26
|
+
import { LoadExternalObjectGroupResult } from '@roomle/web-sdk/homag-intelligence/src/external-object-api';
|
|
26
27
|
|
|
27
28
|
export declare enum SDK_MODULES {
|
|
28
29
|
VIEWER = 0,
|
|
@@ -91,6 +92,11 @@ export declare class SdkConnector {
|
|
|
91
92
|
hasActivePackage(): Promise<boolean>;
|
|
92
93
|
isCorrectConfiguratorDomain(): Promise<boolean>;
|
|
93
94
|
private _createPlanAndSelectObj;
|
|
95
|
+
/**
|
|
96
|
+
* Load an external object configuration
|
|
97
|
+
* @param data
|
|
98
|
+
*/
|
|
99
|
+
loadExternalObject(data?: object): Promise<Nullable<LoadExternalObjectGroupResult[]>>;
|
|
94
100
|
/**
|
|
95
101
|
* Load a object which can be one of the following:
|
|
96
102
|
* - Component (use your component id and prefix it with 'component@', e.g. component@demoCatalogId:externalMeshes)
|
|
@@ -19,6 +19,7 @@ import { CustomViewSettingsForIframe, PossibleCustomViews } from './types';
|
|
|
19
19
|
import { default as RapiAccess } from '@roomle/web-sdk/common-core/src/rapi-access';
|
|
20
20
|
import { ID_TYPE } from '@roomle/web-sdk/planner-core/src/roomle-planner';
|
|
21
21
|
import { RapiId } from '@roomle/web-sdk/typings/rapi-types';
|
|
22
|
+
import { LoadExternalObjectGroupResult } from '@roomle/web-sdk/homag-intelligence/src/external-object-api';
|
|
22
23
|
|
|
23
24
|
export declare class ExposedApi {
|
|
24
25
|
private _sdk;
|
|
@@ -44,6 +45,11 @@ export declare class ExposedApi {
|
|
|
44
45
|
* @param id database ID of the object you want to load
|
|
45
46
|
*/
|
|
46
47
|
loadObject(id: string): Promise<Nullable<LoadResponse>>;
|
|
48
|
+
/**
|
|
49
|
+
* call this method to load the object you want into the 3d Scene
|
|
50
|
+
* @param data the external object configuration
|
|
51
|
+
*/
|
|
52
|
+
loadExternalObject(data: object): Promise<Nullable<LoadExternalObjectGroupResult[]>>;
|
|
47
53
|
/**
|
|
48
54
|
* Calling this method while dragging an item in from a catalog (or external catalog)
|
|
49
55
|
* will cancel the drag-in and remove the item from the scene.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StoreState } from '../../common/store';
|
|
2
|
-
import { KernelParameterGroup, UiKernelParameter } from '@roomle/web-sdk/typings/kernel';
|
|
2
|
+
import { KernelParameterGroup, UiKernelParameter, UiPlanObject } from '@roomle/web-sdk/typings/kernel';
|
|
3
3
|
import { KernelBoundsFormatted } from '../../common/utils/helper';
|
|
4
4
|
|
|
5
5
|
export interface ParameterGroup extends KernelParameterGroup {
|
|
@@ -25,14 +25,31 @@ export declare const useCoreDataStore: import('pinia').StoreDefinition<"coreData
|
|
|
25
25
|
}>;
|
|
26
26
|
currencySymbol: import('vue').Ref<string, string>;
|
|
27
27
|
price: import('vue').Ref<number, number>;
|
|
28
|
+
label: import('vue').Ref<string, string>;
|
|
29
|
+
componentHasChildren: import('vue').Ref<boolean, boolean>;
|
|
30
|
+
componentRuntimeId: import('vue').Ref<number, number>;
|
|
31
|
+
catalogLabel: import('vue').Ref<string, string>;
|
|
32
|
+
initialHash: import('vue').Ref<string, string>;
|
|
33
|
+
currentHash: import('vue').Ref<string, string>;
|
|
34
|
+
currentPlanElement: import('vue').Ref<UiPlanObject, UiPlanObject>;
|
|
28
35
|
currentPrice: import('vue').ComputedRef<string>;
|
|
29
36
|
hasNonGroupAddons: import('vue').ComputedRef<boolean>;
|
|
37
|
+
safeLabel: import('vue').ComputedRef<string>;
|
|
38
|
+
hasConfigurationChange: import('vue').ComputedRef<boolean>;
|
|
30
39
|
updatePrice: (priceData: {
|
|
31
40
|
currencySymbol: string;
|
|
32
41
|
price: number;
|
|
33
42
|
}) => void;
|
|
34
43
|
setPiniaVuexReference: (store: Store<StoreState>) => void;
|
|
35
|
-
|
|
44
|
+
setLabel: (newLabel: string) => void;
|
|
45
|
+
setCatalogLabel: (newLabel: string | null) => void;
|
|
46
|
+
setComponentHasChildren: (hasChildren: boolean) => void;
|
|
47
|
+
setComponentRuntimeId: (runtimeId: number | null) => void;
|
|
48
|
+
setInitialHash: (hash: string | null) => void;
|
|
49
|
+
setCurrentHash: (hash: string | null) => void;
|
|
50
|
+
setCurrentPlanElement: (planElement: UiPlanObject | null) => void;
|
|
51
|
+
updateHash: (hash: string) => void;
|
|
52
|
+
}, "label" | "parameters" | "groups" | "addons" | "partList" | "bounds" | "currencySymbol" | "price" | "componentHasChildren" | "componentRuntimeId" | "catalogLabel" | "initialHash" | "currentHash" | "currentPlanElement">, Pick<{
|
|
36
53
|
groups: import('vue').Ref<{
|
|
37
54
|
parameters: any[];
|
|
38
55
|
}[], ParameterGroup[] | {
|
|
@@ -52,14 +69,31 @@ export declare const useCoreDataStore: import('pinia').StoreDefinition<"coreData
|
|
|
52
69
|
}>;
|
|
53
70
|
currencySymbol: import('vue').Ref<string, string>;
|
|
54
71
|
price: import('vue').Ref<number, number>;
|
|
72
|
+
label: import('vue').Ref<string, string>;
|
|
73
|
+
componentHasChildren: import('vue').Ref<boolean, boolean>;
|
|
74
|
+
componentRuntimeId: import('vue').Ref<number, number>;
|
|
75
|
+
catalogLabel: import('vue').Ref<string, string>;
|
|
76
|
+
initialHash: import('vue').Ref<string, string>;
|
|
77
|
+
currentHash: import('vue').Ref<string, string>;
|
|
78
|
+
currentPlanElement: import('vue').Ref<UiPlanObject, UiPlanObject>;
|
|
55
79
|
currentPrice: import('vue').ComputedRef<string>;
|
|
56
80
|
hasNonGroupAddons: import('vue').ComputedRef<boolean>;
|
|
81
|
+
safeLabel: import('vue').ComputedRef<string>;
|
|
82
|
+
hasConfigurationChange: import('vue').ComputedRef<boolean>;
|
|
57
83
|
updatePrice: (priceData: {
|
|
58
84
|
currencySymbol: string;
|
|
59
85
|
price: number;
|
|
60
86
|
}) => void;
|
|
61
87
|
setPiniaVuexReference: (store: Store<StoreState>) => void;
|
|
62
|
-
|
|
88
|
+
setLabel: (newLabel: string) => void;
|
|
89
|
+
setCatalogLabel: (newLabel: string | null) => void;
|
|
90
|
+
setComponentHasChildren: (hasChildren: boolean) => void;
|
|
91
|
+
setComponentRuntimeId: (runtimeId: number | null) => void;
|
|
92
|
+
setInitialHash: (hash: string | null) => void;
|
|
93
|
+
setCurrentHash: (hash: string | null) => void;
|
|
94
|
+
setCurrentPlanElement: (planElement: UiPlanObject | null) => void;
|
|
95
|
+
updateHash: (hash: string) => void;
|
|
96
|
+
}, "currentPrice" | "hasNonGroupAddons" | "safeLabel" | "hasConfigurationChange">, Pick<{
|
|
63
97
|
groups: import('vue').Ref<{
|
|
64
98
|
parameters: any[];
|
|
65
99
|
}[], ParameterGroup[] | {
|
|
@@ -79,12 +113,29 @@ export declare const useCoreDataStore: import('pinia').StoreDefinition<"coreData
|
|
|
79
113
|
}>;
|
|
80
114
|
currencySymbol: import('vue').Ref<string, string>;
|
|
81
115
|
price: import('vue').Ref<number, number>;
|
|
116
|
+
label: import('vue').Ref<string, string>;
|
|
117
|
+
componentHasChildren: import('vue').Ref<boolean, boolean>;
|
|
118
|
+
componentRuntimeId: import('vue').Ref<number, number>;
|
|
119
|
+
catalogLabel: import('vue').Ref<string, string>;
|
|
120
|
+
initialHash: import('vue').Ref<string, string>;
|
|
121
|
+
currentHash: import('vue').Ref<string, string>;
|
|
122
|
+
currentPlanElement: import('vue').Ref<UiPlanObject, UiPlanObject>;
|
|
82
123
|
currentPrice: import('vue').ComputedRef<string>;
|
|
83
124
|
hasNonGroupAddons: import('vue').ComputedRef<boolean>;
|
|
125
|
+
safeLabel: import('vue').ComputedRef<string>;
|
|
126
|
+
hasConfigurationChange: import('vue').ComputedRef<boolean>;
|
|
84
127
|
updatePrice: (priceData: {
|
|
85
128
|
currencySymbol: string;
|
|
86
129
|
price: number;
|
|
87
130
|
}) => void;
|
|
88
131
|
setPiniaVuexReference: (store: Store<StoreState>) => void;
|
|
89
|
-
|
|
132
|
+
setLabel: (newLabel: string) => void;
|
|
133
|
+
setCatalogLabel: (newLabel: string | null) => void;
|
|
134
|
+
setComponentHasChildren: (hasChildren: boolean) => void;
|
|
135
|
+
setComponentRuntimeId: (runtimeId: number | null) => void;
|
|
136
|
+
setInitialHash: (hash: string | null) => void;
|
|
137
|
+
setCurrentHash: (hash: string | null) => void;
|
|
138
|
+
setCurrentPlanElement: (planElement: UiPlanObject | null) => void;
|
|
139
|
+
updateHash: (hash: string) => void;
|
|
140
|
+
}, "setPiniaVuexReference" | "updatePrice" | "setLabel" | "setCatalogLabel" | "setComponentHasChildren" | "setComponentRuntimeId" | "setInitialHash" | "setCurrentHash" | "setCurrentPlanElement" | "updateHash">>;
|
|
90
141
|
export type CoreDataStore = ReturnType<typeof useCoreDataStore>;
|
|
@@ -4,11 +4,15 @@ import { BUTTON_ACTIONS } from '../../../../configurator/store/ui-state';
|
|
|
4
4
|
declare const _default: import('vue').DefineComponent<{
|
|
5
5
|
onClose: (_buttonAction: BUTTON_ACTIONS, _reason: CloseReason) => Promise<void>;
|
|
6
6
|
onToggleExpand?: () => void;
|
|
7
|
+
onExpand?: () => void;
|
|
8
|
+
onCollapse?: () => void;
|
|
7
9
|
interactionHandler: PlanInteractionHandler;
|
|
8
10
|
api: RoomlePlanner;
|
|
9
11
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
10
12
|
onClose: (_buttonAction: BUTTON_ACTIONS, _reason: CloseReason) => Promise<void>;
|
|
11
13
|
onToggleExpand?: () => void;
|
|
14
|
+
onExpand?: () => void;
|
|
15
|
+
onCollapse?: () => void;
|
|
12
16
|
interactionHandler: PlanInteractionHandler;
|
|
13
17
|
api: RoomlePlanner;
|
|
14
18
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { UiPlanObject } from '@roomle/web-sdk/typings/kernel';
|
|
2
|
-
import { StoreState } from '../../common/store';
|
|
3
2
|
import { RapiConfiguration, RapiItem } from '@roomle/web-sdk/typings/rapi-types';
|
|
4
3
|
import { Ref } from 'vue';
|
|
5
4
|
|
|
@@ -16,4 +15,4 @@ export declare const PLANNER_SIDEBAR_STATE_KEYS: {
|
|
|
16
15
|
readonly LAYER_STATE: "planner_sidebar_layer_state";
|
|
17
16
|
};
|
|
18
17
|
export declare const matchProductListAndQuantity: (productList: UiPlanObject[]) => ProductListItem[];
|
|
19
|
-
export declare const fillPartList: (data: RapiItem | RapiConfiguration, partList: KernelPartList, hash: string, plannerApi: RoomlePlannerWithExtObjs
|
|
18
|
+
export declare const fillPartList: (data: RapiItem | RapiConfiguration, partList: KernelPartList, hash: string, plannerApi: RoomlePlannerWithExtObjs) => Promise<void>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Module } from 'vuex';
|
|
2
|
-
import { StoreState } from '../../common/store';
|
|
3
|
-
import { Nullable } from '../../common/utils/types';
|
|
4
|
-
import { EnsurePrefix } from './ui-state';
|
|
5
|
-
import { UiPlanObject } from '@roomle/web-sdk/typings/kernel';
|
|
6
|
-
|
|
7
|
-
type CoreStateIdentifier = EnsurePrefix<'CORE_STATE_'>;
|
|
8
|
-
export interface CoreState {
|
|
9
|
-
label: string;
|
|
10
|
-
componentHasChildren: boolean;
|
|
11
|
-
componentRuntimeId: Nullable<number>;
|
|
12
|
-
catalogLabel: Nullable<string>;
|
|
13
|
-
initialHash: Nullable<string>;
|
|
14
|
-
currentHash: Nullable<string>;
|
|
15
|
-
currentPlanElement: Nullable<UiPlanObject>;
|
|
16
|
-
}
|
|
17
|
-
export declare const CORE_STATE_MUTATIONS: CoreStateIdentifier;
|
|
18
|
-
export declare const CORE_STATE_ACTIONS: CoreStateIdentifier;
|
|
19
|
-
export declare const CORE_STATE_GETTERS: CoreStateIdentifier;
|
|
20
|
-
export declare const coreState: Module<CoreState, StoreState>;
|
|
21
|
-
export {};
|