@object-ui/plugin-grid 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 (64) hide show
  1. package/.turbo/turbo-build.log +10 -49
  2. package/CHANGELOG.md +11 -0
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.js +2169 -922
  5. package/dist/index.umd.cjs +9 -3
  6. package/dist/plugin-grid/src/FormulaBar.d.ts +29 -0
  7. package/dist/plugin-grid/src/GroupRow.d.ts +23 -0
  8. package/dist/plugin-grid/src/ImportWizard.d.ts +29 -0
  9. package/dist/{packages/plugin-grid → plugin-grid}/src/ObjectGrid.d.ts +1 -0
  10. package/dist/plugin-grid/src/SplitPaneGrid.d.ts +22 -0
  11. package/dist/plugin-grid/src/components/BulkActionBar.d.ts +12 -0
  12. package/dist/plugin-grid/src/components/RowActionMenu.d.ts +23 -0
  13. package/dist/plugin-grid/src/index.d.ts +35 -0
  14. package/dist/plugin-grid/src/useCellClipboard.d.ts +47 -0
  15. package/dist/plugin-grid/src/useColumnSummary.d.ts +25 -0
  16. package/dist/plugin-grid/src/useGradientColor.d.ts +37 -0
  17. package/dist/plugin-grid/src/useGroupReorder.d.ts +34 -0
  18. package/dist/{packages/plugin-grid → plugin-grid}/src/useGroupedData.d.ts +24 -3
  19. package/package.json +10 -10
  20. package/src/FormulaBar.tsx +151 -0
  21. package/src/GroupRow.tsx +69 -0
  22. package/src/ImportWizard.tsx +412 -0
  23. package/src/ListColumnExtensions.test.tsx +4 -5
  24. package/src/ObjectGrid.tsx +994 -139
  25. package/src/SplitPaneGrid.tsx +120 -0
  26. package/src/VirtualGrid.tsx +2 -2
  27. package/src/__tests__/GroupRow.test.tsx +206 -0
  28. package/src/__tests__/ImportPreview.test.tsx +171 -0
  29. package/src/__tests__/accessorKey-inference.test.tsx +132 -0
  30. package/src/__tests__/airtable-style.test.tsx +508 -0
  31. package/src/__tests__/column-features.test.tsx +490 -0
  32. package/src/__tests__/grid-export.test.tsx +121 -0
  33. package/src/__tests__/mobile-card-view.test.tsx +355 -0
  34. package/src/__tests__/objectdef-enrichment.test.tsx +566 -0
  35. package/src/__tests__/phase11-features.test.tsx +418 -0
  36. package/src/__tests__/row-bulk-actions.test.tsx +413 -0
  37. package/src/__tests__/row-height.test.tsx +160 -0
  38. package/src/__tests__/useGroupedData.test.ts +165 -0
  39. package/src/components/BulkActionBar.tsx +66 -0
  40. package/src/components/RowActionMenu.tsx +91 -0
  41. package/src/index.tsx +46 -2
  42. package/src/useCellClipboard.ts +136 -0
  43. package/src/useColumnSummary.ts +128 -0
  44. package/src/useGradientColor.ts +103 -0
  45. package/src/useGroupReorder.ts +123 -0
  46. package/src/useGroupedData.ts +69 -4
  47. package/tsconfig.json +2 -1
  48. package/dist/packages/plugin-grid/src/ListColumnExtensions.test.d.ts +0 -0
  49. package/dist/packages/plugin-grid/src/ListColumnSchema.test.d.ts +0 -1
  50. package/dist/packages/plugin-grid/src/ObjectGrid.EdgeCases.stories.d.ts +0 -25
  51. package/dist/packages/plugin-grid/src/ObjectGrid.msw.test.d.ts +0 -0
  52. package/dist/packages/plugin-grid/src/ObjectGrid.stories.d.ts +0 -33
  53. package/dist/packages/plugin-grid/src/VirtualGrid.test.d.ts +0 -8
  54. package/dist/packages/plugin-grid/src/__tests__/InlineEditing.test.d.ts +0 -0
  55. package/dist/packages/plugin-grid/src/__tests__/VirtualGrid.test.d.ts +0 -0
  56. package/dist/packages/plugin-grid/src/__tests__/accessibility.test.d.ts +0 -0
  57. package/dist/packages/plugin-grid/src/__tests__/performance-benchmark.test.d.ts +0 -0
  58. package/dist/packages/plugin-grid/src/__tests__/view-states.test.d.ts +0 -0
  59. package/dist/packages/plugin-grid/src/index.d.ts +0 -15
  60. package/dist/packages/plugin-grid/src/index.test.d.ts +0 -1
  61. package/src/VirtualGrid.test.tsx +0 -23
  62. /package/dist/{packages/plugin-grid → plugin-grid}/src/InlineEditing.d.ts +0 -0
  63. /package/dist/{packages/plugin-grid → plugin-grid}/src/VirtualGrid.d.ts +0 -0
  64. /package/dist/{packages/plugin-grid → plugin-grid}/src/useRowColor.d.ts +0 -0
@@ -1,66 +1,27 @@
1
1
 
