@object-ui/plugin-dashboard 4.0.6 → 4.0.8
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 +24 -0
- package/README.md +42 -0
- package/dist/index.js +1388 -772
- package/dist/index.umd.cjs +1 -1
- package/dist/packages/plugin-dashboard/src/DashboardConfigPanel.d.ts.map +1 -1
- package/dist/packages/plugin-dashboard/src/DashboardRenderer.d.ts.map +1 -1
- package/dist/packages/plugin-dashboard/src/DashboardWithConfig.d.ts.map +1 -1
- package/dist/packages/plugin-dashboard/src/DrillDownDrawer.d.ts +23 -0
- package/dist/packages/plugin-dashboard/src/DrillDownDrawer.d.ts.map +1 -0
- package/dist/packages/plugin-dashboard/src/MetricWidget.d.ts +11 -1
- package/dist/packages/plugin-dashboard/src/MetricWidget.d.ts.map +1 -1
- package/dist/packages/plugin-dashboard/src/ObjectDataTable.d.ts +11 -0
- package/dist/packages/plugin-dashboard/src/ObjectDataTable.d.ts.map +1 -1
- package/dist/packages/plugin-dashboard/src/ObjectMetricWidget.d.ts +20 -0
- package/dist/packages/plugin-dashboard/src/ObjectMetricWidget.d.ts.map +1 -1
- package/dist/packages/plugin-dashboard/src/ObjectPivotTable.d.ts.map +1 -1
- package/dist/packages/plugin-dashboard/src/PivotTable.d.ts +18 -0
- package/dist/packages/plugin-dashboard/src/PivotTable.d.ts.map +1 -1
- package/dist/packages/plugin-dashboard/src/WidgetConfigPanel.d.ts +1 -11
- package/dist/packages/plugin-dashboard/src/WidgetConfigPanel.d.ts.map +1 -1
- package/dist/packages/plugin-dashboard/src/index.d.ts +3 -2
- package/dist/packages/plugin-dashboard/src/index.d.ts.map +1 -1
- package/dist/packages/plugin-dashboard/src/utils.d.ts +1 -0
- package/dist/packages/plugin-dashboard/src/utils.d.ts.map +1 -1
- package/package.json +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @object-ui/plugin-dashboard
|
|
2
2
|
|
|
3
|
+
## 4.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [3d58eaa]
|
|
8
|
+
- @object-ui/i18n@4.0.8
|
|
9
|
+
- @object-ui/components@4.0.8
|
|
10
|
+
- @object-ui/fields@4.0.8
|
|
11
|
+
- @object-ui/react@4.0.8
|
|
12
|
+
- @object-ui/types@4.0.8
|
|
13
|
+
- @object-ui/core@4.0.8
|
|
14
|
+
|
|
15
|
+
## 4.0.7
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [7c9b85c]
|
|
20
|
+
- Updated dependencies [fd15918]
|
|
21
|
+
- @object-ui/core@4.0.7
|
|
22
|
+
- @object-ui/react@4.0.7
|
|
23
|
+
- @object-ui/components@4.0.7
|
|
24
|
+
- @object-ui/i18n@4.0.7
|
|
25
|
+
- @object-ui/types@4.0.7
|
|
26
|
+
|
|
3
27
|
## 4.0.6
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -228,6 +228,48 @@ const schema = {
|
|
|
228
228
|
};
|
|
229
229
|
```
|
|
230
230
|
|
|
231
|
+
## Type-aware list/table widget cells
|
|
232
|
+
|
|
233
|
+
Dashboard `type: 'table'` widgets bound to an `objectName` automatically
|
|
234
|
+
render each cell using the appropriate component for the field's type — the
|
|
235
|
+
same cell renderers used by `ObjectGrid` (the list view) and reports
|
|
236
|
+
(`@object-ui/plugin-report`).
|
|
237
|
+
|
|
238
|
+
You don't need to declare `type` on each column. The widget fetches the
|
|
239
|
+
object schema once and infers the renderer from the bound field:
|
|
240
|
+
|
|
241
|
+
| Field type | Cell rendering |
|
|
242
|
+
|---|---|
|
|
243
|
+
| `select` / `picklist` / `status` | Translated label inside a colored Badge |
|
|
244
|
+
| `lookup` / `reference` / `master_detail` / `user` / `owner` | Display name (FK is auto-expanded server-side via `$expand`) |
|
|
245
|
+
| `boolean` | Checkbox |
|
|
246
|
+
| `email` | `mailto:` link |
|
|
247
|
+
| `url` | Clickable link |
|
|
248
|
+
| `phone` | Phone link with copy button |
|
|
249
|
+
| `date` / `datetime` | Locale-formatted date |
|
|
250
|
+
| `currency` | Locale currency (or honour `format: '$0,0'`) |
|
|
251
|
+
| `percent` | `0%` / `0.0%` formatted (honour `format`) |
|
|
252
|
+
|
|
253
|
+
Author overrides always win — pass `type`, `format`, `options`,
|
|
254
|
+
`referenceTo`, or your own `cell` function on a column to bypass
|
|
255
|
+
auto-detection.
|
|
256
|
+
|
|
257
|
+
```jsonc
|
|
258
|
+
{
|
|
259
|
+
"type": "table",
|
|
260
|
+
"objectName": "opportunity",
|
|
261
|
+
"columns": [
|
|
262
|
+
{ "accessorKey": "name", "header": "Opportunity" },
|
|
263
|
+
{ "accessorKey": "account", "header": "Account" },
|
|
264
|
+
{ "accessorKey": "amount", "header": "Amount", "format": "$0,0" },
|
|
265
|
+
{ "accessorKey": "stage", "header": "Stage" },
|
|
266
|
+
{ "accessorKey": "probability", "header": "Probability", "format": "0%" },
|
|
267
|
+
{ "accessorKey": "close_date", "header": "Close Date", "format": "YYYY-MM-DD" },
|
|
268
|
+
{ "accessorKey": "owner", "header": "Owner" }
|
|
269
|
+
]
|
|
270
|
+
}
|
|
271
|
+
```
|
|
272
|
+
|
|
231
273
|
<!-- release-metadata:v3.3.0 -->
|
|
232
274
|
|
|
233
275
|
## Compatibility
|