@colijnit/configurator 262.1.4 → 262.1.5

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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnDestroy, EventEmitter, OnInit, TemplateRef, ElementRef, QueryList, AfterViewInit, ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { OnDestroy, EventEmitter, OnInit, TemplateRef, ViewContainerRef, ElementRef, QueryList, AfterViewInit, ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
3
3
  import * as THREE from 'three';
4
- import { Object3D, Material, Vector3, Euler, Color, Side, Scene, Mesh, PerspectiveCamera, WebGLRenderer, Camera, Vector2, Box3 } from 'three';
4
+ import { Object3D, Material, Vector3, Euler, Scene, Mesh, PerspectiveCamera, WebGLRenderer, Camera, Vector2, Box3 } from 'three';
5
5
  import { SafeHtml, DomSanitizer, SafeStyle } from '@angular/platform-browser';
6
6
  import { DecoNode } from '@colijnit/configuratorapi/build/model/deco-node';
7
7
  import { Selection } from '@colijnit/configuratorapi/build/model/selection';
@@ -11,26 +11,26 @@ import { Article } from '@colijnit/configuratorapi/build/model/article';
11
11
  import { SelectorWithOptions } from '@colijnit/configuratorapi/build/model/selector-with-options';
12
12
  import { GetArticlesForCatalogRequest } from '@colijnit/configuratorapi/build/model/get-articles-for-catalog';
13
13
  import { SelectorStructure } from '@colijnit/configuratorapi/build/model/selector-structure.bo';
14
- import { QuestionAndAnswers } from '@colijnit/configuratorapi/build/model/question-and-answers';
15
- import { Options } from '@colijnit/ioneconnector/build/model/options';
16
14
  import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
17
- import { LoginResponse } from '@colijnit/ioneconnector/build/model/login-response';
18
- import { TableName } from '@colijnit/mainapi/build/enum/table-name.enum';
19
- import { InternalParam } from '@colijnit/mainapi/build/enum/internal-param.enum';
20
- import { ConfiguratorStatisticsEnvironment } from '@colijnit/configuratorapi/build/model/configurator-statistics-environment';
15
+ import { QuestionAndAnswers } from '@colijnit/configuratorapi/build/model/question-and-answers';
21
16
  import { AnswerPrice } from '@colijnit/configuratorapi/build/model/answer-price';
22
17
  import { Question } from '@colijnit/configuratorapi/build/model/question';
23
18
  import { ArticleText } from '@colijnit/configuratorapi/build/model/article-text.bo';
24
19
  import { SkipButtonInfo } from '@colijnit/configuratorapi/build/model/skip-button-info';
20
+ import { InternalParam } from '@colijnit/mainapi/build/enum/internal-param.enum';
21
+ import { ConfiguratorStatisticsEnvironment } from '@colijnit/configuratorapi/build/model/configurator-statistics-environment';
25
22
  import * as i2 from '@colijnit/utilities';
26
23
  import { UtilitiesConnectorService, TextureInterface as TextureInterface$1, PostProcessingService, JsonUtilsService, LightsService, TranslationService } from '@colijnit/utilities';
24
+ import { VariationHelper } from '@colijnit/configuratorcore';
27
25
  import { WebGLPathTracer } from 'three-gpu-pathtracer';
26
+ import { Group } from '@tweenjs/tween.js';
28
27
  import { Font } from 'three/examples/jsm/loaders/FontLoader.js';
29
28
  import * as i3 from '@angular/common';
30
29
  import * as i3$1 from '@colijnit/corecomponents_v12';
31
30
  import * as i7 from '@angular/forms';
31
+ import { Overlay } from '@angular/cdk/overlay';
32
32
  import * as i4 from '@angular/cdk/clipboard';
33
- import { Color as Color$1 } from '@colijnit/configuratorapi/build/model/color';
33
+ import { Color } from '@colijnit/configuratorapi/build/model/color';
34
34
  import { Tag } from '@colijnit/configuratorapi/build/model/tag';
35
35
  import * as i3$2 from '@angular/material/icon';
36
36
  import * as i4$1 from '@angular/material/button';
@@ -127,6 +127,7 @@ declare class ConfiguratorEventService {
127
127
  instanceIdSet: BehaviorSubject<string>;
128
128
  instanceSet: BehaviorSubject<string>;
129
129
  answerCountReceived: BehaviorSubject<number>;
130
+ buildStarted: BehaviorSubject<boolean>;
130
131
  buildFinished: BehaviorSubject<ConfigurationResultObject>;
131
132
  addedToScene: BehaviorSubject<ConfigurationResultObject>;
132
133
  configurationTemplateChange: BehaviorSubject<ConfigurationTemplate>;
@@ -151,6 +152,7 @@ declare class ConfiguratorEventService {
151
152
  onThumbnailReceived: Subject<string>;
152
153
  renderImageChanged: BehaviorSubject<string>;
153
154
  renderImageError: BehaviorSubject<string>;
155
+ startBuildFromPresetId: Subject<string>;
154
156
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorEventService, never>;
155
157
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorEventService>;
156
158
  }
@@ -234,6 +236,8 @@ declare class SettingOptions {
234
236
  maxVisibleTiles: number;
235
237
  maxVisibleSmallTiles: number;
236
238
  groupedShowAllBtn: boolean;
239
+ showSavePresetButton?: boolean;
240
+ showLoadPresetButton?: boolean;
237
241
  }
238
242
 
239
243
  declare class RenderParameters {
@@ -346,112 +350,7 @@ declare class ConfiguratorSettingsService {
346
350
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorSettingsService>;
347
351
  }
348
352
 
349
- declare class VariationSettingsSettings {
350
- repeatx: number;
351
- repeaty: number;
352
- roughness: number;
353
- metalness: number;
354
- }
355
- declare class VariationSettings {
356
- id: string;
357
- settings: VariationSettingsSettings;
358
- texture: string;
359
- textureFilename: string;
360
- normal: string;
361
- normalFilename: string;
362
- ao: string;
363
- aoFilename: string;
364
- metalness: string;
365
- metalnessFilename: string;
366
- roughness: string;
367
- roughnessFilename: string;
368
- orm: string;
369
- ormFilename: string;
370
- displacement: string;
371
- displacementValue: number;
372
- displacementFilename: string;
373
- sheen: number;
374
- sheenColor: Color;
375
- sheenColorMap: string;
376
- sheenColorMapFilename: string;
377
- sheenRoughness: number;
378
- sheenRoughnessMap: string;
379
- sheenRoughnessMapFilename: string;
380
- transmissionMap: string;
381
- transmissionMapFilename: string;
382
- emissive: string;
383
- emissiveFilename: string;
384
- emissiveIntensity: number;
385
- emissiveValue: Color;
386
- opacity: number;
387
- transparent: boolean;
388
- envMap: string;
389
- envMapFilename: string;
390
- envMapIntensity: number;
391
- reflectivity: number;
392
- side: Side;
393
- transmission: number;
394
- ior: number;
395
- thickness: number;
396
- specularIntensity: number;
397
- loading: boolean;
398
- loaded: Subject<VariationSettings>;
399
- material: any;
400
- copyFrom(settings: VariationSettings): void;
401
- }
402
-
403
- declare class ConfiguratorService {
404
- readonly showLoader: Subject<boolean>;
405
- readonly connectionReset: Subject<void>;
406
- loginResponse: LoginResponse;
407
- private _configuratorApi;
408
- private _mainApi;
409
- private _articleApi;
410
- private _boFactory;
411
- private _publicationCodeForUserRole;
412
- constructor();
413
- initApi(options: Options): void;
414
- cleanUp(): void;
415
- initConnector(options: Options, forceReload?: boolean, mainUrl?: string, mainSchema?: string, mainVersion?: string): Promise<boolean>;
416
- initNodeInstance(goodId: number, showLoader: boolean): Promise<DataServiceResponseData>;
417
- changeConnection(instanceId: string, oldConnection: string, newConnection: string, showLoader: boolean): Promise<DataServiceResponseData>;
418
- setInstanceToConfigure(id: string, showLoader?: boolean): Promise<DataServiceResponseData>;
419
- getGoodIdFromSku(sku: string, showLoader?: boolean): Promise<DataServiceResponseData>;
420
- getArticleQuickSel(goodId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
421
- getSelections(showLoader?: boolean, publicationCode?: number): Promise<DataServiceResponseData>;
422
- getDecos(showLoader?: boolean): Promise<DataServiceResponseData>;
423
- getQuestionAndAnswers(showLoader?: boolean, publicationCode?: number): Promise<QuestionAndAnswers>;
424
- getSingleImage(nodeId: number | string, publication: number, includeMimetype: boolean, thumb: boolean, showLoader: boolean): Promise<DataServiceResponseData>;
425
- selectSelection(selection: Selection, forceBackToNode?: boolean, after?: boolean, connector?: string): Promise<DataServiceResponseData>;
426
- selectAnswer(answer: Answer, showLoader?: boolean, input?: string): Promise<DataServiceResponseData>;
427
- selectAnswerBySelection(selection: Selection, userInput?: string): Promise<DataServiceResponseData>;
428
- navigateTo(chosenOption: SelectorStructure, showLoader?: boolean): Promise<DataServiceResponseData>;
429
- cancelAnswer(getAnswersAndQuestion?: boolean): Promise<DataServiceResponseData>;
430
- deleteSelection(selection: Selection): Promise<DataServiceResponseData>;
431
- replaceSelection(selection: Selection): Promise<DataServiceResponseData>;
432
- getSelectionsAsync(): Promise<DataServiceResponseData>;
433
- getQuestionAndAnswersAsync(): Promise<QuestionAndAnswers>;
434
- getAnswerTexts(goodId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
435
- getAnswersPrices(): Promise<DataServiceResponseData>;
436
- getSkipButtonImageAndText(goodId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
437
- getInternalParameterValue(parameter: InternalParam): Promise<DataServiceResponseData>;
438
- getDecosAsync(): Promise<DataServiceResponseData>;
439
- getSelectorStructure(showLoader?: boolean): Promise<DataServiceResponseData>;
440
- getPublicationCodeBasedOnLogin(): number;
441
- getImage(key: number | string, publication: number, thumb: boolean, tableName?: TableName): Promise<DataServiceResponseData>;
442
- copyInstance(instanceId: string, shouldSaveCurrentInstanceId: boolean, showLoader?: boolean): Promise<DataServiceResponseData>;
443
- saveConfigurations(showLoader?: boolean): Promise<boolean>;
444
- storePreset(instanceId: string, showLoader?: boolean): Promise<DataServiceResponseData>;
445
- initForPreset(presetId: string, goodId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
446
- getImageForSelectorStructure(option: SelectorStructure, publication: number, thumbNail?: boolean, showLoader?: boolean): Promise<string>;
447
- getJsonConfiguredArticles(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: string, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
448
- private _getPublicationCodeForRole;
449
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorService, never>;
450
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorService>;
451
- }
452
-
453
353
  declare class ConfiguratorConnectorService implements OnDestroy {
454
- private _configuratorService;
455
354
  private _appEventService;
456
355
  private _settingsService;
457
356
  private _loaderService;
@@ -496,13 +395,15 @@ declare class ConfiguratorConnectorService implements OnDestroy {
496
395
  private _initializing;
497
396
  private _initialized;
498
397
  private _boFactory;
499
- constructor(_configuratorService: ConfiguratorService, _appEventService: ConfiguratorEventService, _settingsService: ConfiguratorSettingsService, _loaderService: LoaderService, _utilitiesConnectorService: UtilitiesConnectorService);
398
+ private _configuratorService;
399
+ constructor(_appEventService: ConfiguratorEventService, _settingsService: ConfiguratorSettingsService, _loaderService: LoaderService, _utilitiesConnectorService: UtilitiesConnectorService);
500
400
  ngOnDestroy(): void;
501
401
  cleanUp(): void;
502
402
  init(settings?: ConfiguratorSettings): Promise<void>;
503
403
  initConnection(forceReload?: boolean, mainUrl?: string, mainSchema?: string, mainVersion?: string): Promise<void>;
504
404
  onShowLoaderChange(showLoader: boolean): void;
505
405
  onConnectionReset(): void;
406
+ getSingleImage(nodeId: number | string, publication: number, includeMimetype: boolean, thumb: boolean, showLoader: boolean): Promise<DataServiceResponseData>;
506
407
  getGoodIdFromSku(sku: string, showLoader?: boolean): Promise<number>;
507
408
  setSelections(selections: Selection[]): void;
508
409
  setDecoNodes(value: DecoNode[]): void;
@@ -571,60 +472,6 @@ declare class ConfiguratorConnectorService implements OnDestroy {
571
472
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorConnectorService>;
572
473
  }
573
474
 
574
- declare class VariationCacheService implements OnDestroy {
575
- private _settingsService;
576
- private _configuratorService;
577
- private _variations;
578
- private _subs;
579
- constructor(_settingsService: ConfiguratorSettingsService, _configuratorService: ConfiguratorConnectorService);
580
- ngOnDestroy(): void;
581
- get(id: string): VariationSettings;
582
- set(variations: VariationSettings): void;
583
- preloadVariations(schema: string, decoNodes: DecoNode[], articleAssetPath?: string): void;
584
- preloadVariationsAsync(schema: string, decoNodes: DecoNode[] | Answer[] | SelectorStructure[], articleAssetPath?: string): Promise<void>;
585
- loadVariation(fileName: string): Promise<VariationSettings>;
586
- private _waitForVariationToLoad;
587
- private _createSettingsForFileName;
588
- private _needsMaterials;
589
- static ɵfac: i0.ɵɵFactoryDeclaration<VariationCacheService, never>;
590
- static ɵprov: i0.ɵɵInjectableDeclaration<VariationCacheService>;
591
- }
592
-
593
- declare class ThreedselectorService {
594
- private _variationCacheService;
595
- private _settingsService;
596
- private _threedUtils;
597
- constructor(_variationCacheService: VariationCacheService, _settingsService: ConfiguratorSettingsService);
598
- downloadAssetsAndReturn(fileName: string, assetPath: string, prepareProgress?: boolean): Promise<THREE.Object3D>;
599
- loadVariation(id: string): Promise<VariationSettings>;
600
- static ɵfac: i0.ɵɵFactoryDeclaration<ThreedselectorService, never>;
601
- static ɵprov: i0.ɵɵInjectableDeclaration<ThreedselectorService>;
602
- }
603
-
604
- declare class VariationService {
605
- private _threedSelectorService;
606
- loadedAsset: string;
607
- private _lastKnownVariations;
608
- constructor(_threedSelectorService: ThreedselectorService);
609
- clearCache(): void;
610
- loadPart(assetPath: string, parts: any[], instanceId: string, obj: Object3D, usePbr?: boolean): Promise<void>;
611
- loadVariation(assetPath: string, parts: any[], instanceId: string, obj: Object3D, usePbr?: boolean): Promise<void>;
612
- loadVariationFromLocalFile(id: string, file: any, obj: Object3D): Promise<void>;
613
- loadVariationForMaterial(gameObject: string): Promise<any>;
614
- loadVariationByAssetUrl(assetUrl: string): Promise<any>;
615
- createVariationForMaterialPreview(compressedZip: Blob): Promise<any>;
616
- private _applyMaterialPart;
617
- private _applyVariations;
618
- private _applyMaterial;
619
- private _setMeshMaterialFromVariation;
620
- private _setLastKnownVariations;
621
- private _getLastKnownVariations;
622
- private _getChildrenFilterByProp;
623
- private _createVariationFromNode;
624
- static ɵfac: i0.ɵɵFactoryDeclaration<VariationService, never>;
625
- static ɵprov: i0.ɵɵInjectableDeclaration<VariationService>;
626
- }
627
-
628
475
  declare class ProgressService {
629
476
  private _progressPercent;
630
477
  get progress(): number;
@@ -654,8 +501,6 @@ declare abstract class BuildFurnitureBaseService implements OnDestroy {
654
501
  protected configuratorConnectorService: ConfiguratorConnectorService;
655
502
  protected appEventService: ConfiguratorEventService;
656
503
  protected settingsService: ConfiguratorSettingsService;
657
- protected variationService: VariationService;
658
- protected variationCacheService: VariationCacheService;
659
504
  protected utilsService: UtilsService;
660
505
  get useNodeIdToLink(): boolean;
661
506
  get currentCustomFloorGroup(): Object3D;
@@ -676,7 +521,6 @@ declare abstract class BuildFurnitureBaseService implements OnDestroy {
676
521
  showElementToolbar: boolean;
677
522
  private _useNodeIdToLink;
678
523
  private _activeChildElement;
679
- private _placedAddables;
680
524
  private _adjustables;
681
525
  private _addables;
682
526
  private _currentCustomFloorGroup;
@@ -685,8 +529,10 @@ declare abstract class BuildFurnitureBaseService implements OnDestroy {
685
529
  private _selectionsSelected;
686
530
  private _scene;
687
531
  protected subs: Subscription[];
532
+ protected placedAddables: any[];
688
533
  protected placedAdjustables: any[];
689
- constructor(configuratorConnectorService: ConfiguratorConnectorService, appEventService: ConfiguratorEventService, settingsService: ConfiguratorSettingsService, variationService: VariationService, variationCacheService: VariationCacheService, utilsService: UtilsService);
534
+ protected variationHelper: VariationHelper;
535
+ constructor(configuratorConnectorService: ConfiguratorConnectorService, appEventService: ConfiguratorEventService, settingsService: ConfiguratorSettingsService, utilsService: UtilsService);
690
536
  ngOnDestroy(): void;
691
537
  abstract build(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
692
538
  abstract createSimple3DModel(result: ConfigurationResultObject): ConfigurationResultObject;
@@ -724,29 +570,17 @@ declare abstract class BuildFurnitureBaseService implements OnDestroy {
724
570
  protected createConfigurableItem(itemName: string): Object3D;
725
571
  protected cloneSelections(): Selection[];
726
572
  protected updateBuildObject(newItem: Object3D, resultObject: ConfigurationResultObject): Promise<ConfigurationResultObject>;
727
- protected isMoveableObject(obj: Object3D): boolean;
728
- protected addElementOnConnector(currentItem: Object3D, element: Object3D, connector: string, connectedNodeId: number): Promise<void>;
729
573
  protected saveElementConnector(element: Object3D, connector: string): void;
730
574
  protected getIdentifierFromSelection(selection: Selection): string;
731
575
  protected reset(): void;
732
- /**
733
- * Returns the materialId of the parent up the tree until presentionlevel 1 is reached
734
- * @param id
735
- * @private
736
- */
737
- protected getMaterialIdFromParent(id: number): string;
738
576
  protected getAdjustables(checkGameObject?: boolean, checkType?: boolean): Selection[];
739
577
  protected getVariations(): any[];
740
- protected createAdjustable(item: Object3D, adj: Selection): Object3D;
741
- protected createAddable(item: Object3D, add: Selection, part2?: any, part1?: any): Object3D;
742
- protected placeAddable(item: Object3D, add: any): Object3D;
743
- protected createUniqueName(item: Object3D, obj: Object3D): string;
744
- protected placeAddables(item: Object3D): void;
745
578
  protected loadVariations(item: Object3D, instanceId: string): Promise<void>;
746
579
  protected preloadMaterial(answer: Answer): void;
747
580
  protected preloadMaterialBySelection(answer: SelectorStructure): void;
748
581
  protected buildFloor(result: any): Promise<void>;
749
582
  downloadUDSZforARIOS(objects: Object3D[]): void;
583
+ private _setNeedMaterial;
750
584
  static ɵfac: i0.ɵɵFactoryDeclaration<BuildFurnitureBaseService, never>;
751
585
  static ɵprov: i0.ɵɵInjectableDeclaration<BuildFurnitureBaseService>;
752
586
  }
@@ -788,6 +622,15 @@ declare class SwitchBuildFurnitureService implements OnDestroy {
788
622
  static ɵprov: i0.ɵɵInjectableDeclaration<SwitchBuildFurnitureService>;
789
623
  }
790
624
 
625
+ declare class ThreedselectorService {
626
+ private _settingsService;
627
+ private _threedUtils;
628
+ constructor(_settingsService: ConfiguratorSettingsService);
629
+ downloadAssetsAndReturn(fileName: string, assetPath: string, prepareProgress?: boolean): Promise<THREE.Object3D>;
630
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThreedselectorService, never>;
631
+ static ɵprov: i0.ɵɵInjectableDeclaration<ThreedselectorService>;
632
+ }
633
+
791
634
  declare enum ItemType {
792
635
  Floor = 1,
793
636
  Wall = 2,
@@ -875,6 +718,8 @@ declare class ConfiguratorCameraService implements OnDestroy {
875
718
  camera: PerspectiveCamera;
876
719
  controls: any;
877
720
  cameraMovementChanged: Subject<void>;
721
+ addTweenGroup: Subject<Group>;
722
+ removeTweenGroup: Subject<Group>;
878
723
  private _cameraLocked;
879
724
  private _element;
880
725
  private _viewSize;
@@ -899,6 +744,8 @@ declare class ConfiguratorCameraService implements OnDestroy {
899
744
  moveCameraToFitObject(object: any, offset?: number): Promise<void>;
900
745
  private _getCameraOffset;
901
746
  private _controlsUpdate;
747
+ private _addTweenGroup;
748
+ private _removeTweenGroup;
902
749
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorCameraService, never>;
903
750
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorCameraService>;
904
751
  }
@@ -1210,6 +1057,7 @@ declare class ConfiguratorSceneService implements OnDestroy {
1210
1057
  private _indexJsonFile;
1211
1058
  private _lightPresetsJsonFile;
1212
1059
  private _lightsLoaded;
1060
+ private _groups;
1213
1061
  constructor(_cameraService: ConfiguratorCameraService, _xrService: ConfiguratorXrService, _vrService: ConfiguratorVrService, _arService: ConfiguratorArService, _configuratorSettingsService: ConfiguratorSettingsService, _postProcessingService: PostProcessingService, _viewModeService: ViewModeService, _jsonUtilsService: JsonUtilsService, _lightsService: LightsService, _buildFurnitureService: SwitchBuildFurnitureService);
1214
1062
  ngOnDestroy(): void;
1215
1063
  getScene(): Scene;
@@ -1223,6 +1071,8 @@ declare class ConfiguratorSceneService implements OnDestroy {
1223
1071
  updatePathTracer(): void;
1224
1072
  positionInSceneToScreen(pos: Vector3): Vector2;
1225
1073
  rendererPropsChange(): void;
1074
+ private _handleAddTweenGroup;
1075
+ private _handleRemoveTweenGroup;
1226
1076
  private _initScene;
1227
1077
  private _initCamera;
1228
1078
  private _initPostProcessing;
@@ -1368,7 +1218,6 @@ declare class ConfiguratorComponent implements OnInit, OnDestroy {
1368
1218
  canCloseConfigurator: boolean;
1369
1219
  animateSlideout: boolean;
1370
1220
  showHeaderInformation: boolean;
1371
- showSaveAndLoadConfiguration: boolean;
1372
1221
  isLoading: EventEmitter<boolean>;
1373
1222
  updateProgressBar: EventEmitter<boolean>;
1374
1223
  errorMessages: EventEmitter<ConfiguratorErrorMessage[]>;
@@ -1399,7 +1248,7 @@ declare class ConfiguratorComponent implements OnInit, OnDestroy {
1399
1248
  private _handleBuildFinished;
1400
1249
  private _handleTemplateChange;
1401
1250
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorComponent, never>;
1402
- static ɵcmp: i0.ɵɵComponentDeclaration<ConfiguratorComponent, "co-configurator", never, { "sku": { "alias": "sku"; "required": false; }; "instanceId": { "alias": "instanceId"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; "scene": { "alias": "scene"; "required": false; }; "showLoader": { "alias": "showLoader"; "required": false; }; "showProgressBar": { "alias": "showProgressBar"; "required": false; }; "showErrorMessages": { "alias": "showErrorMessages"; "required": false; }; "outputErrorMessages": { "alias": "outputErrorMessages"; "required": false; }; "canCloseConfigurator": { "alias": "canCloseConfigurator"; "required": false; }; "animateSlideout": { "alias": "animateSlideout"; "required": false; }; "showHeaderInformation": { "alias": "showHeaderInformation"; "required": false; }; "showSaveAndLoadConfiguration": { "alias": "showSaveAndLoadConfiguration"; "required": false; }; }, { "isLoading": "isLoading"; "updateProgressBar": "updateProgressBar"; "errorMessages": "errorMessages"; "showChange": "showChange"; }, never, never, false, never>;
1251
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfiguratorComponent, "co-configurator", never, { "sku": { "alias": "sku"; "required": false; }; "instanceId": { "alias": "instanceId"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; "scene": { "alias": "scene"; "required": false; }; "showLoader": { "alias": "showLoader"; "required": false; }; "showProgressBar": { "alias": "showProgressBar"; "required": false; }; "showErrorMessages": { "alias": "showErrorMessages"; "required": false; }; "outputErrorMessages": { "alias": "outputErrorMessages"; "required": false; }; "canCloseConfigurator": { "alias": "canCloseConfigurator"; "required": false; }; "animateSlideout": { "alias": "animateSlideout"; "required": false; }; "showHeaderInformation": { "alias": "showHeaderInformation"; "required": false; }; }, { "isLoading": "isLoading"; "updateProgressBar": "updateProgressBar"; "errorMessages": "errorMessages"; "showChange": "showChange"; }, never, never, false, never>;
1403
1252
  }
1404
1253
 
1405
1254
  declare class ProgressBarComponent {
@@ -1658,25 +1507,30 @@ declare class ConfiguratorDialogModule {
1658
1507
 
1659
1508
  declare class ConfigurationPresetDialogComponent implements OnDestroy {
1660
1509
  iconService: IconCacheService;
1661
- private _configuringService;
1510
+ private _overlay;
1511
+ private _viewContainerRef;
1662
1512
  private _configuratorConnectorService;
1663
1513
  private _translationService;
1664
1514
  private _appEventService;
1665
1515
  readonly icons: typeof IconEnum;
1666
1516
  readonly presetDialogMode: typeof PresetDialogMode;
1517
+ dialogTemplate: TemplateRef<any>;
1667
1518
  showClass(): boolean;
1668
- showDialog: boolean;
1669
1519
  instanceIdInput: string;
1670
- dialogMode: PresetDialogMode;
1671
1520
  showValidationErrors: boolean;
1672
1521
  validationError: string;
1522
+ dialogMode: PresetDialogMode;
1523
+ private _overlayRef;
1524
+ private _instanceId;
1673
1525
  private _subs;
1674
- constructor(iconService: IconCacheService, _configuringService: ConfiguringService, _configuratorConnectorService: ConfiguratorConnectorService, _translationService: TranslationService, _appEventService: ConfiguratorEventService);
1526
+ constructor(iconService: IconCacheService, _overlay: Overlay, _viewContainerRef: ViewContainerRef, _configuratorConnectorService: ConfiguratorConnectorService, _translationService: TranslationService, _appEventService: ConfiguratorEventService);
1675
1527
  ngOnDestroy(): void;
1676
1528
  handleOpenDialog(mode: PresetDialogMode): void;
1677
1529
  handleCloseClick(): void;
1678
1530
  handleCopySuccess(): Promise<void>;
1679
1531
  loadConfiguration(): void;
1532
+ private _openOverlay;
1533
+ private _handleSetInstance;
1680
1534
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationPresetDialogComponent, never>;
1681
1535
  static ɵcmp: i0.ɵɵComponentDeclaration<ConfigurationPresetDialogComponent, "co-configuration-preset-dialog", never, {}, {}, never, never, false, never>;
1682
1536
  }
@@ -1798,7 +1652,7 @@ declare class AnswersSlideoutComponent implements OnInit, OnDestroy {
1798
1652
  isSmallCardsModus: boolean;
1799
1653
  bottomAlign: boolean;
1800
1654
  filteredAnswers: Answer[];
1801
- colorArray: Color$1[];
1655
+ colorArray: Color[];
1802
1656
  tagArray: Tag[];
1803
1657
  showTheFilter: boolean;
1804
1658
  zoomImage: string;
@@ -1819,7 +1673,7 @@ declare class AnswersSlideoutComponent implements OnInit, OnDestroy {
1819
1673
  ngOnDestroy(): void;
1820
1674
  onZoomClick(answer: Answer): void;
1821
1675
  applyFilter(): void;
1822
- onFilterColor(color: Color$1): void;
1676
+ onFilterColor(color: Color): void;
1823
1677
  onFilterTag(tag: Tag): void;
1824
1678
  onCloseAnswerSlideout(): void;
1825
1679
  handleAnswerChosen(answer: Answer): void;
@@ -1934,8 +1788,8 @@ declare class ColorFilterComponent {
1934
1788
  private _sanitizer;
1935
1789
  readonly icons: typeof IconEnum;
1936
1790
  showClass(): boolean;
1937
- set color(value: Color$1);
1938
- get color(): Color$1;
1791
+ set color(value: Color);
1792
+ get color(): Color;
1939
1793
  active: boolean;
1940
1794
  get lightBackground(): boolean;
1941
1795
  backgroundStyle: SafeStyle;
@@ -2119,14 +1973,18 @@ declare class SelectionsSummaryLineModule {
2119
1973
  static ɵinj: i0.ɵɵInjectorDeclaration<SelectionsSummaryLineModule>;
2120
1974
  }
2121
1975
 
2122
- declare class ConfigurationPresetComponent {
1976
+ declare class ConfigurationPresetComponent implements OnInit {
2123
1977
  iconService: IconCacheService;
1978
+ settingService: ConfiguratorSettingsService;
2124
1979
  private _appEventService;
2125
1980
  readonly icons: typeof IconEnum;
2126
- isSaveLoadMenuOpen: boolean;
2127
1981
  showClass(): boolean;
2128
1982
  closeSaveLoadMenu(): void;
2129
- constructor(iconService: IconCacheService, _appEventService: ConfiguratorEventService);
1983
+ isSaveLoadMenuOpen: boolean;
1984
+ showSavePresetButton: boolean;
1985
+ showLoadPresetButton: boolean;
1986
+ constructor(iconService: IconCacheService, settingService: ConfiguratorSettingsService, _appEventService: ConfiguratorEventService);
1987
+ ngOnInit(): void;
2130
1988
  toggleSaveLoadMenu(event: MouseEvent): void;
2131
1989
  handleSavePresetClicked(): void;
2132
1990
  handleLoadPresetClicked(): void;
@@ -2136,7 +1994,7 @@ declare class ConfigurationPresetComponent {
2136
1994
 
2137
1995
  declare class ConfigurationPresetModule {
2138
1996
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationPresetModule, never>;
2139
- static ɵmod: i0.ɵɵNgModuleDeclaration<ConfigurationPresetModule, [typeof ConfigurationPresetComponent], [typeof i2.TranslationModule, typeof i3$1.ButtonModule, typeof i3$1.IconModule, typeof i3$1.InputTextModule, typeof i4.CdkCopyToClipboard, typeof i3.AsyncPipe], [typeof ConfigurationPresetComponent]>;
1997
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ConfigurationPresetModule, [typeof ConfigurationPresetComponent], [typeof i2.TranslationModule, typeof i3$1.ButtonModule, typeof i3$1.IconModule, typeof i3$1.InputTextModule, typeof i4.CdkCopyToClipboard, typeof i3.AsyncPipe, typeof ConfigurationPresetDialogModule], [typeof ConfigurationPresetComponent]>;
2140
1998
  static ɵinj: i0.ɵɵInjectorDeclaration<ConfigurationPresetModule>;
2141
1999
  }
2142
2000
 
@@ -2873,6 +2731,36 @@ declare class FloorPlaneService implements OnDestroy {
2873
2731
  static ɵprov: i0.ɵɵInjectableDeclaration<FloorPlaneService>;
2874
2732
  }
2875
2733
 
2734
+ declare class DimensionsService implements OnDestroy {
2735
+ private _sceneService;
2736
+ private _fontService;
2737
+ private _itemService;
2738
+ set enabled(value: boolean);
2739
+ get enabled(): boolean;
2740
+ private readonly _offSet;
2741
+ private readonly _labelOffSet;
2742
+ private readonly _nameHeightArrow;
2743
+ private readonly _nameWidthArrow;
2744
+ private readonly _nameDepthArrow;
2745
+ private readonly _headLength;
2746
+ private readonly _headWidth;
2747
+ private readonly _defaultColor;
2748
+ private _subs;
2749
+ private _dimensions;
2750
+ private _enabled;
2751
+ constructor(_sceneService: ConfiguratorSceneService, _fontService: FontService, _itemService: ConfiguratorItemService);
2752
+ ngOnDestroy(): void;
2753
+ private _renderDimensions;
2754
+ private _removeDimensionsOfNotExistingFurniture;
2755
+ private _removeDimensions;
2756
+ private _positionDimensions;
2757
+ private _createDimensions;
2758
+ private _createLabel;
2759
+ private _getBoxSize;
2760
+ static ɵfac: i0.ɵɵFactoryDeclaration<DimensionsService, never>;
2761
+ static ɵprov: i0.ɵɵInjectableDeclaration<DimensionsService>;
2762
+ }
2763
+
2876
2764
  declare class ConfiguratorSceneComponent implements AfterViewInit, OnDestroy {
2877
2765
  private _settingsService;
2878
2766
  private _rotationService;
@@ -2882,6 +2770,8 @@ declare class ConfiguratorSceneComponent implements AfterViewInit, OnDestroy {
2882
2770
  private _cameraService;
2883
2771
  private _itemService;
2884
2772
  private _buildFurnitureService;
2773
+ private _sceneOptionsService;
2774
+ private _dimensionsService;
2885
2775
  private _floorService;
2886
2776
  canvasElement: ElementRef;
2887
2777
  elementToolbar: ElementToolbarComponent;
@@ -2897,11 +2787,15 @@ declare class ConfiguratorSceneComponent implements AfterViewInit, OnDestroy {
2897
2787
  loaderProgress: number;
2898
2788
  showElementToolbar: boolean;
2899
2789
  animateEditAddButtons: boolean;
2790
+ enabledDownloadDialog: boolean;
2791
+ development: boolean;
2792
+ showDownloadDialog: boolean;
2793
+ showCameraSettingsDialog: boolean;
2900
2794
  private _subs;
2901
2795
  private _firstBuild;
2902
2796
  private _selectedElementObject;
2903
2797
  private _buildResult;
2904
- constructor(_settingsService: ConfiguratorSettingsService, _rotationService: ConfiguratorRotationService, _dynamicCameraService: ConfiguratorDynamicCameraService, _sceneService: ConfiguratorSceneService, _eventService: ConfiguratorEventService, _cameraService: ConfiguratorCameraService, _itemService: ConfiguratorItemService, _buildFurnitureService: SwitchBuildFurnitureService, _floorService: FloorPlaneService);
2798
+ constructor(_settingsService: ConfiguratorSettingsService, _rotationService: ConfiguratorRotationService, _dynamicCameraService: ConfiguratorDynamicCameraService, _sceneService: ConfiguratorSceneService, _eventService: ConfiguratorEventService, _cameraService: ConfiguratorCameraService, _itemService: ConfiguratorItemService, _buildFurnitureService: SwitchBuildFurnitureService, _sceneOptionsService: SceneOptionsService, _dimensionsService: DimensionsService, _floorService: FloorPlaneService);
2905
2799
  ngAfterViewInit(): void;
2906
2800
  ngOnDestroy(): void;
2907
2801
  swapElement(): void;
@@ -2919,13 +2813,19 @@ declare class ConfiguratorSceneComponent implements AfterViewInit, OnDestroy {
2919
2813
  private _removeAllButtons;
2920
2814
  private _repositionButton;
2921
2815
  private _showPlusButtonsBriefly;
2816
+ private _createDownloadButton;
2817
+ private _createCameraSettingsButton;
2818
+ private _createMeasurementsButton;
2819
+ private _downloadCurrentBuild;
2820
+ private _openCameraSettingsDialog;
2821
+ private _handleShowMeasurements;
2922
2822
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorSceneComponent, never>;
2923
2823
  static ɵcmp: i0.ɵɵComponentDeclaration<ConfiguratorSceneComponent, "co-configurator-scene", never, { "showSceneBuildLoader": { "alias": "showSceneBuildLoader"; "required": false; }; }, {}, never, never, false, never>;
2924
2824
  }
2925
2825
 
2926
2826
  declare class ConfiguratorSceneModule {
2927
2827
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorSceneModule, never>;
2928
- static ɵmod: i0.ɵɵNgModuleDeclaration<ConfiguratorSceneModule, [typeof ConfiguratorSceneComponent], [typeof ConfiguratorSceneLoaderModule, typeof SelectionsModule, typeof ElementToolbarModule, typeof ElementButtonsModule], [typeof ConfiguratorSceneComponent]>;
2828
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ConfiguratorSceneModule, [typeof ConfiguratorSceneComponent], [typeof ConfiguratorSceneLoaderModule, typeof SelectionsModule, typeof ElementToolbarModule, typeof ElementButtonsModule, typeof ConfiguratorDialogModule], [typeof ConfiguratorSceneComponent]>;
2929
2829
  static ɵinj: i0.ɵɵInjectorDeclaration<ConfiguratorSceneModule>;
2930
2830
  }
2931
2831
 
@@ -2974,28 +2874,4 @@ declare class ArPositionIndicator extends Object3D {
2974
2874
  constructor(boundingBox: Box3);
2975
2875
  }
2976
2876
 
2977
- declare class Builder {
2978
- selectionsReceived: BehaviorSubject<Selection[]>;
2979
- articleLoaded: BehaviorSubject<Article>;
2980
- decosReceived: BehaviorSubject<DecoNode[]>;
2981
- answersReceived: BehaviorSubject<Answer[]>;
2982
- modelLoaded: BehaviorSubject<THREE.Object3D>;
2983
- set debug(value: Function);
2984
- get debug(): Function;
2985
- private _scene;
2986
- private _debug;
2987
- private _source;
2988
- private _threedUtils;
2989
- private _buildFurnitureService;
2990
- private _configuratorConnectorService;
2991
- constructor();
2992
- init(scene: Scene): void;
2993
- buildModelFromData(selections: Selection[], decos: DecoNode[], assetUrl: string, cdnUrl: string, schema: string): Promise<THREE.Object3D>;
2994
- destroy(): void;
2995
- private _downloadAsset;
2996
- private _log;
2997
- static ɵfac: i0.ɵɵFactoryDeclaration<Builder, never>;
2998
- static ɵprov: i0.ɵɵInjectableDeclaration<Builder>;
2999
- }
3000
-
3001
- export { AnswerCardComponent, AnswerCardModule, AnswersInfoDialogComponent, AnswersInfoDialogModule, AnswersSlideoutComponent, AnswersSlideoutModule, ArFeature, ArPositionIndicator, Builder, CoSummaryLine, CoSummaryLineModule, ColorFilterComponent, ColorFilterModule, ConfigurationResultObject, ConfiguratorArService, ConfiguratorCameraService, ConfiguratorCameraSettingsComponent, ConfiguratorComponent, ConfiguratorConnectorService, ConfiguratorDialogModule, ConfiguratorErrorDialogComponent, ConfiguratorErrorMessage, ConfiguratorEventService, ConfiguratorExportDialogComponent, ConfiguratorLoaderComponent, ConfiguratorLoaderModule, ConfiguratorModule, ConfiguratorSceneComponent, ConfiguratorSceneLoaderComponent, ConfiguratorSceneLoaderModule, ConfiguratorSceneModule, ConfiguratorSceneService, ConfiguratorVrService, ConfiguratorXrService, ConfiguringService, Controls, ElementButtonsComponent, ElementButtonsModule, ElementToolbarComponent, ElementToolbarModule, ImageZoomComponent, ImageZoomModule, LiteSelectorComponent, LiteSelectorModule, ProductConfiguratorComponent, ProductConfiguratorModule, ProductConfiguratorOptionCheckboxComponent, ProductConfiguratorSelectorComponent, ProductConfiguratorSelectorModule, ProductConfiguratorSelectorOptionButtonComponent, ProductConfiguratorSelectorOptionButtonModule, ProductConfiguratorSelectorOptionCheckboxModule, ProductConfiguratorSelectorOptionComponent, ProductConfiguratorSelectorOptionDropDownComponent, ProductConfiguratorSelectorOptionDropdownModule, ProductConfiguratorSelectorOptionModule, ProductConfiguratorSelectorOptionTileComponent, ProductConfiguratorSelectorOptionTileModule, ProgressBarComponent, ProgressBarModule, Reticle, SceneOptionsComponent, SelectionsModule, SelectionsSummaryComponent, SelectionsSummaryLineComponent, SelectionsSummaryModule, TagFilterComponent, TagFilterModule, XrMode };
2877
+ export { AnswerCardComponent, AnswerCardModule, AnswersInfoDialogComponent, AnswersInfoDialogModule, AnswersSlideoutComponent, AnswersSlideoutModule, ArFeature, ArPositionIndicator, CoSummaryLine, CoSummaryLineModule, ColorFilterComponent, ColorFilterModule, ConfigurationPresetComponent, ConfigurationPresetModule, ConfigurationResultObject, ConfiguratorArService, ConfiguratorCameraService, ConfiguratorCameraSettingsComponent, ConfiguratorComponent, ConfiguratorConnectorService, ConfiguratorDialogModule, ConfiguratorErrorDialogComponent, ConfiguratorErrorMessage, ConfiguratorEventService, ConfiguratorExportDialogComponent, ConfiguratorLoaderComponent, ConfiguratorLoaderModule, ConfiguratorModule, ConfiguratorSceneComponent, ConfiguratorSceneLoaderComponent, ConfiguratorSceneLoaderModule, ConfiguratorSceneModule, ConfiguratorSceneService, ConfiguratorVrService, ConfiguratorXrService, ConfiguringService, Controls, ElementButtonsComponent, ElementButtonsModule, ElementToolbarComponent, ElementToolbarModule, ImageZoomComponent, ImageZoomModule, LiteSelectorComponent, LiteSelectorModule, ProductConfiguratorComponent, ProductConfiguratorModule, ProductConfiguratorOptionCheckboxComponent, ProductConfiguratorSelectorComponent, ProductConfiguratorSelectorModule, ProductConfiguratorSelectorOptionButtonComponent, ProductConfiguratorSelectorOptionButtonModule, ProductConfiguratorSelectorOptionCheckboxModule, ProductConfiguratorSelectorOptionComponent, ProductConfiguratorSelectorOptionDropDownComponent, ProductConfiguratorSelectorOptionDropdownModule, ProductConfiguratorSelectorOptionModule, ProductConfiguratorSelectorOptionTileComponent, ProductConfiguratorSelectorOptionTileModule, ProgressBarComponent, ProgressBarModule, Reticle, SceneOptionsComponent, SelectionsModule, SelectionsSummaryComponent, SelectionsSummaryLineComponent, SelectionsSummaryModule, TagFilterComponent, TagFilterModule, XrMode };
@@ -20,6 +20,7 @@
20
20
  }
21
21
 
22
22
  .save-load-configuration-buttons {
23
+ background: var(--configutator-dialog-background);
23
24
  position: absolute;
24
25
  top: 100%;
25
26
  right: 0;
@@ -1,5 +1,3 @@
1
1
  :root {
2
- --success-text-color: #155724;
3
- --success-background-color: #d4edda;
4
- --success-border-color: #c3e6cb;
2
+
5
3
  }