@wizishop/angular-components 0.0.167 → 0.0.168

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.
@@ -1,15 +1,21 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- export declare class MosaicComponent implements OnInit {
3
- items: [];
1
+ import { EventEmitter, TemplateRef } from '@angular/core';
2
+ export declare type ImageSource = string;
3
+ export declare type ImageAlt = string;
4
+ export declare type MosaicImage = {
5
+ src: ImageSource;
6
+ alt: ImageAlt;
7
+ };
8
+ export declare class MosaicComponent {
9
+ set imagesList(imagesList: MosaicImage[]);
10
+ get imagesList(): MosaicImage[];
11
+ _imagesList: MosaicImage[];
4
12
  isLoading: boolean;
5
- labelButtons: string;
6
- iconButtons: string;
7
- import: EventEmitter<any>;
8
- columnLeft: [];
9
- columnRight: [];
10
- columnCenter: [];
13
+ numberOfColumn: number;
14
+ importButtonTemplate: TemplateRef<any>;
15
+ importImageSrc: EventEmitter<string>;
16
+ columns: MosaicImage[][];
11
17
  constructor();
12
- ngOnInit(): void;
13
- emitIndex(index: any): void;
14
- sliceIntoChunks(arr: any, chunkSize: any): any[];
18
+ generateColumns(): void;
19
+ sliceIntoChunks(): MosaicImage[][];
20
+ onImportImage(src: ImageSource): void;
15
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/angular-components",
3
- "version": "0.0.167",
3
+ "version": "0.0.168",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^11.2.12",
6
6
  "@angular/core": "^11.2.12",