simpo-component-library 1.4.256 → 1.4.260

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +18 -5
  2. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +3 -3
  3. package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +3 -3
  4. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +3 -3
  5. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +3 -3
  6. package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +6 -3
  7. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +3 -3
  8. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +3 -3
  9. package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +3 -3
  10. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +5 -6
  11. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +4 -4
  12. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +3 -3
  13. package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +12 -12
  14. package/esm2022/lib/sections/carousel-banner/carousel-banner.model.mjs +1 -1
  15. package/esm2022/lib/styles/types.mjs +1 -1
  16. package/fesm2022/simpo-component-library.mjs +56 -41
  17. package/fesm2022/simpo-component-library.mjs.map +1 -1
  18. package/lib/ecommerce/sections/address/address.component.d.ts +2 -0
  19. package/lib/ecommerce/sections/order-details/order-details.component.d.ts +1 -0
  20. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +7 -5
  21. package/lib/sections/carousel-banner/carousel-banner.model.d.ts +41 -26
  22. package/lib/styles/types.d.ts +1 -0
  23. package/package.json +1 -1
  24. package/simpo-component-library-1.4.257.tgz +0 -0
  25. package/simpo-component-library-1.4.258.tgz +0 -0
  26. package/simpo-component-library-1.4.260.tgz +0 -0
  27. package/simpo-component-library-1.4.250.tgz +0 -0
  28. package/simpo-component-library-1.4.251.tgz +0 -0
  29. package/simpo-component-library-1.4.252.tgz +0 -0
  30. package/simpo-component-library-1.4.255.tgz +0 -0
  31. package/simpo-component-library-1.4.256.tgz +0 -0
@@ -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>;
@@ -25,6 +25,7 @@ export declare class OrderDetailsComponent implements OnInit {
25
25
  private convertHEX;
26
26
  get currency(): string;
27
27
  get canCancelOrder(): boolean;
28
+ get orderAddress(): string;
28
29
  static ɵfac: i0.ɵɵFactoryDeclaration<OrderDetailsComponent, never>;
29
30
  static ɵcmp: i0.ɵɵComponentDeclaration<OrderDetailsComponent, "simpo-order-details", 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; }; "orderDetailData": { "alias": "orderDetailData"; "required": false; }; }, { "goBackEmitter": "goBackEmitter"; }, never, never, true, never>;
30
31
  }
@@ -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,17 +10,19 @@ 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;
23
+ get canMergeNavbar(): boolean | undefined;
24
+ get isBorderlessImage(): boolean | undefined;
25
+ get getPositionLayout(): PositionLayoutModal;
24
26
  opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
25
27
  editSection(): void;
26
28
  static ɵfac: i0.ɵɵFactoryDeclaration<CarouselBannerComponent, 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;
@@ -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.260",
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