@colijnit/homedecorator 261.20.3 → 261.20.4

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.
@@ -4157,6 +4157,17 @@ class HomedecoratorConnectorAdapterService {
4157
4157
  }
4158
4158
  return 'nl'; // just to be safe
4159
4159
  }
4160
+ async getPublicParams(url, upId) {
4161
+ const tempSettings = new HomedecoratorSettings();
4162
+ tempSettings.url = url;
4163
+ tempSettings.schema = upId.toString();
4164
+ // @ts-ignore
4165
+ const tempMainConnector = new MainApi(tempSettings);
4166
+ const response = await tempMainConnector.getPublicParams(upId);
4167
+ if (response) {
4168
+ return response;
4169
+ }
4170
+ }
4160
4171
  async store3DModelCDN(filename, fileContents) {
4161
4172
  try {
4162
4173
  const response = await this.mainApi.uploadModelToCDN(filename, fileContents);
@@ -4314,6 +4325,10 @@ class HomedecoratorConnectorAdapterService {
4314
4325
  }
4315
4326
  }
4316
4327
  }
4328
+ getCatalogDefinition(id) {
4329
+ return this._catalogDefinitions && this._catalogDefinitions.length > 0 ?
4330
+ this._catalogDefinitions.find(c => c.id === id) : null;
4331
+ }
4317
4332
  async getArticleExtended(articleNumber) {
4318
4333
  const requestObject = new ArticleExtendedRequest();
4319
4334
  requestObject.articleNumber = articleNumber;
@@ -19607,6 +19622,9 @@ class BluePrintService extends BluePrintFloorplanService {
19607
19622
  }
19608
19623
  await this.loadTheFloorplan(floorplan);
19609
19624
  }
19625
+ getRoomCenter() {
19626
+ return this.roomService.getRoomCenter();
19627
+ }
19610
19628
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BluePrintService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
19611
19629
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BluePrintService, providedIn: 'root' }); }
19612
19630
  }
