@roomle/embedding-lib 5.30.1 → 5.31.0-alpha.2

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.
Files changed (58) hide show
  1. package/docs/md/web/embedding/CHANGELOG.md +23 -2
  2. package/package.json +1 -1
  3. package/packages/design-system/build-webcomponents.d.ts +5 -0
  4. package/packages/design-system/src/utils/shadow-dom.d.ts +6 -0
  5. package/packages/design-system/src/utils/toggle.d.ts +19 -0
  6. package/packages/embedding-lib/src/examples/homag-intelligence-example.d.ts +11 -0
  7. package/packages/embedding-lib/src/examples/utils/homag-intelligence/drag-in.d.ts +1 -0
  8. package/packages/web-sdk/packages/common-core/src/configurator-kernel-access.d.ts +5 -6
  9. package/packages/web-sdk/packages/common-core/src/services/cache-holder.d.ts +5 -2
  10. package/packages/web-sdk/packages/common-core/src/utils/common-utils.d.ts +37 -0
  11. package/packages/web-sdk/packages/common-core/src/utils/init-data.d.ts +1 -1
  12. package/packages/web-sdk/packages/common-core/src/utils/threejs-utils.d.ts +3 -0
  13. package/packages/web-sdk/packages/common-core/src/view-model/configurator-view-model.d.ts +5 -7
  14. package/packages/web-sdk/packages/common-core/src/webgl/roomle-component-factory.d.ts +1 -1
  15. package/packages/web-sdk/packages/configurator-core/src/services/configurator-ui-callback.d.ts +4 -0
  16. package/packages/web-sdk/packages/configurator-core/src/utils/animation/animation-helper.d.ts +3 -2
  17. package/packages/web-sdk/packages/configurator-core/src/utils/animation/drag-insert-animation.d.ts +2 -2
  18. package/packages/web-sdk/packages/configurator-core/src/utils/dimensioning-helper.d.ts +30 -18
  19. package/packages/web-sdk/packages/configurator-core/src/webgl/configurator-scene-event-handler.d.ts +4 -0
  20. package/packages/web-sdk/packages/configurator-core/src/webgl/configurator-scene-manager.d.ts +0 -3
  21. package/packages/web-sdk/packages/homag-intelligence/__tests__/glue-logic-test.d.ts +1 -0
  22. package/packages/web-sdk/packages/homag-intelligence/src/api.d.ts +4 -3
  23. package/packages/web-sdk/packages/homag-intelligence/src/callbacks.d.ts +1 -1
  24. package/packages/web-sdk/packages/homag-intelligence/src/debug-logging.d.ts +6 -7
  25. package/packages/web-sdk/packages/{planner-core → homag-intelligence}/src/external-object-api.d.ts +26 -10
  26. package/packages/web-sdk/packages/homag-intelligence/src/{emulator.d.ts → glue-logic.d.ts} +12 -13
  27. package/packages/web-sdk/packages/homag-intelligence/src/hi-object-selection.d.ts +2 -2
  28. package/packages/web-sdk/packages/homag-intelligence/src/hi-tag-catalog-callbacks.d.ts +1 -1
  29. package/packages/web-sdk/packages/homag-intelligence/src/homag-intelligence.d.ts +1 -1
  30. package/packages/web-sdk/packages/homag-intelligence/src/orders.d.ts +1 -1
  31. package/packages/web-sdk/packages/planner-core/src/roomle-planner-ui-callback.d.ts +1 -1
  32. package/packages/web-sdk/packages/planner-core/src/roomle-planner.d.ts +21 -22
  33. package/packages/web-sdk/packages/planner-core/src/services/planner-kernel-access.d.ts +10 -6
  34. package/packages/web-sdk/packages/planner-core/src/view-model/plan-view-model.d.ts +1 -1
  35. package/packages/web-sdk/packages/planner-core/src/webgl/planner-element-highlighter.d.ts +1 -0
  36. package/packages/web-sdk/packages/planner-core/src/webgl/planner-scene-event-handler.d.ts +4 -4
  37. package/packages/web-sdk/packages/planner-core/src/webgl/planner-scene-manager.d.ts +10 -5
  38. package/packages/web-sdk/packages/typings/configurator-kernel-container.d.ts +3 -6
  39. package/packages/web-sdk/packages/typings/kernel.d.ts +20 -15
  40. package/packages/web-sdk/packages/typings/planner-kernel-container.d.ts +4 -7
  41. package/packages/web-sdk/packages/typings/planner.d.ts +10 -6
  42. package/src/common/components/flying-menu/FlyingMenuToggles.vue.d.ts +16 -0
  43. package/src/common/components/notifications/MaximumLightNotification.vue.d.ts +8 -0
  44. package/src/common/components/notifications/RenderingLightNotification.vue.d.ts +6 -0
  45. package/src/common/components/parameters/ColorParameter.vue.d.ts +2 -2
  46. package/src/common/components/side-bar/utils/configurator-sidebar-components.d.ts +88 -46
  47. package/src/common/components/utils/-utils/notifications.d.ts +4 -0
  48. package/src/common/composables/use-static-item-parameters.d.ts +1 -1
  49. package/src/configurator/components/addons/PossibleChildren.vue.d.ts +2 -2
  50. package/src/configurator/components/grid-view/GridView.vue.d.ts +2 -2
  51. package/src/configurator/components/parameters/types/MaterialParameter.vue.d.ts +2 -2
  52. package/src/configurator/components/parameters/types/ProductVariant.vue.d.ts +2 -2
  53. package/src/configurator/components/parameters/types/ThumbnailsParameter.vue.d.ts +2 -4
  54. package/src/configurator/embedding/exposed-api.d.ts +10 -1
  55. package/src/configurator/embedding/types.d.ts +3 -0
  56. package/src/planner/components/overlays/rooms/ElementLengthScaling.vue.d.ts +79 -35
  57. package/src/planner/components/overlays/rooms/ParameterSwitch.vue.d.ts +2 -0
  58. /package/packages/web-sdk/packages/{planner-core → homag-intelligence}/src/external-object-api-callbacks.d.ts +0 -0
