@meetelise/chat 1.75.0 → 1.76.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.
Files changed (30) hide show
  1. package/dist/src/WebComponent/Scheduler/time-picker.d.ts +6 -0
  2. package/dist/src/WebComponent/Scheduler/tour-type-option.d.ts +1 -1
  3. package/dist/src/WebComponent/SchedulerV2/contact-form.d.ts +9 -3
  4. package/dist/src/WebComponent/SchedulerV2/itinerary-editor.d.ts +15 -1
  5. package/dist/src/WebComponent/SchedulerV2/itineraryStopStyles.d.ts +1 -2
  6. package/dist/src/WebComponent/SchedulerV2/schedulerIcons.d.ts +18 -0
  7. package/dist/src/WebComponent/SchedulerV2/schedulerV2Styles.d.ts +9 -0
  8. package/dist/src/WebComponent/SchedulerV2/tour-scheduler-v2.d.ts +13 -1
  9. package/dist/src/WebComponent/SchedulerV2/tourTimes.d.ts +1 -1
  10. package/dist/src/WebComponent/actions/international-phone-input.d.ts +7 -0
  11. package/dist/src/WebComponent/me-select.d.ts +2 -0
  12. package/package.json +1 -1
  13. package/public/dist/index.js +2280 -1309
  14. package/src/WebComponent/Scheduler/date-picker.ts +130 -51
  15. package/src/WebComponent/Scheduler/time-picker.ts +62 -0
  16. package/src/WebComponent/Scheduler/tour-type-option.ts +31 -10
  17. package/src/WebComponent/SchedulerV2/booking-confirmation.ts +42 -38
  18. package/src/WebComponent/SchedulerV2/community-picker.ts +222 -160
  19. package/src/WebComponent/SchedulerV2/contact-form.ts +100 -70
  20. package/src/WebComponent/SchedulerV2/itinerary-editor.ts +280 -138
  21. package/src/WebComponent/SchedulerV2/itineraryStopStyles.ts +44 -21
  22. package/src/WebComponent/SchedulerV2/scheduler-popover.ts +6 -6
  23. package/src/WebComponent/SchedulerV2/schedulerIcons.ts +143 -0
  24. package/src/WebComponent/SchedulerV2/schedulerV2Styles.ts +347 -0
  25. package/src/WebComponent/SchedulerV2/tour-scheduler-v2.ts +443 -175
  26. package/src/WebComponent/SchedulerV2/tourTimes.ts +4 -3
  27. package/src/WebComponent/actions/action-confirm-button.ts +4 -3
  28. package/src/WebComponent/actions/international-phone-input.ts +84 -1
  29. package/src/WebComponent/me-select.ts +74 -0
  30. package/src/tourSchedulerV2Booking.test.ts +35 -1
@@ -12,18 +12,26 @@ import "../Scheduler/date-picker";
12
12
  import "../Scheduler/time-picker";
13
13
  import "../Scheduler/tour-type-option";
14
14
  import "../mini-loader";
15
+ import "./scheduler-popover";
15
16
  import type { DatePicker } from "../Scheduler/date-picker";
16
17
  import type { TimePicker, TimePickerOption } from "../Scheduler/time-picker";
17
- import { unselectedTourTypeForegroundColor } from "../Scheduler/tour-type-option";
18
- import { tourSchedulerStyles } from "../Scheduler/tourSchedulerStyles";
19
- import { InputStyles } from "../actions/InputStyles";
20
- import { itineraryStopStyles } from "./itineraryStopStyles";
21
- import floorplanImageCardStyles from "../FeeCalculator/components/floorplan-image-card/floorplan-image-card-styles";
22
- import floorPlanSelectorStyles from "../FeeCalculator/components/floor-plan-selector/floor-plan-selector-styles";
23
- import { GripIcon } from "../icons/GripIcon";
24
- import { PencilIcon } from "../icons/PencilIcon";
25
- import { TrashIcon } from "../icons/TrashIcon";
26
18
  import { defaultPrimaryColor } from "../../themes";
