@dwidge/json-forms-expo 0.0.2 → 0.0.3
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/{FileAttachment → Attachment}/AttachmentEdit.js +3 -2
- package/dist/cjs/Attachment/AttachmentEdit.js.map +1 -0
- package/dist/cjs/Attachment/AttachmentListEdit.js +21 -0
- package/dist/cjs/Attachment/AttachmentListEdit.js.map +1 -0
- package/dist/cjs/{FileAttachment → Attachment}/AttachmentListView.js +2 -2
- package/dist/cjs/Attachment/AttachmentListView.js.map +1 -0
- package/dist/cjs/Attachment/AttachmentScreen.js.map +1 -0
- package/dist/cjs/{FileAttachment → Attachment}/AttachmentView.js +3 -2
- package/dist/cjs/Attachment/AttachmentView.js.map +1 -0
- package/dist/cjs/{FileAttachment → Attachment}/index.js +7 -7
- package/dist/cjs/Attachment/index.js.map +1 -0
- package/dist/cjs/{FileAttachment → Attachment}/useFileAttachmentUrl.js +3 -2
- package/dist/cjs/Attachment/useFileAttachmentUrl.js.map +1 -0
- package/dist/cjs/{FileAttachment → Attachment}/useFileUrl.js +2 -1
- package/dist/cjs/Attachment/useFileUrl.js.map +1 -0
- package/dist/cjs/Form/FormEdit.js +22 -3
- package/dist/cjs/Form/FormEdit.js.map +1 -1
- package/dist/cjs/Form/FormEditScreen.js +4 -17
- package/dist/cjs/Form/FormEditScreen.js.map +1 -1
- package/dist/cjs/Form/FormListEdit.js +9 -4
- package/dist/cjs/Form/FormListEdit.js.map +1 -1
- package/dist/cjs/Form/FormListScreen.js +9 -6
- package/dist/cjs/Form/FormListScreen.js.map +1 -1
- package/dist/cjs/Form/FormListView.js +5 -2
- package/dist/cjs/Form/FormListView.js.map +1 -1
- package/dist/cjs/Form/FormView.js +5 -1
- package/dist/cjs/Form/FormView.js.map +1 -1
- package/dist/cjs/Form/index.js +6 -9
- package/dist/cjs/Form/index.js.map +1 -1
- package/dist/cjs/{Form/EditFormAttachmentScreen.js → Schema/EditSchemaScreen.js} +4 -4
- package/dist/cjs/Schema/EditSchemaScreen.js.map +1 -0
- package/dist/cjs/Schema/SchemaEdit.js +12 -0
- package/dist/cjs/Schema/SchemaEdit.js.map +1 -0
- package/dist/cjs/Schema/SchemaEditScreen.js +30 -0
- package/dist/cjs/Schema/SchemaEditScreen.js.map +1 -0
- package/dist/cjs/Schema/SchemaListEdit.js +22 -0
- package/dist/cjs/Schema/SchemaListEdit.js.map +1 -0
- package/dist/cjs/Schema/SchemaListScreen.js +28 -0
- package/dist/cjs/Schema/SchemaListScreen.js.map +1 -0
- package/dist/cjs/Schema/SchemaListView.js +18 -0
- package/dist/cjs/Schema/SchemaListView.js.map +1 -0
- package/dist/cjs/Schema/SchemaSelectScreen.js +21 -0
- package/dist/cjs/Schema/SchemaSelectScreen.js.map +1 -0
- package/dist/cjs/Schema/SchemaSelectView.js +16 -0
- package/dist/cjs/Schema/SchemaSelectView.js.map +1 -0
- package/dist/cjs/Schema/SchemaView.js +12 -0
- package/dist/cjs/Schema/SchemaView.js.map +1 -0
- package/dist/cjs/{FormAttachment → Schema}/index.js +9 -6
- package/dist/cjs/Schema/index.js.map +1 -0
- package/dist/cjs/hooks/{FileAttachmentApi.js → AttachmentApi.js} +4 -4
- package/dist/cjs/hooks/AttachmentApi.js.map +1 -0
- package/dist/cjs/hooks/FileApi.js +1 -1
- package/dist/cjs/hooks/FileApi.js.map +1 -1
- package/dist/cjs/hooks/FormApi.js +3 -4
- package/dist/cjs/hooks/FormApi.js.map +1 -1
- package/dist/cjs/hooks/FormsContext.js +4 -4
- package/dist/cjs/hooks/FormsContext.js.map +1 -1
- package/dist/cjs/hooks/{FormAttachmentApi.js → SchemaApi.js} +6 -5
- package/dist/cjs/hooks/SchemaApi.js.map +1 -0
- package/dist/cjs/hooks/createApi.js +11 -12
- package/dist/cjs/hooks/createApi.js.map +1 -1
- package/dist/cjs/hooks/index.js +11 -10
- package/dist/cjs/hooks/index.js.map +1 -1
- package/dist/cjs/hooks/useCreateBlankAttachment.js +2 -2
- package/dist/cjs/hooks/useCreateBlankAttachment.js.map +1 -1
- package/dist/cjs/hooks/useCreateBlankForm.js +5 -3
- package/dist/cjs/hooks/useCreateBlankForm.js.map +1 -1
- package/dist/cjs/hooks/useCreateBlankSchema.js +12 -0
- package/dist/cjs/hooks/useCreateBlankSchema.js.map +1 -0
- package/dist/cjs/hooks/useIdFilter.js +6 -0
- package/dist/cjs/hooks/useIdFilter.js.map +1 -0
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/{FileAttachment.js → File1.js} +1 -1
- package/dist/cjs/types/File1.js.map +1 -0
- package/dist/cjs/types/{FormAttachment.js → Schema1.js} +1 -1
- package/dist/cjs/types/Schema1.js.map +1 -0
- package/dist/cjs/types/index.js +4 -4
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/esm/{FileAttachment → Attachment}/AttachmentEdit.js +3 -2
- package/dist/esm/Attachment/AttachmentEdit.js.map +1 -0
- package/dist/esm/Attachment/AttachmentListEdit.js +14 -0
- package/dist/esm/Attachment/AttachmentListEdit.js.map +1 -0
- package/dist/esm/{FileAttachment → Attachment}/AttachmentListView.js +2 -2
- package/dist/esm/Attachment/AttachmentListView.js.map +1 -0
- package/dist/esm/Attachment/AttachmentScreen.js.map +1 -0
- package/dist/esm/{FileAttachment → Attachment}/AttachmentView.js +3 -2
- package/dist/esm/Attachment/AttachmentView.js.map +1 -0
- package/dist/esm/Attachment/index.js +8 -0
- package/dist/esm/Attachment/index.js.map +1 -0
- package/dist/esm/{FileAttachment → Attachment}/useFileAttachmentUrl.js +3 -2
- package/dist/esm/Attachment/useFileAttachmentUrl.js.map +1 -0
- package/dist/esm/{FileAttachment → Attachment}/useFileUrl.js +2 -1
- package/dist/esm/Attachment/useFileUrl.js.map +1 -0
- package/dist/esm/Form/FormEdit.js +22 -3
- package/dist/esm/Form/FormEdit.js.map +1 -1
- package/dist/esm/Form/FormEditScreen.js +5 -18
- package/dist/esm/Form/FormEditScreen.js.map +1 -1
- package/dist/esm/Form/FormListEdit.js +10 -5
- package/dist/esm/Form/FormListEdit.js.map +1 -1
- package/dist/esm/Form/FormListScreen.js +10 -7
- package/dist/esm/Form/FormListScreen.js.map +1 -1
- package/dist/esm/Form/FormListView.js +5 -2
- package/dist/esm/Form/FormListView.js.map +1 -1
- package/dist/esm/Form/FormView.js +7 -3
- package/dist/esm/Form/FormView.js.map +1 -1
- package/dist/esm/Form/index.js +6 -9
- package/dist/esm/Form/index.js.map +1 -1
- package/dist/esm/{Form/EditFormAttachmentScreen.js → Schema/EditSchemaScreen.js} +2 -2
- package/dist/esm/Schema/EditSchemaScreen.js.map +1 -0
- package/dist/esm/Schema/SchemaEdit.js +8 -0
- package/dist/esm/Schema/SchemaEdit.js.map +1 -0
- package/dist/esm/Schema/SchemaEditScreen.js +26 -0
- package/dist/esm/Schema/SchemaEditScreen.js.map +1 -0
- package/dist/esm/Schema/SchemaListEdit.js +15 -0
- package/dist/esm/Schema/SchemaListEdit.js.map +1 -0
- package/dist/esm/Schema/SchemaListScreen.js +24 -0
- package/dist/esm/Schema/SchemaListScreen.js.map +1 -0
- package/dist/esm/Schema/SchemaListView.js +11 -0
- package/dist/esm/Schema/SchemaListView.js.map +1 -0
- package/dist/esm/Schema/SchemaSelectScreen.js +17 -0
- package/dist/esm/Schema/SchemaSelectScreen.js.map +1 -0
- package/dist/esm/Schema/SchemaSelectView.js +12 -0
- package/dist/esm/Schema/SchemaSelectView.js.map +1 -0
- package/dist/esm/Schema/SchemaView.js +8 -0
- package/dist/esm/Schema/SchemaView.js.map +1 -0
- package/dist/esm/Schema/index.js +10 -0
- package/dist/esm/Schema/index.js.map +1 -0
- package/dist/esm/hooks/{FileAttachmentApi.js → AttachmentApi.js} +3 -3
- package/dist/esm/hooks/AttachmentApi.js.map +1 -0
- package/dist/esm/hooks/FileApi.js +1 -1
- package/dist/esm/hooks/FileApi.js.map +1 -1
- package/dist/esm/hooks/FormApi.js +3 -4
- package/dist/esm/hooks/FormApi.js.map +1 -1
- package/dist/esm/hooks/FormsContext.js +4 -4
- package/dist/esm/hooks/FormsContext.js.map +1 -1
- package/dist/esm/hooks/SchemaApi.js +10 -0
- package/dist/esm/hooks/SchemaApi.js.map +1 -0
- package/dist/esm/hooks/createApi.js +11 -12
- package/dist/esm/hooks/createApi.js.map +1 -1
- package/dist/esm/hooks/index.js +11 -10
- package/dist/esm/hooks/index.js.map +1 -1
- package/dist/esm/hooks/useCreateBlankAttachment.js +2 -2
- package/dist/esm/hooks/useCreateBlankAttachment.js.map +1 -1
- package/dist/esm/hooks/useCreateBlankForm.js +5 -3
- package/dist/esm/hooks/useCreateBlankForm.js.map +1 -1
- package/dist/esm/hooks/useCreateBlankSchema.js +8 -0
- package/dist/esm/hooks/useCreateBlankSchema.js.map +1 -0
- package/dist/esm/hooks/useIdFilter.js +2 -0
- package/dist/esm/hooks/useIdFilter.js.map +1 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/File1.js +2 -0
- package/dist/esm/types/File1.js.map +1 -0
- package/dist/esm/types/Schema1.js +2 -0
- package/dist/esm/types/Schema1.js.map +1 -0
- package/dist/esm/types/index.js +4 -4
- package/dist/esm/types/index.js.map +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/Attachment/AttachmentEdit.d.ts +6 -0
- package/dist/types/Attachment/AttachmentEdit.d.ts.map +1 -0
- package/dist/types/{FileAttachment → Attachment}/AttachmentListEdit.d.ts +3 -3
- package/dist/types/Attachment/AttachmentListEdit.d.ts.map +1 -0
- package/dist/types/{FileAttachment → Attachment}/AttachmentListView.d.ts +2 -2
- package/dist/types/Attachment/AttachmentListView.d.ts.map +1 -0
- package/dist/types/{FileAttachment → Attachment}/AttachmentScreen.d.ts +1 -1
- package/dist/types/Attachment/AttachmentScreen.d.ts.map +1 -0
- package/dist/types/Attachment/AttachmentView.d.ts +6 -0
- package/dist/types/Attachment/AttachmentView.d.ts.map +1 -0
- package/dist/types/Attachment/index.d.ts +8 -0
- package/dist/types/Attachment/index.d.ts.map +1 -0
- package/dist/types/Attachment/useFileAttachmentUrl.d.ts.map +1 -0
- package/dist/types/Attachment/useFileUrl.d.ts.map +1 -0
- package/dist/types/Form/FormEdit.d.ts +6 -2
- package/dist/types/Form/FormEdit.d.ts.map +1 -1
- package/dist/types/Form/FormEditScreen.d.ts +3 -2
- package/dist/types/Form/FormEditScreen.d.ts.map +1 -1
- package/dist/types/Form/FormListEdit.d.ts +7 -2
- package/dist/types/Form/FormListEdit.d.ts.map +1 -1
- package/dist/types/Form/FormListScreen.d.ts +4 -5
- package/dist/types/Form/FormListScreen.d.ts.map +1 -1
- package/dist/types/Form/FormListView.d.ts +3 -3
- package/dist/types/Form/FormListView.d.ts.map +1 -1
- package/dist/types/Form/FormView.d.ts +4 -3
- package/dist/types/Form/FormView.d.ts.map +1 -1
- package/dist/types/Form/index.d.ts +6 -9
- package/dist/types/Form/index.d.ts.map +1 -1
- package/dist/types/{Form/EditFormAttachmentScreen.d.ts → Schema/EditSchemaScreen.d.ts} +2 -2
- package/dist/types/Schema/EditSchemaScreen.d.ts.map +1 -0
- package/dist/types/Schema/SchemaEdit.d.ts +4 -0
- package/dist/types/Schema/SchemaEdit.d.ts.map +1 -0
- package/dist/types/Schema/SchemaEditScreen.d.ts +4 -0
- package/dist/types/Schema/SchemaEditScreen.d.ts.map +1 -0
- package/dist/types/Schema/SchemaListEdit.d.ts +6 -0
- package/dist/types/Schema/SchemaListEdit.d.ts.map +1 -0
- package/dist/types/Schema/SchemaListScreen.d.ts +8 -0
- package/dist/types/Schema/SchemaListScreen.d.ts.map +1 -0
- package/dist/types/Schema/SchemaListView.d.ts +5 -0
- package/dist/types/Schema/SchemaListView.d.ts.map +1 -0
- package/dist/types/Schema/SchemaSelectScreen.d.ts +6 -0
- package/dist/types/Schema/SchemaSelectScreen.d.ts.map +1 -0
- package/dist/types/Schema/SchemaSelectView.d.ts +8 -0
- package/dist/types/Schema/SchemaSelectView.d.ts.map +1 -0
- package/dist/types/Schema/SchemaView.d.ts +5 -0
- package/dist/types/Schema/SchemaView.d.ts.map +1 -0
- package/dist/types/Schema/index.d.ts +10 -0
- package/dist/types/Schema/index.d.ts.map +1 -0
- package/dist/types/hooks/AttachmentApi.d.ts +23 -0
- package/dist/types/hooks/AttachmentApi.d.ts.map +1 -0
- package/dist/types/hooks/FileApi.d.ts +7 -19
- package/dist/types/hooks/FileApi.d.ts.map +1 -1
- package/dist/types/hooks/FormApi.d.ts +7 -19
- package/dist/types/hooks/FormApi.d.ts.map +1 -1
- package/dist/types/hooks/FormsContext.d.ts +7 -7
- package/dist/types/hooks/SchemaApi.d.ts +23 -0
- package/dist/types/hooks/SchemaApi.d.ts.map +1 -0
- package/dist/types/hooks/createApi.d.ts +8 -20
- package/dist/types/hooks/createApi.d.ts.map +1 -1
- package/dist/types/hooks/index.d.ts +11 -10
- package/dist/types/hooks/index.d.ts.map +1 -1
- package/dist/types/hooks/useCreateBlankAttachment.d.ts +3 -3
- package/dist/types/hooks/useCreateBlankAttachment.d.ts.map +1 -1
- package/dist/types/hooks/useCreateBlankForm.d.ts +10 -3
- package/dist/types/hooks/useCreateBlankForm.d.ts.map +1 -1
- package/dist/types/hooks/useCreateBlankSchema.d.ts +6 -0
- package/dist/types/hooks/useCreateBlankSchema.d.ts.map +1 -0
- package/dist/types/hooks/useIdFilter.d.ts +4 -0
- package/dist/types/hooks/useIdFilter.d.ts.map +1 -0
- package/dist/types/hooks/useParams.d.ts +1 -1
- package/dist/types/hooks/useParams.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/{FileAttachment.d.ts → File1.d.ts} +3 -3
- package/dist/types/types/File1.d.ts.map +1 -0
- package/dist/types/types/Form1.d.ts +2 -3
- package/dist/types/types/Form1.d.ts.map +1 -1
- package/dist/types/types/Schema1.d.ts +14 -0
- package/dist/types/types/Schema1.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +4 -4
- package/dist/types/types/index.d.ts.map +1 -1
- package/package.json +14 -14
- package/src/{FileAttachment → Attachment}/AttachmentEdit.tsx +4 -3
- package/src/{FileAttachment → Attachment}/AttachmentListEdit.tsx +3 -3
- package/src/{FileAttachment → Attachment}/AttachmentListView.tsx +2 -2
- package/src/{FileAttachment → Attachment}/AttachmentView.tsx +4 -3
- package/src/Attachment/index.ts +7 -0
- package/src/{FileAttachment → Attachment}/useFileAttachmentUrl.ts +4 -3
- package/src/{FileAttachment → Attachment}/useFileUrl.ts +2 -1
- package/src/Form/FormEdit.tsx +60 -7
- package/src/Form/FormEditScreen.tsx +10 -42
- package/src/Form/FormListEdit.tsx +22 -14
- package/src/Form/FormListScreen.tsx +24 -19
- package/src/Form/FormListView.tsx +13 -6
- package/src/Form/FormView.tsx +26 -11
- package/src/Form/index.ts +6 -9
- package/src/{Form/EditFormAttachmentScreen.tsx → Schema/EditSchemaScreen.tsx} +4 -4
- package/src/Schema/SchemaEdit.tsx +15 -0
- package/src/Schema/SchemaEditScreen.tsx +57 -0
- package/src/{FormAttachment/FormAttachmentListView.tsx → Schema/SchemaListEdit.tsx} +13 -11
- package/src/Schema/SchemaListScreen.tsx +54 -0
- package/src/Schema/SchemaListView.tsx +23 -0
- package/src/{Form/FormSelectScreen.tsx → Schema/SchemaSelectScreen.tsx} +12 -17
- package/src/{Form/FormSelectView.tsx → Schema/SchemaSelectView.tsx} +8 -8
- package/src/Schema/SchemaView.tsx +11 -0
- package/src/Schema/index.ts +9 -0
- package/src/hooks/{FileAttachmentApi.ts → AttachmentApi.ts} +3 -3
- package/src/hooks/FileApi.ts +1 -1
- package/src/hooks/FormApi.ts +3 -4
- package/src/hooks/FormsContext.ts +4 -4
- package/src/hooks/SchemaApi.ts +11 -0
- package/src/hooks/createApi.ts +22 -19
- package/src/hooks/index.ts +11 -10
- package/src/hooks/useCreateBlankAttachment.ts +2 -2
- package/src/hooks/useCreateBlankForm.ts +11 -3
- package/src/hooks/useCreateBlankSchema.ts +12 -0
- package/src/hooks/useIdFilter.ts +2 -0
- package/src/hooks/useParams.ts +1 -1
- package/src/index.ts +5 -5
- package/src/types/{FileAttachment.ts → File1.ts} +2 -2
- package/src/types/Form1.ts +2 -3
- package/src/types/Schema1.ts +17 -0
- package/src/types/index.ts +4 -4
- package/dist/cjs/FileAttachment/AttachmentEdit.js.map +0 -1
- package/dist/cjs/FileAttachment/AttachmentListEdit.js +0 -21
- package/dist/cjs/FileAttachment/AttachmentListEdit.js.map +0 -1
- package/dist/cjs/FileAttachment/AttachmentListView.js.map +0 -1
- package/dist/cjs/FileAttachment/AttachmentScreen.js.map +0 -1
- package/dist/cjs/FileAttachment/AttachmentView.js.map +0 -1
- package/dist/cjs/FileAttachment/index.js.map +0 -1
- package/dist/cjs/FileAttachment/useFileAttachmentUrl.js.map +0 -1
- package/dist/cjs/FileAttachment/useFileUrl.js.map +0 -1
- package/dist/cjs/Form/EditFormAttachmentScreen.js.map +0 -1
- package/dist/cjs/Form/FormSelectScreen.js +0 -21
- package/dist/cjs/Form/FormSelectScreen.js.map +0 -1
- package/dist/cjs/Form/FormSelectView.js +0 -16
- package/dist/cjs/Form/FormSelectView.js.map +0 -1
- package/dist/cjs/FormAttachment/FormAttachmentEdit.js +0 -30
- package/dist/cjs/FormAttachment/FormAttachmentEdit.js.map +0 -1
- package/dist/cjs/FormAttachment/FormAttachmentEditScreen.js +0 -15
- package/dist/cjs/FormAttachment/FormAttachmentEditScreen.js.map +0 -1
- package/dist/cjs/FormAttachment/FormAttachmentListEdit.js +0 -27
- package/dist/cjs/FormAttachment/FormAttachmentListEdit.js.map +0 -1
- package/dist/cjs/FormAttachment/FormAttachmentListScreen.js +0 -31
- package/dist/cjs/FormAttachment/FormAttachmentListScreen.js.map +0 -1
- package/dist/cjs/FormAttachment/FormAttachmentListView.js +0 -21
- package/dist/cjs/FormAttachment/FormAttachmentListView.js.map +0 -1
- package/dist/cjs/FormAttachment/FormAttachmentView.js +0 -15
- package/dist/cjs/FormAttachment/FormAttachmentView.js.map +0 -1
- package/dist/cjs/FormAttachment/index.js.map +0 -1
- package/dist/cjs/hooks/FileAttachmentApi.js.map +0 -1
- package/dist/cjs/hooks/FormAttachmentApi.js.map +0 -1
- package/dist/cjs/hooks/useCreateBlankFormAttachment.js +0 -14
- package/dist/cjs/hooks/useCreateBlankFormAttachment.js.map +0 -1
- package/dist/cjs/types/FileAttachment.js.map +0 -1
- package/dist/cjs/types/FormAttachment.js.map +0 -1
- package/dist/esm/FileAttachment/AttachmentEdit.js.map +0 -1
- package/dist/esm/FileAttachment/AttachmentListEdit.js +0 -14
- package/dist/esm/FileAttachment/AttachmentListEdit.js.map +0 -1
- package/dist/esm/FileAttachment/AttachmentListView.js.map +0 -1
- package/dist/esm/FileAttachment/AttachmentScreen.js.map +0 -1
- package/dist/esm/FileAttachment/AttachmentView.js.map +0 -1
- package/dist/esm/FileAttachment/index.js +0 -8
- package/dist/esm/FileAttachment/index.js.map +0 -1
- package/dist/esm/FileAttachment/useFileAttachmentUrl.js.map +0 -1
- package/dist/esm/FileAttachment/useFileUrl.js.map +0 -1
- package/dist/esm/Form/EditFormAttachmentScreen.js.map +0 -1
- package/dist/esm/Form/FormSelectScreen.js +0 -17
- package/dist/esm/Form/FormSelectScreen.js.map +0 -1
- package/dist/esm/Form/FormSelectView.js +0 -12
- package/dist/esm/Form/FormSelectView.js.map +0 -1
- package/dist/esm/FormAttachment/FormAttachmentEdit.js +0 -26
- package/dist/esm/FormAttachment/FormAttachmentEdit.js.map +0 -1
- package/dist/esm/FormAttachment/FormAttachmentEditScreen.js +0 -11
- package/dist/esm/FormAttachment/FormAttachmentEditScreen.js.map +0 -1
- package/dist/esm/FormAttachment/FormAttachmentListEdit.js +0 -20
- package/dist/esm/FormAttachment/FormAttachmentListEdit.js.map +0 -1
- package/dist/esm/FormAttachment/FormAttachmentListScreen.js +0 -27
- package/dist/esm/FormAttachment/FormAttachmentListScreen.js.map +0 -1
- package/dist/esm/FormAttachment/FormAttachmentListView.js +0 -14
- package/dist/esm/FormAttachment/FormAttachmentListView.js.map +0 -1
- package/dist/esm/FormAttachment/FormAttachmentView.js +0 -11
- package/dist/esm/FormAttachment/FormAttachmentView.js.map +0 -1
- package/dist/esm/FormAttachment/index.js +0 -7
- package/dist/esm/FormAttachment/index.js.map +0 -1
- package/dist/esm/hooks/FileAttachmentApi.js.map +0 -1
- package/dist/esm/hooks/FormAttachmentApi.js +0 -9
- package/dist/esm/hooks/FormAttachmentApi.js.map +0 -1
- package/dist/esm/hooks/useCreateBlankFormAttachment.js +0 -10
- package/dist/esm/hooks/useCreateBlankFormAttachment.js.map +0 -1
- package/dist/esm/types/FileAttachment.js +0 -2
- package/dist/esm/types/FileAttachment.js.map +0 -1
- package/dist/esm/types/FormAttachment.js +0 -2
- package/dist/esm/types/FormAttachment.js.map +0 -1
- package/dist/types/FileAttachment/AttachmentEdit.d.ts +0 -6
- package/dist/types/FileAttachment/AttachmentEdit.d.ts.map +0 -1
- package/dist/types/FileAttachment/AttachmentListEdit.d.ts.map +0 -1
- package/dist/types/FileAttachment/AttachmentListView.d.ts.map +0 -1
- package/dist/types/FileAttachment/AttachmentScreen.d.ts.map +0 -1
- package/dist/types/FileAttachment/AttachmentView.d.ts +0 -6
- package/dist/types/FileAttachment/AttachmentView.d.ts.map +0 -1
- package/dist/types/FileAttachment/index.d.ts +0 -8
- package/dist/types/FileAttachment/index.d.ts.map +0 -1
- package/dist/types/FileAttachment/useFileAttachmentUrl.d.ts.map +0 -1
- package/dist/types/FileAttachment/useFileUrl.d.ts.map +0 -1
- package/dist/types/Form/EditFormAttachmentScreen.d.ts.map +0 -1
- package/dist/types/Form/FormSelectScreen.d.ts +0 -6
- package/dist/types/Form/FormSelectScreen.d.ts.map +0 -1
- package/dist/types/Form/FormSelectView.d.ts +0 -8
- package/dist/types/Form/FormSelectView.d.ts.map +0 -1
- package/dist/types/FormAttachment/FormAttachmentEdit.d.ts +0 -9
- package/dist/types/FormAttachment/FormAttachmentEdit.d.ts.map +0 -1
- package/dist/types/FormAttachment/FormAttachmentEditScreen.d.ts +0 -5
- package/dist/types/FormAttachment/FormAttachmentEditScreen.d.ts.map +0 -1
- package/dist/types/FormAttachment/FormAttachmentListEdit.d.ts +0 -11
- package/dist/types/FormAttachment/FormAttachmentListEdit.d.ts.map +0 -1
- package/dist/types/FormAttachment/FormAttachmentListScreen.d.ts +0 -7
- package/dist/types/FormAttachment/FormAttachmentListScreen.d.ts.map +0 -1
- package/dist/types/FormAttachment/FormAttachmentListView.d.ts +0 -5
- package/dist/types/FormAttachment/FormAttachmentListView.d.ts.map +0 -1
- package/dist/types/FormAttachment/FormAttachmentView.d.ts +0 -6
- package/dist/types/FormAttachment/FormAttachmentView.d.ts.map +0 -1
- package/dist/types/FormAttachment/index.d.ts +0 -7
- package/dist/types/FormAttachment/index.d.ts.map +0 -1
- package/dist/types/hooks/FileAttachmentApi.d.ts +0 -35
- package/dist/types/hooks/FileAttachmentApi.d.ts.map +0 -1
- package/dist/types/hooks/FormAttachmentApi.d.ts +0 -35
- package/dist/types/hooks/FormAttachmentApi.d.ts.map +0 -1
- package/dist/types/hooks/useCreateBlankFormAttachment.d.ts +0 -13
- package/dist/types/hooks/useCreateBlankFormAttachment.d.ts.map +0 -1
- package/dist/types/types/FileAttachment.d.ts.map +0 -1
- package/dist/types/types/FormAttachment.d.ts +0 -13
- package/dist/types/types/FormAttachment.d.ts.map +0 -1
- package/src/FileAttachment/index.ts +0 -7
- package/src/FormAttachment/FormAttachmentEdit.tsx +0 -72
- package/src/FormAttachment/FormAttachmentEditScreen.tsx +0 -21
- package/src/FormAttachment/FormAttachmentListEdit.tsx +0 -40
- package/src/FormAttachment/FormAttachmentListScreen.tsx +0 -62
- package/src/FormAttachment/FormAttachmentView.tsx +0 -25
- package/src/FormAttachment/index.ts +0 -6
- package/src/hooks/FormAttachmentApi.ts +0 -10
- package/src/hooks/useCreateBlankFormAttachment.ts +0 -20
- package/src/types/FormAttachment.ts +0 -19
- /package/dist/cjs/{FileAttachment → Attachment}/AttachmentScreen.js +0 -0
- /package/dist/esm/{FileAttachment → Attachment}/AttachmentScreen.js +0 -0
- /package/dist/types/{FileAttachment → Attachment}/useFileAttachmentUrl.d.ts +0 -0
- /package/dist/types/{FileAttachment → Attachment}/useFileUrl.d.ts +0 -0
- /package/src/{FileAttachment → Attachment}/AttachmentScreen.tsx +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export * from "./FileApi";
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./FormsContext";
|
|
6
|
-
export * from "./createApi";
|
|
7
|
-
export * from "./useCreateBlankAttachment";
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./useParams";
|
|
1
|
+
export * from "./FileApi.js";
|
|
2
|
+
export * from "./AttachmentApi.js";
|
|
3
|
+
export * from "./SchemaApi.js";
|
|
4
|
+
export * from "./FormApi.js";
|
|
5
|
+
export * from "./FormsContext.js";
|
|
6
|
+
export * from "./createApi.js";
|
|
7
|
+
export * from "./useCreateBlankAttachment.js";
|
|
8
|
+
export * from "./useCreateBlankSchema.js";
|
|
9
|
+
export * from "./useCreateBlankForm.js";
|
|
10
|
+
export * from "./useParams.js";
|
|
11
|
+
export * from "./useIdFilter.js";
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const useCreateBlankAttachment: ({ createAttachmentList, createFileList, AttachIds, }?: {
|
|
2
|
-
createAttachmentList?: ((list: Omit<Partial<import("..").
|
|
2
|
+
createAttachmentList?: ((list: Omit<Partial<import("..").File1>, "createdAt" | "createdBy">[]) => Promise<(Partial<import("..").File1> | null)[]>) | undefined;
|
|
3
3
|
createFileList?: ((list: Omit<Partial<import("..").File2>, "createdAt" | "createdBy">[]) => Promise<(Partial<import("..").File2> | null)[]>) | undefined;
|
|
4
4
|
AttachIds?: (import("./useParams").Params & {
|
|
5
5
|
AttachmentId?: string | null | undefined;
|
|
6
|
+
SchemaId?: string | null | undefined;
|
|
6
7
|
FormId?: string | null | undefined;
|
|
7
|
-
FormAttachmentId?: string | null | undefined;
|
|
8
8
|
}) | undefined;
|
|
9
|
-
}) => (() => Promise<Partial<import("..").
|
|
9
|
+
}) => (() => Promise<Partial<import("..").File1> | null>) | undefined;
|
|
10
10
|
//# sourceMappingURL=useCreateBlankAttachment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateBlankAttachment.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCreateBlankAttachment.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useCreateBlankAttachment.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCreateBlankAttachment.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;;;;;;qEAkBtB,CAAC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { Schema1Key } from "../types/Schema1";
|
|
2
|
+
export declare const useCreateBlankForm: ({ createSchemaList, createFormList, AttachmentIds, }?: {
|
|
3
|
+
createSchemaList?: ((list: Omit<Partial<import("../types/Schema1").Schema1>, "createdAt" | "createdBy">[]) => Promise<(Partial<import("../types/Schema1").Schema1> | null)[]>) | undefined;
|
|
2
4
|
createFormList?: ((list: Omit<Partial<import("..").Form1>, "createdAt" | "createdBy">[]) => Promise<(Partial<import("..").Form1> | null)[]>) | undefined;
|
|
3
|
-
|
|
5
|
+
AttachmentIds?: (import("./useParams").Params & {
|
|
6
|
+
AttachmentId?: string | null | undefined;
|
|
7
|
+
SchemaId?: string | null | undefined;
|
|
8
|
+
FormId?: string | null | undefined;
|
|
9
|
+
}) | undefined;
|
|
10
|
+
}) => ((forms: Schema1Key[]) => Promise<{
|
|
4
11
|
FormId: string | undefined;
|
|
5
|
-
}>) | (() => undefined);
|
|
12
|
+
}>) | (() => Promise<undefined>);
|
|
6
13
|
//# sourceMappingURL=useCreateBlankForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateBlankForm.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCreateBlankForm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCreateBlankForm.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCreateBlankForm.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAK9C,eAAO,MAAM,kBAAkB;;;;;;;;eAMX,UAAU,EAAE;;gCAIL,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const useCreateBlankSchema: ({ createList, }?: {
|
|
2
|
+
createList?: ((list: Omit<Partial<import("..").Schema1>, "createdAt" | "createdBy">[]) => Promise<(Partial<import("..").Schema1> | null)[]>) | undefined;
|
|
3
|
+
}) => (() => Promise<{
|
|
4
|
+
SchemaId: string | undefined;
|
|
5
|
+
}>) | undefined;
|
|
6
|
+
//# sourceMappingURL=useCreateBlankSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateBlankSchema.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCreateBlankSchema.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB;;;;eAKlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIdFilter.d.ts","sourceRoot":"","sources":["../../../src/hooks/useIdFilter.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,OAAO,CAAC,GAAG,IAAI;;aAChC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type Params = Record<string, string | number | null | undefined>;
|
|
2
2
|
export declare const useParams: () => Params & {
|
|
3
3
|
AttachmentId?: string | null | undefined;
|
|
4
|
+
SchemaId?: string | null | undefined;
|
|
4
5
|
FormId?: string | null | undefined;
|
|
5
|
-
FormAttachmentId?: string | null | undefined;
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=useParams.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useParams.d.ts","sourceRoot":"","sources":["../../../src/hooks/useParams.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AACxE,eAAO,MAAM,SAAS,QAAO,MAAM,GAAG;IACpC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,
|
|
1
|
+
{"version":3,"file":"useParams.d.ts","sourceRoot":"","sources":["../../../src/hooks/useParams.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AACxE,eAAO,MAAM,SAAS,QAAO,MAAM,GAAG;IACpC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACI,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./hooks";
|
|
5
|
-
export * from "./types";
|
|
1
|
+
export * from "./Attachment/index.js";
|
|
2
|
+
export * from "./Schema/index.js";
|
|
3
|
+
export * from "./Form/index.js";
|
|
4
|
+
export * from "./hooks/index.js";
|
|
5
|
+
export * from "./types/index.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type File1 = {
|
|
2
2
|
id: string;
|
|
3
3
|
created: boolean;
|
|
4
4
|
createdAt: number;
|
|
5
5
|
createdBy: number | null;
|
|
6
6
|
FileId: string | null;
|
|
7
|
+
SchemaId: string | null;
|
|
7
8
|
FormId: string | null;
|
|
8
|
-
FormAttachmentId: string | null;
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=
|
|
10
|
+
//# sourceMappingURL=File1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"File1.d.ts","sourceRoot":"","sources":["../../../src/types/File1.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC"}
|
|
@@ -3,9 +3,8 @@ export type Form1 = {
|
|
|
3
3
|
created: boolean;
|
|
4
4
|
createdAt: number;
|
|
5
5
|
createdBy: number | null;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
schema: string | null;
|
|
6
|
+
SchemaId: string | null;
|
|
7
|
+
data: string | null;
|
|
9
8
|
};
|
|
10
9
|
export type Form1Get = Partial<Form1>;
|
|
11
10
|
export type Form1Set = Omit<Form1Get, "createdAt" | "createdBy">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form1.d.ts","sourceRoot":"","sources":["../../../src/types/Form1.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,
|
|
1
|
+
{"version":3,"file":"Form1.d.ts","sourceRoot":"","sources":["../../../src/types/Form1.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;AAEtC,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,WAAW,GAAG,WAAW,CAAC,CAAC;AAEjE,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AAE5C,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type Schema1 = {
|
|
2
|
+
id: string;
|
|
3
|
+
created: boolean;
|
|
4
|
+
createdAt: number;
|
|
5
|
+
createdBy: number | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
type: string | null;
|
|
8
|
+
schema: string | null;
|
|
9
|
+
};
|
|
10
|
+
export type Schema1Get = Partial<Schema1>;
|
|
11
|
+
export type Schema1Set = Omit<Schema1Get, "createdAt" | "createdBy">;
|
|
12
|
+
export type Schema1Key = Pick<Schema1Get, "id">;
|
|
13
|
+
export type Schema1Filter = Schema1Get;
|
|
14
|
+
//# sourceMappingURL=Schema1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema1.d.ts","sourceRoot":"","sources":["../../../src/types/Schema1.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAE1C,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,WAAW,CAAC,CAAC;AAErE,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./File2";
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
1
|
+
export * from "./File2.js";
|
|
2
|
+
export * from "./File1.js";
|
|
3
|
+
export * from "./Schema1.js";
|
|
4
|
+
export * from "./Form1.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dwidge/json-forms-expo",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Editor for Json Forms.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,21 +22,21 @@
|
|
|
22
22
|
],
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@dwidge/class-name-rnw": "^0.0.3",
|
|
25
|
-
"@dwidge/fallback-rnw": "^0.0.
|
|
26
|
-
"@dwidge/json-forms-paper": "^0.0.
|
|
27
|
-
"@dwidge/trace-js": "^0.0.
|
|
25
|
+
"@dwidge/fallback-rnw": "^0.0.3",
|
|
26
|
+
"@dwidge/json-forms-paper": "^0.0.7",
|
|
27
|
+
"@dwidge/trace-js": "^0.0.9",
|
|
28
28
|
"@dwidge/axios-interceptor": "^0.0.2",
|
|
29
|
-
"@dwidge/components-expo": "^0.0.
|
|
30
|
-
"@dwidge/components-rnw": "^0.0.
|
|
31
|
-
"@dwidge/crud-api-react": "^0.0.
|
|
32
|
-
"@dwidge/hooks-expo": "^0.0.
|
|
33
|
-
"@dwidge/hooks-react": "^0.0.
|
|
34
|
-
"@dwidge/json-forms-designer": "^0.0.
|
|
35
|
-
"@dwidge/json-schema-form-rnw": "^0.0.
|
|
36
|
-
"@dwidge/query-axios-zod": "^0.0.
|
|
29
|
+
"@dwidge/components-expo": "^0.0.12",
|
|
30
|
+
"@dwidge/components-rnw": "^0.0.8",
|
|
31
|
+
"@dwidge/crud-api-react": "^0.0.11",
|
|
32
|
+
"@dwidge/hooks-expo": "^0.0.7",
|
|
33
|
+
"@dwidge/hooks-react": "^0.0.5",
|
|
34
|
+
"@dwidge/json-forms-designer": "^0.0.6",
|
|
35
|
+
"@dwidge/json-schema-form-rnw": "^0.0.7",
|
|
36
|
+
"@dwidge/query-axios-zod": "^0.0.14",
|
|
37
37
|
"@dwidge/react-native-web-webview": "^0.0.4",
|
|
38
|
-
"@dwidge/utils-js": "^0.0.
|
|
39
|
-
"@dwidge/wmdb-expo": "^0.0.
|
|
38
|
+
"@dwidge/utils-js": "^0.0.12",
|
|
39
|
+
"@dwidge/wmdb-expo": "^0.0.6",
|
|
40
40
|
"@dwidge/wmdb-expo-web": "^0.0.4",
|
|
41
41
|
"@jsonforms/core": "^3.4.0",
|
|
42
42
|
"@jsonforms/react": "^3.4.0",
|
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import { FileEdit } from "@dwidge/components-expo";
|
|
6
6
|
import { FileApi } from "../hooks/FileApi";
|
|
7
|
-
import {
|
|
7
|
+
import { AttachmentApi } from "../hooks/AttachmentApi";
|
|
8
8
|
import { useParams } from "../hooks/useParams";
|
|
9
|
+
import { filterId } from "../hooks/useIdFilter";
|
|
9
10
|
|
|
10
11
|
export const AttachmentEdit = ({
|
|
11
12
|
id = useParams().AttachmentId,
|
|
12
|
-
attachment: [attachment] =
|
|
13
|
-
file: [file, setFile] = FileApi.useItem(attachment?.FileId),
|
|
13
|
+
attachment: [attachment] = AttachmentApi.useItem(filterId(id)),
|
|
14
|
+
file: [file, setFile] = FileApi.useItem(filterId(attachment?.FileId)),
|
|
14
15
|
}) => <FileEdit file={[file, setFile]} />;
|
|
@@ -10,17 +10,17 @@ import {
|
|
|
10
10
|
} from "@dwidge/components-rnw";
|
|
11
11
|
import assert from "assert";
|
|
12
12
|
import { useState } from "react";
|
|
13
|
-
import {
|
|
13
|
+
import { AttachmentApi } from "../hooks/AttachmentApi";
|
|
14
14
|
import { useCreateBlankAttachment } from "../hooks/useCreateBlankAttachment";
|
|
15
15
|
import { Params, useParams } from "../hooks/useParams";
|
|
16
16
|
import { AttachmentEdit } from "./AttachmentEdit";
|
|
17
17
|
|
|
18
18
|
export const AttachmentListEdit = ({
|
|
19
19
|
ids = useParams() as Params,
|
|
20
|
-
elements =
|
|
20
|
+
elements = AttachmentApi.useGetList(ids),
|
|
21
21
|
selection: [selection, setSelection] = useState<string[]>([]),
|
|
22
22
|
onCreateAttachment = useCreateBlankAttachment({ AttachIds: ids }),
|
|
23
|
-
onDeleteAttachmentList =
|
|
23
|
+
onDeleteAttachmentList = AttachmentApi.useDeleteList(),
|
|
24
24
|
}) => (
|
|
25
25
|
<StyledView column>
|
|
26
26
|
<UnstyledList
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// Distributed under the Boost Software License, Version 1.0.
|
|
3
3
|
// https://www.boost.org/LICENSE_1_0.txt
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { AttachmentApi } from "../hooks/AttachmentApi";
|
|
6
6
|
import { useParams } from "../hooks/useParams";
|
|
7
7
|
import { AttachmentView } from "./AttachmentView";
|
|
8
8
|
|
|
9
9
|
export const AttachmentListView = ({
|
|
10
10
|
ids = useParams(),
|
|
11
|
-
attachments =
|
|
11
|
+
attachments = AttachmentApi.useGetList(ids),
|
|
12
12
|
}) => attachments?.map((a) => <AttachmentView key={a.id} id={a.id} />);
|
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import { useIdStringParam } from "@dwidge/hooks-expo";
|
|
6
6
|
import { FileView } from "@dwidge/components-expo";
|
|
7
|
-
import {
|
|
7
|
+
import { AttachmentApi } from "../hooks/AttachmentApi";
|
|
8
8
|
import { FileApi } from "../hooks/FileApi";
|
|
9
|
+
import { filterId } from "../hooks/useIdFilter";
|
|
9
10
|
|
|
10
11
|
export const AttachmentView = ({
|
|
11
12
|
id = useIdStringParam(),
|
|
12
|
-
attachment: [attachment] =
|
|
13
|
-
file: [file, setFile] = FileApi.useItem(attachment?.FileId),
|
|
13
|
+
attachment: [attachment] = AttachmentApi.useItem(filterId(id)),
|
|
14
|
+
file: [file, setFile] = FileApi.useItem(filterId(attachment?.FileId)),
|
|
14
15
|
}) => <FileView file={[file, setFile]} />;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./AttachmentEdit.js";
|
|
2
|
+
export * from "./AttachmentListEdit.js";
|
|
3
|
+
export * from "./AttachmentListView.js";
|
|
4
|
+
export * from "./AttachmentScreen.js";
|
|
5
|
+
export * from "./AttachmentView.js";
|
|
6
|
+
export * from "./useFileAttachmentUrl.js";
|
|
7
|
+
export * from "./useFileUrl.js";
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
// https://www.boost.org/LICENSE_1_0.txt
|
|
4
4
|
|
|
5
5
|
import { FileApi } from "../hooks/FileApi";
|
|
6
|
-
import {
|
|
6
|
+
import { AttachmentApi } from "../hooks/AttachmentApi";
|
|
7
|
+
import { filterId } from "../hooks/useIdFilter";
|
|
7
8
|
|
|
8
9
|
export const useFileAttachmentUrl = (
|
|
9
10
|
attachmentId?: string,
|
|
10
11
|
): string | null | undefined => useFileAttachmentUrlInternal(attachmentId);
|
|
11
12
|
const useFileAttachmentUrlInternal = (
|
|
12
13
|
attachmentId?: string,
|
|
13
|
-
attachment =
|
|
14
|
-
file = FileApi.useGetItem(attachment?.FileId),
|
|
14
|
+
attachment = AttachmentApi.useGetItem(filterId(attachmentId)),
|
|
15
|
+
file = FileApi.useGetItem(filterId(attachment?.FileId)),
|
|
15
16
|
) => file?.getUrl;
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
// https://www.boost.org/LICENSE_1_0.txt
|
|
4
4
|
|
|
5
5
|
import { FileApi } from "../hooks/FileApi";
|
|
6
|
+
import { filterId } from "../hooks/useIdFilter";
|
|
6
7
|
|
|
7
8
|
export const useFileUrl = (fileId?: string): string | null | undefined =>
|
|
8
9
|
useFileUrlInternal(fileId);
|
|
9
10
|
const useFileUrlInternal = (
|
|
10
11
|
fileId?: string,
|
|
11
|
-
file = FileApi.useGetItem(fileId),
|
|
12
|
+
file = FileApi.useGetItem(filterId(fileId)),
|
|
12
13
|
) => file?.getUrl;
|
package/src/Form/FormEdit.tsx
CHANGED
|
@@ -2,14 +2,67 @@
|
|
|
2
2
|
// Distributed under the Boost Software License, Version 1.0.
|
|
3
3
|
// https://www.boost.org/LICENSE_1_0.txt
|
|
4
4
|
|
|
5
|
-
import { StyledLoader, StyledText
|
|
5
|
+
import { StyledButton, StyledLoader, StyledText } from "@dwidge/components-rnw";
|
|
6
|
+
import { useNavAction2 } from "@dwidge/hooks-expo";
|
|
7
|
+
import {
|
|
8
|
+
defaultFormSchemaString,
|
|
9
|
+
defaultJsonFormDataString,
|
|
10
|
+
FormSubmit,
|
|
11
|
+
} from "@dwidge/json-forms-designer";
|
|
12
|
+
import { useContext } from "react";
|
|
13
|
+
import { AttachmentListEdit } from "../Attachment/AttachmentListEdit";
|
|
14
|
+
import { filterId } from "../hooks";
|
|
6
15
|
import { FormApi } from "../hooks/FormApi";
|
|
16
|
+
import { FormsContext } from "../hooks/FormsContext";
|
|
17
|
+
import { SchemaApi } from "../hooks/SchemaApi";
|
|
18
|
+
import { useParams } from "../hooks/useParams";
|
|
7
19
|
|
|
8
|
-
export const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
20
|
+
export const FormEdit = ({
|
|
21
|
+
id = useParams().FormId,
|
|
22
|
+
form: [form, setForm] = FormApi.useItem(filterId(id)),
|
|
23
|
+
schema = SchemaApi.useGetItem(filterId(form?.SchemaId)),
|
|
24
|
+
onEditSchema = useNavAction2(
|
|
25
|
+
useContext(FormsContext).routes.SCHEMA_EDIT_SCREEN,
|
|
26
|
+
async (SchemaId: string) => ({
|
|
27
|
+
SchemaId,
|
|
28
|
+
}),
|
|
29
|
+
),
|
|
30
|
+
onSaveForm = useNavAction2(
|
|
31
|
+
useContext(FormsContext).routes.FORM_LIST_SCREEN,
|
|
32
|
+
async () => ({}),
|
|
33
|
+
),
|
|
34
|
+
}) =>
|
|
35
|
+
form === undefined || schema === undefined ? (
|
|
14
36
|
<StyledLoader />
|
|
37
|
+
) : form === null || schema === null ? (
|
|
38
|
+
<StyledText>No form</StyledText>
|
|
39
|
+
) : schema.schema ? (
|
|
40
|
+
<>
|
|
41
|
+
<FormSubmit
|
|
42
|
+
dataString={[
|
|
43
|
+
form.data ?? defaultJsonFormDataString,
|
|
44
|
+
setForm &&
|
|
45
|
+
((data) =>
|
|
46
|
+
setForm((prev) => ({
|
|
47
|
+
...prev,
|
|
48
|
+
data:
|
|
49
|
+
typeof data === "function"
|
|
50
|
+
? data(prev?.data ?? defaultJsonFormDataString)
|
|
51
|
+
: data,
|
|
52
|
+
}))),
|
|
53
|
+
]}
|
|
54
|
+
schemaString={[schema.schema ?? defaultFormSchemaString]}
|
|
55
|
+
/>
|
|
56
|
+
<AttachmentListEdit ids={{ FormId: form.id }} />
|
|
57
|
+
<StyledButton onPress={onSaveForm}>Save</StyledButton>
|
|
58
|
+
</>
|
|
59
|
+
) : (
|
|
60
|
+
<>
|
|
61
|
+
<StyledText>This form design has not been created yet.</StyledText>
|
|
62
|
+
{onEditSchema && (
|
|
63
|
+
<StyledButton onPress={() => onEditSchema(schema.id!)}>
|
|
64
|
+
Edit Form Design
|
|
65
|
+
</StyledButton>
|
|
66
|
+
)}
|
|
67
|
+
</>
|
|
15
68
|
);
|
|
@@ -3,52 +3,20 @@
|
|
|
3
3
|
// https://www.boost.org/LICENSE_1_0.txt
|
|
4
4
|
|
|
5
5
|
import { StyledHeader } from "@dwidge/components-expo";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
ScreenView,
|
|
9
|
-
ScrollView,
|
|
10
|
-
StyledText,
|
|
11
|
-
} from "@dwidge/components-rnw";
|
|
12
|
-
import {
|
|
13
|
-
defaultFormSchemaString,
|
|
14
|
-
FormDesigner,
|
|
15
|
-
FormSchema,
|
|
16
|
-
} from "@dwidge/json-forms-designer";
|
|
6
|
+
import { ScreenView, ScrollView } from "@dwidge/components-rnw";
|
|
7
|
+
import { SchemaApi } from "../hooks/SchemaApi";
|
|
17
8
|
import { FormApi } from "../hooks/FormApi";
|
|
18
|
-
import {
|
|
9
|
+
import { FormEdit } from "./FormEdit";
|
|
10
|
+
import { filterId, useParams } from "../hooks";
|
|
19
11
|
|
|
20
12
|
export const FormEditScreen = ({
|
|
21
|
-
form
|
|
13
|
+
form = FormApi.useGetItem(filterId(useParams().FormId)),
|
|
14
|
+
schema = SchemaApi.useGetItem(filterId(form?.SchemaId)),
|
|
22
15
|
}) => (
|
|
23
16
|
<ScreenView>
|
|
24
|
-
<StyledHeader title={["Form",
|
|
25
|
-
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
{form === null ? "The form does not exist." : "Loading..."}
|
|
29
|
-
</StyledText>
|
|
30
|
-
</CenterView>
|
|
31
|
-
) : (
|
|
32
|
-
<ScrollView flex gap wide pad selfcenter>
|
|
33
|
-
<FormDesigner
|
|
34
|
-
schemaString={[
|
|
35
|
-
form.schema ?? defaultFormSchemaString,
|
|
36
|
-
setForm &&
|
|
37
|
-
((updater) => {
|
|
38
|
-
const next =
|
|
39
|
-
typeof updater === "function"
|
|
40
|
-
? updater(form.schema ?? defaultFormSchemaString)
|
|
41
|
-
: updater;
|
|
42
|
-
const parsed = FormSchema.parse(JSON.parse(next));
|
|
43
|
-
setForm?.((prev) => ({
|
|
44
|
-
...prev,
|
|
45
|
-
name: parsed.schema.title,
|
|
46
|
-
schema: next,
|
|
47
|
-
}));
|
|
48
|
-
}),
|
|
49
|
-
]}
|
|
50
|
-
/>
|
|
51
|
-
</ScrollView>
|
|
52
|
-
)}
|
|
17
|
+
<StyledHeader title={["Form", schema?.name].filter(Boolean).join(" - ")} />
|
|
18
|
+
<ScrollView flex gap pad>
|
|
19
|
+
<FormEdit />
|
|
20
|
+
</ScrollView>
|
|
53
21
|
</ScreenView>
|
|
54
22
|
);
|
|
@@ -2,17 +2,23 @@
|
|
|
2
2
|
// Distributed under the Boost Software License, Version 1.0.
|
|
3
3
|
// https://www.boost.org/LICENSE_1_0.txt
|
|
4
4
|
|
|
5
|
-
import { UnstyledList, viewStyles } from "@dwidge/components-rnw";
|
|
5
|
+
import { StyledView, UnstyledList, viewStyles } from "@dwidge/components-rnw";
|
|
6
6
|
import { useNavAction2 } from "@dwidge/hooks-expo";
|
|
7
|
+
import { useMemoState } from "@dwidge/hooks-react";
|
|
7
8
|
import assert from "assert";
|
|
8
|
-
import {
|
|
9
|
+
import { useParams } from "../hooks";
|
|
9
10
|
import { FormApi } from "../hooks/FormApi";
|
|
10
11
|
import { useNavRoutes } from "../hooks/FormsContext";
|
|
11
|
-
import {
|
|
12
|
+
import { FormView } from "./FormView";
|
|
12
13
|
|
|
13
14
|
export const FormListEdit = ({
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
ids = useParams(),
|
|
16
|
+
items = FormApi.useGetList({
|
|
17
|
+
// id: undefined,
|
|
18
|
+
// data: undefined,
|
|
19
|
+
// ...ids,
|
|
20
|
+
}),
|
|
21
|
+
selection: [selection, setSelection] = useMemoState<string[]>([]),
|
|
16
22
|
onPress = useNavAction2(
|
|
17
23
|
useNavRoutes().FORM_EDIT_SCREEN,
|
|
18
24
|
async (id: string) => ({
|
|
@@ -20,13 +26,15 @@ export const FormListEdit = ({
|
|
|
20
26
|
}),
|
|
21
27
|
),
|
|
22
28
|
}) => (
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
<StyledView column>
|
|
30
|
+
<UnstyledList
|
|
31
|
+
items={items}
|
|
32
|
+
keyExtractor={(item) => (assert(item.id), item.id)}
|
|
33
|
+
selection={[selection, setSelection]}
|
|
34
|
+
render={(item) => <FormView id={item.id} />}
|
|
35
|
+
selectStyle={viewStyles.select}
|
|
36
|
+
style={viewStyles.unselect}
|
|
37
|
+
onPress={onPress}
|
|
38
|
+
/>
|
|
39
|
+
</StyledView>
|
|
32
40
|
);
|
|
@@ -8,47 +8,52 @@ import {
|
|
|
8
8
|
ScreenView,
|
|
9
9
|
ScrollView,
|
|
10
10
|
StyledFontAwesome,
|
|
11
|
-
StyledView,
|
|
12
11
|
} from "@dwidge/components-rnw";
|
|
12
|
+
import { useNavAction2 } from "@dwidge/hooks-expo";
|
|
13
13
|
import { useMemoState } from "@dwidge/hooks-react";
|
|
14
14
|
import { TouchableOpacity } from "react-native";
|
|
15
15
|
import { FormApi } from "../hooks/FormApi";
|
|
16
|
+
import { useNavRoutes } from "../hooks/FormsContext";
|
|
16
17
|
import { FormListEdit } from "./FormListEdit";
|
|
17
|
-
import { useCreateBlankForm } from "../hooks/useCreateBlankForm";
|
|
18
18
|
|
|
19
19
|
export const FormListScreen = ({
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
createForm = useNavAction2(
|
|
21
|
+
useNavRoutes().SCHEMA_SELECT_SCREEN,
|
|
22
|
+
async () => ({}),
|
|
23
|
+
),
|
|
24
|
+
editForm = useNavAction2(
|
|
25
|
+
useNavRoutes().FORM_EDIT_SCREEN,
|
|
26
|
+
async (key: string) => ({
|
|
27
|
+
FormId: key,
|
|
28
|
+
}),
|
|
29
|
+
),
|
|
30
|
+
deleteFormList = FormApi.useDeleteList(),
|
|
22
31
|
selection = useMemoState<string[]>([]),
|
|
23
32
|
}) => (
|
|
24
33
|
<ScreenView>
|
|
25
34
|
<StyledHeader
|
|
26
|
-
title="Forms"
|
|
35
|
+
title="Manage Forms"
|
|
27
36
|
actions={[
|
|
28
37
|
{
|
|
29
38
|
icon: "remove-circle",
|
|
30
39
|
onPress:
|
|
31
|
-
|
|
32
|
-
? () =>
|
|
40
|
+
deleteFormList && selection[0].length
|
|
41
|
+
? () => deleteFormList(selection[0].map((id) => ({ id })))
|
|
33
42
|
: undefined,
|
|
34
43
|
},
|
|
35
44
|
{
|
|
36
45
|
icon: "add-circle",
|
|
37
|
-
onPress:
|
|
46
|
+
onPress: createForm,
|
|
38
47
|
},
|
|
39
48
|
]}
|
|
40
49
|
/>
|
|
41
|
-
<ScrollView gap
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
<StyledFontAwesome name="plus" size={30} />
|
|
49
|
-
</CenterView>
|
|
50
|
-
</TouchableOpacity>
|
|
51
|
-
</StyledView>
|
|
50
|
+
<ScrollView gap>
|
|
51
|
+
<FormListEdit selection={selection} onPress={editForm} />
|
|
52
|
+
<TouchableOpacity style={{ flex: 1 }} onPress={createForm}>
|
|
53
|
+
<CenterView row gap>
|
|
54
|
+
<StyledFontAwesome name="plus" size={30} />
|
|
55
|
+
</CenterView>
|
|
56
|
+
</TouchableOpacity>
|
|
52
57
|
</ScrollView>
|
|
53
58
|
</ScreenView>
|
|
54
59
|
);
|