@meetelise/chat 1.75.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/Scheduler/time-picker.d.ts +6 -0
- package/dist/src/WebComponent/Scheduler/tour-type-option.d.ts +1 -1
- package/dist/src/WebComponent/SchedulerV2/contact-form.d.ts +9 -3
- package/dist/src/WebComponent/SchedulerV2/itinerary-editor.d.ts +38 -3
- package/dist/src/WebComponent/SchedulerV2/itineraryStopStyles.d.ts +1 -2
- package/dist/src/WebComponent/SchedulerV2/scheduler-popover.d.ts +18 -1
- package/dist/src/WebComponent/SchedulerV2/schedulerIcons.d.ts +18 -0
- package/dist/src/WebComponent/SchedulerV2/schedulerV2Styles.d.ts +9 -0
- package/dist/src/WebComponent/SchedulerV2/tour-scheduler-v2.d.ts +13 -1
- package/dist/src/WebComponent/SchedulerV2/tourTimes.d.ts +1 -1
- package/dist/src/WebComponent/actions/international-phone-input.d.ts +7 -0
- package/dist/src/WebComponent/me-select.d.ts +2 -0
- package/package.json +1 -1
- package/public/dist/index.js +2449 -1336
- package/src/WebComponent/Scheduler/date-picker.ts +130 -51
- package/src/WebComponent/Scheduler/time-picker.ts +62 -0
- package/src/WebComponent/Scheduler/tour-type-option.ts +31 -10
- package/src/WebComponent/SchedulerV2/booking-confirmation.ts +42 -38
- package/src/WebComponent/SchedulerV2/community-picker.ts +222 -160
- package/src/WebComponent/SchedulerV2/contact-form.ts +100 -70
- package/src/WebComponent/SchedulerV2/itinerary-editor.ts +498 -168
- package/src/WebComponent/SchedulerV2/itineraryStopStyles.ts +44 -21
- package/src/WebComponent/SchedulerV2/scheduler-popover.ts +105 -9
- package/src/WebComponent/SchedulerV2/schedulerIcons.ts +143 -0
- package/src/WebComponent/SchedulerV2/schedulerV2Styles.ts +347 -0
- package/src/WebComponent/SchedulerV2/tour-scheduler-v2.ts +443 -175
- package/src/WebComponent/SchedulerV2/tourTimes.ts +4 -3
- package/src/WebComponent/actions/action-confirm-button.ts +4 -3
- package/src/WebComponent/actions/international-phone-input.ts +84 -1
- package/src/WebComponent/me-select.ts +74 -0
- package/src/tourSchedulerV2Booking.test.ts +145 -15
|
@@ -3,7 +3,14 @@ import format from "date-fns/format";
|
|
|
3
3
|
import getDate from "date-fns/getDate";
|
|
4
4
|
import getMonth from "date-fns/getMonth";
|
|
5
5
|
import getYear from "date-fns/getYear";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
LitElement,
|
|
8
|
+
html,
|
|
9
|
+
svg,
|
|
10
|
+
TemplateResult,
|
|
11
|
+
css,
|
|
12
|
+
PropertyValues,
|
|
13
|
+
} from "lit";
|
|
7
14
|
import { customElement, property, state } from "lit/decorators.js";
|
|
8
15
|
import { classMap } from "lit/directives/class-map.js";
|
|
9
16
|
import {
|
|
@@ -276,29 +283,74 @@ export class DatePicker extends LitElement {
|
|
|
276
283
|
opacity: 30%;
|
|
277
284
|
}
|
|
278
285
|
|
|
279
|
-
/*
|
|
286
|
+
/*
|
|
287
|
+
* Only with the outlined attribute, which today's scheduler doesn't set:
|
|
288
|
+
* the v2 scheduler's calendar, framed by whatever holds it.
|
|
289
|
+
*/
|
|
290
|
+
:host([outlined]) {
|
|
291
|
+
color: #000000;
|
|
292
|
+
font-family: inherit;
|
|
293
|
+
}
|
|
294
|
+
|
|
280
295
|
:host([outlined]) #calendar {
|
|
281
|
-
background:
|
|
282
|
-
border:
|
|
283
|
-
border-radius:
|
|
284
|
-
max-width: 18rem;
|
|
296
|
+
background: none;
|
|
297
|
+
border: none;
|
|
298
|
+
border-radius: 0;
|
|
285
299
|
min-width: 0;
|
|
286
|
-
padding:
|
|
300
|
+
padding: 0;
|
|
287
301
|
width: 100%;
|
|
288
302
|
}
|
|
289
303
|
|
|
290
|
-
|
|
291
|
-
:
|
|
292
|
-
|
|
293
|
-
|
|
304
|
+
:host([outlined]) #header {
|
|
305
|
+
align-items: center;
|
|
306
|
+
display: flex;
|
|
307
|
+
height: 36px;
|
|
308
|
+
justify-content: space-between;
|
|
309
|
+
margin: 0;
|
|
310
|
+
padding: 0 4px 0 8px;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
:host([outlined]) h2 {
|
|
314
|
+
font-size: 12px;
|
|
315
|
+
font-weight: 400;
|
|
316
|
+
line-height: 16px;
|
|
317
|
+
margin: 0;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
:host([outlined]) #arrows {
|
|
321
|
+
gap: 8px;
|
|
322
|
+
width: auto;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
:host([outlined]) #arrows button {
|
|
326
|
+
color: #212529;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
:host([outlined]) #arrows button:disabled {
|
|
330
|
+
color: #adb5bd;
|
|
331
|
+
opacity: 1;
|
|
294
332
|
}
|
|
295
333
|
|
|
296
334
|
:host([outlined]) #rows {
|
|
297
|
-
gap:
|
|
335
|
+
gap: 0;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
:host([outlined]) .row {
|
|
339
|
+
height: 36px;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
:host([outlined]) .dayInitial {
|
|
343
|
+
color: #6e6e70;
|
|
344
|
+
font-size: 10px;
|
|
345
|
+
line-height: 14px;
|
|
298
346
|
}
|
|
299
347
|
|
|
300
348
|
:host([outlined]) .dayNumber {
|
|
301
|
-
|
|
349
|
+
color: #000000;
|
|
350
|
+
font-family: inherit;
|
|
351
|
+
font-size: 10px;
|
|
352
|
+
height: 36px;
|
|
353
|
+
line-height: 14px;
|
|
302
354
|
}
|
|
303
355
|
|
|
304
356
|
:host([outlined]) .dayNumber:not(:disabled) {
|
|
@@ -306,17 +358,22 @@ export class DatePicker extends LitElement {
|
|
|
306
358
|
z-index: 1;
|
|
307
359
|
}
|
|
308
360
|
|
|
309
|
-
:host([outlined]) .dayNumber:
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
361
|
+
:host([outlined]) .dayNumber:is(.differentMonth, .past, .noAvailabilities) {
|
|
362
|
+
color: #6e6e70;
|
|
363
|
+
opacity: 1;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
:host([outlined]) .dayNumber.today:not(.selected)::after {
|
|
367
|
+
content: none;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
:host([outlined]) .dayNumber.selected::after,
|
|
371
|
+
:host([outlined]) .dayNumber:not(.selected):not(:disabled):hover::after {
|
|
315
372
|
aspect-ratio: 1;
|
|
316
373
|
border: none;
|
|
317
374
|
border-radius: 50%;
|
|
318
375
|
content: "";
|
|
319
|
-
height:
|
|
376
|
+
height: 32px;
|
|
320
377
|
left: 50%;
|
|
321
378
|
position: absolute;
|
|
322
379
|
top: 50%;
|
|
@@ -324,21 +381,25 @@ export class DatePicker extends LitElement {
|
|
|
324
381
|
z-index: -1;
|
|
325
382
|
}
|
|
326
383
|
|
|
327
|
-
:host([outlined]) .dayNumber:not(
|
|
384
|
+
:host([outlined]) .dayNumber:not(.selected):not(:disabled):hover::after {
|
|
328
385
|
background-color: color-mix(
|
|
329
386
|
in srgb,
|
|
330
|
-
var(--primary-color, #
|
|
387
|
+
var(--primary-color, #646987) 7%,
|
|
331
388
|
#ffffff
|
|
332
389
|
);
|
|
333
390
|
}
|
|
334
391
|
|
|
392
|
+
:host([outlined]) .dayNumber:not(.selected):disabled:hover::after {
|
|
393
|
+
content: none;
|
|
394
|
+
}
|
|
395
|
+
|
|
335
396
|
:host([outlined]) .dayNumber.selected::after {
|
|
336
397
|
background-color: var(--primary-color, #202020);
|
|
337
|
-
height: 28px;
|
|
338
398
|
}
|
|
339
399
|
|
|
340
400
|
:host([outlined]) .dayNumber.selected {
|
|
341
401
|
color: var(--on-primary-color, #ffffff);
|
|
402
|
+
font-weight: 500;
|
|
342
403
|
}
|
|
343
404
|
`;
|
|
344
405
|
|
|
@@ -469,36 +530,40 @@ export class DatePicker extends LitElement {
|
|
|
469
530
|
new Date(this.yearShown, this.monthShown, 1)
|
|
470
531
|
)}
|
|
471
532
|
>
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
533
|
+
${this.outlined
|
|
534
|
+
? lineChevron("M15 6l-6 6l6 6")
|
|
535
|
+
: html`<svg
|
|
536
|
+
aria-hidden="true"
|
|
537
|
+
focusable="false"
|
|
538
|
+
width="9"
|
|
539
|
+
height="16"
|
|
540
|
+
viewBox="0 0 9 16"
|
|
541
|
+
fill="none"
|
|
542
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
543
|
+
>
|
|
544
|
+
<path
|
|
545
|
+
d="M8.67727 2.34317L7.26305 0.928955L0.192017 8.00001L7.26308 15.0711L8.6773 13.6569L3.02044 8L8.67727 2.34317Z"
|
|
546
|
+
fill="#83818E"
|
|
547
|
+
/>
|
|
548
|
+
</svg>`}
|
|
486
549
|
</button>
|
|
487
550
|
<button id="forward" type="button" aria-label="Next month">
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
551
|
+
${this.outlined
|
|
552
|
+
? lineChevron("M9 6l6 6l-6 6")
|
|
553
|
+
: html`<svg
|
|
554
|
+
aria-hidden="true"
|
|
555
|
+
focusable="false"
|
|
556
|
+
width="9"
|
|
557
|
+
height="16"
|
|
558
|
+
viewBox="0 0 9 16"
|
|
559
|
+
fill="none"
|
|
560
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
561
|
+
>
|
|
562
|
+
<path
|
|
563
|
+
d="M0.157227 2.34315L1.57144 0.928932L8.64251 8L1.57144 15.0711L0.157227 13.6569L5.81408 8L0.157227 2.34315Z"
|
|
564
|
+
fill="#83818E"
|
|
565
|
+
/>
|
|
566
|
+
</svg>`}
|
|
502
567
|
</button>
|
|
503
568
|
</div>
|
|
504
569
|
</div>
|
|
@@ -531,6 +596,20 @@ export class DatePicker extends LitElement {
|
|
|
531
596
|
}
|
|
532
597
|
}
|
|
533
598
|
|
|
599
|
+
/** The outlined calendar's month arrows: the v2 scheduler's 1px line chevrons. */
|
|
600
|
+
const lineChevron = (d: string) => svg`<svg
|
|
601
|
+
aria-hidden="true"
|
|
602
|
+
focusable="false"
|
|
603
|
+
width="14"
|
|
604
|
+
height="14"
|
|
605
|
+
viewBox="0 0 24 24"
|
|
606
|
+
fill="none"
|
|
607
|
+
stroke="currentColor"
|
|
608
|
+
stroke-width="1"
|
|
609
|
+
stroke-linecap="round"
|
|
610
|
+
stroke-linejoin="round"
|
|
611
|
+
><path vector-effect="non-scaling-stroke" d=${d}></path></svg>`;
|
|
612
|
+
|
|
534
613
|
const chunk = <T>(chunkLength: number, array: T[]) => {
|
|
535
614
|
const chunks = [];
|
|
536
615
|
for (let i = 0; i < array.length; i += chunkLength) {
|
|
@@ -34,6 +34,14 @@ export class TimePicker extends LitElement {
|
|
|
34
34
|
@property({ attribute: true })
|
|
35
35
|
defaultSelectedTime?: TimePickerOption | null = null;
|
|
36
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Tour-scheduler-v2's look: three white, outlined times across, the chosen
|
|
39
|
+
* one tinted with the brand colour. Its heading names the time zone, so the
|
|
40
|
+
* note under the times is left out.
|
|
41
|
+
*/
|
|
42
|
+
@property({ type: Boolean, reflect: true })
|
|
43
|
+
outlined = false;
|
|
44
|
+
|
|
37
45
|
@state()
|
|
38
46
|
private selected?: TimePickerOption | null = this.defaultSelectedTime;
|
|
39
47
|
|
|
@@ -163,6 +171,60 @@ export class TimePicker extends LitElement {
|
|
|
163
171
|
min-width: 80px;
|
|
164
172
|
}
|
|
165
173
|
}
|
|
174
|
+
|
|
175
|
+
/* Only with the outlined attribute, which today's scheduler doesn't set. */
|
|
176
|
+
:host([outlined]) {
|
|
177
|
+
color: #000000;
|
|
178
|
+
font-family: inherit;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
:host([outlined]) #optionContainer {
|
|
182
|
+
display: grid;
|
|
183
|
+
gap: 4px;
|
|
184
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
185
|
+
max-height: none;
|
|
186
|
+
max-width: none;
|
|
187
|
+
overflow: visible;
|
|
188
|
+
width: 100%;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
:host([outlined]) .option {
|
|
192
|
+
background: #ffffff;
|
|
193
|
+
border: none;
|
|
194
|
+
border-radius: 4px;
|
|
195
|
+
box-shadow: inset 0 0 0 1px #dee2e6;
|
|
196
|
+
font-size: 12px;
|
|
197
|
+
height: 32px;
|
|
198
|
+
line-height: 16px;
|
|
199
|
+
min-width: 0;
|
|
200
|
+
padding: 0;
|
|
201
|
+
width: auto;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:host([outlined]) .option:hover {
|
|
205
|
+
box-shadow: inset 0 0 0 1px var(--primary-color, #646987);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:host([outlined]) .option.selected {
|
|
209
|
+
background: color-mix(in srgb, var(--primary-color, #646987) 7%, #ffffff);
|
|
210
|
+
box-shadow: inset 0 0 0 1px
|
|
211
|
+
color-mix(in srgb, var(--primary-color, #646987) 22%, #ffffff);
|
|
212
|
+
color: #000000;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
:host([outlined]) .timezone-display-text {
|
|
216
|
+
display: none;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
:host([outlined]) #noAvailabilityText {
|
|
220
|
+
color: #6e6e70;
|
|
221
|
+
margin-left: 0;
|
|
222
|
+
max-width: none;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
:host([outlined]) #noAvailabilityText p {
|
|
226
|
+
margin: 0;
|
|
227
|
+
}
|
|
166
228
|
`;
|
|
167
229
|
|
|
168
230
|
render(): TemplateResult {
|
|
@@ -13,7 +13,7 @@ export class TourTypeOption extends LitElement {
|
|
|
13
13
|
subtitle = "";
|
|
14
14
|
@property({ type: Boolean })
|
|
15
15
|
selected = false;
|
|
16
|
-
/**
|
|
16
|
+
/** The v2 scheduler's white row with the icon on the left, tinted with the brand colour when selected. */
|
|
17
17
|
@property({ type: Boolean, reflect: true })
|
|
18
18
|
outlined = false;
|
|
19
19
|
@property({ attribute: false })
|
|
@@ -81,13 +81,19 @@ export class TourTypeOption extends LitElement {
|
|
|
81
81
|
font-weight: 400;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
/* Only with the outlined attribute: the v2 scheduler's tour type rows. */
|
|
84
85
|
:host([outlined]) .tour-type-option,
|
|
85
86
|
:host([outlined][selected]) .tour-type-option {
|
|
86
87
|
background: #ffffff;
|
|
87
|
-
border: 1px solid #
|
|
88
|
+
border: 1px solid #dee2e6;
|
|
89
|
+
border-radius: 4px;
|
|
88
90
|
cursor: pointer;
|
|
89
91
|
height: auto;
|
|
90
|
-
padding:
|
|
92
|
+
padding: 7px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:host([outlined]:not([selected])) .tour-type-option:hover {
|
|
96
|
+
background: #f8f9fa;
|
|
91
97
|
}
|
|
92
98
|
|
|
93
99
|
:host([outlined]) .content {
|
|
@@ -99,8 +105,9 @@ export class TourTypeOption extends LitElement {
|
|
|
99
105
|
|
|
100
106
|
:host([outlined]) .icon {
|
|
101
107
|
align-items: center;
|
|
102
|
-
background: #
|
|
103
|
-
border-radius:
|
|
108
|
+
background: #f1f3f5;
|
|
109
|
+
border-radius: 4px;
|
|
110
|
+
color: #000000;
|
|
104
111
|
display: flex;
|
|
105
112
|
flex-shrink: 0;
|
|
106
113
|
height: 40px;
|
|
@@ -108,6 +115,14 @@ export class TourTypeOption extends LitElement {
|
|
|
108
115
|
width: 40px;
|
|
109
116
|
}
|
|
110
117
|
|
|
118
|
+
:host([outlined][selected]) .icon {
|
|
119
|
+
background: color-mix(
|
|
120
|
+
in srgb,
|
|
121
|
+
var(--primary-color, #646987) 12%,
|
|
122
|
+
#ffffff
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
|
|
111
126
|
:host([outlined]) ::slotted(svg) {
|
|
112
127
|
height: 20px;
|
|
113
128
|
width: 20px;
|
|
@@ -115,16 +130,20 @@ export class TourTypeOption extends LitElement {
|
|
|
115
130
|
|
|
116
131
|
:host([outlined]) .text,
|
|
117
132
|
:host([outlined][selected]) .text {
|
|
118
|
-
color: #
|
|
133
|
+
color: #000000;
|
|
134
|
+
font-family: inherit;
|
|
119
135
|
}
|
|
120
136
|
|
|
121
137
|
:host([outlined]) .heading {
|
|
138
|
+
font-size: 12px;
|
|
122
139
|
font-weight: 400;
|
|
140
|
+
line-height: 16px;
|
|
123
141
|
}
|
|
124
142
|
|
|
125
143
|
:host([outlined]) .subtitle {
|
|
126
|
-
color: #
|
|
127
|
-
font-size:
|
|
144
|
+
color: #6e6e70;
|
|
145
|
+
font-size: 10px;
|
|
146
|
+
line-height: 14px;
|
|
128
147
|
}
|
|
129
148
|
`,
|
|
130
149
|
];
|
|
@@ -141,9 +160,11 @@ export class TourTypeOption extends LitElement {
|
|
|
141
160
|
this.outlined
|
|
142
161
|
? {
|
|
143
162
|
background: this.selected
|
|
144
|
-
? `color-mix(in srgb, ${this.primaryColor}
|
|
163
|
+
? `color-mix(in srgb, ${this.primaryColor} 7%, #ffffff)`
|
|
164
|
+
: undefined,
|
|
165
|
+
"border-color": this.selected
|
|
166
|
+
? `color-mix(in srgb, ${this.primaryColor} 22%, #ffffff)`
|
|
145
167
|
: undefined,
|
|
146
|
-
"border-color": this.selected ? this.primaryColor : undefined,
|
|
147
168
|
}
|
|
148
169
|
: { background: this.selected ? this.primaryColor : undefined }
|
|
149
170
|
)}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { css, html, LitElement, TemplateResult } from "lit";
|
|
2
2
|
import { customElement, property } from "lit/decorators.js";
|
|
3
|
-
import { tourSchedulerStyles } from "../Scheduler/tourSchedulerStyles";
|
|
4
|
-
import { InputStyles } from "../actions/InputStyles";
|
|
5
3
|
import { itineraryStopStyles } from "./itineraryStopStyles";
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
4
|
+
import { CheckCircleLineIcon } from "./schedulerIcons";
|
|
5
|
+
import { schedulerV2Styles } from "./schedulerV2Styles";
|
|
8
6
|
import {
|
|
9
7
|
BookedStopStatus,
|
|
10
8
|
CommunitySummary,
|
|
@@ -51,8 +49,14 @@ export class BookingConfirmation extends LitElement {
|
|
|
51
49
|
|
|
52
50
|
private heading(): string {
|
|
53
51
|
const booked = this.stops.filter((s) => s.status !== "failed").length;
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
if (this.rescheduled) {
|
|
53
|
+
return booked === 1
|
|
54
|
+
? "Your Tour Is Rescheduled"
|
|
55
|
+
: "Your Tours Are Rescheduled";
|
|
56
|
+
}
|
|
57
|
+
return booked === 1
|
|
58
|
+
? "Your Tour Is Booked"
|
|
59
|
+
: "Your Tour Itinerary Is Confirmed";
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
/** Where, how and when, as one line: the stops list shows each stop's own time. */
|
|
@@ -93,21 +97,15 @@ export class BookingConfirmation extends LitElement {
|
|
|
93
97
|
return html`<ol class="stops">
|
|
94
98
|
${this.stops.map(
|
|
95
99
|
(stop, i) => html`<li>
|
|
96
|
-
${i > 0
|
|
97
|
-
|
|
98
|
-
${this.renderLeg(stop)}
|
|
99
|
-
</p>`
|
|
100
|
-
: ""}
|
|
101
|
-
<div class="floorplan-image-card">
|
|
100
|
+
${i > 0 ? html`<p class="leg">${this.renderLeg(stop)}</p>` : ""}
|
|
101
|
+
<div class="card stop-card">
|
|
102
102
|
<span class="stop-number" aria-hidden="true">${i + 1}</span>
|
|
103
|
-
<div class="
|
|
104
|
-
<p class="
|
|
103
|
+
<div class="card-text">
|
|
104
|
+
<p class="stop-name">
|
|
105
105
|
<span class="sr-only">Stop ${i + 1}:</span>
|
|
106
106
|
${stop.community.name}
|
|
107
107
|
</p>
|
|
108
|
-
<p class="
|
|
109
|
-
${formatAddress(stop.community.address)}
|
|
110
|
-
</p>
|
|
108
|
+
<p class="subtitle">${formatAddress(stop.community.address)}</p>
|
|
111
109
|
${stop.status === "failed"
|
|
112
110
|
? html`<p class="error-message">
|
|
113
111
|
<span class="sr-only">Not booked:</span>
|
|
@@ -129,7 +127,7 @@ export class BookingConfirmation extends LitElement {
|
|
|
129
127
|
render(): TemplateResult {
|
|
130
128
|
const failed = this.stops.filter((s) => s.status === "failed").length;
|
|
131
129
|
return html`<div id="confirmationMessage" role="status">
|
|
132
|
-
<span class="booked-icon">${
|
|
130
|
+
<span class="booked-icon">${CheckCircleLineIcon(32)}</span>
|
|
133
131
|
<h2 class="booked-title">${this.heading()}</h2>
|
|
134
132
|
<p class="booked-summary">${this.summary()}</p>
|
|
135
133
|
${failed > 0
|
|
@@ -148,55 +146,61 @@ export class BookingConfirmation extends LitElement {
|
|
|
148
146
|
}
|
|
149
147
|
|
|
150
148
|
static styles = [
|
|
151
|
-
|
|
152
|
-
InputStyles,
|
|
153
|
-
floorplanImageCardStyles,
|
|
149
|
+
schedulerV2Styles,
|
|
154
150
|
itineraryStopStyles,
|
|
155
151
|
css`
|
|
156
|
-
/* New layout only: the header and the list of stops. */
|
|
157
152
|
:host {
|
|
158
153
|
display: block;
|
|
159
154
|
}
|
|
160
155
|
|
|
161
156
|
#confirmationMessage {
|
|
162
|
-
|
|
157
|
+
align-items: center;
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-direction: column;
|
|
163
160
|
text-align: center;
|
|
164
161
|
}
|
|
165
162
|
|
|
166
163
|
.booked-icon {
|
|
167
|
-
color: var(--primary-color, #202020);
|
|
168
164
|
display: flex;
|
|
165
|
+
margin-bottom: 12px;
|
|
169
166
|
}
|
|
170
167
|
|
|
171
168
|
.booked-title {
|
|
172
|
-
font-size:
|
|
169
|
+
font-size: 20px;
|
|
173
170
|
font-weight: 400;
|
|
174
|
-
|
|
171
|
+
letter-spacing: -0.01em;
|
|
172
|
+
line-height: 28px;
|
|
173
|
+
margin: 0 0 8px;
|
|
175
174
|
}
|
|
176
175
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
176
|
+
.booked-summary {
|
|
177
|
+
color: var(--tsv2-label);
|
|
178
|
+
font-size: 14px;
|
|
179
|
+
line-height: 20px;
|
|
180
|
+
margin: 0 0 8px;
|
|
180
181
|
}
|
|
181
182
|
|
|
182
183
|
#confirmationMessage > .error-message {
|
|
183
|
-
font-size:
|
|
184
|
-
|
|
184
|
+
font-size: 12px;
|
|
185
|
+
line-height: 16px;
|
|
186
|
+
margin: 0 0 8px;
|
|
185
187
|
}
|
|
186
188
|
|
|
187
|
-
|
|
188
|
-
color:
|
|
189
|
-
font-size:
|
|
190
|
-
|
|
191
|
-
max-width:
|
|
189
|
+
.booked-note {
|
|
190
|
+
color: var(--tsv2-muted);
|
|
191
|
+
font-size: 10px;
|
|
192
|
+
line-height: 14px;
|
|
193
|
+
max-width: 380px;
|
|
192
194
|
}
|
|
193
195
|
|
|
194
196
|
.stops {
|
|
197
|
+
margin-top: 24px;
|
|
198
|
+
max-width: 360px;
|
|
195
199
|
text-align: left;
|
|
196
200
|
}
|
|
197
201
|
|
|
198
|
-
.
|
|
199
|
-
|
|
202
|
+
.card-text {
|
|
203
|
+
flex: 1;
|
|
200
204
|
min-width: 0;
|
|
201
205
|
}
|
|
202
206
|
`,
|