19
+ import { getTimezoneAbbreviation } from "../../getTimezoneString";
20
+ import { isMobile, onMobileChange } from "../../utils";
21
+ import { schedulerV2Styles } from "./schedulerV2Styles";
22
+ import { itineraryStopStyles } from "./itineraryStopStyles";
23
+ import {
24
+ BuildingLineIcon,
25
+ CalendarLineIcon,
26
+ CheckCircleLineIcon,
27
+ GripLineIcon,
28
+ MapPinLineIcon,
29
+ PencilLineIcon,
30
+ PersonPlusLineIcon,
31
+ PlusLineIcon,
32
+ TrashLineIcon,
33
+ VideoLineIcon,
34
+ } from "./schedulerIcons";
27
35
  import {
28
36
  CommunitySummary,
29
37
  formatAddress,
@@ -33,6 +41,7 @@ import {
33
41
  import {
34
42
  dateFromIsoDate,
35
43
  formatLeg,
44
+ formatLongDate,
36
45
  formatMonthDay,
37
46
  formatTime,
38
47
  formatTimeRange,
@@ -53,6 +62,13 @@ export interface StopProblem {
53
62
  text: string;
54
63
  }
55
64
 
65
+ /** The design's line icon for each tour type. */
66
+ const TOUR_TYPE_ICONS: Record<TourTypeId, typeof PersonPlusLineIcon> = {
67
+ "escorted-tour": PersonPlusLineIcon,
68
+ "live-virtual-tour": VideoLineIcon,
69
+ "self-guided-tour": MapPinLineIcon,
70
+ };
71
+
56
72
  /** An API start time as today's time picker shows it. */
57
73
  const timeOption = (iso: string): TimePickerOption => ({
58
74
  displayTime: formatTime(iso),
@@ -135,6 +151,20 @@ export class ItineraryEditor extends LitElement {
135
151
  }
136
152
 
137
153
  @state() private editingTimeFor: number | null = null;
154
+ /** The date field's calendar is open. */
155
+ @state() private dateOpen = false;
156
+ @state() private mobile = isMobile();
157
+ private cleanupMobileListener?: () => void;
158
+
159
+ connectedCallback(): void {
160
+ super.connectedCallback();
161
+ this.cleanupMobileListener = onMobileChange((m) => (this.mobile = m));
162
+ }
163
+
164
+ disconnectedCallback(): void {
165
+ this.cleanupMobileListener?.();
166
+ super.disconnectedCallback();
167
+ }
138
168
  @state() private dragIndex: number | null = null;
139
169
  @state() private dropIndex: number | null = null;
140
170
 
@@ -197,13 +227,12 @@ export class ItineraryEditor extends LitElement {
197
227
  if (!this.single) return "";
198
228
  const id = this.stops.find((s) => !s.fixed)?.building_id;
199
229
  const community = id === undefined ? undefined : this.communities.get(id);
200
- return html`<h2 class="journey-header">Community</h2>
201
- <div class="floorplan-image-card community">
202
- <div class="section-right">
203
- <p class="image-card-title">${community?.name ?? ""}</p>
204
- <p class="image-card-subtitle">
205
- ${formatAddress(community?.address ?? null)}
206
- </p>
230
+ return html`<h2 class="section-heading">Community</h2>
231
+ <div class="card community">
232
+ <span class="icon-tile">${BuildingLineIcon(20)}</span>
233
+ <div class="card-text">
234
+ <p class="title">${community?.name ?? ""}</p>
235
+ <p class="subtitle">${formatAddress(community?.address ?? null)}</p>
207
236
  </div>
208
237
  ${this.canEditCommunities
209
238
  ? html`<button
@@ -211,14 +240,16 @@ export class ItineraryEditor extends LitElement {
211
240
  aria-label="Change community"
212
241
  @click=${() => emit(this, "edit-communities", {})}
213
242
  >
214
- ${PencilIcon()}
243
+ ${PencilLineIcon(14)}
215
244
  </button>`
216
245
  : ""}
217
- </div> `;
246
+ </div>`;
218
247
  }
219
248
 
220
249
  private renderTourTypes(): TemplateResult {
221
- return html`<h2 id="tour-type-heading" class="journey-header">Tour Type</h2>
250
+ return html`<h2 id="tour-type-heading" class="section-heading">
251
+ Tour Type
252
+ </h2>
222
253
  <div
223
254
  id="tour-type-menu"
224
255
  role="radiogroup"
@@ -243,9 +274,9 @@ export class ItineraryEditor extends LitElement {
243
274
  }
244
275
  }}
245
276
  >
246
- ${TOUR_TYPES[id].icon(
247
- selected ? this.primaryColor : unselectedTourTypeForegroundColor
248
- )}
277
+ <span slot="icon" class="tour-type-icon"
278
+ >${TOUR_TYPE_ICONS[id](20)}</span
279
+ >
249
280
  </tour-type-option>`;
250
281
  })}
251
282
  </div>
@@ -281,14 +312,17 @@ export class ItineraryEditor extends LitElement {
281
312
 
282
313
  /** One stop's own day: moving it there makes it a separate tour. */
283
314
  private renderStopDatePicker(stop: PlanStop): TemplateResult {
284
- return this.renderDatePicker(stop.dates, isoDate(stop.start), (date) =>
285
- emit(this, "stop-date-change", { buildingId: stop.building_id, date })
286
- );
315
+ return html`<div class="calendar-frame">
316
+ ${this.renderDatePicker(stop.dates, isoDate(stop.start), (date) =>
317
+ emit(this, "stop-date-change", { buildingId: stop.building_id, date })
318
+ )}
319
+ </div>`;
287
320
  }
288
321
 
289
322
  private renderTimePicker(stop: PlanStop): TemplateResult {
290
323
  const times = [...new Set([stop.start, ...stop.alternatives])].sort();
291
324
  return html`<time-picker
325
+ outlined
292
326
  selecteddateexists
293
327
  .timezone=${stop.timezone}
294
328
  .options=${times.map(timeOption)}
@@ -314,34 +348,75 @@ export class ItineraryEditor extends LitElement {
314
348
  }
315
349
 
316
350
  private renderLinkPrompt(): TemplateResult {
317
- return html`<h2 class="journey-header">Date and Time</h2>
318
- <div id="dateAndTimeMenu">
351
+ return html`<h2 class="section-heading">Date and Time</h2>
352
+ <button
353
+ id="self-guided-redirect-bttn"
354
+ class="primary-button"
355
+ @click=${() => emit(this, "open-tour-link", {})}
356
+ >
357
+ View Tour Times
358
+ </button>`;
359
+ }
360
+
361
+ /**
362
+ * The design's date field: the chosen day, which opens the calendar under
363
+ * it (in place on phones). Picking a day closes it, the day already chosen
364
+ * included, which the calendar reports without a date change.
365
+ */
366
+ private renderDateField(): TemplateResult {
367
+ const label = this.date ? formatLongDate(this.date) : "Select a date";
368
+ // The calendar handles the click first, inside its own shadow root.
369
+ const closeOnDay = (e: MouseEvent) => {
370
+ const day = e
371
+ .composedPath()
372
+ .find(
373
+ (n) =>
374
+ n instanceof HTMLButtonElement &&
375
+ n.matches("button.dayNumber:not(:disabled)")
376
+ );
377
+ if (!day) return;
378
+ this.dateOpen = false;
379
+ this.renderRoot.querySelector<HTMLElement>("#date-trigger")?.focus();
380
+ };
381
+ return html`<h2 id="date-heading" class="section-heading">Date</h2>
382
+ <scheduler-popover
383
+ class="date-popover"
384
+ ?open=${this.dateOpen}
385
+ ?inline=${this.mobile}
386
+ @popover-close=${() => (this.dateOpen = false)}
387
+ >
319
388
  <button
320
- id="self-guided-redirect-bttn"
321
- @click=${() => emit(this, "open-tour-link", {})}
389
+ id="date-trigger"
390
+ slot="trigger"
391
+ class="input picker-field"
392
+ aria-expanded=${String(this.dateOpen)}
393
+ aria-controls="date-panel"
394
+ aria-label=${`Date, ${label}`}
395
+ @click=${() => (this.dateOpen = !this.dateOpen)}
322
396
  >
323
- View Tour Times
397
+ <span class=${classMap({ value: true, placeholder: !this.date })}
398
+ >${label}</span
399
+ >
400
+ ${CalendarLineIcon(14)}
324
401
  </button>
325
- </div>`;
402
+ <div id="date-panel" class="calendar-panel" @click=${closeOnDay}>
403
+ ${this.renderDatePicker()}
404
+ </div>
405
+ </scheduler-popover>
406
+ ${this.bookableDates.length === 0 && this.offersKnown
407
+ ? html`<p class="explanation">No tour times in the next 30 days.</p>`
408
+ : ""}`;
326
409
  }
327
410
 
328
- private renderSingleDateAndTime(): TemplateResult {
411
+ /** "Time (CDT)": the one community's times, in its own time zone. */
412
+ private renderTimes(): TemplateResult {
329
413
  const stop = this.stops.find((s) => !s.fixed);
330
- return html`<h2 class="journey-header">
331
- Date and Time ${this.loading ? html`<mini-loader></mini-loader>` : ""}
414
+ const zone = stop ? getTimezoneAbbreviation(stop.timezone) : "";
415
+ return html`<h2 class="section-heading">
416
+ ${zone ? `Time (${zone})` : "Time"}
417
+ ${this.loading ? html`<mini-loader></mini-loader>` : ""}
332
418
  </h2>
333
- <div id="dateAndTimeMenu">
334
- <div id="datePicker">
335
- ${this.renderDatePicker()}
336
- ${stop
337
- ? html`<div>${this.renderTimePicker(stop)}</div>`
338
- : html`<p class="explanation">
339
- ${this.bookableDates.length === 0 && this.offersKnown
340
- ? "No tour times in the next 30 days."
341
- : ""}
342
- </p>`}
343
- </div>
344
- </div>`;
419
+ ${stop ? this.renderTimePicker(stop) : ""}`;
345
420
  }
346
421
 
347
422
  private renderStop(stop: PlanStop, index: number): TemplateResult {
@@ -376,13 +451,13 @@ export class ItineraryEditor extends LitElement {
376
451
  data-index=${stop.fixed ? nothing : newIndex}
377
452
  >
378
453
  ${index > 0
379
- ? html`<p class="image-card-subtitle leg">
454
+ ? html`<p class="leg">
380
455
  ${leg
381
456
  ? html`${leg}<span class="sr-only"> from the previous stop</span>`
382
457
  : ""}
383
458
  </p>`
384
459
  : ""}
385
- <div class="floorplan-image-card">
460
+ <div class="card stop-card">
386
461
  ${canReorder
387
462
  ? html`<button
388
463
  class="icon-button grip"
@@ -414,24 +489,20 @@ export class ItineraryEditor extends LitElement {
414
489
  this.move(newIndex, to);
415
490
  }}
416
491
  >
417
- ${GripIcon()}
492
+ ${GripLineIcon(14)}
418
493
  </button>`
419
494
  : ""}
420
495
  <span class="stop-number" aria-hidden="true">${index + 1}</span>
421
- <div class="section-right">
422
- <p class="image-card-title">
496
+ <div class="card-text">
497
+ <p class="stop-name">
423
498
  <span class="sr-only">Stop ${index + 1}:</span>
424
499
  ${community?.name ?? ""}
425
500
  </p>
426
- <p class="image-card-subtitle">
427
- ${formatAddress(community?.address ?? null)}
428
- </p>
501
+ <p class="subtitle">${formatAddress(community?.address ?? null)}</p>
429
502
  ${!canChangeTime && !canChangeDate
430
503
  ? html`<p class="stop-time">
431
504
  ${time}
432
- ${stop.fixed
433
- ? html`<span class="floor-plan-badge selected">Booked</span>`
434
- : ""}
505
+ ${stop.fixed ? html`<span class="sr-only">, booked</span>` : ""}
435
506
  </p>`
436
507
  : html`<button
437
508
  class="stop-time edit-time"
@@ -442,19 +513,25 @@ export class ItineraryEditor extends LitElement {
442
513
  @click=${() =>
443
514
  (this.editingTimeFor = editing ? null : stop.building_id)}
444
515
  >
445
- ${time} ${PencilIcon()}
516
+ ${time} ${PencilLineIcon(12)}
446
517
  </button>`}
447
518
  ${editing && canChangeDate ? this.renderStopDatePicker(stop) : ""}
448
519
  ${
449
520
  // While /plan answers, these are the old plan's times, which may
450
521
  // be on the stop's old day.
451
522
  editing && canChangeTime && !this.loading
452
- ? this.renderTimePicker(stop)
523
+ ? html`<div class="stop-times">
524
+ ${this.renderTimePicker(stop)}
525
+ <p class="subtitle">
526
+ Times in ${getTimezoneAbbreviation(stop.timezone)}
527
+ </p>
528
+ </div>`
453
529
  : ""
454
530
  }
455
531
  </div>
456
- ${!stop.fixed &&
457
- (ids.length > 1 || this.problems.length > 0 || this.stopsOnly)
532
+ ${stop.fixed
533
+ ? html`<span class="booked-mark">${CheckCircleLineIcon(18, 1)}</span>`
534
+ : ids.length > 1 || this.problems.length > 0 || this.stopsOnly
458
535
  ? this.renderRemove(stop.building_id, community?.name ?? "")
459
536
  : ""}
460
537
  </div>
@@ -467,16 +544,16 @@ export class ItineraryEditor extends LitElement {
467
544
  aria-label=${`Remove ${name}`}
468
545
  @click=${() => emit(this, "stop-remove", { buildingId })}
469
546
  >
470
- ${TrashIcon()}
547
+ ${TrashLineIcon(16)}
471
548
  </button>`;
472
549
  }
473
550
 
474
551
  private renderProblem(problem: StopProblem): TemplateResult {
475
552
  const community = this.communities.get(problem.building_id);
476
553
  return html`<li class="stop-item">
477
- <div class="floorplan-image-card">
478
- <div class="section-right">
479
- <p class="image-card-title">${community?.name ?? ""}</p>
554
+ <div class="card stop-card">
555
+ <div class="card-text">
556
+ <p class="stop-name">${community?.name ?? ""}</p>
480
557
  <p class="error-message">${problem.text}</p>
481
558
  </div>
482
559
  ${this.renderRemove(problem.building_id, community?.name ?? "")}
@@ -486,8 +563,8 @@ export class ItineraryEditor extends LitElement {
486
563
 
487
564
  /** Several communities: the date sits under the tour type, as in the design. */
488
565
  private renderItineraryDate(): TemplateResult {
489
- return html`<h2 class="journey-header date-header">Date</h2>
490
- <div id="datePicker">${this.renderDatePicker()}</div>
566
+ return html`<h2 class="section-heading date-header">Date</h2>
567
+ <div class="calendar-frame">${this.renderDatePicker()}</div>
491
568
  ${this.bookableDates.length === 0 && this.offersKnown
492
569
  ? html`<p class="explanation">
493
570
  These communities have no back-to-back tour times in the next 30
@@ -504,8 +581,8 @@ export class ItineraryEditor extends LitElement {
504
581
  }
505
582
 
506
583
  private renderItinerary(): TemplateResult {
507
- return html`<h2 class="journey-header">
508
- Your Itinerary ${this.loading ? html`<mini-loader></mini-loader>` : ""}
584
+ return html`<h2 class="section-heading">
585
+ Tour Itinerary ${this.loading ? html`<mini-loader></mini-loader>` : ""}
509
586
  </h2>
510
587
  ${this.renderStops()}`;
511
588
  }
@@ -515,120 +592,134 @@ export class ItineraryEditor extends LitElement {
515
592
  return html`${this.renderStops()}
516
593
  ${this.canAddStop
517
594
  ? html`<button
518
- class="floor-plan-badge add-stop"
595
+ class="add-stop"
519
596
  @click=${() => emit(this, "add-stop", {})}
520
597
  >
521
- + Add another stop
598
+ ${PlusLineIcon(18)} Add Another Stop
522
599
  </button>`
523
600
  : ""}`;
524
601
  }
525
- const itinerary = !this.selectedTypeOpensLink && !this.single;
526
- return html`<div id="tour-type-menu-outer-container">
527
- ${this.renderCommunity()} ${this.renderTourTypes()}
528
- ${itinerary ? this.renderItineraryDate() : ""}
602
+ if (!this.single) {
603
+ const itinerary = !this.selectedTypeOpensLink;
604
+ return html`<div id="tour-type-menu-outer-container" class="column">
605
+ ${this.renderTourTypes()}
606
+ ${itinerary ? this.renderItineraryDate() : ""}
607
+ </div>
608
+ <div id="date-and-time-menu-outer-container" class="column">
609
+ ${itinerary ? this.renderItinerary() : this.renderLinkPrompt()}
610
+ </div>`;
611
+ }
612
+ return html`<div id="tour-type-menu-outer-container" class="column">
613
+ ${this.renderCommunity()}
614
+ ${this.selectedTypeOpensLink ? "" : this.renderDateField()}
615
+ ${this.renderTourTypes()}
529
616
  </div>
530
- <div id="date-and-time-menu-outer-container">
617
+ <div id="date-and-time-menu-outer-container" class="column">
531
618
  ${this.selectedTypeOpensLink
532
619
  ? this.renderLinkPrompt()
533
- : this.single
534
- ? this.renderSingleDateAndTime()
535
- : this.renderItinerary()}
620
+ : this.renderTimes()}
536
621
  </div>`;
537
622
  }
538
623
 
539
624
  static styles = [
540
- tourSchedulerStyles,
541
- InputStyles,
542
- floorPlanSelectorStyles,
543
- floorplanImageCardStyles,
625
+ schedulerV2Styles,
544
626
  itineraryStopStyles,
545
627
  css`
546
- /* New layout only: the stop list and the community card's actions. */
547
628
  :host {
548
629
  display: contents;
549
630
  }
550
631
 
551
- .journey-header {
552
- align-items: center;
632
+ .column {
553
633
  display: flex;
554
- gap: 8px;
555
- margin: 0;
634
+ flex-direction: column;
635
+ min-width: 0;
636
+ }
637
+
638
+ /* 20px between the left column's sections, as in the design. */
639
+ .column > .section-heading:not(:first-child) {
640
+ margin-top: 20px;
556
641
  }
557
642
 
558
- .floorplan-image-card {
643
+ .card-text {
644
+ flex: 1;
559
645
  min-width: 0;
560
646
  }
561
647
 
562
648
  .community {
563
649
  align-items: center;
564
- margin-bottom: 8px;
650
+ border-radius: 4px;
651
+ display: flex;
652
+ gap: 12px;
653
+ padding: 7px;
565
654
  }
566
655
 
567
- #tour-type-menu-outer-container .journey-header:not(:first-child) {
568
- margin-top: 4px;
656
+ .change-community {
657
+ height: 28px;
658
+ margin-right: 1px;
569
659
  }
570
660
 
571
- #tour-type-menu-outer-container .journey-header.date-header {
572
- margin-top: 20px;
661
+ #tour-type-menu {
662
+ display: flex;
663
+ flex-direction: column;
664
+ gap: 4px;
573
665
  }
574
666
 
575
- /* The pencil sits centred on the community card's right. */
576
- .icon-button.change-community {
577
- align-self: center;
667
+ .tour-type-icon {
668
+ display: flex;
578
669
  }
579
670
 
580
- .add-stop {
581
- width: 100%;
671
+ #tour-type-menu > .explanation {
672
+ margin-top: 8px;
582
673
  }
583
674
 
584
- .community {
585
- background: #ffffff;
586
- border: 1px solid #e7e7e7;
587
- border-radius: 8px;
675
+ .date-popover {
676
+ display: block;
677
+ --scheduler-popover-padding: 12px;
588
678
  }
589
679
 
590
- .stop-item.dragging {
591
- opacity: 0.5;
680
+ .date-popover .picker-field[aria-expanded="true"] {
681
+ border-color: var(--tsv2-accent);
592
682
  }
593
683
 
594
- .stop-item.drop-target .floorplan-image-card {
595
- border-color: var(--primary-color, #646987);
596
- border-style: dashed;
684
+ .calendar-panel {
685
+ width: 246px;
597
686
  }
598
687
 
599
- .section-right {
600
- flex: 1;
601
- min-width: 0;
688
+ .date-popover[inline] .calendar-panel {
689
+ border: 1px solid var(--tsv2-line);
690
+ border-radius: 8px;
691
+ margin-top: 8px;
692
+ padding: 12px;
693
+ width: auto;
602
694
  }
603
695
 
604
- .icon-button {
605
- align-items: center;
606
- align-self: flex-start;
607
- background: none;
608
- border: none;
696
+ .calendar-frame {
697
+ border: 1px solid var(--tsv2-line);
609
698
  border-radius: 4px;
610
- color: #737373;
611
- cursor: pointer;
612
- display: inline-flex;
613
- flex-shrink: 0;
614
- padding: 4px;
699
+ margin-top: 8px;
700
+ padding: 12px;
615
701
  }
616
702
 
617
- .icon-button:hover {
618
- color: #202020;
703
+ .column > .calendar-frame {
704
+ margin-top: 0;
619
705
  }
620
706
 
621
- /* Beside the stop number, even while the stop's time picker is open. */
622
- .grip {
623
- cursor: grab;
624
- touch-action: none;
625
- padding: 4px 0;
707
+ .primary-button {
708
+ background: var(--tsv2-accent);
709
+ border: none;
710
+ border-radius: 4px;
711
+ color: var(--on-primary-color, #ffffff);
712
+ cursor: pointer;
713
+ font: inherit;
714
+ font-size: 12px;
715
+ height: 36px;
716
+ line-height: 16px;
717
+ padding: 0 24px;
718
+ width: 100%;
626
719
  }
627
720
 
628
- .stop-time {
629
- align-items: center;
630
- display: inline-flex;
631
- gap: 6px;
721
+ .primary-button:hover {
722
+ opacity: 0.85;
632
723
  }
633
724
 
634
725
  .edit-time {
@@ -637,18 +728,69 @@ export class ItineraryEditor extends LitElement {
637
728
  color: inherit;
638
729
  cursor: pointer;
639
730
  font: inherit;
640
- font-size: 0.9rem;
731
+ font-size: 12px;
641
732
  padding: 0;
642
733
  }
643
734
 
644
735
  .edit-time svg {
645
- color: #737373;
736
+ color: var(--tsv2-muted);
737
+ }
738
+
739
+ .stop-card .calendar-frame,
740
+ .stop-times {
741
+ margin-top: 12px;
742
+ }
743
+
744
+ .stop-times .subtitle {
745
+ margin-top: 6px;
746
+ }
747
+
748
+ .booked-mark {
749
+ display: inline-flex;
750
+ flex: none;
751
+ margin-right: 8px;
752
+ }
753
+
754
+ .remove {
755
+ color: #868e96;
756
+ margin-right: 4px;
757
+ }
758
+
759
+ .grip {
760
+ cursor: grab;
761
+ margin: 0 -6px 0 -4px;
762
+ touch-action: none;
763
+ }
764
+
765
+ .stop-item.dragging {
766
+ opacity: 0.5;
767
+ }
768
+
769
+ .stop-item.drop-target .stop-card {
770
+ border-color: var(--tsv2-accent);
771
+ border-style: dashed;
772
+ }
773
+
774
+ .add-stop {
775
+ align-items: center;
776
+ background: var(--tsv2-tint);
777
+ border: none;
778
+ border-radius: 4px;
779
+ color: var(--tsv2-accent);
780
+ cursor: pointer;
781
+ display: flex;
782
+ font: inherit;
783
+ font-size: 12px;
784
+ gap: 6px;
785
+ height: 36px;
786
+ justify-content: center;
787
+ line-height: 16px;
788
+ margin-top: 12px;
789
+ width: 100%;
646
790
  }
647
791
 
648
- .stop-time .floor-plan-badge {
649
- cursor: default;
650
- font-size: 0.7rem;
651
- padding: 2px 8px;
792
+ .add-stop:hover {
793
+ background: var(--tsv2-tint-line);
652
794
  }
653
795
  `,
654
796
  ];