@declarion/react 0.1.46 → 0.1.48
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/dist-lib/components/detail-layout/AssociatedBlock.d.ts +5 -1
- package/dist-lib/components/fields/TextField.d.ts +1 -1
- package/dist-lib/components/fields/index.d.ts +1 -0
- package/dist-lib/components/primitives/Fields.d.ts +2 -1
- package/dist-lib/index.js +1515 -1381
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/lib/ui-actions.d.ts +1 -1
- package/dist-lib/types/schema.d.ts +4 -3
- package/package.json +1 -1
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import type { LayoutNode } from "../../types/schema";
|
|
1
|
+
import type { LayoutNode, Action } from "../../types/schema";
|
|
2
2
|
import type { LayoutContext } from "./LayoutRenderer";
|
|
3
3
|
interface AssociatedBlockProps {
|
|
4
4
|
node: LayoutNode;
|
|
5
5
|
ctx: LayoutContext;
|
|
6
6
|
}
|
|
7
|
+
export declare function resolveAssociatedToolbarActions(actions: Record<string, Action> | undefined, fkField: string, parentId: string): Array<{
|
|
8
|
+
code: string;
|
|
9
|
+
action: Action;
|
|
10
|
+
}>;
|
|
7
11
|
export declare function AssociatedBlock({ node, ctx }: AssociatedBlockProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
12
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { FieldRendererProps } from "./index";
|
|
2
|
-
export declare function TextField({ field, value, mode, onChange }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function TextField({ field, value, mode, onChange, fill }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,6 +8,7 @@ export interface FieldRendererProps {
|
|
|
8
8
|
onChange?: (value: unknown) => void;
|
|
9
9
|
record?: Record<string, unknown>;
|
|
10
10
|
refs?: RefsMap;
|
|
11
|
+
fill?: boolean;
|
|
11
12
|
}
|
|
12
13
|
type FieldRenderer = React.ComponentType<FieldRendererProps>;
|
|
13
14
|
export declare function renderField(props: FieldRendererProps): React.ReactNode;
|
|
@@ -18,8 +18,9 @@ export type TextAreaProps = {
|
|
|
18
18
|
onChange?: (v: string) => void;
|
|
19
19
|
placeholder?: string;
|
|
20
20
|
rows?: number;
|
|
21
|
+
fill?: boolean;
|
|
21
22
|
};
|
|
22
|
-
export declare function TextArea({ value, onChange, placeholder, rows }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function TextArea({ value, onChange, placeholder, rows, fill }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
export type SelectOption = {
|
|
24
25
|
value: string;
|
|
25
26
|
label: ReactNode;
|