@meetelise/chat 1.76.0 → 1.77.1

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.
@@ -46,7 +46,10 @@ export declare class ItineraryEditor extends LitElement {
46
46
  primaryColor: string;
47
47
  foregroundColorOnPrimaryBackgroundColor: string;
48
48
  private get offersKnown();
49
+ /** The stop whose "Change date & time" panel is open. */
49
50
  private editingTimeFor;
51
+ /** That panel's calendar is open. */
52
+ private stopDateOpen;
50
53
  /** The date field's calendar is open. */
51
54
  private dateOpen;
52
55
  private mobile;
@@ -69,8 +72,26 @@ export declare class ItineraryEditor extends LitElement {
69
72
  private renderTourTypes;
70
73
  /** Today's date picker over `dates`, reporting a picked day other than `date`. */
71
74
  private renderDatePicker;
72
- /** One stop's own day: moving it there makes it a separate tour. */
73
- private renderStopDatePicker;
75
+ /**
76
+ * Closes a calendar when a day is picked, the day already chosen included,
77
+ * which the calendar reports without a date change, and focuses `trigger`.
78
+ * The calendar handles the click first, inside its own shadow root.
79
+ */
80
+ private closeOnDay;
81
+ /**
82
+ * The panel's date field: the stop's own day, which opens the calendar
83
+ * under it. Moving the stop to another day makes it a separate tour.
84
+ */
85
+ private renderStopDateField;
86
+ /** Closes the stop's panel, and puts focus back on its button. */
87
+ private closeStopPanel;
88
+ /**
89
+ * The design's "Change date & time" panel, under the stop's pencil (above
90
+ * it when there isn't room, in place on phones): the stop's date when it
91
+ * has another, then its times. Picking a time closes it.
92
+ */
93
+ private renderStopPanel;
94
+ /** A stop's times; `picked` runs once one is picked, the chosen one included. */
74
95
  private renderTimePicker;
75
96
  private renderLinkPrompt;
76
97
  /**
@@ -1,4 +1,4 @@
1
- import { LitElement, TemplateResult } from "lit";
1
+ import { LitElement, PropertyValues, TemplateResult } from "lit";
2
2
  /**
3
3
  * A trigger and the small panel it opens, for the v2 scheduler's secondary
4
4
  * choices. The panel floats under the trigger with `me-select`'s list surface
@@ -8,6 +8,10 @@ import { LitElement, TemplateResult } from "lit";
8
8
  * `inline` (phones) it opens in place instead, after its siblings in the
9
9
  * parent's flex row, as the filter row always did there.
10
10
  *
11
+ * With `fit`, the panel stays inside the scroller it opens in, as the
12
+ * design's per-stop panel does: above the trigger when there isn't room
13
+ * under it, and moved left when it would run past the right edge.
14
+ *
11
15
  * The parent owns `open`; the element asks for a close with `popover-close`.
12
16
  * Slot the trigger as `slot="trigger"` and the panel's content in the default
13
17
  * slot, so the trigger's `aria-controls` can name an id in the parent's tree.
@@ -15,6 +19,19 @@ import { LitElement, TemplateResult } from "lit";
15
19
  export declare class SchedulerPopover extends LitElement {
16
20
  open: boolean;
17
21
  inline: boolean;
22
+ /** Keep the panel inside its scroller (see above). Off, it always opens below. */
23
+ fit: boolean;
24
+ /** With `fit`, where the open panel sits; null until it has been measured. */
25
+ private placement;
26
+ /** It opens, or a phone turns into a wider screen with it open. */
27
+ private opening;
28
+ protected willUpdate(changed: PropertyValues<this>): void;
29
+ protected updated(changed: PropertyValues<this>): void;
30
+ /**
31
+ * Opens the panel above its trigger only when it fits there and not below:
32
+ * what runs past the scroller's foot can be scrolled to, but not its top.
33
+ */
34
+ private place;
18
35
  connectedCallback(): void;
19
36
  disconnectedCallback(): void;
20
37
  private requestClose;
@@ -138,6 +138,8 @@ export interface BookingContact {
138
138
  phone_e164: string;
139
139
  bedrooms: number[];
140
140
  move_in: string | null;
141
+ /** The budget filter the prospect set, saved as their max budget. */
142
+ max_budget: number | null;
141
143
  notes: string;
142
144
  }
143
145
  /** The attribution /v2/scheduleMe takes today, under the same names. */
@@ -5,6 +5,10 @@ export declare const onMobileChange: (callback: (isMobile: boolean) => void) =>
5
5
  export declare const isTimestampExpired: (timestamp: Date, ttlHours: number) => boolean;
6
6
  export declare const getCookieValue: (name: string) => string | null;
7
7
  export declare const isValidPhoneNumber: (phoneNumber: string) => boolean;
8
+ /**
9
+ * Something@domain.tld, where the top-level domain is two or more letters
10
+ * (any script) or an IDN's punycode form, so a typo such as "x@y.c" is caught.
11
+ */
8
12
  export declare const isValidEmail: (email: string) => boolean;
9
13
  export declare const isContainingEmail: (message: string) => boolean;
10
14
  export declare const sentenceTitleCase: (str: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.76.0",
3
+ "version": "1.77.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/MeetElise/chat-ui#readme",