simpo-component-library 3.6.984 → 3.6.986

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.
@@ -0,0 +1,17 @@
1
+ import { Brand } from '../../styles/Brand.modal';
2
+ import { FeaturedBrandContentModal, FeaturedBrandStylesModel } from '../featured-brand/featured-brand.modal';
3
+ import { Router } from '@angular/router';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BrandsWithImageBackgroundColumnsComponent {
6
+ private readonly router;
7
+ responseData?: Brand[];
8
+ styles?: FeaturedBrandStylesModel;
9
+ content?: FeaturedBrandContentModal;
10
+ constructor(router: Router);
11
+ ngOnInit(): void;
12
+ hover: boolean;
13
+ hoveredIndex: number | null;
14
+ redirectToListPage(brand: any): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<BrandsWithImageBackgroundColumnsComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<BrandsWithImageBackgroundColumnsComponent, "simpo-brands-with-image-background-columns", never, { "responseData": { "alias": "responseData"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "content": { "alias": "content"; "required": false; }; }, {}, never, never, true, never>;
17
+ }
@@ -0,0 +1,42 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { EventsService } from '.././../../services/events.service';
3
+ import BaseSection from '../../../sections/BaseSection';
4
+ import { FeaturedBrandContentModal, FeaturedBrandModal, FeaturedBrandStylesModel } from './featured-brand.modal';
5
+ import { Brand } from '../../styles/Brand.modal';
6
+ import { RestService } from '../../../services/rest.service';
7
+ import { Router } from '@angular/router';
8
+ import { BackgroundModel, LayOutModel } from '../../../styles/style.model';
9
+ import * as i0 from "@angular/core";
10
+ export declare class FeaturedBrandComponent extends BaseSection {
11
+ private platformId;
12
+ private readonly router;
13
+ private readonly restService;
14
+ private readonly _eventService;
15
+ brandParent: ElementRef<HTMLElement>;
16
+ data?: FeaturedBrandModal | any;
17
+ responseData?: Brand[] | any[];
18
+ index?: number;
19
+ edit?: boolean;
20
+ delete?: boolean;
21
+ customClass?: string;
22
+ isLoading: boolean;
23
+ nextComponentColor?: BackgroundModel;
24
+ content?: FeaturedBrandContentModal;
25
+ styles?: FeaturedBrandStylesModel;
26
+ constructor(platformId: Object, router: Router, restService: RestService, _eventService: EventsService);
27
+ ngOnInit(): Promise<void>;
28
+ allBrands: any[];
29
+ getAllBrands(): void;
30
+ allBrandsSelected(): void;
31
+ getBrandsById(): void;
32
+ dropBrand(startIdx: number, endIdx: number): void;
33
+ getSliceParameters(): number[];
34
+ redirectToListPage(brand: any): void;
35
+ editSection(): void;
36
+ get getDirection(): "ROW" | "COLUMN" | undefined;
37
+ get stylesLayout(): LayOutModel;
38
+ get isMobile(): boolean;
39
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedBrandComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedBrandComponent, "simpo-featured-brand", 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; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
42
+ }
@@ -0,0 +1,25 @@
1
+ import { InputTextModel, StylesModel } from "../../../styles/style.model";
2
+ import { Corners } from "../../.././styles/index";
3
+ import { Display } from "../featured-products/featured-products.modal";
4
+ export interface FeaturedBrandModal {
5
+ id: string;
6
+ sectionType: string;
7
+ sectionName: string;
8
+ content: FeaturedBrandContentModal;
9
+ styles: FeaturedBrandStylesModel;
10
+ }
11
+ export interface FeaturedBrandContentModal {
12
+ inputText: InputTextModel[];
13
+ collectionId?: string;
14
+ collectionIds?: string[];
15
+ display: Display;
16
+ brandsIds: string[];
17
+ }
18
+ export interface FeaturedBrandStylesModel extends StylesModel {
19
+ maximumProduct: number;
20
+ direction: "ROW" | "COLUMN";
21
+ containerHeight: number;
22
+ containerWidth: number;
23
+ corners: Corners;
24
+ componentStyle: string;
25
+ }
@@ -42,6 +42,7 @@ export declare class EventsService implements OnInit {
42
42
  categoryProductList: EventEmitter<string>;
43
43
  collectionsListEvent: EventEmitter<string[]>;
44
44
  categoryListEvent: EventEmitter<string>;
45
+ brandListEvent: EventEmitter<string>;
45
46
  activateSmartSearch: EventEmitter<boolean>;
46
47
  showLoadingScreen: EventEmitter<boolean>;
47
48
  environmentType: EventEmitter<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.984",
3
+ "version": "3.6.986",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -53,6 +53,7 @@ export * from './lib/sections/testimonial-masonry/testimonial-masonry.component'
53
53
  export * from './lib/sections/testimonial-masonry/testimonial-masonry.model';
54
54
  export * from './lib/ecommerce/sections/featured-products/featured-products.component';
55
55
  export * from './lib/ecommerce/sections/featured-category/featured-category.component';
56
+ export * from './lib/ecommerce/sections/featured-brand/featured-brand.component';
56
57
  export * from './lib/ecommerce/sections/product-desc/product-desc.component';
57
58
  export * from './lib/ecommerce/sections/product-list/product-list.component';
58
59
  export * from './lib/ecommerce/sections/cart/cart.component';
Binary file