@mapsindoors/map-template 1.95.7 → 1.95.9

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 (59) hide show
  1. package/dist/{GoogleMapsMap-mNXwkS5r.mjs → GoogleMapsMap-CV6Wgkhg.mjs} +2 -2
  2. package/dist/{MapboxMap-JSpSXMbZ.mjs → MapboxMap-EuKWsGtq.mjs} +2 -2
  3. package/dist/favicon.png +0 -0
  4. package/dist/logo-192.png +0 -0
  5. package/dist/manifest.json +21 -0
  6. package/dist/mapsindoors-react.es.js +1 -1
  7. package/dist/mapsindoors-react.umd.js +236 -198
  8. package/dist/mapsindoors-webcomponent.es.js +51553 -42031
  9. package/dist/reactcomponent-DcNpL3XF.mjs +37841 -0
  10. package/dist/robots.txt +3 -0
  11. package/package.json +5 -6
  12. package/dist/_commonjsHelpers-B85MJLTf.js +0 -5
  13. package/dist/app-globals-DQuL1Twl.js +0 -3
  14. package/dist/combo-box-item.entry.js +0 -13
  15. package/dist/icon-DT_sDkmK.js +0 -11
  16. package/dist/index-BZQHyS7V.js +0 -1701
  17. package/dist/index.js +0 -1
  18. package/dist/loader.js +0 -11
  19. package/dist/mi-card_2.entry.js +0 -33
  20. package/dist/mi-chip.entry.js +0 -31
  21. package/dist/mi-column.entry.js +0 -52
  22. package/dist/mi-combo-box.entry.js +0 -449
  23. package/dist/mi-components.js +0 -21
  24. package/dist/mi-data-table.entry.js +0 -324
  25. package/dist/mi-distance_2.entry.js +0 -69
  26. package/dist/mi-dropdown-item.entry.js +0 -13
  27. package/dist/mi-dropdown.entry.js +0 -656
  28. package/dist/mi-floor-selector.entry.js +0 -209
  29. package/dist/mi-keyboard.entry.js +0 -261
  30. package/dist/mi-list-item-category.entry.js +0 -51
  31. package/dist/mi-list-item-location.entry.js +0 -177
  32. package/dist/mi-list.entry.js +0 -68
  33. package/dist/mi-location-booking.entry.js +0 -5218
  34. package/dist/mi-location-info.entry.js +0 -71
  35. package/dist/mi-map-googlemaps.entry.js +0 -795
  36. package/dist/mi-map-mapbox.entry.js +0 -530
  37. package/dist/mi-metric-card.entry.js +0 -61
  38. package/dist/mi-my-position.entry.js +0 -2457
  39. package/dist/mi-notification.entry.js +0 -137
  40. package/dist/mi-route-instructions-heading.entry.js +0 -78
  41. package/dist/mi-route-instructions-maneuver-legacy.entry.js +0 -86
  42. package/dist/mi-route-instructions-maneuver.entry.js +0 -86
  43. package/dist/mi-route-instructions-step-legacy.entry.js +0 -322
  44. package/dist/mi-route-instructions-step.entry.js +0 -342
  45. package/dist/mi-route-instructions.entry.js +0 -176
  46. package/dist/mi-scroll-buttons.entry.js +0 -120
  47. package/dist/mi-search.entry.js +0 -429
  48. package/dist/mi-share-sms.entry.js +0 -94
  49. package/dist/mi-step-switcher.entry.js +0 -40
  50. package/dist/mi-tab-panel.entry.js +0 -25
  51. package/dist/mi-tab.entry.js +0 -10
  52. package/dist/mi-tabs.entry.js +0 -49
  53. package/dist/mi-time.entry.js +0 -57
  54. package/dist/mi-variables-CDNvnTkH.js +0 -5
  55. package/dist/reactcomponent-BrPGG2Eb.mjs +0 -29048
  56. package/dist/route-travel-mode.enum-BvqP1fpw.js +0 -9
  57. package/dist/sort-order.enum-jsLAbYWg.js +0 -566
  58. package/dist/unit-system.enum-BwPgAWqL.js +0 -7
  59. package/dist/utils-DNHzysQ6.js +0 -61
@@ -1,57 +0,0 @@
1
- import { r as registerInstance, h } from './index-BZQHyS7V.js';
2
-
3
- const Time = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- this.translationsData = { days: 'd', hours: 'h', minutes: 'min' };
7
- }
8
- setTranslations() {
9
- if (this.translations) {
10
- this.translationsData = JSON.parse(this.translations);
11
- }
12
- else {
13
- this.translationsData = { days: 'd', hours: 'h', minutes: 'min' };
14
- }
15
- }
16
- componentWillLoad() {
17
- this.setTranslations();
18
- }
19
- /**
20
- * Get display string in days, hours, and minutes, eg. "1 d 23 h 4 min".
21
- * Minimum display value is 1 minute.
22
- *
23
- * @param {number} seconds Duration in seconds.
24
- * @returns {string}
25
- */
26
- getDurationDisplayString(seconds) {
27
- const days = Math.floor(seconds / 86400);
28
- const hours = Math.floor((seconds % 86400) / 3600);
29
- const minutes = Math.floor(((seconds % 86400) % 3600) / 60);
30
- const dDisplay = days > 0 ? `${days} ${this.translationsData.days} ` : '';
31
- const hDisplay = hours > 0 ? `${hours} ${this.translationsData.hours} ` : '';
32
- let mDisplay = minutes > 0 ? `${minutes} ${this.translationsData.minutes}` : '';
33
- // Set minimum value of 1 min.
34
- if (!dDisplay && !hDisplay && !mDisplay) {
35
- mDisplay = '1 min';
36
- }
37
- return `${dDisplay}${hDisplay}${mDisplay}`.trim();
38
- }
39
- render() {
40
- return (this.seconds >= 0 && this.translationsData ? this.renderDuration() : null);
41
- }
42
- /**
43
- * Render formatted duration string.
44
- *
45
- * @returns {JSX.Element}
46
- */
47
- renderDuration() {
48
- return (h("span", null, this.getDurationDisplayString(this.seconds)));
49
- }
50
- static get watchers() { return {
51
- "translations": [{
52
- "setTranslations": 0
53
- }]
54
- }; }
55
- };
56
-
57
- export { Time as mi_time };
@@ -1,5 +0,0 @@
1
- var miVariables = {
2
- miSDKUrlV4: 'https://app.mapsindoors.com/mapsindoors/js/sdk/4.52.0/mapsindoors-4.52.0.js.gz'
3
- };
4
-
5
- export { miVariables as m };