@mapsindoors/map-template 1.12.0-rc.3 → 1.12.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 (73) hide show
  1. package/package.json +1 -1
  2. package/dist/combo-box-item.entry-04f0e546.mjs +0 -12
  3. package/dist/combo-box-item.entry-f1f36e49.mjs +0 -14
  4. package/dist/mi-card_2.entry-112d6cec.mjs +0 -25
  5. package/dist/mi-card_2.entry-138c7653.mjs +0 -23
  6. package/dist/mi-chip.entry-3a9b51dd.mjs +0 -16
  7. package/dist/mi-chip.entry-b0cb0da5.mjs +0 -18
  8. package/dist/mi-column.entry-e8b74502.mjs +0 -20
  9. package/dist/mi-column.entry-fe197b13.mjs +0 -18
  10. package/dist/mi-combo-box.entry-5776c4cc.mjs +0 -260
  11. package/dist/mi-combo-box.entry-b23feef3.mjs +0 -262
  12. package/dist/mi-data-table.entry-0d04f901.mjs +0 -215
  13. package/dist/mi-data-table.entry-ff82dd01.mjs +0 -213
  14. package/dist/mi-distance_2.entry-80019828.mjs +0 -56
  15. package/dist/mi-distance_2.entry-c18ff16b.mjs +0 -54
  16. package/dist/mi-dropdown-item.entry-63c41efc.mjs +0 -14
  17. package/dist/mi-dropdown-item.entry-bb3d99f0.mjs +0 -12
  18. package/dist/mi-dropdown.entry-870fa8de.mjs +0 -296
  19. package/dist/mi-dropdown.entry-adcf21a7.mjs +0 -298
  20. package/dist/mi-floor-selector.entry-6b91f5fc.mjs +0 -110
  21. package/dist/mi-floor-selector.entry-9a4296ba.mjs +0 -112
  22. package/dist/mi-keyboard.entry-668f536d.mjs +0 -2960
  23. package/dist/mi-keyboard.entry-b0c17b79.mjs +0 -2962
  24. package/dist/mi-list-item-category.entry-b2884dba.mjs +0 -38
  25. package/dist/mi-list-item-category.entry-b9536a7c.mjs +0 -36
  26. package/dist/mi-list-item-location.entry-ab46e53a.mjs +0 -134
  27. package/dist/mi-list-item-location.entry-d34a5690.mjs +0 -136
  28. package/dist/mi-list.entry-40b86f7f.mjs +0 -39
  29. package/dist/mi-list.entry-f9fdb0da.mjs +0 -41
  30. package/dist/mi-location-booking.entry-0f7f2812.mjs +0 -4863
  31. package/dist/mi-location-booking.entry-32cb574a.mjs +0 -4865
  32. package/dist/mi-location-info.entry-5cc2e91c.mjs +0 -31
  33. package/dist/mi-location-info.entry-c0cc0b69.mjs +0 -29
  34. package/dist/mi-map-googlemaps.entry-46829aaa.mjs +0 -398
  35. package/dist/mi-map-googlemaps.entry-e559c0dc.mjs +0 -396
  36. package/dist/mi-map-mapbox.entry-2c18333b.mjs +0 -300
  37. package/dist/mi-map-mapbox.entry-68c783cf.mjs +0 -298
  38. package/dist/mi-metric-card.entry-2f6981e7.mjs +0 -26
  39. package/dist/mi-metric-card.entry-7e16c8f8.mjs +0 -28
  40. package/dist/mi-my-position.entry-23e243aa.mjs +0 -1395
  41. package/dist/mi-my-position.entry-5a94c83d.mjs +0 -1393
  42. package/dist/mi-notification.entry-401c9cb9.mjs +0 -81
  43. package/dist/mi-notification.entry-4d06c318.mjs +0 -83
  44. package/dist/mi-route-instructions-heading.entry-8f5eaa1d.mjs +0 -74
  45. package/dist/mi-route-instructions-heading.entry-f3b4f871.mjs +0 -72
  46. package/dist/mi-route-instructions-maneuver-legacy.entry-66dad3ef.mjs +0 -75
  47. package/dist/mi-route-instructions-maneuver-legacy.entry-8ffeb735.mjs +0 -73
  48. package/dist/mi-route-instructions-maneuver.entry-24bcf67d.mjs +0 -75
  49. package/dist/mi-route-instructions-maneuver.entry-703bbcd9.mjs +0 -73
  50. package/dist/mi-route-instructions-step-legacy.entry-27a5fe00.mjs +0 -199
  51. package/dist/mi-route-instructions-step-legacy.entry-cf34cec4.mjs +0 -201
  52. package/dist/mi-route-instructions-step.entry-c3beb0c0.mjs +0 -234
  53. package/dist/mi-route-instructions-step.entry-e8a13502.mjs +0 -236
  54. package/dist/mi-route-instructions.entry-d9cabf3f.mjs +0 -142
  55. package/dist/mi-route-instructions.entry-fd85a9a4.mjs +0 -140
  56. package/dist/mi-scroll-buttons.entry-7666d055.mjs +0 -48
  57. package/dist/mi-scroll-buttons.entry-c069579b.mjs +0 -46
  58. package/dist/mi-search.entry-5e428c8e.mjs +0 -209
  59. package/dist/mi-search.entry-7ad753cf.mjs +0 -207
  60. package/dist/mi-share-sms.entry-25262279.mjs +0 -53
  61. package/dist/mi-share-sms.entry-33766d61.mjs +0 -55
  62. package/dist/mi-step-switcher.entry-81d295f8.mjs +0 -24
  63. package/dist/mi-step-switcher.entry-95ade6f3.mjs +0 -26
  64. package/dist/mi-tab-panel.entry-8c9b016e.mjs +0 -19
  65. package/dist/mi-tab-panel.entry-d77c094f.mjs +0 -21
  66. package/dist/mi-tab.entry-458faa22.mjs +0 -11
  67. package/dist/mi-tab.entry-d45194c0.mjs +0 -13
  68. package/dist/mi-tabs.entry-94ef09f5.mjs +0 -34
  69. package/dist/mi-tabs.entry-a78c550d.mjs +0 -36
  70. package/dist/mi-time.entry-c35e476f.mjs +0 -43
  71. package/dist/mi-time.entry-cae11551.mjs +0 -45
  72. package/dist/reactcomponent-0e140537.mjs +0 -31717
  73. package/dist/webcomponent-592597b2.mjs +0 -36391
