@object-ui/plugin-dashboard 3.0.2 → 3.1.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.
Files changed (55) hide show
  1. package/.turbo/turbo-build.log +40 -7
  2. package/CHANGELOG.md +9 -0
  3. package/dist/index.js +3893 -2669
  4. package/dist/index.umd.cjs +5 -5
  5. package/dist/src/DashboardConfigPanel.d.ts +28 -0
  6. package/dist/src/DashboardConfigPanel.d.ts.map +1 -0
  7. package/dist/src/DashboardConfigPanel.stories.d.ts +14 -0
  8. package/dist/src/DashboardConfigPanel.stories.d.ts.map +1 -0
  9. package/dist/src/DashboardGridLayout.d.ts.map +1 -1
  10. package/dist/src/DashboardRenderer.d.ts +14 -0
  11. package/dist/src/DashboardRenderer.d.ts.map +1 -1
  12. package/dist/src/DashboardWithConfig.d.ts +32 -0
  13. package/dist/src/DashboardWithConfig.d.ts.map +1 -0
  14. package/dist/src/MetricCard.d.ts +8 -2
  15. package/dist/src/MetricCard.d.ts.map +1 -1
  16. package/dist/src/MetricWidget.d.ts +12 -3
  17. package/dist/src/MetricWidget.d.ts.map +1 -1
  18. package/dist/src/ObjectDataTable.d.ts +39 -0
  19. package/dist/src/ObjectDataTable.d.ts.map +1 -0
  20. package/dist/src/ObjectPivotTable.d.ts +29 -0
  21. package/dist/src/ObjectPivotTable.d.ts.map +1 -0
  22. package/dist/src/PivotTable.d.ts +14 -0
  23. package/dist/src/PivotTable.d.ts.map +1 -0
  24. package/dist/src/WidgetConfigPanel.d.ts +43 -0
  25. package/dist/src/WidgetConfigPanel.d.ts.map +1 -0
  26. package/dist/src/index.d.ts +13 -1
  27. package/dist/src/index.d.ts.map +1 -1
  28. package/dist/src/utils.d.ts +14 -0
  29. package/dist/src/utils.d.ts.map +1 -0
  30. package/package.json +7 -7
  31. package/src/DashboardConfigPanel.stories.tsx +164 -0
  32. package/src/DashboardConfigPanel.tsx +158 -0
  33. package/src/DashboardGridLayout.tsx +113 -10
  34. package/src/DashboardRenderer.tsx +283 -37
  35. package/src/DashboardWithConfig.tsx +211 -0
  36. package/src/MetricCard.tsx +11 -4
  37. package/src/MetricWidget.tsx +18 -11
  38. package/src/ObjectDataTable.tsx +191 -0
  39. package/src/ObjectPivotTable.tsx +160 -0
  40. package/src/PivotTable.tsx +262 -0
  41. package/src/WidgetConfigPanel.tsx +540 -0
  42. package/src/__tests__/DashboardConfigPanel.test.tsx +206 -0
  43. package/src/__tests__/DashboardRenderer.designMode.test.tsx +386 -0
  44. package/src/__tests__/DashboardRenderer.header.test.tsx +114 -0
  45. package/src/__tests__/DashboardRenderer.mobile.test.tsx +214 -0
  46. package/src/__tests__/DashboardRenderer.widgetData.test.tsx +1283 -0
  47. package/src/__tests__/DashboardWithConfig.test.tsx +276 -0
  48. package/src/__tests__/MetricCard.test.tsx +23 -0
  49. package/src/__tests__/ObjectDataTable.test.tsx +122 -0
  50. package/src/__tests__/ObjectPivotTable.test.tsx +192 -0
  51. package/src/__tests__/PivotTable.test.tsx +162 -0
  52. package/src/__tests__/WidgetConfigPanel.test.tsx +492 -0
  53. package/src/__tests__/ensureWidgetIds.test.tsx +103 -0
  54. package/src/index.tsx +107 -1
  55. package/src/utils.ts +17 -0
@@ -1,20 +1,53 @@
1
1
 
