@tsed/react-formio 3.0.0-rc.5 → 3.0.0-rc.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.
- package/dist/organisms/table/submissions/SubmissionsTable.d.ts +4 -11
- package/dist/organisms/table/submissions/SubmissionsTable.js +1 -4
- package/dist/organisms/table/submissions/SubmissionsTable.js.map +1 -1
- package/package.json +3 -3
- package/src/organisms/table/submissions/SubmissionsTable.tsx +4 -9
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import { FormType,
|
|
1
|
+
import { FormType, SubmissionType } from '../../../interfaces';
|
|
2
|
+
import { JSONRecord } from '../../../interfaces/JSONRecord';
|
|
2
3
|
import { TableProps } from '../../../molecules/table/Table';
|
|
3
|
-
export type SubmissionsTableProps<Data extends {
|
|
4
|
-
[key: string]: JSON;
|
|
5
|
-
} = {
|
|
6
|
-
[key: string]: JSON;
|
|
7
|
-
}> = Omit<TableProps<SubmissionType<Data>>, "columns"> & {
|
|
4
|
+
export type SubmissionsTableProps<Data extends object = JSONRecord> = Omit<TableProps<SubmissionType<Data>>, "columns"> & {
|
|
8
5
|
form?: FormType;
|
|
9
6
|
};
|
|
10
|
-
export declare function SubmissionsTable<Data extends {
|
|
11
|
-
[key: string]: JSON;
|
|
12
|
-
} = {
|
|
13
|
-
[key: string]: JSON;
|
|
14
|
-
}>({ form, ...props }: SubmissionsTableProps<Data>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function SubmissionsTable<Data extends object = JSONRecord>({ form, ...props }: SubmissionsTableProps<Data>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { Table as s } from "../../../molecules/table/Table.js";
|
|
3
3
|
import { mapFormToColumns as t } from "../../../molecules/table/utils/mapFormToColumns.js";
|
|
4
|
-
function e({
|
|
5
|
-
form: o,
|
|
6
|
-
...m
|
|
7
|
-
}) {
|
|
4
|
+
function e({ form: o, ...m }) {
|
|
8
5
|
const r = o && t(o);
|
|
9
6
|
return /* @__PURE__ */ n(s, { ...m, columns: r });
|
|
10
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmissionsTable.js","sources":["../../../../src/organisms/table/submissions/SubmissionsTable.tsx"],"sourcesContent":["import type { FormType,
|
|
1
|
+
{"version":3,"file":"SubmissionsTable.js","sources":["../../../../src/organisms/table/submissions/SubmissionsTable.tsx"],"sourcesContent":["import type { FormType, SubmissionType } from \"../../../interfaces\";\nimport type { JSONRecord } from \"../../../interfaces/JSONRecord\";\nimport { Table, type TableProps } from \"../../../molecules/table/Table\";\nimport { mapFormToColumns } from \"../../../molecules/table/utils/mapFormToColumns.js\";\n\nexport type SubmissionsTableProps<Data extends object = JSONRecord> = Omit<TableProps<SubmissionType<Data>>, \"columns\"> & {\n form?: FormType;\n};\n\nexport function SubmissionsTable<Data extends object = JSONRecord>({ form, ...props }: SubmissionsTableProps<Data>) {\n const columns: any[] | undefined = form && mapFormToColumns(form);\n\n return <Table {...(props as any)} columns={columns!} />;\n}\n"],"names":["SubmissionsTable","form","props","columns","mapFormToColumns","jsx","Table"],"mappings":";;;AASO,SAASA,EAAmD,EAAE,MAAAC,GAAM,GAAGC,KAAsC;AAClH,QAAMC,IAA6BF,KAAQG,EAAiBH,CAAI;AAEhE,SAAO,gBAAAI,EAACC,GAAA,EAAO,GAAIJ,GAAe,SAAAC,EAAA,CAAmB;AACvD;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/react-formio",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.6",
|
|
4
4
|
"description": "Provide a react formio wrapper. Written in TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@tanstack/react-table": ">=8.20.6",
|
|
47
|
-
"@tsed/tailwind-formio": "3.0.0-rc.
|
|
48
|
-
"@tsed/typescript": "3.0.0-rc.
|
|
47
|
+
"@tsed/tailwind-formio": "3.0.0-rc.6",
|
|
48
|
+
"@tsed/typescript": "3.0.0-rc.6",
|
|
49
49
|
"microbundle": "0.13.0",
|
|
50
50
|
"vite": "7.1.5",
|
|
51
51
|
"vitest": "3.2.4"
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import type { FormType,
|
|
1
|
+
import type { FormType, SubmissionType } from "../../../interfaces";
|
|
2
|
+
import type { JSONRecord } from "../../../interfaces/JSONRecord";
|
|
2
3
|
import { Table, type TableProps } from "../../../molecules/table/Table";
|
|
3
4
|
import { mapFormToColumns } from "../../../molecules/table/utils/mapFormToColumns.js";
|
|
4
5
|
|
|
5
|
-
export type SubmissionsTableProps<Data extends
|
|
6
|
-
TableProps<SubmissionType<Data>>,
|
|
7
|
-
"columns"
|
|
8
|
-
> & {
|
|
6
|
+
export type SubmissionsTableProps<Data extends object = JSONRecord> = Omit<TableProps<SubmissionType<Data>>, "columns"> & {
|
|
9
7
|
form?: FormType;
|
|
10
8
|
};
|
|
11
9
|
|
|
12
|
-
export function SubmissionsTable<Data extends
|
|
13
|
-
form,
|
|
14
|
-
...props
|
|
15
|
-
}: SubmissionsTableProps<Data>) {
|
|
10
|
+
export function SubmissionsTable<Data extends object = JSONRecord>({ form, ...props }: SubmissionsTableProps<Data>) {
|
|
16
11
|
const columns: any[] | undefined = form && mapFormToColumns(form);
|
|
17
12
|
|
|
18
13
|
return <Table {...(props as any)} columns={columns!} />;
|