@mapsindoors/map-template 1.12.0-rc.3 → 1.12.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.
Files changed (73) hide show
  1. package/package.json +1 -1
  2. package/dist/combo-box-item.entry-04f0e546.mjs +0 -12
  3. package/dist/combo-box-item.entry-f1f36e49.mjs +0 -14
  4. package/dist/mi-card_2.entry-112d6cec.mjs +0 -25
  5. package/dist/mi-card_2.entry-138c7653.mjs +0 -23
  6. package/dist/mi-chip.entry-3a9b51dd.mjs +0 -16
  7. package/dist/mi-chip.entry-b0cb0da5.mjs +0 -18
  8. package/dist/mi-column.entry-e8b74502.mjs +0 -20
  9. package/dist/mi-column.entry-fe197b13.mjs +0 -18
  10. package/dist/mi-combo-box.entry-5776c4cc.mjs +0 -260
  11. package/dist/mi-combo-box.entry-b23feef3.mjs +0 -262
  12. package/dist/mi-data-table.entry-0d04f901.mjs +0 -215
  13. package/dist/mi-data-table.entry-ff82dd01.mjs +0 -213
  14. package/dist/mi-distance_2.entry-80019828.mjs +0 -56
  15. package/dist/mi-distance_2.entry-c18ff16b.mjs +0 -54
  16. package/dist/mi-dropdown-item.entry-63c41efc.mjs +0 -14
  17. package/dist/mi-dropdown-item.entry-bb3d99f0.mjs +0 -12
  18. package/dist/mi-dropdown.entry-870fa8de.mjs +0 -296
  19. package/dist/mi-dropdown.entry-adcf21a7.mjs +0 -298
  20. package/dist/mi-floor-selector.entry-6b91f5fc.mjs +0 -110
  21. package/dist/mi-floor-selector.entry-9a4296ba.mjs +0 -112
  22. package/dist/mi-keyboard.entry-668f536d.mjs +0 -2960
  23. package/dist/mi-keyboard.entry-b0c17b79.mjs +0 -2962
  24. package/dist/mi-list-item-category.entry-b2884dba.mjs +0 -38
  25. package/dist/mi-list-item-category.entry-b9536a7c.mjs +0 -36
  26. package/dist/mi-list-item-location.entry-ab46e53a.mjs +0 -134
  27. package/dist/mi-list-item-location.entry-d34a5690.mjs +0 -136
  28. package/dist/mi-list.entry-40b86f7f.mjs +0 -39
  29. package/dist/mi-list.entry-f9fdb0da.mjs +0 -41
  30. package/dist/mi-location-booking.entry-0f7f2812.mjs +0 -4863
  31. package/dist/mi-location-booking.entry-32cb574a.mjs +0 -4865
  32. package/dist/mi-location-info.entry-5cc2e91c.mjs +0 -31
  33. package/dist/mi-location-info.entry-c0cc0b69.mjs +0 -29
  34. package/dist/mi-map-googlemaps.entry-46829aaa.mjs +0 -398
  35. package/dist/mi-map-googlemaps.entry-e559c0dc.mjs +0 -396
  36. package/dist/mi-map-mapbox.entry-2c18333b.mjs +0 -300
  37. package/dist/mi-map-mapbox.entry-68c783cf.mjs +0 -298
  38. package/dist/mi-metric-card.entry-2f6981e7.mjs +0 -26
  39. package/dist/mi-metric-card.entry-7e16c8f8.mjs +0 -28
  40. package/dist/mi-my-position.entry-23e243aa.mjs +0 -1395
  41. package/dist/mi-my-position.entry-5a94c83d.mjs +0 -1393
  42. package/dist/mi-notification.entry-401c9cb9.mjs +0 -81
  43. package/dist/mi-notification.entry-4d06c318.mjs +0 -83
  44. package/dist/mi-route-instructions-heading.entry-8f5eaa1d.mjs +0 -74
  45. package/dist/mi-route-instructions-heading.entry-f3b4f871.mjs +0 -72
  46. package/dist/mi-route-instructions-maneuver-legacy.entry-66dad3ef.mjs +0 -75
  47. package/dist/mi-route-instructions-maneuver-legacy.entry-8ffeb735.mjs +0 -73
  48. package/dist/mi-route-instructions-maneuver.entry-24bcf67d.mjs +0 -75
  49. package/dist/mi-route-instructions-maneuver.entry-703bbcd9.mjs +0 -73
  50. package/dist/mi-route-instructions-step-legacy.entry-27a5fe00.mjs +0 -199
  51. package/dist/mi-route-instructions-step-legacy.entry-cf34cec4.mjs +0 -201
  52. package/dist/mi-route-instructions-step.entry-c3beb0c0.mjs +0 -234
  53. package/dist/mi-route-instructions-step.entry-e8a13502.mjs +0 -236
  54. package/dist/mi-route-instructions.entry-d9cabf3f.mjs +0 -142
  55. package/dist/mi-route-instructions.entry-fd85a9a4.mjs +0 -140
  56. package/dist/mi-scroll-buttons.entry-7666d055.mjs +0 -48
  57. package/dist/mi-scroll-buttons.entry-c069579b.mjs +0 -46
  58. package/dist/mi-search.entry-5e428c8e.mjs +0 -209
  59. package/dist/mi-search.entry-7ad753cf.mjs +0 -207
  60. package/dist/mi-share-sms.entry-25262279.mjs +0 -53
  61. package/dist/mi-share-sms.entry-33766d61.mjs +0 -55
  62. package/dist/mi-step-switcher.entry-81d295f8.mjs +0 -24
  63. package/dist/mi-step-switcher.entry-95ade6f3.mjs +0 -26
  64. package/dist/mi-tab-panel.entry-8c9b016e.mjs +0 -19
  65. package/dist/mi-tab-panel.entry-d77c094f.mjs +0 -21
  66. package/dist/mi-tab.entry-458faa22.mjs +0 -11
  67. package/dist/mi-tab.entry-d45194c0.mjs +0 -13
  68. package/dist/mi-tabs.entry-94ef09f5.mjs +0 -34
  69. package/dist/mi-tabs.entry-a78c550d.mjs +0 -36
  70. package/dist/mi-time.entry-c35e476f.mjs +0 -43
  71. package/dist/mi-time.entry-cae11551.mjs +0 -45
  72. package/dist/reactcomponent-0e140537.mjs +0 -31717
  73. package/dist/webcomponent-592597b2.mjs +0 -36391
