@mapsindoors/map-template 1.39.1 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-ba3f0406-8ba27f8d.mjs +30 -0
- package/dist/combo-box-item.entry-a249210f.mjs +22 -0
- package/dist/icon-b8d01d6f-952f9485.mjs +33 -0
- package/dist/mapsindoors-react.es.js +10 -2
- package/dist/mapsindoors-react.umd.js +184 -137
- package/dist/mapsindoors-webcomponent.es.js +47805 -35719
- package/dist/mapsindoors-webcomponent.umd.js +197 -157
- package/dist/mi-card_2.entry-a2e84e6f.mjs +33 -0
- package/dist/{mi-chip.entry-66decfd5.mjs → mi-chip.entry-87cd8009.mjs} +13 -5
- package/dist/mi-column.entry-d18e4d46.mjs +28 -0
- package/dist/{mi-combo-box.entry-b1ed5a12.mjs → mi-combo-box.entry-34266062.mjs} +15 -7
- package/dist/{mi-data-table.entry-01a77e2a.mjs → mi-data-table.entry-837a1723.mjs} +10 -2
- package/dist/{mi-distance_2.entry-a98d5097.mjs → mi-distance_2.entry-390b6a0e.mjs} +20 -12
- package/dist/mi-dropdown-item.entry-8a5414ba.mjs +22 -0
- package/dist/{mi-dropdown.entry-a25751f4.mjs → mi-dropdown.entry-e333f6bf.mjs} +31 -23
- package/dist/{mi-floor-selector.entry-8db92aeb.mjs → mi-floor-selector.entry-29a9a938.mjs} +9 -1
- package/dist/{mi-keyboard.entry-2423f3eb.mjs → mi-keyboard.entry-db05697a.mjs} +83 -75
- package/dist/{mi-list-item-category.entry-69d13eb0.mjs → mi-list-item-category.entry-d821d1aa.mjs} +17 -9
- package/dist/{mi-list-item-location.entry-c02bedee.mjs → mi-list-item-location.entry-29567822.mjs} +19 -11
- package/dist/{mi-list.entry-790707be.mjs → mi-list.entry-1d3dbb9d.mjs} +12 -4
- package/dist/{mi-location-booking.entry-d37d3f1e.mjs → mi-location-booking.entry-e1692ca1.mjs} +10 -2
- package/dist/mi-location-info.entry-44d5fa9e.mjs +39 -0
- package/dist/{mi-map-googlemaps.entry-6ff2cbe9.mjs → mi-map-googlemaps.entry-b7b8b4f9.mjs} +16 -8
- package/dist/{mi-map-mapbox.entry-e3e8a0dd.mjs → mi-map-mapbox.entry-76066389.mjs} +13 -5
- package/dist/{mi-metric-card.entry-cffda976.mjs → mi-metric-card.entry-aa87514d.mjs} +20 -12
- package/dist/{mi-my-position.entry-ddc35980.mjs → mi-my-position.entry-60fa67b2.mjs} +48 -40
- package/dist/{mi-notification.entry-657cfcc1.mjs → mi-notification.entry-e2cdaced.mjs} +20 -12
- package/dist/{mi-route-instructions-heading.entry-ac7b30e8.mjs → mi-route-instructions-heading.entry-6d7a8d5e.mjs} +25 -17
- package/dist/{mi-route-instructions-maneuver-legacy.entry-4c9aa387.mjs → mi-route-instructions-maneuver-legacy.entry-2f960621.mjs} +15 -7
- package/dist/{mi-route-instructions-maneuver.entry-e8d9ecb8.mjs → mi-route-instructions-maneuver.entry-6aabfdcf.mjs} +16 -8
- package/dist/{mi-route-instructions-step-legacy.entry-750c21d3.mjs → mi-route-instructions-step-legacy.entry-d36abb12.mjs} +33 -25
- package/dist/{mi-route-instructions-step.entry-da37f8c3.mjs → mi-route-instructions-step.entry-4ce81e3b.mjs} +14 -6
- package/dist/{mi-route-instructions.entry-6f6d308f.mjs → mi-route-instructions.entry-139a8b55.mjs} +23 -15
- package/dist/{mi-scroll-buttons.entry-8dc41a14.mjs → mi-scroll-buttons.entry-1fe481ae.mjs} +12 -4
- package/dist/{mi-search.entry-39ad2683.mjs → mi-search.entry-0d376f5e.mjs} +23 -15
- package/dist/{mi-share-sms.entry-42d418a9.mjs → mi-share-sms.entry-73e5cc0a.mjs} +13 -5
- package/dist/{mi-step-switcher.entry-e741373d.mjs → mi-step-switcher.entry-f362798c.mjs} +15 -7
- package/dist/mi-tab-panel.entry-dcd74baf.mjs +29 -0
- package/dist/mi-tab.entry-c25a4b0e.mjs +21 -0
- package/dist/{mi-tabs.entry-86388c1c.mjs → mi-tabs.entry-a40726b1.mjs} +13 -5
- package/dist/{mi-time.entry-0c8e7ec5.mjs → mi-time.entry-0d807963.mjs} +15 -7
- package/dist/mi-variables-9a6c8d4d-6ddb1ec9.mjs +16 -0
- package/dist/reactcomponent-1eae5fb1.mjs +55162 -0
- package/dist/route-travel-mode.enum-7f4ce9c7-3111d8d5.mjs +16 -0
- package/dist/sort-order.enum-64ce8998-76a74450.mjs +326 -0
- package/dist/unit-system.enum-eaefb53e-560751d1.mjs +16 -0
- package/dist/utils-ae714467-be41eff0.mjs +45 -0
- package/package.json +3 -1
- package/dist/_commonjsHelpers-ba3f0406-b96e6d6a.mjs +0 -21
- package/dist/combo-box-item.entry-4fb14c2c.mjs +0 -14
- package/dist/icon-b8d01d6f-ddfa2c17.mjs +0 -24
- package/dist/mi-card_2.entry-42163be3.mjs +0 -25
- package/dist/mi-column.entry-87f86e0b.mjs +0 -20
- package/dist/mi-dropdown-item.entry-d3017c4d.mjs +0 -14
- package/dist/mi-location-info.entry-d1c8177d.mjs +0 -31
- package/dist/mi-tab-panel.entry-ce8eb340.mjs +0 -21
- package/dist/mi-tab.entry-460f564f.mjs +0 -13
- package/dist/mi-variables-9a6c8d4d-e06eec88.mjs +0 -7
- package/dist/reactcomponent-8283ee84.mjs +0 -42986
- package/dist/route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs +0 -7
- package/dist/sort-order.enum-64ce8998-b75ac596.mjs +0 -317
- package/dist/unit-system.enum-eaefb53e-0f424da4.mjs +0 -7
- package/dist/utils-ae714467-b07fc3be.mjs +0 -36
|
@@ -1,7 +1,14 @@
|
|
|
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-1eae5fb1.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
|
|
4
|
+
(function() {
|
|
5
|
+
try {
|
|
6
|
+
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new 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 {
|
|
5
12
|
constructor(e) {
|
|
6
13
|
n(this, e), this.stepIndexChanged = d(this, "stepIndexChanged", 7), this.heading = void 0, this.steps = [], this.stepIndex = 0;
|
|
7
14
|
}
|
|
@@ -14,13 +21,14 @@ const h = ":host{display:flex}button{padding:16px;background-color:transparent;b
|
|
|
14
21
|
this.stepIndex = e, this.stepIndexChanged.emit(this.stepIndex);
|
|
15
22
|
}
|
|
16
23
|
render() {
|
|
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,
|
|
18
|
-
const
|
|
19
|
-
return t("span", { part:
|
|
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, s) => {
|
|
25
|
+
const i = this.stepIndex === s;
|
|
26
|
+
return t("span", { part: i ? "active-dot" : "dot", class: { active: i } });
|
|
20
27
|
}))), 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" }))));
|
|
21
28
|
}
|
|
22
29
|
};
|
|
23
|
-
|
|
30
|
+
a.style = o;
|
|
24
31
|
export {
|
|
25
|
-
|
|
32
|
+
a as mi_step_switcher
|
|
26
33
|
};
|
|
34
|
+
//# sourceMappingURL=mi-step-switcher.entry-f362798c.mjs.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { r as i, h as t } from "./reactcomponent-1eae5fb1.mjs";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
(function() {
|
|
5
|
+
try {
|
|
6
|
+
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
|
|
7
|
+
s && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[s] = "8e6e2a91-73dd-4ec1-93fa-876af23d657e", e._sentryDebugIdIdentifier = "sentry-dbid-8e6e2a91-73dd-4ec1-93fa-876af23d657e");
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
10
|
+
})();
|
|
11
|
+
const n = '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 {
|
|
12
|
+
constructor(e) {
|
|
13
|
+
i(this, e), this.isActive = !1;
|
|
14
|
+
}
|
|
15
|
+
async active(e) {
|
|
16
|
+
return e !== void 0 && (this.isActive = !!e), this.isActive;
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
const e = {
|
|
20
|
+
active: this.isActive
|
|
21
|
+
};
|
|
22
|
+
return t("div", { class: e }, t("slot", null));
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
a.style = n;
|
|
26
|
+
export {
|
|
27
|
+
a as mi_tab_panel
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=mi-tab-panel.entry-dcd74baf.mjs.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { r as n } from "./reactcomponent-1eae5fb1.mjs";
|
|
2
|
+
import "react";
|
|
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 Error().stack;
|
|
7
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "5984972f-938b-469b-b2ac-c995e11e8d44", e._sentryDebugIdIdentifier = "sentry-dbid-5984972f-938b-469b-b2ac-c995e11e8d44");
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
10
|
+
})();
|
|
11
|
+
const o = class {
|
|
12
|
+
constructor(e) {
|
|
13
|
+
n(this, e), this.label = void 0, this.tabFor = void 0;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
o as mi_tab
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=mi-tab.entry-c25a4b0e.mjs.map
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import { r as a, h as o, H as
|
|
1
|
+
import { r as a, h as o, H as d, g as l } from "./reactcomponent-1eae5fb1.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 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
|
+
})();
|
|
4
11
|
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 {
|
|
5
12
|
constructor(e) {
|
|
6
13
|
a(this, e), this.active = 0, this.bordered = !1, this.tabs = void 0;
|
|
@@ -11,8 +18,8 @@ const b = ':host{font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe
|
|
|
11
18
|
componentWillRender() {
|
|
12
19
|
const e = this.el.querySelectorAll("mi-tab");
|
|
13
20
|
this.tabs = Array.from(e).reduce((t, r, s) => {
|
|
14
|
-
const
|
|
15
|
-
return
|
|
21
|
+
const n = Array.from(this.el.getElementsByTagName("mi-tab-panel")).find((i) => i.id === r.tabFor);
|
|
22
|
+
return n && t.push({ label: r.label, content: n }), t;
|
|
16
23
|
}, []);
|
|
17
24
|
}
|
|
18
25
|
componentDidRender() {
|
|
@@ -22,15 +29,16 @@ const b = ':host{font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe
|
|
|
22
29
|
await this.tabs[e].content.active() || (this.active = e, this.tabs.forEach((r, s) => r.content.active(s === e)));
|
|
23
30
|
}
|
|
24
31
|
render() {
|
|
25
|
-
return o(
|
|
32
|
+
return o(d, 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: () => {
|
|
26
33
|
this.selectTab(t);
|
|
27
34
|
} }, " ", e.label, " ")))), o("section", { class: `content ${this.bordered === !0 ? "content--bordered" : ""}` }, o("slot", null)));
|
|
28
35
|
}
|
|
29
36
|
get el() {
|
|
30
|
-
return
|
|
37
|
+
return l(this);
|
|
31
38
|
}
|
|
32
39
|
};
|
|
33
40
|
c.style = b;
|
|
34
41
|
export {
|
|
35
42
|
c as mi_tabs
|
|
36
43
|
};
|
|
44
|
+
//# sourceMappingURL=mi-tabs.entry-a40726b1.mjs.map
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as o, h as l } from "./reactcomponent-1eae5fb1.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
|
|
4
|
+
(function() {
|
|
5
|
+
try {
|
|
6
|
+
var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new 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 {
|
|
5
12
|
constructor(t) {
|
|
6
|
-
|
|
13
|
+
o(this, t), this.seconds = void 0, this.translations = void 0, this.translationsData = void 0;
|
|
7
14
|
}
|
|
8
15
|
setTranslations() {
|
|
9
16
|
this.translations ? this.translationsData = JSON.parse(this.translations) : this.translationsData = { days: "d", hours: "h", minutes: "min" };
|
|
@@ -19,9 +26,9 @@ const D = class {
|
|
|
19
26
|
* @returns {string}
|
|
20
27
|
*/
|
|
21
28
|
getDurationDisplayString(t) {
|
|
22
|
-
const
|
|
23
|
-
let
|
|
24
|
-
return !r && !
|
|
29
|
+
const s = Math.floor(t / 86400), n = Math.floor(t % 86400 / 3600), i = Math.floor(t % 86400 % 3600 / 60), r = s > 0 ? `${s} ${this.translationsData.days} ` : "", e = n > 0 ? `${n} ${this.translationsData.hours} ` : "";
|
|
30
|
+
let a = i > 0 ? `${i} ${this.translationsData.minutes}` : "";
|
|
31
|
+
return !r && !e && !a && (a = "1 min"), `${r}${e}${a}`.trim();
|
|
25
32
|
}
|
|
26
33
|
render() {
|
|
27
34
|
return this.seconds >= 0 && this.translationsData ? this.renderDuration() : null;
|
|
@@ -41,5 +48,6 @@ const D = class {
|
|
|
41
48
|
}
|
|
42
49
|
};
|
|
43
50
|
export {
|
|
44
|
-
|
|
51
|
+
f as mi_time
|
|
45
52
|
};
|
|
53
|
+
//# sourceMappingURL=mi-time.entry-0d807963.mjs.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./reactcomponent-1eae5fb1.mjs";
|
|
2
|
+
(function() {
|
|
3
|
+
try {
|
|
4
|
+
var s = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, d = new Error().stack;
|
|
5
|
+
d && (s._sentryDebugIds = s._sentryDebugIds || {}, s._sentryDebugIds[d] = "03e3506c-7806-4510-bbdf-96d3717429e7", s._sentryDebugIdIdentifier = "sentry-dbid-03e3506c-7806-4510-bbdf-96d3717429e7");
|
|
6
|
+
} catch {
|
|
7
|
+
}
|
|
8
|
+
})();
|
|
9
|
+
const n = {
|
|
10
|
+
miSDKUrl: "https://app.mapsindoors.com/mapsindoors/js/sdk/3.12.0/mapsindoors-3.12.0.js.gz",
|
|
11
|
+
miSDKUrlV4: "https://app.mapsindoors.com/mapsindoors/js/sdk/4.13.0/mapsindoors-4.13.0.js.gz"
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
n as m
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=mi-variables-9a6c8d4d-6ddb1ec9.mjs.map
|