simpo-component-library 3.6.951 → 3.6.953

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.
@@ -8,6 +8,7 @@ import { EventsService } from '../../../services/events.service';
8
8
  import { StorageServiceService } from '../../../services/storage.service';
9
9
  import { BookingProductCartService } from '../../../services/booking-product-cart.service';
10
10
  import { AddressDetails, User } from '../../styles/user.modal';
11
+ import { BackgroundModel } from '../../../styles/style.model';
11
12
  import * as i0 from "@angular/core";
12
13
  type ProductVisitMode = 'HOME_VISIT' | 'VIDEO_CALL';
13
14
  /**
@@ -35,6 +36,15 @@ export declare class BookAppointmentComponent extends BaseSection implements OnI
35
36
  edit?: boolean;
36
37
  delete?: boolean;
37
38
  customClass?: string;
39
+ /** Editor-configurable background - falls back to undefined (letting the component's own CSS
40
+ * defaults show through unchanged) for existing pages saved before this section supported
41
+ * custom colors. */
42
+ get backgroundInfo(): BackgroundModel | undefined;
43
+ /** Overrides this component's own --color-accent-gradient CSS variable (scoped to its :host,
44
+ * see book-appointment.component.css) when a business has picked a custom accent color - null
45
+ * when unset, so the [style.--color-accent-gradient] binding removes the inline override
46
+ * entirely and the CSS default shows through, rather than forcing an empty value. */
47
+ get accentColor(): string | null;
38
48
  constructor(route: ActivatedRoute, router: Router, restService: RestService, _eventService: EventsService, messageService: MessageService, storageService: StorageServiceService, bookingProductCartService: BookingProductCartService, matDialog: MatDialog);
39
49
  mode: ProductVisitMode;
40
50
  step: 'form' | 'review' | 'done';
@@ -149,8 +149,14 @@ export declare class ProductDescComponent extends BaseSection {
149
149
  addVideoCallCurrent(): void;
150
150
  continueVideoCallBooking(): void;
151
151
  closeModal(): void;
152
- getButtonId(index: number): string;
153
- getButtonStyle(index: number): import("../../../styles/style.model").ButtonStyleModel | undefined;
152
+ /** Lazily creates a ButtonModel at this index if the section's saved content predates that
153
+ * button existing (e.g. "Schedule a Video Call"/"Try at HOME" were added to this template after
154
+ * some businesses already had this section on their page - their saved `action.buttons` array
155
+ * is too short). Mutates the array in place so it becomes permanent once the page is next
156
+ * saved, fixing the slot for good - not just a display workaround. */
157
+ private ensureButton;
158
+ getButtonId(index: number, defaultLabel?: string, defaultBackground?: string): string;
159
+ getButtonStyle(index: number, defaultLabel?: string, defaultBackground?: string): import("../../../styles/style.model").ButtonStyleModel | undefined;
154
160
  getRatings(noofratings: any): any;
155
161
  /**
156
162
  * "Try at Home" feeds the Home Visit booking flow (BookingGroup.productLines, submitted
@@ -9,6 +9,7 @@ import { MessageService } from 'primeng/api';
9
9
  import { BookingProductCartService } from '../../../../services/booking-product-cart.service';
10
10
  import { StorageServiceService } from '../../../../services/storage.service';
11
11
  import { AddressDetails, User } from '../../../../ecommerce/styles/user.modal';
12
+ import BaseSection from '../../../BaseSection';
12
13
  import * as i0 from "@angular/core";
13
14
  type BookingMode = 'STORE_VISIT' | 'HOME_VISIT' | 'VIDEO_CALL';
14
15
  interface ResolvedLine {
@@ -29,7 +30,7 @@ interface ResolvedLine {
29
30
  selectedSlot?: any;
30
31
  slotsLoading?: boolean;
31
32
  }
32
- export declare class AppointmentBookingComponent implements OnInit {
33
+ export declare class AppointmentBookingComponent extends BaseSection implements OnInit {
33
34
  private restService;
34
35
  private _eventService;
35
36
  private readonly router;
@@ -57,6 +58,15 @@ export declare class AppointmentBookingComponent implements OnInit {
57
58
  phoneNumber?: string;
58
59
  };
59
60
  styles?: BannerStylesModel;
61
+ /** Editor-configurable background - falls back to undefined (letting the component's own CSS
62
+ * defaults show through unchanged) for existing pages saved before this section supported
63
+ * custom colors. */
64
+ get backgroundInfo(): BackgroundModel | undefined;
65
+ /** Overrides this component's own --color-accent-gradient CSS variable (scoped to its :host,
66
+ * see appointment-booking.component.css) when a business has picked a custom accent color -
67
+ * null when unset, so the [style.--color-accent-gradient] binding removes the inline override
68
+ * entirely and the CSS default shows through, rather than forcing an empty value. */
69
+ get accentColor(): string | null;
60
70
  ngOnInit(): void;
61
71
  isAdminContext: boolean;
62
72
  resetWizard(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.951",
3
+ "version": "3.6.953",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file