2
- > @object-ui/plugin-dashboard@3.0.2 build /home/runner/work/objectui/objectui/packages/plugin-dashboard
2
+ > @object-ui/plugin-dashboard@3.1.0 build /home/runner/work/objectui/objectui/packages/plugin-dashboard
3
3
  > vite build
4
4
 
5
5
  vite v7.3.1 building client environment for production...
6
6
  transforming...
7
- ✓ 66 modules transformed.
7
+ ✓ 73 modules transformed.
8
8
  rendering chunks...
9
9
  
10
10
  [vite:dts] Start generate declaration files...
11
+ src/DashboardRenderer.tsx:203:44 - error TS2339: Property 'filter' does not exist on type '{ provider: "object"; object?: string | undefined; aggregate?: any; }'.
12
+
13
+ 203 filter: widgetData.filter || widget.filter,
14
+    ~~~~~~
15
+ src/DashboardRenderer.tsx:204:44 - error TS2339: Property 'searchable' does not exist on type 'DashboardWidgetSchema'.
16
+
17
+ 204 searchable: widget.searchable ?? false,
18
+    ~~~~~~~~~~
19
+ src/DashboardRenderer.tsx:205:44 - error TS2339: Property 'pagination' does not exist on type 'DashboardWidgetSchema'.
20
+
21
+ 205 pagination: widget.pagination ?? false,
22
+    ~~~~~~~~~~
23
+ src/DashboardRenderer.tsx:217:44 - error TS2339: Property 'searchable' does not exist on type 'DashboardWidgetSchema'.
24
+
25
+ 217 searchable: widget.searchable ?? false,
26
+    ~~~~~~~~~~
27
+ src/DashboardRenderer.tsx:218:44 - error TS2339: Property 'pagination' does not exist on type 'DashboardWidgetSchema'.
28
+
29
+ 218 pagination: widget.pagination ?? false,
30
+    ~~~~~~~~~~
31
+ src/DashboardRenderer.tsx:244:44 - error TS2339: Property 'filter' does not exist on type '{ provider: "object"; object?: string | undefined; aggregate?: any; }'.
32
+
33
+ 244 filter: widgetData.filter || widget.filter,
34
+    ~~~~~~
35
+ src/WidgetConfigPanel.tsx:523:70 - error TS2339: Property 'type' does not exist on type '{ title: any; description: any; }'.
36
+
37
+ 523 () => buildWidgetSchema(availableObjects, availableFields, draft.type),
38
+    ~~~~
39
+ src/WidgetConfigPanel.tsx:524:47 - error TS2339: Property 'type' does not exist on type '{ title: any; description: any; }'.
40
+
41
+ 524 [availableObjects, availableFields, draft.type],
42
+    ~~~~
43
+
11
44
  computing gzip size...
12
45
  dist/index.css  2.40 kB │ gzip: 0.58 kB
13
- dist/index.js 144.36 kB │ gzip: 37.93 kB
14
- [vite:dts] Declaration files built in 16878ms.
46
+ dist/index.js 186.28 kB │ gzip: 45.82 kB
47
+ [vite:dts] Declaration files built in 30232ms.
15
48
  
16
49
  No name was provided for external module "lucide-react" in "output.globals" – guessing "LucideIcons".
17
50
  No name was provided for external module "clsx" in "output.globals" – guessing "clsx".
18
- dist/index.css  2.40 kB │ gzip: 0.58 kB
19
- dist/index.umd.cjs 91.71 kB │ gzip: 30.06 kB
20
- ✓ built in 19.88s
51
+ dist/index.css  2.40 kB │ gzip: 0.58 kB
52
+ dist/index.umd.cjs 118.26 kB │ gzip: 36.48 kB
53
+ ✓ built in 36.95s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @object-ui/plugin-dashboard
2
2
 
3
+ ## 3.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - @object-ui/types@3.0.3
8
+ - @object-ui/core@3.0.3
9
+ - @object-ui/react@3.0.3
10
+ - @object-ui/components@3.0.3
11
+
3
12
  ## 3.0.2
4
13
 
5
14
  ### Patch Changes