Skip to content

Commit c4d9b86

Browse files
committed
feat: add ObjectUI plugins for form, grid, and view components
- Implemented ObjectForm component in the plugin-form package with registration in ComponentRegistry. - Created ObjectGrid component in the plugin-grid package, supporting CRUD operations, pagination, and inline editing. - Developed ObjectView component in the plugin-view package, integrating ObjectGrid and ObjectForm for a complete object management interface. - Added TypeScript configuration and Vite build setup for all new packages. - Updated package.json files with dependencies and scripts for building and testing.
1 parent b9a3e57 commit c4d9b86

39 files changed

+453
-2208
lines changed

apps/site/app/components/InteractiveDemo.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ const pluginsLoading = typeof window !== 'undefined'
2222
import('@object-ui/plugin-gantt'),
2323
import('@object-ui/plugin-map'),
2424
import('@object-ui/plugin-chatbot'),
25-
import('@object-ui/views'),
25+
import('@object-ui/plugin-form'),
26+
import('@object-ui/plugin-grid'),
27+
import('@object-ui/plugin-view'),
2628
])
2729
: Promise.resolve([]);
2830

apps/site/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
"@object-ui/plugin-map": "workspace:*",
2424
"@object-ui/plugin-markdown": "workspace:*",
2525
"@object-ui/plugin-timeline": "workspace:*",
26-
"@object-ui/views": "workspace:*",
26+
"@object-ui/plugin-form": "workspace:*",
27+
"@object-ui/plugin-grid": "workspace:*",
28+
"@object-ui/plugin-view": "workspace:*",
2729
"@object-ui/react": "workspace:*",
2830
"@object-ui/types": "workspace:*",
2931
"fumadocs-core": "16.4.8",

content/docs/views/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Core Object UI views package providing smart components for CRUD operations with
77
## Installation
88

99
```bash
10-
npm install @object-ui/views @object-ui/data-objectql
10+
npm install @object-ui/plugin-grid @object-ui/plugin-form @object-ui/plugin-view @object-ui/data-objectql
1111
```
1212

1313
## Overview

content/docs/views/object-calendar.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ A specialized calendar component that works with ObjectQL data sources. Displays
9393
## Basic Usage
9494

9595
```tsx
96-
import { ObjectCalendar } from '@object-ui/views';
96+
import { ObjectCalendar } from '@object-ui/plugin-calendar';
9797
import { ObjectQLDataSource } from '@object-ui/data-objectql';
9898

9999
const dataSource = new ObjectQLDataSource({

content/docs/views/object-form.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ A smart form component that generates forms from ObjectQL object schemas with au
5959
## Basic Usage
6060

6161
```tsx
62-
import { ObjectForm } from '@object-ui/views';
62+
import { ObjectForm } from '@object-ui/plugin-form';
6363
import { ObjectQLDataSource } from '@object-ui/data-objectql';
6464

6565
const dataSource = new ObjectQLDataSource({

content/docs/views/object-gantt.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ A specialized Gantt chart component that works with ObjectQL data sources. Displ
9595
## Basic Usage
9696

9797
```tsx
98-
import { ObjectGantt } from '@object-ui/views';
98+
import { ObjectGantt } from '@object-ui/plugin-gantt';
9999
import { ObjectQLDataSource } from '@object-ui/data-objectql';
100100

101101
const dataSource = new ObjectQLDataSource({

content/docs/views/object-grid.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ Inherits all data-table features: sorting, filtering, pagination, row selection,
283283
## Traditional Mode - Basic Usage
284284

285285
```tsx
286-
import { ObjectGrid } from '@object-ui/views';
286+
import { ObjectGrid } from '@object-ui/plugin-grid';
287287

288288
function UsersTable() {
289289
return (

content/docs/views/object-kanban.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ A specialized kanban board component that works with ObjectQL data sources. Auto
9292
## Basic Usage
9393

9494
```tsx
95-
import { ObjectKanban } from '@object-ui/views';
95+
import { ObjectKanban } from '@object-ui/plugin-kanban';
9696
import { ObjectQLDataSource } from '@object-ui/data-objectql';
9797

9898
const dataSource = new ObjectQLDataSource({

content/docs/views/object-map.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ A specialized map visualization component that works with ObjectQL data sources.
9191
## Basic Usage
9292

9393
```tsx
94-
import { ObjectMap } from '@object-ui/views';
94+
import { ObjectMap } from '@object-ui/plugin-map';
9595
import { ObjectQLDataSource } from '@object-ui/data-objectql';
9696

9797
const dataSource = new ObjectQLDataSource({

content/docs/views/object-view.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Complete CRUD view component that integrates list, detail, and edit modes in a s
4242
## Basic Usage
4343

4444
```tsx
45-
import { ObjectView } from '@object-ui/views';
45+
import { ObjectView } from '@object-ui/plugin-view';
4646
import { ObjectQLDataSource } from '@object-ui/data-objectql';
4747

4848
const dataSource = new ObjectQLDataSource({

0 commit comments

Comments
 (0)