simpo-component-library 1.4.256 → 1.4.257

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ export declare class BackgroundDirective implements OnChanges {
11
11
  constructor(el: ElementRef, eventService: EventsService);
12
12
  ngOnDestroy(): void;
13
13
  ngOnChanges(change: SimpleChanges): void;
14
- getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
14
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundDirective, never>;
16
16
  static ɵdir: i0.ɵɵDirectiveDeclaration<BackgroundDirective, "[simpoBackground]", never, { "simpoBackground": { "alias": "simpoBackground"; "required": false; }; "scrollValue": { "alias": "scrollValue"; "required": false; }; }, {}, never, never, true, never>;
17
17
  }
@@ -15,7 +15,7 @@ export declare class ButtonDirectiveDirective implements OnChanges {
15
15
  applyButtonStyleChanges(): void;
16
16
  applyButtonType(style: ButtonStyleModel, color: string): void;
17
17
  applyButtonShape(style: ButtonStyleModel): void;
18
- getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
18
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
19
19
  buttonStyleSubscription?: Subscription;
20
20
  buttonStyleChangeCheck(): void;
21
21
  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(): "#ffffff" | "#000000" | "#ffffff;";
15
+ getTextColor(): "#000000" | "#ffffff" | "#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
  }
@@ -46,6 +46,8 @@ export declare class AddressComponent implements OnInit, OnChanges {
46
46
  onAutocompleteSelected(result: any): void;
47
47
  addressSelected(index: number): void;
48
48
  updateAddress(): void;
49
+ validateMobile(event: KeyboardEvent): void;
50
+ validateName(event: KeyboardEvent): void;
49
51
  get isEmailValid(): boolean;
50
52
  static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
51
53
  static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isCart": { "alias": "isCart"; "required": false; }; }, { "selectedAddress": "selectedAddress"; }, never, never, true, never>;
@@ -23,8 +23,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
23
23
  get stylesLayout(): LayOutModel;
24
24
  get getBlurValue(): OverlayValue | undefined;
25
25
  get getBackgroundColor(): BackgroundModel;
26
- get getBackgroundOpacity(): "0" | "0.2" | "0.3" | "0.5" | "0.7";
27
- opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
26
+ get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "0";
27
+ opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
28
28
  editSection(): void;
29
29
  static ɵfac: i0.ɵɵFactoryDeclaration<BannerCarouselComponent, never>;
30
30
  static ɵcmp: i0.ɵɵComponentDeclaration<BannerCarouselComponent, "simpo-banner-carousel", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
@@ -2,7 +2,7 @@ import { OnInit, ElementRef } from '@angular/core';
2
2
  import { LayOutModel, PositionLayoutModal } from '../../styles/style.model';
3
3
  import BaseSection from '../BaseSection';
4
4
  import { EventsService } from './../../services/events.service';
5
- import { BannerSectionModel } from './carousel-banner.model';
5
+ import { BannerSectionModel, CarouselBannerContentModel, CarouselBannerStyelsModel } from './carousel-banner.model';
6
6
  import { OverlayValue } from "../../styles/index";
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class CarouselBannerComponent extends BaseSection implements OnInit {
@@ -10,18 +10,20 @@ export declare class CarouselBannerComponent extends BaseSection implements OnIn
10
10
  carouselElement1: ElementRef;
11
11
  data?: BannerSectionModel;
12
12
  index?: number;
13
+ content?: CarouselBannerContentModel;
13
14
  edit?: boolean;
14
15
  delete?: boolean;
16
+ styles?: CarouselBannerStyelsModel;
15
17
  currentIndex: number;
16
18
  selectSlide(index: number): void;
17
19
  constructor(_eventService: EventsService);
18
20
  ngOnInit(): void;
19
- stylesLayout(item: any): LayOutModel;
21
+ get stylesLayout(): LayOutModel;
20
22
  get getJustifyContent(): string;
21
- canMergeNavbar(item: any): any;
22
- isBorderlessImage(item: any): any;
23
- getPositionLayout(item: any): PositionLayoutModal;
24
- opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
23
+ get canMergeNavbar(): boolean | undefined;
24
+ get isBorderlessImage(): boolean | undefined;
25
+ get getPositionLayout(): PositionLayoutModal;
26
+ opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
25
27
  editSection(): void;
26
28
  static ɵfac: i0.ɵɵFactoryDeclaration<CarouselBannerComponent, never>;
27
29
  static ɵcmp: i0.ɵɵComponentDeclaration<CarouselBannerComponent, "simpo-carousel-banner", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
@@ -1,39 +1,54 @@
1
- import { ActionModel, BannerStylesModel, Image, InputTextModel, ListItemModal } from './../../styles/style.model';
1
+ import { ActionModel, AnimationModel, BackgroundModel, BorderModel, Image, ImageStyle, InputTextModel, ListItemModal, PositionLayoutModal, TextSize } from './../../styles/style.model';
2
+ import { Corners, AlignContent } from "./../../styles/index";
3
+ import { ALIGN, FIT, SPACING_TYPE, BANNER_TRANSITION } from './../../styles/types';
2
4
  export interface BannerSectionModel {
3
5
  id: string;
4
6
  sectionType: string;
5
7
  sectionName: string;
6
- listBanners: [singleBannerModel];
7
- styles: stylesModel;
8
+ content: CarouselBannerContentModel;
9
+ styles: CarouselBannerStyelsModel;
8
10
  }
9
- export interface ImageModel extends Image {
10
- showImage: boolean;
11
- }
12
- export interface stylesModel {
13
- bannerAnimation: {
14
- label: string;
15
- value: string;
16
- types: [];
17
- };
18
- }
19
- export interface textModel {
20
- value: string;
11
+ export interface CarouselBannerContentModel {
12
+ listItem: ListItemModal<BannerItemModel>;
21
13
  }
22
- export interface BannerContentModel {
14
+ export interface BannerItemModel {
15
+ id: string;
23
16
  inputText: InputTextModel[];
24
17
  image: ImageModel;
25
- listItem: ListItemModal<BannerListItem>;
18
+ additionalData: AdditionalData[];
19
+ action: ActionModel;
20
+ styles: BannerItemStylesModel;
26
21
  }
27
- export interface BannerListItem {
28
- inputText: InputTextModel[];
22
+ export interface BannerItemStylesModel {
23
+ contentAlignment: AlignContent;
24
+ background: BackgroundModel;
25
+ border: BorderModel;
26
+ image: ImageStyle;
27
+ corners: Corners;
29
28
  }
30
- export interface singleBannerModel {
31
- sectionName: string;
32
- sectionType: string;
33
- id: string;
34
- content: BannerContentModel;
35
- styles: BannerStylesModel;
36
- action: ActionModel;
29
+ export interface AdditionalData {
30
+ content: string;
31
+ }
32
+ export interface ImageModel extends Image {
33
+ showImage: boolean;
34
+ }
35
+ export interface CarouselBannerStyelsModel {
36
+ layout: CarouselBannerLayoutModel;
37
+ borderLessImage: boolean;
38
+ positionLayout: PositionLayoutModal;
39
+ animation: AnimationModel;
40
+ textSize: TextSize;
41
+ merge?: boolean;
42
+ transition: BANNER_TRANSITION;
43
+ }
44
+ export interface CarouselBannerLayoutModel {
45
+ fit: FIT;
46
+ spacing: SpacingModel;
47
+ align: ALIGN;
48
+ }
49
+ export interface SpacingModel {
50
+ top: SPACING_TYPE;
51
+ bottom: SPACING_TYPE;
37
52
  }
38
53
  export interface actionsModel {
39
54
  label: string;
@@ -15,7 +15,7 @@ export declare class PricingSectionComponent extends BaseSection {
15
15
  style?: PricingSectionStylesModel;
16
16
  constructor(_eventService: EventsService);
17
17
  ngOnInit(): void;
18
- getTextColor(): "#ffffff" | "#000000";
18
+ getTextColor(): "#000000" | "#ffffff";
19
19
  get headingSpace(): SPACING;
20
20
  editSection(): void;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
@@ -17,3 +17,4 @@ export type SOCIAL_ICON_TYPE = 'solid' | 'outline';
17
17
  export type SITE_NAME_LOGo = 'custom' | 'same as header';
18
18
  export type INPUT_FIELDS_TYPE = "text" | "number" | "desc" | "password" | "checkbox" | "option" | "money" | "rating" | "dropdown" | "address" | "email";
19
19
  export type MAP_STYLE = 'Streets' | 'Outdoors' | 'Light' | 'Dark' | 'Satellite' | 'Satellite_street' | 'navigation_day' | 'navigation_night';
20
+ export type BANNER_TRANSITION = 'Horizontal' | 'Animated';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.4.256",
3
+ "version": "1.4.257",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file
Binary file
Binary file
Binary file
Binary file