@mapsindoors/map-template 1.4.2 → 1.5.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/{combo-box-item.entry-0dc74103.mjs → combo-box-item.entry-43f9c279.mjs} +1 -1
- package/dist/{combo-box-item.entry-e78f688f.mjs → combo-box-item.entry-e8433c10.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-8734a070.mjs → mi-card_2.entry-34ea9c0f.mjs} +1 -1
- package/dist/{mi-card_2.entry-016f3f57.mjs → mi-card_2.entry-3e05c64a.mjs} +1 -1
- package/dist/{mi-chip.entry-f37794a7.mjs → mi-chip.entry-b29664ab.mjs} +1 -1
- package/dist/{mi-chip.entry-8c14862b.mjs → mi-chip.entry-bf880d43.mjs} +1 -1
- package/dist/{mi-column.entry-0e30a3cd.mjs → mi-column.entry-b05b9fd8.mjs} +1 -1
- package/dist/{mi-column.entry-956e7e8e.mjs → mi-column.entry-c9a43b07.mjs} +1 -1
- package/dist/{mi-combo-box.entry-dc5e7c3a.mjs → mi-combo-box.entry-52b45b1c.mjs} +1 -1
- package/dist/{mi-combo-box.entry-a69ed592.mjs → mi-combo-box.entry-c7e38ae9.mjs} +1 -1
- package/dist/{mi-data-table.entry-166d9c4e.mjs → mi-data-table.entry-345217f7.mjs} +1 -1
- package/dist/{mi-data-table.entry-051420e6.mjs → mi-data-table.entry-88f8fabf.mjs} +1 -1
- package/dist/{mi-distance_2.entry-cb57c7d6.mjs → mi-distance_2.entry-e874bfd9.mjs} +1 -1
- package/dist/{mi-distance_2.entry-70a9bee6.mjs → mi-distance_2.entry-f1f63523.mjs} +1 -1
- package/dist/{mi-dropdown-item.entry-471b5ff4.mjs → mi-dropdown-item.entry-5550e2ab.mjs} +1 -1
- package/dist/{mi-dropdown-item.entry-5126f2e8.mjs → mi-dropdown-item.entry-846d3691.mjs} +1 -1
- package/dist/{mi-dropdown.entry-9fd15060.mjs → mi-dropdown.entry-d30b7a6a.mjs} +1 -1
- package/dist/{mi-dropdown.entry-a23ee159.mjs → mi-dropdown.entry-f52d6276.mjs} +1 -1
- package/dist/mi-floor-selector.entry-56ad7df0.mjs +112 -0
- package/dist/mi-floor-selector.entry-c0ff1982.mjs +110 -0
- package/dist/{mi-keyboard.entry-2c6ccbe9.mjs → mi-keyboard.entry-509077c1.mjs} +1 -1
- package/dist/{mi-keyboard.entry-a70e8554.mjs → mi-keyboard.entry-8f4489a3.mjs} +1 -1
- package/dist/{mi-list-item-category.entry-af52ccab.mjs → mi-list-item-category.entry-e39d6cde.mjs} +1 -1
- package/dist/{mi-list-item-category.entry-5c8c2d1c.mjs → mi-list-item-category.entry-e817d618.mjs} +1 -1
- package/dist/{mi-list-item-location.entry-9e167854.mjs → mi-list-item-location.entry-2d7f1aba.mjs} +13 -4
- package/dist/{mi-list-item-location.entry-b89c645e.mjs → mi-list-item-location.entry-7e068a6c.mjs} +13 -4
- package/dist/{mi-list.entry-988aea1b.mjs → mi-list.entry-149a2b0e.mjs} +1 -1
- package/dist/{mi-list.entry-62dd7607.mjs → mi-list.entry-b589d513.mjs} +1 -1
- package/dist/{mi-location-booking.entry-af85eafe.mjs → mi-location-booking.entry-9d803fdd.mjs} +1 -1
- package/dist/{mi-location-booking.entry-0d95b6e2.mjs → mi-location-booking.entry-fdb30ddd.mjs} +1 -1
- package/dist/mi-location-info.entry-2dc24888.mjs +27 -0
- package/dist/mi-location-info.entry-db791bda.mjs +29 -0
- package/dist/{mi-map-googlemaps.entry-15d8ff0c.mjs → mi-map-googlemaps.entry-693c17b1.mjs} +1 -1
- package/dist/{mi-map-googlemaps.entry-1e6a0c3a.mjs → mi-map-googlemaps.entry-815c327c.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-006002d1.mjs → mi-map-mapbox.entry-38bfe2e4.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-a54911cc.mjs → mi-map-mapbox.entry-ce854ebd.mjs} +1 -1
- package/dist/{mi-metric-card.entry-34de3fef.mjs → mi-metric-card.entry-24ff6739.mjs} +1 -1
- package/dist/{mi-metric-card.entry-c5db0bd7.mjs → mi-metric-card.entry-fa5470f0.mjs} +1 -1
- package/dist/mi-my-position.entry-008c64f6.mjs +1395 -0
- package/dist/mi-my-position.entry-577a8255.mjs +1393 -0
- package/dist/{mi-notification.entry-18a870d6.mjs → mi-notification.entry-0f43047e.mjs} +1 -1
- package/dist/{mi-notification.entry-6c12bf39.mjs → mi-notification.entry-d10ac69d.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-7745d1f2.mjs → mi-route-instructions-heading.entry-35bf73b0.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-c147c4cf.mjs → mi-route-instructions-heading.entry-a2a1c988.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver_2.entry-48fec273.mjs → mi-route-instructions-maneuver_2.entry-0ede8a6a.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver_2.entry-0036d784.mjs → mi-route-instructions-maneuver_2.entry-475eb284.mjs} +1 -1
- package/dist/{mi-route-instructions-step-legacy.entry-79d3844d.mjs → mi-route-instructions-step-legacy.entry-04669a50.mjs} +1 -1
- package/dist/{mi-route-instructions-step-legacy.entry-1a8184f8.mjs → mi-route-instructions-step-legacy.entry-e0a8cb0b.mjs} +1 -1
- package/dist/{mi-route-instructions-step.entry-8c15c613.mjs → mi-route-instructions-step.entry-c202fe43.mjs} +1 -1
- package/dist/{mi-route-instructions-step.entry-6d8f1142.mjs → mi-route-instructions-step.entry-e570147c.mjs} +1 -1
- package/dist/{mi-route-instructions.entry-7ce5505a.mjs → mi-route-instructions.entry-8e6e5228.mjs} +1 -1
- package/dist/{mi-route-instructions.entry-3bf0cb26.mjs → mi-route-instructions.entry-df8d5925.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-7cb55c56.mjs → mi-scroll-buttons.entry-22dd70ea.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-2bc7f49e.mjs → mi-scroll-buttons.entry-771f293a.mjs} +1 -1
- package/dist/{mi-search.entry-791d2c50.mjs → mi-search.entry-1c387b2e.mjs} +1 -1
- package/dist/{mi-search.entry-c86bcb6f.mjs → mi-search.entry-fb05a198.mjs} +1 -1
- package/dist/{mi-share-sms.entry-ac0fa755.mjs → mi-share-sms.entry-001986ee.mjs} +1 -1
- package/dist/{mi-share-sms.entry-9584c0b5.mjs → mi-share-sms.entry-2397d0ec.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-be3465e2.mjs → mi-step-switcher.entry-47d7f6bb.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-8199d9ef.mjs → mi-step-switcher.entry-c8b82dcc.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-38a7e43a.mjs → mi-tab-panel.entry-69a9a2a6.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-9348cd1f.mjs → mi-tab-panel.entry-dbf1b501.mjs} +1 -1
- package/dist/{mi-tab.entry-96ab146e.mjs → mi-tab.entry-5850ff32.mjs} +1 -1
- package/dist/{mi-tab.entry-0b086b7e.mjs → mi-tab.entry-5dc2e1a4.mjs} +1 -1
- package/dist/{mi-tabs.entry-df575e9f.mjs → mi-tabs.entry-9a45d53c.mjs} +1 -1
- package/dist/{mi-tabs.entry-59021c1e.mjs → mi-tabs.entry-c1548c35.mjs} +1 -1
- package/dist/{reactcomponent-c0305d4c.mjs → reactcomponent-8d2c3766.mjs} +5001 -5001
- package/dist/{webcomponent-a4bdfc4d.mjs → webcomponent-41fdf0bf.mjs} +6573 -6573
- package/package.json +1 -1
- package/dist/mi-location-info.entry-6480da0b.mjs +0 -24
- package/dist/mi-location-info.entry-cdee0411.mjs +0 -22
package/dist/{mi-list-item-location.entry-b89c645e.mjs → mi-list-item-location.entry-7e068a6c.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r, c as s, h as o, H as c } from "./reactcomponent-
|
|
1
|
+
import { r, c as s, h as o, H as c } from "./reactcomponent-8d2c3766.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
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
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 {
|
|
7
7
|
constructor(e) {
|
|
8
|
-
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;
|
|
8
|
+
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;
|
|
9
9
|
}
|
|
10
10
|
iconChanged() {
|
|
11
11
|
var e;
|
|
@@ -25,15 +25,21 @@ const l = 'html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:hos
|
|
|
25
25
|
locationClickedHandler(e) {
|
|
26
26
|
this.locationClicked.emit(e);
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Called once just after the component is first connected to the DOM.
|
|
30
|
+
*/
|
|
28
31
|
componentWillLoad() {
|
|
29
32
|
var e;
|
|
30
33
|
this.iconURLToRender = this.icon ? this.icon : (e = this.location) === null || e === void 0 ? void 0 : e.properties.imageURL, this.updateBadge();
|
|
31
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Called after every render().
|
|
37
|
+
*/
|
|
32
38
|
componentDidRender() {
|
|
33
39
|
this.location && (this.infoElement.location = this.location, this.listItemDidRender.emit(), this.imageElement && !("objectFit" in document.documentElement.style) && this.objectFitImage(this.imageElement));
|
|
34
40
|
}
|
|
35
41
|
/**
|
|
36
|
-
* Apply badge to location icon
|
|
42
|
+
* Apply badge to location icon.
|
|
37
43
|
*/
|
|
38
44
|
updateBadge() {
|
|
39
45
|
this.iconBadge && this.iconBadgeValue && this.iconURLToRender && this.applyBadgeToIcon();
|
|
@@ -82,6 +88,7 @@ const l = 'html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:hos
|
|
|
82
88
|
}
|
|
83
89
|
/**
|
|
84
90
|
* Create and return an Image from URL.
|
|
91
|
+
*
|
|
85
92
|
* @param {string} url
|
|
86
93
|
* @returns {Image}
|
|
87
94
|
*/
|
|
@@ -92,11 +99,13 @@ const l = 'html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:hos
|
|
|
92
99
|
}));
|
|
93
100
|
}
|
|
94
101
|
/**
|
|
102
|
+
* Render location list-item.
|
|
103
|
+
*
|
|
95
104
|
* @description Render location list-item.
|
|
96
105
|
* @returns {JSX.Element}
|
|
97
106
|
*/
|
|
98
107
|
render() {
|
|
99
|
-
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());
|
|
108
|
+
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());
|
|
100
109
|
}
|
|
101
110
|
/**
|
|
102
111
|
* @description Get JSX template for icon.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as e } from "./webcomponent-
|
|
1
|
+
import { r as s, h as e } from "./webcomponent-41fdf0bf.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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as e } from "./reactcomponent-
|
|
1
|
+
import { r as s, h as e } from "./reactcomponent-8d2c3766.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 {
|
package/dist/{mi-location-booking.entry-0d95b6e2.mjs → mi-location-booking.entry-fdb30ddd.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-41fdf0bf.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,27 @@
|
|
|
1
|
+
import { r as i } from "./webcomponent-41fdf0bf.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
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { r as i } from "./reactcomponent-8d2c3766.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
|
+
};
|
|
@@ -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-41fdf0bf.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) {
|