@mapsindoors/map-template 1.4.3 → 1.5.1
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/{combo-box-item.entry-9be9d125.mjs → combo-box-item.entry-5c861670.mjs} +1 -1
- package/dist/{combo-box-item.entry-4da69efc.mjs → combo-box-item.entry-8e7e870f.mjs} +1 -1
- package/dist/mapsindoors-react.es.js +2 -2
- package/dist/mapsindoors-react.umd.js +113 -107
- package/dist/mapsindoors-webcomponent.es.js +2 -2
- package/dist/mapsindoors-webcomponent.umd.js +110 -104
- package/dist/{mi-card_2.entry-905c20fd.mjs → mi-card_2.entry-5e87398d.mjs} +1 -1
- package/dist/{mi-card_2.entry-02b60611.mjs → mi-card_2.entry-ac419d49.mjs} +1 -1
- package/dist/{mi-chip.entry-b785fdbf.mjs → mi-chip.entry-3fc65b66.mjs} +1 -1
- package/dist/{mi-chip.entry-ff091ecc.mjs → mi-chip.entry-78d189cc.mjs} +1 -1
- package/dist/{mi-column.entry-3d535d66.mjs → mi-column.entry-32d237ae.mjs} +1 -1
- package/dist/{mi-column.entry-a37bcf25.mjs → mi-column.entry-d80a620c.mjs} +1 -1
- package/dist/{mi-combo-box.entry-3ae3e0c4.mjs → mi-combo-box.entry-3672c03b.mjs} +1 -1
- package/dist/{mi-combo-box.entry-ff12d7f0.mjs → mi-combo-box.entry-8fdef847.mjs} +1 -1
- package/dist/{mi-data-table.entry-e77941aa.mjs → mi-data-table.entry-133d1e3b.mjs} +1 -1
- package/dist/{mi-data-table.entry-19369616.mjs → mi-data-table.entry-a24cbda2.mjs} +1 -1
- package/dist/{mi-distance_2.entry-dcc1587e.mjs → mi-distance_2.entry-944f1983.mjs} +1 -1
- package/dist/{mi-distance_2.entry-9da01662.mjs → mi-distance_2.entry-d829ac38.mjs} +1 -1
- package/dist/{mi-dropdown-item.entry-de77de13.mjs → mi-dropdown-item.entry-1eee94d1.mjs} +1 -1
- package/dist/{mi-dropdown-item.entry-c5171c1a.mjs → mi-dropdown-item.entry-b1975c55.mjs} +1 -1
- package/dist/{mi-dropdown.entry-e19835e5.mjs → mi-dropdown.entry-38ad5cc1.mjs} +1 -1
- package/dist/{mi-dropdown.entry-bcbe8ca4.mjs → mi-dropdown.entry-e33d10cb.mjs} +1 -1
- package/dist/mi-floor-selector.entry-4f69c419.mjs +112 -0
- package/dist/mi-floor-selector.entry-ecd3fce2.mjs +110 -0
- package/dist/{mi-keyboard.entry-1b7230c0.mjs → mi-keyboard.entry-b1ac377a.mjs} +1 -1
- package/dist/{mi-keyboard.entry-24666a2f.mjs → mi-keyboard.entry-c35597ad.mjs} +1 -1
- package/dist/{mi-list-item-category.entry-9b5ab65c.mjs → mi-list-item-category.entry-d571c522.mjs} +1 -1
- package/dist/{mi-list-item-category.entry-42e29d24.mjs → mi-list-item-category.entry-ed1f0016.mjs} +1 -1
- package/dist/{mi-list-item-location.entry-bbbfe2a7.mjs → mi-list-item-location.entry-983d18dc.mjs} +13 -4
- package/dist/{mi-list-item-location.entry-9b450d90.mjs → mi-list-item-location.entry-e20d72d5.mjs} +13 -4
- package/dist/{mi-list.entry-1e15c8b2.mjs → mi-list.entry-934a1960.mjs} +1 -1
- package/dist/{mi-list.entry-706324ba.mjs → mi-list.entry-b209fc9e.mjs} +1 -1
- package/dist/{mi-location-booking.entry-31f0ffd7.mjs → mi-location-booking.entry-ba90c0f5.mjs} +1 -1
- package/dist/{mi-location-booking.entry-2fc3dbe6.mjs → mi-location-booking.entry-d3e55066.mjs} +1 -1
- package/dist/mi-location-info.entry-6836727e.mjs +29 -0
- package/dist/mi-location-info.entry-a6fb57ae.mjs +27 -0
- package/dist/{mi-map-googlemaps.entry-ddf3ff27.mjs → mi-map-googlemaps.entry-9a87fa24.mjs} +1 -1
- package/dist/{mi-map-googlemaps.entry-ea31cf66.mjs → mi-map-googlemaps.entry-f5b270d4.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-e22df837.mjs → mi-map-mapbox.entry-202a4e8b.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-fe15e9ca.mjs → mi-map-mapbox.entry-59feb00a.mjs} +1 -1
- package/dist/{mi-metric-card.entry-b2617b08.mjs → mi-metric-card.entry-c05cb967.mjs} +1 -1
- package/dist/{mi-metric-card.entry-99b596f9.mjs → mi-metric-card.entry-de136941.mjs} +1 -1
- package/dist/mi-my-position.entry-24076fd3.mjs +1395 -0
- package/dist/mi-my-position.entry-398c634c.mjs +1393 -0
- package/dist/{mi-notification.entry-8c748a26.mjs → mi-notification.entry-959f12f4.mjs} +1 -1
- package/dist/{mi-notification.entry-857b6c1c.mjs → mi-notification.entry-d9ab0be7.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-c829528a.mjs → mi-route-instructions-heading.entry-9eb6705b.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-01e02341.mjs → mi-route-instructions-heading.entry-bd47631f.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver_2.entry-ea1a1e45.mjs → mi-route-instructions-maneuver_2.entry-b76ddf67.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver_2.entry-0ee687b4.mjs → mi-route-instructions-maneuver_2.entry-dbe93897.mjs} +1 -1
- package/dist/{mi-route-instructions-step-legacy.entry-f7f34eb1.mjs → mi-route-instructions-step-legacy.entry-6d0db095.mjs} +1 -1
- package/dist/{mi-route-instructions-step-legacy.entry-bd450dd1.mjs → mi-route-instructions-step-legacy.entry-9ec0b55f.mjs} +1 -1
- package/dist/{mi-route-instructions-step.entry-e076c51c.mjs → mi-route-instructions-step.entry-b6c97032.mjs} +1 -1
- package/dist/{mi-route-instructions-step.entry-9e83262a.mjs → mi-route-instructions-step.entry-e954a9fb.mjs} +1 -1
- package/dist/{mi-route-instructions.entry-22c755f7.mjs → mi-route-instructions.entry-8b75c569.mjs} +1 -1
- package/dist/{mi-route-instructions.entry-0b175d52.mjs → mi-route-instructions.entry-cdf599f1.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-2e52b5cd.mjs → mi-scroll-buttons.entry-8942f2b8.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-11b309af.mjs → mi-scroll-buttons.entry-949ed154.mjs} +1 -1
- package/dist/{mi-search.entry-e56bea2f.mjs → mi-search.entry-29c3e575.mjs} +1 -1
- package/dist/{mi-search.entry-e0d70b7b.mjs → mi-search.entry-42818342.mjs} +1 -1
- package/dist/{mi-share-sms.entry-f1e515f4.mjs → mi-share-sms.entry-17289e35.mjs} +1 -1
- package/dist/{mi-share-sms.entry-c4ba3aec.mjs → mi-share-sms.entry-770fed69.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-f9e06f5d.mjs → mi-step-switcher.entry-07befa38.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-e5367504.mjs → mi-step-switcher.entry-7d05e984.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-0899c735.mjs → mi-tab-panel.entry-8f8f1c67.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-20d8fd90.mjs → mi-tab-panel.entry-b0b5328b.mjs} +1 -1
- package/dist/{mi-tab.entry-dbf70a3e.mjs → mi-tab.entry-186e9c96.mjs} +1 -1
- package/dist/{mi-tab.entry-40088a75.mjs → mi-tab.entry-2df457c7.mjs} +1 -1
- package/dist/{mi-tabs.entry-2750dca9.mjs → mi-tabs.entry-37d57017.mjs} +1 -1
- package/dist/{mi-tabs.entry-9741e88e.mjs → mi-tabs.entry-5062f40f.mjs} +1 -1
- package/dist/{reactcomponent-29bf5bf8.mjs → reactcomponent-f8a06053.mjs} +2620 -2619
- package/dist/{webcomponent-704c58f4.mjs → webcomponent-fe58a055.mjs} +3920 -3919
- package/package.json +1 -1
- package/dist/mi-location-info.entry-240e10b7.mjs +0 -22
- package/dist/mi-location-info.entry-fb55986a.mjs +0 -24
package/dist/{mi-list-item-location.entry-9b450d90.mjs → mi-list-item-location.entry-e20d72d5.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r, c as s, h as o, H as c } from "./webcomponent-
|
|
1
|
+
import { r, c as s, h as o, H as c } from "./webcomponent-fe58a055.mjs";
|
|
2
2
|
import { m as d } from "./icon-b8d01d6f-ddfa2c17.mjs";
|
|
3
3
|
import { b as a } from "./utils-ae714467-b07fc3be.mjs";
|
|
4
4
|
const l = 'html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{padding:16px;font-size:1rem;font-weight:500;line-height:1rem;transition:300ms ease;font-family:-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";border-radius:8px;background-color:#f9fafb;display:flex;flex-direction:row;align-items:center;cursor:pointer;gap:16px;border:1px solid #e5e7eb}:host(:hover){background-color:var(--tailwind-colors-gray-100)}.img-container{width:32px;height:32px;display:flex;justify-content:center;align-items:center}img{border-radius:8px;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.details{padding-right:16px;flex:1;display:grid;gap:4px}.details-title{margin:0;padding:0}.distance{font-weight:400}mi-location-info{color:#6b7280}', h = class {
|
|
5
5
|
constructor(e) {
|
|
6
|
-
r(this, e), this.locationClicked = s(this, "locationClicked", 7), this.listItemDidRender = s(this, "listItemDidRender", 7), this.iconDisplaySize = parseInt(d.icon.size.medium.value), this.location = void 0, this.unit = void 0, this.icon = void 0, this.iconBadge = void 0, this.iconBadgeValue = void 0, this.iconURLToRender = void 0;
|
|
6
|
+
r(this, e), this.locationClicked = s(this, "locationClicked", 7), this.listItemDidRender = s(this, "listItemDidRender", 7), this.iconDisplaySize = parseInt(d.icon.size.medium.value), this.location = void 0, this.showExternalId = !0, this.unit = void 0, this.icon = void 0, this.iconBadge = void 0, this.iconBadgeValue = void 0, this.iconURLToRender = void 0;
|
|
7
7
|
}
|
|
8
8
|
iconChanged() {
|
|
9
9
|
var e;
|
|
@@ -23,15 +23,21 @@ const l = 'html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:hos
|
|
|
23
23
|
locationClickedHandler(e) {
|
|
24
24
|
this.locationClicked.emit(e);
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Called once just after the component is first connected to the DOM.
|
|
28
|
+
*/
|
|
26
29
|
componentWillLoad() {
|
|
27
30
|
var e;
|
|
28
31
|
this.iconURLToRender = this.icon ? this.icon : (e = this.location) === null || e === void 0 ? void 0 : e.properties.imageURL, this.updateBadge();
|
|
29
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Called after every render().
|
|
35
|
+
*/
|
|
30
36
|
componentDidRender() {
|
|
31
37
|
this.location && (this.infoElement.location = this.location, this.listItemDidRender.emit(), this.imageElement && !("objectFit" in document.documentElement.style) && this.objectFitImage(this.imageElement));
|
|
32
38
|
}
|
|
33
39
|
/**
|
|
34
|
-
* Apply badge to location icon
|
|
40
|
+
* Apply badge to location icon.
|
|
35
41
|
*/
|
|
36
42
|
updateBadge() {
|
|
37
43
|
this.iconBadge && this.iconBadgeValue && this.iconURLToRender && this.applyBadgeToIcon();
|
|
@@ -80,6 +86,7 @@ const l = 'html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:hos
|
|
|
80
86
|
}
|
|
81
87
|
/**
|
|
82
88
|
* Create and return an Image from URL.
|
|
89
|
+
*
|
|
83
90
|
* @param {string} url
|
|
84
91
|
* @returns {Image}
|
|
85
92
|
*/
|
|
@@ -90,11 +97,13 @@ const l = 'html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:hos
|
|
|
90
97
|
}));
|
|
91
98
|
}
|
|
92
99
|
/**
|
|
100
|
+
* Render location list-item.
|
|
101
|
+
*
|
|
93
102
|
* @description Render location list-item.
|
|
94
103
|
* @returns {JSX.Element}
|
|
95
104
|
*/
|
|
96
105
|
render() {
|
|
97
|
-
return this.location && o(c, { role: "listitem", onClick: () => this.locationClickedHandler(this.location) }, this.iconURLToRender ? this.renderIcon() : null, o("div", { class: "details" }, o("p", { class: "details-title" }, this.location.properties.name), o("mi-location-info", { ref: (e) => this.infoElement = e })), this.location.properties.geodesicDistance && this.renderDistance());
|
|
106
|
+
return this.location && o(c, { role: "listitem", onClick: () => this.locationClickedHandler(this.location) }, this.iconURLToRender ? this.renderIcon() : null, o("div", { class: "details" }, o("p", { class: "details-title" }, this.location.properties.name), o("mi-location-info", { ref: (e) => this.infoElement = e, showExternalId: this.showExternalId })), this.location.properties.geodesicDistance && this.renderDistance());
|
|
98
107
|
}
|
|
99
108
|
/**
|
|
100
109
|
* @description Get JSX template for icon.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as e } from "./reactcomponent-
|
|
1
|
+
import { r as s, h as e } from "./reactcomponent-f8a06053.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const l = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{display:block;height:100%;width:100%}.container{height:100%;display:flex}.container .scroll-container{width:100%;overflow-y:auto}", n = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as e } from "./webcomponent-
|
|
1
|
+
import { r as s, h as e } from "./webcomponent-fe58a055.mjs";
|
|
2
2
|
const l = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{display:block;height:100%;width:100%}.container{height:100%;display:flex}.container .scroll-container{width:100%;overflow-y:auto}", n = class {
|
|
3
3
|
constructor(t) {
|
|
4
4
|
s(this, t), this.scrollButtonsEnabled = !1, this.scrollLength = 100;
|
package/dist/{mi-location-booking.entry-31f0ffd7.mjs → mi-location-booking.entry-ba90c0f5.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as _o, c as Q, h as x, H as go } from "./webcomponent-
|
|
1
|
+
import { r as _o, c as Q, h as x, H as go } from "./webcomponent-fe58a055.mjs";
|
|
2
2
|
import { c as wo } from "./utils-ae714467-b07fc3be.mjs";
|
|
3
3
|
function $(e) {
|
|
4
4
|
if (e === null || e === !0 || e === !1)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { r as i } from "./reactcomponent-f8a06053.mjs";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const o = ":host{display:block;color:#1f2937;font-weight:400}", e = class {
|
|
5
|
+
constructor(t) {
|
|
6
|
+
i(this, t), this.location = void 0, this.showExternalId = !0;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Get locations info as a string.
|
|
10
|
+
*
|
|
11
|
+
* @returns {string}
|
|
12
|
+
*/
|
|
13
|
+
getInfoString() {
|
|
14
|
+
const t = [];
|
|
15
|
+
return this.location.properties.externalId && this.showExternalId && t.push(this.location.properties.externalId), this.location.properties.floorName && t.push(`Level ${this.location.properties.floorName}`), this.location.properties.building && (this.location.properties.venue ? this.location.properties.venue.toLowerCase() !== this.location.properties.building.toLowerCase() && t.push(this.location.properties.building) : t.push(this.location.properties.building)), this.location.properties.venue && t.push(this.location.properties.venue), this.location.properties.subtitle && t.push(this.location.properties.subtitle), t.join(" · ");
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @description Render location list-info.
|
|
19
|
+
* @returns {JSX.Element}
|
|
20
|
+
*/
|
|
21
|
+
render() {
|
|
22
|
+
var t;
|
|
23
|
+
return !((t = this.location) === null || t === void 0) && t.properties ? this.getInfoString() : null;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
e.style = o;
|
|
27
|
+
export {
|
|
28
|
+
e as mi_location_info
|
|
29
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { r as i } from "./webcomponent-fe58a055.mjs";
|
|
2
|
+
const o = ":host{display:block;color:#1f2937;font-weight:400}", e = class {
|
|
3
|
+
constructor(t) {
|
|
4
|
+
i(this, t), this.location = void 0, this.showExternalId = !0;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Get locations info as a string.
|
|
8
|
+
*
|
|
9
|
+
* @returns {string}
|
|
10
|
+
*/
|
|
11
|
+
getInfoString() {
|
|
12
|
+
const t = [];
|
|
13
|
+
return this.location.properties.externalId && this.showExternalId && t.push(this.location.properties.externalId), this.location.properties.floorName && t.push(`Level ${this.location.properties.floorName}`), this.location.properties.building && (this.location.properties.venue ? this.location.properties.venue.toLowerCase() !== this.location.properties.building.toLowerCase() && t.push(this.location.properties.building) : t.push(this.location.properties.building)), this.location.properties.venue && t.push(this.location.properties.venue), this.location.properties.subtitle && t.push(this.location.properties.subtitle), t.join(" · ");
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @description Render location list-info.
|
|
17
|
+
* @returns {JSX.Element}
|
|
18
|
+
*/
|
|
19
|
+
render() {
|
|
20
|
+
var t;
|
|
21
|
+
return !((t = this.location) === null || t === void 0) && t.properties ? this.getInfoString() : null;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
e.style = o;
|
|
25
|
+
export {
|
|
26
|
+
e as mi_location_info
|
|
27
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, h as i, H as o } from "./webcomponent-
|
|
1
|
+
import { r as e, h as i, H as o } from "./webcomponent-fe58a055.mjs";
|
|
2
2
|
import { a as s, f as n } from "./utils-ae714467-b07fc3be.mjs";
|
|
3
3
|
const r = ':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 mi-card{position:relative;overflow:hidden;min-width:312px}:host mi-card .content h1{display:inline-flex;cursor:default;align-items:center;text-transform:uppercase;white-space:nowrap;margin:0;font-size:1rem;font-weight:600;color:#6b7280;margin-bottom:8px}:host mi-card .content h1 svg{fill:#9ca3af;width:16px;height:16px;margin-left:8px}:host mi-card .content section{position:relative}:host mi-card .content section p{margin:0;font-size:3rem;line-height:3rem;font-weight:500;color:#1c1917}:host mi-card .content section p.error{font-size:1rem;font-weight:500;color:#6b7280}:host mi-card .content section p.hidden{visibility:hidden}:host mi-card .content section p.tool-tip{box-sizing:border-box;visibility:hidden;overflow:hidden;position:absolute;top:0px;right:0px;bottom:0px;left:0px;opacity:0;transition:all 100ms;z-index:700;background-color:#ffffff;font-size:0.875rem;font-weight:400;line-height:1rem;margin:0}:host mi-card .content section p.tool-tip.visible{opacity:1;visibility:visible}:host mi-card .content section mi-spinner{display:inline-block;vertical-align:middle;width:100%}', l = class {
|
|
4
4
|
constructor(t) {
|