simpo-component-library 3.6.484 → 3.6.486

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 (32) hide show
  1. package/esm2022/lib/directive/background-directive.mjs +31 -36
  2. package/esm2022/lib/elements/media-selector/media-selector.component.mjs +3 -3
  3. package/esm2022/lib/elements/text-editor/text-editor.component.mjs +38 -165
  4. package/esm2022/lib/sections/appointment-form/appointment-booking/appointment-booking/appointment-booking.component.mjs +409 -0
  5. package/esm2022/lib/sections/appointment-form/appointment-form.component.mjs +27 -28
  6. package/esm2022/lib/sections/contact-us/contact-us.component.mjs +3 -3
  7. package/esm2022/lib/sections/logo-gallery/logo-gallery.component.mjs +3 -3
  8. package/esm2022/lib/sections/new-testimonials/new-testimonials.component.mjs +3 -3
  9. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +3 -3
  10. package/esm2022/public-api.mjs +2 -1
  11. package/fesm2022/simpo-component-library.mjs +564 -304
  12. package/fesm2022/simpo-component-library.mjs.map +1 -1
  13. package/lib/directive/background-directive.d.ts +0 -1
  14. package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -1
  15. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +1 -1
  16. package/lib/ecommerce/sections/schemes/schemes.component.d.ts +1 -1
  17. package/lib/elements/pricing-s1/pricing-s1.component.d.ts +1 -1
  18. package/lib/elements/text-editor/text-editor.component.d.ts +0 -10
  19. package/lib/sections/appointment-form/appointment-booking/appointment-booking/appointment-booking.component.d.ts +69 -0
  20. package/lib/sections/appointment-form/appointment-form.component.d.ts +3 -1
  21. package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
  22. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +1 -1
  23. package/lib/sections/contact-us/contact-us.component.d.ts +1 -1
  24. package/lib/sections/faq-section/faq-section.component.d.ts +1 -1
  25. package/lib/sections/image-section/image-section.component.d.ts +2 -2
  26. package/lib/sections/logo-showcase/logo-showcase.component.d.ts +2 -2
  27. package/lib/sections/new-testimonials/new-testimonials.component.d.ts +1 -1
  28. package/lib/sections/pricing-section/pricing-section.component.d.ts +2 -2
  29. package/package.json +1 -1
  30. package/public-api.d.ts +1 -0
  31. package/simpo-component-library-3.6.486.tgz +0 -0
  32. package/simpo-component-library-3.6.484.tgz +0 -0
