@apexcura/core 0.0.17-Beta76 → 0.0.17-Beta78
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/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -112,7 +112,7 @@ type SchemaField = {
|
|
|
112
112
|
visible?: boolean;
|
|
113
113
|
required?: boolean;
|
|
114
114
|
key?: string | number;
|
|
115
|
-
render?: () =>
|
|
115
|
+
render?: (text: string) => React.JSX.Element;
|
|
116
116
|
ellipsis?: boolean;
|
|
117
117
|
}[];
|
|
118
118
|
tbody?: {
|
|
@@ -165,14 +165,14 @@ type SchemaField = {
|
|
|
165
165
|
next_id?: string;
|
|
166
166
|
fields?: SchemaField[];
|
|
167
167
|
};
|
|
168
|
-
type Schema =
|
|
168
|
+
type Schema = {
|
|
169
|
+
className?: string;
|
|
170
|
+
schema: SchemaField[];
|
|
171
|
+
};
|
|
169
172
|
type FormExecutorProps = {
|
|
170
|
-
data:
|
|
171
|
-
className: string;
|
|
172
|
-
schema: Schema;
|
|
173
|
-
};
|
|
173
|
+
data: Schema;
|
|
174
174
|
setData?: (schema: Schema) => void;
|
|
175
|
-
selectedRecord?: (field:
|
|
175
|
+
selectedRecord?: (field: SchemaField) => void;
|
|
176
176
|
};
|
|
177
177
|
type ElementExecutorProps = FormExecutorProps & styling;
|
|
178
178
|
declare const ElementExecutor: (props: ElementExecutorProps) => React.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ type SchemaField = {
|
|
|
112
112
|
visible?: boolean;
|
|
113
113
|
required?: boolean;
|
|
114
114
|
key?: string | number;
|
|
115
|
-
render?: () =>
|
|
115
|
+
render?: (text: string) => React.JSX.Element;
|
|
116
116
|
ellipsis?: boolean;
|
|
117
117
|
}[];
|
|
118
118
|
tbody?: {
|
|
@@ -165,14 +165,14 @@ type SchemaField = {
|
|
|
165
165
|
next_id?: string;
|
|
166
166
|
fields?: SchemaField[];
|
|
167
167
|
};
|
|
168
|
-
type Schema =
|
|
168
|
+
type Schema = {
|
|
169
|
+
className?: string;
|
|
170
|
+
schema: SchemaField[];
|
|
171
|
+
};
|
|
169
172
|
type FormExecutorProps = {
|
|
170
|
-
data:
|
|
171
|
-
className: string;
|
|
172
|
-
schema: Schema;
|
|
173
|
-
};
|
|
173
|
+
data: Schema;
|
|
174
174
|
setData?: (schema: Schema) => void;
|
|
175
|
-
selectedRecord?: (field:
|
|
175
|
+
selectedRecord?: (field: SchemaField) => void;
|
|
176
176
|
};
|
|
177
177
|
type ElementExecutorProps = FormExecutorProps & styling;
|
|
178
178
|
declare const ElementExecutor: (props: ElementExecutorProps) => React.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -115,7 +115,7 @@ var ElementExecutor = (props) => {
|
|
|
115
115
|
};
|
|
116
116
|
const updatedSchema = updateSchema(schema);
|
|
117
117
|
setSchema(updatedSchema);
|
|
118
|
-
props.setData && props.setData(updatedSchema);
|
|
118
|
+
props.setData && props.setData({ ...props.data, schema: updatedSchema });
|
|
119
119
|
};
|
|
120
120
|
(0, import_react.useEffect)(() => {
|
|
121
121
|
if (props?.data?.schema) {
|
package/dist/index.mjs
CHANGED
|
@@ -113,7 +113,7 @@ var ElementExecutor = (props) => {
|
|
|
113
113
|
};
|
|
114
114
|
const updatedSchema = updateSchema(schema);
|
|
115
115
|
setSchema(updatedSchema);
|
|
116
|
-
props.setData && props.setData(updatedSchema);
|
|
116
|
+
props.setData && props.setData({ ...props.data, schema: updatedSchema });
|
|
117
117
|
};
|
|
118
118
|
useEffect(() => {
|
|
119
119
|
if (props?.data?.schema) {
|