simpo-component-library 0.7.1 → 0.7.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.
@@ -10,7 +10,7 @@ export declare class BackgroundDirective implements OnChanges {
10
10
  constructor(el: ElementRef, eventService: EventsService);
11
11
  ngOnDestroy(): void;
12
12
  ngOnChanges(change: SimpleChanges): void;
13
- getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
13
+ getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundDirective, never>;
15
15
  static ɵdir: i0.ɵɵDirectiveDeclaration<BackgroundDirective, "[simpoBackground]", never, { "simpoBackground": { "alias": "simpoBackground"; "required": false; }; }, {}, never, never, true, never>;
16
16
  }
@@ -14,7 +14,7 @@ export declare class ButtonDirectiveDirective implements OnChanges {
14
14
  applyButtonStyleChanges(): void;
15
15
  applyButtonType(style: ButtonStyleModel, color: string): void;
16
16
  applyButtonShape(style: ButtonStyleModel): void;
17
- getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
17
+ getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
18
18
  buttonStyleSubscription?: Subscription;
19
19
  buttonStyleChangeCheck(): void;
20
20
  changeButtonStyle(id: any, style: ButtonStyleModel, bgColor: string): void;
@@ -12,7 +12,7 @@ export declare class ColorDirective implements OnChanges {
12
12
  ngOnDestroy(): void;
13
13
  applyColor(): void;
14
14
  bgColorChangeCheck(): void;
15
- getTextColor(): "#000000" | "#ffffff" | "#ffffff;";
15
+ getTextColor(): "#ffffff" | "#000000" | "#ffffff;";
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorDirective, never>;
17
17
  static ɵdir: i0.ɵɵDirectiveDeclaration<ColorDirective, "[simpoColor]", never, { "bgColor": { "alias": "simpoColor"; "required": false; }; }, {}, never, never, true, never>;
18
18
  }
@@ -2,6 +2,7 @@ import { FeaturedProductContentModal, FeaturedProductModal, FeaturedProductStyle
2
2
  import { Product } from '../../styles/product.modal';
3
3
  import { EventsService } from '.././../../services/events.service';
4
4
  import BaseSection from '../../../sections/BaseSection';
5
+ import { ButtonModel } from '../../../styles/style.model';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class FeaturedProductsComponent extends BaseSection {
7
8
  private platformId;
@@ -13,6 +14,7 @@ export declare class FeaturedProductsComponent extends BaseSection {
13
14
  delete?: boolean;
14
15
  content?: FeaturedProductContentModal;
15
16
  styles?: FeaturedProductStylesModel;
17
+ button?: ButtonModel;
16
18
  constructor(platformId: Object, _eventService: EventsService);
17
19
  screenWidth: number;
18
20
  getScreenSize(): void;
@@ -21,5 +23,5 @@ export declare class FeaturedProductsComponent extends BaseSection {
21
23
  getSliceParameters(): number[];
22
24
  proceedToProductDesc(productId: any): void;
23
25
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedProductsComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedProductsComponent, "simpo-featured-products", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedProductsComponent, "simpo-featured-products", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
25
27
  }
@@ -1,5 +1,4 @@
1
- import { LINK_TYPE } from "../../../styles/types";
2
- import { InputTextModel, StylesModel, ImageStyle } from "../../../styles/style.model";
1
+ import { InputTextModel, StylesModel, ImageStyle, ActionModel } from "../../../styles/style.model";
3
2
  import { Corners } from "../../.././styles/index";
4
3
  export interface FeaturedProductModal {
5
4
  id: string;
@@ -7,16 +6,17 @@ export interface FeaturedProductModal {
7
6
  sectionName: string;
8
7
  content: FeaturedProductContentModal;
9
8
  styles: FeaturedProductStylesModel;
9
+ action: ActionModel;
10
10
  }
11
11
  export interface FeaturedProductContentModal {
12
12
  inputText: InputTextModel[];
13
13
  display: Display;
14
+ button: string;
14
15
  }
15
16
  export interface Display {
16
17
  showHeading: boolean;
17
18
  showContent: boolean;
18
- showLink: boolean;
19
- linkType: LINK_TYPE;
19
+ showButton: boolean;
20
20
  }
21
21
  export interface FeaturedProductStylesModel extends StylesModel {
22
22
  image: ImageStyle;
@@ -1,7 +1,8 @@
1
1
  import { Product } from '../../styles/product.modal';
2
2
  import BaseSection from '../../../sections/BaseSection';
3
- import { ProductListModal, ProductListStylesModal } from './product-list.modal';
3
+ import { ProductListContentModal, ProductListModal, ProductListStylesModal } from './product-list.modal';
4
4
  import { EventsService } from '.././../../services/events.service';
5
+ import { ButtonModel } from '../../../styles/style.model';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class ProductListComponent extends BaseSection {
7
8
  private platformId;
@@ -11,6 +12,8 @@ export declare class ProductListComponent extends BaseSection {
11
12
  index?: number;
12
13
  edit?: boolean;
13
14
  delete?: boolean;
15
+ content?: ProductListContentModal;
16
+ button?: ButtonModel;
14
17
  constructor(platformId: Object, _eventService: EventsService);
15
18
  screenWidth: number;
16
19
  getScreenSize(): void;
@@ -18,6 +21,9 @@ export declare class ProductListComponent extends BaseSection {
18
21
  ngOnInit(): void;
19
22
  getProductWidth(): string;
20
23
  proceedToProductDesc(productId: any): void;
24
+ categories: {
25
+ option: string;
26
+ }[];
21
27
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
22
28
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductListComponent, "simpo-product-list", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
23
29
  }
@@ -1,13 +1,23 @@
1
- import { AnimationModel, LayOutModel } from "../../../styles/style.model";
1
+ import { ActionModel, AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
2
2
  export interface ProductListModal {
3
3
  id: string;
4
4
  sectionType: string;
5
5
  sectionName: string;
6
+ content: ProductListContentModal;
6
7
  styles: ProductListStylesModal;
8
+ action: ActionModel;
7
9
  }
8
10
  export interface ProductListStylesModal {
9
11
  layout: LayOutModel;
12
+ background: BackgroundModel;
10
13
  elementInRow: number;
11
14
  mobileColumn: number;
12
15
  animation: AnimationModel;
13
16
  }
17
+ export interface ProductListContentModal {
18
+ display: Display;
19
+ button: string;
20
+ }
21
+ export interface Display {
22
+ showButton: boolean;
23
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file