@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,236 +0,0 @@
1
- import { r as o, c as a, h as e } from "./reactcomponent-0e140537.mjs";
2
- import { U as n } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
3
- import { c as p } from "./utils-ae714467-b07fc3be.mjs";
4
- import "react";
5
- import "react-dom";
6
- const l = ':host{display:block;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"}.step{display:grid;gap:8px;justify-items:center}.step__info{display:grid;grid-auto-flow:column;gap:8px;align-items:center}.step__info.destination{grid-auto-flow:row;justify-items:center}.step__destination{display:grid;gap:8px;align-items:center;justify-content:center;grid-auto-flow:column}.step__action-icon--circled{position:relative}.step__action-icon mi-icon{display:block;width:40px;height:40px}.step__heading{font-size:1.25rem;margin:0}.step__heading>span{font-size:0.875rem;color:#6b7280}.step__travel-mode{display:flex;justify-content:center;align-items:center;position:relative;min-height:72px}.step__travel-mode::before{position:absolute;width:calc(50% - 2px);left:0;height:100%;content:""}.step__travel-mode--dotted::before{border-right:4px dotted #bfdbfe}.step__travel-mode--solid::before{border-right:4px solid #bfdbfe}.step__travel-mode-icon{position:absolute;left:50%;top:24px;transform:translateX(-50%);background-color:#fcfcfc;padding:3px;border-radius:4px}.step__travel-mode-icon mi-icon{width:16px;height:16px;background-color:#6b7280;display:block}.step__short-name{margin-right:4px;padding:2px 4px;font-size:0.875rem;color:#fcfcfc;background-color:#6b7280;border-radius:2px}.step__distance-duration{color:#6b7280;font-size:0.875rem}.step__toggle{display:grid;justify-content:center}.step__toggle mi-icon{width:24px;height:24px;display:block}.step__substeps{display:grid;gap:32px}.step__details{display:grid;gap:24px;width:100%}', d = class {
7
- constructor(t) {
8
- o(this, t), this.stepClicked = a(this, "stepClicked", 7), this.substepsToggled = a(this, "substepsToggled", 7), this.isInternetExplorer = p(), this.step = void 0, this.stepData = void 0, this.hideIndoorSubsteps = !0, this.fromRouteContext = "", this.fromTravelMode = void 0, this.fromTransitStop = void 0, this.destinationLocation = void 0, this.unit = navigator.language === "en-US" ? n.Imperial : n.Metric, this.translations = void 0, this.translationsData = void 0, this.substepsAreOpen = !1;
9
- }
10
- parseStepProp() {
11
- this.step && (this.stepData = JSON.parse(this.step));
12
- }
13
- parseTranslationsProp() {
14
- this.translations && (this.translationsData = JSON.parse(this.translations));
15
- }
16
- /**
17
- * Programmatically open the substeps.
18
- */
19
- openSubsteps() {
20
- this.substepsAreOpen = !0;
21
- }
22
- /**
23
- * Programmatically close the substeps.
24
- */
25
- closeSubsteps() {
26
- this.substepsAreOpen = !1;
27
- }
28
- componentWillLoad() {
29
- this.parseStepProp(), this.parseTranslationsProp();
30
- }
31
- /**
32
- * Render if there is step data.
33
- */
34
- render() {
35
- return this.stepData && this.translationsData ? this.renderStep() : null;
36
- }
37
- /**
38
- * Emits stepClicked event (if click target is not related to an action)
39
- * @param event Event
40
- */
41
- stepClickHandler(t) {
42
- if (Array.from(t.target.classList).includes("icon-toggle"))
43
- return;
44
- let s = null;
45
- t.target.dataset.maneuverIndex !== void 0 && (s = parseInt(t.target.dataset.maneuverIndex)), this.stepClicked.emit({ maneuverIndex: s });
46
- }
47
- /**
48
- * Render step part depending on travel mode.
49
- *
50
- * @returns {JSX.Element}
51
- */
52
- renderStep() {
53
- switch (this.stepData.travel_mode.toUpperCase()) {
54
- case "DRIVING":
55
- return this.renderDrivingStep();
56
- case "WALKING":
57
- return this.renderWalkingStep();
58
- case "BICYCLING":
59
- return this.renderBicyclingStep();
60
- case "TRANSIT":
61
- return this.renderTransitStep();
62
- case "DESTINATION":
63
- return this.renderDestinationStep();
64
- default:
65
- return e("div", null, "Unknown travel mode: ", this.stepData.travel_mode);
66
- }
67
- }
68
- /**
69
- * Render the travel mode indicator and dotted/solid line.
70
- *
71
- * @returns {JSX.Element}
72
- */
73
- renderTravelMode() {
74
- if (this.isInternetExplorer)
75
- return null;
76
- let t;
77
- switch (this.stepData.travel_mode.toUpperCase()) {
78
- case "DRIVING":
79
- t = "car";
80
- break;
81
- case "WALKING":
82
- t = "walk";
83
- break;
84
- case "BICYCLING":
85
- t = "bike";
86
- break;
87
- case "TRANSIT":
88
- t = this.getTransitVehicleIconName();
89
- break;
90
- case "DESTINATION":
91
- t = "logo";
92
- break;
93
- }
94
- return e("span", { part: "step-travel-mode", class: `step__travel-mode step__travel-mode--${this.stepData.travel_mode.toUpperCase() === "TRANSIT" ? "solid" : "dotted"}` }, e("span", { class: "step__travel-mode-icon" }, e("mi-icon", { part: "step-travel-mode-icon", "icon-name": t })));
95
- }
96
- /**
97
- * Get icon name for transit vehicle.
98
- *
99
- * @returns {string}
100
- */
101
- getTransitVehicleIconName() {
102
- var t, s;
103
- const i = (s = (t = this.stepData.transit_information) === null || t === void 0 ? void 0 : t.line.vehicle) === null || s === void 0 ? void 0 : s.type.toLowerCase();
104
- return i && ["boat", "bus", "railway", "train", "subway"].some((r) => r === i) ? i : "transit";
105
- }
106
- /**
107
- * Toggles visibility of sub steps (steps in steps)
108
- */
109
- toggleSubsteps() {
110
- this.substepsToggled.emit(), this.substepsAreOpen = !this.substepsAreOpen;
111
- }
112
- /**
113
- * Render substeps if they should be visible.
114
- *
115
- * @returns {JSX.Element}
116
- */
117
- renderSubsteps() {
118
- var t;
119
- return this.substepsAreOpen === !0 ? e("div", { class: "step__substeps" }, (t = this.stepData.steps) === null || t === void 0 ? void 0 : t.map((s, i) => e("mi-route-instructions-maneuver", {
120
- "data-maneuver-index": i,
121
- maneuver: JSON.stringify(s),
122
- translations: this.translations,
123
- unit: this.unit,
124
- // @ts-ignore
125
- exportparts: `
126
- maneuver-icon,
127
- maneuver-description,
128
- maneuver-description-distance,
129
- maneuver-description-distance-border`
130
- }))) : null;
131
- }
132
- /**
133
- * Render the toggle button for the sub step expander.
134
- *
135
- * @returns {JSX.Element}
136
- */
137
- renderToggleButton() {
138
- var t;
139
- return ((t = this.stepData.steps) === null || t === void 0 ? void 0 : t.length) <= 0 ? null : e("span", { class: "step__toggle", onClick: () => this.toggleSubsteps() }, this.substepsAreOpen ? e("mi-icon", { part: "step-toggle", "icon-name": "minimize" }) : e("mi-icon", { part: "step-toggle", "icon-name": "maximize" }));
140
- }
141
- /**
142
- * Render distance part.
143
- *
144
- * @returns {JSX.Element}
145
- */
146
- renderDistance() {
147
- return e("span", { part: "step-info", class: "step__distance-duration" }, e("mi-distance", { meters: this.stepData.distance.value, unit: this.unit }), e("br", null));
148
- }
149
- /**
150
- * Render toggle and substeps.
151
- *
152
- * @returns {JSX.Element}
153
- */
154
- renderToggleAndSubsteps() {
155
- return e("div", { class: "step__details" }, this.renderToggleButton(), this.renderSubsteps());
156
- }
157
- /**
158
- * Render a driving step.
159
- *
160
- * @returns {JSX.Element}
161
- */
162
- renderDrivingStep() {
163
- return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, e("div", { part: "step-description", class: "step__description" }, this.renderDistance()), e("div", { class: "step__info" }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "car" })), e("div", { part: "step-heading", class: "step__heading" }, this.getStepHeading())), this.renderToggleAndSubsteps());
164
- }
165
- /**
166
- * Get display heading.
167
- *
168
- * @returns {string}
169
- */
170
- getStepHeading() {
171
- var t;
172
- const s = {
173
- driving: this.translationsData.drive,
174
- walking: this.translationsData.walk,
175
- bicycling: this.translationsData.bike
176
- };
177
- return !((t = this.stepData.steps[0]) === null || t === void 0) && t.instructions ? this.stepData.steps[0].instructions : s[this.stepData.travel_mode.toLowerCase()];
178
- }
179
- /**
180
- * Render a walking step.
181
- *
182
- *
183
- * @returns {JSX.Element}
184
- */
185
- renderWalkingStep() {
186
- let t, s;
187
- return this.stepData.parking === !0 ? (t = `${this.translationsData.park} ${this.stepData.label ? ` ${this.translationsData.at} ` + this.stepData.label : ""}`, s = "park") : this.stepData.highway && this.stepData.highway.toUpperCase() === "STEPS" ? (t = `${this.translationsData.takeStaircaseToLevel} ${this.stepData.end_location.floor_name}`, s = "stairs") : this.stepData.highway && this.stepData.highway.toUpperCase() === "LADDER" ? (t = `${this.translationsData.takeLadderToLevel} ${this.stepData.end_location.floor_name}`, s = "ladder") : this.stepData.highway && this.stepData.highway.toUpperCase() === "ESCALATOR" ? (t = `${this.translationsData.takeEscalatorToLevel} ${this.stepData.end_location.floor_name}`, s = "escalator") : this.stepData.highway && this.stepData.highway.toUpperCase() === "WHEELCHAIRRAMP" ? (t = `${this.translationsData.takeWheelchairRampToLevel} ${this.stepData.end_location.floor_name}`, s = "wheelchair-ramp") : this.stepData.highway && this.stepData.highway.toUpperCase() === "WHEELCHAIRLIFT" ? (t = `${this.translationsData.takeWheelchairLiftToLevel} ${this.stepData.end_location.floor_name}`, s = "wheelchair-lift") : this.stepData.highway && this.stepData.highway.toUpperCase() === "ELEVATOR" ? (t = `${this.translationsData.takeElevatorToLevel} ${this.stepData.end_location.floor_name}`, s = "elevator") : this.fromRouteContext === "InsideBuilding" && this.stepData.route_context === "Outside" ? (t = this.addStepContextNameToHeading(this.translationsData.exit, this.stepData.start_context), s = "exit") : this.fromRouteContext === "InsideBuilding" && this.stepData.route_context === "InsideBuilding" ? (t = this.getStepHeading(), s = "walk") : this.fromRouteContext === "Outside" && this.stepData.route_context === "Outside" && this.fromTravelMode.toUpperCase() === "TRANSIT" ? (t = this.fromTransitStop, s = "transit-stop") : this.fromRouteContext === "Outside" && this.stepData.route_context === "Outside" ? (t = this.getStepHeading(), s = "walk") : this.fromRouteContext === "Outside" && this.stepData.route_context === "InsideBuilding" ? (t = this.addStepContextNameToHeading(this.translationsData.enter, this.stepData.end_context), s = "enter") : (t = this.fromRouteContext, s = "circle"), e("div", { class: "step", onClick: (i) => this.stepClickHandler(i) }, e("div", { part: "step-description", class: "step__description" }, this.renderDistance()), e("div", { class: "step__info" }, this.isInternetExplorer ? null : e("span", { class: `step__action-icon ${s !== "circle" ? "step__action-icon--circled" : ""}` }, e("mi-icon", { "icon-name": s })), e("div", { part: "step-heading", class: "step__heading" }, t)), this.renderToggleAndSubsteps());
188
- }
189
- /**
190
- * Add building or venue name to the step heading
191
- * @param {string} heading
192
- * @param {StepContext} stepContext
193
- * @returns
194
- */
195
- addStepContextNameToHeading(t, s) {
196
- return s && (s.building ? t += ` ${s.building.buildingInfo.name} ${this.translationsData.building}` : s.venue && (t += ` ${s.venue.venueInfo.name} ${this.translationsData.venue}`)), t;
197
- }
198
- /**
199
- * Render a bicycling step.
200
- *
201
- * @returns {JSX.Element}
202
- */
203
- renderBicyclingStep() {
204
- return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, e("div", { part: "step-description", class: "step__description" }, this.renderDistance()), e("div", { class: "step__info" }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "bike" })), e("div", { part: "step-heading", class: "step__heading" }, this.getStepHeading())), this.renderToggleAndSubsteps());
205
- }
206
- /**
207
- * Render the destination step.
208
- *
209
- * @returns {JSX.Element}
210
- */
211
- renderDestinationStep() {
212
- return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, e("div", { class: "step__info destination" }, e("div", { class: "step__destination" }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "logo" })), e("div", { part: "step-heading", class: "step__heading" }, this.translationsData.destination)), e("div", { part: "step-location", class: "step__location" }, this.destinationLocation)), this.renderToggleAndSubsteps());
213
- }
214
- /**
215
- * Render a transit step.
216
- *
217
- * @returns {JSX.Element}
218
- */
219
- renderTransitStep() {
220
- var t, s;
221
- return e("div", { class: "step", onClick: (i) => this.stepClickHandler(i) }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "transit-stop" })), e("h3", { part: "step-heading", class: "step__heading" }, this.stepData.instructions), this.renderTravelMode(), e("div", { part: "step-description", class: "step__description" }, this.stepData.transit_information.line.short_name ? e("span", { class: "step__short-name", style: {
222
- backgroundColor: !((t = this.stepData.transit_information.line) === null || t === void 0) && t.color ? this.stepData.transit_information.line.color : null,
223
- color: !((s = this.stepData.transit_information.line) === null || s === void 0) && s.text_color ? this.stepData.transit_information.line.text_color : null
224
- } }, this.stepData.transit_information.line.short_name) : null, this.stepData.transit_information.headsign ? this.stepData.transit_information.headsign : null, e("br", null), e("span", { part: "step-info", class: "step__distance-duration" }, e("mi-time", { seconds: this.stepData.duration.value, translations: `{"days":"${this.translationsData.days}","hours":"${this.translationsData.hours}","minutes":"${this.translationsData.minutes}"}` }), " · ", this.stepData.transit_information.num_stops ? this.stepData.transit_information.num_stops : null, " ", this.translationsData.stops ? this.translationsData.stops : null)), this.renderToggleAndSubsteps());
225
- }
226
- static get watchers() {
227
- return {
228
- step: ["parseStepProp"],
229
- translations: ["parseTranslationsProp"]
230
- };
231
- }
232
- };
233
- d.style = l;
234
- export {
235
- d as mi_route_instructions_step
236
- };
@@ -1,142 +0,0 @@
1
- import { r as u, c as g, h as o, H as m } from "./reactcomponent-0e140537.mjs";
2
- import { R as v } from "./route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs";
3
- import { U as f } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
4
- import { c as S } from "./utils-ae714467-b07fc3be.mjs";
5
- import "react";
6
- import "react-dom";
7
- const x = ':host{display:block;background-color:#fcfcfc;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"}:host mi-route-instructions-step:hover{cursor:pointer;background-color:#f9fafb;transition:300ms ease}:host mi-route-instructions-step.active{background-color:#f3f4f6;transition:none;cursor:default}:host .instructions-destination{display:flex}:host .instructions-destination-icon{width:40px;display:flex;justify-content:center;align-items:center}:host .instructions-destination-icon mi-icon{width:24px;height:24px;background-color:#1c1917}:host .instructions-destination-details{flex:1;padding:12px}:host .instructions-destination-details mi-location-info{font-size:0.875rem}', I = class {
8
- constructor(t) {
9
- u(this, t), this.clicked = g(this, "clicked", 7), this.miStepElements = [], this.lastStepRouteContext = null, this.lastStepTravelMode = null, this.lastStepTransitStop = null, this.activeStep = {
10
- legIndex: 0,
11
- stepIndex: 0
12
- }, this.unit = f.Metric, this.route = void 0, this.hideIndoorSubsteps = !1, this.travelMode = v.Walking, this.originLocation = void 0, this.originName = void 0, this.destinationLocation = void 0, this.destinationName = void 0, this.translations = {
13
- walk: "Walk",
14
- bike: "Bike",
15
- transit: "Transit",
16
- drive: "Drive",
17
- destination: "You have arrived",
18
- leave: "Leave",
19
- from: "From",
20
- park: "Park",
21
- at: "at",
22
- building: "Building",
23
- venue: "Venue",
24
- takeStaircaseToLevel: "Take staircase to level",
25
- takeLadderToLevel: "Take the ladder to level",
26
- takeElevatorToLevel: "Take elevator to level",
27
- takeEscalatorToLevel: "Take escalator to level",
28
- takeWheelchairLiftToLevel: "Take wheelchair lift to level",
29
- takeWheelchairRampToLevel: "Take wheelchair ramp to level",
30
- exit: "Exit",
31
- enter: "Enter",
32
- stops: "stops",
33
- andContinue: "and continue",
34
- continueStraightAhead: "Continue straight ahead",
35
- goLeft: "Go left",
36
- goSharpLeft: "Go sharp left",
37
- goSlightLeft: "Go slight left",
38
- goRight: "Go right",
39
- goSharpRight: "Go sharp right",
40
- goSlightRight: "Go slight right",
41
- turnAround: "Turn around",
42
- days: "d",
43
- hours: "h",
44
- minutes: "min"
45
- };
46
- }
47
- componentDidRender() {
48
- this.miStepElements.forEach((t) => {
49
- t.hideIndoorSubsteps = this.hideIndoorSubsteps;
50
- });
51
- }
52
- /**
53
- * Transform the step in legs to a flat array of steps.
54
- *
55
- * @returns {Step[]}
56
- */
57
- getRouteSteps() {
58
- return this.route ? this.route.legs.reduce((t, i, e) => {
59
- for (const s in i.steps) {
60
- const n = i.steps[s];
61
- n.originalLegIndex = e, n.originalStepIndex = parseInt(s), t.push(n);
62
- }
63
- return t;
64
- }, []) : [];
65
- }
66
- /**
67
- * Updates the activeStep attribute and emits an object with leg, step and maneuver index information.
68
- *
69
- * @param {CustomEvent<any>} event Step object.
70
- * @param {number} stepIndex step index.
71
- */
72
- stepClickedHandler(t, i) {
73
- const e = this.getRouteSteps()[i];
74
- this.activeStep = {
75
- legIndex: e.originalLegIndex,
76
- stepIndex: e.originalStepIndex
77
- }, this.clicked.emit({
78
- legIndex: e.originalLegIndex,
79
- stepIndex: e.originalStepIndex,
80
- maneuverIndex: t.detail.maneuverIndex
81
- });
82
- }
83
- /**
84
- * Check if the step is active.
85
- *
86
- * @param {Step} step
87
- * @returns {boolean}
88
- */
89
- isActiveStep(t) {
90
- return this.activeStep ? this.activeStep.legIndex === t.originalLegIndex && this.activeStep.stepIndex === t.originalStepIndex : !1;
91
- }
92
- render() {
93
- return this.route ? this.renderInstructions() : null;
94
- }
95
- /**
96
- * Render instructions.
97
- *
98
- * @returns {JSX.Element}
99
- */
100
- renderInstructions() {
101
- return o(m, null, this.getRouteSteps().map((t, i) => {
102
- var e, s, n, a, r;
103
- const d = !((s = (e = this.originLocation) === null || e === void 0 ? void 0 : e.properties) === null || s === void 0) && s.name ? this.originLocation.properties.name : this.originName || "", c = t.originalLegIndex === 0 && t.originalStepIndex === 0 ? d : this.lastStepRouteContext, p = this.lastStepTravelMode, h = this.lastStepTransitStop;
104
- return this.lastStepRouteContext = t.route_context, this.lastStepTravelMode = t.travel_mode, this.lastStepTransitStop = !((a = (n = t.transit_information) === null || n === void 0 ? void 0 : n.arrival_stop) === null || a === void 0) && a.name ? (r = t.transit_information) === null || r === void 0 ? void 0 : r.arrival_stop.name : null, o("mi-route-instructions-step-legacy", {
105
- ref: (l) => this.miStepElements.push(l),
106
- "from-travel-mode": p,
107
- "from-route-context": c,
108
- "from-transit-stop": h,
109
- step: JSON.stringify(t),
110
- translations: JSON.stringify(this.translations),
111
- unit: this.unit,
112
- onStepClicked: (l) => this.stepClickedHandler(l, i),
113
- class: this.isActiveStep(t) ? "active" : "",
114
- part: this.isActiveStep(t) ? "step active" : "step",
115
- // @ts-ignore
116
- exportparts: `
117
- step-toggle,
118
- step-heading,
119
- step-description,
120
- step-info,
121
- step-travel-mode,
122
- step-travel-mode-icon,
123
- maneuver-icon,
124
- maneuver-description,
125
- maneuver-description-distance,
126
- maneuver-description-distance-border`
127
- });
128
- }), this.destinationLocation || this.destinationName ? this.renderDestination() : null);
129
- }
130
- /**
131
- * Render destination.
132
- *
133
- * @returns {JSX.Element}
134
- */
135
- renderDestination() {
136
- return o("div", { class: "instructions-destination" }, o("div", { class: "instructions-destination-icon" }, S() ? null : o("mi-icon", { "icon-name": "marker" })), o("div", { part: "instructions-destination", class: "instructions-destination-details" }, this.destinationLocation ? this.destinationLocation.properties.name : this.destinationName, this.destinationLocation ? o("mi-location-info", { part: "instructions-destination-info", location: this.destinationLocation }) : null));
137
- }
138
- };
139
- I.style = x;
140
- export {
141
- I as mi_route_instructions
142
- };
@@ -1,140 +0,0 @@
1
- import { r as u, c as g, h as s, H as v } from "./webcomponent-592597b2.mjs";
2
- import { R as m } from "./route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs";
3
- import { U as f } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
4
- import { c as S } from "./utils-ae714467-b07fc3be.mjs";
5
- const x = ':host{display:block;background-color:#fcfcfc;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"}:host mi-route-instructions-step:hover{cursor:pointer;background-color:#f9fafb;transition:300ms ease}:host mi-route-instructions-step.active{background-color:#f3f4f6;transition:none;cursor:default}:host .instructions-destination{display:flex}:host .instructions-destination-icon{width:40px;display:flex;justify-content:center;align-items:center}:host .instructions-destination-icon mi-icon{width:24px;height:24px;background-color:#1c1917}:host .instructions-destination-details{flex:1;padding:12px}:host .instructions-destination-details mi-location-info{font-size:0.875rem}', I = class {
6
- constructor(t) {
7
- u(this, t), this.clicked = g(this, "clicked", 7), this.miStepElements = [], this.lastStepRouteContext = null, this.lastStepTravelMode = null, this.lastStepTransitStop = null, this.activeStep = {
8
- legIndex: 0,
9
- stepIndex: 0
10
- }, this.unit = f.Metric, this.route = void 0, this.hideIndoorSubsteps = !1, this.travelMode = m.Walking, this.originLocation = void 0, this.originName = void 0, this.destinationLocation = void 0, this.destinationName = void 0, this.translations = {
11
- walk: "Walk",
12
- bike: "Bike",
13
- transit: "Transit",
14
- drive: "Drive",
15
- destination: "You have arrived",
16
- leave: "Leave",
17
- from: "From",
18
- park: "Park",
19
- at: "at",
20
- building: "Building",
21
- venue: "Venue",
22
- takeStaircaseToLevel: "Take staircase to level",
23
- takeLadderToLevel: "Take the ladder to level",
24
- takeElevatorToLevel: "Take elevator to level",
25
- takeEscalatorToLevel: "Take escalator to level",
26
- takeWheelchairLiftToLevel: "Take wheelchair lift to level",
27
- takeWheelchairRampToLevel: "Take wheelchair ramp to level",
28
- exit: "Exit",
29
- enter: "Enter",
30
- stops: "stops",
31
- andContinue: "and continue",
32
- continueStraightAhead: "Continue straight ahead",
33
- goLeft: "Go left",
34
- goSharpLeft: "Go sharp left",
35
- goSlightLeft: "Go slight left",
36
- goRight: "Go right",
37
- goSharpRight: "Go sharp right",
38
- goSlightRight: "Go slight right",
39
- turnAround: "Turn around",
40
- days: "d",
41
- hours: "h",
42
- minutes: "min"
43
- };
44
- }
45
- componentDidRender() {
46
- this.miStepElements.forEach((t) => {
47
- t.hideIndoorSubsteps = this.hideIndoorSubsteps;
48
- });
49
- }
50
- /**
51
- * Transform the step in legs to a flat array of steps.
52
- *
53
- * @returns {Step[]}
54
- */
55
- getRouteSteps() {
56
- return this.route ? this.route.legs.reduce((t, i, e) => {
57
- for (const o in i.steps) {
58
- const n = i.steps[o];
59
- n.originalLegIndex = e, n.originalStepIndex = parseInt(o), t.push(n);
60
- }
61
- return t;
62
- }, []) : [];
63
- }
64
- /**
65
- * Updates the activeStep attribute and emits an object with leg, step and maneuver index information.
66
- *
67
- * @param {CustomEvent<any>} event Step object.
68
- * @param {number} stepIndex step index.
69
- */
70
- stepClickedHandler(t, i) {
71
- const e = this.getRouteSteps()[i];
72
- this.activeStep = {
73
- legIndex: e.originalLegIndex,
74
- stepIndex: e.originalStepIndex
75
- }, this.clicked.emit({
76
- legIndex: e.originalLegIndex,
77
- stepIndex: e.originalStepIndex,
78
- maneuverIndex: t.detail.maneuverIndex
79
- });
80
- }
81
- /**
82
- * Check if the step is active.
83
- *
84
- * @param {Step} step
85
- * @returns {boolean}
86
- */
87
- isActiveStep(t) {
88
- return this.activeStep ? this.activeStep.legIndex === t.originalLegIndex && this.activeStep.stepIndex === t.originalStepIndex : !1;
89
- }
90
- render() {
91
- return this.route ? this.renderInstructions() : null;
92
- }
93
- /**
94
- * Render instructions.
95
- *
96
- * @returns {JSX.Element}
97
- */
98
- renderInstructions() {
99
- return s(v, null, this.getRouteSteps().map((t, i) => {
100
- var e, o, n, a, r;
101
- const d = !((o = (e = this.originLocation) === null || e === void 0 ? void 0 : e.properties) === null || o === void 0) && o.name ? this.originLocation.properties.name : this.originName || "", c = t.originalLegIndex === 0 && t.originalStepIndex === 0 ? d : this.lastStepRouteContext, p = this.lastStepTravelMode, h = this.lastStepTransitStop;
102
- return this.lastStepRouteContext = t.route_context, this.lastStepTravelMode = t.travel_mode, this.lastStepTransitStop = !((a = (n = t.transit_information) === null || n === void 0 ? void 0 : n.arrival_stop) === null || a === void 0) && a.name ? (r = t.transit_information) === null || r === void 0 ? void 0 : r.arrival_stop.name : null, s("mi-route-instructions-step-legacy", {
103
- ref: (l) => this.miStepElements.push(l),
104
- "from-travel-mode": p,
105
- "from-route-context": c,
106
- "from-transit-stop": h,
107
- step: JSON.stringify(t),
108
- translations: JSON.stringify(this.translations),
109
- unit: this.unit,
110
- onStepClicked: (l) => this.stepClickedHandler(l, i),
111
- class: this.isActiveStep(t) ? "active" : "",
112
- part: this.isActiveStep(t) ? "step active" : "step",
113
- // @ts-ignore
114
- exportparts: `
115
- step-toggle,
116
- step-heading,
117
- step-description,
118
- step-info,
119
- step-travel-mode,
120
- step-travel-mode-icon,
121
- maneuver-icon,
122
- maneuver-description,
123
- maneuver-description-distance,
124
- maneuver-description-distance-border`
125
- });
126
- }), this.destinationLocation || this.destinationName ? this.renderDestination() : null);
127
- }
128
- /**
129
- * Render destination.
130
- *
131
- * @returns {JSX.Element}
132
- */
133
- renderDestination() {
134
- return s("div", { class: "instructions-destination" }, s("div", { class: "instructions-destination-icon" }, S() ? null : s("mi-icon", { "icon-name": "marker" })), s("div", { part: "instructions-destination", class: "instructions-destination-details" }, this.destinationLocation ? this.destinationLocation.properties.name : this.destinationName, this.destinationLocation ? s("mi-location-info", { part: "instructions-destination-info", location: this.destinationLocation }) : null));
135
- }
136
- };
137
- I.style = x;
138
- export {
139
- I as mi_route_instructions
140
- };
@@ -1,48 +0,0 @@
1
- import { r as o, h as e } from "./reactcomponent-0e140537.mjs";
2
- import "react";
3
- import "react-dom";
4
- const n = '@charset "UTF-8";a.mi-button{cursor:default}.mi-button{border-radius:4px;border-width:1px;border-style:solid;font-family:Inter, -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";font-size:1rem;font-weight:500;padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:12px;display:inline-flex;align-items:center}.mi-button:disabled{opacity:0.48;cursor:not-allowed}.mi-button object{filter:invert(9%) sepia(13%) saturate(692%) hue-rotate(185deg) brightness(98%) contrast(91%);width:16px;height:16px}.mi-button--small{padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;font-size:0.875rem;height:32px}.mi-button--small object{width:16px;height:16px}.mi-button--large{padding-left:16px;padding-right:16px;font-size:1.25rem}.mi-button--large object{width:20px;height:20px}.mi-button--full-width{width:100%;justify-content:center}.mi-button--icon-left{padding-left:12px}.mi-button--icon-left object{margin-right:8px}.mi-button--icon-right{padding-right:12px}.mi-button--icon-right object{margin-left:8px}.mi-button--icon-both{padding-top:12px;padding-bottom:12px}.mi-button--icon-both object:first-of-type{margin-right:8px}.mi-button--icon-both object:last-of-type{margin-left:8px}.mi-button--base{background:linear-gradient(#f5f7fa, #ebeff5);color:#1e2025;border-color:#c8d0e0}.mi-button--base:not(:disabled):hover{background:linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-button--base:not(:disabled):active{background:linear-gradient(#dee3ed, #ebeff5)}.mi-button--primary{color:#ffffff;border-color:#20693e;background:linear-gradient(#3ba064, #2a844e)}.mi-button--primary object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--primary:not(:disabled):hover{background:linear-gradient(#2a844e, #20693e)}.mi-button--primary:not(:disabled):active{background:linear-gradient(#20693e, #2a844e)}.mi-button--delete{background:linear-gradient(#f55151, #de1b1b);color:#ffffff;border-color:#ba0d0d}.mi-button--delete object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--delete:not(:disabled):hover{background:linear-gradient(#de1b1b, #ba0d0d)}.mi-button--delete:not(:disabled):active{background:linear-gradient(#ba0d0d, #de1b1b)}.mi-button--outline{color:#3071d9;border-color:#3071d9;background-color:transparent}.mi-button--outline object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--outline:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--outline:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-button--link{color:#3071d9;border-style:none;background-color:transparent;cursor:pointer}.mi-button--link object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--link:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--link:disabled:hover{cursor:not-allowed}.mi-button--link:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}.scroll-buttons{height:100%;width:64px;background-color:#f9fafb;border-left:solid;border-color:#e5e7eb;border-width:1px;display:flex;flex-direction:column;align-items:center;justify-content:center}.scroll-buttons .btn{margin:8px}.scroll-buttons .btn-up::after{content:"↑"}.scroll-buttons .btn-down::after{content:"↓"}', r = class {
5
- constructor(t) {
6
- o(this, t), this.scrollContainerElementRef = void 0, this.scrollLength = 100;
7
- }
8
- addScrollEventListener() {
9
- this.scrollContainerElementRef.addEventListener("scroll", () => {
10
- this.updateScrollButtonsState();
11
- });
12
- }
13
- /**
14
- * Adds scroll event listener to the container element when this component is first attached to the DOM.
15
- */
16
- connectedCallback() {
17
- this.addScrollEventListener();
18
- }
19
- /**
20
- * Updates enable/disable state for scroll up and down buttons.
21
- * @returns {Promise<void>}
22
- */
23
- async updateScrollButtonsState() {
24
- this.scrollContainerElementRef.scrollTop === 0 ? this.upButtonElement.disabled = !0 : this.upButtonElement.disabled && (this.upButtonElement.disabled = !1), this.scrollContainerElementRef.scrollHeight - this.scrollContainerElementRef.scrollTop === this.scrollContainerElementRef.clientHeight ? this.downButtonElement.disabled = !0 : this.downButtonElement.disabled && (this.downButtonElement.disabled = !1);
25
- }
26
- /**
27
- * Update scroll position.
28
- * @param {number} value - Value to scroll.
29
- */
30
- updateScrollPosition(t) {
31
- "scrollBehavior" in document.documentElement.style ? this.scrollContainerElementRef.scroll({
32
- top: this.scrollContainerElementRef.scrollTop + t,
33
- behavior: "smooth"
34
- }) : this.scrollContainerElementRef.scrollTop = t;
35
- }
36
- render() {
37
- return e("div", { class: "scroll-buttons" }, e("button", { class: "mi-button mi-button--base btn btn-up", type: "button", disabled: !0, "aria-label": "Scroll Up", ref: (t) => this.upButtonElement = t, onClick: () => this.updateScrollPosition(-this.scrollLength) }), e("button", { class: "mi-button mi-button--base btn btn-down", type: "button", "aria-label": "Scroll Down", ref: (t) => this.downButtonElement = t, onClick: () => this.updateScrollPosition(this.scrollLength) }));
38
- }
39
- static get watchers() {
40
- return {
41
- scrollContainerElementRef: ["addScrollEventListener"]
42
- };
43
- }
44
- };
45
- r.style = n;
46
- export {
47
- r as mi_scroll_buttons
48
- };
@@ -1,46 +0,0 @@
1
- import { r as o, h as e } from "./webcomponent-592597b2.mjs";
2
- const n = '@charset "UTF-8";a.mi-button{cursor:default}.mi-button{border-radius:4px;border-width:1px;border-style:solid;font-family:Inter, -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";font-size:1rem;font-weight:500;padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:12px;display:inline-flex;align-items:center}.mi-button:disabled{opacity:0.48;cursor:not-allowed}.mi-button object{filter:invert(9%) sepia(13%) saturate(692%) hue-rotate(185deg) brightness(98%) contrast(91%);width:16px;height:16px}.mi-button--small{padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;font-size:0.875rem;height:32px}.mi-button--small object{width:16px;height:16px}.mi-button--large{padding-left:16px;padding-right:16px;font-size:1.25rem}.mi-button--large object{width:20px;height:20px}.mi-button--full-width{width:100%;justify-content:center}.mi-button--icon-left{padding-left:12px}.mi-button--icon-left object{margin-right:8px}.mi-button--icon-right{padding-right:12px}.mi-button--icon-right object{margin-left:8px}.mi-button--icon-both{padding-top:12px;padding-bottom:12px}.mi-button--icon-both object:first-of-type{margin-right:8px}.mi-button--icon-both object:last-of-type{margin-left:8px}.mi-button--base{background:linear-gradient(#f5f7fa, #ebeff5);color:#1e2025;border-color:#c8d0e0}.mi-button--base:not(:disabled):hover{background:linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-button--base:not(:disabled):active{background:linear-gradient(#dee3ed, #ebeff5)}.mi-button--primary{color:#ffffff;border-color:#20693e;background:linear-gradient(#3ba064, #2a844e)}.mi-button--primary object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--primary:not(:disabled):hover{background:linear-gradient(#2a844e, #20693e)}.mi-button--primary:not(:disabled):active{background:linear-gradient(#20693e, #2a844e)}.mi-button--delete{background:linear-gradient(#f55151, #de1b1b);color:#ffffff;border-color:#ba0d0d}.mi-button--delete object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--delete:not(:disabled):hover{background:linear-gradient(#de1b1b, #ba0d0d)}.mi-button--delete:not(:disabled):active{background:linear-gradient(#ba0d0d, #de1b1b)}.mi-button--outline{color:#3071d9;border-color:#3071d9;background-color:transparent}.mi-button--outline object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--outline:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--outline:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-button--link{color:#3071d9;border-style:none;background-color:transparent;cursor:pointer}.mi-button--link object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--link:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--link:disabled:hover{cursor:not-allowed}.mi-button--link:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}.scroll-buttons{height:100%;width:64px;background-color:#f9fafb;border-left:solid;border-color:#e5e7eb;border-width:1px;display:flex;flex-direction:column;align-items:center;justify-content:center}.scroll-buttons .btn{margin:8px}.scroll-buttons .btn-up::after{content:"↑"}.scroll-buttons .btn-down::after{content:"↓"}', r = class {
3
- constructor(t) {
4
- o(this, t), this.scrollContainerElementRef = void 0, this.scrollLength = 100;
5
- }
6
- addScrollEventListener() {
7
- this.scrollContainerElementRef.addEventListener("scroll", () => {
8
- this.updateScrollButtonsState();
9
- });
10
- }
11
- /**
12
- * Adds scroll event listener to the container element when this component is first attached to the DOM.
13
- */
14
- connectedCallback() {
15
- this.addScrollEventListener();
16
- }
17
- /**
18
- * Updates enable/disable state for scroll up and down buttons.
19
- * @returns {Promise<void>}
20
- */
21
- async updateScrollButtonsState() {
22
- this.scrollContainerElementRef.scrollTop === 0 ? this.upButtonElement.disabled = !0 : this.upButtonElement.disabled && (this.upButtonElement.disabled = !1), this.scrollContainerElementRef.scrollHeight - this.scrollContainerElementRef.scrollTop === this.scrollContainerElementRef.clientHeight ? this.downButtonElement.disabled = !0 : this.downButtonElement.disabled && (this.downButtonElement.disabled = !1);
23
- }
24
- /**
25
- * Update scroll position.
26
- * @param {number} value - Value to scroll.
27
- */
28
- updateScrollPosition(t) {
29
- "scrollBehavior" in document.documentElement.style ? this.scrollContainerElementRef.scroll({
30
- top: this.scrollContainerElementRef.scrollTop + t,
31
- behavior: "smooth"
32
- }) : this.scrollContainerElementRef.scrollTop = t;
33
- }
34
- render() {
35
- return e("div", { class: "scroll-buttons" }, e("button", { class: "mi-button mi-button--base btn btn-up", type: "button", disabled: !0, "aria-label": "Scroll Up", ref: (t) => this.upButtonElement = t, onClick: () => this.updateScrollPosition(-this.scrollLength) }), e("button", { class: "mi-button mi-button--base btn btn-down", type: "button", "aria-label": "Scroll Down", ref: (t) => this.downButtonElement = t, onClick: () => this.updateScrollPosition(this.scrollLength) }));
36
- }
37
- static get watchers() {
38
- return {
39
- scrollContainerElementRef: ["addScrollEventListener"]
40
- };
41
- }
42
- };
43
- r.style = n;
44
- export {
45
- r as mi_scroll_buttons
46
- };