@meetelise/chat 1.76.0 → 1.77.0
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.
- package/dist/src/WebComponent/SchedulerV2/itinerary-editor.d.ts +23 -2
- package/dist/src/WebComponent/SchedulerV2/scheduler-popover.d.ts +18 -1
- package/package.json +1 -1
- package/public/dist/index.js +451 -309
- package/src/WebComponent/SchedulerV2/itinerary-editor.ts +256 -68
- package/src/WebComponent/SchedulerV2/scheduler-popover.ts +100 -4
- package/src/tourSchedulerV2Booking.test.ts +110 -14
|
@@ -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
|
-
/**
|
|
73
|
-
|
|
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;
|