@meetelise/chat 1.65.0 → 1.67.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/booking-confirmation.d.ts +33 -0
- package/dist/src/WebComponent/SchedulerV2/community-picker.d.ts +22 -17
- package/dist/src/WebComponent/SchedulerV2/contact-form.d.ts +49 -0
- package/dist/src/WebComponent/SchedulerV2/itinerary-editor.d.ts +72 -0
- package/dist/src/WebComponent/SchedulerV2/itineraryStopStyles.d.ts +6 -0
- package/dist/src/WebComponent/SchedulerV2/tourItineraryApi.d.ts +9 -0
- package/dist/src/WebComponent/SchedulerV2/tourTimes.d.ts +5 -2
- package/dist/src/WebComponent/icons/GripIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/PencilIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/TrashIcon.d.ts +2 -0
- package/package.json +1 -1
- package/src/WebComponent/SchedulerV2/booking-confirmation.ts +205 -0
- package/src/WebComponent/SchedulerV2/community-picker.ts +110 -126
- package/src/WebComponent/SchedulerV2/contact-form.ts +269 -0
- package/src/WebComponent/SchedulerV2/itinerary-editor.ts +617 -0
- package/src/WebComponent/SchedulerV2/itineraryStopStyles.ts +45 -0
- package/src/WebComponent/SchedulerV2/tourItineraryApi.ts +20 -0
- package/src/WebComponent/SchedulerV2/tourTimes.ts +26 -5
- package/src/WebComponent/icons/GripIcon.ts +18 -0
- package/src/WebComponent/icons/PencilIcon.ts +21 -0
- package/src/WebComponent/icons/TrashIcon.ts +19 -0
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import format from "date-fns/format";
|
|
2
|
+
import type { SVGTemplateResult } from "lit";
|
|
2
3
|
import type { TourTypeId } from "./tourItineraryApi";
|
|
4
|
+
import { TourSelfGuidedIcon } from "../icons/TourSelfGuidedIcon";
|
|
5
|
+
import { TourVirtuallyIcon } from "../icons/TourVirtuallyIcon";
|
|
6
|
+
import { TourWithAgentIcon } from "../icons/TourWithAgentIcon";
|
|
3
7
|
|
|
4
8
|
/*
|
|
5
9
|
* The API sends each time as ISO 8601 in its building's own time zone
|
|
@@ -66,13 +70,30 @@ export const formatLongDate = (date: string): string =>
|
|
|
66
70
|
/** A Date as the "YYYY-MM-DD" the API uses. */
|
|
67
71
|
export const toIsoDate = (date: Date): string => format(date, "yyyy-MM-dd");
|
|
68
72
|
|
|
69
|
-
|
|
73
|
+
/** The Central Agent design's names for each tour type, with today's icons. */
|
|
74
|
+
export const TOUR_TYPES: Record<
|
|
70
75
|
TourTypeId,
|
|
71
|
-
{
|
|
76
|
+
{
|
|
77
|
+
heading: string;
|
|
78
|
+
subtitle: string;
|
|
79
|
+
icon: (color: string) => SVGTemplateResult;
|
|
80
|
+
}
|
|
72
81
|
> = {
|
|
73
|
-
"escorted-tour": {
|
|
74
|
-
|
|
75
|
-
|
|
82
|
+
"escorted-tour": {
|
|
83
|
+
heading: "Escorted Tour",
|
|
84
|
+
subtitle: "With an agent",
|
|
85
|
+
icon: TourWithAgentIcon,
|
|
86
|
+
},
|
|
87
|
+
"live-virtual-tour": {
|
|
88
|
+
heading: "Virtual Tour",
|
|
89
|
+
subtitle: "Over video",
|
|
90
|
+
icon: TourVirtuallyIcon,
|
|
91
|
+
},
|
|
92
|
+
"self-guided-tour": {
|
|
93
|
+
heading: "Self-Guided Tour",
|
|
94
|
+
subtitle: "On your own",
|
|
95
|
+
icon: TourSelfGuidedIcon,
|
|
96
|
+
},
|
|
76
97
|
};
|
|
77
98
|
|
|
78
99
|
export const TOUR_TYPE_ORDER: TourTypeId[] = [
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { svg, SVGTemplateResult } from "lit";
|
|
2
|
+
|
|
3
|
+
export const GripIcon = (color = "currentColor"): SVGTemplateResult => svg`<svg
|
|
4
|
+
aria-hidden="true"
|
|
5
|
+
focusable="false"
|
|
6
|
+
width="16"
|
|
7
|
+
height="16"
|
|
8
|
+
viewBox="0 0 24 24"
|
|
9
|
+
fill="${color}"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
>
|
|
12
|
+
<circle cx="9" cy="6" r="1.5" />
|
|
13
|
+
<circle cx="15" cy="6" r="1.5" />
|
|
14
|
+
<circle cx="9" cy="12" r="1.5" />
|
|
15
|
+
<circle cx="15" cy="12" r="1.5" />
|
|
16
|
+
<circle cx="9" cy="18" r="1.5" />
|
|
17
|
+
<circle cx="15" cy="18" r="1.5" />
|
|
18
|
+
</svg>`;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { svg, SVGTemplateResult } from "lit";
|
|
2
|
+
|
|
3
|
+
export const PencilIcon = (
|
|
4
|
+
color = "currentColor"
|
|
5
|
+
): SVGTemplateResult => svg`<svg
|
|
6
|
+
aria-hidden="true"
|
|
7
|
+
focusable="false"
|
|
8
|
+
width="16"
|
|
9
|
+
height="16"
|
|
10
|
+
viewBox="0 0 24 24"
|
|
11
|
+
fill="none"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
>
|
|
14
|
+
<path
|
|
15
|
+
d="M4 20h4L19 9l-4-4L4 16v4z M13.5 6.5l4 4"
|
|
16
|
+
stroke="${color}"
|
|
17
|
+
stroke-width="1.75"
|
|
18
|
+
stroke-linecap="round"
|
|
19
|
+
stroke-linejoin="round"
|
|
20
|
+
/>
|
|
21
|
+
</svg>`;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { svg, SVGTemplateResult } from "lit";
|
|
2
|
+
|
|
3
|
+
export const TrashIcon = (color = "currentColor"): SVGTemplateResult => svg`<svg
|
|
4
|
+
aria-hidden="true"
|
|
5
|
+
focusable="false"
|
|
6
|
+
width="16"
|
|
7
|
+
height="16"
|
|
8
|
+
viewBox="0 0 24 24"
|
|
9
|
+
fill="none"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
d="M4 7h16 M9 7V4h6v3 M6 7l1 13h10l1-13 M10 11v6 M14 11v6"
|
|
14
|
+
stroke="${color}"
|
|
15
|
+
stroke-width="1.75"
|
|
16
|
+
stroke-linecap="round"
|
|
17
|
+
stroke-linejoin="round"
|
|
18
|
+
/>
|
|
19
|
+
</svg>`;
|