2
- > @object-ui/plugin-grid@3.0.2 build /home/runner/work/objectui/objectui/packages/plugin-grid
2
+ > @object-ui/plugin-grid@3.1.0 build /home/runner/work/objectui/objectui/packages/plugin-grid
3
3
  > vite build
4
4
 
5
5
  vite v7.3.1 building client environment for production...
6
6
  transforming...
7
- ✓ 31 modules transformed.
7
+ ✓ 41 modules transformed.
8
8
  rendering chunks...
9
9
  
10
10
  [vite:dts] Start generate declaration files...
11
- ../../examples/crm/src/objects/contact.object.ts:3:14 - error TS2742: The inferred type of 'ContactObject' cannot be named without a reference to 'examples/crm/node_modules/@objectstack/spec/dist/state-machine.zod-DoC0JvQb'. This is likely not portable. A type annotation is necessary.
11
+ src/ObjectGrid.tsx:623:98 - error TS2345: Argument of type 'string | { key: string; defaultValue?: string | undefined; params?: Record<string, string | number | boolean> | undefined; }' is not assignable to parameter of type 'string'.
12
+ Type '{ key: string; defaultValue?: string | undefined; params?: Record<string, string | number | boolean> | undefined; }' is not assignable to type 'string'.
12
13
 
13
- 3 export const ContactObject = ObjectSchema.create({
14
-    ~~~~~~~~~~~~~
15
- src/ObjectGrid.EdgeCases.stories.tsx:4:43 - error TS2307: Cannot find module '@storybook-config/datasource' or its corresponding type declarations.
16
-
17
- 4 import { createStorybookDataSource } from '@storybook-config/datasource';
18
-    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19
- src/ObjectGrid.stories.tsx:4:43 - error TS2307: Cannot find module '@storybook-config/datasource' or its corresponding type declarations.
20
-
21
- 4 import { createStorybookDataSource } from '@storybook-config/datasource';
22
-    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23
- src/__tests__/VirtualGrid.test.tsx:23:11 - error TS7034: Variable 'items' implicitly has type 'any[]' in some locations where its type cannot be determined.
24
-
25
- 23 const items = [];
26
-    ~~~~~
27
- src/__tests__/VirtualGrid.test.tsx:28:30 - error TS7005: Variable 'items' implicitly has an 'any[]' type.
28
-
29
- 28 getVirtualItems: () => items,
30
-    ~~~~~
31
- src/__tests__/accessibility.test.tsx:28:11 - error TS7034: Variable 'items' implicitly has type 'any[]' in some locations where its type cannot be determined.
32
-
33
- 28 const items = [];
34
-    ~~~~~
35
- src/__tests__/accessibility.test.tsx:33:30 - error TS7005: Variable 'items' implicitly has an 'any[]' type.
36
-
37
- 33 getVirtualItems: () => items,
38
-    ~~~~~
39
- src/__tests__/performance-benchmark.test.tsx:27:11 - error TS7034: Variable 'items' implicitly has type 'any[]' in some locations where its type cannot be determined.
40
-
41
- 27 const items = [];
42
-    ~~~~~
43
- src/__tests__/performance-benchmark.test.tsx:32:30 - error TS7005: Variable 'items' implicitly has an 'any[]' type.
44
-
45
- 32 getVirtualItems: () => items,
46
-    ~~~~~
47
- src/__tests__/view-states.test.tsx:27:11 - error TS7034: Variable 'items' implicitly has type 'any[]' in some locations where its type cannot be determined.
48
-
49
- 27 const items = [];
50
-    ~~~~~
51
- src/__tests__/view-states.test.tsx:32:30 - error TS7005: Variable 'items' implicitly has an 'any[]' type.
52
-
53
- 32 getVirtualItems: () => items,
54
-    ~~~~~
14
+ 623 const header = schema.objectName ? resolveFieldLabel(schema.objectName, col.field, rawHeader) : rawHeader;
15
+    ~~~~~~~~~
55
16
 
56
17
  computing gzip size...
57
- dist/index.js 58.40 kB │ gzip: 15.71 kB
58
- [vite:dts] Declaration files built in 20325ms.
18
+ dist/index.js 111.38 kB │ gzip: 29.34 kB
19
+ [vite:dts] Declaration files built in 26607ms.
59
20
  
60
21
  No name was provided for external module "@object-ui/core" in "output.globals" – guessing "core".
61
22
  No name was provided for external module "@object-ui/react" in "output.globals" – guessing "react".
62
23
  No name was provided for external module "@object-ui/fields" in "output.globals" – guessing "fields".
63
24
  No name was provided for external module "@object-ui/components" in "output.globals" – guessing "components".
64
25
  No name was provided for external module "lucide-react" in "output.globals" – guessing "lucideReact".
65
- dist/index.umd.cjs 40.64 kB │ gzip: 13.64 kB
66
- ✓ built in 21.44s
26
+ dist/index.umd.cjs 77.43 kB │ gzip: 25.12 kB
27
+ ✓ built in 28.64s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @object-ui/plugin-grid
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
+ - @object-ui/fields@3.0.3
12
+ - @object-ui/mobile@3.0.3
13
+
3
14
  ## 3.0.2
4
15
 
5
16
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './packages/plugin-grid/src/index'
1
+ export * from './plugin-grid/src/index'
2
2
  export {}