@colijnit/homedecorator 261.20.1 → 261.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1207,7 +1207,7 @@ declare class HomedecoratorConnectorService implements OnDestroy {
1207
1207
  getImageById(id: number): any;
1208
1208
  beforeLoadPreset(): Promise<void>;
1209
1209
  afterLoadPreset(): Promise<void>;
1210
- initConnection(forceReload?: boolean, standAlone?: boolean): Promise<void>;
1210
+ initConnection(forceReload?: boolean, loadExternalSources?: boolean): Promise<void>;
1211
1211
  getInternalParameter(param: InternalParam): Promise<string>;
1212
1212
  getDefaultLanguage(upId: number): Promise<string>;
1213
1213
  googleTranslateEnabled(): Promise<boolean>;
@@ -1727,7 +1727,8 @@ declare class HomedecoratorAppService implements OnDestroy {
1727
1727
  settingsLoaded: BehaviorSubject<Setting[]>;
1728
1728
  loadedHelpGifs: BehaviorSubject<MediaResource[]>;
1729
1729
  materialPreviewSet: BehaviorSubject<string>;
1730
- materialPreviewUpdate: BehaviorSubject<any>;
1730
+ materialPreviewLoaded: BehaviorSubject<any>;
1731
+ materialPreviewUpdate: BehaviorSubject<Blob>;
1731
1732
  allLoaded: BehaviorSubject<boolean>;
1732
1733
  userRegistered: boolean;
1733
1734
  private _sku;
@@ -2298,6 +2299,7 @@ declare class CustomObject3D extends THREE.Object3D {
2298
2299
  */
2299
2300
  declare class Item extends BaseItem {
2300
2301
  rawMetadata: Metadata;
2302
+ private _metadataSet;
2301
2303
  set allwaysConfigureMode(value: boolean);
2302
2304
  get allwaysConfigureMode(): boolean;
2303
2305
  set configuring(value: boolean);
@@ -2854,7 +2856,7 @@ declare class HomedecoratorService {
2854
2856
  private _connectorService;
2855
2857
  loaded: BehaviorSubject<boolean>;
2856
2858
  constructor(_settingsService: HomedecoratorSettingsService, _connectorService: HomedecoratorConnectorService);
2857
- init(settings: HomedecoratorSettings, forceReload?: boolean): Promise<void>;
2859
+ init(settings: HomedecoratorSettings, forceReload?: boolean, loadExternalSources?: boolean): Promise<void>;
2858
2860
  static ɵfac: i0.ɵɵFactoryDeclaration<HomedecoratorService, never>;
2859
2861
  static ɵprov: i0.ɵɵInjectableDeclaration<HomedecoratorService>;
2860
2862
  }
@@ -3270,7 +3272,7 @@ declare abstract class WallItem extends Item {
3270
3272
  resized(): void;
3271
3273
  getMaskedGeometry(): BufferGeometry$1;
3272
3274
  /** */
3273
- placeOnWall(wall: WallInterface): void;
3275
+ placeOnWall(wall: WallInterface, force?: boolean): void;
3274
3276
  reposition(): void;
3275
3277
  getFloorY(): number;
3276
3278
  isValidPosition(position: Vector3, rotation?: Euler, options?: any): CollisionInfo;
@@ -5513,6 +5515,7 @@ declare abstract class BuildFurnitureBaseService implements OnDestroy {
5513
5515
  selectSelectionAsAnswer(chosenOption: SelectorStructure, metadata: Metadata): Promise<void>;
5514
5516
  createConfigurableItemWithObject(instanceId: string, metadata: Metadata, object: Object3D): Item;
5515
5517
  createFloorWithMaterial(instanceId: string, metadata: Metadata, material: Material): CustomFloorGroupResult;
5518
+ replaceCurrentItem(newItem: Item, metadata: Metadata, animate?: boolean): Promise<Item>;
5516
5519
  protected prepareInstanceForBuild(shouldCopyInstance: boolean, loadFromProject: boolean, looseOriginalConfiguration: boolean, result: CustomFloorGroupResult): Promise<CustomFloorGroupResult>;
5517
5520
  protected getSelectionsAndDecos(): Promise<void>;
5518
5521
  protected handlePrepareSelectionsDecos(result: CustomFloorGroupResult): Promise<CustomFloorGroupResult>;
@@ -5551,7 +5554,6 @@ declare abstract class BuildFurnitureBaseService implements OnDestroy {
5551
5554
  protected createPositionAnimation(object: Object3D, from: Vector3, to: Vector3, easing: TWEEN.Easing): Promise<void>;
5552
5555
  protected animateChanges(furniture: Item, changes: ChangesInterface[]): Promise<void[]>;
5553
5556
  protected cloneSelections(): Selection[];
5554
- replaceCurrentItem(newItem: Item, metadata: Metadata, animate?: boolean): Promise<Item>;
5555
5557
  protected isMoveableObject(obj: Object3D): boolean;
5556
5558
  protected addElementOnConnector(currentItem: Item, element: Object3D, connector: string, connectedNodeId: number): Promise<void>;
5557
5559
  protected saveElementConnector(element: Object3D, connector: string): void;
@@ -5895,7 +5897,6 @@ declare class SelectedChildMaterialComponent implements OnInit {
5895
5897
 
5896
5898
  declare class SelectedChildMaterialTextureComponent {
5897
5899
  iconService: HomedecoratorIconCacheService;
5898
- private _sceneService;
5899
5900
  readonly icon: typeof IconEnum;
5900
5901
  input: ElementRef;
5901
5902
  set map(value: Texture$1);
@@ -5940,7 +5941,7 @@ declare class SelectedChildMaterialTextureComponent {
5940
5941
  private _map;
5941
5942
  private _loadedImage;
5942
5943
  private _color;
5943
- constructor(iconService: HomedecoratorIconCacheService, _sceneService: SceneService);
5944
+ constructor(iconService: HomedecoratorIconCacheService);
5944
5945
  showLargeImage(): void;
5945
5946
  hideZoomImage(event: MouseEvent): void;
5946
5947
  showColorPicker(): void;
@@ -6283,7 +6284,7 @@ declare class NewRenderService implements OnDestroy {
6283
6284
  private _dictionaryService;
6284
6285
  renderImageChanged: BehaviorSubject<string>;
6285
6286
  renderImageError: BehaviorSubject<string>;
6286
- blenderRenderStarted: EventEmitter<string>;
6287
+ blenderRenderStarted: Subject<string>;
6287
6288
  renderUpdateImageChanged: BehaviorSubject<{
6288
6289
  image: string;
6289
6290
  progress: number;
@@ -6444,7 +6445,7 @@ declare class SliderInputModule {
6444
6445
 
6445
6446
  declare class Core3dModule {
6446
6447
  static ɵfac: i0.ɵɵFactoryDeclaration<Core3dModule, never>;
6447
- static ɵmod: i0.ɵɵNgModuleDeclaration<Core3dModule, [typeof SceneDirective, typeof Core3dComponent, typeof SceneControlComponent, typeof WalkthroughCameraControlsComponent, typeof LightplanComponent, typeof EditLightComponent, typeof SceneOptionsComponent, typeof EditLightplanComponent, typeof ArGuiRootComponent, typeof ArGuiButtonsComponent, typeof ArGuiConfiguratorComponent, typeof ArGuiContextMenuComponent, typeof ArGuiNotificationsComponent], [typeof CoreModule, typeof i3.CommonModule, typeof i6.FormsModule, typeof i5$1.MatInputModule, typeof i4.MatButtonModule, typeof i19.MatCheckboxModule, typeof i8.MatTooltipModule, typeof i11.MatSliderModule, typeof i10.MatSelectModule, typeof DevelopmentModule, typeof i7$1.IconModule, typeof ToolbarIconModule, typeof ZoomControlsModule, typeof RenderModule, typeof i7.MatIconModule, typeof i29.MatProgressBarModule, typeof SliderInputModule, typeof i31.MatOptionModule, typeof i19.MatCheckboxModule], [typeof Core3dComponent]>;
6448
+ static ɵmod: i0.ɵɵNgModuleDeclaration<Core3dModule, [typeof SceneDirective, typeof Core3dComponent, typeof SceneControlComponent, typeof WalkthroughCameraControlsComponent, typeof LightplanComponent, typeof EditLightComponent, typeof SceneOptionsComponent, typeof EditLightplanComponent, typeof ArGuiRootComponent, typeof ArGuiButtonsComponent, typeof ArGuiConfiguratorComponent, typeof ArGuiContextMenuComponent, typeof ArGuiNotificationsComponent], [typeof CoreModule, typeof i3.CommonModule, typeof i6.FormsModule, typeof i5$1.MatInputModule, typeof i4.MatButtonModule, typeof i19.MatCheckboxModule, typeof i8.MatTooltipModule, typeof i11.MatSliderModule, typeof i10.MatSelectModule, typeof DevelopmentModule, typeof i7$1.IconModule, typeof ToolbarIconModule, typeof ZoomControlsModule, typeof RenderModule, typeof i7.MatIconModule, typeof i29.MatProgressBarModule, typeof SliderInputModule, typeof i31.MatOptionModule, typeof i19.MatCheckboxModule], [typeof Core3dComponent, typeof SceneDirective]>;
6448
6449
  static ɵinj: i0.ɵɵInjectorDeclaration<Core3dModule>;
6449
6450
  }
6450
6451
 
@@ -7170,7 +7171,7 @@ declare class TextureEditorComponent implements OnInit, OnChanges, OnDestroy {
7170
7171
  dampSetTexture: any;
7171
7172
  createDampener: (emitter: any) => {
7172
7173
  emit: (value: any) => void;
7173
- release: () => void;
7174
+ release: () => any;
7174
7175
  };
7175
7176
  constructor(messageService: MessageBusService, _settingsService: HomedecoratorSettingsService);
7176
7177
  ngOnInit(): void;
@@ -7676,12 +7677,16 @@ declare class FloorCatalogComponent implements OnInit, OnDestroy {
7676
7677
  }
7677
7678
 
7678
7679
  declare class CustomShapeFloorItem extends FloorItem {
7680
+ oldPosition: Vector3;
7681
+ oldElevation: number;
7679
7682
  get customMesh(): Mesh;
7680
7683
  constructor(metadata: Metadata, object: Object3D | Mesh, texture?: Texture);
7681
7684
  cloneItem(): CustomShapeFloorItem;
7682
7685
  }
7683
7686
 
7684
7687
  declare class CustomShapeWallItem extends WallItem {
7688
+ oldPosition: Vector3;
7689
+ oldElevation: number;
7685
7690
  get customMesh(): Mesh;
7686
7691
  constructor(metadata: Metadata, object: Mesh | Object3D, texture?: Texture);
7687
7692
  cloneItem(): CustomShapeWallItem;
@@ -7729,6 +7734,8 @@ declare class CustomShapeCreatorComponent implements OnInit {
7729
7734
  private _updateShapesColor;
7730
7735
  setTexture(texture: Texture): Promise<void>;
7731
7736
  toggleItemType(): void;
7737
+ private _createAsFloorType;
7738
+ private _createAsWallType;
7732
7739
  private _updateShapesTexture;
7733
7740
  private _setShapeMaterial;
7734
7741
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomShapeCreatorComponent, never>;
@@ -7978,17 +7985,17 @@ declare class ExportPdfModule {
7978
7985
 
7979
7986
  interface MaterialDialogData {
7980
7987
  object: Item;
7988
+ settingsService: any;
7981
7989
  sceneService: any;
7982
7990
  }
7983
7991
 
7984
7992
  declare class MaterialDialogComponent implements OnInit, OnDestroy {
7985
7993
  data: MaterialDialogData;
7986
- private _settingsService;
7987
7994
  availableMeshes: Mesh[];
7988
7995
  selectedMesh: Mesh;
7989
7996
  showMaps: boolean;
7990
7997
  private _subs;
7991
- constructor(data: MaterialDialogData, _settingsService: HomedecoratorSettingsService);
7998
+ constructor(data: MaterialDialogData);
7992
7999
  ngOnInit(): void;
7993
8000
  ngOnDestroy(): void;
7994
8001
  handleMapChange(mapChange: MapChange): void;
@@ -8261,11 +8268,11 @@ declare class ThreedselectorComponent implements OnInit, OnDestroy {
8261
8268
  cancelElementReplace(rebuild?: boolean): void;
8262
8269
  openAnimationSidebar(): void;
8263
8270
  setModelErrorDialog(): void;
8264
- handleBuildResult(result: ConfigurationResultObject): void;
8271
+ handleBuildResult(result: ConfigurationResultObject): Promise<CustomFloorGroupResult>;
8265
8272
  handleErrorMessages(errors: ConfiguratorErrorMessage[]): void;
8266
8273
  setMetadateFromObject(result: ConfigurationResultObject): Metadata;
8267
8274
  showConfiguratorChange(show: boolean): void;
8268
- loadFurnitureFromSku(position: Vector3, sku: string, settings?: HomedecoratorExternalSettingsInterface): Promise<void>;
8275
+ loadFurnitureFromSku(position: Vector3, sku: string, settings?: HomedecoratorExternalSettingsInterface): Promise<CustomFloorGroupResult>;
8269
8276
  configureFurniture(object: Item | ItemGroup): Promise<void>;
8270
8277
  private _setSourceSettings;
8271
8278
  private _closeConfigurator;
@@ -9396,5 +9403,45 @@ declare class HomedecoratorModule {
9396
9403
  static ɵinj: i0.ɵɵInjectorDeclaration<HomedecoratorModule>;
9397
9404
  }
9398
9405
 
9399
- export { ConfigurationService, HomedecoratorAppEventService, HomedecoratorComponent, HomedecoratorModule, HomedecoratorService };
9406
+ declare class MaterialBuilderComponent implements OnInit, OnDestroy {
9407
+ appService: HomedecoratorAppService;
9408
+ controllerService: HomedecoratorConnectorService;
9409
+ appState: AppStateService;
9410
+ settingsService: HomedecoratorSettingsService;
9411
+ presetsService: PresetsService;
9412
+ private _bluePrintService;
9413
+ private _viewModeService;
9414
+ private _homedecoratorService;
9415
+ private _parentEventService;
9416
+ private _ownEventService;
9417
+ private _integrationService;
9418
+ private _sceneService;
9419
+ private _webWorkerService;
9420
+ set settings(value: any);
9421
+ get settings(): any;
9422
+ set materialPreview(value: string);
9423
+ set materialPreviewUpdate(value: Blob);
9424
+ showClass: boolean;
9425
+ loaded: boolean;
9426
+ title: string;
9427
+ private _subs;
9428
+ private _settings;
9429
+ private _eventService;
9430
+ constructor(appService: HomedecoratorAppService, // don't remove this, needs to be created on a high level
9431
+ controllerService: HomedecoratorConnectorService, appState: AppStateService, settingsService: HomedecoratorSettingsService, presetsService: PresetsService, _bluePrintService: BluePrintService, _viewModeService: ViewModeService, _homedecoratorService: HomedecoratorService, _parentEventService: HomedecoratorAppEventService, _ownEventService: HomedecoratorAppEventService, _integrationService: IntegrationService, _sceneService: SceneService, _webWorkerService: WebWorkerService);
9432
+ ngOnInit(): Promise<void>;
9433
+ ngOnDestroy(): void;
9434
+ handleExternalSave(): void;
9435
+ private _initConnection;
9436
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaterialBuilderComponent, [null, null, null, null, null, null, null, null, { optional: true; skipSelf: true; }, { optional: true; self: true; }, null, null, null]>;
9437
+ static ɵcmp: i0.ɵɵComponentDeclaration<MaterialBuilderComponent, "co-material-builder", never, { "settings": { "alias": "settings"; "required": false; }; "materialPreview": { "alias": "materialPreview"; "required": false; }; "materialPreviewUpdate": { "alias": "materialPreviewUpdate"; "required": false; }; }, {}, never, never, false, never>;
9438
+ }
9439
+
9440
+ declare class MaterialBuilderModule {
9441
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaterialBuilderModule, never>;
9442
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialBuilderModule, [typeof MaterialBuilderComponent], [typeof LoadingOverlayModule, typeof RoomPlannerModule, typeof Core3dModule, typeof ThreedselectorModule, typeof ToolbarModule, typeof i25.LiteSelectorModule, typeof DevelopmentModule, typeof HdLoaderModule], [typeof MaterialBuilderComponent]>;
9443
+ static ɵinj: i0.ɵɵInjectorDeclaration<MaterialBuilderModule>;
9444
+ }
9445
+
9446
+ export { ConfigurationService, HomedecoratorAppEventService, HomedecoratorComponent, HomedecoratorModule, HomedecoratorService, MaterialBuilderComponent, MaterialBuilderModule };
9400
9447
  export type { ExternalSave };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/homedecorator",
3
- "version": "261.20.1",
3
+ "version": "261.20.2",
4
4
  "description": "Homedecorator application based on 261 version of iOne backend",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",
@@ -11,7 +11,7 @@
11
11
  "@angular/core": ">=20.0.0",
12
12
  "@colijnit/catalog": ">=261.20.0",
13
13
  "@colijnit/articleapi": ">=261.1.0",
14
- "@colijnit/configurator": ">=261.20.0",
14
+ "@colijnit/configurator": ">=261.20.4",
15
15
  "@colijnit/configuratorapi": ">=261.1.3",
16
16
  "@colijnit/corecomponents_v12": ">=261.20.0",
17
17
  "@colijnit/ioneconnector": ">=261.1.3",
@@ -32,6 +32,7 @@
32
32
  "ngx-color": "^10.1.0",
33
33
  "ngx-device-detector": "^10.1.0",
34
34
  "polygon-tools": "^0.4.8",
35
+ "postprocessing": "^6.36.1",
35
36
  "textdiff-patch": "^1.0.5",
36
37
  "three": "^0.178.0",
37
38
  "three-bvh-csg": "0.0.17",
@@ -32,6 +32,31 @@ $scrollbar-small-stop-point: 25%;
32
32
  font-feature-settings: 'liga';
33
33
  }
34
34
 
35
+ #material_color_dialog {
36
+ max-height: 600px;
37
+ width: 600px;
38
+ background: white;
39
+ overflow: hidden;
40
+ color: $hd-color-primary;
41
+ .co-list-of-values {
42
+ color: $hd-color-primary;
43
+ }
44
+ .mat-dialog-content {
45
+ display: flex;
46
+ flex-direction: column;
47
+ overflow: hidden;
48
+ }
49
+ .part-material {
50
+ margin-top: 20px;
51
+ flex-basis: 100%;
52
+ overflow: auto;
53
+ .material-color {
54
+ display: block;
55
+ height: 40px;
56
+ }
57
+ }
58
+ }
59
+
35
60
  .co-homedecorator {
36
61
  //> * {
37
62
  // pointer-events: none;
@@ -58,9 +58,9 @@ $mat-font-family: mat.m2-define-typography-config($font-family: "Montserrat, Ari
58
58
  padding: 0 !important;
59
59
  }
60
60
 
61
- .mat-mdc-dialog-surface {
62
- padding: 24px;
63
- }
61
+ //.mat-mdc-dialog-surface {
62
+ // padding: 24px;
63
+ //}
64
64
  .mat-mdc-option {
65
65
  .mdc-list-item__primary-text {
66
66
  color: #000000 !important;
@@ -83,6 +83,11 @@ $mat-font-family: mat.m2-define-typography-config($font-family: "Montserrat, Ari
83
83
  }
84
84
 
85
85
  :root {
86
+ @include mat.dialog-overrides((
87
+ content-padding: 24px,
88
+ container-color: white
89
+
90
+ ));
86
91
  @include mat.slider-overrides((
87
92
  active-track-color: $hd-color-main,
88
93
  focus-handle-color: $hd-color-main,
@@ -166,3 +171,31 @@ $mat-font-family: mat.m2-define-typography-config($font-family: "Montserrat, Ari
166
171
  height: 24px !important;
167
172
  width: 24px !important;
168
173
  }
174
+
175
+ .mat-mdc-dialog-container {
176
+ padding: 24px;
177
+ background-color: white;
178
+ border-radius: 4px;
179
+ h2, h3, h4, p {
180
+ margin: 0;
181
+ padding: 0;
182
+ margin-block-start: 0;
183
+ margin-block-end: 0;
184
+ margin-inline-start: 0;
185
+ margin-inline-end: 0;
186
+ }
187
+ .mat-mdc-dialog-surface {
188
+ box-shadow: none;
189
+ border-radius: 0;
190
+ }
191
+ }
192
+
193
+ .mat-mdc-dialog-content {
194
+ .mat-mdc-list-item {
195
+ height: 72px !important;
196
+ }
197
+ .mdc-list-item__primary-text {
198
+ color: #000000 !important;
199
+ white-space: break-spaces;
200
+ }
201
+ }
package/style/styles.scss CHANGED
@@ -354,18 +354,20 @@ canvas {
354
354
  @import "../../client/app/core/components/lightbox/style/material.scss";
355
355
 
356
356
  @import "@colijnit/corecomponents_v12/lib/style/corecomponents-globals";
357
+ @import "@colijnit/corecomponents_v12/lib/components/button/style/material.scss";
357
358
  @import "@colijnit/corecomponents_v12/lib/components/icon/style/material.scss";
358
359
  @import "@colijnit/corecomponents_v12/lib/components/input-text/style/material.scss";
359
360
  @import "@colijnit/corecomponents_v12/lib/components/input-search/style/material.scss";
360
361
  @import "@colijnit/corecomponents_v12/lib/components/collapsible/style/material.scss";
361
362
  @import "@colijnit/corecomponents_v12/lib/components/input-checkbox/style/material.scss";
362
363
  @import "@colijnit/corecomponents_v12/lib/components/input-radio-button/style/material.scss";
363
- @import "@colijnit/corecomponents_v12/lib/components/icon/style/material.scss";
364
364
  @import "@colijnit/corecomponents_v12/lib/components/filter-item/style/material.scss";
365
365
  @import "@colijnit/corecomponents_v12/lib/components/pagination-bar/style/material.scss";
366
366
  @import "@colijnit/corecomponents_v12/lib/components/image/style/material.scss";
367
367
  @import "@colijnit/corecomponents_v12/lib/components/loader/style/material.scss";
368
368
  @import "@colijnit/corecomponents_v12/lib/components/list-of-values/style/material.scss";
369
+ @import "@colijnit/corecomponents_v12/lib/components/card/style/material.scss";
370
+
369
371
  @import "@colijnit/catalog/lib/style/catalog-globals";
370
372
  @import "@colijnit/catalog/lib/component/catalog-search/style/material";
371
373
  @import "@colijnit/catalog/lib/component/catalog-search-header/style/material";
@@ -378,7 +380,7 @@ canvas {
378
380
  @import "@colijnit/catalog/lib/component/catalog-external-source/style/material";
379
381
  @import "@colijnit/catalog/lib/component/catalog-navigation/style/material";
380
382
 
381
- @import "@colijnit/configurator/lib/style/template_variables.scss";
383
+ @import "@colijnit/configurator/lib/style/variables.scss";
382
384
  @import '@colijnit/configurator/lib/components/configurator/style/material.scss';
383
385
  @import '@colijnit/configurator/lib/components/configurator-loader/style/material.scss';
384
386
  @import '@colijnit/configurator/lib/components/scene-options/style/material.scss';
@@ -403,4 +405,4 @@ canvas {
403
405
  @import '@colijnit/configurator/lib/components/color-filter/style/material.scss';
404
406
  @import '@colijnit/configurator/lib/components/tag-filter/style/material.scss';
405
407
  @import "@colijnit/configurator/lib/components/image-zoom/style/material.scss";
406
-
408
+ @import "@colijnit/configurator/lib/components/slideout/style/material.scss";