@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,38 +0,0 @@
1
- import { r as s, c as i, h as e, H as a } from "./reactcomponent-0e140537.mjs";
2
- import { m as o } from "./icon-b8d01d6f-ddfa2c17.mjs";
3
- import { b as c } from "./utils-ae714467-b07fc3be.mjs";
4
- import "react";
5
- import "react-dom";
6
- const h = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{color:#1c1917;transition:300ms ease;display:flex;align-items:center;cursor:pointer}:host img{-o-object-fit:cover;object-fit:cover}:host([orientation=horizontal]){width:100%;height:100%;float:left;flex-direction:column;justify-content:center}:host([orientation=horizontal]) img{width:48px;height:48px}:host([orientation=horizontal]) p{height:16px;overflow:visible;font-size:0.875rem;line-height:1rem;text-align:center}:host([orientation=vertical]){padding:16px;flex-direction:row;font-size:1rem;font-weight:500;line-height:1.25rem}:host([orientation=vertical]) img{width:24px;height:24px}:host([orientation=vertical]) p{margin:0;padding-left:16px}:host(:hover){background-color:#fcfcfc}", l = class {
7
- constructor(t) {
8
- s(this, t), this.categoryClicked = i(this, "categoryClicked", 7), this.listItemDidRender = i(this, "listItemDidRender", 7), this.category = void 0, this.orientation = "vertical";
9
- }
10
- componentDidRender() {
11
- this.listItemDidRender.emit(), "objectFit" in document.documentElement.style || this.objectFitImage(this.image);
12
- }
13
- /**
14
- * @description Emits the category object to event listeners.
15
- * @private
16
- * @param {*} category - Category object.
17
- * @memberof ListItemCategory
18
- */
19
- categoryClickedHandler(t) {
20
- this.categoryClicked.emit(t);
21
- }
22
- /**
23
- * @description Set image as background image.
24
- * @private
25
- * @param {HTMLImageElement} image
26
- */
27
- objectFitImage(t) {
28
- t.setAttribute("style", `background: no-repeat center center url("${this.category.iconUrl}"); background-size: cover;`), t.src = `data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t.width}' height='${t.height}'%3E%3C/svg%3E`;
29
- }
30
- render() {
31
- const t = this.orientation.toUpperCase() === "VERTICAL" ? parseInt(o.icon.size.medium.value) : parseInt(o.icon.size["xx-large"].value), r = c(this.category.iconUrl, t);
32
- return e(a, { onClick: () => this.categoryClickedHandler(this.category) }, e("img", { ref: (n) => this.image = n, src: r }), e("p", null, this.category.name));
33
- }
34
- };
35
- l.style = h;
36
- export {
37
- l as mi_list_item_category
38
- };
@@ -1,36 +0,0 @@
1
- import { r as s, c as i, h as e, H as a } from "./webcomponent-592597b2.mjs";
2
- import { m as o } from "./icon-b8d01d6f-ddfa2c17.mjs";
3
- import { b as c } from "./utils-ae714467-b07fc3be.mjs";
4
- const h = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{color:#1c1917;transition:300ms ease;display:flex;align-items:center;cursor:pointer}:host img{-o-object-fit:cover;object-fit:cover}:host([orientation=horizontal]){width:100%;height:100%;float:left;flex-direction:column;justify-content:center}:host([orientation=horizontal]) img{width:48px;height:48px}:host([orientation=horizontal]) p{height:16px;overflow:visible;font-size:0.875rem;line-height:1rem;text-align:center}:host([orientation=vertical]){padding:16px;flex-direction:row;font-size:1rem;font-weight:500;line-height:1.25rem}:host([orientation=vertical]) img{width:24px;height:24px}:host([orientation=vertical]) p{margin:0;padding-left:16px}:host(:hover){background-color:#fcfcfc}", l = class {
5
- constructor(t) {
6
- s(this, t), this.categoryClicked = i(this, "categoryClicked", 7), this.listItemDidRender = i(this, "listItemDidRender", 7), this.category = void 0, this.orientation = "vertical";
7
- }
8
- componentDidRender() {
9
- this.listItemDidRender.emit(), "objectFit" in document.documentElement.style || this.objectFitImage(this.image);
10
- }
11
- /**
12
- * @description Emits the category object to event listeners.
13
- * @private
14
- * @param {*} category - Category object.
15
- * @memberof ListItemCategory
16
- */
17
- categoryClickedHandler(t) {
18
- this.categoryClicked.emit(t);
19
- }
20
- /**
21
- * @description Set image as background image.
22
- * @private
23
- * @param {HTMLImageElement} image
24
- */
25
- objectFitImage(t) {
26
- t.setAttribute("style", `background: no-repeat center center url("${this.category.iconUrl}"); background-size: cover;`), t.src = `data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t.width}' height='${t.height}'%3E%3C/svg%3E`;
27
- }
28
- render() {
29
- const t = this.orientation.toUpperCase() === "VERTICAL" ? parseInt(o.icon.size.medium.value) : parseInt(o.icon.size["xx-large"].value), r = c(this.category.iconUrl, t);
30
- return e(a, { onClick: () => this.categoryClickedHandler(this.category) }, e("img", { ref: (n) => this.image = n, src: r }), e("p", null, this.category.name));
31
- }
32
- };
33
- l.style = h;
34
- export {
35
- l as mi_list_item_category
36
- };
@@ -1,134 +0,0 @@
1
- import { r, c as s, h as o, H as c } from "./webcomponent-592597b2.mjs";
2
- import { m as d } from "./icon-b8d01d6f-ddfa2c17.mjs";
3
- import { b as a } from "./utils-ae714467-b07fc3be.mjs";
4
- 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 {
5
- constructor(e) {
6
- 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;
7
- }
8
- iconChanged() {
9
- var e;
10
- this.iconURLToRender = this.icon ? this.icon : (e = this.location) === null || e === void 0 ? void 0 : e.properties.imageURL, this.updateBadge();
11
- }
12
- iconBadgeChanged() {
13
- this.updateBadge();
14
- }
15
- iconBadgeValueChanged() {
16
- this.updateBadge();
17
- }
18
- /**
19
- * @description Emits the location to event listeners.
20
- * @param {*} location - Location object.
21
- * @memberof List
22
- */
23
- locationClickedHandler(e) {
24
- this.locationClicked.emit(e);
25
- }
26
- /**
27
- * Called once just after the component is first connected to the DOM.
28
- */
29
- componentWillLoad() {
30
- var e;
31
- this.iconURLToRender = this.icon ? this.icon : (e = this.location) === null || e === void 0 ? void 0 : e.properties.imageURL, this.updateBadge();
32
- }
33
- /**
34
- * Called after every render().
35
- */
36
- componentDidRender() {
37
- this.location && (this.infoElement.location = this.location, this.listItemDidRender.emit(), this.imageElement && !("objectFit" in document.documentElement.style) && this.objectFitImage(this.imageElement));
38
- }
39
- /**
40
- * Apply badge to location icon.
41
- */
42
- updateBadge() {
43
- this.iconBadge && this.iconBadgeValue && this.iconURLToRender && this.applyBadgeToIcon();
44
- }
45
- /**
46
- * @description Set image as background image.
47
- * @param {HTMLImageElement} image
48
- */
49
- objectFitImage(e) {
50
- e.setAttribute("style", `background: no-repeat center center url("${this.iconURLToRender}"); background-size: cover;`), e.src = `data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e.width}' height='${e.height}'%3E%3C/svg%3E`;
51
- }
52
- /**
53
- * Apply badge to location icon.
54
- * Will make the original icon appear the intended size even though the badge exceeds its bounds.
55
- */
56
- applyBadgeToIcon() {
57
- let e;
58
- this.iconURLToRender = this.icon ? this.icon : this.location.properties.imageURL;
59
- const t = a(this.iconURLToRender, this.iconDisplaySize);
60
- this.getImageFromUrl(t).then((i) => {
61
- switch (e = i.width / 24, this.iconBadge.toLowerCase()) {
62
- case "availability":
63
- if (this.iconBadgeValue === "true")
64
- return mapsindoors.BadgeRenderer.AvailableBadge.overlay(i);
65
- if (this.iconBadgeValue === "false")
66
- return mapsindoors.BadgeRenderer.UnavailableBadge.overlay(i);
67
- break;
68
- case "occupancy":
69
- return mapsindoors.BadgeRenderer.TextBadge.overlay(i, {
70
- text: this.iconBadgeValue.toString()
71
- });
72
- }
73
- }).then((i) => {
74
- if (i) {
75
- this.iconURLToRender = i.src;
76
- const n = (i.width - 24) / -2;
77
- this.iconAttributes = {
78
- style: {
79
- transform: "translateX(" + n + "px)",
80
- width: i.width / e + "px",
81
- height: i.height / e + "px"
82
- }
83
- };
84
- }
85
- });
86
- }
87
- /**
88
- * Create and return an Image from URL.
89
- *
90
- * @param {string} url
91
- * @returns {Image}
92
- */
93
- async getImageFromUrl(e) {
94
- return fetch(e).then((t) => t.blob()).then((t) => URL.createObjectURL(t)).then((t) => new Promise((i) => {
95
- const n = new Image();
96
- n.width = this.iconDisplaySize, n.height = this.iconDisplaySize, n.onload = () => i(n), n.onerror = () => i(null), n.src = t;
97
- }));
98
- }
99
- /**
100
- * Render location list-item.
101
- *
102
- * @description Render location list-item.
103
- * @returns {JSX.Element}
104
- */
105
- render() {
106
- 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());
107
- }
108
- /**
109
- * @description Get JSX template for icon.
110
- * @returns {JSX.Element}
111
- */
112
- renderIcon() {
113
- const e = a(this.iconURLToRender, this.iconDisplaySize);
114
- return o("div", { class: "img-container" }, o("img", Object.assign({}, this.iconAttributes, { ref: (t) => this.imageElement = t, src: e })));
115
- }
116
- /**
117
- * @description Get JSX template for distance.
118
- * @returns {JSX.Element}
119
- */
120
- renderDistance() {
121
- return o("div", { class: "distance" }, o("mi-distance", { meters: this.location.properties.geodesicDistance, unit: this.unit }));
122
- }
123
- static get watchers() {
124
- return {
125
- icon: ["iconChanged"],
126
- iconBadge: ["iconBadgeChanged"],
127
- iconBadgeValue: ["iconBadgeValueChanged"]
128
- };
129
- }
130
- };
131
- h.style = l;
132
- export {
133
- h as mi_list_item_location
134
- };
@@ -1,136 +0,0 @@
1
- import { r, c as s, h as o, H as c } from "./reactcomponent-0e140537.mjs";
2
- import { m as d } from "./icon-b8d01d6f-ddfa2c17.mjs";
3
- import { b as a } from "./utils-ae714467-b07fc3be.mjs";
4
- import "react";
5
- import "react-dom";
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
- 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.showExternalId = !0, this.unit = void 0, this.icon = void 0, this.iconBadge = void 0, this.iconBadgeValue = void 0, this.iconURLToRender = void 0;
9
- }
10
- iconChanged() {
11
- var e;
12
- this.iconURLToRender = this.icon ? this.icon : (e = this.location) === null || e === void 0 ? void 0 : e.properties.imageURL, this.updateBadge();
13
- }
14
- iconBadgeChanged() {
15
- this.updateBadge();
16
- }
17
- iconBadgeValueChanged() {
18
- this.updateBadge();
19
- }
20
- /**
21
- * @description Emits the location to event listeners.
22
- * @param {*} location - Location object.
23
- * @memberof List
24
- */
25
- locationClickedHandler(e) {
26
- this.locationClicked.emit(e);
27
- }
28
- /**
29
- * Called once just after the component is first connected to the DOM.
30
- */
31
- componentWillLoad() {
32
- var e;
33
- this.iconURLToRender = this.icon ? this.icon : (e = this.location) === null || e === void 0 ? void 0 : e.properties.imageURL, this.updateBadge();
34
- }
35
- /**
36
- * Called after every render().
37
- */
38
- componentDidRender() {
39
- this.location && (this.infoElement.location = this.location, this.listItemDidRender.emit(), this.imageElement && !("objectFit" in document.documentElement.style) && this.objectFitImage(this.imageElement));
40
- }
41
- /**
42
- * Apply badge to location icon.
43
- */
44
- updateBadge() {
45
- this.iconBadge && this.iconBadgeValue && this.iconURLToRender && this.applyBadgeToIcon();
46
- }
47
- /**
48
- * @description Set image as background image.
49
- * @param {HTMLImageElement} image
50
- */
51
- objectFitImage(e) {
52
- e.setAttribute("style", `background: no-repeat center center url("${this.iconURLToRender}"); background-size: cover;`), e.src = `data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e.width}' height='${e.height}'%3E%3C/svg%3E`;
53
- }
54
- /**
55
- * Apply badge to location icon.
56
- * Will make the original icon appear the intended size even though the badge exceeds its bounds.
57
- */
58
- applyBadgeToIcon() {
59
- let e;
60
- this.iconURLToRender = this.icon ? this.icon : this.location.properties.imageURL;
61
- const t = a(this.iconURLToRender, this.iconDisplaySize);
62
- this.getImageFromUrl(t).then((i) => {
63
- switch (e = i.width / 24, this.iconBadge.toLowerCase()) {
64
- case "availability":
65
- if (this.iconBadgeValue === "true")
66
- return mapsindoors.BadgeRenderer.AvailableBadge.overlay(i);
67
- if (this.iconBadgeValue === "false")
68
- return mapsindoors.BadgeRenderer.UnavailableBadge.overlay(i);
69
- break;
70
- case "occupancy":
71
- return mapsindoors.BadgeRenderer.TextBadge.overlay(i, {
72
- text: this.iconBadgeValue.toString()
73
- });
74
- }
75
- }).then((i) => {
76
- if (i) {
77
- this.iconURLToRender = i.src;
78
- const n = (i.width - 24) / -2;
79
- this.iconAttributes = {
80
- style: {
81
- transform: "translateX(" + n + "px)",
82
- width: i.width / e + "px",
83
- height: i.height / e + "px"
84
- }
85
- };
86
- }
87
- });
88
- }
89
- /**
90
- * Create and return an Image from URL.
91
- *
92
- * @param {string} url
93
- * @returns {Image}
94
- */
95
- async getImageFromUrl(e) {
96
- return fetch(e).then((t) => t.blob()).then((t) => URL.createObjectURL(t)).then((t) => new Promise((i) => {
97
- const n = new Image();
98
- n.width = this.iconDisplaySize, n.height = this.iconDisplaySize, n.onload = () => i(n), n.onerror = () => i(null), n.src = t;
99
- }));
100
- }
101
- /**
102
- * Render location list-item.
103
- *
104
- * @description Render location list-item.
105
- * @returns {JSX.Element}
106
- */
107
- render() {
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());
109
- }
110
- /**
111
- * @description Get JSX template for icon.
112
- * @returns {JSX.Element}
113
- */
114
- renderIcon() {
115
- const e = a(this.iconURLToRender, this.iconDisplaySize);
116
- return o("div", { class: "img-container" }, o("img", Object.assign({}, this.iconAttributes, { ref: (t) => this.imageElement = t, src: e })));
117
- }
118
- /**
119
- * @description Get JSX template for distance.
120
- * @returns {JSX.Element}
121
- */
122
- renderDistance() {
123
- return o("div", { class: "distance" }, o("mi-distance", { meters: this.location.properties.geodesicDistance, unit: this.unit }));
124
- }
125
- static get watchers() {
126
- return {
127
- icon: ["iconChanged"],
128
- iconBadge: ["iconBadgeChanged"],
129
- iconBadgeValue: ["iconBadgeValueChanged"]
130
- };
131
- }
132
- };
133
- h.style = l;
134
- export {
135
- h as mi_list_item_location
136
- };
@@ -1,39 +0,0 @@
1
- import { r as s, h as e } from "./webcomponent-592597b2.mjs";
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
- constructor(t) {
4
- s(this, t), this.scrollButtonsEnabled = !1, this.scrollLength = 100;
5
- }
6
- componentDidLoad() {
7
- this.addIntersectionObserver(), this.scrollButtonsEnabled && this.setScrollContainerElementRef();
8
- }
9
- /**
10
- * @description Update state of scroll buttons when a "listItemDidRender" event is fired.
11
- * @private
12
- */
13
- updateScrollButtonsState() {
14
- this.scrollButtonsEnabled && this.miScrollButtonsElement.scrollContainerElementRef && this.miScrollButtonsElement.updateScrollButtonsState();
15
- }
16
- /**
17
- * @description Set scrollContainerElementRef attribute on miScrollButtonsElement.
18
- * @private
19
- */
20
- setScrollContainerElementRef() {
21
- this.miScrollButtonsElement.scrollContainerElementRef = this.scrollContainerElement;
22
- }
23
- /**
24
- * @description Add intersection observer and update scroll buttons state on intersection – workaround to avoid the element not having any dimensions before it's shown.
25
- * @private
26
- */
27
- addIntersectionObserver() {
28
- this.intersectionObserver = new IntersectionObserver((t) => {
29
- t[0].intersectionRatio <= 0 || (this.scrollContainerElement.scrollHeight - this.scrollContainerElement.scrollTop === this.scrollContainerElement.clientHeight && this.updateScrollButtonsState(), this.intersectionObserver.disconnect());
30
- }), this.intersectionObserver.observe(this.scrollContainerElement);
31
- }
32
- render() {
33
- return e("div", { class: "container" }, e("div", { role: "list", class: "scroll-container", ref: (t) => this.scrollContainerElement = t }, e("slot", null)), this.scrollButtonsEnabled ? e("mi-scroll-buttons", { scrollLength: this.scrollLength, ref: (t) => this.miScrollButtonsElement = t }) : null);
34
- }
35
- };
36
- n.style = l;
37
- export {
38
- n as mi_list
39
- };
@@ -1,41 +0,0 @@
1
- import { r as s, h as e } from "./reactcomponent-0e140537.mjs";
2
- import "react";
3
- import "react-dom";
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 {
5
- constructor(t) {
6
- s(this, t), this.scrollButtonsEnabled = !1, this.scrollLength = 100;
7
- }
8
- componentDidLoad() {
9
- this.addIntersectionObserver(), this.scrollButtonsEnabled && this.setScrollContainerElementRef();
10
- }
11
- /**
12
- * @description Update state of scroll buttons when a "listItemDidRender" event is fired.
13
- * @private
14
- */
15
- updateScrollButtonsState() {
16
- this.scrollButtonsEnabled && this.miScrollButtonsElement.scrollContainerElementRef && this.miScrollButtonsElement.updateScrollButtonsState();
17
- }
18
- /**
19
- * @description Set scrollContainerElementRef attribute on miScrollButtonsElement.
20
- * @private
21
- */
22
- setScrollContainerElementRef() {
23
- this.miScrollButtonsElement.scrollContainerElementRef = this.scrollContainerElement;
24
- }
25
- /**
26
- * @description Add intersection observer and update scroll buttons state on intersection – workaround to avoid the element not having any dimensions before it's shown.
27
- * @private
28
- */
29
- addIntersectionObserver() {
30
- this.intersectionObserver = new IntersectionObserver((t) => {
31
- t[0].intersectionRatio <= 0 || (this.scrollContainerElement.scrollHeight - this.scrollContainerElement.scrollTop === this.scrollContainerElement.clientHeight && this.updateScrollButtonsState(), this.intersectionObserver.disconnect());
32
- }), this.intersectionObserver.observe(this.scrollContainerElement);
33
- }
34
- render() {
35
- return e("div", { class: "container" }, e("div", { role: "list", class: "scroll-container", ref: (t) => this.scrollContainerElement = t }, e("slot", null)), this.scrollButtonsEnabled ? e("mi-scroll-buttons", { scrollLength: this.scrollLength, ref: (t) => this.miScrollButtonsElement = t }) : null);
36
- }
37
- };
38
- n.style = l;
39
- export {
40
- n as mi_list
41
- };