@@ -1,11 +0,0 @@
1
- import { r as t } from "./webcomponent-592597b2.mjs";
2
- const s = class {
3
- constructor(r) {
4
- t(this, r), this.label = void 0, this.tabFor = void 0;
5
- }
6
- render() {
7
- }
8
- };
9
- export {
10
- s as mi_tab
11
- };
@@ -1,13 +0,0 @@
1
- import { r as t } from "./reactcomponent-0e140537.mjs";
2
- import "react";
3
- import "react-dom";
4
- const n = class {
5
- constructor(r) {
6
- t(this, r), this.label = void 0, this.tabFor = void 0;
7
- }
8
- render() {
9
- }
10
- };
11
- export {
12
- n as mi_tab
13
- };
@@ -1,34 +0,0 @@
1
- import { r as a, h as o, H as l, g as d } from "./webcomponent-592597b2.mjs";
2
- const b = ':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 .nav{border:none;border-bottom:solid;border-color:#d1d5db;border-width:1px;padding-left:24px}:host .nav--borderless-bottom{border-bottom:0}:host .nav ul{display:flex;flex-direction:row;padding:0;margin:0;margin-bottom:-1px}:host .nav ul li{list-style:none;text-align:center;cursor:pointer;padding:16px;border-width:1px;border-style:solid;border-color:rgba(0, 0, 0, 0)}:host .nav ul li.active{background-color:#f9fafb;border-color:#d1d5db;border-width:1px;border-style:solid;border-bottom:none;border-top-left-radius:4px;border-top-right-radius:4px;font-weight:600}:host .content{display:block;padding:16px;background-color:#f9fafb}:host .content--bordered{border-width:1px;border-color:#d1d5db;border-style:solid;border-radius:4px}', c = class {
3
- constructor(e) {
4
- a(this, e), this.active = 0, this.bordered = !1, this.tabs = void 0;
5
- }
6
- connectedCallback() {
7
- new MutationObserver(this.componentWillRender.bind(this)).observe(this.el, { childList: !0 });
8
- }
9
- componentWillRender() {
10
- const e = this.el.querySelectorAll("mi-tab");
11
- this.tabs = Array.from(e).reduce((t, r, s) => {
12
- const i = Array.from(this.el.getElementsByTagName("mi-tab-panel")).find((n) => n.id === r.tabFor);
13
- return i && t.push({ label: r.label, content: i }), t;
14
- }, []);
15
- }
16
- componentDidRender() {
17
- this.selectTab(this.active);
18
- }
19
- async selectTab(e) {
20
- await this.tabs[e].content.active() || (this.active = e, this.tabs.forEach((r, s) => r.content.active(s === e)));
21
- }
22
- render() {
23
- return o(l, null, o("nav", { class: `nav ${this.bordered === !0 ? "nav--borderless-bottom" : ""}` }, o("ul", null, this.tabs.map((e, t) => o("li", { class: this.active === t ? "active" : "", onClick: () => {
24
- this.selectTab(t);
25
- } }, " ", e.label, " ")))), o("section", { class: `content ${this.bordered === !0 ? "content--bordered" : ""}` }, o("slot", null)));
26
- }
27
- get el() {
28
- return d(this);
29
- }
30
- };
31
- c.style = b;
32
- export {
33
- c as mi_tabs
34
- };
@@ -1,36 +0,0 @@
1
- import { r as a, h as o, H as l, g as d } from "./reactcomponent-0e140537.mjs";
2
- import "react";
3
- import "react-dom";
4
- const b = ':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 .nav{border:none;border-bottom:solid;border-color:#d1d5db;border-width:1px;padding-left:24px}:host .nav--borderless-bottom{border-bottom:0}:host .nav ul{display:flex;flex-direction:row;padding:0;margin:0;margin-bottom:-1px}:host .nav ul li{list-style:none;text-align:center;cursor:pointer;padding:16px;border-width:1px;border-style:solid;border-color:rgba(0, 0, 0, 0)}:host .nav ul li.active{background-color:#f9fafb;border-color:#d1d5db;border-width:1px;border-style:solid;border-bottom:none;border-top-left-radius:4px;border-top-right-radius:4px;font-weight:600}:host .content{display:block;padding:16px;background-color:#f9fafb}:host .content--bordered{border-width:1px;border-color:#d1d5db;border-style:solid;border-radius:4px}', c = class {
5
- constructor(e) {
6
- a(this, e), this.active = 0, this.bordered = !1, this.tabs = void 0;
7
- }
8
- connectedCallback() {
9
- new MutationObserver(this.componentWillRender.bind(this)).observe(this.el, { childList: !0 });
10
- }
11
- componentWillRender() {
12
- const e = this.el.querySelectorAll("mi-tab");
13
- this.tabs = Array.from(e).reduce((t, r, s) => {
14
- const i = Array.from(this.el.getElementsByTagName("mi-tab-panel")).find((n) => n.id === r.tabFor);
15
- return i && t.push({ label: r.label, content: i }), t;
16
- }, []);
17
- }
18
- componentDidRender() {
19
- this.selectTab(this.active);
20
- }
21
- async selectTab(e) {
22
- await this.tabs[e].content.active() || (this.active = e, this.tabs.forEach((r, s) => r.content.active(s === e)));
23
- }
24
- render() {
25
- return o(l, null, o("nav", { class: `nav ${this.bordered === !0 ? "nav--borderless-bottom" : ""}` }, o("ul", null, this.tabs.map((e, t) => o("li", { class: this.active === t ? "active" : "", onClick: () => {
26
- this.selectTab(t);
27
- } }, " ", e.label, " ")))), o("section", { class: `content ${this.bordered === !0 ? "content--bordered" : ""}` }, o("slot", null)));
28
- }
29
- get el() {
30
- return d(this);
31
- }
32
- };
33
- c.style = b;
34
- export {
35
- c as mi_tabs
36
- };
@@ -1,43 +0,0 @@
1
- import { r as e, h as l } from "./webcomponent-592597b2.mjs";
2
- const u = class {
3
- constructor(t) {
4
- e(this, t), this.seconds = void 0, this.translations = void 0, this.translationsData = void 0;
5
- }
6
- setTranslations() {
7
- this.translations ? this.translationsData = JSON.parse(this.translations) : this.translationsData = { days: "d", hours: "h", minutes: "min" };
8
- }
9
- componentWillLoad() {
10
- this.setTranslations();
11
- }
12
- /**
13
- * Get display string in days, hours, and minutes, eg. "1 d 23 h 4 min".
14
- * Minimum display value is 1 minute.
15
- *
16
- * @param {number} seconds Duration in seconds.
17
- * @returns {string}
18
- */
19
- getDurationDisplayString(t) {
20
- const n = Math.floor(t / 86400), a = Math.floor(t % 86400 / 3600), i = Math.floor(t % 86400 % 3600 / 60), r = n > 0 ? `${n} ${this.translationsData.days} ` : "", o = a > 0 ? `${a} ${this.translationsData.hours} ` : "";
21
- let s = i > 0 ? `${i} ${this.translationsData.minutes}` : "";
22
- return !r && !o && !s && (s = "1 min"), `${r}${o}${s}`.trim();
23
- }
24
- render() {
25
- return this.seconds >= 0 && this.translationsData ? this.renderDuration() : null;
26
- }
27
- /**
28
- * Render formatted duration string.
29
- *
30
- * @returns {JSX.Element}
31
- */
32
- renderDuration() {
33
- return l("span", null, this.getDurationDisplayString(this.seconds));
34
- }
35
- static get watchers() {
36
- return {
37
- translations: ["setTranslations"]
38
- };
39
- }
40
- };
41
- export {
42
- u as mi_time
43
- };
@@ -1,45 +0,0 @@
1
- import { r as e, h as l } from "./reactcomponent-0e140537.mjs";
2
- import "react";
3
- import "react-dom";
4
- const D = class {
5
- constructor(t) {
6
- e(this, t), this.seconds = void 0, this.translations = void 0, this.translationsData = void 0;
7
- }
8
- setTranslations() {
9
- this.translations ? this.translationsData = JSON.parse(this.translations) : this.translationsData = { days: "d", hours: "h", minutes: "min" };
10
- }
11
- componentWillLoad() {
12
- this.setTranslations();
13
- }
14
- /**
15
- * Get display string in days, hours, and minutes, eg. "1 d 23 h 4 min".
16
- * Minimum display value is 1 minute.
17
- *
18
- * @param {number} seconds Duration in seconds.
19
- * @returns {string}
20
- */
21
- getDurationDisplayString(t) {
22
- const n = Math.floor(t / 86400), a = Math.floor(t % 86400 / 3600), i = Math.floor(t % 86400 % 3600 / 60), r = n > 0 ? `${n} ${this.translationsData.days} ` : "", o = a > 0 ? `${a} ${this.translationsData.hours} ` : "";
23
- let s = i > 0 ? `${i} ${this.translationsData.minutes}` : "";
24
- return !r && !o && !s && (s = "1 min"), `${r}${o}${s}`.trim();
25
- }
26
- render() {
27
- return this.seconds >= 0 && this.translationsData ? this.renderDuration() : null;
28
- }
29
- /**
30
- * Render formatted duration string.
31
- *
32
- * @returns {JSX.Element}
33
- */
34
- renderDuration() {
35
- return l("span", null, this.getDurationDisplayString(this.seconds));
36
- }
37
- static get watchers() {
38
- return {
39
- translations: ["setTranslations"]
40
- };
41
- }
42
- };
43
- export {
44
- D as mi_time
45
- };