@mapsindoors/map-template 1.95.0 → 1.95.2
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/{GoogleMapsMap-BIUan6Mh.mjs → GoogleMapsMap-Dkn60-_e.mjs} +2 -2
- package/dist/{MapboxMap-BwTFmd5b.mjs → MapboxMap-B1oo7IUm.mjs} +3 -3
- package/dist/_commonjsHelpers-B85MJLTf.js +5 -0
- package/dist/app-globals-DQuL1Twl.js +3 -0
- package/dist/combo-box-item.entry.js +8 -10
- package/dist/icon-DT_sDkmK.js +11 -0
- package/dist/index-BZQHyS7V.js +1701 -0
- package/dist/loader.js +7 -14
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +175 -175
- package/dist/mapsindoors-webcomponent.es.js +2919 -2907
- package/dist/mi-card_2.entry.js +23 -18
- package/dist/mi-chip.entry.js +25 -16
- package/dist/mi-column.entry.js +47 -23
- package/dist/mi-combo-box.entry.js +412 -379
- package/dist/mi-components.js +15 -12
- package/dist/mi-data-table.entry.js +298 -278
- package/dist/mi-distance_2.entry.js +58 -56
- package/dist/mi-dropdown-item.entry.js +8 -10
- package/dist/mi-dropdown.entry.js +525 -481
- package/dist/mi-floor-selector.entry.js +183 -180
- package/dist/mi-keyboard.entry.js +207 -186
- package/dist/mi-list-item-category.entry.js +44 -41
- package/dist/mi-list-item-location.entry.js +168 -162
- package/dist/mi-list.entry.js +56 -48
- package/dist/mi-location-booking.entry.js +320 -295
- package/dist/mi-location-info.entry.js +61 -53
- package/dist/mi-map-googlemaps.entry.js +369 -324
- package/dist/mi-map-mapbox.entry.js +502 -439
- package/dist/mi-metric-card.entry.js +50 -37
- package/dist/mi-my-position.entry.js +2341 -874
- package/dist/mi-notification.entry.js +112 -102
- package/dist/mi-route-instructions-heading.entry.js +70 -65
- package/dist/mi-route-instructions-maneuver-legacy.entry.js +80 -76
- package/dist/mi-route-instructions-maneuver.entry.js +80 -76
- package/dist/mi-route-instructions-step-legacy.entry.js +296 -282
- package/dist/mi-route-instructions-step.entry.js +313 -292
- package/dist/mi-route-instructions.entry.js +167 -150
- package/dist/mi-scroll-buttons.entry.js +104 -98
- package/dist/mi-search.entry.js +366 -325
- package/dist/mi-share-sms.entry.js +82 -70
- package/dist/mi-step-switcher.entry.js +34 -25
- package/dist/mi-tab-panel.entry.js +18 -18
- package/dist/mi-tab.entry.js +5 -7
- package/dist/mi-tabs.entry.js +42 -40
- package/dist/mi-time.entry.js +49 -49
- package/dist/mi-variables-CDNvnTkH.js +5 -0
- package/dist/{reactcomponent-D3K1zzGs.mjs → reactcomponent-2Oa1vSiK.mjs} +8996 -8660
- package/dist/route-travel-mode.enum-BvqP1fpw.js +9 -0
- package/dist/sort-order.enum-jsLAbYWg.js +566 -0
- package/dist/{unit-system.enum-eaefb53e.js → unit-system.enum-BwPgAWqL.js} +2 -2
- package/dist/utils-DNHzysQ6.js +61 -0
- package/package.json +1 -1
- package/dist/_commonjsHelpers-ba3f0406.js +0 -21
- package/dist/icon-b8d01d6f.js +0 -24
- package/dist/index-7e9696f3.js +0 -1678
- package/dist/mi-variables-9a6c8d4d.js +0 -6
- package/dist/polyfills/core-js.js +0 -11
- package/dist/polyfills/css-shim.js +0 -1
- package/dist/polyfills/dom.js +0 -79
- package/dist/polyfills/es5-html-element.js +0 -1
- package/dist/polyfills/index.js +0 -34
- package/dist/polyfills/system.js +0 -6
- package/dist/route-travel-mode.enum-7f4ce9c7.js +0 -9
- package/dist/sort-order.enum-64ce8998.js +0 -552
- package/dist/utils-ae714467.js +0 -61
|
@@ -1,63 +1,71 @@
|
|
|
1
|
-
import { r as registerInstance } from './index-
|
|
1
|
+
import { r as registerInstance } from './index-BZQHyS7V.js';
|
|
2
2
|
|
|
3
|
-
const locationInfoCss =
|
|
3
|
+
const locationInfoCss = () => `:host{display:block;color:#1f2937;font-weight:400;padding-bottom:0.25rem}`;
|
|
4
4
|
|
|
5
5
|
const LocationInfo = class {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
// External Id
|
|
21
|
-
if (this.location.properties.externalId && this.showExternalId) {
|
|
22
|
-
details.push(this.location.properties.externalId);
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* @description The word used for "Level" when showing level info. Default is "Level".
|
|
10
|
+
*/
|
|
11
|
+
this.level = 'Level';
|
|
12
|
+
/**
|
|
13
|
+
* @description Whether to show the External ID.
|
|
14
|
+
*/
|
|
15
|
+
this.showExternalId = true;
|
|
16
|
+
/**
|
|
17
|
+
* @description Whether to show the floor information. Default is true.
|
|
18
|
+
*/
|
|
19
|
+
this.showFloor = true;
|
|
23
20
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
//
|
|
32
|
-
if (this.location.properties.
|
|
33
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Get locations info as a string.
|
|
23
|
+
*
|
|
24
|
+
* @returns {string}
|
|
25
|
+
*/
|
|
26
|
+
getInfoString() {
|
|
27
|
+
const details = [];
|
|
28
|
+
// External Id
|
|
29
|
+
if (this.location.properties.externalId && this.showExternalId) {
|
|
30
|
+
details.push(this.location.properties.externalId);
|
|
34
31
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
// Floor name
|
|
33
|
+
if (this.location.properties.floorName && this.showFloor) {
|
|
34
|
+
details.push(`${this.level} ${this.location.properties.floorName}`);
|
|
35
|
+
}
|
|
36
|
+
// Building
|
|
37
|
+
if (this.location.properties.building) {
|
|
38
|
+
if (this.location.properties.venue) {
|
|
39
|
+
// Check that venue and building is not named the same
|
|
40
|
+
if (this.location.properties.venue.toLowerCase() !== this.location.properties.building.toLowerCase()) {
|
|
41
|
+
details.push(this.location.properties.building);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
details.push(this.location.properties.building);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
// Venue
|
|
49
|
+
if (this.location.properties.venue) {
|
|
50
|
+
details.push(this.location.properties.venue);
|
|
51
|
+
}
|
|
52
|
+
// Subtitle
|
|
53
|
+
if (this.location.properties.subtitle) {
|
|
54
|
+
details.push(this.location.properties.subtitle);
|
|
55
|
+
}
|
|
56
|
+
return details.join(' · ');
|
|
43
57
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
58
|
+
/**
|
|
59
|
+
* Renders location list-info.
|
|
60
|
+
*
|
|
61
|
+
* @description Render location list-info.
|
|
62
|
+
* @returns {JSX.Element}
|
|
63
|
+
*/
|
|
64
|
+
render() {
|
|
65
|
+
var _a;
|
|
66
|
+
return (((_a = this.location) === null || _a === void 0 ? void 0 : _a.properties) ? this.getInfoString() : null);
|
|
47
67
|
}
|
|
48
|
-
return details.join(' · ');
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Renders location list-info.
|
|
52
|
-
*
|
|
53
|
-
* @description Render location list-info.
|
|
54
|
-
* @returns {JSX.Element}
|
|
55
|
-
*/
|
|
56
|
-
render() {
|
|
57
|
-
var _a;
|
|
58
|
-
return (((_a = this.location) === null || _a === void 0 ? void 0 : _a.properties) ? this.getInfoString() : null);
|
|
59
|
-
}
|
|
60
68
|
};
|
|
61
|
-
LocationInfo.style = locationInfoCss;
|
|
69
|
+
LocationInfo.style = locationInfoCss();
|
|
62
70
|
|
|
63
71
|
export { LocationInfo as mi_location_info };
|