@@ -0,0 +1,16 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ firstIconName?: string;
3
+ secondIconName?: string;
4
+ firstLabel?: string;
5
+ secondLabel?: string;
6
+ isActive: boolean;
7
+ toggle: () => void;
8
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
9
+ firstIconName?: string;
10
+ secondIconName?: string;
11
+ firstLabel?: string;
12
+ secondLabel?: string;
13
+ isActive: boolean;
14
+ toggle: () => void;
15
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ close: () => void;
3
+ payload: number;
4
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
5
+ close: () => void;
6
+ payload: number;
7
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ close: () => void;
3
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
4
+ close: () => void;
5
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -1114,7 +1114,7 @@ declare const _default: import('vue').DefineComponent<{
1114
1114
  isExpanded?: boolean;
1115
1115
  onExpand?: () => void;
1116
1116
  onCollapse?: (_payload: MouseEvent) => void;
1117
- onSetColor?: (element: GridViewElement<any>, key?: string) => void | Promise<void>;
1117
+ onSetColor?: (element: GridViewElement<any>, key?: string, isCustomColor?: boolean) => void | Promise<void>;
1118
1118
  value?: MinimalBoundValue<any>;
1119
1119
  label?: string;
1120
1120
  originalPayload?: any;
@@ -2224,7 +2224,7 @@ declare const _default: import('vue').DefineComponent<{
2224
2224
  isExpanded?: boolean;
2225
2225
  onExpand?: () => void;
2226
2226
  onCollapse?: (_payload: MouseEvent) => void;
2227
- onSetColor?: (element: GridViewElement<any>, key?: string) => void | Promise<void>;
2227
+ onSetColor?: (element: GridViewElement<any>, key?: string, isCustomColor?: boolean) => void | Promise<void>;
2228
2228
  value?: MinimalBoundValue<any>;
2229
2229
  label?: string;
2230
2230
  originalPayload?: any;
@@ -2,12 +2,12 @@ declare const dynamicComponents: {
2
2
  readonly MaterialParameter: import('vue').DefineComponent<{
3
3
  parameter?: UiKernelParameter;
4
4
  isExpanded: boolean;
5
- onExpand: (_payload: MouseEvent) => void;
5
+ onExpand?: (_payload: MouseEvent) => void;
6
6
  onCollapse?: (_payload: MouseEvent) => void;
7
7
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
8
8
  parameter?: UiKernelParameter;
9
9
  isExpanded: boolean;
10
- onExpand: (_payload: MouseEvent) => void;
10
+ onExpand?: (_payload: MouseEvent) => void;
11
11
  onCollapse?: (_payload: MouseEvent) => void;
12
12
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
13
  readonly OptionsParameter: import('vue').DefineComponent<{
@@ -30,7 +30,6 @@ declare const dynamicComponents: {
30
30
  isExpanded: BooleanConstructor;
31
31
  onExpand: {
32
32
  type: import('vue').PropType<(_payload: MouseEvent) => void>;
33
- required: true;
34
33
  };
35
34
  onCollapse: {
36
35
  type: import('vue').PropType<(_payload: MouseEvent) => void>;
@@ -48,7 +47,6 @@ declare const dynamicComponents: {
48
47
  isExpanded: BooleanConstructor;
49
48
  onExpand: {
50
49
  type: import('vue').PropType<(_payload: MouseEvent) => void>;
51
- required: true;
52
50
  };
53
51
  onCollapse: {
54
52
  type: import('vue').PropType<(_payload: MouseEvent) => void>;
@@ -58,7 +56,7 @@ declare const dynamicComponents: {
58
56
  }, {}, {
59
57
  GridView: import('vue').DefineComponent<{
60
58
  isExpanded?: boolean;
61
- onExpand: (event: MouseEvent) => void;
59
+ onExpand?: (event: MouseEvent) => void;
62
60
  onSelect: ((...args: any[]) => any)[] | ((possibleChild: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, event?: Event) => Promise<void>);
63
61
  onDragStart?: (gridViewElement: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, event: TouchEvent | DragEvent) => Promise<void>;
64
62
  onDragEnd?: (gridViewElement: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, event: TouchEvent | DragEvent) => void;
@@ -73,7 +71,7 @@ declare const dynamicComponents: {
73
71
  currentTouch: import('../../../../../packages/common/src/utils/touch-drag').TouchDrag<import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>>;
74
72
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
75
73
  isExpanded?: boolean;
76
- onExpand: (event: MouseEvent) => void;
74
+ onExpand?: (event: MouseEvent) => void;
77
75
  onSelect: ((...args: any[]) => any)[] | ((possibleChild: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, event?: Event) => Promise<void>);
78
76
  onDragStart?: (gridViewElement: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, event: TouchEvent | DragEvent) => Promise<void>;
79
77
  onDragEnd?: (gridViewElement: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, event: TouchEvent | DragEvent) => void;
@@ -111,12 +109,12 @@ declare const dynamicComponents: {
111
109
  readonly PossibleChildren: import('vue').DefineComponent<{
112
110
  addonTag: UiPossibleChildTag;
113
111
  isExpanded: boolean;
114
- onExpand: () => void;
112
+ onExpand?: () => void;
115
113
  onCollapse: (_payload: MouseEvent) => void;
116
114
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
117
115
  addonTag: UiPossibleChildTag;
118
116
  isExpanded: boolean;
119
- onExpand: () => void;
117
+ onExpand?: () => void;
120
118
  onCollapse: (_payload: MouseEvent) => void;
121
119
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
122
120
  readonly ProductVariant: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -159,7 +157,7 @@ declare const dynamicComponents: {
159
157
  }, {}, {
160
158
  GridView: import('vue').DefineComponent<{
161
159
  isExpanded?: boolean;
162
- onExpand: (event: MouseEvent) => void;
160
+ onExpand?: (event: MouseEvent) => void;
163
161
  onSelect: ((...args: any[]) => any)[] | ((possibleChild: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, event?: Event) => Promise<void>);
164
162
  onDragStart?: (gridViewElement: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, event: TouchEvent | DragEvent) => Promise<void>;
165
163
  onDragEnd?: (gridViewElement: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, event: TouchEvent | DragEvent) => void;
@@ -174,7 +172,7 @@ declare const dynamicComponents: {
174
172
  currentTouch: import('../../../../../packages/common/src/utils/touch-drag').TouchDrag<import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>>;
175
173
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
176
174
  isExpanded?: boolean;
177
- onExpand: (event: MouseEvent) => void;
175
+ onExpand?: (event: MouseEvent) => void;
178
176
  onSelect: ((...args: any[]) => any)[] | ((possibleChild: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, event?: Event) => Promise<void>);
179
177
  onDragStart?: (gridViewElement: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, event: TouchEvent | DragEvent) => Promise<void>;
180
178
  onDragEnd?: (gridViewElement: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, event: TouchEvent | DragEvent) => void;
@@ -1382,7 +1380,7 @@ declare const dynamicComponents: {
1382
1380
  isExpanded?: boolean;
1383
1381
  onExpand?: () => void;
1384
1382
  onCollapse?: (_payload: MouseEvent) => void;
1385
- onSetColor?: (element: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, key?: string) => void | Promise<void>;
1383
+ onSetColor?: (element: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, key?: string, isCustomColor?: boolean) => void | Promise<void>;
1386
1384
  value?: import('../../../composables/use-core-bound-value').MinimalBoundValue<any>;
1387
1385
  label?: string;
1388
1386
  originalPayload?: any;
@@ -2492,7 +2490,7 @@ declare const dynamicComponents: {
2492
2490
  isExpanded?: boolean;
2493
2491
  onExpand?: () => void;
2494
2492
  onCollapse?: (_payload: MouseEvent) => void;
2495
- onSetColor?: (element: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, key?: string) => void | Promise<void>;
2493
+ onSetColor?: (element: import('../../../../configurator/components/grid-view/-utils/GridViewHelper').GridViewElement<any>, key?: string, isCustomColor?: boolean) => void | Promise<void>;
2496
2494
  value?: import('../../../composables/use-core-bound-value').MinimalBoundValue<any>;
2497
2495
  label?: string;
2498
2496
  originalPayload?: any;
@@ -2551,7 +2549,7 @@ declare const dynamicComponents: {
2551
2549
  }, {
2552
2550
  scalingDirection: number;
2553
2551
  }, {}, {
2554
- changeScalingDirection(activeSwitch: number): Promise<void>;
2552
+ changeScalingDirection(): Promise<void>;
2555
2553
  setElementLength(value: string): void;
2556
2554
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
2557
2555
  onSetElementLength: {
@@ -2571,40 +2569,84 @@ declare const dynamicComponents: {
2571
2569
  required: true;
2572
2570
  };
2573
2571
  }>> & Readonly<{}>, {}, {}, {
2574
- SwitchButton: {
2575
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
2576
- switch?: (clickedOption: 1 | 2) => void;
2577
- initialActive?: number;
2578
- hasIcons?: boolean;
2579
- }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
2580
- P: {};
2581
- B: {};
2582
- D: {};
2583
- C: {};
2584
- M: {};
2585
- Defaults: {};
2586
- }, Readonly<{
2587
- switch?: (clickedOption: 1 | 2) => void;
2588
- initialActive?: number;
2589
- hasIcons?: boolean;
2590
- }> & Readonly<{}>, {}, {}, {}, {}, {}>;
2591
- __isFragment?: never;
2592
- __isTeleport?: never;
2593
- __isSuspense?: never;
2594
- } & import('vue').ComponentOptionsBase<Readonly<{
2595
- switch?: (clickedOption: 1 | 2) => void;
2596
- initialActive?: number;
2597
- hasIcons?: boolean;
2598
- }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
2599
- $slots: {
2600
- firstOption?(_: {
2601
- active: boolean;
2602
- }): any;
2603
- secondOption?(_: {
2604
- active: boolean;
2605
- }): any;
2572
+ RadioToggle: <T>(__VLS_props: {
2573
+ size?: string;
2574
+ circle?: boolean;
2575
+ value: T;
2576
+ onChange?: (value: T) => void;
2577
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
2578
+ slots: {
2579
+ default?(_: {}): any;
2606
2580
  };
2607
- });
2581
+ attrs: any;
2582
+ emit: {};
2583
+ }, __VLS_expose?: (exposed: import('vue').ShallowUnwrapRef<{}>) => void, __VLS_setup?: Promise<{
2584
+ props: {
2585
+ size?: string;
2586
+ circle?: boolean;
2587
+ value: T;
2588
+ onChange?: (value: T) => void;
2589
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
2590
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
2591
+ attrs: any;
2592
+ slots: {
2593
+ default?(_: {}): any;
2594
+ };
2595
+ emit: {};
2596
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
2597
+ [key: string]: any;
2598
+ }> & {
2599
+ __ctx?: {
2600
+ props: {
2601
+ size?: string;
2602
+ circle?: boolean;
2603
+ value: T;
2604
+ onChange?: (value: T) => void;
2605
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
2606
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
2607
+ attrs: any;
2608
+ slots: {
2609
+ default?(_: {}): any;
2610
+ };
2611
+ emit: {};
2612
+ };
2613
+ };
2614
+ RadioOption: <T_1>(__VLS_props: {
2615
+ value: T_1;
2616
+ circle?: boolean;
2617
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
2618
+ slots: {
2619
+ default?(_: {}): any;
2620
+ };
2621
+ attrs: any;
2622
+ emit: {};
2623
+ }, __VLS_expose?: (exposed: import('vue').ShallowUnwrapRef<{}>) => void, __VLS_setup?: Promise<{
2624
+ props: {
2625
+ value: T_1;
2626
+ circle?: boolean;
2627
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
2628
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
2629
+ attrs: any;
2630
+ slots: {
2631
+ default?(_: {}): any;
2632
+ };
2633
+ emit: {};
2634
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
2635
+ [key: string]: any;
2636
+ }> & {
2637
+ __ctx?: {
2638
+ props: {
2639
+ value: T_1;
2640
+ circle?: boolean;
2641
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
2642
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
2643
+ attrs: any;
2644
+ slots: {
2645
+ default?(_: {}): any;
2646
+ };
2647
+ emit: {};
2648
+ };
2649
+ };
2608
2650
  SvgIcon: import('vue').DefineComponent<{
2609
2651
  icon: string;
2610
2652
  }, {
@@ -13,6 +13,8 @@ export declare const NOTIFICATION_SHOW_TIMEOUTS: {
13
13
  readonly LONG: 8000;
14
14
  };
15
15
  export declare const NOTIFICATIONS: {
16
+ readonly RENDERING_LIGHT: "rendering-light-notification";
17
+ readonly MAXIMUM_LIGHTS: "maximum-lights-notification";
16
18
  readonly LOAD_IDB_CONFIG: "load-idb-config";
17
19
  readonly FIRST_PERSON_CONTROLS: "first-person-controls";
18
20
  readonly STOP_CONFIGURE_HINT: "stop-configure-hint";
@@ -43,8 +45,10 @@ export type InteractionNotificationStore = Record<InteractionTypes, Notification
43
45
  message: string;
44
46
  }>>;
45
47
  export interface NotificationsStore {
48
+ [NOTIFICATIONS.MAXIMUM_LIGHTS]: NotificationData<number>;
46
49
  [NOTIFICATIONS.LOAD_IDB_CONFIG]: NotificationData<SavedIdbData<string>>;
47
50
  [NOTIFICATIONS.FIRST_PERSON_CONTROLS]: NotificationData<null>;
51
+ [NOTIFICATIONS.RENDERING_LIGHT]: NotificationData<null>;
48
52
  [NOTIFICATIONS.INTERACTION_NOTE]: InteractionNotificationStore;
49
53
  }
50
54
  export {};
@@ -1109,5 +1109,5 @@ export declare const useStaticItemParameters: (api: RoomlePlannerWithExtObjs, ma
1109
1109
  readonly __IS_SAMPLE_COLOR__: 1;
1110
1110
  }];
1111
1111
  }] | RapiMaterialGroup[]>;
1112
- onMaterialSelection: (element: GridViewElement<MaterialsForObjects>) => Promise<void>;
1112
+ onMaterialSelection: (element: GridViewElement<MaterialsForObjects>, _key?: string, isCustomColor?: boolean) => Promise<void>;
1113
1113
  };
@@ -1,12 +1,12 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
2
  addonTag: UiPossibleChildTag;
3
3
  isExpanded: boolean;
4
- onExpand: () => void;
4
+ onExpand?: () => void;
5
5
  onCollapse: (_payload: MouseEvent) => void;
6
6
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
7
7
  addonTag: UiPossibleChildTag;
8
8
  isExpanded: boolean;
9
- onExpand: () => void;
9
+ onExpand?: () => void;
10
10
  onCollapse: (_payload: MouseEvent) => void;
11
11
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
12
  export default _default;
@@ -3,7 +3,7 @@ import { TouchDrag } from '../../../../packages/common/src/utils/touch-drag';
3
3
 
4
4
  declare const _default: import('vue').DefineComponent<{
5
5
  isExpanded?: boolean;
6
- onExpand: (event: MouseEvent) => void;
6
+ onExpand?: (event: MouseEvent) => void;
7
7
  onSelect: ((...args: any[]) => any)[] | ((possibleChild: GridViewElement<any>, event?: Event) => Promise<void>);
8
8
  onDragStart?: (gridViewElement: GridViewElement<any>, event: TouchEvent | DragEvent) => Promise<void>;
9
9
  onDragEnd?: (gridViewElement: GridViewElement<any>, event: TouchEvent | DragEvent) => void;
@@ -18,7 +18,7 @@ declare const _default: import('vue').DefineComponent<{
18
18
  currentTouch: TouchDrag<GridViewElement<any>>;
19
19
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
20
20
  isExpanded?: boolean;
21
- onExpand: (event: MouseEvent) => void;
21
+ onExpand?: (event: MouseEvent) => void;
22
22
  onSelect: ((...args: any[]) => any)[] | ((possibleChild: GridViewElement<any>, event?: Event) => Promise<void>);
23
23
  onDragStart?: (gridViewElement: GridViewElement<any>, event: TouchEvent | DragEvent) => Promise<void>;
24
24
  onDragEnd?: (gridViewElement: GridViewElement<any>, event: TouchEvent | DragEvent) => void;
@@ -1,12 +1,12 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
2
  parameter?: UiKernelParameter;
3
3
  isExpanded: boolean;
4
- onExpand: (_payload: MouseEvent) => void;
4
+ onExpand?: (_payload: MouseEvent) => void;
5
5
  onCollapse?: (_payload: MouseEvent) => void;
6
6
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
7
7
  parameter?: UiKernelParameter;
8
8
  isExpanded: boolean;
9
- onExpand: (_payload: MouseEvent) => void;
9
+ onExpand?: (_payload: MouseEvent) => void;
10
10
  onCollapse?: (_payload: MouseEvent) => void;
11
11
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
12
  export default _default;
@@ -41,7 +41,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
41
41
  }, {}, {
42
42
  GridView: import('vue').DefineComponent<{
43
43
  isExpanded?: boolean;
44
- onExpand: (event: MouseEvent) => void;
44
+ onExpand?: (event: MouseEvent) => void;
45
45
  onSelect: ((...args: any[]) => any)[] | ((possibleChild: GridViewElement<any>, event?: Event) => Promise<void>);
46
46
  onDragStart?: (gridViewElement: GridViewElement<any>, event: TouchEvent | DragEvent) => Promise<void>;
47
47
  onDragEnd?: (gridViewElement: GridViewElement<any>, event: TouchEvent | DragEvent) => void;
@@ -56,7 +56,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
56
56
  currentTouch: import('../../../../../packages/common/src/utils/touch-drag').TouchDrag<GridViewElement<any>>;
57
57
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
58
58
  isExpanded?: boolean;
59
- onExpand: (event: MouseEvent) => void;
59
+ onExpand?: (event: MouseEvent) => void;
60
60
  onSelect: ((...args: any[]) => any)[] | ((possibleChild: GridViewElement<any>, event?: Event) => Promise<void>);
61
61
  onDragStart?: (gridViewElement: GridViewElement<any>, event: TouchEvent | DragEvent) => Promise<void>;
62
62
  onDragEnd?: (gridViewElement: GridViewElement<any>, event: TouchEvent | DragEvent) => void;
@@ -6,7 +6,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
6
6
  isExpanded: BooleanConstructor;
7
7
  onExpand: {
8
8
  type: PropType<(_payload: MouseEvent) => void>;
9
- required: true;
10
9
  };
11
10
  onCollapse: {
12
11
  type: PropType<(_payload: MouseEvent) => void>;
@@ -24,7 +23,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
24
23
  isExpanded: BooleanConstructor;
25
24
  onExpand: {
26
25
  type: PropType<(_payload: MouseEvent) => void>;
27
- required: true;
28
26
  };
29
27
  onCollapse: {
30
28
  type: PropType<(_payload: MouseEvent) => void>;
@@ -34,7 +32,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
34
32
  }, {}, {
35
33
  GridView: import('vue').DefineComponent<{
36
34
  isExpanded?: boolean;
37
- onExpand: (event: MouseEvent) => void;
35
+ onExpand?: (event: MouseEvent) => void;
38
36
  onSelect: ((...args: any[]) => any)[] | ((possibleChild: GridViewElement<any>, event?: Event) => Promise<void>);
39
37
  onDragStart?: (gridViewElement: GridViewElement<any>, event: TouchEvent | DragEvent) => Promise<void>;
40
38
  onDragEnd?: (gridViewElement: GridViewElement<any>, event: TouchEvent | DragEvent) => void;
@@ -49,7 +47,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
49
47
  currentTouch: import('../../../../../packages/common/src/utils/touch-drag').TouchDrag<GridViewElement<any>>;
50
48
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
51
49
  isExpanded?: boolean;
52
- onExpand: (event: MouseEvent) => void;
50
+ onExpand?: (event: MouseEvent) => void;
53
51
  onSelect: ((...args: any[]) => any)[] | ((possibleChild: GridViewElement<any>, event?: Event) => Promise<void>);
54
52
  onDragStart?: (gridViewElement: GridViewElement<any>, event: TouchEvent | DragEvent) => Promise<void>;
55
53
  onDragEnd?: (gridViewElement: GridViewElement<any>, event: TouchEvent | DragEvent) => void;
@@ -4,7 +4,7 @@ import { MessageHandler } from '../../../packages/common/src/utils/message-handl
4
4
  import { Store } from 'vuex';
5
5
  import { StoreState } from '../../common/store';
6
6
  import { Nullable } from '../../common/utils/types';
7
- import { RoomleConfiguratorType, RoomlePlannerWithExtObjs } from '@roomle/web-sdk/typings/external-objects';
7
+ import { ExtObjId, RoomleConfiguratorType, RoomlePlannerWithExtObjs } from '@roomle/web-sdk/typings/external-objects';
8
8
  import { Analytics } from '../../common/plugins/analytics';
9
9
  import { default as RoomleGLBViewer } from '@roomle/web-sdk/glb-viewer-core/src/roomle-glb-viewer';
10
10
  import { GlobalCallback } from '@roomle/web-sdk/common-core/src/services/global-callback';
@@ -18,6 +18,7 @@ import { DragInOptions } from '../../../packages/embedding-lib/src/plugins/types
18
18
  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
+ import { RapiId } from '@roomle/web-sdk/typings/rapi-types';
21
22
 
22
23
  export declare class ExposedApi {
23
24
  private _sdk;
@@ -189,4 +190,12 @@ export declare class ExposedApi {
189
190
  private _websiteReady;
190
191
  private _handleMessage;
191
192
  private _forwardSdkCallbacks;
193
+ /**
194
+ *
195
+ * Inserts an object into the plan or swapped an object with an existing object in the plan.
196
+ * If an object in the scene is selected and the swap action is enabled, the selected object is replaced with the new object.
197
+ * If no object is selected or the swap action is disabled, the new object is simply inserted into the scene.
198
+ * @param objectId of the object being inserted or swapped
199
+ */
200
+ insertOrSwapObject(objectId: RapiId | ExtObjId): Promise<void>;
192
201
  }
@@ -153,6 +153,9 @@ export interface UiInitData extends InitDataDefinition, GlobalInitDataDefinition
153
153
  [INTERACTION_NOTIFICATIONS.ADD_ELEMENT]?: boolean;
154
154
  [INTERACTION_NOTIFICATIONS.PARAMETER_CHANGED]?: boolean;
155
155
  };
156
+ [key: string]: boolean | {
157
+ [key: string]: boolean | undefined;
158
+ } | undefined;
156
159
  };
157
160
  /**
158
161
  * @description skin the embedding instance
@@ -23,7 +23,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
23
23
  }, {
24
24
  scalingDirection: number;
25
25
  }, {}, {
26
- changeScalingDirection(activeSwitch: number): Promise<void>;
26
+ changeScalingDirection(): Promise<void>;
27
27
  setElementLength(value: string): void;
28
28
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
29
29
  onSetElementLength: {
@@ -43,40 +43,84 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
43
43
  required: true;
44
44
  };
45
45
  }>> & Readonly<{}>, {}, {}, {
46
- SwitchButton: {
47
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
48
- switch?: (clickedOption: 1 | 2) => void;
49
- initialActive?: number;
50
- hasIcons?: boolean;
51
- }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
52
- P: {};
53
- B: {};
54
- D: {};
55
- C: {};
56
- M: {};
57
- Defaults: {};
58
- }, Readonly<{
59
- switch?: (clickedOption: 1 | 2) => void;
60
- initialActive?: number;
61
- hasIcons?: boolean;
62
- }> & Readonly<{}>, {}, {}, {}, {}, {}>;
63
- __isFragment?: never;
64
- __isTeleport?: never;
65
- __isSuspense?: never;
66
- } & import('vue').ComponentOptionsBase<Readonly<{
67
- switch?: (clickedOption: 1 | 2) => void;
68
- initialActive?: number;
69
- hasIcons?: boolean;
70
- }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
71
- $slots: {
72
- firstOption?(_: {
73
- active: boolean;
74
- }): any;
75
- secondOption?(_: {
76
- active: boolean;
77
- }): any;
78
- };
79
- });
46
+ RadioToggle: <T>(__VLS_props: {
47
+ size?: string;
48
+ circle?: boolean;
49
+ value: T;
50
+ onChange?: (value: T) => void;
51
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
52
+ slots: {
53
+ default?(_: {}): any;
54
+ };
55
+ attrs: any;
56
+ emit: {};
57
+ }, __VLS_expose?: (exposed: import('vue').ShallowUnwrapRef<{}>) => void, __VLS_setup?: Promise<{
58
+ props: {
59
+ size?: string;
60
+ circle?: boolean;
61
+ value: T;
62
+ onChange?: (value: T) => void;
63
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
64
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
65
+ attrs: any;
66
+ slots: {
67
+ default?(_: {}): any;
68
+ };
69
+ emit: {};
70
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
71
+ [key: string]: any;
72
+ }> & {
73
+ __ctx?: {
74
+ props: {
75
+ size?: string;
76
+ circle?: boolean;
77
+ value: T;
78
+ onChange?: (value: T) => void;
79
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
80
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
81
+ attrs: any;
82
+ slots: {
83
+ default?(_: {}): any;
84
+ };
85
+ emit: {};
86
+ };
87
+ };
88
+ RadioOption: <T_1>(__VLS_props: {
89
+ value: T_1;
90
+ circle?: boolean;
91
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
92
+ slots: {
93
+ default?(_: {}): any;
94
+ };
95
+ attrs: any;
96
+ emit: {};
97
+ }, __VLS_expose?: (exposed: import('vue').ShallowUnwrapRef<{}>) => void, __VLS_setup?: Promise<{
98
+ props: {
99
+ value: T_1;
100
+ circle?: boolean;
101
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
102
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
103
+ attrs: any;
104
+ slots: {
105
+ default?(_: {}): any;
106
+ };
107
+ emit: {};
108
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
109
+ [key: string]: any;
110
+ }> & {
111
+ __ctx?: {
112
+ props: {
113
+ value: T_1;
114
+ circle?: boolean;
115
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
116
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
117
+ attrs: any;
118
+ slots: {
119
+ default?(_: {}): any;
120
+ };
121
+ emit: {};
122
+ };
123
+ };
80
124
  SvgIcon: import('vue').DefineComponent<{
81
125
  icon: string;
82
126
  }, {
@@ -6,6 +6,7 @@ declare const _default: import('vue').DefineComponent<{
6
6
  changeUnit?: (activeSwitch: number) => void;
7
7
  activeSwitch?: number;
8
8
  label?: string;
9
+ circle?: boolean;
9
10
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
10
11
  firstIcon?: string;
11
12
  secondIcon?: string;
@@ -14,5 +15,6 @@ declare const _default: import('vue').DefineComponent<{
14
15
  changeUnit?: (activeSwitch: number) => void;
15
16
  activeSwitch?: number;
16
17
  label?: string;
18
+ circle?: boolean;
17
19
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
20
  export default _default;