@recursyve/nice-ui-kit.v2 16.0.0-beta.137 → 16.0.0-beta.139

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,5 +1,6 @@
1
1
  import { EventEmitter } from "@angular/core";
2
2
  import { PictureModalService } from "./picture-modal/picture-modal.service";
3
+ import { NiceCarouselIconOptions } from "./interfaces/carousel-options.interface";
3
4
  import * as i0 from "@angular/core";
4
5
  export interface Picture {
5
6
  id: number;
@@ -7,15 +8,16 @@ export interface Picture {
7
8
  }
8
9
  export declare class CarouselComponent {
9
10
  private pictureModalService;
11
+ icons?: NiceCarouselIconOptions;
10
12
  currentImages: Picture[];
11
13
  set images(urls: Picture[]);
12
14
  direction: "ltr" | "rtl" | "utd" | "dtu";
13
15
  layout: "row" | "column";
14
16
  editable: boolean;
15
17
  delete: EventEmitter<Picture>;
16
- constructor(pictureModalService: PictureModalService);
18
+ constructor(pictureModalService: PictureModalService, icons?: NiceCarouselIconOptions);
17
19
  clickView(picture: Picture): void;
18
20
  clickDelete(picture: Picture): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<CarouselComponent, never>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<CarouselComponent, [null, { optional: true; }]>;
20
22
  static ɵcmp: i0.ɵɵComponentDeclaration<CarouselComponent, "nice-carousel", never, { "images": { "alias": "images"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; }, { "delete": "delete"; }, never, never, false, never>;
21
23
  }
@@ -0,0 +1,2 @@
1
+ import { InjectionToken } from "@angular/core";
2
+ export declare const CAROUSEL_ICONS: InjectionToken<unknown>;
@@ -1,3 +1,5 @@
1
+ import { ModuleWithProviders } from "@angular/core";
2
+ import { NiceCarouselOptions } from "./interfaces/carousel-options.interface";
1
3
  import * as i0 from "@angular/core";
2
4
  import * as i1 from "./carousel.component";
3
5
  import * as i2 from "./picture-modal/picture-modal.component";
@@ -8,6 +10,7 @@ import * as i6 from "@angular/material/button";
8
10
  import * as i7 from "@ngx-translate/core";
9
11
  import * as i8 from "@angular/material/icon";
10
12
  export declare class NiceCarouselModule {
13
+ static forRoot(options?: NiceCarouselOptions): ModuleWithProviders<NiceCarouselModule>;
11
14
  static ɵfac: i0.ɵɵFactoryDeclaration<NiceCarouselModule, never>;
12
15
  static ɵmod: i0.ɵɵNgModuleDeclaration<NiceCarouselModule, [typeof i1.CarouselComponent, typeof i2.PictureModalComponent, typeof i3.CarouselLayoutPipe], [typeof i4.CommonModule, typeof i5.MatCardModule, typeof i6.MatButtonModule, typeof i7.TranslateModule, typeof i8.MatIconModule], [typeof i1.CarouselComponent]>;
13
16
  static ɵinj: i0.ɵɵInjectorDeclaration<NiceCarouselModule>;
@@ -0,0 +1,9 @@
1
+ export type NiceCarouselIcons = {
2
+ svgIcon: string;
3
+ };
4
+ export interface NiceCarouselIconOptions {
5
+ remove?: NiceCarouselIcons;
6
+ }
7
+ export interface NiceCarouselOptions {
8
+ icons?: NiceCarouselIconOptions;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recursyve/nice-ui-kit.v2",
3
- "version": "16.0.0-beta.137",
3
+ "version": "16.0.0-beta.139",
4
4
  "exports": {
5
5
  ".": {
6
6
  "sass": "./_index.scss",