@dwidge/json-forms-expo 0.0.18 → 0.0.20
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/Form/FormListScreen.js +2 -2
- package/dist/cjs/Schema/SchemaListScreen.js +2 -2
- package/dist/esm/Form/FormListScreen.js +2 -2
- package/dist/esm/Schema/SchemaListScreen.js +2 -2
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/Form/FormListScreen.tsx +2 -2
- package/src/Schema/SchemaListScreen.tsx +2 -2
|
@@ -16,10 +16,10 @@ const FormListEdit_1 = require("./FormListEdit");
|
|
|
16
16
|
const FormListScreen = ({ createForm = (0, hooks_expo_1.useNavAction2)((0, FormsContext_1.useNavRoutes)().SCHEMA_SELECT_SCREEN, async () => ({})), editForm = (0, hooks_expo_1.useNavAction2)((0, FormsContext_1.useNavRoutes)().FORM_EDIT_SCREEN, async (key) => ({
|
|
17
17
|
FormId: key,
|
|
18
18
|
})), deleteFormList = FormApi_1.FormApi.useDeleteList(), selection = (0, hooks_react_1.useMemoState)([]), }) => ((0, jsx_runtime_1.jsxs)(components_rnw_1.ScreenView, { children: [(0, jsx_runtime_1.jsx)(components_expo_1.StyledHeader, { title: "Manage Forms", actions: [
|
|
19
|
-
(0, jsx_runtime_1.jsx)(components_rnw_1.IconButton, {
|
|
19
|
+
(0, jsx_runtime_1.jsx)(components_rnw_1.IconButton, { name: "remove-circle", onPress: deleteFormList && selection[0].length
|
|
20
20
|
? () => deleteFormList(selection[0].map((id) => ({ id })))
|
|
21
21
|
: undefined }),
|
|
22
|
-
(0, jsx_runtime_1.jsx)(components_rnw_1.IconButton, {
|
|
22
|
+
(0, jsx_runtime_1.jsx)(components_rnw_1.IconButton, { name: "add-circle", onPress: createForm }),
|
|
23
23
|
] }), (0, jsx_runtime_1.jsxs)(components_rnw_1.ScrollView, { gap: true, children: [(0, jsx_runtime_1.jsx)(FormListEdit_1.FormListEdit, { selection: selection, onPress: editForm }), (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { style: { flex: 1 }, onPress: createForm, children: (0, jsx_runtime_1.jsx)(components_rnw_1.CenterView, { row: true, gap: true, children: (0, jsx_runtime_1.jsx)(components_rnw_1.StyledFontAwesome, { name: "plus", size: 30 }) }) })] })] }));
|
|
24
24
|
exports.FormListScreen = FormListScreen;
|
|
25
25
|
//# sourceMappingURL=FormListScreen.js.map
|
|
@@ -13,10 +13,10 @@ const SchemaApi_1 = require("../hooks/SchemaApi");
|
|
|
13
13
|
const SchemaListEdit_1 = require("./SchemaListEdit");
|
|
14
14
|
const useCreateBlankSchema_1 = require("../hooks/useCreateBlankSchema");
|
|
15
15
|
const SchemaListScreen = ({ onCreate = (0, useCreateBlankSchema_1.useCreateBlankSchema)(), onDeleteList = SchemaApi_1.SchemaApi.useDeleteList(), selection = (0, hooks_react_1.useMemoState)([]), }) => ((0, jsx_runtime_1.jsxs)(components_rnw_1.ScreenView, { children: [(0, jsx_runtime_1.jsx)(components_expo_1.StyledHeader, { title: "Schemas", actions: [
|
|
16
|
-
(0, jsx_runtime_1.jsx)(components_rnw_1.IconButton, {
|
|
16
|
+
(0, jsx_runtime_1.jsx)(components_rnw_1.IconButton, { name: "remove-circle", onPress: onDeleteList && selection[0].length
|
|
17
17
|
? () => onDeleteList(selection[0].map((id) => ({ id })))
|
|
18
18
|
: undefined }),
|
|
19
|
-
(0, jsx_runtime_1.jsx)(components_rnw_1.IconButton, {
|
|
19
|
+
(0, jsx_runtime_1.jsx)(components_rnw_1.IconButton, { name: "add-circle", onPress: onCreate }),
|
|
20
20
|
] }), (0, jsx_runtime_1.jsx)(components_rnw_1.ScrollView, { gap: true, pad: true, children: (0, jsx_runtime_1.jsxs)(components_rnw_1.StyledView, { flex: true, column: true, children: [(0, jsx_runtime_1.jsx)(components_rnw_1.StyledView, { children: (0, jsx_runtime_1.jsx)(SchemaListEdit_1.SchemaListEdit, { selection: selection }) }), (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { style: { flex: 1 }, onPress: onCreate, children: (0, jsx_runtime_1.jsx)(components_rnw_1.CenterView, { row: true, gap: true, children: (0, jsx_runtime_1.jsx)(components_rnw_1.StyledFontAwesome, { name: "plus", size: 30 }) }) })] }) })] }));
|
|
21
21
|
exports.SchemaListScreen = SchemaListScreen;
|
|
22
22
|
//# sourceMappingURL=SchemaListScreen.js.map
|
|
@@ -13,9 +13,9 @@ import { FormListEdit } from "./FormListEdit";
|
|
|
13
13
|
export const FormListScreen = ({ createForm = useNavAction2(useNavRoutes().SCHEMA_SELECT_SCREEN, async () => ({})), editForm = useNavAction2(useNavRoutes().FORM_EDIT_SCREEN, async (key) => ({
|
|
14
14
|
FormId: key,
|
|
15
15
|
})), deleteFormList = FormApi.useDeleteList(), selection = useMemoState([]), }) => (_jsxs(ScreenView, { children: [_jsx(StyledHeader, { title: "Manage Forms", actions: [
|
|
16
|
-
_jsx(IconButton, {
|
|
16
|
+
_jsx(IconButton, { name: "remove-circle", onPress: deleteFormList && selection[0].length
|
|
17
17
|
? () => deleteFormList(selection[0].map((id) => ({ id })))
|
|
18
18
|
: undefined }),
|
|
19
|
-
_jsx(IconButton, {
|
|
19
|
+
_jsx(IconButton, { name: "add-circle", onPress: createForm }),
|
|
20
20
|
] }), _jsxs(ScrollView, { gap: true, children: [_jsx(FormListEdit, { selection: selection, onPress: editForm }), _jsx(TouchableOpacity, { style: { flex: 1 }, onPress: createForm, children: _jsx(CenterView, { row: true, gap: true, children: _jsx(StyledFontAwesome, { name: "plus", size: 30 }) }) })] })] }));
|
|
21
21
|
//# sourceMappingURL=FormListScreen.js.map
|
|
@@ -10,9 +10,9 @@ import { SchemaApi } from "../hooks/SchemaApi";
|
|
|
10
10
|
import { SchemaListEdit } from "./SchemaListEdit";
|
|
11
11
|
import { useCreateBlankSchema } from "../hooks/useCreateBlankSchema";
|
|
12
12
|
export const SchemaListScreen = ({ onCreate = useCreateBlankSchema(), onDeleteList = SchemaApi.useDeleteList(), selection = useMemoState([]), }) => (_jsxs(ScreenView, { children: [_jsx(StyledHeader, { title: "Schemas", actions: [
|
|
13
|
-
_jsx(IconButton, {
|
|
13
|
+
_jsx(IconButton, { name: "remove-circle", onPress: onDeleteList && selection[0].length
|
|
14
14
|
? () => onDeleteList(selection[0].map((id) => ({ id })))
|
|
15
15
|
: undefined }),
|
|
16
|
-
_jsx(IconButton, {
|
|
16
|
+
_jsx(IconButton, { name: "add-circle", onPress: onCreate }),
|
|
17
17
|
] }), _jsx(ScrollView, { gap: true, pad: true, children: _jsxs(StyledView, { flex: true, column: true, children: [_jsx(StyledView, { children: _jsx(SchemaListEdit, { selection: selection }) }), _jsx(TouchableOpacity, { style: { flex: 1 }, onPress: onCreate, children: _jsx(CenterView, { row: true, gap: true, children: _jsx(StyledFontAwesome, { name: "plus", size: 30 }) }) })] }) })] }));
|
|
18
18
|
//# sourceMappingURL=SchemaListScreen.js.map
|