simpo-component-library 3.6.478 → 3.6.481

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 (33) hide show
  1. package/esm2022/lib/elements/image-editor/image-editor.component.mjs +3 -3
  2. package/esm2022/lib/elements/media-selector/media-selector.component.mjs +3 -3
  3. package/esm2022/lib/elements/pricing-s1/pricing-s1.component.mjs +3 -3
  4. package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +3 -3
  5. package/esm2022/lib/sections/appointment-form/appointment-form.component.mjs +300 -107
  6. package/esm2022/lib/sections/contact-us/contact-us.component.mjs +5 -4
  7. package/esm2022/lib/sections/faq-section/faq-section.component.mjs +3 -3
  8. package/esm2022/lib/sections/logo-gallery/logo-gallery.component.mjs +7 -5
  9. package/esm2022/lib/sections/logo-gallery/logo-gallery.modal.mjs +1 -1
  10. package/esm2022/lib/sections/new-services/new-services.component.mjs +12 -5
  11. package/esm2022/lib/sections/new-testimonials/new-testimonials.component.mjs +76 -17
  12. package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +3 -3
  13. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +3 -3
  14. package/esm2022/lib/services/rest.service.mjs +43 -27
  15. package/fesm2022/simpo-component-library.mjs +445 -171
  16. package/fesm2022/simpo-component-library.mjs.map +1 -1
  17. package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -1
  18. package/lib/ecommerce/sections/schemes/schemes.component.d.ts +1 -1
  19. package/lib/elements/link-editor/link-editor.component.d.ts +1 -1
  20. package/lib/elements/pricing-s1/pricing-s1.component.d.ts +1 -1
  21. package/lib/sections/appointment-form/appointment-form.component.d.ts +29 -6
  22. package/lib/sections/banner-carousel/banner-carousel.component.d.ts +3 -3
  23. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +1 -1
  24. package/lib/sections/image-section/image-section.component.d.ts +2 -2
  25. package/lib/sections/logo-gallery/logo-gallery.modal.d.ts +3 -0
  26. package/lib/sections/new-services/new-services.component.d.ts +2 -2
  27. package/lib/sections/new-testimonials/new-testimonials.component.d.ts +11 -3
  28. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  29. package/lib/services/rest.service.d.ts +6 -0
  30. package/package.json +1 -1
  31. package/simpo-component-library-3.6.481.tgz +0 -0
  32. package/src/lib/styles/global-styles.css +38 -1
  33. package/simpo-component-library-3.6.478.tgz +0 -0
@@ -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): "yellow" | "tomato" | "#d3d3d3ba" | "orange" | "lightgreen";
67
+ getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
68
68
  emailDebounceTimer: any;
69
69
  onEmailChange(): void;
70
70
  emailCheck: 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" | "col-6 mb-2" | "col-12 mb-2";
24
+ getClass(index: number): "col-6" | "col-12" | "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>;
@@ -31,7 +31,7 @@ export declare class LinkEditorComponent {
31
31
  changeButtonStyle(): void;
32
32
  getContrastTextColor(backgroundHex: any): void;
33
33
  backgroundType: string[];
34
- setBorderRadius(): "0px" | "99px" | "7px";
34
+ setBorderRadius(): "0px" | "7px" | "99px";
35
35
  setBorder(): string;
36
36
  setColor(): any;
37
37
  setBackground(): any;
@@ -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
  }
@@ -1,17 +1,21 @@
1
1
  import { OnInit, TemplateRef } from '@angular/core';
2
2
  import { BackgroundModel, BannerStylesModel, LayOutModel, PositionLayoutModal } from '../../styles/style.model';
3
+ import { DatePipe } from '@angular/common';
3
4
  import { EventsService } from './../../services/events.service';
4
5
  import BaseSection from '../BaseSection';
5
6
  import { BannerContentModel, BannerSectionModel } from './appointment-form.model';
6
7
  import { MatDialog } from '@angular/material/dialog';
7
8
  import { RestService } from '../../services/rest.service';
8
9
  import { MatSnackBar } from '@angular/material/snack-bar';
10
+ import { StorageLike } from '../../services/storage-like';
9
11
  import * as i0 from "@angular/core";