@@ -8,7 +8,6 @@ export declare class BackgroundDirective implements OnChanges {
8
8
  simpoBackground?: BackgroundModel;
9
9
  scrollValue?: number;
10
10
  eventEmmitter: any;
11
- videoElementId: string;
12
11
  constructor(el: ElementRef, eventService: EventsService);
13
12
  ngOnDestroy(): void;
14
13
  ngOnChanges(change: SimpleChanges): void;
@@ -64,7 +64,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
64
64
  validateNumber(event: KeyboardEvent): void;
65
65
  validateOTP(event: KeyboardEvent): void;
66
66
  checkStrength(): void;
67
- getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
67
+ getStrengthColor(index: number): "yellow" | "tomato" | "#d3d3d3ba" | "orange" | "lightgreen";
68
68
  emailDebounceTimer: any;
69
69
  onEmailChange(): void;
70
70
  emailCheck: boolean;
@@ -114,7 +114,7 @@ export declare class ProductDescComponent extends BaseSection {
114
114
  getTextColor(color: any): "#000000" | "#ffffff";
115
115
  languages: string[];
116
116
  selectedLang: string;
117
- getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
117
+ getClass(map: any): "col-4" | "col-6" | "col-3" | "width-max";
118
118
  onFindInStore(id: string): void;
119
119
  onBookAppointment(): void;
120
120
  isDetails: boolean;
@@ -21,7 +21,7 @@ export declare class SchemesComponent extends BaseSection {
21
21
  get stylesLayout(): LayOutModel;
22
22
  get spacingLayout(): SpacingModel;
23
23
  getParentClass(): "" | "overflow-scroll flex-nowrap";
24
- getClass(index: number): "col-12" | "col-6 mb-2" | "col-12 mb-2" | "col-6";
24
+ getClass(index: number): "col-12" | "col-6" | "col-6 mb-2" | "col-12 mb-2";
25
25
  showSchemeDetails(scheme: any): void;
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<SchemesComponent, never>;
27
27
  static ɵcmp: i0.ɵɵComponentDeclaration<SchemesComponent, "simpo-schemes", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
@@ -15,7 +15,7 @@ export declare class PricingS1Component extends BaseSection {
15
15
  editSection(): void;
16
16
  getButtonId(): string;
17
17
  redirectTo(): void;
18
- getClass(): "col-12" | "col-4" | "col-5";
18
+ getClass(): "col-4" | "col-12" | "col-5";
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<PricingS1Component, never>;
20
20
  static ɵcmp: i0.ɵɵComponentDeclaration<PricingS1Component, "simpo-pricing-s1", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
21
21
  }
@@ -10,7 +10,6 @@ export declare class TextEditorComponent {
10
10
  colorPicker: ElementRef;
11
11
  parentElement: ElementRef;
12
12
  suggestion: ElementRef;
13
- private lastGradientSpan;
14
13
  value: string;
15
14
  valueChange: EventEmitter<string>;
16
15
  editable: boolean;
@@ -28,18 +27,9 @@ export declare class TextEditorComponent {
28
27
  constructor(editorService: ElementServiceService, platformId: Object, ngZone: NgZone);
29
28
  ngOnInit(): void;
30
29
  ngOnDestroy(): void;
31
- private selectRange;
32
- private markSelection;
33
- private restoreSelectionFromMarkers;
34
30
  showToolbar(event: MouseEvent): void;
35
- rememberSelection(e: MouseEvent): void;
36
- private getActiveRange;
37
- setColorMode(mode: 'SOLID' | 'GRADIENT'): void;
38
- private wrapRangeWithGradient;
39
- private unwrapGradientInRange;
40
31
  hideToolbar(event: MouseEvent): void;
41
32
  formatText(command: string, value?: string): void;
42
- updateFSforOL(): void;
43
33
  private setStyleWithCSS;
44
34
  private toLegacyFontStep;
45
35
  private normalizeFontSizeToCss;
@@ -0,0 +1,69 @@
1
+ import { RestService } from '@simpo-ui/services/rest.service';
2
+ import { MatSnackBar } from '@angular/material/snack-bar';
3
+ import { MatDialog } from '@angular/material/dialog';
4
+ import { EventsService } from '../../../../services/events.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class AppointmentBookingComponent {
7
+ private restService;
8
+ private _eventService;
9
+ private readonly matDialog;
10
+ private snackBar;
11
+ constructor(restService: RestService, _eventService: EventsService, matDialog: MatDialog, snackBar: MatSnackBar);
12
+ ngOnInit(): void;
13
+ closeOnOutsideClick(): void;
14
+ accessedTabs: {
15
+ serviceListing: boolean;
16
+ locationListing: boolean;
17
+ staffListing: boolean;
18
+ };
19
+ businessName: string;
20
+ businessId: string;
21
+ activeButton: boolean;
22
+ selectedTab: string;
23
+ barWidth: string;
24
+ showCancellationPolicy: boolean;
25
+ showReducingPolicy: boolean;
26
+ selectedService: any;
27
+ selectedLocation: any;
28
+ Object: ObjectConstructor;
29
+ showCalendar: boolean;
30
+ selectedDate: Date | null;
31
+ selectedDateStr: string;
32
+ userDetails: {
33
+ name: string;
34
+ email: string;
35
+ mobileNumber: string;
36
+ };
37
+ toggleCalendar(event?: Event): void;
38
+ onDateSelected(date: Date): void;
39
+ private formatDate;
40
+ selectService(service: any): void;
41
+ selectLocation(location: any): void;
42
+ selectedStaff: any;
43
+ selectStaff(staff: any): void;
44
+ nextStep(): void;
45
+ previousStep(): void;
46
+ serviceData: any[];
47
+ getAllServices(): void;
48
+ locationData: any[];
49
+ getAllLocations(): void;
50
+ staffPayload: any;
51
+ staffData: any[];
52
+ getAllStaff(): void;
53
+ convertTo24Hour(time: string): string;
54
+ slotsPayload: any;
55
+ locationTiming: any[];
56
+ loader: boolean;
57
+ getAvailableSlots(): void;
58
+ selectedTime: any;
59
+ selectTimeSlot(time: any): void;
60
+ checkRequiredValues(): void;
61
+ appointmentPayload: any;
62
+ checkPayment(): void;
63
+ apiStatus: boolean;
64
+ createAppointment(): void;
65
+ paymentBookingAppointment(): void;
66
+ goBack(): void;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppointmentBookingComponent, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppointmentBookingComponent, "simpo-appointment-booking", never, {}, {}, never, never, true, never>;
69
+ }
@@ -8,6 +8,7 @@ import { MatDialog } from '@angular/material/dialog';
8
8
  import { RestService } from '../../services/rest.service';
9
9
  import { MatSnackBar } from '@angular/material/snack-bar';
10
10
  import { StorageLike } from '../../services/storage-like';
11
+ import { Router } from '@angular/router';
11
12
  import * as i0 from "@angular/core";
12
13
  export declare class AppointmentFormComponent extends BaseSection implements OnInit {
13
14
  private _eventService;
@@ -15,6 +16,7 @@ export declare class AppointmentFormComponent extends BaseSection implements OnI
15
16
  private appointmentService;
16
17
  private snackbar;
17
18
  private datePipe;
19
+ private readonly router;
18
20
  private storage;
19
21
  data?: BannerSectionModel;
20
22
  index?: number;
@@ -24,7 +26,7 @@ export declare class AppointmentFormComponent extends BaseSection implements OnI
24
26
  customClass?: string;
25
27
  nextComponentColor?: BackgroundModel;
26
28
  styles?: BannerStylesModel;
27
- constructor(_eventService: EventsService, matDialog: MatDialog, appointmentService: RestService, snackbar: MatSnackBar, datePipe: DatePipe, storage: StorageLike);
29
+ constructor(_eventService: EventsService, matDialog: MatDialog, appointmentService: RestService, snackbar: MatSnackBar, datePipe: DatePipe, router: Router, storage: StorageLike);
28
30
  screenWidth: number;
29
31
  getScreenSize(): void;
30
32
  businessId: any;
@@ -25,8 +25,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
25
25
  get stylesLayout(): LayOutModel;
26
26
  get getBlurValue(): "NONE" | "LIGHT" | "MODERATE" | "STRONG" | "VERY_STRONG" | undefined;
27
27
  get getBackgroundColor(): BackgroundModel;
28
- get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "0";
29
- opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
28
+ get getBackgroundOpacity(): "0" | "0.7" | "0.5" | "0.3" | "0.2";
29
+ opacityValue(value: OverlayValue): "0" | "0.7" | "0.5" | "0.3" | "0.2";
30
30
  editSection(): void;
31
31
  getScreenSize(): number;
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<BannerCarouselComponent, never>;
@@ -25,7 +25,7 @@ export declare class CarouselBannerComponent extends BaseSection implements OnIn
25
25
  get canMergeNavbar(): boolean | undefined;
26
26
  get isBorderlessImage(): boolean | undefined;
27
27
  get getPositionLayout(): PositionLayoutModal;
28
- opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
28
+ opacityValue(value: OverlayValue): "0" | "0.7" | "0.5" | "0.3" | "0.2";
29
29
  editSection(): void;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<CarouselBannerComponent, never>;
31
31
  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; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
@@ -29,7 +29,7 @@ export declare class ContactUsComponent extends BaseSection implements OnInit {
29
29
  canShowContactField(field: any): any;
30
30
  getCardStyle(): {};
31
31
  getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
32
- getAlignment(): "justify-content-start" | "justify-content-end" | "justify-content-center";
32
+ getAlignment(): "justify-content-start" | "justify-content-center" | "justify-content-end";
33
33
  static ɵfac: i0.ɵɵFactoryDeclaration<ContactUsComponent, never>;
34
34
  static ɵcmp: i0.ɵɵComponentDeclaration<ContactUsComponent, "simpo-contact-us", never, { "data": { "alias": "data"; "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>;
35
35
  }
@@ -23,7 +23,7 @@ export declare class FaqSectionComponent extends BaseSection {
23
23
  toggleContent(idx: number): void;
24
24
  editSection(): void;
25
25
  getScreenSize(): void;
26
- getLayout(): "justify-content-start" | "justify-content-end" | "justify-content-center";
26
+ getLayout(): "justify-content-start" | "justify-content-center" | "justify-content-end";
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<FaqSectionComponent, never>;
28
28
  static ɵcmp: i0.ɵɵComponentDeclaration<FaqSectionComponent, "simpo-faq-section", never, { "data": { "alias": "data"; "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>;
29
29
  }
@@ -20,9 +20,9 @@ export declare class ImageSectionComponent extends BaseSection {
20
20
  constructor(_eventService: EventsService);
21
21
  ngOnInit(): void;
22
22
  get canMergeNavbar(): boolean | undefined;
23
- get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "1";
23
+ get getBackgroundOpacity(): "1" | "0.7" | "0.5" | "0.3" | "0.2";
24
24
  get stylesLayout(): LayOutModel;
25
- opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "1";
25
+ opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.3" | "0.2";
26
26
  editSection(): void;
27
27
  redirectTo(): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageSectionComponent, never>;
@@ -23,8 +23,8 @@ export declare class LogoShowcaseComponent extends BaseSection implements OnInit
23
23
  constructor(_eventService: EventsService);
24
24
  ngOnInit(): void;
25
25
  get stylesLayout(): LayOutModel;
26
- get animationDuration(): "6s" | "5s" | "4s" | "3s" | logoSpeed.Normal;
27
- get animationDirection(): "reverse" | "normal" | logoDirection.Left;
26
+ get animationDuration(): "3s" | "4s" | logoSpeed.Normal | "6s" | "5s";
27
+ get animationDirection(): logoDirection.Left | "reverse" | "normal";
28
28
  get isMobile(): boolean;
29
29
  get getPositionLayout(): PositionLayoutModal;
30
30
  screenWidth: number;
@@ -24,7 +24,7 @@ export declare class NewTestimonialsComponent extends BaseSection {
24
24
  idx: number;
25
25
  getImageData(): import("../../styles/style.model").Image | undefined;
26
26
  getImageUrl(): string | undefined;
27
- getImageType(): "Video" | "Image";
27
+ getImageType(): "Image" | "Video";
28
28
  getLength(): number;
29
29
  editSection(): void;
30
30
  stopPropagation(event: any): void;
@@ -23,8 +23,8 @@ export declare class PricingSectionComponent extends BaseSection {
23
23
  getButtonId(): string;
24
24
  editSection(): void;
25
25
  redirectTo(): void;
26
- getClass(): "col-12" | "col-6" | "col-4" | "col-3";
27
- getAlignment(): "justify-content-start" | "justify-content-end" | "justify-content-center";
26
+ getClass(): "col-4" | "col-12" | "col-6" | "col-3";
27
+ getAlignment(): "justify-content-start" | "justify-content-center" | "justify-content-end";
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
29
29
  static ɵcmp: i0.ɵɵComponentDeclaration<PricingSectionComponent, "simpo-pricing-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.484",
3
+ "version": "3.6.486",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -66,6 +66,7 @@ export * from './lib/ecommerce/sections/store-page/store-page.component';
66
66
  export * from './lib/ecommerce/sections/enrollment-form/enrollment-form.component';
67
67
  export * from './lib/ecommerce/sections/returns-calculator/returns-calculator.component';
68
68
  export * from './lib/ecommerce/sections/book-appointment/book-appointment.component';
69
+ export * from './lib/sections/appointment-form/appointment-booking/appointment-booking/appointment-booking.component';
69
70
  export * from './lib/services/events.service';
70
71
  export * from './lib/services/endUser.service';
71
72
  export * from './lib/services/sanitizeHtml';
Binary file