@@ -1,81 +0,0 @@
1
- import { r as c, f as r, h as i, H as f, g as d } from "./webcomponent-592597b2.mjs";
2
- var l;
3
- (function(t) {
4
- t.TOP_LEFT = "top-left", t.TOP_CENTER = "top-center", t.TOP_RIGHT = "top-right", t.BOTTOM_CENTER = "bottom-center", t.BOTTOM_LEFT = "bottom-left", t.BOTTOM_RIGHT = "bottom-right";
5
- })(l || (l = {}));
6
- var n;
7
- (function(t) {
8
- t.Error = "error", t.Info = "info", t.Success = "success", t.Warning = "warning", t.None = "none";
9
- })(n || (n = {}));
10
- const h = ':host{padding:16px;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";position:fixed;z-index:1000;display:flex;flex-direction:column}:host(.top-left){top:0;left:0}:host(.top-center){top:0;align-items:center;left:50%;transform:translate(-50%, 0)}:host(.top-right){top:0;right:0;align-items:flex-end}:host(.bottom-left){bottom:0;left:0}:host(.bottom-center){bottom:0;align-items:center;left:50%;transform:translate(-50%, 0)}:host(.bottom-right){bottom:0;right:0;align-items:flex-end}.notification{margin-top:16px;display:flex;flex-direction:row;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);border-radius:2px;background-color:#fcfcfc;overflow:hidden}.notification .icon{width:48px;display:flex;justify-content:center;align-items:center}.notification .icon-type--error{background-color:#ef4444}.notification .icon-type--success{background-color:#22c55e}.notification .icon-type--warning{background-color:#f59e0b}.notification .icon-type--info{background-color:#6b7280}.notification .label{padding-left:16px;flex:1;font-size:0.875rem}.notification .btn{padding-left:24px;padding-right:16px;display:flex;align-items:center;border:none;background-color:#fcfcfc}.notification .btn:focus{outline:none;box-shadow:none}', g = class {
11
- constructor(t) {
12
- c(this, t), this.notifications = [], this.notificationId = 0, this.position = l.BOTTOM_RIGHT, this.duration = 3;
13
- }
14
- /**
15
- * Show a notification.
16
- *
17
- * @param {string} message - Message to display.
18
- * @param {string} [type='none'] - Type of notification. Available types: 'info', 'warning', 'success', 'error' and 'none'.
19
- * @param {boolean} [sticky=false] - Set message as sticky to prevent it from disappearing.
20
- * @returns {Promise<void>}
21
- */
22
- async push(t, e = "none", o = !1) {
23
- if (typeof t != "string" || t.length < 1)
24
- return;
25
- if (!Object.values(n).some((a) => a === e)) {
26
- console.error("Invalid notification type");
27
- return;
28
- }
29
- const s = {
30
- id: this.notificationId,
31
- message: t,
32
- sticky: o,
33
- type: e
34
- };
35
- o === !1 && (s.timer = window.setTimeout(() => this.dismiss(s.id), this.duration * 1e3)), this.notificationId++, this.notifications.push(s), r(this.hostElement);
36
- }
37
- /**
38
- * Clear all notifications.
39
- *
40
- * @returns {Promise<void>}
41
- */
42
- async clearAll() {
43
- this.notifications = [], r(this.hostElement);
44
- }
45
- /**
46
- * Dismiss a single notification.
47
- *
48
- * @param {number} id
49
- */
50
- dismiss(t) {
51
- this.notifications = this.notifications.filter((e) => e.id !== t), r(this.hostElement);
52
- }
53
- render() {
54
- return i(f, { class: this.position }, this.notifications.map((t) => this.renderNotification(t)));
55
- }
56
- /**
57
- * Get JSX for notification.
58
- *
59
- * @param {NotificationMessage} { id, message }
60
- * @returns {JSX.Element}
61
- */
62
- renderNotification({ id: t, message: e, type: o }) {
63
- return i("div", { class: "notification", role: "alert" }, o && o !== "none" ? this.renderIcon(o) : null, i("p", { class: "label" }, e), i("button", { type: "button", "aria-label": "Dismiss notification", class: "btn", onClick: () => this.dismiss(t) }, i("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-hidden": "true", focusable: "false" }, i("path", { d: "M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z", fill: "#1E2025" }))));
64
- }
65
- /**
66
- * Get JSX for type-icon.
67
- *
68
- * @param {NotificationType} type
69
- * @returns {JSX.Element}
70
- */
71
- renderIcon(t) {
72
- return t === n.Error ? i("div", { class: "icon icon-type--error" }, i("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-hidden": "true", focusable: "false" }, i("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM9 15V13H11V15H9ZM9 5V11H11V5H9Z", fill: "#FCFCFC" }))) : t === n.Success ? i("div", { class: "icon icon-type--success" }, i("svg", { width: "18", height: "14", viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-hidden": "true", focusable: "false" }, i("path", { d: "M5.99997 11.17L1.82997 7L0.409973 8.41L5.99997 14L18 2L16.59 0.59L5.99997 11.17Z", fill: "#FCFCFC" }))) : t === n.Warning ? i("div", { class: "icon icon-type--warning" }, i("svg", { width: "22", height: "19", viewBox: "0 0 22 19", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-hidden": "true", focusable: "false" }, i("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M22 19L11 0L0 19H22ZM10 16V14H12V16H10ZM10 12H12V8H10V12Z", fill: "#FCFCFC" }))) : i("div", { class: "icon icon-type--info" }, i("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-hidden": "true", focusable: "false" }, i("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM9 15V9H11V15H9ZM9 5V7H11V5H9Z", fill: "#FCFCFC" })));
73
- }
74
- get hostElement() {
75
- return d(this);
76
- }
77
- };
78
- g.style = h;
79
- export {
80
- g as mi_notification
81
- };
@@ -1,83 +0,0 @@
1
- import { r as c, f as r, h as i, H as f, g as d } from "./reactcomponent-0e140537.mjs";
2
- import "react";
3
- import "react-dom";
4
- var l;
5
- (function(t) {
6
- t.TOP_LEFT = "top-left", t.TOP_CENTER = "top-center", t.TOP_RIGHT = "top-right", t.BOTTOM_CENTER = "bottom-center", t.BOTTOM_LEFT = "bottom-left", t.BOTTOM_RIGHT = "bottom-right";
7
- })(l || (l = {}));
8
- var n;
9
- (function(t) {
10
- t.Error = "error", t.Info = "info", t.Success = "success", t.Warning = "warning", t.None = "none";
11
- })(n || (n = {}));
12
- const h = ':host{padding:16px;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";position:fixed;z-index:1000;display:flex;flex-direction:column}:host(.top-left){top:0;left:0}:host(.top-center){top:0;align-items:center;left:50%;transform:translate(-50%, 0)}:host(.top-right){top:0;right:0;align-items:flex-end}:host(.bottom-left){bottom:0;left:0}:host(.bottom-center){bottom:0;align-items:center;left:50%;transform:translate(-50%, 0)}:host(.bottom-right){bottom:0;right:0;align-items:flex-end}.notification{margin-top:16px;display:flex;flex-direction:row;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);border-radius:2px;background-color:#fcfcfc;overflow:hidden}.notification .icon{width:48px;display:flex;justify-content:center;align-items:center}.notification .icon-type--error{background-color:#ef4444}.notification .icon-type--success{background-color:#22c55e}.notification .icon-type--warning{background-color:#f59e0b}.notification .icon-type--info{background-color:#6b7280}.notification .label{padding-left:16px;flex:1;font-size:0.875rem}.notification .btn{padding-left:24px;padding-right:16px;display:flex;align-items:center;border:none;background-color:#fcfcfc}.notification .btn:focus{outline:none;box-shadow:none}', p = class {
13
- constructor(t) {
14
- c(this, t), this.notifications = [], this.notificationId = 0, this.position = l.BOTTOM_RIGHT, this.duration = 3;
15
- }
16
- /**
17
- * Show a notification.
18
- *
19
- * @param {string} message - Message to display.
20
- * @param {string} [type='none'] - Type of notification. Available types: 'info', 'warning', 'success', 'error' and 'none'.
21
- * @param {boolean} [sticky=false] - Set message as sticky to prevent it from disappearing.
22
- * @returns {Promise<void>}
23
- */
24
- async push(t, e = "none", o = !1) {
25
- if (typeof t != "string" || t.length < 1)
26
- return;
27
- if (!Object.values(n).some((a) => a === e)) {
28
- console.error("Invalid notification type");
29
- return;
30
- }
31
- const s = {
32
- id: this.notificationId,
33
- message: t,
34
- sticky: o,
35
- type: e
36
- };
37
- o === !1 && (s.timer = window.setTimeout(() => this.dismiss(s.id), this.duration * 1e3)), this.notificationId++, this.notifications.push(s), r(this.hostElement);
38
- }
39
- /**
40
- * Clear all notifications.
41
- *
42
- * @returns {Promise<void>}
43
- */
44
- async clearAll() {
45
- this.notifications = [], r(this.hostElement);
46
- }
47
- /**
48
- * Dismiss a single notification.
49
- *
50
- * @param {number} id
51
- */
52
- dismiss(t) {
53
- this.notifications = this.notifications.filter((e) => e.id !== t), r(this.hostElement);
54
- }
55
- render() {
56
- return i(f, { class: this.position }, this.notifications.map((t) => this.renderNotification(t)));
57
- }
58
- /**
59
- * Get JSX for notification.
60
- *
61
- * @param {NotificationMessage} { id, message }
62
- * @returns {JSX.Element}
63
- */
64
- renderNotification({ id: t, message: e, type: o }) {
65
- return i("div", { class: "notification", role: "alert" }, o && o !== "none" ? this.renderIcon(o) : null, i("p", { class: "label" }, e), i("button", { type: "button", "aria-label": "Dismiss notification", class: "btn", onClick: () => this.dismiss(t) }, i("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-hidden": "true", focusable: "false" }, i("path", { d: "M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z", fill: "#1E2025" }))));
66
- }
67
- /**
68
- * Get JSX for type-icon.
69
- *
70
- * @param {NotificationType} type
71
- * @returns {JSX.Element}
72
- */
73
- renderIcon(t) {
74
- return t === n.Error ? i("div", { class: "icon icon-type--error" }, i("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-hidden": "true", focusable: "false" }, i("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM9 15V13H11V15H9ZM9 5V11H11V5H9Z", fill: "#FCFCFC" }))) : t === n.Success ? i("div", { class: "icon icon-type--success" }, i("svg", { width: "18", height: "14", viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-hidden": "true", focusable: "false" }, i("path", { d: "M5.99997 11.17L1.82997 7L0.409973 8.41L5.99997 14L18 2L16.59 0.59L5.99997 11.17Z", fill: "#FCFCFC" }))) : t === n.Warning ? i("div", { class: "icon icon-type--warning" }, i("svg", { width: "22", height: "19", viewBox: "0 0 22 19", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-hidden": "true", focusable: "false" }, i("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M22 19L11 0L0 19H22ZM10 16V14H12V16H10ZM10 12H12V8H10V12Z", fill: "#FCFCFC" }))) : i("div", { class: "icon icon-type--info" }, i("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-hidden": "true", focusable: "false" }, i("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM9 15V9H11V15H9ZM9 5V7H11V5H9Z", fill: "#FCFCFC" })));
75
- }
76
- get hostElement() {
77
- return d(this);
78
- }
79
- };
80
- p.style = h;
81
- export {
82
- p as mi_notification
83
- };
@@ -1,74 +0,0 @@
1
- import { r as s, h as i } from "./reactcomponent-0e140537.mjs";
2
- import { R as t } from "./route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs";
3
- import { U as n } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
4
- import "react";
5
- import "react-dom";
6
- const a = '.directions{border-bottom:1px solid #d1d5db;color:#1c1917;font-size:1rem;font-weight:400;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.directions-way-points{padding-top:24px;padding-bottom:24px;padding-left:16px;padding-right:16px;border-bottom:1px solid #f3f4f6}.directions-way-points span{display:block}.directions-way-points span:first-child{font-size:1.25rem;font-weight:500;line-height:1.5rem}.directions-way-points span:last-child{color:#6b7280}.directions-way-points span:last-child a{color:#3b82f6;text-decoration:none}.directions-details{padding:16px;display:flex;flex-direction:row;justify-content:space-between}.directions-details-numbers mi-time{font-weight:500}.directions-details-numbers-distance{color:#6b7280;font-size:0.875rem;font-weight:400;text-transform:lowercase}.directions-details-travel-mode-selector{display:flex;align-items:center;color:#3b82f6;text-decoration:none}.directions-details-travel-mode-selector mi-icon{width:24px;height:24px;margin-left:8px;background-color:#3b82f6}', r = class {
7
- constructor(e) {
8
- s(this, e), this.originName = void 0, this.destinationName = void 0, this.totalTravelTime = void 0, this.totalWalkingDistance = void 0, this.travelMode = t.Walking, this.unit = n.Metric, this.translations = {
9
- from: "From",
10
- to: "To",
11
- avoidStairs: "Avoid stairs",
12
- walk: "Walk",
13
- walking: "Walking",
14
- bike: "Bike",
15
- bicycling: "Bicycling",
16
- transit: "Transit",
17
- car: "Car",
18
- driving: "Driving"
19
- };
20
- }
21
- /**
22
- * Get travel mode as a string. Eg. "Walking", "Driving", "Transit", "Bicycling".
23
- *
24
- * @returns {string}
25
- */
26
- getTravelModeString() {
27
- switch (this.travelMode) {
28
- case t.Walking:
29
- return this.translations.walk;
30
- case t.Driving:
31
- return this.translations.car;
32
- case t.Transit:
33
- return this.translations.transit;
34
- case t.Bicycling:
35
- return this.translations.bike;
36
- default:
37
- return this.translations.walk;
38
- }
39
- }
40
- /**
41
- * Get icon name for travel mode.
42
- *
43
- * @returns {string}
44
- */
45
- getTravelModeIconName() {
46
- switch (this.travelMode) {
47
- case t.Walking:
48
- return "walk";
49
- case t.Driving:
50
- return "car";
51
- case t.Transit:
52
- return "transit";
53
- case t.Bicycling:
54
- return "bike";
55
- default:
56
- return "walk";
57
- }
58
- }
59
- render() {
60
- return i("div", { class: "directions" }, this.originName && this.destinationName ? this.renderWayPoints() : null, i("div", { class: "directions-details" }, this.totalTravelTime >= 0 || this.totalWalkingDistance >= 0 ? i("div", { class: "directions-details-numbers" }, this.totalTravelTime >= 0 ? i("div", null, i("mi-time", { seconds: this.totalTravelTime })) : null, this.totalWalkingDistance >= 0 ? i("div", { class: "directions-details-numbers-distance" }, i("mi-distance", { meters: this.totalWalkingDistance }), " ", this.translations.walking.toLowerCase()) : null) : null, i("a", { href: "#", class: "directions-details-travel-mode-selector" }, this.getTravelModeString(), i("mi-icon", { "icon-name": this.getTravelModeIconName() }))));
61
- }
62
- /**
63
- * Render direction way points.
64
- *
65
- * @returns {JSX.Element}
66
- */
67
- renderWayPoints() {
68
- return i("div", { class: "directions-way-points" }, i("span", null, this.translations.to, " ", this.destinationName), i("span", null, this.translations.from, " ", i("a", { href: "#" }, this.originName)));
69
- }
70
- };
71
- r.style = a;
72
- export {
73
- r as mi_route_instructions_heading
74
- };
@@ -1,72 +0,0 @@
1
- import { r as s, h as i } from "./webcomponent-592597b2.mjs";
2
- import { R as t } from "./route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs";
3
- import { U as n } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
4
- const a = '.directions{border-bottom:1px solid #d1d5db;color:#1c1917;font-size:1rem;font-weight:400;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.directions-way-points{padding-top:24px;padding-bottom:24px;padding-left:16px;padding-right:16px;border-bottom:1px solid #f3f4f6}.directions-way-points span{display:block}.directions-way-points span:first-child{font-size:1.25rem;font-weight:500;line-height:1.5rem}.directions-way-points span:last-child{color:#6b7280}.directions-way-points span:last-child a{color:#3b82f6;text-decoration:none}.directions-details{padding:16px;display:flex;flex-direction:row;justify-content:space-between}.directions-details-numbers mi-time{font-weight:500}.directions-details-numbers-distance{color:#6b7280;font-size:0.875rem;font-weight:400;text-transform:lowercase}.directions-details-travel-mode-selector{display:flex;align-items:center;color:#3b82f6;text-decoration:none}.directions-details-travel-mode-selector mi-icon{width:24px;height:24px;margin-left:8px;background-color:#3b82f6}', r = class {
5
- constructor(e) {
6
- s(this, e), this.originName = void 0, this.destinationName = void 0, this.totalTravelTime = void 0, this.totalWalkingDistance = void 0, this.travelMode = t.Walking, this.unit = n.Metric, this.translations = {
7
- from: "From",
8
- to: "To",
9
- avoidStairs: "Avoid stairs",
10
- walk: "Walk",
11
- walking: "Walking",
12
- bike: "Bike",
13
- bicycling: "Bicycling",
14
- transit: "Transit",
15
- car: "Car",
16
- driving: "Driving"
17
- };
18
- }
19
- /**
20
- * Get travel mode as a string. Eg. "Walking", "Driving", "Transit", "Bicycling".
21
- *
22
- * @returns {string}
23
- */
24
- getTravelModeString() {
25
- switch (this.travelMode) {
26
- case t.Walking:
27
- return this.translations.walk;
28
- case t.Driving:
29
- return this.translations.car;
30
- case t.Transit:
31
- return this.translations.transit;
32
- case t.Bicycling:
33
- return this.translations.bike;
34
- default:
35
- return this.translations.walk;
36
- }
37
- }
38
- /**
39
- * Get icon name for travel mode.
40
- *
41
- * @returns {string}
42
- */
43
- getTravelModeIconName() {
44
- switch (this.travelMode) {
45
- case t.Walking:
46
- return "walk";
47
- case t.Driving:
48
- return "car";
49
- case t.Transit:
50
- return "transit";
51
- case t.Bicycling:
52
- return "bike";
53
- default:
54
- return "walk";
55
- }
56
- }
57
- render() {
58
- return i("div", { class: "directions" }, this.originName && this.destinationName ? this.renderWayPoints() : null, i("div", { class: "directions-details" }, this.totalTravelTime >= 0 || this.totalWalkingDistance >= 0 ? i("div", { class: "directions-details-numbers" }, this.totalTravelTime >= 0 ? i("div", null, i("mi-time", { seconds: this.totalTravelTime })) : null, this.totalWalkingDistance >= 0 ? i("div", { class: "directions-details-numbers-distance" }, i("mi-distance", { meters: this.totalWalkingDistance }), " ", this.translations.walking.toLowerCase()) : null) : null, i("a", { href: "#", class: "directions-details-travel-mode-selector" }, this.getTravelModeString(), i("mi-icon", { "icon-name": this.getTravelModeIconName() }))));
59
- }
60
- /**
61
- * Render direction way points.
62
- *
63
- * @returns {JSX.Element}
64
- */
65
- renderWayPoints() {
66
- return i("div", { class: "directions-way-points" }, i("span", null, this.translations.to, " ", this.destinationName), i("span", null, this.translations.from, " ", i("a", { href: "#" }, this.originName)));
67
- }
68
- };
69
- r.style = a;
70
- export {
71
- r as mi_route_instructions_heading
72
- };
@@ -1,75 +0,0 @@
1
- import { r as s, h as i, H as r } from "./reactcomponent-0e140537.mjs";
2
- import { U as o } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
3
- import "react";
4
- import "react-dom";
5
- const l = ':host{display:flex;padding-top:12px;padding-bottom:12px;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.icon{width:48px;display:flex;justify-content:center}.icon mi-icon{width:24px;height:24px}.description{display:flex;flex-direction:column;flex:1}.description p{margin:0;padding-right:16px;font-size:0.875rem;word-break:break-all}.description__distance{display:flex;align-items:center}.description__distance mi-distance{font-size:0.75rem;padding-right:12px}.description__distance-border{flex:1;width:100%;height:0;border-bottom:1px solid #e5e7eb}', h = class {
6
- constructor(t) {
7
- s(this, t), this.maneuver = void 0, this.maneuverData = void 0, this.translations = void 0, this.translationsData = void 0, this.unit = o.Metric;
8
- }
9
- parseManeuverProp() {
10
- this.maneuverData = JSON.parse(this.maneuver);
11
- }
12
- parseTranslationsProp() {
13
- this.translationsData = JSON.parse(this.translations);
14
- }
15
- componentWillLoad() {
16
- this.parseManeuverProp(), this.parseTranslationsProp();
17
- }
18
- /**
19
- * Get maneuver name.
20
- *
21
- * @returns {string}
22
- */
23
- getManeuverName(t) {
24
- if (t.includes("straight"))
25
- return "straight";
26
- if (t.includes("sharp right"))
27
- return "sharp-right";
28
- if (t.includes("sharp left"))
29
- return "sharp-left";
30
- if (t.includes("slight right"))
31
- return "slight-right";
32
- if (t.includes("slight left"))
33
- return "slight-left";
34
- if (t.includes("right"))
35
- return "right";
36
- if (t.includes("left"))
37
- return "left";
38
- if (t.includes("uturn"))
39
- return "u-turn";
40
- if (t.includes("depart"))
41
- return "straight";
42
- }
43
- render() {
44
- return this.maneuverData && this.translationsData ? this.renderManeuver() : null;
45
- }
46
- /**
47
- * Render step.
48
- *
49
- * @returns {JSX.Element}
50
- */
51
- renderManeuver() {
52
- const t = {
53
- straight: this.translationsData.continueStraightAhead,
54
- left: `${this.translationsData.goLeft} ${this.translationsData.andContinue}`,
55
- "sharp-left": `${this.translationsData.goSharpLeft} ${this.translationsData.andContinue}`,
56
- "slight-left": `${this.translationsData.goSlightLeft} ${this.translationsData.andContinue}`,
57
- right: `${this.translationsData.goRight} ${this.translationsData.andContinue}`,
58
- "sharp-right": `${this.translationsData.goSharpRight} ${this.translationsData.andContinue}`,
59
- "slight-right": `${this.translationsData.goSlightRight} ${this.translationsData.andContinue}`,
60
- "u-turn": `${this.translationsData.turnAround} ${this.translationsData.andContinue}`
61
- // 'Turn around and continue'
62
- }, a = this.getManeuverName(this.maneuverData.maneuver.toLowerCase()), n = `arrow-${a}`, e = this.maneuverData.instructions ? this.maneuverData.instructions : t[a];
63
- return i(r, null, i("div", { class: "icon" }, a ? i("mi-icon", { part: "maneuver-icon", "icon-name": n }) : null), i("div", { class: "description" }, i("p", { part: "maneuver-description" }, e), i("div", { class: "description__distance" }, i("mi-distance", { part: "maneuver-description-distance", meters: this.maneuverData.distance.value, unit: this.unit }), i("span", { part: "maneuver-description-distance-border", class: "description__distance-border" }))));
64
- }
65
- static get watchers() {
66
- return {
67
- maneuver: ["parseManeuverProp"],
68
- translations: ["parseTranslationsProp"]
69
- };
70
- }
71
- };
72
- h.style = l;
73
- export {
74
- h as mi_route_instructions_maneuver_legacy
75
- };
@@ -1,73 +0,0 @@
1
- import { r as s, h as i, H as r } from "./webcomponent-592597b2.mjs";
2
- import { U as o } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
3
- const l = ':host{display:flex;padding-top:12px;padding-bottom:12px;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.icon{width:48px;display:flex;justify-content:center}.icon mi-icon{width:24px;height:24px}.description{display:flex;flex-direction:column;flex:1}.description p{margin:0;padding-right:16px;font-size:0.875rem;word-break:break-all}.description__distance{display:flex;align-items:center}.description__distance mi-distance{font-size:0.75rem;padding-right:12px}.description__distance-border{flex:1;width:100%;height:0;border-bottom:1px solid #e5e7eb}', h = class {
4
- constructor(t) {
5
- s(this, t), this.maneuver = void 0, this.maneuverData = void 0, this.translations = void 0, this.translationsData = void 0, this.unit = o.Metric;
6
- }
7
- parseManeuverProp() {
8
- this.maneuverData = JSON.parse(this.maneuver);
9
- }
10
- parseTranslationsProp() {
11
- this.translationsData = JSON.parse(this.translations);
12
- }
13
- componentWillLoad() {
14
- this.parseManeuverProp(), this.parseTranslationsProp();
15
- }
16
- /**
17
- * Get maneuver name.
18
- *
19
- * @returns {string}
20
- */
21
- getManeuverName(t) {
22
- if (t.includes("straight"))
23
- return "straight";
24
- if (t.includes("sharp right"))
25
- return "sharp-right";
26
- if (t.includes("sharp left"))
27
- return "sharp-left";
28
- if (t.includes("slight right"))
29
- return "slight-right";
30
- if (t.includes("slight left"))
31
- return "slight-left";
32
- if (t.includes("right"))
33
- return "right";
34
- if (t.includes("left"))
35
- return "left";
36
- if (t.includes("uturn"))
37
- return "u-turn";
38
- if (t.includes("depart"))
39
- return "straight";
40
- }
41
- render() {
42
- return this.maneuverData && this.translationsData ? this.renderManeuver() : null;
43
- }
44
- /**
45
- * Render step.
46
- *
47
- * @returns {JSX.Element}
48
- */
49
- renderManeuver() {
50
- const t = {
51
- straight: this.translationsData.continueStraightAhead,
52
- left: `${this.translationsData.goLeft} ${this.translationsData.andContinue}`,
53
- "sharp-left": `${this.translationsData.goSharpLeft} ${this.translationsData.andContinue}`,
54
- "slight-left": `${this.translationsData.goSlightLeft} ${this.translationsData.andContinue}`,
55
- right: `${this.translationsData.goRight} ${this.translationsData.andContinue}`,
56
- "sharp-right": `${this.translationsData.goSharpRight} ${this.translationsData.andContinue}`,
57
- "slight-right": `${this.translationsData.goSlightRight} ${this.translationsData.andContinue}`,
58
- "u-turn": `${this.translationsData.turnAround} ${this.translationsData.andContinue}`
59
- // 'Turn around and continue'
60
- }, a = this.getManeuverName(this.maneuverData.maneuver.toLowerCase()), n = `arrow-${a}`, e = this.maneuverData.instructions ? this.maneuverData.instructions : t[a];
61
- return i(r, null, i("div", { class: "icon" }, a ? i("mi-icon", { part: "maneuver-icon", "icon-name": n }) : null), i("div", { class: "description" }, i("p", { part: "maneuver-description" }, e), i("div", { class: "description__distance" }, i("mi-distance", { part: "maneuver-description-distance", meters: this.maneuverData.distance.value, unit: this.unit }), i("span", { part: "maneuver-description-distance-border", class: "description__distance-border" }))));
62
- }
63
- static get watchers() {
64
- return {
65
- maneuver: ["parseManeuverProp"],
66
- translations: ["parseTranslationsProp"]
67
- };
68
- }
69
- };
70
- h.style = l;
71
- export {
72
- h as mi_route_instructions_maneuver_legacy
73
- };
@@ -1,75 +0,0 @@
1
- import { r, h as n, H as e } from "./reactcomponent-0e140537.mjs";
2
- import { U as o } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
3
- import "react";
4
- import "react-dom";
5
- const h = ":host{display:grid;gap:24px;grid-auto-flow:column;align-items:center;grid-template-columns:24px 1fr}.icon{width:24px;height:24px}.description{font-size:16px;display:grid;gap:8px;height:-moz-fit-content;height:fit-content}.description__text{margin:0;font-size:16px;word-break:break-all}.description mi-distance{font-size:12px;color:#6b7280}", u = class {
6
- constructor(t) {
7
- r(this, t), this.maneuver = void 0, this.maneuverData = void 0, this.translations = void 0, this.translationsData = void 0, this.unit = o.Metric;
8
- }
9
- parseManeuverProp() {
10
- this.maneuverData = JSON.parse(this.maneuver);
11
- }
12
- parseTranslationsProp() {
13
- this.translationsData = JSON.parse(this.translations);
14
- }
15
- componentWillLoad() {
16
- this.parseManeuverProp(), this.parseTranslationsProp();
17
- }
18
- /**
19
- * Get maneuver name.
20
- *
21
- * @returns {string}
22
- */
23
- getManeuverName(t) {
24
- if (t.includes("straight"))
25
- return "straight";
26
- if (t.includes("sharp right"))
27
- return "sharp-right";
28
- if (t.includes("sharp left"))
29
- return "sharp-left";
30
- if (t.includes("slight right"))
31
- return "slight-right";
32
- if (t.includes("slight left"))
33
- return "slight-left";
34
- if (t.includes("right"))
35
- return "right";
36
- if (t.includes("left"))
37
- return "left";
38
- if (t.includes("uturn"))
39
- return "u-turn";
40
- if (t.includes("depart"))
41
- return "straight";
42
- }
43
- render() {
44
- return this.maneuverData && this.translationsData ? this.renderManeuver() : null;
45
- }
46
- /**
47
- * Render step.
48
- *
49
- * @returns {JSX.Element}
50
- */
51
- renderManeuver() {
52
- const t = {
53
- straight: this.translationsData.continueStraightAhead,
54
- left: `${this.translationsData.goLeft} ${this.translationsData.andContinue}`,
55
- "sharp-left": `${this.translationsData.goSharpLeft} ${this.translationsData.andContinue}`,
56
- "slight-left": `${this.translationsData.goSlightLeft} ${this.translationsData.andContinue}`,
57
- right: `${this.translationsData.goRight} ${this.translationsData.andContinue}`,
58
- "sharp-right": `${this.translationsData.goSharpRight} ${this.translationsData.andContinue}`,
59
- "slight-right": `${this.translationsData.goSlightRight} ${this.translationsData.andContinue}`,
60
- "u-turn": `${this.translationsData.turnAround} ${this.translationsData.andContinue}`
61
- // 'Turn around and continue'
62
- }, a = this.getManeuverName(this.maneuverData.maneuver.toLowerCase()), i = `arrow-${a}`, s = this.maneuverData.instructions ? this.maneuverData.instructions : t[a];
63
- return n(e, null, n("div", { class: "icon" }, a ? n("mi-icon", { part: "maneuver-icon", "icon-name": i }) : null), n("div", { class: "description" }, n("div", { class: "description__text" }, s), n("mi-distance", { part: "maneuver-description-distance", meters: this.maneuverData.distance.value, unit: this.unit })));
64
- }
65
- static get watchers() {
66
- return {
67
- maneuver: ["parseManeuverProp"],
68
- translations: ["parseTranslationsProp"]
69
- };
70
- }
71
- };
72
- u.style = h;
73
- export {
74
- u as mi_route_instructions_maneuver
75
- };
@@ -1,73 +0,0 @@
1
- import { r, h as n, H as e } from "./webcomponent-592597b2.mjs";
2
- import { U as o } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
3
- const h = ":host{display:grid;gap:24px;grid-auto-flow:column;align-items:center;grid-template-columns:24px 1fr}.icon{width:24px;height:24px}.description{font-size:16px;display:grid;gap:8px;height:-moz-fit-content;height:fit-content}.description__text{margin:0;font-size:16px;word-break:break-all}.description mi-distance{font-size:12px;color:#6b7280}", u = class {
4
- constructor(t) {
5
- r(this, t), this.maneuver = void 0, this.maneuverData = void 0, this.translations = void 0, this.translationsData = void 0, this.unit = o.Metric;
6
- }
7
- parseManeuverProp() {
8
- this.maneuverData = JSON.parse(this.maneuver);
9
- }
10
- parseTranslationsProp() {
11
- this.translationsData = JSON.parse(this.translations);
12
- }
13
- componentWillLoad() {
14
- this.parseManeuverProp(), this.parseTranslationsProp();
15
- }
16
- /**
17
- * Get maneuver name.
18
- *
19
- * @returns {string}
20
- */
21
- getManeuverName(t) {
22
- if (t.includes("straight"))
23
- return "straight";
24
- if (t.includes("sharp right"))
25
- return "sharp-right";
26
- if (t.includes("sharp left"))
27
- return "sharp-left";
28
- if (t.includes("slight right"))
29
- return "slight-right";
30
- if (t.includes("slight left"))
31
- return "slight-left";
32
- if (t.includes("right"))
33
- return "right";
34
- if (t.includes("left"))
35
- return "left";
36
- if (t.includes("uturn"))
37
- return "u-turn";
38
- if (t.includes("depart"))
39
- return "straight";
40
- }
41
- render() {
42
- return this.maneuverData && this.translationsData ? this.renderManeuver() : null;
43
- }
44
- /**
45
- * Render step.
46
- *
47
- * @returns {JSX.Element}
48
- */
49
- renderManeuver() {
50
- const t = {
51
- straight: this.translationsData.continueStraightAhead,
52
- left: `${this.translationsData.goLeft} ${this.translationsData.andContinue}`,
53
- "sharp-left": `${this.translationsData.goSharpLeft} ${this.translationsData.andContinue}`,
54
- "slight-left": `${this.translationsData.goSlightLeft} ${this.translationsData.andContinue}`,
55
- right: `${this.translationsData.goRight} ${this.translationsData.andContinue}`,
56
- "sharp-right": `${this.translationsData.goSharpRight} ${this.translationsData.andContinue}`,
57
- "slight-right": `${this.translationsData.goSlightRight} ${this.translationsData.andContinue}`,
58
- "u-turn": `${this.translationsData.turnAround} ${this.translationsData.andContinue}`
59
- // 'Turn around and continue'
60
- }, a = this.getManeuverName(this.maneuverData.maneuver.toLowerCase()), i = `arrow-${a}`, s = this.maneuverData.instructions ? this.maneuverData.instructions : t[a];
61
- return n(e, null, n("div", { class: "icon" }, a ? n("mi-icon", { part: "maneuver-icon", "icon-name": i }) : null), n("div", { class: "description" }, n("div", { class: "description__text" }, s), n("mi-distance", { part: "maneuver-description-distance", meters: this.maneuverData.distance.value, unit: this.unit })));
62
- }
63
- static get watchers() {
64
- return {
65
- maneuver: ["parseManeuverProp"],
66
- translations: ["parseTranslationsProp"]
67
- };
68
- }
69
- };
70
- u.style = h;
71
- export {
72
- u as mi_route_instructions_maneuver
73
- };