@@ -22997,7 +23015,9 @@ class SceneEventService {
22997
23015
  let intersection = null;
22998
23016
  if (isWallType(draggedData.type) || (isWallFloorType(draggedData.type) && this._intersectedWall)) {
22999
23017
  intersection = this._intersectedWall;
23000
- position = this._intersectedWall.object.localToWorld(this._intersectedWall.point);
23018
+ if (this._intersectedWall.object) {
23019
+ position = this._intersectedWall.object.localToWorld(this._intersectedWall.point);
23020
+ }
23001
23021
  // position = this._intersectedWall && this._intersectedWall.point;
23002
23022
  }
23003
23023
  else if (isFloorType(draggedData.type) || isFloorDecoration(draggedData.type) || (isWallFloorType(draggedData.type) && this._intersectedFloor)) {
@@ -44489,7 +44509,7 @@ class ThreedselectorComponent {
44489
44509
  this.handleBuildResult(result);
44490
44510
  }), this._buildFurnitureService.currentActiveService.configureModeChanged.subscribe(configuringModeChange => this._handleConfigureModeChange(configuringModeChange)), this._buildFurnitureService.currentActiveService.toggleSelectedElement.subscribe((element) => this._selectedElementToggle(element)), this._buildFurnitureService.currentActiveService.buildFinished.subscribe((result) => this._handleBuildFinished(result)), this._buildFurnitureService.currentActiveService.answerSelected.subscribe((result) => this._answerSelected(result)), this._sceneService.onAfterRender.subscribe(() => this._handleRender()),
44491
44511
  // this._appService.skuSet.subscribe(sku => this._handleSkuSet(sku)),
44492
- this._appService.materialPreviewSet.subscribe(material => this._handleMaterialSet(material)), this._appService.materialPreviewUpdate.subscribe(material => this._updateMaterialPreview(material)), this._appEventService.articleInfoReceived.subscribe(info => this._handleInfoClick(info)), this._messageService.subscribe(MessageType.UndefinedErrorOccured, () => this._handleUndefinedErrorOccured()), this._presetsService.afterLoad.subscribe(() => this._afterLoadFromPreset()), this._messageBus.subscribe(MessageType.Undo, () => this._clearItems()), this._messageBus.subscribe(MessageType.Redo, () => this._clearItems()), this._messageBus.subscribe(MessageType.StartWithEmptyRoom, () => this._clearItems()), this._messageBus.subscribe(MessageType.StartWithPreset, () => this._clearItems()), this._messageBus.subscribe(MessageType.LoadRoomFromPreset, () => this._clearItems()), this._messageBus.subscribe(MessageType.LoadRoomFromCloud, () => this._clearItems()), this._messageBus.subscribe(MessageType.NewRoom, () => this._clearItems()), this._messageBus.subscribe(MessageType.ResetRoomplan, () => this._clearItems()), this._messageBus.subscribe(MessageType.LoadScaledDiagram, () => this._clearItems()), this._presetsService.beforeLoad.subscribe(() => this._clearItems()), this._messageService.subscribe(MessageType.ItemSelected, (item) => this.objectSelected(item)), this._messageService.subscribe(MessageType.ItemUnselected, () => this._removeButtons()), this.screenSizeService.screenSizeChanged.subscribe((info) => {
44512
+ this._appService.materialPreviewSet.subscribe(material => this._handleMaterialSet(material)), this._appService.materialPreviewUpdate.subscribe(material => this._updateMaterialPreview(material)), this._appEventService.articleInfoReceived.subscribe(info => this._handleInfoClick(info)), this._messageService.subscribe(MessageType.UndefinedErrorOccured, () => this._handleUndefinedErrorOccured()), this._presetsService.afterLoad.subscribe(() => this._afterLoadFromPreset()), this._messageBus.subscribe(MessageType.Undo, () => this._clearItems()), this._messageBus.subscribe(MessageType.Redo, () => this._clearItems()), this._messageBus.subscribe(MessageType.StartWithEmptyRoom, () => this._clearItems()), this._messageBus.subscribe(MessageType.StartWithPreset, () => this._clearItems()), this._messageBus.subscribe(MessageType.LoadRoomFromPreset, () => this._clearItems()), this._messageBus.subscribe(MessageType.LoadRoomFromCloud, () => this._clearItems()), this._messageBus.subscribe(MessageType.NewRoom, () => this._clearItems()), this._messageBus.subscribe(MessageType.ResetRoomplan, () => this._clearItems()), this._messageBus.subscribe(MessageType.LoadScaledDiagram, () => this._clearItems()), this._presetsService.beforeLoad.subscribe(() => this._clearItems()), this._messageService.subscribe(MessageType.ItemSelected, (item) => this.objectSelected(item)), this._messageService.subscribe(MessageType.ItemUnselected, () => this._removeButtons()), this._messageService.subscribe(MessageType.UserModelUploaded, (data) => this._addUploadedItem(data)), this.screenSizeService.screenSizeChanged.subscribe((info) => {
44493
44513
  this.shouldShowLabel = info.isPhoneSize;
44494
44514
  }), this._messageService.subscribe(MessageType.ChangeArticleConfigurationType, (showFullConfig) => this._setTemplateType(showFullConfig)), this._settingsService.settingsLoaded.subscribe((loaded) => {
44495
44515
  if (loaded) {
@@ -44565,6 +44585,9 @@ class ThreedselectorComponent {
44565
44585
  getObjects() {
44566
44586
  // return {furniture: this.threeService.model.saveFurniture()};
44567
44587
  }
44588
+ async saveObjects() {
44589
+ return Promise.resolve();
44590
+ }
44568
44591
  objectSelected(object) {
44569
44592
  this._removeCustomButtons();
44570
44593
  this.showCustomizeButtons = true;
@@ -44625,7 +44648,7 @@ class ThreedselectorComponent {
44625
44648
  }
44626
44649
  // NEW CONFIGURATOR
44627
44650
  async handleBuildResult(result) {
44628
- if (!result || this.firstBuild) {
44651
+ if (!result || this.firstBuild || !this._sceneService.scene) {
44629
44652
  return;
44630
44653
  }
44631
44654
  const customFloorGroupResult = new CustomFloorGroupResult();
@@ -44662,10 +44685,12 @@ class ThreedselectorComponent {
44662
44685
  if (customFloorGroupResult.furniture) {
44663
44686
  const closestWall = this._wallService.getClosestWall(customFloorGroupResult.furniture.position.x, customFloorGroupResult.furniture.position.z);
44664
44687
  if (customFloorGroupResult.furniture instanceof CustomWallFloorItem && customFloorGroupResult.furniture.onWall) {
44688
+ this._itemService.removeItem(customFloorGroupResult.furniture, false, false);
44665
44689
  customFloorGroupResult.furniture.placeOnWall(closestWall);
44666
44690
  customFloorGroupResult.furniture.moveFromFloorToWall();
44667
44691
  }
44668
44692
  else if (customFloorGroupResult.furniture instanceof WallItem && !(customFloorGroupResult.furniture instanceof CustomWallFloorItem)) {
44693
+ this._itemService.removeItem(customFloorGroupResult.furniture, false, false);
44669
44694
  customFloorGroupResult.furniture.placeOnWall(closestWall);
44670
44695
  }
44671
44696
  if (customFloorGroupResult.metaData.configurable) {
@@ -44735,7 +44760,7 @@ class ThreedselectorComponent {
44735
44760
  this._messageBus.emit(MessageType.FinishedIOneFurnitureBuild);
44736
44761
  }
44737
44762
  setMetadateFromObject(result) {
44738
- if (result.originalMetadata) {
44763
+ if (result && result.originalMetadata) {
44739
44764
  const metadata = Object.assign({}, result.originalMetadata);
44740
44765
  metadata.decos = result.decos;
44741
44766
  metadata.selections = result.selections;
@@ -44784,21 +44809,29 @@ class ThreedselectorComponent {
44784
44809
  if (configuratorExternalSourceId) {
44785
44810
  if (settings.hasOwnProperty('settings')) {
44786
44811
  const settingsInterface = settings['settings'];
44812
+ configuratorSettingsClone.externalSourceId = configuratorExternalSourceId;
44787
44813
  configuratorSettingsClone.username = settingsInterface.username;
44788
- configuratorSettingsClone.password = settingsInterface.password;
44789
44814
  configuratorSettingsClone.url = settingsInterface.url;
44790
44815
  configuratorSettingsClone.version = settingsInterface.version;
44791
44816
  configuratorSettingsClone.schema = settingsInterface.schema;
44817
+ configuratorSettingsClone.mainUrl = settings.mainUrl;
44818
+ configuratorSettingsClone.mainSchema = settings.mainSchema;
44819
+ configuratorSettingsClone.mainVersion = settings.mainVersion;
44792
44820
  // Set here to just save it, when it comes back from the configurator, we need to add it to the metadata.
44793
44821
  this._externalSourceData = settings;
44794
44822
  }
44795
44823
  }
44796
44824
  this._configuringService.scene = this._sceneService.scene;
44797
- this._initConfigurator(configuratorSettingsClone, sku);
44825
+ this._initConfigurator(configuratorSettingsClone, sku, !!configuratorExternalSourceId);
44826
+ // await this._configuringService.init(configuratorSettingsClone);
44827
+ // const furnitureData: ConfigurationResultObject = new ConfigurationResultObject();
44828
+ // furnitureData.sku = sku;
44829
+ // this._configuringService.isConfiguring = false;
44830
+ // await this._configuringService.configure(furnitureData);
44798
44831
  this._startPosition = position;
44799
44832
  this.loadConfigurator = true;
44800
44833
  this._changeDetector.detectChanges();
44801
- return this._waitForBuildToFinish();
44834
+ return this._waitForBuildToFinish(); // handleBuildResult(this._configuringService.buildResult);
44802
44835
  }
44803
44836
  async configureFurniture(object) {
44804
44837
  if (object instanceof Item) {
@@ -44809,16 +44842,33 @@ class ThreedselectorComponent {
44809
44842
  if (configuratorExternalSourceId) {
44810
44843
  this._externalSourceData = object.metadata.externalSettings; // set it so we can restore them with the new config.
44811
44844
  }
44812
- this._initConfigurator(configuratorSettingsClone, object.metadata.itemIdentifier, object.metadata.itemId);
44845
+ // make sure that if the object contains metadata, we set from project true
44846
+ // await this._configuringService.init(configuratorSettingsClone);
44847
+ this._initConfigurator(configuratorSettingsClone, object.metadata.itemIdentifier, !!configuratorExternalSourceId, object.metadata.itemId);
44848
+ // const furnitureData: ConfigurationResultObject = new ConfigurationResultObject();
44849
+ // furnitureData.sku = object.metadata.itemIdentifier;
44850
+ // furnitureData.instanceId = object.metadata.itemId;
44851
+ // this._configuringService.isConfiguring = true;
44852
+ // await this._configuringService.configure(furnitureData);
44813
44853
  this._loadFurnitureService.currentActiveService.configurationDirty = true;
44814
44854
  this.loadConfigurator = true;
44815
44855
  }
44816
44856
  }
44817
- _initConfigurator(settings, sku, instanceId) {
44818
- this.configuratorSettings = settings;
44857
+ _initConfigurator(settings, sku, external, instanceId) {
44858
+ this.configuratorSettings = this._prepareSettings(settings, external);
44819
44859
  this.configuratorSku = sku;
44820
44860
  this.configuratorInstanceId = instanceId;
44821
44861
  }
44862
+ _prepareSettings(settings, external = false) {
44863
+ if (external) {
44864
+ // no pre-defined stuff for external sources
44865
+ settings.password = undefined;
44866
+ settings.dataSessionId = undefined;
44867
+ settings.sessionId = undefined;
44868
+ settings.getAccessTokenFunction = undefined;
44869
+ }
44870
+ return settings;
44871
+ }
44822
44872
  _resetConfigurator() {
44823
44873
  this.configuratorSettings = undefined;
44824
44874
  this.configuratorSku = undefined;
@@ -44858,6 +44908,7 @@ class ThreedselectorComponent {
44858
44908
  return configuratorSettingsClone;
44859
44909
  }
44860
44910
  _closeConfigurator() {
44911
+ // this._configuringService.isConfiguring = false;
44861
44912
  this.loadConfigurator = false;
44862
44913
  }
44863
44914
  _clearItems() {
@@ -45302,6 +45353,7 @@ class ThreedselectorComponent {
45302
45353
  }
45303
45354
  this._prepareAddButtons();
45304
45355
  }
45356
+ // this.handleBuildResult(result);
45305
45357
  }
45306
45358
  _resetElementPosition() {
45307
45359
  if (this.selectedElement && !this.standAlone) {
@@ -45511,6 +45563,38 @@ class ThreedselectorComponent {
45511
45563
  }
45512
45564
  }*/
45513
45565
  }
45566
+ _addUploadedItem(data) {
45567
+ if (!data) {
45568
+ return;
45569
+ }
45570
+ const result = new ConfigurationResultObject();
45571
+ result.object = data.object;
45572
+ result.placement = data.placement;
45573
+ result.resultType = ResultType.Loaded;
45574
+ const type = itemTypeFromPlacement(result.placement);
45575
+ result.position = isFloorType(type) ? this._bluePrintService.getRoomCenter() : new Vector3();
45576
+ result.originalMetadata = {
45577
+ itemName: data.object.name,
45578
+ itemType: type,
45579
+ configurable: false,
45580
+ ione: false,
45581
+ // rotation?: number | Euler;
45582
+ // scale?: Vector3;
45583
+ // centerPivot?: boolean;
45584
+ thirdPartyModel: true,
45585
+ // canElevate?: boolean;
45586
+ // modelUrl?: string;
45587
+ // scalable?: boolean;
45588
+ // elevation?: number;
45589
+ // elevationFixed?: boolean;
45590
+ // elevationAdjustable?: boolean;
45591
+ canScaleX: true,
45592
+ canScaleY: true,
45593
+ canScaleZ: true,
45594
+ colorable: true
45595
+ };
45596
+ this.handleBuildResult(result);
45597
+ }
45514
45598
  async _handleLoadIOneFurnitureIntoSceneBySKU(sku, settings, position) {
45515
45599
  const toast = new Toast();
45516
45600
  toast.message = 'MODEL_LOADING';
@@ -45521,6 +45605,32 @@ class ThreedselectorComponent {
45521
45605
  if (article.placement === HdecoPlacement.FloorDecoration) {
45522
45606
  this._floorService.selectedFloorArticle = article;
45523
45607
  }
45608
+ if (article.externalCatalogId && article.externalSourceKey) {
45609
+ try {
45610
+ sku = article.externalSourceKey;
45611
+ const catalogDefinition = this._connectorAdapterService.getCatalogDefinition(article.externalCatalogId);
45612
+ const externalSource = this._connectorAdapterService.getExternalSourceFromId(catalogDefinition.externalSourceId);
45613
+ const params = await this._connectorAdapterService.getPublicParams(externalSource.url, parseInt(externalSource.schema));
45614
+ const homeDecoSettings = Object.assign(JSON.parse(params.homeDecoSettings ? params.homeDecoSettings : params.catalogSettings), new HomedecoratorSettings());
45615
+ settings = {
45616
+ name: catalogDefinition.name,
45617
+ settings: homeDecoSettings,
45618
+ externalSourceId: externalSource.sourceId,
45619
+ catalogDefinition: catalogDefinition,
45620
+ schema: externalSource.schema,
45621
+ mainUrl: this._settingsService.settings.url,
45622
+ mainSchema: this._settingsService.settings.schema,
45623
+ mainVersion: this._settingsService.settings.version
45624
+ };
45625
+ settings.settings.password = '';
45626
+ settings.settings.username = 'external';
45627
+ }
45628
+ catch (e) {
45629
+ console.error(e);
45630
+ this._messageBus.emit(MessageType.UndefinedErrorOccured);
45631
+ return;
45632
+ }
45633
+ }
45524
45634
  const draggedData = {
45525
45635
  name: sku,
45526
45636
  constructFn: async (pos) => this.loadFurnitureFromSku(pos, sku, settings),
@@ -45547,7 +45657,8 @@ class ThreedselectorComponent {
45547
45657
  async _loadIOneFurnitureFromOriginal(md, pos, rot) {
45548
45658
  const newMetaData = { ...md };
45549
45659
  newMetaData.rotation = new Euler().copy(rot);
45550
- return this._handleLoadAndBuildFurniture(newMetaData, true, false, false, false, false);
45660
+ await this._handleLoadAndBuildFurniture(newMetaData, true, false, false, false, false);
45661
+ return this.handleBuildResult(this._configuringService.buildResult);
45551
45662
  }
45552
45663
  _loadIOneFurnitureFromSku(pos, sku, settings, standAlone = false) {
45553
45664
  const md = {
@@ -45672,6 +45783,7 @@ class ThreedselectorComponent {
45672
45783
  this._externalSourceData = furnitureData.externalSettings; // set it so we can restore them with the new config.
45673
45784
  }
45674
45785
  this._configuringService.scene = this._sceneService.scene;
45786
+ // await this._configuringService.init(configuratorSettingsClone);
45675
45787
  const data = new ConfigurationResultObject();
45676
45788
  data.sku = furnitureData.itemIdentifier;
45677
45789
  data.articleName = furnitureData.itemName;
@@ -45691,6 +45803,7 @@ class ThreedselectorComponent {
45691
45803
  data.rotation = furnitureData.rotation;
45692
45804
  data.originalMetadata = furnitureData;
45693
45805
  await this._configuringService.configure(data, shouldCopyInstance, looseOriginalConfiguration, standAlone, fromScratch, fromPreset, loadFromProject);
45806
+ // this._configuringService.isConfiguring = false;
45694
45807
  this.loadConfigurator = true;
45695
45808
  }
45696
45809
  _answerSelected(result) {
@@ -49536,84 +49649,82 @@ class HomedecoratorComponent {
49536
49649
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HomedecoratorComponent, deps: [{ token: HomedecoratorAppService }, { token: HomedecoratorConnectorService }, { token: AppStateService }, { token: PresetsService }, { token: ScreenSizeAnalysisService }, { token: i4.MatIconRegistry }, { token: i1$1.DomSanitizer }, { token: MessageBusService }, { token: HomedecoratorService }, { token: HomedecoratorAppEventService, optional: true, skipSelf: true }, { token: HomedecoratorAppEventService, optional: true, self: true }, { token: IntegrationService }, { token: SceneService }, { token: WebWorkerService }], target: i0.ɵɵFactoryTarget.Component }); }
49537
49650
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: HomedecoratorComponent, isStandalone: false, selector: "co-homedecorator", inputs: { generalFilterOrders: "generalFilterOrders", purchaseFilterOrders: "purchaseFilterOrders", logisticsFilterOrders: "logisticsFilterOrders", initCommunication: "initCommunication", projectToLoad: "projectToLoad", settings: "settings" }, host: { listeners: { "document:keyup": "keyup($event)" }, properties: { "class.co-homedecorator": "this.showClass" } }, providers: [
49538
49651
  APPLICATION_SERVICES_PROVIDERS
49539
- ], ngImport: i0, template: `
49540
- @if (loaded) {
49541
- @if (loaded) {
49542
- <div class="viewport">
49543
- <progress-bar></progress-bar>
49544
- <rp-loading-overlay>
49545
- <rp-core3d></rp-core3d>
49546
- <rp-room-planner></rp-room-planner>
49547
- <rp-furniture-manager></rp-furniture-manager>
49548
- <rp-presets [openNewRoomDialog]="!projectToLoad"></rp-presets>
49549
- <rp-threedselector></rp-threedselector>
49550
- <rp-toolbar (externalSave)="handleExternalSave()"></rp-toolbar>
49551
- <rp-product-catalog
49552
- [generalFilterOrders]="generalFilterOrders"
49553
- [purchaseFilterOrders]="purchaseFilterOrders"
49554
- [logisticsFilterOrders]="logisticsFilterOrders"
49555
- ></rp-product-catalog>
49556
- <co-lite-selector></co-lite-selector>
49557
- <rp-help></rp-help>
49558
- </rp-loading-overlay>
49559
- </div>
49560
- }
49561
- <rp-loader [show]="controllerService.shouldShowLoader"></rp-loader>
49562
- @if (shouldShowLandscapeMessage) {
49563
- <div class="mobile-portrait-overlay">
49564
- <!--
49565
- <mat-icon svgIcon="tilt-phone" class="tilt-phone-icon"></mat-icon>
49566
- -->
49567
- <div>
49568
- <!--
49569
- {{'PLEASE_USE_PHONE_IN_LANDSCAPE_MODE' | localize}}
49570
- -->
49571
- </div>
49572
- </div>
49573
- }
49574
- }
49575
- `, isInline: true, dependencies: [{ kind: "component", type: ProgressBarComponent, selector: "progress-bar" }, { kind: "component", type: LoadingOverlayComponent, selector: "rp-loading-overlay" }, { kind: "component", type: HdLoaderComponent, selector: "rp-loader", inputs: ["show"] }, { kind: "component", type: Core3dComponent, selector: "rp-core3d" }, { kind: "component", type: RoomPlannerComponent, selector: "rp-room-planner", inputs: ["isLoading"], outputs: ["done", "showPlugin", "focusControls"] }, { kind: "component", type: FurnitureManagerComponent, selector: "rp-furniture-manager" }, { kind: "component", type: PresetsComponent, selector: "rp-presets", inputs: ["openNewRoomDialog"] }, { kind: "component", type: ThreedselectorComponent, selector: "rp-threedselector", inputs: ["selections"], outputs: ["customizeButtonClicked"] }, { kind: "component", type: ToolbarComponent, selector: "rp-toolbar", outputs: ["externalSave"] }, { kind: "component", type: ProductCatalogComponent, selector: "rp-product-catalog", inputs: ["generalFilterOrders", "purchaseFilterOrders", "logisticsFilterOrders"] }, { kind: "component", type: HelpComponent, selector: "rp-help" }, { kind: "component", type: i27.LiteSelectorComponent, selector: "co-lite-selector", inputs: ["show", "showLabel", "canClose", "animateSlideout", "customDimensions"], outputs: ["showChange", "answerChosen"] }], encapsulation: i0.ViewEncapsulation.None }); }
49652
+ ], ngImport: i0, template: `
49653
+ @if (loaded) {
49654
+ @if (loaded) {
49655
+ <div class="viewport">
49656
+ <progress-bar></progress-bar>
49657
+ <rp-loading-overlay>
49658
+ <rp-core3d></rp-core3d>
49659
+ <rp-room-planner></rp-room-planner>
49660
+ <rp-furniture-manager></rp-furniture-manager>
49661
+ <rp-presets [openNewRoomDialog]="!projectToLoad"></rp-presets>
49662
+ <rp-threedselector></rp-threedselector>
49663
+ <rp-toolbar (externalSave)="handleExternalSave()"></rp-toolbar>
49664
+ <rp-product-catalog
49665
+ [generalFilterOrders]="generalFilterOrders"
49666
+ [purchaseFilterOrders]="purchaseFilterOrders"
49667
+ [logisticsFilterOrders]="logisticsFilterOrders"
49668
+ ></rp-product-catalog>
49669
+ <rp-help></rp-help>
49670
+ </rp-loading-overlay>
49671
+ </div>
49672
+ }
49673
+ <rp-loader [show]="controllerService.shouldShowLoader"></rp-loader>
49674
+ @if (shouldShowLandscapeMessage) {
49675
+ <div class="mobile-portrait-overlay">
49676
+ <!--
49677
+ <mat-icon svgIcon="tilt-phone" class="tilt-phone-icon"></mat-icon>
49678
+ -->
49679
+ <div>
49680
+ <!--
49681
+ {{'PLEASE_USE_PHONE_IN_LANDSCAPE_MODE' | localize}}
49682
+ -->
49683
+ </div>
49684
+ </div>
49685
+ }
49686
+ }
49687
+ `, isInline: true, dependencies: [{ kind: "component", type: ProgressBarComponent, selector: "progress-bar" }, { kind: "component", type: LoadingOverlayComponent, selector: "rp-loading-overlay" }, { kind: "component", type: HdLoaderComponent, selector: "rp-loader", inputs: ["show"] }, { kind: "component", type: Core3dComponent, selector: "rp-core3d" }, { kind: "component", type: RoomPlannerComponent, selector: "rp-room-planner", inputs: ["isLoading"], outputs: ["done", "showPlugin", "focusControls"] }, { kind: "component", type: FurnitureManagerComponent, selector: "rp-furniture-manager" }, { kind: "component", type: PresetsComponent, selector: "rp-presets", inputs: ["openNewRoomDialog"] }, { kind: "component", type: ThreedselectorComponent, selector: "rp-threedselector", inputs: ["selections"], outputs: ["customizeButtonClicked"] }, { kind: "component", type: ToolbarComponent, selector: "rp-toolbar", outputs: ["externalSave"] }, { kind: "component", type: ProductCatalogComponent, selector: "rp-product-catalog", inputs: ["generalFilterOrders", "purchaseFilterOrders", "logisticsFilterOrders"] }, { kind: "component", type: HelpComponent, selector: "rp-help" }], encapsulation: i0.ViewEncapsulation.None }); }
49576
49688
  }
49577
49689
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HomedecoratorComponent, decorators: [{
49578
49690
  type: Component,
49579
49691
  args: [{
49580
49692
  selector: 'co-homedecorator',
49581
- template: `
49582
- @if (loaded) {
49583
- @if (loaded) {
49584
- <div class="viewport">
49585
- <progress-bar></progress-bar>
49586
- <rp-loading-overlay>
49587
- <rp-core3d></rp-core3d>
49588
- <rp-room-planner></rp-room-planner>
49589
- <rp-furniture-manager></rp-furniture-manager>
49590
- <rp-presets [openNewRoomDialog]="!projectToLoad"></rp-presets>
49591
- <rp-threedselector></rp-threedselector>
49592
- <rp-toolbar (externalSave)="handleExternalSave()"></rp-toolbar>
49593
- <rp-product-catalog
49594
- [generalFilterOrders]="generalFilterOrders"
49595
- [purchaseFilterOrders]="purchaseFilterOrders"
49596
- [logisticsFilterOrders]="logisticsFilterOrders"
49597
- ></rp-product-catalog>
49598
- <co-lite-selector></co-lite-selector>
49599
- <rp-help></rp-help>
49600
- </rp-loading-overlay>
49601
- </div>
49602
- }
49603
- <rp-loader [show]="controllerService.shouldShowLoader"></rp-loader>
49604
- @if (shouldShowLandscapeMessage) {
49605
- <div class="mobile-portrait-overlay">
49606
- <!--
49607
- <mat-icon svgIcon="tilt-phone" class="tilt-phone-icon"></mat-icon>
49608
- -->
49609
- <div>
49610
- <!--
49611
- {{'PLEASE_USE_PHONE_IN_LANDSCAPE_MODE' | localize}}
49612
- -->
49613
- </div>
49614
- </div>
49615
- }
49616
- }
49693
+ template: `
49694
+ @if (loaded) {
49695
+ @if (loaded) {
49696
+ <div class="viewport">
49697
+ <progress-bar></progress-bar>
49698
+ <rp-loading-overlay>
49699
+ <rp-core3d></rp-core3d>
49700
+ <rp-room-planner></rp-room-planner>
49701
+ <rp-furniture-manager></rp-furniture-manager>
49702
+ <rp-presets [openNewRoomDialog]="!projectToLoad"></rp-presets>
49703
+ <rp-threedselector></rp-threedselector>
49704
+ <rp-toolbar (externalSave)="handleExternalSave()"></rp-toolbar>
49705
+ <rp-product-catalog
49706
+ [generalFilterOrders]="generalFilterOrders"
49707
+ [purchaseFilterOrders]="purchaseFilterOrders"
49708
+ [logisticsFilterOrders]="logisticsFilterOrders"
49709
+ ></rp-product-catalog>
49710
+ <rp-help></rp-help>
49711
+ </rp-loading-overlay>
49712
+ </div>
49713
+ }
49714
+ <rp-loader [show]="controllerService.shouldShowLoader"></rp-loader>
49715
+ @if (shouldShowLandscapeMessage) {
49716
+ <div class="mobile-portrait-overlay">
49717
+ <!--
49718
+ <mat-icon svgIcon="tilt-phone" class="tilt-phone-icon"></mat-icon>
49719
+ -->
49720
+ <div>
49721
+ <!--
49722
+ {{'PLEASE_USE_PHONE_IN_LANDSCAPE_MODE' | localize}}
49723
+ -->
49724
+ </div>
49725
+ </div>
49726
+ }
49727
+ }
49617
49728
  `,
49618
49729
  encapsulation: ViewEncapsulation.None,
49619
49730
  providers: [