10
12
  export declare class AppointmentFormComponent extends BaseSection implements OnInit {
11
13
  private _eventService;
12
14
  private matDialog;
13
15
  private appointmentService;
14
16
  private snackbar;
17
+ private datePipe;
18
+ private storage;
15
19
  data?: BannerSectionModel;
16
20
  index?: number;
17
21
  content?: BannerContentModel;
@@ -20,11 +24,16 @@ export declare class AppointmentFormComponent extends BaseSection implements OnI
20
24
  customClass?: string;
21
25
  nextComponentColor?: BackgroundModel;
22
26
  styles?: BannerStylesModel;
23
- constructor(_eventService: EventsService, matDialog: MatDialog, appointmentService: RestService, snackbar: MatSnackBar);
27
+ constructor(_eventService: EventsService, matDialog: MatDialog, appointmentService: RestService, snackbar: MatSnackBar, datePipe: DatePipe, storage: StorageLike);
24
28
  screenWidth: number;
25
29
  getScreenSize(): void;
26
30
  businessId: any;
27
31
  businessName: any;
32
+ storeList: any;
33
+ serviceList: any[];
34
+ staffList: any[];
35
+ servicePayload: any;
36
+ staffPayload: any;
28
37
  ngOnInit(): void;
29
38
  get stylesLayout(): LayOutModel;
30
39
  get getJustifyContent(): string;
@@ -33,6 +42,14 @@ export declare class AppointmentFormComponent extends BaseSection implements OnI
33
42
  get getPositionLayout(): PositionLayoutModal;
34
43
  editSection(): void;
35
44
  stopPropagation(event: any): void;
45
+ allStoreList: any;
46
+ getAllStores(): void;
47
+ allServiceList: any;
48
+ getAllService(): void;
49
+ getAllStoreStaff(): void;
50
+ slotsPayload: any;
51
+ getBookingSlots(): void;
52
+ generateTimeSlotsV2(start: string, end: string, interval: number): string[];
36
53
  opendailogbox(template: TemplateRef<HTMLDivElement>): void;
37
54
  closeDialog(): void;
38
55
  isMoved: boolean;
@@ -42,11 +59,11 @@ export declare class AppointmentFormComponent extends BaseSection implements OnI
42
59
  toTitleCase(str: string): string;
43
60
  serviceData: any;
44
61
  staffData: any;
45
- changeLocation(): void;
62
+ getFilteredServices(): void;
63
+ getFilteredLocation(): void;
46
64
  updateLocationTiming(): void;
47
65
  getDay(): string;
48
66
  getAllServices(): void;
49
- getAllStaff(): void;
50
67
  minDate: Date;
51
68
  bookedSlots: Set<unknown>;
52
69
  locationTiming: string[];
@@ -54,8 +71,13 @@ export declare class AppointmentFormComponent extends BaseSection implements OnI
54
71
  startIndex: any;
55
72
  endIndex: any;
56
73
  disableTimeSlots(staffWorkingHours: any): void;
57
- getAvailableSlots(): void;
74
+ loader: boolean;
75
+ checkPayment(): void;
76
+ paymentBookingAppointment(): void;
77
+ bookAppointment(): void;
78
+ convertTo24Hour(time: string): string;
58
79
  getBookedSlots(res: any): void;
80
+ minTime: string;
59
81
  getTimeSlotsBetween(start: Date, end: Date, intervalMinutes: number): string[];
60
82
  isTimeSlotDisabled(time: string, index: number): boolean;
61
83
  generateTimeSlots(startTime: string, endTime: string): string[];
@@ -64,7 +86,7 @@ export declare class AppointmentFormComponent extends BaseSection implements OnI
64
86
  private parseTime;
65
87
  private padZero1;
66
88
  locationData: any;
67
- selectedLocation: string;
89
+ selectedLocation: any;
68
90
  getAllLocations(): void;
69
91
  formatDate(date: Date): string;
70
92
  formattedDate: any;
@@ -76,7 +98,7 @@ export declare class AppointmentFormComponent extends BaseSection implements OnI
76
98
  filterTimeSlots(): void;
77
99
  dateFilter: (date: Date | null) => boolean;
78
100
  selectedServices: any;
79
- selectedStaff: string;
101
+ selectedStaff: any;
80
102
  CreateData: any;
81
103
  prepareCreateData(): void;
82
104
  prepareLocationData(): void;
@@ -87,6 +109,7 @@ export declare class AppointmentFormComponent extends BaseSection implements OnI
87
109
  createAppointment(): void;
88
110
  reFilterData(): void;
89
111
  isFormValid(): boolean;
112
+ getAccentColor(): string;
90
113
  static ɵfac: i0.ɵɵFactoryDeclaration<AppointmentFormComponent, never>;
91
114
  static ɵcmp: i0.ɵɵComponentDeclaration<AppointmentFormComponent, "simpo-appointment-form", 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>;
92
115
  }
