@object-ui/plugin-list 3.4.0 → 4.0.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.
- package/CHANGELOG.md +23 -0
- package/README.md +38 -0
- package/dist/index.js +5683 -5573
- package/dist/index.umd.cjs +7 -7
- package/dist/packages/plugin-list/src/ListView.d.ts.map +1 -1
- package/dist/packages/plugin-list/src/ObjectGallery.d.ts.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @object-ui/plugin-list
|
|
2
2
|
|
|
3
|
+
## 4.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @object-ui/types@4.0.1
|
|
8
|
+
- @object-ui/core@4.0.1
|
|
9
|
+
- @object-ui/i18n@4.0.1
|
|
10
|
+
- @object-ui/react@4.0.1
|
|
11
|
+
- @object-ui/components@4.0.1
|
|
12
|
+
- @object-ui/mobile@4.0.1
|
|
13
|
+
|
|
14
|
+
## 4.0.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- @object-ui/types@4.0.0
|
|
20
|
+
- @object-ui/components@4.0.0
|
|
21
|
+
- @object-ui/core@4.0.0
|
|
22
|
+
- @object-ui/mobile@4.0.0
|
|
23
|
+
- @object-ui/react@4.0.0
|
|
24
|
+
- @object-ui/i18n@4.0.0
|
|
25
|
+
|
|
3
26
|
## 3.4.0
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -40,6 +40,44 @@ function ContactsView() {
|
|
|
40
40
|
}
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
### Grouping Records (Airtable-style)
|
|
44
|
+
|
|
45
|
+
Group rows in grid/gallery views by one or more fields. Two equivalent shapes
|
|
46
|
+
are supported on the schema:
|
|
47
|
+
|
|
48
|
+
```tsx
|
|
49
|
+
// Spec-compliant: structured GroupingConfig (multi-level + per-field options)
|
|
50
|
+
<ListView
|
|
51
|
+
schema={{
|
|
52
|
+
type: 'list-view',
|
|
53
|
+
objectName: 'tasks',
|
|
54
|
+
viewType: 'grid',
|
|
55
|
+
fields: ['title', 'status', 'assignee'],
|
|
56
|
+
grouping: {
|
|
57
|
+
fields: [
|
|
58
|
+
{ field: 'status', order: 'asc', collapsed: false },
|
|
59
|
+
{ field: 'assignee', order: 'asc', collapsed: true },
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
}}
|
|
63
|
+
/>
|
|
64
|
+
|
|
65
|
+
// Shorthand: a single field name (used by the visual view-config UI).
|
|
66
|
+
// Internally normalized into the GroupingConfig above.
|
|
67
|
+
<ListView
|
|
68
|
+
schema={{
|
|
69
|
+
type: 'list-view',
|
|
70
|
+
objectName: 'tasks',
|
|
71
|
+
viewType: 'grid',
|
|
72
|
+
fields: ['title', 'status'],
|
|
73
|
+
groupBy: 'status',
|
|
74
|
+
}}
|
|
75
|
+
/>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
When both are present, `grouping` wins. End users can also add or remove
|
|
79
|
+
grouping fields at runtime via the Group toolbar button.
|
|
80
|
+
|
|
43
81
|
### With Multiple View Types
|
|
44
82
|
|
|
45
83
|
```tsx
|