@open-pioneer/result-list 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 +41 -40
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# @open-pioneer/result-list
|
|
2
2
|
|
|
3
|
-
## 1.5.0
|
|
3
|
+
## 1.5.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
7
|
- f790fda: Update to Chakra 3.37.0
|
|
8
|
+
- a186f5d: Update core packages to 4.8.0.
|
|
8
9
|
|
|
9
10
|
### Patch Changes
|
|
10
11
|
|
|
@@ -80,33 +81,33 @@
|
|
|
80
81
|
|
|
81
82
|
- 9376a74: Ensure that icons and other decorative elements are hidden from the screen reader using the `aria-hidden="true"` attribute.
|
|
82
83
|
|
|
83
|
-
|
|
84
|
+
The easiest way to do that is to wrap icons into chakra's `<Icon />` component, for example:
|
|
84
85
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
```tsx
|
|
87
|
+
import { Icon } from "@chakra-ui/react";
|
|
88
|
+
import { FiX } from "react-icons/fi";
|
|
88
89
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
<Icon>
|
|
91
|
+
<FiX />
|
|
92
|
+
</Icon>;
|
|
93
|
+
```
|
|
93
94
|
|
|
94
95
|
- 5c2cca2: Fix a11y issues:
|
|
95
96
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
97
|
+
- Fix wrong `aria-labelledby` ids
|
|
98
|
+
- Introduce optional property `labelProperty` to result list's `input` option
|
|
99
|
+
- A feature's property value is used to provide context in aria attributes.
|
|
100
|
+
This is currently used for `aria-labels` of checkboxes in each row of the data table.
|
|
101
|
+
- Use feature id as fallback if `labelProperty` is not set or feature does not have the specified property.
|
|
102
|
+
|
|
103
|
+
```tsx
|
|
104
|
+
const input: ResultListInput = {
|
|
105
|
+
columns: columns,
|
|
106
|
+
data: results,
|
|
107
|
+
labelProperty: "name", // uses feature.properties.name as label
|
|
108
|
+
formatOptions: formatOptions
|
|
109
|
+
};
|
|
110
|
+
```
|
|
110
111
|
|
|
111
112
|
## 0.10.0
|
|
112
113
|
|
|
@@ -115,17 +116,17 @@
|
|
|
115
116
|
- 193068a: Deprecate the `mapId` property on React components.
|
|
116
117
|
Use the `MapModel` directly instead to pass a reference to the map.
|
|
117
118
|
|
|
118
|
-
|
|
119
|
+
Example:
|
|
119
120
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
```tsx
|
|
122
|
+
// Default map for entire component tree
|
|
123
|
+
<DefaultMapProvider map={mapModel}>
|
|
124
|
+
<Toc />
|
|
125
|
+
</DefaultMapProvider>
|
|
125
126
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
// Map for specific component
|
|
128
|
+
<Toc map={mapModel} />
|
|
129
|
+
```
|
|
129
130
|
|
|
130
131
|
### Patch Changes
|
|
131
132
|
|
|
@@ -144,9 +145,9 @@
|
|
|
144
145
|
### Minor Changes
|
|
145
146
|
|
|
146
147
|
- 2fa8020: Update trails core package dependencies.
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
|
|
149
|
+
- Removes any obsolete references to `@chakra-ui/system`.
|
|
150
|
+
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
|
|
150
151
|
|
|
151
152
|
### Patch Changes
|
|
152
153
|
|
|
@@ -164,7 +165,7 @@
|
|
|
164
165
|
- 583f1d6: The `mapId` or `map` properties are now optional on individual components.
|
|
165
166
|
You can use the `DefaultMapProvider` to configure an implicit default value.
|
|
166
167
|
|
|
167
|
-
|
|
168
|
+
Note that configuring _neither_ a default _nor_ an explicit `map` or `mapId` will trigger a runtime error.
|
|
168
169
|
|
|
169
170
|
- 583f1d6: All UI components in this project now accept the `mapId` (a `string`) _or_ the `map` (a `MapModel`) directly.
|
|
170
171
|
- a8b3449: Switch to a new versioning strategy.
|
|
@@ -192,11 +193,11 @@
|
|
|
192
193
|
When rows are memoized, they are only rerendered under certain conditions (e.g. selection changes, sort order changes), which can
|
|
193
194
|
greatly improve performance in some circumstances.
|
|
194
195
|
|
|
195
|
-
|
|
196
|
+
Example:
|
|
196
197
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
```tsx
|
|
199
|
+
<ResultList mapId={mapId} input={input} memoizeRows={true} />
|
|
200
|
+
```
|
|
200
201
|
|
|
201
202
|
- 5623b5e: Changed ResultListProps interface to differentiate between highlightOptions and zoomOptions.
|
|
202
203
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@open-pioneer/result-list",
|
|
4
|
-
"version": "1.5.0
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"description": "This package provides a UI component to display features and their attributes.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"open-pioneer-trails"
|
|
@@ -16,12 +16,12 @@
|
|
|
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/react-utils": "4.8.0
|
|
23
|
-
"@open-pioneer/reactivity": "4.8.0
|
|
24
|
-
"@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/react-utils": "^4.8.0",
|
|
23
|
+
"@open-pioneer/reactivity": "^4.8.0",
|
|
24
|
+
"@open-pioneer/runtime": "^4.8.0",
|
|
25
25
|
"@tanstack/react-table": "^8.21.3",
|
|
26
26
|
"ol": "^10.10.0",
|
|
27
27
|
"react": "^19.3.0",
|