@open-pioneer/selection 1.5.0-dev.20260917081843 → 1.5.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.
- package/CHANGELOG.md +36 -33
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @open-pioneer/selection
|
|
2
2
|
|
|
3
|
-
## 1.5.0
|
|
3
|
+
## 1.5.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
- fab4c36: Add the map model to the context of the selection source's `select` method.
|
|
9
9
|
- a9c1213: Rework the tooltips rendered on the map: help tooltips now look like chakra's tooltips, and the measurement tooltips (active and finished measurements) are also derived from chakra's tooltip styles.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
The built-in styles of these tooltips are no longer shipped as plain css, chakra style props are used instead.
|
|
12
|
+
The existing css classes (`editing-tooltip`, `measurement-tooltip`, `measurement-active-tooltip`, `measurement-finished-tooltip`, `selection-tooltip`) remain on the overlay's element.
|
|
13
13
|
|
|
14
|
+
- a186f5d: Update core packages to 4.8.0.
|
|
14
15
|
- fab4c36: Add support for an `id` property on the selection source interface to identify sources. The property remains optional for the time being to preserve backwards compatibility.
|
|
15
16
|
|
|
16
17
|
### Patch Changes
|
|
@@ -20,7 +21,9 @@
|
|
|
20
21
|
If the user starts another selection while a request is still running, the previous request is cancelled
|
|
21
22
|
and only the results of the most recent selection are used.
|
|
22
23
|
- fab4c36: Use `synchronized` to watch the vector layer's visibility.
|
|
23
|
-
- fab4c36: Refactor internal state management
|
|
24
|
+
- fab4c36: Refactor the internal state management of the selection component: the widget state now lives in a
|
|
25
|
+
long lived, reactive view model instead of react state. This is an internal change; the component's
|
|
26
|
+
properties, events and behavior are unchanged.
|
|
24
27
|
- 09ec7c7: Updated dependencies
|
|
25
28
|
|
|
26
29
|
## 1.4.0
|
|
@@ -101,17 +104,17 @@
|
|
|
101
104
|
- 193068a: Deprecate the `mapId` property on React components.
|
|
102
105
|
Use the `MapModel` directly instead to pass a reference to the map.
|
|
103
106
|
|
|
104
|
-
|
|
107
|
+
Example:
|
|
105
108
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
```tsx
|
|
110
|
+
// Default map for entire component tree
|
|
111
|
+
<DefaultMapProvider map={mapModel}>
|
|
112
|
+
<Toc />
|
|
113
|
+
</DefaultMapProvider>
|
|
111
114
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
+
// Map for specific component
|
|
116
|
+
<Toc map={mapModel} />
|
|
117
|
+
```
|
|
115
118
|
|
|
116
119
|
### Patch Changes
|
|
117
120
|
|
|
@@ -132,33 +135,33 @@
|
|
|
132
135
|
- e7978a8: Support reactive changes on the `SelectionSource`'s `status` property using the reactivity API.
|
|
133
136
|
**Remove** support for the `changed:status"` event on the selection source: use signals instead.
|
|
134
137
|
|
|
135
|
-
|
|
138
|
+
For example, to implement a `SelectionSource` with changing availability:
|
|
136
139
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
```ts
|
|
141
|
+
class MySelectionSource implements SelectionSource {
|
|
142
|
+
private _status = reactive("available");
|
|
140
143
|
|
|
141
|
-
|
|
144
|
+
label = "My selection source";
|
|
142
145
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
get status() {
|
|
147
|
+
return this._status.value;
|
|
148
|
+
}
|
|
146
149
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
150
|
+
someEventHandler() {
|
|
151
|
+
// Change the status by updating the signal's value.
|
|
152
|
+
// The UI will update automatically.
|
|
153
|
+
this._status.value = "unavailable";
|
|
154
|
+
}
|
|
151
155
|
}
|
|
152
|
-
|
|
153
|
-
```
|
|
156
|
+
```
|
|
154
157
|
|
|
155
158
|
- b717121: Update from OL 9 to OL 10.
|
|
156
159
|
- b717121: Adjust the type the property `vectorLayer` of the exported interface `VectorLayerSelectionSourceOptions`.
|
|
157
160
|
The type is now `VectorLayer<VectorSource, Feature>` instead of `VectorLayer<Feature>`.
|
|
158
161
|
- 2fa8020: Update trails core package dependencies.
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
+
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
|
|
163
|
+
- Removes any obsolete references to `@chakra-ui/system`.
|
|
164
|
+
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
|
|
162
165
|
|
|
163
166
|
### Patch Changes
|
|
164
167
|
|
|
@@ -176,7 +179,7 @@
|
|
|
176
179
|
- 583f1d6: The `mapId` or `map` properties are now optional on individual components.
|
|
177
180
|
You can use the `DefaultMapProvider` to configure an implicit default value.
|
|
178
181
|
|
|
179
|
-
|
|
182
|
+
Note that configuring _neither_ a default _nor_ an explicit `map` or `mapId` will trigger a runtime error.
|
|
180
183
|
|
|
181
184
|
- 583f1d6: All UI components in this project now accept the `mapId` (a `string`) _or_ the `map` (a `MapModel`) directly.
|
|
182
185
|
- a8b3449: Switch to a new versioning strategy.
|
|
@@ -198,8 +201,8 @@
|
|
|
198
201
|
- 28e092a: Update dependencies
|
|
199
202
|
- 28e092a: Adapt to OpenLayers type changes.
|
|
200
203
|
|
|
201
|
-
|
|
202
|
-
|
|
204
|
+
When creating a selection source for a `VectorLayer`, the precise type of that vector layer must now be `VectorLayer<Feature>` (instead of `VectorLayer<VectorSource>`).
|
|
205
|
+
This is a TypeScript-only change that has no effects on the JavaScript code at runtime.
|
|
203
206
|
|
|
204
207
|
- 65a14f4: Open select-menu on enter (fixes issue [#320](https://github.com/open-pioneer/trails-openlayers-base-packages/issues/320))
|
|
205
208
|
- 484ad86: Add tooltip role to tooltip divs (See https://github.com/open-pioneer/trails-openlayers-base-packages/issues/309).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@open-pioneer/selection",
|
|
4
|
-
"version": "1.5.0
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"description": "This package provides a UI component to perform a selection on given selection sources from the map.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"open-pioneer-trails"
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@chakra-ui/react": "^3.37.0",
|
|
18
18
|
"@conterra/reactivity-core": "^0.8.8",
|
|
19
|
-
"@open-pioneer/chakra-snippets": "4.8.0
|
|
20
|
-
"@open-pioneer/core": "4.8.0
|
|
21
|
-
"@open-pioneer/map": "1.5.0
|
|
22
|
-
"@open-pioneer/map-ui-components": "1.5.0
|
|
23
|
-
"@open-pioneer/notifier": "4.8.0
|
|
24
|
-
"@open-pioneer/react-utils": "4.8.0
|
|
25
|
-
"@open-pioneer/reactivity": "4.8.0
|
|
26
|
-
"@open-pioneer/runtime": "4.8.0
|
|
19
|
+
"@open-pioneer/chakra-snippets": "^4.8.0",
|
|
20
|
+
"@open-pioneer/core": "^4.8.0",
|
|
21
|
+
"@open-pioneer/map": "1.5.0",
|
|
22
|
+
"@open-pioneer/map-ui-components": "1.5.0",
|
|
23
|
+
"@open-pioneer/notifier": "^4.8.0",
|
|
24
|
+
"@open-pioneer/react-utils": "^4.8.0",
|
|
25
|
+
"@open-pioneer/reactivity": "^4.8.0",
|
|
26
|
+
"@open-pioneer/runtime": "^4.8.0",
|
|
27
27
|
"ol": "^10.10.0",
|
|
28
28
|
"react": "^19.3.0",
|
|
29
29
|
"react-icons": "^5.7.0",
|