@cratis/event-models 0.136.4 → 0.136.6

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.
@@ -0,0 +1,7 @@
1
+ import { FormWidthUnit, type CommandFormLayout, type Form, type FormField, type FormFieldPlacement, type FormWidth } from '@cratis/scene.model';
2
+ export declare const defaultFormWidth: (value?: number, unit?: FormWidthUnit) => FormWidth;
3
+ export declare function defaultFormLayout(fields: readonly FormField[]): CommandFormLayout;
4
+ export declare function formWithLayout(form: Form): Form;
5
+ export declare function updateFieldPlacement(form: Form, fieldName: string, update: (placement: FormFieldPlacement) => FormFieldPlacement): Form;
6
+ export declare function updateColumnWidth(form: Form, index: number, width: FormWidth): Form;
7
+ export declare function updateGap(form: Form, gap: 'columnGap' | 'rowGap', width: FormWidth): Form;
@@ -0,0 +1,8 @@
1
+ import { type Form } from '@cratis/scene.model';
2
+ import type { ScreenEditorStrings } from './ScreenEditorStrings';
3
+ export interface FormLayoutEditorProps {
4
+ form: Form;
5
+ strings: ScreenEditorStrings['properties']['forms'];
6
+ onChange: (form: Form) => void;
7
+ }
8
+ export declare const FormLayoutEditor: ({ form, strings, onChange }: FormLayoutEditorProps) => import("react").JSX.Element;
@@ -115,6 +115,19 @@ export interface ScreenEditorStrings {
115
115
  fieldLabel: string;
116
116
  sourceProperty: string;
117
117
  fieldComposition: string;
118
+ columns: string;
119
+ column: (index: number) => string;
120
+ gaps: string;
121
+ columnGap: string;
122
+ rowGap: string;
123
+ placements: string;
124
+ row: string;
125
+ columnPlacement: string;
126
+ rowSpan: string;
127
+ columnSpan: string;
128
+ fieldWidth: string;
129
+ widthValue: string;
130
+ widthUnit: string;
118
131
  remove: string;
119
132
  };
120
133
  binding: {