@roomle/embedding-lib 5.27.0-alpha.5 → 5.28.0-alpha.1

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 (25) hide show
  1. package/docs/md/web/embedding/CHANGELOG.md +19 -2
  2. package/package.json +1 -1
  3. package/packages/web-sdk/packages/common-core/src/light/light-source.d.ts +2 -0
  4. package/packages/web-sdk/packages/common-core/src/utils/threejs-utils.d.ts +2 -1
  5. package/packages/web-sdk/packages/common-core/src/webgl/roomle-component-factory.d.ts +1 -0
  6. package/packages/web-sdk/packages/common-core/src/webgl/scene-manager.d.ts +1 -1
  7. package/packages/web-sdk/packages/planner-core/src/lights/ceiling-light.d.ts +1 -1
  8. package/packages/web-sdk/packages/planner-core/src/lights/light-group.d.ts +1 -2
  9. package/packages/web-sdk/packages/planner-core/src/roomle-planner.d.ts +12 -6
  10. package/packages/web-sdk/packages/planner-core/src/services/planner-kernel-access.d.ts +1 -1
  11. package/packages/web-sdk/packages/planner-core/src/view-model/plan-view-model.d.ts +1 -4
  12. package/packages/web-sdk/packages/planner-core/src/webgl/planner-scene-manager.d.ts +5 -1
  13. package/src/common/components/SwitchButton.vue.d.ts +21 -15
  14. package/src/common/components/inputs/BaseInput.vue.d.ts +0 -2
  15. package/src/common/components/inputs/NumericInput.vue.d.ts +2 -2
  16. package/src/common/components/side-bar/utils/configurator-sidebar-components.d.ts +79 -111
  17. package/src/common/composables/use-planner-actions-visibility.d.ts +1 -0
  18. package/src/common/composables/use-selected-plan-element.d.ts +1 -0
  19. package/src/common/store/common-ui-store.d.ts +4 -1
  20. package/src/common/utils/parameters.d.ts +3 -0
  21. package/src/planner/components/overlays/product-settings/ProductRangeControl.vue.d.ts +6 -6
  22. package/src/planner/components/overlays/rooms/ElementLengthScaling.vue.d.ts +34 -15
  23. package/src/planner/components/overlays/rooms/IconSwitch.vue.d.ts +34 -15
  24. package/src/planner/components/overlays/rooms/ParameterSwitch.vue.d.ts +17 -41
  25. package/src/planner/components/overlays/rooms/RoomUnitSwitch.vue.d.ts +11 -83
