@object-ui/types 0.3.1 → 2.0.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.
- package/README.md +1 -1
- package/dist/ai.d.ts +376 -0
- package/dist/ai.d.ts.map +1 -0
- package/dist/ai.js +8 -0
- package/dist/app.d.ts +10 -0
- package/dist/app.d.ts.map +1 -1
- package/dist/blocks.d.ts +332 -0
- package/dist/blocks.d.ts.map +1 -0
- package/dist/blocks.js +8 -0
- package/dist/crud.d.ts +177 -3
- package/dist/crud.d.ts.map +1 -1
- package/dist/data-display.d.ts +35 -0
- package/dist/data-display.d.ts.map +1 -1
- package/dist/data-protocol.d.ts +1268 -0
- package/dist/data-protocol.d.ts.map +1 -0
- package/dist/data-protocol.js +8 -0
- package/dist/data.d.ts +74 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/designer.d.ts +473 -0
- package/dist/designer.d.ts.map +1 -0
- package/dist/designer.js +8 -0
- package/dist/field-types.d.ts +353 -11
- package/dist/field-types.d.ts.map +1 -1
- package/dist/form.d.ts +35 -1
- package/dist/form.d.ts.map +1 -1
- package/dist/index.d.ts +58 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -0
- package/dist/layout.d.ts +63 -8
- package/dist/layout.d.ts.map +1 -1
- package/dist/mobile.d.ts +186 -0
- package/dist/mobile.d.ts.map +1 -0
- package/dist/mobile.js +8 -0
- package/dist/objectql.d.ts +337 -89
- package/dist/objectql.d.ts.map +1 -1
- package/dist/permissions.d.ts +150 -0
- package/dist/permissions.d.ts.map +1 -0
- package/dist/permissions.js +8 -0
- package/dist/plugin-scope.d.ts +194 -0
- package/dist/plugin-scope.d.ts.map +1 -0
- package/dist/plugin-scope.js +8 -0
- package/dist/reports.d.ts +336 -0
- package/dist/reports.d.ts.map +1 -0
- package/dist/reports.js +8 -0
- package/dist/tenant.d.ts +138 -0
- package/dist/tenant.d.ts.map +1 -0
- package/dist/tenant.js +8 -0
- package/dist/theme.d.ts +180 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +8 -0
- package/dist/ui-action.d.ts +290 -0
- package/dist/ui-action.d.ts.map +1 -0
- package/dist/ui-action.js +8 -0
- package/dist/views.d.ts +427 -0
- package/dist/views.d.ts.map +1 -0
- package/dist/views.js +8 -0
- package/dist/widget.d.ts +181 -0
- package/dist/widget.d.ts.map +1 -0
- package/dist/widget.js +8 -0
- package/dist/workflow.d.ts +340 -0
- package/dist/workflow.d.ts.map +1 -0
- package/dist/workflow.js +8 -0
- package/dist/zod/app.zod.d.ts +120 -0
- package/dist/zod/app.zod.d.ts.map +1 -0
- package/dist/zod/app.zod.js +60 -0
- package/dist/zod/blocks.zod.d.ts +834 -0
- package/dist/zod/blocks.zod.d.ts.map +1 -0
- package/dist/zod/blocks.zod.js +145 -0
- package/dist/zod/complex.zod.d.ts +4 -4
- package/dist/zod/complex.zod.js +1 -1
- package/dist/zod/crud.zod.d.ts +598 -0
- package/dist/zod/crud.zod.d.ts.map +1 -0
- package/dist/zod/crud.zod.js +230 -0
- package/dist/zod/data-display.zod.js +1 -1
- package/dist/zod/disclosure.zod.js +1 -1
- package/dist/zod/feedback.zod.d.ts +10 -10
- package/dist/zod/feedback.zod.js +1 -1
- package/dist/zod/form.zod.d.ts +4 -4
- package/dist/zod/form.zod.js +1 -1
- package/dist/zod/index.zod.d.ts +2032 -30
- package/dist/zod/index.zod.d.ts.map +1 -1
- package/dist/zod/index.zod.js +96 -19
- package/dist/zod/layout.zod.d.ts +134 -2
- package/dist/zod/layout.zod.d.ts.map +1 -1
- package/dist/zod/layout.zod.js +35 -1
- package/dist/zod/navigation.zod.js +1 -1
- package/dist/zod/objectql.zod.d.ts +34 -18
- package/dist/zod/objectql.zod.d.ts.map +1 -1
- package/dist/zod/objectql.zod.js +9 -1
- package/dist/zod/overlay.zod.js +1 -1
- package/dist/zod/reports.zod.d.ts +1628 -0
- package/dist/zod/reports.zod.d.ts.map +1 -0
- package/dist/zod/reports.zod.js +152 -0
- package/dist/zod/theme.zod.d.ts +1292 -0
- package/dist/zod/theme.zod.d.ts.map +1 -0
- package/dist/zod/theme.zod.js +260 -0
- package/dist/zod/views.zod.d.ts +675 -0
- package/dist/zod/views.zod.d.ts.map +1 -0
- package/dist/zod/views.zod.js +159 -0
- package/package.json +3 -2
- package/src/__tests__/namespace-exports.test.ts +36 -0
- package/src/__tests__/phase2-schemas.test.ts +634 -0
- package/src/ai.ts +454 -0
- package/src/app.ts +12 -0
- package/src/blocks.ts +405 -0
- package/src/crud.ts +180 -3
- package/src/data-display.ts +31 -0
- package/src/data-protocol.ts +1679 -0
- package/src/data.ts +84 -1
- package/src/designer.ts +509 -0
- package/src/field-types.ts +392 -11
- package/src/form.ts +35 -1
- package/src/index.ts +426 -0
- package/src/layout.ts +66 -8
- package/src/mobile.ts +205 -0
- package/src/objectql.ts +412 -94
- package/src/permissions.ts +166 -0
- package/src/plugin-scope.ts +210 -0
- package/src/reports.ts +408 -0
- package/src/tenant.ts +153 -0
- package/src/theme.ts +238 -0
- package/src/ui-action.ts +415 -0
- package/src/views.ts +436 -0
- package/src/widget.ts +197 -0
- package/src/workflow.ts +409 -0
- package/src/zod/app.zod.ts +72 -0
- package/src/zod/blocks.zod.ts +170 -0
- package/src/zod/complex.zod.ts +1 -1
- package/src/zod/crud.zod.ts +259 -0
- package/src/zod/data-display.zod.ts +1 -1
- package/src/zod/disclosure.zod.ts +1 -1
- package/src/zod/feedback.zod.ts +1 -1
- package/src/zod/form.zod.ts +1 -1
- package/src/zod/index.zod.ts +178 -19
- package/src/zod/layout.zod.ts +39 -1
- package/src/zod/navigation.zod.ts +1 -1
- package/src/zod/objectql.zod.ts +9 -1
- package/src/zod/overlay.zod.ts +1 -1
- package/src/zod/reports.zod.ts +183 -0
- package/src/zod/theme.zod.ts +296 -0
- package/src/zod/views.zod.ts +182 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.zod.d.ts","sourceRoot":"","sources":["../../src/zod/index.zod.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAKH,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.zod.d.ts","sourceRoot":"","sources":["../../src/zod/index.zod.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAKH,OAAO,EACL,SAAS,EACT,eAAe,EACf,cAAc,IAAI,iBAAiB,GACpC,MAAM,cAAc,CAAC;AAKtB,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAKvB,OAAO,EACL,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,UAAU,EACV,eAAe,EACf,eAAe,EACf,UAAU,EACV,WAAW,EACX,UAAU,EACV,UAAU,EACV,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,YAAY,GACb,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,cAAc,EACd,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,EACd,WAAW,EACX,aAAa,EACb,eAAe,EACf,UAAU,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgB7B,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,OAE7C;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,6BAEjD;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,UAAU,CAAC"}
|
package/dist/zod/index.zod.js
CHANGED
|
@@ -33,63 +33,85 @@
|
|
|
33
33
|
* @packageDocumentation
|
|
34
34
|
*/
|
|
35
35
|
// ============================================================================
|
|
36
|
+
// Application - Global Configuration
|
|
37
|
+
// ============================================================================
|
|
38
|
+
export { AppSchema, AppActionSchema, MenuItemSchema as AppMenuItemSchema, } from './app.zod.js';
|
|
39
|
+
// ============================================================================
|
|
36
40
|
// Base Schema - Foundation
|
|
37
41
|
// ============================================================================
|
|
38
|
-
export { BaseSchema, SchemaNodeSchema, ComponentInputSchema, ComponentMetaSchema, ComponentConfigSchema, HTMLAttributesSchema, EventHandlersSchema, StylePropsSchema, } from './base.zod';
|
|
42
|
+
export { BaseSchema, SchemaNodeSchema, ComponentInputSchema, ComponentMetaSchema, ComponentConfigSchema, HTMLAttributesSchema, EventHandlersSchema, StylePropsSchema, } from './base.zod.js';
|
|
39
43
|
// ============================================================================
|
|
40
44
|
// Layout Components - Structure & Organization
|
|
41
45
|
// ============================================================================
|
|
42
|
-
export { DivSchema, SpanSchema, TextSchema, ImageSchema, IconSchema, SeparatorSchema, ContainerSchema, FlexSchema, StackSchema, GridSchema, CardSchema, TabItemSchema, TabsSchema, ScrollAreaSchema, ResizablePanelSchema, ResizableSchema, AspectRatioSchema, PageSchema, LayoutSchema, } from './layout.zod';
|
|
46
|
+
export { DivSchema, SpanSchema, TextSchema, ImageSchema, IconSchema, SeparatorSchema, ContainerSchema, FlexSchema, StackSchema, GridSchema, CardSchema, TabItemSchema, TabsSchema, ScrollAreaSchema, ResizablePanelSchema, ResizableSchema, AspectRatioSchema, PageRegionWidthSchema, PageRegionSchema, PageVariableSchema, PageTypeSchema, PageSchema, LayoutSchema, } from './layout.zod.js';
|
|
43
47
|
// ============================================================================
|
|
44
48
|
// Form Components - User Input & Interaction
|
|
45
49
|
// ============================================================================
|
|
46
|
-
export { SelectOptionSchema, RadioOptionSchema, ComboboxOptionSchema, CommandItemSchema, CommandGroupSchema, ValidationRuleSchema, FieldConditionSchema, ButtonSchema, InputSchema, TextareaSchema, SelectSchema, CheckboxSchema, RadioGroupSchema, SwitchSchema, ToggleSchema, SliderSchema, FileUploadSchema, DatePickerSchema, CalendarSchema, InputOTPSchema, ComboboxSchema, LabelSchema, CommandSchema, FormFieldSchema, FormSchema, FormComponentSchema, } from './form.zod';
|
|
50
|
+
export { SelectOptionSchema, RadioOptionSchema, ComboboxOptionSchema, CommandItemSchema, CommandGroupSchema, ValidationRuleSchema, FieldConditionSchema, ButtonSchema, InputSchema, TextareaSchema, SelectSchema, CheckboxSchema, RadioGroupSchema, SwitchSchema, ToggleSchema, SliderSchema, FileUploadSchema, DatePickerSchema, CalendarSchema, InputOTPSchema, ComboboxSchema, LabelSchema, CommandSchema, FormFieldSchema, FormSchema, FormComponentSchema, } from './form.zod.js';
|
|
47
51
|
// ============================================================================
|
|
48
52
|
// Data Display Components - Information Presentation
|
|
49
53
|
// ============================================================================
|
|
50
|
-
export { AlertSchema, StatisticSchema, BadgeSchema, AvatarSchema, ListItemSchema, ListSchema, TableColumnSchema, TableSchema, DataTableSchema, MarkdownSchema, TreeNodeSchema, TreeViewSchema, ChartTypeSchema, ChartSeriesSchema, ChartSchema, TimelineEventSchema, TimelineSchema, KbdSchema, HtmlSchema, DataDisplaySchema, } from './data-display.zod';
|
|
54
|
+
export { AlertSchema, StatisticSchema, BadgeSchema, AvatarSchema, ListItemSchema, ListSchema, TableColumnSchema, TableSchema, DataTableSchema, MarkdownSchema, TreeNodeSchema, TreeViewSchema, ChartTypeSchema, ChartSeriesSchema, ChartSchema, TimelineEventSchema, TimelineSchema, KbdSchema, HtmlSchema, DataDisplaySchema, } from './data-display.zod.js';
|
|
51
55
|
// ============================================================================
|
|
52
56
|
// Feedback Components - Status & Progress Indication
|
|
53
57
|
// ============================================================================
|
|
54
|
-
export { LoadingSchema, ProgressSchema, SkeletonSchema, ToastSchema, ToasterSchema, SpinnerSchema, EmptySchema, SonnerSchema, FeedbackSchema, } from './feedback.zod';
|
|
58
|
+
export { LoadingSchema, ProgressSchema, SkeletonSchema, ToastSchema, ToasterSchema, SpinnerSchema, EmptySchema, SonnerSchema, FeedbackSchema, } from './feedback.zod.js';
|
|
55
59
|
// ============================================================================
|
|
56
60
|
// Disclosure Components - Collapsible Content
|
|
57
61
|
// ============================================================================
|
|
58
|
-
export { AccordionItemSchema, AccordionSchema, CollapsibleSchema, ToggleGroupItemSchema, ToggleGroupSchema, DisclosureSchema, } from './disclosure.zod';
|
|
62
|
+
export { AccordionItemSchema, AccordionSchema, CollapsibleSchema, ToggleGroupItemSchema, ToggleGroupSchema, DisclosureSchema, } from './disclosure.zod.js';
|
|
59
63
|
// ============================================================================
|
|
60
64
|
// Overlay Components - Modals & Popovers
|
|
61
65
|
// ============================================================================
|
|
62
|
-
export { DialogSchema, AlertDialogSchema, SheetSchema, DrawerSchema, PopoverSchema, TooltipSchema, HoverCardSchema, MenuItemSchema, DropdownMenuSchema, ContextMenuSchema, MenubarMenuSchema, MenubarSchema, OverlaySchema, } from './overlay.zod';
|
|
66
|
+
export { DialogSchema, AlertDialogSchema, SheetSchema, DrawerSchema, PopoverSchema, TooltipSchema, HoverCardSchema, MenuItemSchema, DropdownMenuSchema, ContextMenuSchema, MenubarMenuSchema, MenubarSchema, OverlaySchema, } from './overlay.zod.js';
|
|
63
67
|
// ============================================================================
|
|
64
68
|
// Navigation Components - Menus & Navigation
|
|
65
69
|
// ============================================================================
|
|
66
|
-
export { NavLinkSchema, HeaderBarSchema, SidebarSchema, PaginationSchema, NavigationMenuItemSchema, NavigationMenuSchema, ButtonGroupButtonSchema, ButtonGroupSchema, NavigationSchema, } from './navigation.zod';
|
|
70
|
+
export { NavLinkSchema, HeaderBarSchema, SidebarSchema, PaginationSchema, NavigationMenuItemSchema, NavigationMenuSchema, ButtonGroupButtonSchema, ButtonGroupSchema, NavigationSchema, } from './navigation.zod.js';
|
|
67
71
|
// ============================================================================
|
|
68
72
|
// Complex Components - Advanced/Composite Components
|
|
69
73
|
// ============================================================================
|
|
70
|
-
export { KanbanCardSchema, KanbanColumnSchema, KanbanSchema, CalendarViewModeSchema, CalendarEventSchema, CalendarViewSchema, FilterOperatorSchema, FilterConditionSchema, FilterGroupSchema, FilterFieldSchema, FilterBuilderSchema, CarouselItemSchema, CarouselSchema, ChatMessageSchema, ChatbotSchema, DashboardWidgetLayoutSchema, DashboardWidgetSchema, DashboardSchema, ComplexSchema, } from './complex.zod';
|
|
74
|
+
export { KanbanCardSchema, KanbanColumnSchema, KanbanSchema, CalendarViewModeSchema, CalendarEventSchema, CalendarViewSchema, FilterOperatorSchema, FilterConditionSchema, FilterGroupSchema, FilterFieldSchema, FilterBuilderSchema, CarouselItemSchema, CarouselSchema, ChatMessageSchema, ChatbotSchema, DashboardWidgetLayoutSchema, DashboardWidgetSchema, DashboardSchema, ComplexSchema, } from './complex.zod.js';
|
|
71
75
|
// ============================================================================
|
|
72
76
|
// ObjectQL Components - Smart Data Components
|
|
73
77
|
// ============================================================================
|
|
74
|
-
export { HttpMethodSchema, HttpRequestSchema, ViewDataSchema, ListColumnSchema, SelectionConfigSchema, PaginationConfigSchema, SortConfigSchema, ObjectGridSchema, ObjectFormSchema, ObjectViewSchema, ObjectMapSchema, ObjectGanttSchema, ObjectCalendarSchema, ObjectKanbanSchema, ObjectChartSchema, ListViewSchema, ObjectQLComponentSchema, } from './objectql.zod';
|
|
78
|
+
export { HttpMethodSchema, HttpRequestSchema, ViewDataSchema, ListColumnSchema, SelectionConfigSchema, PaginationConfigSchema, SortConfigSchema, ObjectGridSchema, ObjectFormSchema, ObjectViewSchema, ObjectMapSchema, ObjectGanttSchema, ObjectCalendarSchema, ObjectKanbanSchema, ObjectChartSchema, ListViewSchema, ObjectQLComponentSchema, } from './objectql.zod.js';
|
|
79
|
+
// ============================================================================
|
|
80
|
+
// CRUD Components - Create, Read, Update, Delete Operations
|
|
81
|
+
// ============================================================================
|
|
82
|
+
export { ActionExecutionModeSchema, ActionCallbackSchema, ActionConditionSchema, ActionSchema, CRUDOperationSchema, CRUDFilterSchema, CRUDToolbarSchema, CRUDPaginationSchema, CRUDSchema, DetailSchema, CRUDDialogSchema, CRUDComponentSchema, } from './crud.zod.js';
|
|
83
|
+
// ============================================================================
|
|
84
|
+
// Phase 2 Schemas - Theme, Reports, Blocks, and Views
|
|
85
|
+
// ============================================================================
|
|
86
|
+
export { ColorPaletteSchema, TypographySchema, SpacingSchema, SpacingScaleSchema, BorderRadiusSchema, ShadowSchema, BreakpointsSchema, AnimationSchema, ZIndexSchema, ThemeLogoSchema, ThemeModeSchema, ThemeDefinitionSchema, ThemeSchema, ThemeComponentSchema, ThemeUnionSchema, ThemeSwitcherSchema, ThemePreviewSchema, } from './theme.zod.js';
|
|
87
|
+
export { ReportExportFormatSchema, ReportScheduleFrequencySchema, ReportAggregationTypeSchema, ReportFieldSchema, ReportFilterSchema, ReportGroupBySchema, ReportSectionSchema, ReportScheduleSchema, ReportExportConfigSchema, ReportSchema, ReportBuilderSchema, ReportViewerSchema, ReportComponentSchema, } from './reports.zod.js';
|
|
88
|
+
export { BlockVariableSchema, BlockSlotSchema, BlockMetadataSchema, BlockSchema, BlockLibraryItemSchema, BlockLibrarySchema, BlockEditorSchema, BlockInstanceSchema, ComponentSchema, BlockComponentSchema, } from './blocks.zod.js';
|
|
89
|
+
export { ViewTypeSchema, DetailViewFieldSchema, DetailViewSectionSchema, DetailViewTabSchema, DetailViewSchema, ViewSwitcherSchema, FilterUISchema, SortUISchema, ViewComponentSchema, } from './views.zod.js';
|
|
75
90
|
// ============================================================================
|
|
76
91
|
// Union Types - All Component Schemas
|
|
77
92
|
// ============================================================================
|
|
78
93
|
import { z } from 'zod';
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
94
|
+
import { AppSchema } from './app.zod.js';
|
|
95
|
+
import { LayoutSchema } from './layout.zod.js';
|
|
96
|
+
import { FormComponentSchema } from './form.zod.js';
|
|
97
|
+
import { DataDisplaySchema } from './data-display.zod.js';
|
|
98
|
+
import { FeedbackSchema } from './feedback.zod.js';
|
|
99
|
+
import { DisclosureSchema } from './disclosure.zod.js';
|
|
100
|
+
import { OverlaySchema } from './overlay.zod.js';
|
|
101
|
+
import { NavigationSchema } from './navigation.zod.js';
|
|
102
|
+
import { ComplexSchema } from './complex.zod.js';
|
|
103
|
+
import { ObjectQLComponentSchema } from './objectql.zod.js';
|
|
104
|
+
import { CRUDComponentSchema } from './crud.zod.js';
|
|
105
|
+
import { ThemeUnionSchema } from './theme.zod.js';
|
|
106
|
+
import { ReportComponentSchema } from './reports.zod.js';
|
|
107
|
+
import { BlockComponentSchema } from './blocks.zod.js';
|
|
108
|
+
import { ViewComponentSchema } from './views.zod.js';
|
|
88
109
|
/**
|
|
89
110
|
* Union of all component schemas.
|
|
90
111
|
* Use this for generic component rendering where the type is determined at runtime.
|
|
91
112
|
*/
|
|
92
113
|
export const AnyComponentSchema = z.union([
|
|
114
|
+
AppSchema,
|
|
93
115
|
LayoutSchema,
|
|
94
116
|
FormComponentSchema,
|
|
95
117
|
DataDisplaySchema,
|
|
@@ -99,7 +121,62 @@ export const AnyComponentSchema = z.union([
|
|
|
99
121
|
NavigationSchema,
|
|
100
122
|
ComplexSchema,
|
|
101
123
|
ObjectQLComponentSchema,
|
|
124
|
+
CRUDComponentSchema,
|
|
125
|
+
ThemeUnionSchema,
|
|
126
|
+
ReportComponentSchema,
|
|
127
|
+
BlockComponentSchema,
|
|
128
|
+
ViewComponentSchema,
|
|
102
129
|
]);
|
|
130
|
+
/**
|
|
131
|
+
* Validate a schema against the AnyComponentSchema
|
|
132
|
+
*
|
|
133
|
+
* @param schema - The schema to validate
|
|
134
|
+
* @returns The validated and typed schema
|
|
135
|
+
* @throws ZodError if validation fails
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```typescript
|
|
139
|
+
* import { validateSchema } from '@object-ui/types/zod';
|
|
140
|
+
*
|
|
141
|
+
* try {
|
|
142
|
+
* const validSchema = validateSchema({
|
|
143
|
+
* type: 'button',
|
|
144
|
+
* label: 'Click Me',
|
|
145
|
+
* });
|
|
146
|
+
* console.log('Valid schema:', validSchema);
|
|
147
|
+
* } catch (error) {
|
|
148
|
+
* console.error('Validation failed:', error);
|
|
149
|
+
* }
|
|
150
|
+
* ```
|
|
151
|
+
*/
|
|
152
|
+
export function validateSchema(schema) {
|
|
153
|
+
return AnyComponentSchema.parse(schema);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Safely validate a schema without throwing errors
|
|
157
|
+
*
|
|
158
|
+
* @param schema - The schema to validate
|
|
159
|
+
* @returns Object with success boolean and either data or error
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```typescript
|
|
163
|
+
* import { safeValidateSchema } from '@object-ui/types/zod';
|
|
164
|
+
*
|
|
165
|
+
* const result = safeValidateSchema({
|
|
166
|
+
* type: 'button',
|
|
167
|
+
* label: 'Click Me',
|
|
168
|
+
* });
|
|
169
|
+
*
|
|
170
|
+
* if (result.success) {
|
|
171
|
+
* console.log('Valid schema:', result.data);
|
|
172
|
+
* } else {
|
|
173
|
+
* console.error('Validation errors:', result.error);
|
|
174
|
+
* }
|
|
175
|
+
* ```
|
|
176
|
+
*/
|
|
177
|
+
export function safeValidateSchema(schema) {
|
|
178
|
+
return AnyComponentSchema.safeParse(schema);
|
|
179
|
+
}
|
|
103
180
|
/**
|
|
104
181
|
* Version information
|
|
105
182
|
*/
|
package/dist/zod/layout.zod.d.ts
CHANGED
|
@@ -134,10 +134,10 @@ export declare const ImageSchema: z.ZodObject<{
|
|
|
134
134
|
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
135
135
|
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
136
136
|
objectFit: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
none: "none";
|
|
137
138
|
contain: "contain";
|
|
138
139
|
cover: "cover";
|
|
139
140
|
fill: "fill";
|
|
140
|
-
none: "none";
|
|
141
141
|
"scale-down": "scale-down";
|
|
142
142
|
}>>;
|
|
143
143
|
}, z.core.$loose>;
|
|
@@ -544,8 +544,62 @@ export declare const AspectRatioSchema: z.ZodObject<{
|
|
|
544
544
|
body: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>>;
|
|
545
545
|
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>>;
|
|
546
546
|
}, z.core.$loose>;
|
|
547
|
+
/**
|
|
548
|
+
* Page Region Width Schema
|
|
549
|
+
*/
|
|
550
|
+
export declare const PageRegionWidthSchema: z.ZodEnum<{
|
|
551
|
+
medium: "medium";
|
|
552
|
+
full: "full";
|
|
553
|
+
small: "small";
|
|
554
|
+
large: "large";
|
|
555
|
+
}>;
|
|
556
|
+
/**
|
|
557
|
+
* Page Region Schema
|
|
558
|
+
*/
|
|
559
|
+
export declare const PageRegionSchema: z.ZodObject<{
|
|
560
|
+
name: z.ZodString;
|
|
561
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
562
|
+
sidebar: "sidebar";
|
|
563
|
+
header: "header";
|
|
564
|
+
footer: "footer";
|
|
565
|
+
main: "main";
|
|
566
|
+
aside: "aside";
|
|
567
|
+
}>>;
|
|
568
|
+
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
569
|
+
medium: "medium";
|
|
570
|
+
full: "full";
|
|
571
|
+
small: "small";
|
|
572
|
+
large: "large";
|
|
573
|
+
}>, z.ZodString]>>;
|
|
574
|
+
components: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
575
|
+
className: z.ZodOptional<z.ZodString>;
|
|
576
|
+
}, z.core.$strip>;
|
|
577
|
+
/**
|
|
578
|
+
* Page Variable Schema
|
|
579
|
+
*/
|
|
580
|
+
export declare const PageVariableSchema: z.ZodObject<{
|
|
581
|
+
name: z.ZodString;
|
|
582
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
583
|
+
string: "string";
|
|
584
|
+
number: "number";
|
|
585
|
+
boolean: "boolean";
|
|
586
|
+
object: "object";
|
|
587
|
+
array: "array";
|
|
588
|
+
}>>>;
|
|
589
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
590
|
+
}, z.core.$strip>;
|
|
591
|
+
/**
|
|
592
|
+
* Page Type Schema
|
|
593
|
+
*/
|
|
594
|
+
export declare const PageTypeSchema: z.ZodEnum<{
|
|
595
|
+
app: "app";
|
|
596
|
+
record: "record";
|
|
597
|
+
home: "home";
|
|
598
|
+
utility: "utility";
|
|
599
|
+
}>;
|
|
547
600
|
/**
|
|
548
601
|
* Page Schema - Top-level page layout
|
|
602
|
+
* Aligned with @objectstack/spec PageSchema
|
|
549
603
|
*/
|
|
550
604
|
export declare const PageSchema: z.ZodObject<{
|
|
551
605
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -567,8 +621,47 @@ export declare const PageSchema: z.ZodObject<{
|
|
|
567
621
|
title: z.ZodOptional<z.ZodString>;
|
|
568
622
|
icon: z.ZodOptional<z.ZodString>;
|
|
569
623
|
description: z.ZodOptional<z.ZodString>;
|
|
624
|
+
pageType: z.ZodOptional<z.ZodEnum<{
|
|
625
|
+
app: "app";
|
|
626
|
+
record: "record";
|
|
627
|
+
home: "home";
|
|
628
|
+
utility: "utility";
|
|
629
|
+
}>>;
|
|
630
|
+
object: z.ZodOptional<z.ZodString>;
|
|
631
|
+
template: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
632
|
+
variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
633
|
+
name: z.ZodString;
|
|
634
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
635
|
+
string: "string";
|
|
636
|
+
number: "number";
|
|
637
|
+
boolean: "boolean";
|
|
638
|
+
object: "object";
|
|
639
|
+
array: "array";
|
|
640
|
+
}>>>;
|
|
641
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
642
|
+
}, z.core.$strip>>>;
|
|
643
|
+
regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
644
|
+
name: z.ZodString;
|
|
645
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
646
|
+
sidebar: "sidebar";
|
|
647
|
+
header: "header";
|
|
648
|
+
footer: "footer";
|
|
649
|
+
main: "main";
|
|
650
|
+
aside: "aside";
|
|
651
|
+
}>>;
|
|
652
|
+
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
653
|
+
medium: "medium";
|
|
654
|
+
full: "full";
|
|
655
|
+
small: "small";
|
|
656
|
+
large: "large";
|
|
657
|
+
}>, z.ZodString]>>;
|
|
658
|
+
components: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
659
|
+
className: z.ZodOptional<z.ZodString>;
|
|
660
|
+
}, z.core.$strip>>>;
|
|
570
661
|
body: z.ZodOptional<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
571
662
|
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>>;
|
|
663
|
+
isDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
664
|
+
assignedProfiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
572
665
|
}, z.core.$loose>;
|
|
573
666
|
/**
|
|
574
667
|
* Layout Schema Union - All layout component schemas
|
|
@@ -677,10 +770,10 @@ export declare const LayoutSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
677
770
|
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
678
771
|
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
679
772
|
objectFit: z.ZodOptional<z.ZodEnum<{
|
|
773
|
+
none: "none";
|
|
680
774
|
contain: "contain";
|
|
681
775
|
cover: "cover";
|
|
682
776
|
fill: "fill";
|
|
683
|
-
none: "none";
|
|
684
777
|
"scale-down": "scale-down";
|
|
685
778
|
}>>;
|
|
686
779
|
}, z.core.$loose>, z.ZodObject<{
|
|
@@ -1042,7 +1135,46 @@ export declare const LayoutSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1042
1135
|
title: z.ZodOptional<z.ZodString>;
|
|
1043
1136
|
icon: z.ZodOptional<z.ZodString>;
|
|
1044
1137
|
description: z.ZodOptional<z.ZodString>;
|
|
1138
|
+
pageType: z.ZodOptional<z.ZodEnum<{
|
|
1139
|
+
app: "app";
|
|
1140
|
+
record: "record";
|
|
1141
|
+
home: "home";
|
|
1142
|
+
utility: "utility";
|
|
1143
|
+
}>>;
|
|
1144
|
+
object: z.ZodOptional<z.ZodString>;
|
|
1145
|
+
template: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1146
|
+
variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1147
|
+
name: z.ZodString;
|
|
1148
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1149
|
+
string: "string";
|
|
1150
|
+
number: "number";
|
|
1151
|
+
boolean: "boolean";
|
|
1152
|
+
object: "object";
|
|
1153
|
+
array: "array";
|
|
1154
|
+
}>>>;
|
|
1155
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
1156
|
+
}, z.core.$strip>>>;
|
|
1157
|
+
regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1158
|
+
name: z.ZodString;
|
|
1159
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1160
|
+
sidebar: "sidebar";
|
|
1161
|
+
header: "header";
|
|
1162
|
+
footer: "footer";
|
|
1163
|
+
main: "main";
|
|
1164
|
+
aside: "aside";
|
|
1165
|
+
}>>;
|
|
1166
|
+
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1167
|
+
medium: "medium";
|
|
1168
|
+
full: "full";
|
|
1169
|
+
small: "small";
|
|
1170
|
+
large: "large";
|
|
1171
|
+
}>, z.ZodString]>>;
|
|
1172
|
+
components: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
1173
|
+
className: z.ZodOptional<z.ZodString>;
|
|
1174
|
+
}, z.core.$strip>>>;
|
|
1045
1175
|
body: z.ZodOptional<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>;
|
|
1046
1176
|
children: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>>;
|
|
1177
|
+
isDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1178
|
+
assignedProfiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1047
1179
|
}, z.core.$loose>]>;
|
|
1048
1180
|
//# sourceMappingURL=layout.zod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAiBvB,CAAC"}
|
package/dist/zod/layout.zod.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* @packageDocumentation
|
|
16
16
|
*/
|
|
17
17
|
import { z } from 'zod';
|
|
18
|
-
import { BaseSchema, SchemaNodeSchema } from './base.zod';
|
|
18
|
+
import { BaseSchema, SchemaNodeSchema } from './base.zod.js';
|
|
19
19
|
/**
|
|
20
20
|
* Div Schema - Basic HTML container
|
|
21
21
|
*/
|
|
@@ -207,16 +207,50 @@ export const AspectRatioSchema = BaseSchema.extend({
|
|
|
207
207
|
body: z.union([SchemaNodeSchema, z.array(SchemaNodeSchema)]).optional().describe('Child components (alternative to image)'),
|
|
208
208
|
children: z.union([SchemaNodeSchema, z.array(SchemaNodeSchema)]).optional().describe('Child components'),
|
|
209
209
|
});
|
|
210
|
+
/**
|
|
211
|
+
* Page Region Width Schema
|
|
212
|
+
*/
|
|
213
|
+
export const PageRegionWidthSchema = z.enum(['small', 'medium', 'large', 'full']);
|
|
214
|
+
/**
|
|
215
|
+
* Page Region Schema
|
|
216
|
+
*/
|
|
217
|
+
export const PageRegionSchema = z.object({
|
|
218
|
+
name: z.string().describe('Region name (e.g. "sidebar", "main", "header")'),
|
|
219
|
+
type: z.enum(['header', 'sidebar', 'main', 'footer', 'aside']).optional().describe('Semantic region type'),
|
|
220
|
+
width: z.union([PageRegionWidthSchema, z.string()]).optional().describe('Region width'),
|
|
221
|
+
components: z.array(SchemaNodeSchema).describe('Components in this region'),
|
|
222
|
+
className: z.string().optional().describe('CSS class overrides'),
|
|
223
|
+
});
|
|
224
|
+
/**
|
|
225
|
+
* Page Variable Schema
|
|
226
|
+
*/
|
|
227
|
+
export const PageVariableSchema = z.object({
|
|
228
|
+
name: z.string().describe('Variable name'),
|
|
229
|
+
type: z.enum(['string', 'number', 'boolean', 'object', 'array']).optional().default('string').describe('Variable type'),
|
|
230
|
+
defaultValue: z.any().optional().describe('Default value'),
|
|
231
|
+
});
|
|
232
|
+
/**
|
|
233
|
+
* Page Type Schema
|
|
234
|
+
*/
|
|
235
|
+
export const PageTypeSchema = z.enum(['record', 'home', 'app', 'utility']);
|
|
210
236
|
/**
|
|
211
237
|
* Page Schema - Top-level page layout
|
|
238
|
+
* Aligned with @objectstack/spec PageSchema
|
|
212
239
|
*/
|
|
213
240
|
export const PageSchema = BaseSchema.extend({
|
|
214
241
|
type: z.literal('page'),
|
|
215
242
|
title: z.string().optional().describe('Page title'),
|
|
216
243
|
icon: z.string().optional().describe('Page icon (Lucide icon name)'),
|
|
217
244
|
description: z.string().optional().describe('Page description'),
|
|
245
|
+
pageType: PageTypeSchema.optional().describe('Page type (record, home, app, utility)'),
|
|
246
|
+
object: z.string().optional().describe('Bound object name (for record pages)'),
|
|
247
|
+
template: z.string().optional().default('default').describe('Layout template name'),
|
|
248
|
+
variables: z.array(PageVariableSchema).optional().describe('Local page state variables'),
|
|
249
|
+
regions: z.array(PageRegionSchema).optional().describe('Page layout regions'),
|
|
218
250
|
body: z.array(SchemaNodeSchema).optional().describe('Main content array'),
|
|
219
251
|
children: z.union([SchemaNodeSchema, z.array(SchemaNodeSchema)]).optional().describe('Alternative content prop'),
|
|
252
|
+
isDefault: z.boolean().optional().default(false).describe('Whether this is the default page'),
|
|
253
|
+
assignedProfiles: z.array(z.string()).optional().describe('Profiles that can access this page'),
|
|
220
254
|
});
|
|
221
255
|
/**
|
|
222
256
|
* Layout Schema Union - All layout component schemas
|