@openremote/or-map 1.30.0 → 1.30.1

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 (140) hide show
  1. package/{custom-elements.json → build/custom-elements.json} +32 -0
  2. package/build/dist/umd/index.bundle.js +3845 -0
  3. package/build/dist/umd/index.js +3845 -0
  4. package/build/dist/umd/index.orbundle.js +3915 -0
  5. package/{lib → build/lib}/asset-map.d.ts +6 -0
  6. package/build/lib/asset-map.d.ts.map +1 -0
  7. package/build/lib/asset-map.js +1 -0
  8. package/build/lib/asset-map.js.map +1 -0
  9. package/build/lib/base-map.d.ts.map +1 -0
  10. package/{lib → build/lib}/base-map.js +1 -1
  11. package/build/lib/base-map.js.map +1 -0
  12. package/build/lib/controls/base.d.ts.map +1 -0
  13. package/build/lib/controls/base.js.map +1 -0
  14. package/build/lib/controls/center.d.ts.map +1 -0
  15. package/build/lib/controls/center.js.map +1 -0
  16. package/build/lib/controls/coordinates.d.ts.map +1 -0
  17. package/build/lib/controls/coordinates.js.map +1 -0
  18. package/{lib → build/lib}/controls/geocoder.d.ts +1 -1
  19. package/build/lib/controls/geocoder.d.ts.map +1 -0
  20. package/build/lib/controls/geocoder.js +58 -0
  21. package/build/lib/controls/geocoder.js.map +1 -0
  22. package/build/lib/controls/geolocate.d.ts.map +1 -0
  23. package/build/lib/controls/geolocate.js.map +1 -0
  24. package/build/lib/controls/legend.d.ts.map +1 -0
  25. package/build/lib/controls/legend.js.map +1 -0
  26. package/build/lib/controls/logo.d.ts.map +1 -0
  27. package/build/lib/controls/logo.js.map +1 -0
  28. package/build/lib/controls/navigation.d.ts.map +1 -0
  29. package/build/lib/controls/navigation.js.map +1 -0
  30. package/build/lib/controls/preset-filter.d.ts.map +1 -0
  31. package/build/lib/controls/preset-filter.js.map +1 -0
  32. package/build/lib/controls/styles.d.ts.map +1 -0
  33. package/build/lib/controls/styles.js.map +1 -0
  34. package/build/lib/index.d.ts.map +1 -0
  35. package/build/lib/index.js.map +1 -0
  36. package/{lib → build/lib}/markers/or-cluster-marker.d.ts +2 -5
  37. package/build/lib/markers/or-cluster-marker.d.ts.map +1 -0
  38. package/build/lib/markers/or-cluster-marker.js +23 -0
  39. package/build/lib/markers/or-cluster-marker.js.map +1 -0
  40. package/build/lib/markers/or-map-marker-asset.d.ts.map +1 -0
  41. package/build/lib/markers/or-map-marker-asset.js.map +1 -0
  42. package/build/lib/markers/or-map-marker.d.ts.map +1 -0
  43. package/build/lib/markers/or-map-marker.js.map +1 -0
  44. package/build/lib/or-map-asset-card.d.ts.map +1 -0
  45. package/build/lib/or-map-asset-card.js.map +1 -0
  46. package/build/lib/style.d.ts.map +1 -0
  47. package/build/lib/style.js.map +1 -0
  48. package/build/lib/types.d.ts.map +1 -0
  49. package/build/lib/types.js.map +1 -0
  50. package/{lib → build/lib}/util/index.d.ts +0 -1
  51. package/build/lib/util/index.d.ts.map +1 -0
  52. package/{lib → build/lib}/util/index.js +1 -1
  53. package/build/lib/util/index.js.map +1 -0
  54. package/{lib → build/lib}/util/mapbox-url.d.ts +1 -2
  55. package/build/lib/util/mapbox-url.d.ts.map +1 -0
  56. package/build/lib/util/mapbox-url.js.map +1 -0
  57. package/package.json +23 -17
  58. package/dist/umd/index.bundle.js +0 -3076
  59. package/dist/umd/index.js +0 -3024
  60. package/dist/umd/index.orbundle.js +0 -3146
  61. package/lib/asset-map.d.ts.map +0 -1
  62. package/lib/asset-map.js +0 -1
  63. package/lib/asset-map.js.map +0 -1
  64. package/lib/base-map.d.ts.map +0 -1
  65. package/lib/base-map.js.map +0 -1
  66. package/lib/controls/base.d.ts.map +0 -1
  67. package/lib/controls/base.js.map +0 -1
  68. package/lib/controls/center.d.ts.map +0 -1
  69. package/lib/controls/center.js.map +0 -1
  70. package/lib/controls/coordinates.d.ts.map +0 -1
  71. package/lib/controls/coordinates.js.map +0 -1
  72. package/lib/controls/geocoder.d.ts.map +0 -1
  73. package/lib/controls/geocoder.js +0 -58
  74. package/lib/controls/geocoder.js.map +0 -1
  75. package/lib/controls/geolocate.d.ts.map +0 -1
  76. package/lib/controls/geolocate.js.map +0 -1
  77. package/lib/controls/legend.d.ts.map +0 -1
  78. package/lib/controls/legend.js.map +0 -1
  79. package/lib/controls/logo.d.ts.map +0 -1
  80. package/lib/controls/logo.js.map +0 -1
  81. package/lib/controls/navigation.d.ts.map +0 -1
  82. package/lib/controls/navigation.js.map +0 -1
  83. package/lib/controls/preset-filter.d.ts.map +0 -1
  84. package/lib/controls/preset-filter.js.map +0 -1
  85. package/lib/controls/styles.d.ts.map +0 -1
  86. package/lib/controls/styles.js.map +0 -1
  87. package/lib/index.d.ts.map +0 -1
  88. package/lib/index.js.map +0 -1
  89. package/lib/markers/or-cluster-marker.d.ts.map +0 -1
  90. package/lib/markers/or-cluster-marker.js +0 -23
  91. package/lib/markers/or-cluster-marker.js.map +0 -1
  92. package/lib/markers/or-map-marker-asset.d.ts.map +0 -1
  93. package/lib/markers/or-map-marker-asset.js.map +0 -1
  94. package/lib/markers/or-map-marker.d.ts.map +0 -1
  95. package/lib/markers/or-map-marker.js.map +0 -1
  96. package/lib/or-map-asset-card.d.ts.map +0 -1
  97. package/lib/or-map-asset-card.js.map +0 -1
  98. package/lib/style.d.ts.map +0 -1
  99. package/lib/style.js.map +0 -1
  100. package/lib/types.d.ts.map +0 -1
  101. package/lib/types.js.map +0 -1
  102. package/lib/util/index.d.ts.map +0 -1
  103. package/lib/util/index.js.map +0 -1
  104. package/lib/util/mapbox-url.d.ts.map +0 -1
  105. package/lib/util/mapbox-url.js.map +0 -1
  106. package/playwright.config.ts +0 -21
  107. package/stories/map.stories.ts +0 -127
  108. /package/{custom-elements-jsx.d.ts → build/custom-elements-jsx.d.ts} +0 -0
  109. /package/{lib → build/lib}/base-map.d.ts +0 -0
  110. /package/{lib → build/lib}/controls/base.d.ts +0 -0
  111. /package/{lib → build/lib}/controls/base.js +0 -0
  112. /package/{lib → build/lib}/controls/center.d.ts +0 -0
  113. /package/{lib → build/lib}/controls/center.js +0 -0
  114. /package/{lib → build/lib}/controls/coordinates.d.ts +0 -0
  115. /package/{lib → build/lib}/controls/coordinates.js +0 -0
  116. /package/{lib → build/lib}/controls/geolocate.d.ts +0 -0
  117. /package/{lib → build/lib}/controls/geolocate.js +0 -0
  118. /package/{lib → build/lib}/controls/legend.d.ts +0 -0
  119. /package/{lib → build/lib}/controls/legend.js +0 -0
  120. /package/{lib → build/lib}/controls/logo.d.ts +0 -0
  121. /package/{lib → build/lib}/controls/logo.js +0 -0
  122. /package/{lib → build/lib}/controls/navigation.d.ts +0 -0
  123. /package/{lib → build/lib}/controls/navigation.js +0 -0
  124. /package/{lib → build/lib}/controls/preset-filter.d.ts +0 -0
  125. /package/{lib → build/lib}/controls/preset-filter.js +0 -0
  126. /package/{lib → build/lib}/controls/styles.d.ts +0 -0
  127. /package/{lib → build/lib}/controls/styles.js +0 -0
  128. /package/{lib → build/lib}/index.d.ts +0 -0
  129. /package/{lib → build/lib}/index.js +0 -0
  130. /package/{lib → build/lib}/markers/or-map-marker-asset.d.ts +0 -0
  131. /package/{lib → build/lib}/markers/or-map-marker-asset.js +0 -0
  132. /package/{lib → build/lib}/markers/or-map-marker.d.ts +0 -0
  133. /package/{lib → build/lib}/markers/or-map-marker.js +0 -0
  134. /package/{lib → build/lib}/or-map-asset-card.d.ts +0 -0
  135. /package/{lib → build/lib}/or-map-asset-card.js +0 -0
  136. /package/{lib → build/lib}/style.d.ts +0 -0
  137. /package/{lib → build/lib}/style.js +0 -0
  138. /package/{lib → build/lib}/types.d.ts +0 -0
  139. /package/{lib → build/lib}/types.js +0 -0
  140. /package/{lib → build/lib}/util/mapbox-url.js +0 -0