@@ -1,6 +1,23 @@
1
- ## [5.27.0-alpha.5](https://github.com/roomle-dev/roomle-ui/compare/embedding-lib-v5.27.0-alpha.4...embedding-lib-v5.27.0-alpha.5) (2025-09-04)
1
+ ## [5.28.0-alpha.1](https://github.com/roomle-dev/roomle-ui/compare/embedding-lib-v5.27.0...embedding-lib-v5.28.0-alpha.1) (2025-09-10)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * **core:** upgrade to version 2.59.0-alpha.9 ([a93b26a](https://github.com/roomle-dev/roomle-ui/commit/a93b26a6d0b545cafd00ca25cff3e7a4fc73b80d))
6
+ * adding light toggles for individual lights and all lights ([d3adba9](https://github.com/roomle-dev/roomle-ui/commit/d3adba9e957875d380d9c120eb22f42e6d177d43))
7
+ * core api - duplicate group ([f6af154](https://github.com/roomle-dev/roomle-ui/commit/f6af1541b214d8fe7c0e3a23d3e8da6d00f42edf))
8
+ * **core:** upgrade to version 2.59.0-alpha.10 ([dc8fcc0](https://github.com/roomle-dev/roomle-ui/commit/dc8fcc05f840bd02652cc45a91f2a3b295d29582))
9
+ * **core:** upgrade to version 2.59.0 ([b7dd5c1](https://github.com/roomle-dev/roomle-ui/commit/b7dd5c125de98003a68c2ab3df965fdc8442f298))
10
+ * **core:** upgrade to version 2.60.0-alpha.1 ([6d9b58b](https://github.com/roomle-dev/roomle-ui/commit/6d9b58bd31a386f30b11bc91777a2aaee0e1d325))
11
+ * **core:** upgrade to version 2.60.0-alpha.2 ([8d4d507](https://github.com/roomle-dev/roomle-ui/commit/8d4d507631afca3960f75fb91c192c77086de75d))
12
+ * working UI, flying menu, toggles ([4738c37](https://github.com/roomle-dev/roomle-ui/commit/4738c37806c756594143ab8106ab5c375ca60327))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * failing e2e tests ([2aede5a](https://github.com/roomle-dev/roomle-ui/commit/2aede5a6512b1b650a9bd85ffebb87f493ad29b4))
18
+ * feedback fixes ([f4d07d0](https://github.com/roomle-dev/roomle-ui/commit/f4d07d01c3663cccb454bc27a57f3adef4c236f8))
19
+ * remove border and border radius from component measurements ([3b7b0fd](https://github.com/roomle-dev/roomle-ui/commit/3b7b0fd8ae5dea042c8cba52205d6d6e5827e1ff))
20
+ * remove light setting when no light elements are found, default lighting on configure ([f6656fb](https://github.com/roomle-dev/roomle-ui/commit/f6656fbb4dbbbc46abb2917c6a6b14790280c3ed))
21
+ * tests ([e95886e](https://github.com/roomle-dev/roomle-ui/commit/e95886e7b3dabc0c6a56863791fce63495089d98))
22
+ * tests ([46eab0d](https://github.com/roomle-dev/roomle-ui/commit/46eab0da4e398f6dc2f05e348c044c9010b41acf))
23
+ * use text inputs on android when inchfeet is used ([9aa26d8](https://github.com/roomle-dev/roomle-ui/commit/9aa26d8238aa0b079e4d3aa765f28553d556764e))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roomle/embedding-lib",
3
- "version": "5.27.0-alpha.5",
3
+ "version": "5.28.0-alpha.1",
4
4
  "description": "This is a small library which can be used to communicate with the Roomle Configurator",
5
5
  "type": "module",
6
6
  "main": "./roomle-embedding-lib.umd.js",
@@ -7,7 +7,9 @@ export declare class RoomleLightSource {
7
7
  private _light;
8
8
  constructor(lightSourceId: number, lightSource: Light);
9
9
  get lightSourceId(): number;
10
+ get isLightOn(): boolean;
10
11
  addToScene(object3d: Object3D): void;
11
12
  removeFromScene(): void;
13
+ setLightOnOff(state: boolean): void;
12
14
  updateLightSource(lightSourceAttributes: any): void;
13
15
  }
@@ -2,7 +2,7 @@ import { Dimensioning, KernelCube, KernelEnum } from '../../../typings/kernel';
2
2
  import { AssetUrl, RapiMaterial, RapiMaterialShading, RapiTexture } from '../../../typings/rapi-types';
3
3
  import { Position2, Position3 } from '../common-interfaces';
4
4
  import { default as WallPlanElementViewModel } from '../../../planner-core/src/view-model/wall-plan-element-view-model';
5
- import { Camera, Intersection, Material, Matrix4, MeshPhysicalMaterial, MeshStandardMaterial, NormalBufferAttributes, Object3D, Object3DEventMap, Quaternion, Texture, Vector2, Scene, Box3, BufferGeometry, Color, CubeTexture, DataTexture, Layers, Mesh, MeshBasicMaterial, Vector3 } from 'three';
5
+ import { ShaderChunk, Camera, Intersection, Material, Matrix4, MeshPhysicalMaterial, MeshStandardMaterial, NormalBufferAttributes, Object3D, Object3DEventMap, Quaternion, Texture, Vector2, Scene, Box3, BufferGeometry, Color, CubeTexture, DataTexture, Layers, Mesh, MeshBasicMaterial, Vector3 } from 'three';
6
6
  import { GUI } from 'dat.gui';
7
7
  import { OBJECT_EVENT } from '../../../configurator-core/src/utils/raycast-helper';
8
8
  import { INPUT_EVENT_TYPE } from '../input/input-manager';
@@ -132,4 +132,5 @@ export interface Object3DRoomleEventMap extends Object3DEventMap {
132
132
  * normalize the angle between -PI and PI
133
133
  */
134
134
  export declare const normalizeRotation: (angleInRad: number) => number;
135
+ export declare const patchLighting: (shaderChunk: typeof ShaderChunk) => void;
135
136
  export {};
@@ -29,6 +29,7 @@ export interface RoomleComponent extends RoomleEventedObject3D {
29
29
  getLightSourceById(lightSourceId: number): RoomleLightSource | null;
30
30
  removeLightSourceById(lightSourceId: number): void;
31
31
  addLightSource(lightSource: RoomleLightSource): void;
32
+ getAllLightSources(): Map<number, RoomleLightSource>;
32
33
  getMeshById(meshId: number): Mesh;
33
34
  removeAllMeshes(): void;
34
35
  select(): void;
@@ -103,7 +103,7 @@ export default abstract class SceneManager implements Context, LifeCycleCallback
103
103
  protected _setupScene(_offset?: CanvasOffset, transparent?: boolean): void;
104
104
  loadEnvMap(url: string): Promise<void>;
105
105
  private _getEnvMapIntensityAndRotation;
106
- private _setDefaultEnvironmentScene;
106
+ protected _setDefaultEnvironmentScene(): void;
107
107
  private _setEnvMap;
108
108
  private _tabVisible;
109
109
  private _releaseKeystrokeStates;
@@ -6,7 +6,7 @@ export declare const CEILING_LIGHT_INTENSITY = 2;
6
6
  export declare const CEILING_LIGHT_DISTANCE = 25;
7
7
  export declare const CEILING_LIGHT_DECAY = 0;
8
8
  export declare const CEILING_LIGHT_POWER = 25;
9
- export declare const CEILING_LIGHT_SHADOW_INTENSITY = 0.5;
9
+ export declare const CEILING_LIGHT_SHADOW_INTENSITY = 0;
10
10
  export declare const CEILING_LIGHT_SHADOW_MAP_SIZE = 0;
11
11
  export default class CeilingLight extends PointLight {
12
12
  private _container;
@@ -4,9 +4,8 @@ import { default as CeilingLight } from './ceiling-light';
4
4
  export declare class LightGroup extends Group {
5
5
  children: CeilingLight[];
6
6
  private _availableShadowMaps;
7
- private _lightsOn;
8
7
  get lightsOn(): boolean;
9
8
  constructor();
10
9
  add(...lights: Array<Object3D<Object3DEventMap>>): this;
11
- toggleAllLights(turnLightsOn: boolean): void;
10
+ toggleAllLights(on: boolean): void;
12
11
  }
@@ -28,6 +28,7 @@ import { PluginName } from '../../configurator-core/src/utils/plugin-types';
28
28
  import { Nullable } from '../../typings/helper';
29
29
  import { MaybePromise } from '../../common-core/src/utils/common-utils';
30
30
  import { HomagIntelligence } from '../../homag-intelligence/src/homag-intelligence';
31
+ import { RoomleLightSource } from '../../common-core/src/light/light-source';
31
32
 
32
33
  export type ID_TYPE = 'rml_id' | 'tc_id' | 'rml_serialized' | 'tc_serialized';
33
34
  export declare const EXT_OBJ_EXCEPTION = "Could not retrieve configuration for external object! Did you implement onGetConfigurationForExternalObject?";
@@ -499,15 +500,20 @@ export default class RoomlePlanner<P extends readonly PluginName[] = readonly []
499
500
  */
500
501
  resumeInputListeners(): void;
501
502
  /**
502
- * Enables experimental lights in the scene
503
- * @hidden
503
+ * Returns all configurable element's light/lamp sources in the scene.
504
504
  */
505
- turnLightsOn(): void;
505
+ getScenePlanElementLightSources(): Array<Map<number, RoomleLightSource>>;
506
506
  /**
507
- * Disables experimental lights in the scene
508
- * @hidden
507
+ * Turns all lights in the scene on or off.
508
+ * @param state whether the lights should be on or off
509
+ */
510
+ setAllLightsOnOff(state: boolean): void;
511
+ /**
512
+ * Turns lights by list of light IDs in the scene on or off
513
+ * @param state whether the lights should be on or off
514
+ * @param ids array of light IDs, see type interface RoomleLightSource._lightSourceId
509
515
  */
510
- turnLightsOff(): void;
516
+ setLightsOnOffByIds(ids: number[], state: boolean): void;
511
517
  getPlanObjectForRuntimeId(runtimeId: number): Promise<PlanElementViewModel | null>;
512
518
  rotateByRuntimeId(runtimeId: number, rotateBy: number): Promise<void>;
513
519
  deleteByRuntimeId(runtimeId: number): Promise<void>;
@@ -71,7 +71,7 @@ export default class PlannerKernelAccess extends ConfiguratorKernelAccess {
71
71
  externalObjectConfigurationLoaded(plan: Plan, planObject: PlanObject, configuration: string): void;
72
72
  externalObjectConfigurationDeleted(plan: Plan, planObject: PlanObject, uniqueId: string): void;
73
73
  externalObjectComponentDeleted(plan: Plan, planObject: PlanObject, remainingGroupOrGroups: ExternalObjectGroup | ExternalObjectGroup[], deletedRootModuleId: string): void;
74
- externalObjectConfigurationDuplicated(plan: Plan, planObject: PlanObject, sourceGroupId: string, newGroupPosition: ExternalObjectGroupPosition): void;
74
+ externalObjectConfigurationDuplicated(plan: Plan, planObject: PlanObject, duplicatedGroup: ExternalObjectGroup): void;
75
75
  externalObjectPlanChanged(plan: Plan, planObject: PlanObject, movedGroup: ExternalObjectGroup): void;
76
76
  externalObjectConfigurationsMerged(plan: Plan, planObject: PlanObject, mergedGroup: ExternalObjectGroup, idsOfGroupsMerged: string | string[], targetRootModuleId: string): void;
77
77
  externalObjectComponentSplitOff(plan: Plan, planObject: PlanObject, splitGroups: ExternalObjectGroup[]): void;
@@ -18,7 +18,6 @@ import { default as ConstructionPlanObjectViewModel } from './construction-plan-
18
18
  import { default as MeasurementLinePlanElementViewModel } from './measurement-line-plan-element-view-model';
19
19
  import { LightGroup } from '../lights/light-group';
20
20
  import { QualityLevel } from '../../../common-core/src/webgl/renderer/scene-renderer';
21
- import { default as LampLight } from '../lights/lamp-light';
22
21
  import { Point } from 'roomle-core-hsc/src/embind/configuratorCoreInterface';
23
22
  import { default as WallAtticPlanElementViewModel } from './wall-attic-plan-element-view-model';
24
23
 
@@ -96,7 +95,7 @@ export default class PlanViewModel extends ConfiguratorViewModel implements Plan
96
95
  rotation?: Point;
97
96
  active?: boolean;
98
97
  }): void;
99
- toggleCeilingLights(on: boolean, isInteriorLightsActive: boolean): void;
98
+ toggleCeilingLights(on: boolean): void;
100
99
  private commonHandlerForEditableAndTopView;
101
100
  protected dockComponent(componentId: number, isRootComponent: boolean, parentId: number, componentPosition: KernelVector3, componentRotation: KernelVector3): void;
102
101
  protected _addComponent(component: RoomleComponent): void;
@@ -113,7 +112,6 @@ export default class PlanViewModel extends ConfiguratorViewModel implements Plan
113
112
  getFloorGroup(): Group;
114
113
  getMeasurementLineGroup(): Group;
115
114
  getCeilingLightsGroup(): LightGroup;
116
- getLampLightsArray(): LampLight[];
117
115
  getWallAtticsGroup(): Group;
118
116
  getBoundingBox(): Box3;
119
117
  getBoundingBoxOfGeometry(): Box3;
@@ -170,5 +168,4 @@ export default class PlanViewModel extends ConfiguratorViewModel implements Plan
170
168
  setNodeZoom(zoom: number): void;
171
169
  planCleared(): void;
172
170
  requestCatalogItem(_catalogItemId: string): void;
173
- turnLightsOnOrOff(onOrOff: boolean): void;
174
171
  }
@@ -21,6 +21,7 @@ import { default as Planner3dCameraBehaviour } from '../../../common-core/src/ca
21
21
  import { default as PlannerFpCameraBehaviour } from '../../../common-core/src/cameracontrol/planner-fp-camera-behaviour';
22
22
  import { EMSConstant } from '../../../typings/planner-kernel-container';
23
23
  import { default as InitData } from '../../../common-core/src/utils/init-data';
24
+ import { RoomleLightSource } from '../../../common-core/src/light/light-source';
24
25
 
25
26
  export declare function isLockedElement(planElementViewModel: PlanElementViewModel, initData: InitData): boolean;
26
27
  declare const SET_WALL_MATERIAL_TYPE: {
@@ -54,6 +55,9 @@ export default class PlannerSceneManager extends ConfiguratorSceneManager implem
54
55
  constructor(creator: string, offset: CanvasOffset, plannerCallback: RoomlePlannerCallback, mode: Enumify<typeof CAMERA_TYPE>);
55
56
  get configuratorContext(): import('../../../common-core/src/webgl/configurator-context').default;
56
57
  get hasSingleRoom(): boolean;
58
+ get scenePlanElementLightSources(): Map<number, RoomleLightSource>[];
59
+ setAllLightsOnOff(state: boolean): void;
60
+ setLightsOnOffByIds(ids: number[], state: boolean): void;
57
61
  private _activateElement;
58
62
  planCleared(): void;
59
63
  planHistoryStateChanged(): void;
@@ -221,7 +225,7 @@ export default class PlannerSceneManager extends ConfiguratorSceneManager implem
221
225
  getObjectComponent(id: number): KernelPlanObjectComponent;
222
226
  getCameraParameters3d(): NonNullable<CameraParameter>;
223
227
  private _createCeilingLightGroup;
224
- toggleInteriorLightsSceneSettings(onOrOff: boolean): void;
228
+ toggleInteriorLightsSceneSettings(on: boolean): void;
225
229
  private _insertRapiItems;
226
230
  insertRapiObjects(rapiIds: InsertItemIdInfo[]): Promise<InsertItemResult[]>;
227
231
  }
@@ -1,16 +1,22 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- switch: FunctionConstructor;
3
- initialActive: NumberConstructor;
4
- hasIcons: BooleanConstructor;
5
- }>, {}, {
6
- activeOption: number;
7
- }, {}, {
8
- switchOption(clickedOption: 1 | 2): void;
9
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
- switch: FunctionConstructor;
11
- initialActive: NumberConstructor;
12
- hasIcons: BooleanConstructor;
13
- }>> & Readonly<{}>, {
14
- hasIcons: boolean;
15
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
+ switch?: (clickedOption: 1 | 2) => void;
3
+ initialActive?: number;
4
+ hasIcons?: boolean;
5
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
6
+ switch?: (clickedOption: 1 | 2) => void;
7
+ initialActive?: number;
8
+ hasIcons?: boolean;
9
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
10
+ firstOption?(_: {
11
+ active: boolean;
12
+ }): any;
13
+ secondOption?(_: {
14
+ active: boolean;
15
+ }): any;
16
+ }>;
16
17
  export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -3,7 +3,6 @@ declare const _default: import('vue').DefineComponent<{
3
3
  onTextInputChange: (_payload: Event, _valueString: string) => void;
4
4
  onKeyDown?: (_payload: KeyboardEvent) => void;
5
5
  onEsc?: (_payload: KeyboardEvent) => void;
6
- isString?: boolean;
7
6
  centerText?: boolean;
8
7
  pauseInputListeners?: boolean;
9
8
  }, {
@@ -81,7 +80,6 @@ declare const _default: import('vue').DefineComponent<{
81
80
  onTextInputChange: (_payload: Event, _valueString: string) => void;
82
81
  onKeyDown?: (_payload: KeyboardEvent) => void;
83
82
  onEsc?: (_payload: KeyboardEvent) => void;
84
- isString?: boolean;
85
83
  centerText?: boolean;
86
84
  pauseInputListeners?: boolean;
87
85
  }> & Readonly<{}>, {
@@ -2,8 +2,8 @@ declare const _default: import('vue').DefineComponent<{
2
2
  valueLabel: string;
3
3
  onTextInputChange: (_payload: Event, _valueString: string) => void;
4
4
  onKeyDown?: (_payload: KeyboardEvent) => void;
5
- isString?: boolean;
6
5
  centerText?: boolean;
6
+ inputMode?: string;
7
7
  }, {
8
8
  setValueString: (valueString: string, _unitChanged?: boolean) => void;
9
9
  getValueString: () => string;
@@ -16,7 +16,7 @@ declare const _default: import('vue').DefineComponent<{
16
16
  valueLabel: string;
17
17
  onTextInputChange: (_payload: Event, _valueString: string) => void;
18
18
  onKeyDown?: (_payload: KeyboardEvent) => void;
19
- isString?: boolean;
20
19
  centerText?: boolean;
20
+ inputMode?: string;
21
21
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
22
  export default _default;
@@ -257,87 +257,17 @@ declare const dynamicComponents: {
257
257
  type: import('vue').PropType<(_value: string, _pi: PlanInteractionHandler) => void>;
258
258
  };
259
259
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
260
- readonly RoomUnitSwitch: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
261
- label: {
262
- type: import('vue').PropType<string>;
263
- required: true;
264
- };
265
- firstOption: {
266
- type: import('vue').PropType<string>;
267
- required: true;
268
- };
269
- secondOption: {
270
- type: import('vue').PropType<string>;
271
- required: true;
272
- };
273
- onChangeUnit: {
274
- type: import('vue').PropType<(_activeSwitch: number) => void>;
275
- required: true;
276
- };
277
- }>, {}, {}, {
278
- activeSwitch(): number;
279
- }, {
280
- changeUnit(activeSwitch: number): Promise<void>;
281
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
282
- label: {
283
- type: import('vue').PropType<string>;
284
- required: true;
285
- };
286
- firstOption: {
287
- type: import('vue').PropType<string>;
288
- required: true;
289
- };
290
- secondOption: {
291
- type: import('vue').PropType<string>;
292
- required: true;
293
- };
294
- onChangeUnit: {
295
- type: import('vue').PropType<(_activeSwitch: number) => void>;
296
- required: true;
297
- };
298
- }>> & Readonly<{}>, {}, {}, {
299
- ParameterSwitch: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
300
- firstIcon: StringConstructor;
301
- secondIcon: StringConstructor;
302
- firstLabel: StringConstructor;
303
- secondLabel: StringConstructor;
304
- changeUnit: FunctionConstructor;
305
- activeSwitch: NumberConstructor;
306
- label: StringConstructor;
307
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
308
- firstIcon: StringConstructor;
309
- secondIcon: StringConstructor;
310
- firstLabel: StringConstructor;
311
- secondLabel: StringConstructor;
312
- changeUnit: FunctionConstructor;
313
- activeSwitch: NumberConstructor;
314
- label: StringConstructor;
315
- }>> & Readonly<{}>, {}, {}, {
316
- LeftHeaderContainer: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
317
- SwitchButton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
318
- switch: FunctionConstructor;
319
- initialActive: NumberConstructor;
320
- hasIcons: BooleanConstructor;
321
- }>, {}, {
322
- activeOption: number;
323
- }, {}, {
324
- switchOption(clickedOption: 1 | 2): void;
325
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
326
- switch: FunctionConstructor;
327
- initialActive: NumberConstructor;
328
- hasIcons: BooleanConstructor;
329
- }>> & Readonly<{}>, {
330
- hasIcons: boolean;
331
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
332
- SvgIcon: import('vue').DefineComponent<{
333
- icon: string;
334
- }, {
335
- svgIcon: import('vue').Ref<HTMLOrSVGElement, HTMLOrSVGElement>;
336
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
337
- icon: string;
338
- }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
339
- }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
340
- }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
260
+ readonly RoomUnitSwitch: import('vue').DefineComponent<{
261
+ label: string;
262
+ firstOption: string;
263
+ secondOption: string;
264
+ onChangeUnit: (activeSwitch: number) => void;
265
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
266
+ label: string;
267
+ firstOption: string;
268
+ secondOption: string;
269
+ onChangeUnit: (activeSwitch: number) => void;
270
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
341
271
  readonly ColorParameter: import('vue').DefineComponent<{
342
272
  groups: RapiMaterialGroup[] | readonly [{
343
273
  readonly id: "ral_9000";
@@ -2631,21 +2561,40 @@ declare const dynamicComponents: {
2631
2561
  required: true;
2632
2562
  };
2633
2563
  }>> & Readonly<{}>, {}, {}, {
2634
- SwitchButton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2635
- switch: FunctionConstructor;
2636
- initialActive: NumberConstructor;
2637
- hasIcons: BooleanConstructor;
2638
- }>, {}, {
2639
- activeOption: number;
2640
- }, {}, {
2641
- switchOption(clickedOption: 1 | 2): void;
2642
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
2643
- switch: FunctionConstructor;
2644
- initialActive: NumberConstructor;
2645
- hasIcons: BooleanConstructor;
2646
- }>> & Readonly<{}>, {
2647
- hasIcons: boolean;
2648
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2564
+ SwitchButton: {
2565
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
2566
+ switch?: (clickedOption: 1 | 2) => void;
2567
+ initialActive?: number;
2568
+ hasIcons?: boolean;
2569
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
2570
+ P: {};
2571
+ B: {};
2572
+ D: {};
2573
+ C: {};
2574
+ M: {};
2575
+ Defaults: {};
2576
+ }, Readonly<{
2577
+ switch?: (clickedOption: 1 | 2) => void;
2578
+ initialActive?: number;
2579
+ hasIcons?: boolean;
2580
+ }> & Readonly<{}>, {}, {}, {}, {}, {}>;
2581
+ __isFragment?: never;
2582
+ __isTeleport?: never;
2583
+ __isSuspense?: never;
2584
+ } & import('vue').ComponentOptionsBase<Readonly<{
2585
+ switch?: (clickedOption: 1 | 2) => void;
2586
+ initialActive?: number;
2587
+ hasIcons?: boolean;
2588
+ }> & 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 () => {
2589
+ $slots: {
2590
+ firstOption?(_: {
2591
+ active: boolean;
2592
+ }): any;
2593
+ secondOption?(_: {
2594
+ active: boolean;
2595
+ }): any;
2596
+ };
2597
+ });
2649
2598
  SvgIcon: import('vue').DefineComponent<{
2650
2599
  icon: string;
2651
2600
  }, {
@@ -2714,21 +2663,40 @@ declare const dynamicComponents: {
2714
2663
  required: true;
2715
2664
  };
2716
2665
  }>> & Readonly<{}>, {}, {}, {
2717
- SwitchButton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2718
- switch: FunctionConstructor;
2719
- initialActive: NumberConstructor;
2720
- hasIcons: BooleanConstructor;
2721
- }>, {}, {
2722
- activeOption: number;
2723
- }, {}, {
2724
- switchOption(clickedOption: 1 | 2): void;
2725
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
2726
- switch: FunctionConstructor;
2727
- initialActive: NumberConstructor;
2728
- hasIcons: BooleanConstructor;
2729
- }>> & Readonly<{}>, {
2730
- hasIcons: boolean;
2731
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2666
+ SwitchButton: {
2667
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
2668
+ switch?: (clickedOption: 1 | 2) => void;
2669
+ initialActive?: number;
2670
+ hasIcons?: boolean;
2671
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
2672
+ P: {};
2673
+ B: {};
2674
+ D: {};
2675
+ C: {};
2676
+ M: {};
2677
+ Defaults: {};
2678
+ }, Readonly<{
2679
+ switch?: (clickedOption: 1 | 2) => void;
2680
+ initialActive?: number;
2681
+ hasIcons?: boolean;
2682
+ }> & Readonly<{}>, {}, {}, {}, {}, {}>;
2683
+ __isFragment?: never;
2684
+ __isTeleport?: never;
2685
+ __isSuspense?: never;
2686
+ } & import('vue').ComponentOptionsBase<Readonly<{
2687
+ switch?: (clickedOption: 1 | 2) => void;
2688
+ initialActive?: number;
2689
+ hasIcons?: boolean;
2690
+ }> & 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 () => {
2691
+ $slots: {
2692
+ firstOption?(_: {
2693
+ active: boolean;
2694
+ }): any;
2695
+ secondOption?(_: {
2696
+ active: boolean;
2697
+ }): any;
2698
+ };
2699
+ });
2732
2700
  SvgIcon: import('vue').DefineComponent<{
2733
2701
  icon: string;
2734
2702
  }, {
@@ -10,4 +10,5 @@ export declare const usePlannerActionsVisibility: () => {
10
10
  selectionIsConstructionElement: import('vue').ComputedRef<boolean>;
11
11
  showSlopingButton: import('vue').ComputedRef<boolean>;
12
12
  showWallVisibilityButton: import('vue').ComputedRef<boolean>;
13
+ showLightingToggle: import('vue').ComputedRef<boolean>;
13
14
  };
@@ -3,4 +3,5 @@ import { StoreState } from '../store';
3
3
  export declare const useSelectedPlanElement: (store: Store<StoreState>) => {
4
4
  selectionElement: import('vue').ComputedRef<PlanElementViewModel>;
5
5
  hasMultiSelection: import('vue').ComputedRef<boolean>;
6
+ selectionElementLightSources: import('vue').ComputedRef<RoomleLightSource[]>;
6
7
  };
@@ -49,6 +49,7 @@ export declare const useCommonUiStore: import('pinia').StoreDefinition<"commonUi
49
49
  loadedConfigFromIdb: import('vue').Ref<boolean, boolean>;
50
50
  notificationVisible: import('vue').Ref<boolean, boolean>;
51
51
  configuratorHintClosed: import('vue').Ref<boolean, boolean>;
52
+ selectedElementLightsAreOn: import('../composables/use-core-bound-value').CoreBoundValue<boolean>;
52
53
  is2d: import('vue').ComputedRef<boolean>;
53
54
  is3d: import('vue').ComputedRef<boolean>;
54
55
  isFp: import('vue').ComputedRef<boolean>;
@@ -64,7 +65,7 @@ export declare const useCommonUiStore: import('pinia').StoreDefinition<"commonUi
64
65
  setDraggingElementStatus: (isDragging: boolean) => void;
65
66
  setMeasurementUnit: (unit: Enumify<typeof MEASUREMENT_UNIT>) => void;
66
67
  setMeasurementSystem: (system: Enumify<typeof MEASUREMENT_SYSTEM>) => void;
67
- }, "showFlyingMenu" | "flyingMenuTriggeredByClick" | "isInIframe" | "isViewOnly" | "lastRequestedId" | "currentViewMode" | "isShadowOnStage" | "measurementUnit" | "measurementSystem" | "isTextInputFocused" | "isCameraIdle" | "currentEmbeddedInfos" | "isDraggingElement" | "loadedConfigFromIdb" | "notificationVisible" | "configuratorHintClosed">, Pick<{
68
+ }, "showFlyingMenu" | "flyingMenuTriggeredByClick" | "isInIframe" | "isViewOnly" | "lastRequestedId" | "currentViewMode" | "isShadowOnStage" | "measurementUnit" | "measurementSystem" | "isTextInputFocused" | "isCameraIdle" | "currentEmbeddedInfos" | "isDraggingElement" | "loadedConfigFromIdb" | "notificationVisible" | "configuratorHintClosed" | "selectedElementLightsAreOn">, Pick<{
68
69
  showFlyingMenu: import('vue').Ref<boolean, boolean>;
69
70
  flyingMenuTriggeredByClick: import('vue').Ref<boolean, boolean>;
70
71
  isInIframe: import('vue').Ref<boolean, boolean>;
@@ -107,6 +108,7 @@ export declare const useCommonUiStore: import('pinia').StoreDefinition<"commonUi
107
108
  loadedConfigFromIdb: import('vue').Ref<boolean, boolean>;
108
109
  notificationVisible: import('vue').Ref<boolean, boolean>;
109
110
  configuratorHintClosed: import('vue').Ref<boolean, boolean>;
111
+ selectedElementLightsAreOn: import('../composables/use-core-bound-value').CoreBoundValue<boolean>;
110
112
  is2d: import('vue').ComputedRef<boolean>;
111
113
  is3d: import('vue').ComputedRef<boolean>;
112
114
  isFp: import('vue').ComputedRef<boolean>;
@@ -165,6 +167,7 @@ export declare const useCommonUiStore: import('pinia').StoreDefinition<"commonUi
165
167
  loadedConfigFromIdb: import('vue').Ref<boolean, boolean>;
166
168
  notificationVisible: import('vue').Ref<boolean, boolean>;
167
169
  configuratorHintClosed: import('vue').Ref<boolean, boolean>;
170
+ selectedElementLightsAreOn: import('../composables/use-core-bound-value').CoreBoundValue<boolean>;
168
171
  is2d: import('vue').ComputedRef<boolean>;
169
172
  is3d: import('vue').ComputedRef<boolean>;
170
173
  isFp: import('vue').ComputedRef<boolean>;
@@ -3,6 +3,7 @@ import { KernelPartListParameter, UiPossibleChildTag } from '@roomle/web-sdk/typ
3
3
  import { ParameterData, TabCategory } from '../components/side-bar/utils/types';
4
4
  import { VariantsMap } from '../../configurator/embedding/types';
5
5
  import { Translator } from '../composables/use-intl';
6
+ import { RoomleLightSource } from '@roomle/web-sdk/common-core/src/light/light-source';
6
7
 
7
8
  export declare const DISABLED_PARAMETERS_ELEM_KEY = "disabled-parameters";
8
9
  export interface RapiMaterialEmbeddedTextures extends RapiMaterial {
@@ -19,3 +20,5 @@ export declare const extractRootComponentId: (id: string) => string;
19
20
  export declare const getCurrentVariants: (api: RoomleConfiguratorType, id: string, variantChangeMap?: VariantsMap) => Promise<any>;
20
21
  export declare const prepareParametersForUi: (parameters: KernelPartListParameter[]) => KernelPartListParameter[];
21
22
  export declare const createDisabledParamsElement: (elements: ParameterData[], intl: Translator) => ParameterData<ParameterData[]>;
23
+ export declare const getElementLightSources: (configuration: PlanElementViewModel) => RoomleLightSource[] | undefined;
24
+ export declare const getLightSourcesAsArray: (sources: Array<Map<number, RoomleLightSource>>) => RoomleLightSource[];
@@ -11,7 +11,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
11
11
  };
12
12
  onDecrease: PropType<() => void>;
13
13
  onIncrease: PropType<() => void>;
14
- isString: BooleanConstructor;
15
14
  disabled: BooleanConstructor;
16
15
  }>, {
17
16
  store: any;
@@ -58,6 +57,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
58
57
  loadedConfigFromIdb: import('vue').Ref<boolean, boolean>;
59
58
  notificationVisible: import('vue').Ref<boolean, boolean>;
60
59
  configuratorHintClosed: import('vue').Ref<boolean, boolean>;
60
+ selectedElementLightsAreOn: import('../../../../common/composables/use-core-bound-value').CoreBoundValue<boolean>;
61
61
  is2d: import('vue').ComputedRef<boolean>;
62
62
  is3d: import('vue').ComputedRef<boolean>;
63
63
  isFp: import('vue').ComputedRef<boolean>;
@@ -82,7 +82,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
82
82
  readonly IMPERIAL: "imperial";
83
83
  readonly METRIC: "metric";
84
84
  }>) => void;
85
- }, "showFlyingMenu" | "flyingMenuTriggeredByClick" | "isInIframe" | "isViewOnly" | "lastRequestedId" | "currentViewMode" | "isShadowOnStage" | "measurementUnit" | "measurementSystem" | "isTextInputFocused" | "isCameraIdle" | "currentEmbeddedInfos" | "isDraggingElement" | "loadedConfigFromIdb" | "notificationVisible" | "configuratorHintClosed">, Pick<{
85
+ }, "showFlyingMenu" | "flyingMenuTriggeredByClick" | "isInIframe" | "isViewOnly" | "lastRequestedId" | "currentViewMode" | "isShadowOnStage" | "measurementUnit" | "measurementSystem" | "isTextInputFocused" | "isCameraIdle" | "currentEmbeddedInfos" | "isDraggingElement" | "loadedConfigFromIdb" | "notificationVisible" | "configuratorHintClosed" | "selectedElementLightsAreOn">, Pick<{
86
86
  showFlyingMenu: import('vue').Ref<boolean, boolean>;
87
87
  flyingMenuTriggeredByClick: import('vue').Ref<boolean, boolean>;
88
88
  isInIframe: import('vue').Ref<boolean, boolean>;
@@ -125,6 +125,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
125
125
  loadedConfigFromIdb: import('vue').Ref<boolean, boolean>;
126
126
  notificationVisible: import('vue').Ref<boolean, boolean>;
127
127
  configuratorHintClosed: import('vue').Ref<boolean, boolean>;
128
+ selectedElementLightsAreOn: import('../../../../common/composables/use-core-bound-value').CoreBoundValue<boolean>;
128
129
  is2d: import('vue').ComputedRef<boolean>;
129
130
  is3d: import('vue').ComputedRef<boolean>;
130
131
  isFp: import('vue').ComputedRef<boolean>;
@@ -192,6 +193,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
192
193
  loadedConfigFromIdb: import('vue').Ref<boolean, boolean>;
193
194
  notificationVisible: import('vue').Ref<boolean, boolean>;
194
195
  configuratorHintClosed: import('vue').Ref<boolean, boolean>;
196
+ selectedElementLightsAreOn: import('../../../../common/composables/use-core-bound-value').CoreBoundValue<boolean>;
195
197
  is2d: import('vue').ComputedRef<boolean>;
196
198
  is3d: import('vue').ComputedRef<boolean>;
197
199
  isFp: import('vue').ComputedRef<boolean>;
@@ -237,18 +239,16 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
237
239
  };
238
240
  onDecrease: PropType<() => void>;
239
241
  onIncrease: PropType<() => void>;
240
- isString: BooleanConstructor;
241
242
  disabled: BooleanConstructor;
242
243
  }>> & Readonly<{}>, {
243
- isString: boolean;
244
244
  disabled: boolean;
245
245
  }, {}, {
246
246
  NumericInput: import('vue').DefineComponent<{
247
247
  valueLabel: string;
248
248
  onTextInputChange: (_payload: Event, _valueString: string) => void;
249
249
  onKeyDown?: (_payload: KeyboardEvent) => void;
250
- isString?: boolean;
251
250
  centerText?: boolean;
251
+ inputMode?: string;
252
252
  }, {
253
253
  setValueString: (valueString: string, _unitChanged?: boolean) => void;
254
254
  getValueString: () => string;
@@ -261,8 +261,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
261
261
  valueLabel: string;
262
262
  onTextInputChange: (_payload: Event, _valueString: string) => void;
263
263
  onKeyDown?: (_payload: KeyboardEvent) => void;
264
- isString?: boolean;
265
264
  centerText?: boolean;
265
+ inputMode?: string;
266
266
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
267
267
  }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
268
268
  export default _default;
@@ -43,21 +43,40 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
43
43
  required: true;
44
44
  };
45
45
  }>> & Readonly<{}>, {}, {}, {
46
- SwitchButton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
47
- switch: FunctionConstructor;
48
- initialActive: NumberConstructor;
49
- hasIcons: BooleanConstructor;
50
- }>, {}, {
51
- activeOption: number;
52
- }, {}, {
53
- switchOption(clickedOption: 1 | 2): void;
54
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
55
- switch: FunctionConstructor;
56
- initialActive: NumberConstructor;
57
- hasIcons: BooleanConstructor;
58
- }>> & Readonly<{}>, {
59
- hasIcons: boolean;
60
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
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
+ });
61
80
  SvgIcon: import('vue').DefineComponent<{
62
81
  icon: string;
63
82
  }, {
@@ -19,21 +19,40 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
19
19
  required: true;
20
20
  };
21
21
  }>> & Readonly<{}>, {}, {}, {
22
- SwitchButton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
23
- switch: FunctionConstructor;
24
- initialActive: NumberConstructor;
25
- hasIcons: BooleanConstructor;
26
- }>, {}, {
27
- activeOption: number;
28
- }, {}, {
29
- switchOption(clickedOption: 1 | 2): void;
30
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
31
- switch: FunctionConstructor;
32
- initialActive: NumberConstructor;
33
- hasIcons: BooleanConstructor;
34
- }>> & Readonly<{}>, {
35
- hasIcons: boolean;
36
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
22
+ SwitchButton: {
23
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
24
+ switch?: (clickedOption: 1 | 2) => void;
25
+ initialActive?: number;
26
+ hasIcons?: boolean;
27
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
28
+ P: {};
29
+ B: {};
30
+ D: {};
31
+ C: {};
32
+ M: {};
33
+ Defaults: {};
34
+ }, Readonly<{
35
+ switch?: (clickedOption: 1 | 2) => void;
36
+ initialActive?: number;
37
+ hasIcons?: boolean;
38
+ }> & Readonly<{}>, {}, {}, {}, {}, {}>;
39
+ __isFragment?: never;
40
+ __isTeleport?: never;
41
+ __isSuspense?: never;
42
+ } & import('vue').ComponentOptionsBase<Readonly<{
43
+ switch?: (clickedOption: 1 | 2) => void;
44
+ initialActive?: number;
45
+ hasIcons?: boolean;
46
+ }> & 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 () => {
47
+ $slots: {
48
+ firstOption?(_: {
49
+ active: boolean;
50
+ }): any;
51
+ secondOption?(_: {
52
+ active: boolean;
53
+ }): any;
54
+ };
55
+ });
37
56
  SvgIcon: import('vue').DefineComponent<{
38
57
  icon: string;
39
58
  }, {
@@ -1,42 +1,18 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- firstIcon: StringConstructor;
3
- secondIcon: StringConstructor;
4
- firstLabel: StringConstructor;
5
- secondLabel: StringConstructor;
6
- changeUnit: FunctionConstructor;
7
- activeSwitch: NumberConstructor;
8
- label: StringConstructor;
9
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
- firstIcon: StringConstructor;
11
- secondIcon: StringConstructor;
12
- firstLabel: StringConstructor;
13
- secondLabel: StringConstructor;
14
- changeUnit: FunctionConstructor;
15
- activeSwitch: NumberConstructor;
16
- label: StringConstructor;
17
- }>> & Readonly<{}>, {}, {}, {
18
- LeftHeaderContainer: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
19
- SwitchButton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
20
- switch: FunctionConstructor;
21
- initialActive: NumberConstructor;
22
- hasIcons: BooleanConstructor;
23
- }>, {}, {
24
- activeOption: number;
25
- }, {}, {
26
- switchOption(clickedOption: 1 | 2): void;
27
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
28
- switch: FunctionConstructor;
29
- initialActive: NumberConstructor;
30
- hasIcons: BooleanConstructor;
31
- }>> & Readonly<{}>, {
32
- hasIcons: boolean;
33
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
34
- SvgIcon: import('vue').DefineComponent<{
35
- icon: string;
36
- }, {
37
- svgIcon: import('vue').Ref<HTMLOrSVGElement, HTMLOrSVGElement>;
38
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
39
- icon: string;
40
- }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
41
- }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{
2
+ firstIcon?: string;
3
+ secondIcon?: string;
4
+ firstLabel?: string;
5
+ secondLabel?: string;
6
+ changeUnit?: (activeSwitch: number) => void;
7
+ activeSwitch?: number;
8
+ label?: string;
9
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
10
+ firstIcon?: string;
11
+ secondIcon?: string;
12
+ firstLabel?: string;
13
+ secondLabel?: string;
14
+ changeUnit?: (activeSwitch: number) => void;
15
+ activeSwitch?: number;
16
+ label?: string;
17
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
42
18
  export default _default;
@@ -1,84 +1,12 @@
1
- import { PropType } from 'vue';
2
-
3
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
- label: {
5
- type: PropType<string>;
6
- required: true;
7
- };
8
- firstOption: {
9
- type: PropType<string>;
10
- required: true;
11
- };
12
- secondOption: {
13
- type: PropType<string>;
14
- required: true;
15
- };
16
- onChangeUnit: {
17
- type: PropType<(_activeSwitch: number) => void>;
18
- required: true;
19
- };
20
- }>, {}, {}, {
21
- activeSwitch(): number;
22
- }, {
23
- changeUnit(activeSwitch: number): Promise<void>;
24
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
25
- label: {
26
- type: PropType<string>;
27
- required: true;
28
- };
29
- firstOption: {
30
- type: PropType<string>;
31
- required: true;
32
- };
33
- secondOption: {
34
- type: PropType<string>;
35
- required: true;
36
- };
37
- onChangeUnit: {
38
- type: PropType<(_activeSwitch: number) => void>;
39
- required: true;
40
- };
41
- }>> & Readonly<{}>, {}, {}, {
42
- ParameterSwitch: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
43
- firstIcon: StringConstructor;
44
- secondIcon: StringConstructor;
45
- firstLabel: StringConstructor;
46
- secondLabel: StringConstructor;
47
- changeUnit: FunctionConstructor;
48
- activeSwitch: NumberConstructor;
49
- label: StringConstructor;
50
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
51
- firstIcon: StringConstructor;
52
- secondIcon: StringConstructor;
53
- firstLabel: StringConstructor;
54
- secondLabel: StringConstructor;
55
- changeUnit: FunctionConstructor;
56
- activeSwitch: NumberConstructor;
57
- label: StringConstructor;
58
- }>> & Readonly<{}>, {}, {}, {
59
- LeftHeaderContainer: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
60
- SwitchButton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
61
- switch: FunctionConstructor;
62
- initialActive: NumberConstructor;
63
- hasIcons: BooleanConstructor;
64
- }>, {}, {
65
- activeOption: number;
66
- }, {}, {
67
- switchOption(clickedOption: 1 | 2): void;
68
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
69
- switch: FunctionConstructor;
70
- initialActive: NumberConstructor;
71
- hasIcons: BooleanConstructor;
72
- }>> & Readonly<{}>, {
73
- hasIcons: boolean;
74
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
75
- SvgIcon: import('vue').DefineComponent<{
76
- icon: string;
77
- }, {
78
- svgIcon: import('vue').Ref<HTMLOrSVGElement, HTMLOrSVGElement>;
79
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
80
- icon: string;
81
- }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
82
- }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
83
- }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{
2
+ label: string;
3
+ firstOption: string;
4
+ secondOption: string;
5
+ onChangeUnit: (activeSwitch: number) => void;
6
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
7
+ label: string;
8
+ firstOption: string;
9
+ secondOption: string;
10
+ onChangeUnit: (activeSwitch: number) => void;
11
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
84
12
  export default _default;