@acvl/frontend-components 0.0.7 → 0.0.8
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/cjs/index.js +4 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/v1/datagrids/wrappers/EditGridWrapper.d.ts +2 -8
- package/dist/esm/index.js +5 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/v1/datagrids/wrappers/EditGridWrapper.d.ts +2 -8
- package/dist/index.d.ts +33 -40
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from "react";
|
|
2
|
+
import { JSONParserProps } from "../../forms";
|
|
2
3
|
import { GridColDefPropsOverrides } from "../types";
|
|
3
4
|
import { BaseGridProps } from "../Base";
|
|
4
5
|
import { EditGridColumnsProps } from "../columns";
|
|
@@ -9,14 +10,7 @@ export interface EditGridAPIProps {
|
|
|
9
10
|
options?: {
|
|
10
11
|
[key: string]: unknown[] | undefined;
|
|
11
12
|
};
|
|
12
|
-
parser?:
|
|
13
|
-
[key: string]: {
|
|
14
|
-
ignore?: boolean;
|
|
15
|
-
format?: string;
|
|
16
|
-
extra_validation?: (value: string) => boolean;
|
|
17
|
-
alter_key?: (key: string) => string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
13
|
+
parser?: JSONParserProps;
|
|
20
14
|
dnd?: {
|
|
21
15
|
field: string;
|
|
22
16
|
args?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -141,6 +141,38 @@ interface MyDataGridProps extends DataGridProps {
|
|
|
141
141
|
loadingParams?: any[];
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
interface JSONParserProps {
|
|
145
|
+
[key: string]: {
|
|
146
|
+
ignore?: boolean;
|
|
147
|
+
format?: string;
|
|
148
|
+
extra_validation?: (value: any) => boolean;
|
|
149
|
+
alter_key?: (key: string) => string;
|
|
150
|
+
alter_value?: (value: any, row: any) => string;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
interface JSONFormProps {
|
|
154
|
+
submitData: any;
|
|
155
|
+
data?: any;
|
|
156
|
+
useLabel?: boolean;
|
|
157
|
+
props?: JSONParserProps;
|
|
158
|
+
}
|
|
159
|
+
declare const jsonForm: ({ submitData, data, useLabel, props }: JSONFormProps) => any;
|
|
160
|
+
declare const formDataForm: (object: any) => FormData;
|
|
161
|
+
declare const setErrors: (form: any, error: any) => void;
|
|
162
|
+
|
|
163
|
+
declare const valueLabel: zod.ZodObject<{
|
|
164
|
+
value: coerce.ZodCoercedString<unknown>;
|
|
165
|
+
label: zod.ZodString;
|
|
166
|
+
}, zod_v4_core.$strip>;
|
|
167
|
+
|
|
168
|
+
interface CSVUploadProps {
|
|
169
|
+
postAction?: (response: any) => void;
|
|
170
|
+
open: boolean;
|
|
171
|
+
drawerToggle: () => void;
|
|
172
|
+
data?: CSVMenuOptionProps$1;
|
|
173
|
+
}
|
|
174
|
+
declare const CSVUpload: React__default.FC<CSVUploadProps>;
|
|
175
|
+
|
|
144
176
|
interface EditGridColumnsProps {
|
|
145
177
|
displayEdit?: boolean;
|
|
146
178
|
rowModesModel: GridRowModesModel;
|
|
@@ -165,14 +197,7 @@ interface EditGridAPIProps {
|
|
|
165
197
|
options?: {
|
|
166
198
|
[key: string]: unknown[] | undefined;
|
|
167
199
|
};
|
|
168
|
-
parser?:
|
|
169
|
-
[key: string]: {
|
|
170
|
-
ignore?: boolean;
|
|
171
|
-
format?: string;
|
|
172
|
-
extra_validation?: (value: string) => boolean;
|
|
173
|
-
alter_key?: (key: string) => string;
|
|
174
|
-
};
|
|
175
|
-
};
|
|
200
|
+
parser?: JSONParserProps;
|
|
176
201
|
dnd?: {
|
|
177
202
|
field: string;
|
|
178
203
|
args?: {
|
|
@@ -240,38 +265,6 @@ declare function renderEditCellWithErrorTooltip(params: GridRenderEditCellParams
|
|
|
240
265
|
|
|
241
266
|
declare const MyGridEditSingleSelect: React__default.FC<GridRenderEditCellParams>;
|
|
242
267
|
|
|
243
|
-
interface JSONParserProps {
|
|
244
|
-
[key: string]: {
|
|
245
|
-
ignore?: boolean;
|
|
246
|
-
format?: string;
|
|
247
|
-
extra_validation?: (value: any) => boolean;
|
|
248
|
-
alter_key?: (key: string) => string;
|
|
249
|
-
alter_value?: (value: any, row: any) => string;
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
interface JSONFormProps {
|
|
253
|
-
submitData: any;
|
|
254
|
-
data?: any;
|
|
255
|
-
useLabel?: boolean;
|
|
256
|
-
props?: JSONParserProps;
|
|
257
|
-
}
|
|
258
|
-
declare const jsonForm: ({ submitData, data, useLabel, props }: JSONFormProps) => any;
|
|
259
|
-
declare const formDataForm: (object: any) => FormData;
|
|
260
|
-
declare const setErrors: (form: any, error: any) => void;
|
|
261
|
-
|
|
262
|
-
declare const valueLabel: zod.ZodObject<{
|
|
263
|
-
value: coerce.ZodCoercedString<unknown>;
|
|
264
|
-
label: zod.ZodString;
|
|
265
|
-
}, zod_v4_core.$strip>;
|
|
266
|
-
|
|
267
|
-
interface CSVUploadProps {
|
|
268
|
-
postAction?: (response: any) => void;
|
|
269
|
-
open: boolean;
|
|
270
|
-
drawerToggle: () => void;
|
|
271
|
-
data?: CSVMenuOptionProps$1;
|
|
272
|
-
}
|
|
273
|
-
declare const CSVUpload: React__default.FC<CSVUploadProps>;
|
|
274
|
-
|
|
275
268
|
interface BaseControlledFieldProps {
|
|
276
269
|
name: string;
|
|
277
270
|
label?: string;
|
package/package.json
CHANGED