@@ -1,21 +0,0 @@
1
- /*
2
- * Copyright 2026, OpenRemote Inc.
3
- *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as
6
- * published by the Free Software Foundation, either version 3 of the
7
- * License, or (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
16
- *
17
- * SPDX-License-Identifier: AGPL-3.0-or-later
18
- */
19
- import { defineCtConfig } from "@openremote/test/component.config";
20
-
21
- export default defineCtConfig(__dirname);
@@ -1,127 +0,0 @@
1
- /*
2
- * Copyright 2025, OpenRemote Inc.
3
- *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as
6
- * published by the Free Software Foundation, either version 3 of the
7
- * License, or (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
16
- *
17
- * SPDX-License-Identifier: AGPL-3.0-or-later
18
- */
19
- import { type Meta, setCustomElementsManifest, type StoryObj } from "@storybook/web-components";
20
- import { getORStorybookHelpers } from "../../storybook-utils";
21
- import manager from "@openremote/core";
22
- import { html } from "lit";
23
- import customElements from "../custom-elements.json" with { type: "json" };
24
- import packageJson from "../package.json" with { type: "json" };
25
- import "../src/index";
26
- import "../src/markers/or-map-marker";
27
-
28
- const tagName = "or-map";
29
- type Story = StoryObj;
30
- setCustomElementsManifest(customElements);
31
-
32
- const { events, args, argTypes, template } = getORStorybookHelpers(tagName);
33
-
34
- const meta: Meta = {
35
- title: "Playground/or-map",
36
- component: tagName,
37
- args,
38
- argTypes,
39
- render: (storyArgs) => template(storyArgs),
40
- excludeStories: /^[a-z].*/,
41
- parameters: {
42
- actions: {
43
- handles: events,
44
- },
45
- docs: {
46
- subtitle: `<${tagName}>`,
47
- description: "Map is a component for displaying geographical maps, with support for custom layers.",
48
- },
49
- },
50
- };
51
-
52
- const parameters = {
53
- docs: {
54
- story: {
55
- height: "360px",
56
- },
57
- },
58
- };
59
-
60
- const loaders = [
61
- async (storyArgs) => ({
62
- orManager: await loadOrManager(),
63
- }),
64
- ];
65
-
66
- export const Primary: Story = {
67
- loaders,
68
- parameters,
69
- render: (args) =>
70
- template(
71
- args,
72
- html`
73
- <or-map-marker
74
- colour="#FF0000"
75
- icon="information"
76
- lat="51.915767"
77
- lng="4.483118"
78
- title="Marker"
79
- ></or-map-marker>
80
- `
81
- ),
82
- };
83
-
84
- export const WithRadius: Story = {
85
- loaders,
86
- name: "Radius example",
87
- parameters: {
88
- ...parameters,
89
- title: "Applying a marker radius",
90
- summary:
91
- "Using the `radius` HTML attribute, you can surround your marker with a circle. For example a radius of 100 meters:",
92
- },
93
- render: (args) =>
94
- template(
95
- args,
96
- html`
97
- <or-map-marker
98
- colour="#FF0000"
99
- icon="information"
100
- lat="51.915767"
101
- lng="4.483118"
102
- radius="100"
103
- title="Radius"
104
- ></or-map-marker>
105
- `
106
- ),
107
- };
108
-
109
- export const examples = [WithRadius];
110
-
111
- export { customElements, packageJson };
112
-
113
- /* ------------------------------------------------------- */
114
- /* UTILITY FUNCTIONS */
115
- /* ------------------------------------------------------- */
116
-
117
- async function loadOrManager() {
118
- if (await manager.init({ managerUrl: "http://127.0.0.1:8080", realm: "smartcity" })) {
119
- if (!manager.authenticated) {
120
- manager.login();
121
- }
122
- return manager;
123
- }
124
- throw new Error("Manager could not be initialized");
125
- }
126
-
127
- export default meta;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes