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