@@ -23,10 +23,10 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
23
23
  constructor(_eventService: EventsService);
24
24
  ngOnInit(): void;
25
25
  get stylesLayout(): LayOutModel;
26
- get getBlurValue(): "STRONG" | "LIGHT" | "MODERATE" | "VERY_STRONG" | "NONE" | undefined;
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>;
@@ -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>;
@@ -16,6 +16,9 @@ export interface LogoGalleryStylesModel extends StylesModel {
16
16
  size: CARD_SIZE;
17
17
  }
18
18
  export interface LogoGalleryContentModal {
19
+ display: {
20
+ showHoverEffect: boolean;
21
+ };
19
22
  inputText: [InputTextModel];
20
23
  listItem: ListItemModal<ImageGridItemModel>;
21
24
  }
@@ -1,5 +1,5 @@
1
1
  import { NewServicesContentModel, NewServicesModel, NewServicesStylesModel } from './new-services.model';
2
- import { BackgroundModel, LayOutModel } from '../../styles/style.model';
2
+ import { BackgroundModel, LayOutModel, Image } from '../../styles/style.model';
3
3
  import BaseSection from '../BaseSection';
4
4
  import { EventsService } from '../../services/events.service';
5
5
  import * as i0 from "@angular/core";
@@ -18,7 +18,7 @@ export declare class NewServicesComponent extends BaseSection {
18
18
  selectedImage: string | undefined;
19
19
  idx: number;
20
20
  index: number;
21
- getImageData(): import("../../styles/style.model").Image | undefined;
21
+ getImageData(): Image | undefined;
22
22
  getImageUrl(): string | undefined;
23
23
  editSection(): void;
24
24
  stopPropagation(event: any): void;
@@ -1,3 +1,4 @@
1
+ import { ElementRef, QueryList, Renderer2 } from '@angular/core';
1
2
  import { BackgroundModel, LayOutModel } from '../../styles/style.model';
2
3
  import BaseSection from '../BaseSection';
3
4
  import { EventsService } from '../../services/events.service';
@@ -5,27 +6,34 @@ import { NewTestimonialsContentModel, NewTestimonialsModel, NewTestimonialsStyle
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class NewTestimonialsComponent extends BaseSection {
7
8
  private _eventService;
9
+ private renderer;
8
10
  data?: NewTestimonialsModel;
9
11
  edit?: boolean;
10
12
  delete?: boolean;
11
13
  customClass?: string;
12
14
  nextComponentColor?: BackgroundModel;
13
15
  index?: number;
16
+ carouselInner: ElementRef<HTMLDivElement>;
17
+ carouselItems: QueryList<ElementRef<HTMLDivElement>>;
14
18
  content?: NewTestimonialsContentModel;
15
19
  styles?: NewTestimonialsStyleModel;
16
- constructor(_eventService: EventsService);
20
+ constructor(_eventService: EventsService, renderer: Renderer2);
17
21
  ngOnInit(): void;
18
- ngOnChanges(): void;
19
22
  ngAfterViewInit(): void;
20
23
  get stylesLayout(): LayOutModel;
21
24
  idx: number;
22
25
  getImageData(): import("../../styles/style.model").Image | undefined;
23
26
  getImageUrl(): string | undefined;
24
- getImageType(): "Image" | "Video";
27
+ getImageType(): "Video" | "Image";
28
+ getLength(): number;
25
29
  editSection(): void;
26
30
  stopPropagation(event: any): void;
27
31
  screenWidth: any;
28
32
  getScreenSize(): void;
33
+ carouselHeightPx: number | null;
34
+ private resizeTimeout;
35
+ onWindowResize(): void;
36
+ private updateCarouselHeight;
29
37
  static ɵfac: i0.ɵɵFactoryDeclaration<NewTestimonialsComponent, never>;
30
38
  static ɵcmp: i0.ɵɵComponentDeclaration<NewTestimonialsComponent, "simpo-new-testimonials", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
31
39
  }
@@ -23,7 +23,7 @@ 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";
26
+ getClass(): "col-6" | "col-4" | "col-3" | "col-12";
27
27
  getAlignment(): "justify-content-start" | "justify-content-end" | "justify-content-center";
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>;
@@ -19,6 +19,7 @@ export declare class RestService implements OnDestroy {
19
19
  businessDetails: any;
20
20
  subIndustryName: any;
21
21
  isJewellery: boolean;
22
+ APPOINTMENT_URL: string;
22
23
  constructor(http: HttpClient, BASE_URL: string, ECOMMERCE_URL: string, CMIS_URL: string, cookieService: CookieService, storage: StorageLike, PASSBOOK_URL: string);
23
24
  orraBaseUrl: string;
24
25
  getBusinessDetails(): void;
@@ -92,6 +93,8 @@ export declare class RestService implements OnDestroy {
92
93
  regenerateText(request: any): Observable<Object>;
93
94
  getCategoriesHeaderData(): Observable<Object>;
94
95
  getAllStores(payload: any): Observable<Object>;
96
+ getAllAppointmentService(payload: any): Observable<Object>;
97
+ getAllStaff(payload: any): Observable<Object>;
95
98
  getStoreById(storeId: string): Observable<Object>;
96
99
  postNewsLetter(email: any): Observable<Object>;
97
100
  addReviewToProduct(payload: any): Observable<Object>;
@@ -111,6 +114,9 @@ export declare class RestService implements OnDestroy {
111
114
  redeemScheme(scheme: string, cartId: any, action: boolean): Observable<Object>;
112
115
  getReviewsByProductId(productId: string, pageNumber: number): Observable<Object>;
113
116
  getFieldsToDisplay(fieldsList: any[]): any;
117
+ getBookingSlots(payload: any): Observable<Object>;
118
+ bookAppointmentV2(payload: any): Observable<Object>;
119
+ paymentForAppointment(payload: any): Observable<Object>;
114
120
  generateToken(bId: any, userId: any): Observable<Object>;
115
121
  getAllEnrolledSchemes(payload: any): Observable<Object>;
116
122
  enrollScheme(payload: any, checkCharges: boolean): Observable<Object>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.478",
3
+ "version": "3.6.481",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
@@ -14,12 +14,14 @@
14
14
  box-shadow: none !important;
15
15
  animation: slideInLeft 0.5s ease-in-out forwards;
16
16
  }
17
+
17
18
  .dropdown-menu {
18
19
  .dropdown-item {
19
20
  border-bottom: unset !important;
20
21
  font-family: var(--website-font-family) !important;
21
22
  }
22
- .dropdown-item:active{
23
+
24
+ .dropdown-item:active {
23
25
  background-color: transparent !important;
24
26
  }
25
27
  }
@@ -259,6 +261,11 @@
259
261
  margin-left: 0px;
260
262
  margin-top: 0px;
261
263
  margin-right: 0px;
264
+ border-radius: 18px;
265
+
266
+ .mat-mdc-dialog-surface {
267
+ border-radius: 18px !important;
268
+ }
262
269
  }
263
270
 
264
271
  .trim-text {
@@ -270,4 +277,34 @@
270
277
  -webkit-box-orient: vertical;
271
278
  text-overflow: ellipsis !important;
272
279
  /* word-break: break-all; */
280
+ }
281
+
282
+ .name-mobile {
283
+ .mat-mdc-form-field-infix {
284
+ input {
285
+ font-family: var(--website-font-family) !important;
286
+ }
287
+ }
288
+
289
+ .mat-mdc-select-min-line {
290
+ font-family: var(--website-font-family) !important;
291
+ }
292
+
293
+ .mat-mdc-select-placeholder {
294
+ font-family: var(--website-font-family) !important;
295
+ }
296
+ }
297
+
298
+ .mat-mdc-option {
299
+ .mdc-list-item__primary-text {
300
+ font-family: var(--website-font-family) !important;
301
+ }
302
+ }
303
+
304
+ .full-message-section {
305
+ .mat-mdc-form-field-infix {
306
+ input {
307
+ font-family: var(--website-font-family) !important;
308
+ }
309
+ }
273
310
  }
Binary file