simpo-component-library 3.6.985 → 3.6.987

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.
Files changed (22) hide show
  1. package/esm2022/lib/ecommerce/sections/brands-with-image-background-columns/brands-with-image-background-columns.component.mjs +35 -0
  2. package/esm2022/lib/ecommerce/sections/featured-brand/featured-brand.component.mjs +168 -0
  3. package/esm2022/lib/ecommerce/sections/featured-brand/featured-brand.modal.mjs +2 -0
  4. package/esm2022/lib/sections/appointment-form/appointment-booking/appointment-booking/appointment-booking.component.mjs +3 -3
  5. package/esm2022/lib/services/events.service.mjs +2 -1
  6. package/esm2022/public-api.mjs +2 -1
  7. package/fesm2022/simpo-component-library.mjs +174 -3
  8. package/fesm2022/simpo-component-library.mjs.map +1 -1
  9. package/lib/components/input-fields/input-fields.component.d.ts +1 -1
  10. package/lib/ecommerce/sections/brands-with-image-background-columns/brands-with-image-background-columns.component.d.ts +17 -0
  11. package/lib/ecommerce/sections/featured-brand/featured-brand.component.d.ts +42 -0
  12. package/lib/ecommerce/sections/featured-brand/featured-brand.modal.d.ts +25 -0
  13. package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +1 -1
  14. package/lib/ecommerce/sections/featured-category/featured-collection.component.d.ts +1 -1
  15. package/lib/ecommerce/sections/new-collection/new-collection.component.d.ts +1 -1
  16. package/lib/sections/image-grid-hotspot/image-grid-hotspot.component.d.ts +1 -1
  17. package/lib/sections/image-grid-section/image-grid-section.component.d.ts +1 -1
  18. package/lib/services/events.service.d.ts +1 -0
  19. package/package.json +1 -1
  20. package/public-api.d.ts +1 -0
  21. package/simpo-component-library-3.6.987.tgz +0 -0
  22. package/simpo-component-library-3.6.985.tgz +0 -0
@@ -13,7 +13,7 @@ export declare class InputFieldsComponent implements OnChanges {
13
13
  constructor(elementRef: ElementRef);
14
14
  ngOnChanges(changes: SimpleChanges): void;
15
15
  handleMoneyInput(event: any): void;
16
- get getTextColor(): "#000" | "#FFF";
16
+ get getTextColor(): "#FFF" | "#000";
17
17
  interpolateColor(color1: string, color2: string, factor: number): string;
18
18
  padZero(str: string, length: number): string;
19
19
  generateColorBasedOnNumber(number: number): string;
@@ -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
+ }
@@ -37,7 +37,7 @@ export declare class FeaturedCategoryComponent extends BaseSection {
37
37
  get getDirection(): "ROW" | "COLUMN" | undefined;
38
38
  get stylesLayout(): LayOutModel;
39
39
  get isMobile(): boolean;
40
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
40
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
41
41
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCategoryComponent, never>;
42
42
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCategoryComponent, "simpo-featured-category", 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>;
43
43
  }
@@ -32,7 +32,7 @@ export declare class FeaturedCollectionComponent extends BaseSection {
32
32
  get getDirection(): "ROW" | "COLUMN" | undefined;
33
33
  get isMobile(): boolean;
34
34
  editSection(): void;
35
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
35
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
36
36
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCollectionComponent, never>;
37
37
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCollectionComponent, "simpo-featured-collection", 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>;
38
38
  }
@@ -33,7 +33,7 @@ export declare class NewCollectionComponent extends BaseSection {
33
33
  get isMobile(): boolean;
34
34
  editSection(): void;
35
35
  getColor(color: any): "#000000" | "#ffffff";
36
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
36
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
37
37
  static ɵfac: i0.ɵɵFactoryDeclaration<NewCollectionComponent, never>;
38
38
  static ɵcmp: i0.ɵɵComponentDeclaration<NewCollectionComponent, "simpo-new-collection", 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>;
39
39
  }
@@ -23,7 +23,7 @@ export declare class ImageGridHotspotComponent extends BaseSection {
23
23
  get headingSpace(): SPACING;
24
24
  editSection(): void;
25
25
  getLength(): number;
26
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
26
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
27
27
  private get scrollStep();
28
28
  scrollRight(): void;
29
29
  isOverflowing: boolean;
@@ -23,7 +23,7 @@ export declare class ImageGridSectionComponent extends BaseSection {
23
23
  get headingSpace(): SPACING;
24
24
  editSection(): void;
25
25
  getLength(): number;
26
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
26
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
27
27
  private get scrollStep();
28
28
  scrollRight(): void;
29
29
  isOverflowing: boolean;
@@ -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.985",
3
+ "version": "3.6.987",
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