simpo-component-library 3.6.995 → 3.6.998

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.
@@ -1,4 +1,4 @@
1
- import { OnInit } from '@angular/core';
1
+ import { ElementRef, OnInit } from '@angular/core';
2
2
  import { MessageService } from 'primeng/api';
3
3
  import { RestService } from '../../services/rest.service';
4
4
  import { StorageServiceService } from '../../services/storage.service';
@@ -56,6 +56,15 @@ export declare class MyBookingsComponent implements OnInit {
56
56
  private readonly storageService;
57
57
  private readonly messageService;
58
58
  constructor(restService: RestService, storageService: StorageServiceService, messageService: MessageService);
59
+ data: any;
60
+ styles: any;
61
+ /** Same contrast algorithm as ColorDirective (directive/color.directive.ts) - reimplemented as
62
+ * a pure getter rather than reusing that directive directly, since its [simpoColor] only ever
63
+ * *sets* a computed color and never clears it, which would leave a stale color stuck on a
64
+ * chip after it toggles from active back to inactive. Every accent-colored element here is
65
+ * either always-on (never toggles) or driven by this same getter, so there's exactly one
66
+ * definition of "what text color goes on the accent color" in this file. */
67
+ get contrastColor(): string;
59
68
  currentTab: 'LIST' | 'DETAIL';
60
69
  profTab: 'upcoming' | 'past';
61
70
  loading: boolean;
@@ -69,13 +78,13 @@ export declare class MyBookingsComponent implements OnInit {
69
78
  policyDetails: string;
70
79
  } | null;
71
80
  rescheduleCutoffHours: number;
81
+ reschDayStripRef?: ElementRef<HTMLDivElement>;
72
82
  reschedulePanelOpen: boolean;
73
83
  reschDays: {
74
84
  iso: string;
75
85
  dow: string;
76
86
  num: string;
77
87
  }[];
78
- reschWeekStart: number;
79
88
  reschSelectedIso: string;
80
89
  reschSelectedTime: string;
81
90
  reschSlots: string[];
@@ -112,8 +121,10 @@ export declare class MyBookingsComponent implements OnInit {
112
121
  openReschedulePanel(): void;
113
122
  closeReschedulePanel(): void;
114
123
  private buildReschDayStrip;
115
- reschPrevWeek(): void;
116
- reschNextWeek(): void;
124
+ /** Mouse users have no swipe/trackpad gesture for the horizontally-scrolling day strip - give
125
+ * them explicit prev/next arrows instead of relying on shift+wheel (matches the admin side's
126
+ * RescheduleAppointmentComponent#scrollDays). */
127
+ scrollReschDays(direction: number): void;
117
128
  selectReschDay(day: {
118
129
  iso: string;
119
130
  }): void;
@@ -123,6 +134,6 @@ export declare class MyBookingsComponent implements OnInit {
123
134
  confirmReschedule(): void;
124
135
  cancelBooking(): void;
125
136
  static ɵfac: i0.ɵɵFactoryDeclaration<MyBookingsComponent, never>;
126
- static ɵcmp: i0.ɵɵComponentDeclaration<MyBookingsComponent, "simpo-my-bookings", never, {}, {}, never, never, true, never>;
137
+ static ɵcmp: i0.ɵɵComponentDeclaration<MyBookingsComponent, "simpo-my-bookings", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
127
138
  }
128
139
  export {};
@@ -130,6 +130,7 @@ export declare class AppointmentBookingComponent extends BaseSection implements
130
130
  getAllServices(): void;
131
131
  locationData: any[];
132
132
  getAllLocations(): void;
133
+ cameFromStaffListing: boolean;
133
134
  goToDateSelection(): void;
134
135
  staffSearchQuery: string;
135
136
  get filteredStaff(): any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.995",
3
+ "version": "3.6.998",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file