@mapsindoors/map-template 1.81.3 → 1.81.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-ba3f0406-b96e6d6a.mjs +22 -0
- package/dist/combo-box-item.entry-340c7520.mjs +15 -0
- package/dist/icon-b8d01d6f-ddfa2c17.mjs +25 -0
- package/dist/mapsindoors-react.es.js +2 -9
- package/dist/mapsindoors-react.umd.js +170 -208
- package/dist/mapsindoors-webcomponent.es.js +39656 -51190
- package/dist/mapsindoors-webcomponent.umd.js +167 -198
- package/dist/mi-card_2.entry-bac7446d.mjs +26 -0
- package/dist/{mi-chip.entry-11c462c2.mjs → mi-chip.entry-a0df5166.mjs} +6 -13
- package/dist/mi-column.entry-0d535ccf.mjs +21 -0
- package/dist/{mi-combo-box.entry-fa83a707.mjs → mi-combo-box.entry-a3430e9f.mjs} +8 -15
- package/dist/{mi-data-table.entry-ccc7be41.mjs → mi-data-table.entry-60488638.mjs} +3 -10
- package/dist/{mi-distance_2.entry-614a8e17.mjs → mi-distance_2.entry-6f2ceab4.mjs} +13 -20
- package/dist/mi-dropdown-item.entry-3fffabb0.mjs +15 -0
- package/dist/{mi-dropdown.entry-7c783765.mjs → mi-dropdown.entry-2f57fc86.mjs} +89 -96
- package/dist/{mi-floor-selector.entry-af2fac46.mjs → mi-floor-selector.entry-1f1aec04.mjs} +4 -11
- package/dist/{mi-keyboard.entry-a66c0ab4.mjs → mi-keyboard.entry-a0f396ed.mjs} +402 -409
- package/dist/{mi-list-item-category.entry-9eaeec00.mjs → mi-list-item-category.entry-daa37f97.mjs} +10 -17
- package/dist/{mi-list-item-location.entry-678a17ba.mjs → mi-list-item-location.entry-cbf578ed.mjs} +12 -19
- package/dist/{mi-list.entry-769097c2.mjs → mi-list.entry-763c1201.mjs} +5 -12
- package/dist/{mi-location-booking.entry-df2415f6.mjs → mi-location-booking.entry-c1dd00c2.mjs} +3 -10
- package/dist/mi-location-info.entry-7d161a48.mjs +32 -0
- package/dist/{mi-map-googlemaps.entry-ff40930f.mjs → mi-map-googlemaps.entry-5fc37531.mjs} +21 -28
- package/dist/{mi-map-mapbox.entry-7b45e3a3.mjs → mi-map-mapbox.entry-73a8ded6.mjs} +6 -13
- package/dist/{mi-metric-card.entry-f662d88b.mjs → mi-metric-card.entry-f6099aee.mjs} +13 -20
- package/dist/{mi-my-position.entry-ac239dec.mjs → mi-my-position.entry-4aa3c548.mjs} +90 -97
- package/dist/{mi-notification.entry-1a2d6055.mjs → mi-notification.entry-0d6268f0.mjs} +5 -12
- package/dist/{mi-route-instructions-heading.entry-9cc9ebe8.mjs → mi-route-instructions-heading.entry-2cdddb7b.mjs} +18 -25
- package/dist/{mi-route-instructions-maneuver-legacy.entry-b0d53248.mjs → mi-route-instructions-maneuver-legacy.entry-1eb7e512.mjs} +8 -15
- package/dist/{mi-route-instructions-maneuver.entry-e4a7d458.mjs → mi-route-instructions-maneuver.entry-3aa043c9.mjs} +9 -16
- package/dist/{mi-route-instructions-step-legacy.entry-f230233f.mjs → mi-route-instructions-step-legacy.entry-18dd2624.mjs} +26 -33
- package/dist/{mi-route-instructions-step.entry-fe65364b.mjs → mi-route-instructions-step.entry-60733e95.mjs} +7 -14
- package/dist/{mi-route-instructions.entry-5c929ec9.mjs → mi-route-instructions.entry-e1759479.mjs} +8 -15
- package/dist/{mi-scroll-buttons.entry-d25f0822.mjs → mi-scroll-buttons.entry-f7622d39.mjs} +7 -14
- package/dist/{mi-search.entry-a7368cea.mjs → mi-search.entry-3b1043d6.mjs} +16 -23
- package/dist/{mi-share-sms.entry-2aa3e81f.mjs → mi-share-sms.entry-f431bec9.mjs} +6 -13
- package/dist/{mi-step-switcher.entry-280b94d4.mjs → mi-step-switcher.entry-b0c70c80.mjs} +8 -15
- package/dist/mi-tab-panel.entry-03de2646.mjs +22 -0
- package/dist/mi-tab.entry-f7bf59cc.mjs +14 -0
- package/dist/{mi-tabs.entry-06bf631f.mjs → mi-tabs.entry-b6254fc6.mjs} +6 -13
- package/dist/{mi-time.entry-2b7ab65a.mjs → mi-time.entry-7df615fb.mjs} +8 -15
- package/dist/mi-variables-9a6c8d4d-e06eec88.mjs +8 -0
- package/dist/reactcomponent-186f3de0.mjs +49308 -0
- package/dist/route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs +8 -0
- package/dist/sort-order.enum-64ce8998-b75ac596.mjs +318 -0
- package/dist/unit-system.enum-eaefb53e-0f424da4.mjs +8 -0
- package/dist/utils-ae714467-b07fc3be.mjs +37 -0
- package/package.json +1 -3
- package/dist/_commonjsHelpers-ba3f0406-ba4ec5cf.mjs +0 -30
- package/dist/combo-box-item.entry-21e58067.mjs +0 -22
- package/dist/icon-b8d01d6f-6e0294c6.mjs +0 -33
- package/dist/mi-card_2.entry-7be71a53.mjs +0 -33
- package/dist/mi-column.entry-581dec8b.mjs +0 -28
- package/dist/mi-dropdown-item.entry-b7388dcd.mjs +0 -22
- package/dist/mi-location-info.entry-f21c11b6.mjs +0 -39
- package/dist/mi-tab-panel.entry-9cb96ad3.mjs +0 -29
- package/dist/mi-tab.entry-c98dc785.mjs +0 -21
- package/dist/mi-variables-9a6c8d4d-40975d08.mjs +0 -16
- package/dist/reactcomponent-bfec8ca7.mjs +0 -60933
- package/dist/route-travel-mode.enum-7f4ce9c7-c9549fb4.mjs +0 -16
- package/dist/sort-order.enum-64ce8998-6a55f831.mjs +0 -326
- package/dist/unit-system.enum-eaefb53e-218e5846.mjs +0 -16
- package/dist/utils-ae714467-fd1172f0.mjs +0 -45
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import { r as n, c as d, h as t, H as p } from "./reactcomponent-
|
|
1
|
+
import { r as n, c as d, h as t, H as p } from "./reactcomponent-186f3de0.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
|
|
5
|
-
try {
|
|
6
|
-
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new e.Error().stack;
|
|
7
|
-
s && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[s] = "7c4f3980-7de3-4c39-b554-15834197a96c", e._sentryDebugIdIdentifier = "sentry-dbid-7c4f3980-7de3-4c39-b554-15834197a96c");
|
|
8
|
-
} catch {
|
|
9
|
-
}
|
|
10
|
-
})();
|
|
11
|
-
const o = ":host{display:flex}button{padding:16px;background-color:transparent;border:none}button:disabled svg{fill:#d1d5db}button svg{fill:#1f2937}div.steps{padding-top:12px;padding-bottom:12px;padding-left:4px;padding-right:4px;display:flex;flex-grow:1;flex-direction:column;vertical-align:center;justify-content:center}div.steps p{margin:0;padding-bottom:8px;color:#1c1917;font-size:1rem;font-weight:500;line-height:1.25rem;text-align:center}div.steps__dots{display:flex;justify-content:center}div.steps__dots span{width:8px;height:8px;margin-right:8px;float:left;background-color:#d1d5db;border-radius:50%}div.steps__dots span.active{background-color:#1f2937}div.steps__dots span:last-child{margin-right:0px}", a = class {
|
|
4
|
+
const h = ":host{display:flex}button{padding:16px;background-color:transparent;border:none}button:disabled svg{fill:#d1d5db}button svg{fill:#1f2937}div.steps{padding-top:12px;padding-bottom:12px;padding-left:4px;padding-right:4px;display:flex;flex-grow:1;flex-direction:column;vertical-align:center;justify-content:center}div.steps p{margin:0;padding-bottom:8px;color:#1c1917;font-size:1rem;font-weight:500;line-height:1.25rem;text-align:center}div.steps__dots{display:flex;justify-content:center}div.steps__dots span{width:8px;height:8px;margin-right:8px;float:left;background-color:#d1d5db;border-radius:50%}div.steps__dots span.active{background-color:#1f2937}div.steps__dots span:last-child{margin-right:0px}", o = class {
|
|
12
5
|
constructor(e) {
|
|
13
6
|
n(this, e), this.stepIndexChanged = d(this, "stepIndexChanged", 7), this.heading = void 0, this.steps = [], this.stepIndex = 0;
|
|
14
7
|
}
|
|
@@ -21,14 +14,14 @@ const o = ":host{display:flex}button{padding:16px;background-color:transparent;b
|
|
|
21
14
|
this.stepIndex = e, this.stepIndexChanged.emit(this.stepIndex);
|
|
22
15
|
}
|
|
23
16
|
render() {
|
|
24
|
-
return t(p, null, t("button", { type: "button", disabled: this.steps.length === 0 || this.stepIndex === 0, onClick: () => this.setStepIndex(this.stepIndex - 1) }, t("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24px", height: "24px" }, t("path", { d: "M0 0h24v24H0V0z", fill: "none" }), t("path", { d: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z" }))), t("div", { class: "steps" }, this.heading ? t("p", { part: "heading" }, this.heading) : null, t("div", { class: "steps__dots" }, this.steps.map((e,
|
|
25
|
-
const
|
|
26
|
-
return t("span", { part:
|
|
17
|
+
return t(p, null, t("button", { type: "button", disabled: this.steps.length === 0 || this.stepIndex === 0, onClick: () => this.setStepIndex(this.stepIndex - 1) }, t("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24px", height: "24px" }, t("path", { d: "M0 0h24v24H0V0z", fill: "none" }), t("path", { d: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z" }))), t("div", { class: "steps" }, this.heading ? t("p", { part: "heading" }, this.heading) : null, t("div", { class: "steps__dots" }, this.steps.map((e, i) => {
|
|
18
|
+
const s = this.stepIndex === i;
|
|
19
|
+
return t("span", { part: s ? "active-dot" : "dot", class: { active: s } });
|
|
27
20
|
}))), t("button", { type: "button", disabled: this.steps.length === 0 || this.stepIndex === this.steps.length - 1, onClick: () => this.setStepIndex(this.stepIndex + 1) }, t("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24px", height: "24px" }, t("path", { d: "M0 0h24v24H0V0z", fill: "none" }), t("path", { d: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" }))));
|
|
28
21
|
}
|
|
29
22
|
};
|
|
30
|
-
|
|
23
|
+
o.style = h;
|
|
31
24
|
export {
|
|
32
|
-
|
|
25
|
+
o as mi_step_switcher
|
|
33
26
|
};
|
|
34
|
-
//# sourceMappingURL=mi-step-switcher.entry-
|
|
27
|
+
//# sourceMappingURL=mi-step-switcher.entry-b0c70c80.mjs.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { r as i, h as s } from "./reactcomponent-186f3de0.mjs";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const t = 'div{display:none}div.active{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";flex-shrink:0;flex-grow:1;display:block}', a = class {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
i(this, e), this.isActive = !1;
|
|
7
|
+
}
|
|
8
|
+
async active(e) {
|
|
9
|
+
return e !== void 0 && (this.isActive = !!e), this.isActive;
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
const e = {
|
|
13
|
+
active: this.isActive
|
|
14
|
+
};
|
|
15
|
+
return s("div", { class: e }, s("slot", null));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
a.style = t;
|
|
19
|
+
export {
|
|
20
|
+
a as mi_tab_panel
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=mi-tab-panel.entry-03de2646.mjs.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { r as t } from "./reactcomponent-186f3de0.mjs";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const n = class {
|
|
5
|
+
constructor(r) {
|
|
6
|
+
t(this, r), this.label = void 0, this.tabFor = void 0;
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
n as mi_tab
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=mi-tab.entry-f7bf59cc.mjs.map
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { r as a, h as o, H as
|
|
1
|
+
import { r as a, h as o, H as l, g as d } from "./reactcomponent-186f3de0.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
(function() {
|
|
5
|
-
try {
|
|
6
|
-
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
|
7
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "619465b5-3bee-437c-b91b-172369be82e5", e._sentryDebugIdIdentifier = "sentry-dbid-619465b5-3bee-437c-b91b-172369be82e5");
|
|
8
|
-
} catch {
|
|
9
|
-
}
|
|
10
|
-
})();
|
|
11
4
|
const b = ':host{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";flex-shrink:0;flex-grow:1}:host .nav{border:none;border-bottom:solid;border-color:#d1d5db;border-width:1px;padding-left:24px}:host .nav--borderless-bottom{border-bottom:0}:host .nav ul{display:flex;flex-direction:row;padding:0;margin:0;margin-bottom:-1px}:host .nav ul li{list-style:none;text-align:center;cursor:pointer;padding:16px;border-width:1px;border-style:solid;border-color:rgba(0, 0, 0, 0)}:host .nav ul li.active{background-color:#f9fafb;border-color:#d1d5db;border-width:1px;border-style:solid;border-bottom:none;border-top-left-radius:4px;border-top-right-radius:4px;font-weight:600}:host .content{display:block;padding:16px;background-color:#f9fafb}:host .content--bordered{border-width:1px;border-color:#d1d5db;border-style:solid;border-radius:4px}', c = class {
|
|
12
5
|
constructor(e) {
|
|
13
6
|
a(this, e), this.active = 0, this.bordered = !1, this.tabs = void 0;
|
|
@@ -18,8 +11,8 @@ const b = ':host{font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe
|
|
|
18
11
|
componentWillRender() {
|
|
19
12
|
const e = this.el.querySelectorAll("mi-tab");
|
|
20
13
|
this.tabs = Array.from(e).reduce((t, r, s) => {
|
|
21
|
-
const
|
|
22
|
-
return
|
|
14
|
+
const i = Array.from(this.el.getElementsByTagName("mi-tab-panel")).find((n) => n.id === r.tabFor);
|
|
15
|
+
return i && t.push({ label: r.label, content: i }), t;
|
|
23
16
|
}, []);
|
|
24
17
|
}
|
|
25
18
|
componentDidRender() {
|
|
@@ -29,16 +22,16 @@ const b = ':host{font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe
|
|
|
29
22
|
await this.tabs[e].content.active() || (this.active = e, this.tabs.forEach((r, s) => r.content.active(s === e)));
|
|
30
23
|
}
|
|
31
24
|
render() {
|
|
32
|
-
return o(
|
|
25
|
+
return o(l, null, o("nav", { class: `nav ${this.bordered === !0 ? "nav--borderless-bottom" : ""}` }, o("ul", null, this.tabs.map((e, t) => o("li", { class: this.active === t ? "active" : "", onClick: () => {
|
|
33
26
|
this.selectTab(t);
|
|
34
27
|
} }, " ", e.label, " ")))), o("section", { class: `content ${this.bordered === !0 ? "content--bordered" : ""}` }, o("slot", null)));
|
|
35
28
|
}
|
|
36
29
|
get el() {
|
|
37
|
-
return
|
|
30
|
+
return d(this);
|
|
38
31
|
}
|
|
39
32
|
};
|
|
40
33
|
c.style = b;
|
|
41
34
|
export {
|
|
42
35
|
c as mi_tabs
|
|
43
36
|
};
|
|
44
|
-
//# sourceMappingURL=mi-tabs.entry-
|
|
37
|
+
//# sourceMappingURL=mi-tabs.entry-b6254fc6.mjs.map
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as e, h as l } from "./reactcomponent-186f3de0.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
|
|
5
|
-
try {
|
|
6
|
-
var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new t.Error().stack;
|
|
7
|
-
s && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[s] = "3ffb151d-af2c-45aa-900d-7a54f61c5128", t._sentryDebugIdIdentifier = "sentry-dbid-3ffb151d-af2c-45aa-900d-7a54f61c5128");
|
|
8
|
-
} catch {
|
|
9
|
-
}
|
|
10
|
-
})();
|
|
11
|
-
const f = class {
|
|
4
|
+
const D = class {
|
|
12
5
|
constructor(t) {
|
|
13
|
-
|
|
6
|
+
e(this, t), this.seconds = void 0, this.translations = void 0, this.translationsData = void 0;
|
|
14
7
|
}
|
|
15
8
|
setTranslations() {
|
|
16
9
|
this.translations ? this.translationsData = JSON.parse(this.translations) : this.translationsData = { days: "d", hours: "h", minutes: "min" };
|
|
@@ -26,9 +19,9 @@ const f = class {
|
|
|
26
19
|
* @returns {string}
|
|
27
20
|
*/
|
|
28
21
|
getDurationDisplayString(t) {
|
|
29
|
-
const
|
|
30
|
-
let
|
|
31
|
-
return !r && !
|
|
22
|
+
const n = Math.floor(t / 86400), a = Math.floor(t % 86400 / 3600), i = Math.floor(t % 86400 % 3600 / 60), r = n > 0 ? `${n} ${this.translationsData.days} ` : "", o = a > 0 ? `${a} ${this.translationsData.hours} ` : "";
|
|
23
|
+
let s = i > 0 ? `${i} ${this.translationsData.minutes}` : "";
|
|
24
|
+
return !r && !o && !s && (s = "1 min"), `${r}${o}${s}`.trim();
|
|
32
25
|
}
|
|
33
26
|
render() {
|
|
34
27
|
return this.seconds >= 0 && this.translationsData ? this.renderDuration() : null;
|
|
@@ -48,6 +41,6 @@ const f = class {
|
|
|
48
41
|
}
|
|
49
42
|
};
|
|
50
43
|
export {
|
|
51
|
-
|
|
44
|
+
D as mi_time
|
|
52
45
|
};
|
|
53
|
-
//# sourceMappingURL=mi-time.entry-
|
|
46
|
+
//# sourceMappingURL=mi-time.entry-7df615fb.mjs.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const s = {
|
|
2
|
+
miSDKUrl: "https://app.mapsindoors.com/mapsindoors/js/sdk/3.12.0/mapsindoors-3.12.0.js.gz",
|
|
3
|
+
miSDKUrlV4: "https://app.mapsindoors.com/mapsindoors/js/sdk/4.13.0/mapsindoors-4.13.0.js.gz"
|
|
4
|
+
};
|
|
5
|
+
export {
|
|
6
|
+
s as m
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=mi-variables-9a6c8d4d-e06eec88.mjs.map
|