@roomle/embedding-lib 5.13.0 → 5.14.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 +42 -2
- package/{drag-in-Do47zdKL.mjs → drag-in-C6gLvrDx.mjs} +2 -2
- package/{drag-in-CYmR1HFI.mjs → drag-in-w_TrusdP.mjs} +1 -1
- package/{from-custom-view-DYkvyOw3.mjs → from-custom-view-BEcgFlAL.mjs} +1 -1
- package/{from-custom-view-BVWf7SQ7.mjs → from-custom-view-jmf3K6AT.mjs} +1 -1
- package/from-website-Ckh5GB2h.mjs +4 -0
- package/{from-website-DDMDPp-F.mjs → from-website-VCMg3teu.mjs} +2 -1
- package/package.json +2 -2
- package/packages/common/src/utils/init-data.d.ts +1 -0
- package/packages/embedding-lib/src/connector.d.ts +1 -1
- package/packages/embedding-lib/src/embedding-lib.d.ts +1 -1
- package/roomle-embedding-lib.es.js +9 -8
- package/roomle-embedding-lib.es.min.js +1 -1
- package/roomle-embedding-lib.umd.js +2 -2
- package/roomle-embedding-lib.umd.min.js +3 -3
- package/src/common/business-logic/event-emitter.d.ts +4 -1
- package/src/common/components/collection-view/-utils/collection-view-dynamic-components.d.ts +86 -965
- package/src/common/components/overlays/PartList.vue.d.ts +3 -4
- package/src/common/components/overlays/bottom-bar/CloseView.vue.d.ts +105 -60
- package/src/common/components/overlays/part-list/partlist-setup.d.ts +3 -4
- package/src/common/composables/use-configurator-api.d.ts +2 -2
- package/src/common/composables/use-core-instances.d.ts +2 -2
- package/src/common/composables/use-event-emitter-listener.d.ts +9 -1
- package/src/common/composables/use-open-close-anim.d.ts +9 -0
- package/src/common/composables/use-static-item-parameters.d.ts +2 -2
- package/src/common/utils/helper.d.ts +6 -7
- package/src/common/utils/parameters.d.ts +2 -2
- package/src/common/utils/types.d.ts +9 -1
- package/src/common/utils/ui-actions.d.ts +2 -3
- package/src/configurator/business-logic/roomle-sdk-wrapper.d.ts +3 -4
- package/src/configurator/business-logic/sdk-connector-configurator.d.ts +3 -4
- package/src/configurator/business-logic/sdk-connector.d.ts +7 -8
- package/src/configurator/components/Overlays.vue.d.ts +614 -356
- package/src/configurator/components/grid-view/-utils/ExpandedView.vue.d.ts +2 -2
- package/src/configurator/components/grid-view/-utils/GridViewHelper.d.ts +2 -2
- package/src/configurator/components/grid-view/GridView.vue.d.ts +25 -319
- package/src/configurator/components/overlays/DeleteWarning.vue.d.ts +102 -59
- package/src/configurator/components/overlays/ElementDisabled.vue.d.ts +102 -59
- package/src/configurator/components/overlays/GenericError.vue.d.ts +102 -59
- package/src/configurator/components/overlays/NoDocking.vue.d.ts +102 -59
- package/src/configurator/components/overlays/VariantWarning.vue.d.ts +102 -59
- package/src/configurator/components/overlays/ar/OpenAR.vue.d.ts +2 -2
- package/src/configurator/components/parameters/types/MaterialParameter.vue.d.ts +27 -320
- package/src/configurator/components/parameters/types/ProductVariant.vue.d.ts +27 -320
- package/src/configurator/components/parameters/types/ThumbnailsParameter.vue.d.ts +27 -320
- package/src/configurator/components/utils/PopUp.vue.d.ts +42 -72
- package/src/configurator/embedding/exposed-api.d.ts +7 -4
- package/src/configurator/embedding/exposed-callbacks.d.ts +4 -1
- package/src/configurator/embedding/helper.d.ts +4 -3
- package/src/configurator/embedding/types.d.ts +5 -0
- package/src/planner/business-logic/sdk-connector-planner.d.ts +5 -5
- package/src/planner/components/ObjectList.vue.d.ts +4 -2
- package/src/planner/components/measurements/MeasurementDisplayComponent.vue.d.ts +4 -0
- package/src/planner/components/measurements/ShowWallAtticMeasurements.vue.d.ts +8 -0
- package/src/planner/components/measurements/utils/AtticLabel.vue.d.ts +24 -0
- package/src/planner/components/measurements/utils/AtticLine.vue.d.ts +26 -0
- package/src/planner/components/overlays/ProductList.vue.d.ts +2 -2
- package/src/planner/components/overlays/ProductSettings.vue.d.ts +3 -4
- package/src/planner/components/overlays/product-list/ProductListEntry.vue.d.ts +2 -2
- package/src/planner/components/overlays/product-list/ProductListType.vue.d.ts +2 -2
- package/src/planner/components/overlays/product-settings/ProductPositions.vue.d.ts +3 -3
- package/src/planner/components/overlays/product-settings/ProductRotation.vue.d.ts +3 -3
- package/src/planner/components/overlays/product-settings/ProductSettingsInfos.vue.d.ts +3 -3
- package/src/planner/components/overlays/product-settings/ProductSize.vue.d.ts +3 -3
- package/src/planner/components/overlays/product-settings/ProductXYZChanger.vue.d.ts +3 -3
- package/src/planner/components/overlays/rooms/ConstructionVariants.vue.d.ts +28 -321
- package/src/planner/components/overlays/rooms/DoorParametersSetting.vue.d.ts +33 -326
- package/src/planner/components/overlays/rooms/ElementLengthScaling.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/FloorColor.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/RoomGeneralSettings.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/RoomsList.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/SlopingRoof.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/SlopingRoofDirection.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/SlopingRoofDirectionTooltip.vue.d.ts +2 -0
- package/src/planner/components/overlays/rooms/SlopingRoofTooltip.vue.d.ts +2 -0
- package/src/planner/components/overlays/rooms/WallGeneralSettings.vue.d.ts +2 -2
- package/src/planner/components/overlays/rooms/WindowParametersSetting.vue.d.ts +3 -4
- package/src/planner/components/utils/AssureConfiguratorHandlers.vue.d.ts +1 -1
- package/src/planner/components/utils/AssureSdkHandlers.vue.d.ts +1 -1
- package/src/planner/utils/planner-sidebar.d.ts +2 -2
- package/from-website-Dx2SUftr.mjs +0 -4
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { EventBus } from '../../business-logic/event-bus';
|
|
3
|
-
import { CloseReason, ToggleCallback } from '../../utils/types';
|
|
3
|
+
import { CloseReason, RoomlePlannerWithExtObjs, ToggleCallback } from '../../utils/types';
|
|
4
4
|
import { SelectionPayload } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner-ui-callback';
|
|
5
|
-
import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
6
5
|
import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
7
6
|
|
|
8
7
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -12,7 +11,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
12
11
|
};
|
|
13
12
|
icToggleEvent: PropType<EventBus<ToggleCallback>>;
|
|
14
13
|
api: {
|
|
15
|
-
type: PropType<
|
|
14
|
+
type: PropType<RoomlePlannerWithExtObjs | RoomleConfigurator<readonly []>>;
|
|
16
15
|
required: true;
|
|
17
16
|
};
|
|
18
17
|
}>, {
|
|
@@ -39,7 +38,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
39
38
|
};
|
|
40
39
|
icToggleEvent: PropType<EventBus<ToggleCallback>>;
|
|
41
40
|
api: {
|
|
42
|
-
type: PropType<
|
|
41
|
+
type: PropType<RoomlePlannerWithExtObjs | RoomleConfigurator<readonly []>>;
|
|
43
42
|
required: true;
|
|
44
43
|
};
|
|
45
44
|
}>> & Readonly<{}>, {}, {}, {
|
|
@@ -1,84 +1,129 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
|
|
1
3
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
onClose:
|
|
4
|
+
onClose: PropType<() => void>;
|
|
3
5
|
}>, {}, {}, {}, {
|
|
4
6
|
backToConfigurator(): void;
|
|
5
7
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
6
|
-
onClose:
|
|
8
|
+
onClose: PropType<() => void>;
|
|
7
9
|
}>> & Readonly<{}>, {}, {}, {
|
|
8
|
-
PopUp:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
PopUp: {
|
|
11
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
12
|
+
size: {
|
|
13
|
+
type: PropType<"small" | "big" | "auto" | "medium">;
|
|
14
|
+
};
|
|
15
|
+
isDesktop: {
|
|
16
|
+
type: PropType<boolean>;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
onClose: {
|
|
20
|
+
type: PropType<() => void>;
|
|
21
|
+
};
|
|
22
|
+
displayCloseButton: {
|
|
23
|
+
type: PropType<boolean>;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
isLightTheme: {
|
|
27
|
+
type: PropType<boolean>;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
alignTo: {
|
|
31
|
+
type: PropType<import('../../../../configurator/components/utils/-utils/popup-types').PopUpAlignment>;
|
|
32
|
+
};
|
|
33
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
|
|
34
|
+
size: {
|
|
35
|
+
type: PropType<"small" | "big" | "auto" | "medium">;
|
|
36
|
+
};
|
|
37
|
+
isDesktop: {
|
|
38
|
+
type: PropType<boolean>;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
onClose: {
|
|
42
|
+
type: PropType<() => void>;
|
|
43
|
+
};
|
|
44
|
+
displayCloseButton: {
|
|
45
|
+
type: PropType<boolean>;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
isLightTheme: {
|
|
49
|
+
type: PropType<boolean>;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
alignTo: {
|
|
53
|
+
type: PropType<import('../../../../configurator/components/utils/-utils/popup-types').PopUpAlignment>;
|
|
54
|
+
};
|
|
55
|
+
}>> & Readonly<{}>, {
|
|
56
|
+
isDesktop: boolean;
|
|
57
|
+
displayCloseButton: boolean;
|
|
58
|
+
isLightTheme: boolean;
|
|
59
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
60
|
+
P: {};
|
|
61
|
+
B: {};
|
|
62
|
+
D: {};
|
|
63
|
+
C: {};
|
|
64
|
+
M: {};
|
|
65
|
+
Defaults: {};
|
|
66
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
67
|
+
size: {
|
|
68
|
+
type: PropType<"small" | "big" | "auto" | "medium">;
|
|
69
|
+
};
|
|
70
|
+
isDesktop: {
|
|
71
|
+
type: PropType<boolean>;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
onClose: {
|
|
75
|
+
type: PropType<() => void>;
|
|
76
|
+
};
|
|
77
|
+
displayCloseButton: {
|
|
78
|
+
type: PropType<boolean>;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
isLightTheme: {
|
|
82
|
+
type: PropType<boolean>;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
alignTo: {
|
|
86
|
+
type: PropType<import('../../../../configurator/components/utils/-utils/popup-types').PopUpAlignment>;
|
|
87
|
+
};
|
|
88
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
89
|
+
isDesktop: boolean;
|
|
90
|
+
displayCloseButton: boolean;
|
|
91
|
+
isLightTheme: boolean;
|
|
92
|
+
}>;
|
|
93
|
+
__isFragment?: never;
|
|
94
|
+
__isTeleport?: never;
|
|
95
|
+
__isSuspense?: never;
|
|
96
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
97
|
+
size: {
|
|
98
|
+
type: PropType<"small" | "big" | "auto" | "medium">;
|
|
13
99
|
};
|
|
14
100
|
isDesktop: {
|
|
15
|
-
type:
|
|
101
|
+
type: PropType<boolean>;
|
|
16
102
|
default: boolean;
|
|
17
103
|
};
|
|
18
|
-
|
|
19
|
-
type:
|
|
20
|
-
default: boolean;
|
|
104
|
+
onClose: {
|
|
105
|
+
type: PropType<() => void>;
|
|
21
106
|
};
|
|
22
|
-
size: {
|
|
23
|
-
type: import('vue').PropType<"small" | "big" | "auto" | "medium">;
|
|
24
|
-
validator(value: any): boolean;
|
|
25
|
-
};
|
|
26
|
-
alignTo: {
|
|
27
|
-
type: import('vue').PropType<import('../../../../configurator/components/utils/-utils/popup-types').PopUpAlignment>;
|
|
28
|
-
validator(value: any): boolean;
|
|
29
|
-
};
|
|
30
|
-
}>, {}, {}, {
|
|
31
|
-
isAuto(): boolean;
|
|
32
|
-
isBig(): boolean;
|
|
33
|
-
isMedium(): boolean;
|
|
34
|
-
isSmall(): boolean;
|
|
35
|
-
isAlignToScene(): boolean;
|
|
36
|
-
}, {
|
|
37
|
-
close(): void;
|
|
38
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
39
|
-
onClose: FunctionConstructor;
|
|
40
107
|
displayCloseButton: {
|
|
41
|
-
type:
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
|
-
isDesktop: {
|
|
45
|
-
type: BooleanConstructor;
|
|
108
|
+
type: PropType<boolean>;
|
|
46
109
|
default: boolean;
|
|
47
110
|
};
|
|
48
111
|
isLightTheme: {
|
|
49
|
-
type:
|
|
112
|
+
type: PropType<boolean>;
|
|
50
113
|
default: boolean;
|
|
51
114
|
};
|
|
52
|
-
size: {
|
|
53
|
-
type: import('vue').PropType<"small" | "big" | "auto" | "medium">;
|
|
54
|
-
validator(value: any): boolean;
|
|
55
|
-
};
|
|
56
115
|
alignTo: {
|
|
57
|
-
type:
|
|
58
|
-
validator(value: any): boolean;
|
|
116
|
+
type: PropType<import('../../../../configurator/components/utils/-utils/popup-types').PopUpAlignment>;
|
|
59
117
|
};
|
|
60
|
-
}>> & Readonly<{}>, {
|
|
118
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
61
119
|
isDesktop: boolean;
|
|
62
120
|
displayCloseButton: boolean;
|
|
63
121
|
isLightTheme: boolean;
|
|
64
|
-
}, {}, {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
70
|
-
icon: string;
|
|
71
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
72
|
-
SlideTransitionWrapper: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
73
|
-
useTransition: BooleanConstructor;
|
|
74
|
-
}>, {}, {}, {
|
|
75
|
-
computedTransition(): string;
|
|
76
|
-
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
77
|
-
useTransition: BooleanConstructor;
|
|
78
|
-
}>> & Readonly<{}>, {
|
|
79
|
-
useTransition: boolean;
|
|
80
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
81
|
-
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
122
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
123
|
+
$slots: {
|
|
124
|
+
content?(_: {}): any;
|
|
125
|
+
};
|
|
126
|
+
});
|
|
82
127
|
GoBack: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
83
128
|
cartCount: NumberConstructor;
|
|
84
129
|
onClickBack: FunctionConstructor;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { KernelPartList, KernelPartListPrice, KernelPlanObject } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
2
|
-
import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
3
2
|
import { Store } from 'vuex';
|
|
4
3
|
import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
5
|
-
import { Nullable } from '../../../utils/types';
|
|
4
|
+
import { Nullable, RoomlePlannerWithExtObjs } from '../../../utils/types';
|
|
6
5
|
import { StoreState } from '../../../store';
|
|
7
6
|
|
|
8
|
-
export default function setupPartList(api: Nullable<
|
|
9
|
-
api: Nullable<
|
|
7
|
+
export default function setupPartList(api: Nullable<RoomlePlannerWithExtObjs> | Nullable<RoomleConfigurator>, storeIn?: Store<StoreState>, plannerCoreInstance?: {
|
|
8
|
+
api: Nullable<RoomlePlannerWithExtObjs>;
|
|
10
9
|
}, planObject?: KernelPlanObject): () => {
|
|
11
10
|
store: any;
|
|
12
11
|
label: import('vue').ComputedRef<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ShallowRef } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { RoomleConfiguratorType } from '../utils/types';
|
|
3
3
|
|
|
4
4
|
export declare const useConfiguratorApi: () => {
|
|
5
|
-
configuratorApi: ShallowRef<
|
|
5
|
+
configuratorApi: ShallowRef<RoomleConfiguratorType>;
|
|
6
6
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ShallowRef } from 'vue';
|
|
2
|
-
import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
3
2
|
import { PlanInteractionHandler } from '@roomle/web-sdk/lib/definitions/typings/planner';
|
|
3
|
+
import { RoomlePlannerWithExtObjs } from '../utils/types';
|
|
4
4
|
|
|
5
5
|
export declare const useCoreInstances: () => {
|
|
6
|
-
api: ShallowRef<
|
|
6
|
+
api: ShallowRef<RoomlePlannerWithExtObjs>;
|
|
7
7
|
planInteractionHandler: ShallowRef<PlanInteractionHandler>;
|
|
8
8
|
};
|
|
@@ -39,9 +39,11 @@ export interface NotificationEventTypes {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const UPDATE_EVENTS: {
|
|
41
41
|
readonly WALL_LENGTH: "update-wall-length";
|
|
42
|
+
readonly WALL_HEIGHT: "update-wall-height";
|
|
42
43
|
};
|
|
43
44
|
export interface UpdateEventTypes {
|
|
44
45
|
[UPDATE_EVENTS.WALL_LENGTH]: void;
|
|
46
|
+
[UPDATE_EVENTS.WALL_HEIGHT]: void;
|
|
45
47
|
}
|
|
46
48
|
export declare const CUSTOM_VIEW_EVENTS: {
|
|
47
49
|
readonly SHOW: "show-custom-view";
|
|
@@ -59,7 +61,13 @@ export interface CustomViewEventTypes {
|
|
|
59
61
|
};
|
|
60
62
|
[CUSTOM_VIEW_EVENTS.ATTIC_UPDATED]: boolean;
|
|
61
63
|
}
|
|
62
|
-
|
|
64
|
+
export declare const POP_UP_EVENTS: {
|
|
65
|
+
readonly CLOSE: "close-pop-up";
|
|
66
|
+
};
|
|
67
|
+
export interface PopUpEventTypes {
|
|
68
|
+
[POP_UP_EVENTS.CLOSE]: void;
|
|
69
|
+
}
|
|
70
|
+
interface EventEmitterTypes extends SidebarEventTypes, UpdateEventTypes, NotificationEventTypes, CustomViewEventTypes, PopUpEventTypes {
|
|
63
71
|
}
|
|
64
72
|
export declare const useEventEmitterListener: <T extends keyof EventEmitterTypes>(eventName: T, handler: EventCallback<EventEmitterTypes[T]>) => void;
|
|
65
73
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CollectionViewElement as CollectionViewElementType } from '../components/collection-view/-utils/types';
|
|
2
|
+
import { UiKernelParameter } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
3
|
+
|
|
4
|
+
export declare const OPEN_CLOSE_ANIMATION_PARAM_KEY = "animation:openClose";
|
|
5
|
+
export declare const useOpenCloseAnim: () => {
|
|
6
|
+
openCloseAnimationParameter: import('vue').ComputedRef<CollectionViewElementType<UiKernelParameter>>;
|
|
7
|
+
isAnimationToggled: import('vue').ComputedRef<boolean>;
|
|
8
|
+
toggleOpenCloseAnimation: () => Promise<void>;
|
|
9
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GridViewElement } from '../../configurator/components/grid-view/-utils/GridViewHelper';
|
|
2
|
-
import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
3
2
|
import { MaterialsForObjects } from '../../planner/business-logic/rooms';
|
|
3
|
+
import { RoomlePlannerWithExtObjs } from '../utils/types';
|
|
4
4
|
|
|
5
|
-
export declare const useStaticItemParameters: (api:
|
|
5
|
+
export declare const useStaticItemParameters: (api: RoomlePlannerWithExtObjs, materialRootTag?: string[] | string) => {
|
|
6
6
|
show: {
|
|
7
7
|
sizeControls: boolean;
|
|
8
8
|
colorControls: boolean;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Enumify, CATALOG_INFOS_TYPES, ExtendedKernelVector3, GroupedCollection, Nullable } from './types';
|
|
1
|
+
import { Enumify, CATALOG_INFOS_TYPES, RoomlePlannerWithExtObjs, RoomleConfiguratorType, ExtendedKernelVector3, GroupedCollection, Nullable } from './types';
|
|
2
2
|
import { RapiConfiguration, RapiItem, RapiTenant, AdditionalInfo, RapiMaterial, RapiComponent, RapiPlanSnapshotGetData } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
3
3
|
import { StoreState } from '../store';
|
|
4
4
|
import { UiInitData } from '../../configurator/embedding/types';
|
|
5
5
|
import { BUTTON_ACTIONS } from '../../configurator/store/ui-state';
|
|
6
|
-
import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
7
|
-
import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
8
6
|
import { KernelVector3 } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
9
7
|
import { PlannerUiState } from '../../planner/store/planner-ui-state';
|
|
8
|
+
import { ExternalConfiguration } from '@roomle/web-sdk/lib/definitions/typings/external-objects';
|
|
10
9
|
|
|
11
10
|
export declare const throttle: <T extends (...args: any[]) => any>(func: T, delay?: number) => (...funcArgs: Parameters<T>) => void;
|
|
12
11
|
export declare const round: (float: number, precision: number) => number;
|
|
@@ -34,8 +33,8 @@ export interface KernelBoundsFormatted {
|
|
|
34
33
|
export declare const deepCopy: <T>(o: T) => T;
|
|
35
34
|
export declare const toBoolean: (value: boolean | undefined, defaultValue?: boolean) => boolean;
|
|
36
35
|
export declare const scriptInfo: (...args: any[]) => void;
|
|
37
|
-
export declare const getGlbAssetUrl: (obj: RapiItem | RapiConfiguration | RapiPlanSnapshotGetData) => Nullable<string>;
|
|
38
|
-
export declare const getUsdzAssetUrl: (obj: RapiItem | RapiConfiguration | RapiPlanSnapshotGetData) => Nullable<string>;
|
|
36
|
+
export declare const getGlbAssetUrl: (obj: RapiItem | RapiConfiguration | RapiPlanSnapshotGetData | ExternalConfiguration) => Nullable<string>;
|
|
37
|
+
export declare const getUsdzAssetUrl: (obj: RapiItem | RapiConfiguration | RapiPlanSnapshotGetData | ExternalConfiguration) => Nullable<string>;
|
|
39
38
|
export declare const hasArAssets: (item: RapiItem) => boolean;
|
|
40
39
|
export declare const formatPrice: (currencySymbol: Nullable<string>, price: Nullable<number>) => Nullable<string>;
|
|
41
40
|
export declare const normalizeFloatingNumber: (num: number, decimals?: number) => number;
|
|
@@ -49,7 +48,7 @@ export declare const parseColorToHexDecimalString: (color: string) => string;
|
|
|
49
48
|
export declare const groupArrayBy: <T>(collection: T[], key: keyof T) => GroupedCollection<T>;
|
|
50
49
|
export declare const setupStoreWithInitData: (initData: UiInitData, store: Store<StoreState>) => void;
|
|
51
50
|
export declare const isActionActive: (state: PlannerUiState, action: BUTTON_ACTIONS) => boolean;
|
|
52
|
-
export declare const setMeasurementUnit: (sdkConnector:
|
|
51
|
+
export declare const setMeasurementUnit: (sdkConnector: RoomlePlannerWithExtObjs | RoomleConfiguratorType, store: Store<StoreState>) => void;
|
|
53
52
|
export declare const getStartConfiguringOrViewingIcon: (store: Store<StoreState>) => string;
|
|
54
53
|
export interface Tooltip {
|
|
55
54
|
[key: string]: string;
|
|
@@ -67,7 +66,7 @@ export type WithRequired<T, K extends keyof T> = T & {
|
|
|
67
66
|
};
|
|
68
67
|
export declare const radToDeg: (rad: number) => number;
|
|
69
68
|
export declare const isValidPlanID: (planId: string) => boolean;
|
|
70
|
-
export declare const convertToUIValuesHelper: (valuesMM: KernelVector3, api: Nullable<
|
|
69
|
+
export declare const convertToUIValuesHelper: (valuesMM: KernelVector3, api: Nullable<RoomlePlannerWithExtObjs>) => {
|
|
71
70
|
x: string;
|
|
72
71
|
y: string;
|
|
73
72
|
z: string;
|
|
@@ -2,7 +2,7 @@ import { RapiMaterial, RapiMaterialGroup, RapiTagForUi, RapiTexture } from '@roo
|
|
|
2
2
|
import { KernelPartListParameter, UiPossibleChildTag } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
3
3
|
import { CollectionViewElement, TabCategory } from '../components/collection-view/-utils/types';
|
|
4
4
|
import { VariantsMap } from '../../configurator/embedding/types';
|
|
5
|
-
import {
|
|
5
|
+
import { RoomleConfiguratorType } from './types';
|
|
6
6
|
|
|
7
7
|
export interface RapiMaterialEmbeddedTextures extends RapiMaterial {
|
|
8
8
|
embeddedTextures?: RapiTexture[];
|
|
@@ -15,5 +15,5 @@ export declare const mapRootTagToCollectionViewArray: (tags: RapiTagForUi[], tab
|
|
|
15
15
|
export declare const filterAndMapAddons: (addons: UiPossibleChildTag[], selectedGroup: string | undefined) => CollectionViewElement[];
|
|
16
16
|
export declare const addonsHaveGroups: (addons: UiPossibleChildTag[]) => boolean;
|
|
17
17
|
export declare const extractRootComponentId: (id: string) => string;
|
|
18
|
-
export declare const getCurrentVariants: (api:
|
|
18
|
+
export declare const getCurrentVariants: (api: RoomleConfiguratorType, id: string, variantChangeMap?: VariantsMap) => Promise<RapiTagForUi>;
|
|
19
19
|
export declare const prepareParametersForUi: (parameters: KernelPartListParameter[]) => KernelPartListParameter[];
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
2
|
+
import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
3
|
+
import { ExternalConfiguration } from '@roomle/web-sdk/lib/definitions/typings/external-objects';
|
|
1
4
|
import { KernelVector3 } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
2
5
|
import { RapiConfigurationEnhanced, RapiPlanSnapshotGetData, RapiPlan } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
3
6
|
import { ComponentPublicInstance } from 'vue';
|
|
@@ -120,7 +123,7 @@ export interface MessageEventData {
|
|
|
120
123
|
export type DraftTypes = 'plan' | 'configuration';
|
|
121
124
|
export interface SaveDraftPayload {
|
|
122
125
|
type: Nullable<DraftTypes>;
|
|
123
|
-
payload: Nullable<RapiConfigurationEnhanced | RapiPlanSnapshotGetData | RapiPlan>;
|
|
126
|
+
payload: Nullable<RapiConfigurationEnhanced | RapiPlanSnapshotGetData | RapiPlan | ExternalConfiguration>;
|
|
124
127
|
}
|
|
125
128
|
export interface SaveDraft {
|
|
126
129
|
id: string;
|
|
@@ -144,3 +147,8 @@ export type TutorialData = {
|
|
|
144
147
|
[key: string]: CustomTutorialTranslation | CustomTutorialPlatform | CustomTutorialScope;
|
|
145
148
|
};
|
|
146
149
|
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;
|
|
@@ -2,9 +2,8 @@ import { SdkConnector } from '../../configurator/business-logic/sdk-connector';
|
|
|
2
2
|
import { StoreState } from '../store';
|
|
3
3
|
import { Store } from 'vuex';
|
|
4
4
|
import { ExposedCallbacks } from '../../configurator/embedding/exposed-callbacks';
|
|
5
|
-
import { Nullable } from './types';
|
|
5
|
+
import { Nullable, RoomlePlannerWithExtObjs } from './types';
|
|
6
6
|
import { default as PlanElementViewModel } from '@roomle/web-sdk/lib/definitions/common-core/src/view-model/plan-element-view-model';
|
|
7
|
-
import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
8
7
|
import { SidebarType } from '../composables/use-event-emitter-listener';
|
|
9
8
|
import { default as EventEmitter } from '../business-logic/event-emitter';
|
|
10
9
|
|
|
@@ -33,6 +32,6 @@ export default class UiActions {
|
|
|
33
32
|
preparePartList(buttonAction: number): Promise<void>;
|
|
34
33
|
private _toggleAction;
|
|
35
34
|
switchProduct(): Promise<void>;
|
|
36
|
-
swapObject(api:
|
|
35
|
+
swapObject(api: RoomlePlannerWithExtObjs, planElement: PlanElementViewModel, itemId: string): Promise<Nullable<number>>;
|
|
37
36
|
popSidebar(): void;
|
|
38
37
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { default as RapiAccess } from '@roomle/web-sdk/lib/definitions/common-core/src/rapi-access';
|
|
2
2
|
import { GlbViewer } from '@roomle/web-sdk/lib/definitions/glb-viewer-core/src/glb-viewer';
|
|
3
3
|
import { Configurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/configurator';
|
|
4
|
-
import { Nullable } from '../../common/utils/types';
|
|
4
|
+
import { Nullable, RoomleConfiguratorType } from '../../common/utils/types';
|
|
5
5
|
import { UiInitData } from '../embedding/types';
|
|
6
6
|
import { GlobalInitDataDefinition } from '@roomle/web-sdk/lib/definitions/common-core/src/utils/shims';
|
|
7
7
|
import { Planner } from '@roomle/web-sdk/lib/definitions/planner-core/src/planner';
|
|
8
8
|
import { GlobalCallback } from '@roomle/web-sdk/lib/definitions/common-core/src/services/global-callback';
|
|
9
|
-
import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
10
9
|
import { default as IdbManager } from '@roomle/web-sdk/lib/definitions/common-core/src/services/idb-manager';
|
|
11
10
|
|
|
12
11
|
/**
|
|
@@ -20,9 +19,9 @@ export declare class RoomleSdkWrapper {
|
|
|
20
19
|
private _currentInstance;
|
|
21
20
|
get hasPlanner(): boolean;
|
|
22
21
|
getConfigurator(element: HTMLElement, initData?: UiInitData): Promise<Configurator>;
|
|
23
|
-
getConfiguratorApi(element: HTMLElement, initData?: UiInitData): Promise<
|
|
22
|
+
getConfiguratorApi(element: HTMLElement, initData?: UiInitData): Promise<RoomleConfiguratorType>;
|
|
24
23
|
getGlbViewer(element: HTMLElement, initData?: UiInitData): Promise<GlbViewer>;
|
|
25
|
-
getPlanner(element: HTMLElement, initData?: UiInitData): Promise<Planner
|
|
24
|
+
getPlanner(element: HTMLElement, initData?: UiInitData): Promise<Planner<['external-objects']>>;
|
|
26
25
|
getRapiAccess(): Promise<RapiAccess>;
|
|
27
26
|
getGlobalCallback(): Promise<GlobalCallback>;
|
|
28
27
|
getStorage(): Nullable<IdbManager>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Nullable } from '../../common/utils/types';
|
|
1
|
+
import { Nullable, RoomleConfiguratorType } from '../../common/utils/types';
|
|
3
2
|
import { UiInitData } from '../embedding/types';
|
|
4
3
|
import { StoreState } from '../../common/store';
|
|
5
4
|
import { KernelParameter } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
@@ -20,9 +19,9 @@ export declare class SdkConnectorConfigurator extends Connector {
|
|
|
20
19
|
private _previousParameters;
|
|
21
20
|
private _uiCallbacks;
|
|
22
21
|
constructor(store: Store<StoreState>, analytics: Nullable<Analytics>, eventEmitter: EventEmitter);
|
|
23
|
-
get api(): Promise<
|
|
22
|
+
get api(): Promise<RoomleConfiguratorType>;
|
|
24
23
|
init(sdkWrapper: RoomleSdkWrapper, element: HTMLElement, initData: UiInitData): Promise<void>;
|
|
25
|
-
initConfigurator(configurator:
|
|
24
|
+
initConfigurator(configurator: RoomleConfiguratorType): Promise<void>;
|
|
26
25
|
setParameter(parameter: KernelParameter, value: string, isRaw?: boolean): Promise<void>;
|
|
27
26
|
setPrice(currencySymbol: string, price: number): void;
|
|
28
27
|
addUiCallback(listener: UiCallbacks): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Store } from 'vuex';
|
|
2
2
|
import { StoreState } from '../../common/store';
|
|
3
|
-
import { Nullable } from '../../common/utils/types';
|
|
3
|
+
import { Nullable, RoomleConfiguratorType, RoomlePlannerWithExtObjs } from '../../common/utils/types';
|
|
4
4
|
import { KernelParameter, KernelPartList, RuntimeId, UiPossibleChildTag } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
5
5
|
import { default as ConfiguratorUiCallbacks } from '@roomle/web-sdk/lib/definitions/configurator-core/src/services/configurator-ui-callback';
|
|
6
6
|
import { Analytics } from '../../common/plugins/analytics';
|
|
@@ -10,12 +10,10 @@ import { default as RapiAccess } from '@roomle/web-sdk/lib/definitions/common-co
|
|
|
10
10
|
import { MessageHandler } from '../../../packages/common/src/utils/message-handler';
|
|
11
11
|
import { ExposedCallbacks } from '../embedding/exposed-callbacks';
|
|
12
12
|
import { UiInitData } from '../embedding/types';
|
|
13
|
-
import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
14
13
|
import { SdkConnectorConfigurator } from './sdk-connector-configurator';
|
|
15
14
|
import { SdkConnectorViewer } from '../../viewer/business-logic/sdk-connector-viewer';
|
|
16
15
|
import { SdkConnectorPlanner } from '../../planner/business-logic/sdk-connector-planner';
|
|
17
16
|
import { RapiConfigurationEnhanced, RapiPlan, RapiPlanSnapshotGetData } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
18
|
-
import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
19
17
|
import { UiCallbacks } from './ui-callback';
|
|
20
18
|
import { Base64Image } from '@roomle/web-sdk/lib/definitions/common-core/src/common-interfaces';
|
|
21
19
|
import { default as RoomlePlannerUiCallback } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner-ui-callback';
|
|
@@ -23,6 +21,7 @@ import { default as AsyncGuard } from '../../common/utils/async-guard';
|
|
|
23
21
|
import { default as EventEmitter } from '../../common/business-logic/event-emitter';
|
|
24
22
|
import { Translator } from '../../common/composables/use-intl';
|
|
25
23
|
import { Libs } from '../plugins/libs-plugin';
|
|
24
|
+
import { ExternalConfiguration } from '@roomle/web-sdk/lib/definitions/typings/external-objects';
|
|
26
25
|
|
|
27
26
|
export declare enum SDK_MODULES {
|
|
28
27
|
VIEWER = 0,
|
|
@@ -68,8 +67,8 @@ export declare class SdkConnector {
|
|
|
68
67
|
get configuratorConnector(): Promise<SdkConnectorConfigurator>;
|
|
69
68
|
get viewerConnector(): Promise<SdkConnectorViewer>;
|
|
70
69
|
get plannerConnector(): Promise<SdkConnectorPlanner>;
|
|
71
|
-
get configuratorApi(): Promise<
|
|
72
|
-
get plannerApi(): Promise<
|
|
70
|
+
get configuratorApi(): Promise<RoomleConfiguratorType>;
|
|
71
|
+
get plannerApi(): Promise<RoomlePlannerWithExtObjs>;
|
|
73
72
|
get viewerApi(): Promise<RoomleGLBViewer>;
|
|
74
73
|
constructor(sdkWrapper: RoomleSdkWrapper, store: Store<StoreState>, analytics: Analytics, embeddingCallbacks: ExposedCallbacks, eventEmitter: EventEmitter, intl: Translator, libs: Libs);
|
|
75
74
|
createExposedApi(module: SDK_MODULES, mainMessageHandler: MessageHandler, eventEmitter: EventEmitter): Promise<void>;
|
|
@@ -121,11 +120,11 @@ export declare class SdkConnector {
|
|
|
121
120
|
initCanvasElement(module: SDK_MODULES): Promise<void>;
|
|
122
121
|
initConfigurator(): Promise<void>;
|
|
123
122
|
getTenant(): Promise<import('@roomle/web-sdk/lib/definitions/typings/rapi-types').RapiTenant>;
|
|
124
|
-
saveCurrentConfiguration(): Promise<RapiConfigurationEnhanced>;
|
|
125
|
-
saveCurrentPlanOrConfiguration(): Promise<RapiConfigurationEnhanced | RapiPlanSnapshotGetData>;
|
|
123
|
+
saveCurrentConfiguration(): Promise<RapiConfigurationEnhanced | ExternalConfiguration>;
|
|
124
|
+
saveCurrentPlanOrConfiguration(): Promise<RapiConfigurationEnhanced | RapiPlanSnapshotGetData | ExternalConfiguration>;
|
|
126
125
|
giveGaConsent(): void;
|
|
127
126
|
get hasPlanner(): boolean;
|
|
128
|
-
saveCurrentObject(): Promise<RapiPlan | RapiPlanSnapshotGetData | RapiConfigurationEnhanced>;
|
|
127
|
+
saveCurrentObject(): Promise<RapiPlan | RapiPlanSnapshotGetData | RapiConfigurationEnhanced | ExternalConfiguration>;
|
|
129
128
|
preparePerspectiveImage(): Promise<Base64Image>;
|
|
130
129
|
private _finishLoading;
|
|
131
130
|
private _waitForCanvasElement;
|