@meetelise/chat 1.72.0 → 1.73.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/Scheduler/tour-scheduler.d.ts +7 -0
- package/dist/src/fetchFloorplanOptions.d.ts +10 -0
- package/package.json +1 -1
- package/public/dist/index.js +311 -306
- package/src/WebComponent/Scheduler/tour-scheduler.ts +69 -27
- package/src/WebComponent/me-select.ts +1 -3
- package/src/fetchFloorplanOptions.ts +38 -0
- package/src/meSelectMenuWidth.test.ts +51 -0
- package/src/tourSchedulerFloorplanPreference.test.ts +208 -0
|
@@ -9,6 +9,7 @@ import { TourAvailabilityResponse, TourAvailabilityResponseRankOrderedSupportedT
|
|
|
9
9
|
import { MESelect } from "../me-select";
|
|
10
10
|
import { LabeledOption } from "../../fetchBuildingInfo";
|
|
11
11
|
import { LayoutOption } from "../../fetchBuildingWebchatView";
|
|
12
|
+
import { FloorplanOption } from "../../fetchFloorplanOptions";
|
|
12
13
|
import type { BrokerReferral } from "../brokerReferral";
|
|
13
14
|
export declare class TourScheduler extends LitElement {
|
|
14
15
|
connectedCallback(): void;
|
|
@@ -86,11 +87,15 @@ export declare class TourScheduler extends LitElement {
|
|
|
86
87
|
emailInput: HTMLInputElement;
|
|
87
88
|
selectedLeadSource: MESelect;
|
|
88
89
|
selectedLayoutEl?: MESelect;
|
|
90
|
+
selectedFloorplanEl?: MESelect;
|
|
89
91
|
selectedUnitEl?: MESelect;
|
|
90
92
|
firstNameInputValue: string;
|
|
91
93
|
lastNameInputValue: string;
|
|
92
94
|
leadSourceInputValue: string;
|
|
93
95
|
selectedLayoutValue: string;
|
|
96
|
+
/** Filled when the building is on the WEBCHAT_FLOORPLAN_PREFERENCE switch; the floor plan dropdown then replaces the bedroom one. */
|
|
97
|
+
floorplanOptions: FloorplanOption[];
|
|
98
|
+
selectedFloorplanName: string;
|
|
94
99
|
selectedUnitValue: string;
|
|
95
100
|
private units;
|
|
96
101
|
private allowOccupiedUnitTours;
|
|
@@ -169,6 +174,8 @@ export declare class TourScheduler extends LitElement {
|
|
|
169
174
|
* picked before the broker switch was turned on isn't sent.
|
|
170
175
|
*/
|
|
171
176
|
showLeadSourceSelect(): boolean;
|
|
177
|
+
/** Sets the canonical layout ("studio", "1br", ...) picked from the bedroom or floor plan dropdown. */
|
|
178
|
+
private selectLayout;
|
|
172
179
|
userInfoAndLayoutMenu(): TemplateResult;
|
|
173
180
|
confirmationMessage(): TemplateResult;
|
|
174
181
|
/** The broker isn't the one touring: the client gets the confirmation email. */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare type FloorplanOption = {
|
|
2
|
+
name: string;
|
|
3
|
+
bedrooms: number | null;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* The building's unit-editor floor plans that have an active unit. Empty when the building is off the
|
|
7
|
+
* WEBCHAT_FLOORPLAN_PREFERENCE switch, or when they can't be read.
|
|
8
|
+
*/
|
|
9
|
+
declare const fetchFloorplanOptions: (buildingSlug: string) => Promise<FloorplanOption[]>;
|
|
10
|
+
export default fetchFloorplanOptions;
|