@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttachmentEditScreen.js","sourceRoot":"","sources":["../../../src/FormAttachment/FormAttachmentEditScreen.tsx"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,6DAA6D;AAC7D,wCAAwC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,EACvC,cAAc,GAAG,iBAAiB,CAAC,UAAU,EAAE,EAC/C,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,MAAM,CAAC,GAClD,EAAE,EAAE,CAAC,CACJ,MAAC,UAAU,eACT,KAAC,YAAY,IAAC,KAAK,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAI,EACzE,KAAC,UAAU,IAAC,IAAI,QAAC,GAAG,QAAC,GAAG,kBACtB,KAAC,kBAAkB,KAAG,GACX,IACF,CACd,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// Copyright DWJ 2024.
|
|
3
|
-
// Distributed under the Boost Software License, Version 1.0.
|
|
4
|
-
// https://www.boost.org/LICENSE_1_0.txt
|
|
5
|
-
import { StyledView, UnstyledList, viewStyles } from "@dwidge/components-rnw";
|
|
6
|
-
import { useNavAction2 } from "@dwidge/hooks-expo";
|
|
7
|
-
import { useMemoState } from "@dwidge/hooks-react";
|
|
8
|
-
import assert from "assert";
|
|
9
|
-
import { useParams } from "../hooks";
|
|
10
|
-
import { FormAttachmentApi } from "../hooks/FormAttachmentApi";
|
|
11
|
-
import { useNavRoutes } from "../hooks/FormsContext";
|
|
12
|
-
import { FormAttachmentView } from "./FormAttachmentView";
|
|
13
|
-
export const FormAttachmentListEdit = ({ ids = useParams(), elements = FormAttachmentApi.useGetList({
|
|
14
|
-
id: undefined,
|
|
15
|
-
data: undefined,
|
|
16
|
-
...ids,
|
|
17
|
-
}), selection: [selection, setSelection] = useMemoState([]), onPress = useNavAction2(useNavRoutes().FORM_ATTACHMENT_EDIT_SCREEN, async (id) => ({
|
|
18
|
-
FormAttachmentId: id,
|
|
19
|
-
})), }) => (_jsx(StyledView, { column: true, children: _jsx(UnstyledList, { items: elements, keyExtractor: (item) => (assert(item.id), item.id), selection: [selection, setSelection], render: (item) => _jsx(FormAttachmentView, { id: item.id }), selectStyle: viewStyles.select, style: viewStyles.unselect, onPress: onPress }) }));
|
|
20
|
-
//# sourceMappingURL=FormAttachmentListEdit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttachmentListEdit.js","sourceRoot":"","sources":["../../../src/FormAttachment/FormAttachmentListEdit.tsx"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,6DAA6D;AAC7D,wCAAwC;AAExC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACrC,GAAG,GAAG,SAAS,EAAE,EACjB,QAAQ,GAAG,iBAAiB,CAAC,UAAU,CAAC;IACtC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,GAAG,GAAG;CACP,CAAC,EACF,SAAS,EAAE,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,YAAY,CAAW,EAAE,CAAC,EACjE,OAAO,GAAG,aAAa,CACrB,YAAY,EAAE,CAAC,2BAA2B,EAC1C,KAAK,EAAE,EAAU,EAAE,EAAE,CAAC,CAAC;IACrB,gBAAgB,EAAE,EAAE;CACrB,CAAC,CACH,GACF,EAAE,EAAE,CAAC,CACJ,KAAC,UAAU,IAAC,MAAM,kBAChB,KAAC,YAAY,IACX,KAAK,EAAE,QAAQ,EACf,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,EAClD,SAAS,EAAE,CAAC,SAAS,EAAE,YAAY,CAAC,EACpC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,KAAC,kBAAkB,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,EACrD,WAAW,EAAE,UAAU,CAAC,MAAM,EAC9B,KAAK,EAAE,UAAU,CAAC,QAAQ,EAC1B,OAAO,EAAE,OAAO,GAChB,GACS,CACd,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// Copyright DWJ 2024.
|
|
3
|
-
// Distributed under the Boost Software License, Version 1.0.
|
|
4
|
-
// https://www.boost.org/LICENSE_1_0.txt
|
|
5
|
-
import { StyledHeader } from "@dwidge/components-expo";
|
|
6
|
-
import { CenterView, ScreenView, ScrollView, StyledFontAwesome, } from "@dwidge/components-rnw";
|
|
7
|
-
import { useNavAction2 } from "@dwidge/hooks-expo";
|
|
8
|
-
import { useMemoState } from "@dwidge/hooks-react";
|
|
9
|
-
import { TouchableOpacity } from "react-native";
|
|
10
|
-
import { FormAttachmentApi } from "../hooks/FormAttachmentApi";
|
|
11
|
-
import { useNavRoutes } from "../hooks/FormsContext";
|
|
12
|
-
import { FormAttachmentListEdit } from "./FormAttachmentListEdit";
|
|
13
|
-
export const FormAttachmentListScreen = ({ onCreateAttachment = useNavAction2(useNavRoutes().FORM_SELECT_SCREEN, async () => ({})), onEditAttachment = useNavAction2(useNavRoutes().FORM_ATTACHMENT_EDIT_SCREEN, async (key) => ({
|
|
14
|
-
FormAttachmentId: key,
|
|
15
|
-
})), onDeleteAttachmentList = FormAttachmentApi.useDeleteList(), selection = useMemoState([]), }) => (_jsxs(ScreenView, { children: [_jsx(StyledHeader, { title: "Manage Forms", actions: [
|
|
16
|
-
{
|
|
17
|
-
icon: "remove-circle",
|
|
18
|
-
onPress: onDeleteAttachmentList && selection[0].length
|
|
19
|
-
? () => onDeleteAttachmentList(selection[0].map((id) => ({ id })))
|
|
20
|
-
: undefined,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
icon: "add-circle",
|
|
24
|
-
onPress: onCreateAttachment,
|
|
25
|
-
},
|
|
26
|
-
] }), _jsxs(ScrollView, { gap: true, children: [_jsx(FormAttachmentListEdit, { selection: selection, onPress: onEditAttachment }), _jsx(TouchableOpacity, { style: { flex: 1 }, onPress: onCreateAttachment, children: _jsx(CenterView, { row: true, gap: true, children: _jsx(StyledFontAwesome, { name: "plus", size: 30 }) }) })] })] }));
|
|
27
|
-
//# sourceMappingURL=FormAttachmentListScreen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttachmentListScreen.js","sourceRoot":"","sources":["../../../src/FormAttachment/FormAttachmentListScreen.tsx"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,6DAA6D;AAC7D,wCAAwC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,EACvC,kBAAkB,GAAG,aAAa,CAChC,YAAY,EAAE,CAAC,kBAAkB,EACjC,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CACjB,EACD,gBAAgB,GAAG,aAAa,CAC9B,YAAY,EAAE,CAAC,2BAA2B,EAC1C,KAAK,EAAE,GAAW,EAAE,EAAE,CAAC,CAAC;IACtB,gBAAgB,EAAE,GAAG;CACtB,CAAC,CACH,EACD,sBAAsB,GAAG,iBAAiB,CAAC,aAAa,EAAE,EAC1D,SAAS,GAAG,YAAY,CAAW,EAAE,CAAC,GACvC,EAAE,EAAE,CAAC,CACJ,MAAC,UAAU,eACT,KAAC,YAAY,IACX,KAAK,EAAC,cAAc,EACpB,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,eAAe;oBACrB,OAAO,EACL,sBAAsB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM;wBAC3C,CAAC,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;wBAClE,CAAC,CAAC,SAAS;iBAChB;gBACD;oBACE,IAAI,EAAE,YAAY;oBAClB,OAAO,EAAE,kBAAkB;iBAC5B;aACF,GACD,EACF,MAAC,UAAU,IAAC,GAAG,mBACb,KAAC,sBAAsB,IACrB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,gBAAgB,GACzB,EACF,KAAC,gBAAgB,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,YAC/D,KAAC,UAAU,IAAC,GAAG,QAAC,GAAG,kBACjB,KAAC,iBAAiB,IAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAE,EAAE,GAAI,GAChC,GACI,IACR,IACF,CACd,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// Copyright DWJ 2024.
|
|
3
|
-
// Distributed under the Boost Software License, Version 1.0.
|
|
4
|
-
// https://www.boost.org/LICENSE_1_0.txt
|
|
5
|
-
import { UnstyledList, viewStyles } from "@dwidge/components-rnw";
|
|
6
|
-
import { useNavAction2 } from "@dwidge/hooks-expo";
|
|
7
|
-
import assert from "assert";
|
|
8
|
-
import { FormAttachmentApi } from "../hooks/FormAttachmentApi";
|
|
9
|
-
import { useNavRoutes } from "../hooks/FormsContext";
|
|
10
|
-
import { FormAttachmentView } from "./FormAttachmentView";
|
|
11
|
-
export const FormAttachmentListView = ({ attachments = FormAttachmentApi.useGetList({}), onPressItem = useNavAction2(useNavRoutes().FORM_ATTACHMENT_EDIT_SCREEN, async (id) => ({
|
|
12
|
-
FormAttachmentId: id,
|
|
13
|
-
})), }) => (_jsx(UnstyledList, { items: attachments, keyExtractor: (item) => (assert(item.id), item.id), selection: [[], () => { }], render: (item) => _jsx(FormAttachmentView, { id: item.id }), selectStyle: viewStyles.select, style: viewStyles.unselect, onPress: onPressItem }));
|
|
14
|
-
//# sourceMappingURL=FormAttachmentListView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttachmentListView.js","sourceRoot":"","sources":["../../../src/FormAttachment/FormAttachmentListView.tsx"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,6DAA6D;AAC7D,wCAAwC;AAExC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACrC,WAAW,GAAG,iBAAiB,CAAC,UAAU,CAAC,EAAE,CAAC,EAC9C,WAAW,GAAG,aAAa,CACzB,YAAY,EAAE,CAAC,2BAA2B,EAC1C,KAAK,EAAE,EAAU,EAAE,EAAE,CAAC,CAAC;IACrB,gBAAgB,EAAE,EAAE;CACrB,CAAC,CACH,GACF,EAAE,EAAE,CAAC,CACJ,KAAC,YAAY,IACX,KAAK,EAAE,WAAW,EAClB,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,EAClD,SAAS,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,GAAE,CAAC,CAAC,EACzB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,KAAC,kBAAkB,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,EACrD,WAAW,EAAE,UAAU,CAAC,MAAM,EAC9B,KAAK,EAAE,UAAU,CAAC,QAAQ,EAC1B,OAAO,EAAE,WAAW,GACpB,CACH,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// Copyright DWJ 2024.
|
|
3
|
-
// Distributed under the Boost Software License, Version 1.0.
|
|
4
|
-
// https://www.boost.org/LICENSE_1_0.txt
|
|
5
|
-
import { StyledDate } from "@dwidge/components-expo";
|
|
6
|
-
import { StyledLoader, StyledText, StyledView } from "@dwidge/components-rnw";
|
|
7
|
-
import { FormApi } from "../hooks/FormApi";
|
|
8
|
-
import { FormAttachmentApi } from "../hooks/FormAttachmentApi";
|
|
9
|
-
import { useParams } from "../hooks/useParams";
|
|
10
|
-
export const FormAttachmentView = ({ id = useParams().FormAttachmentId, attachment: [attachment, setAttachment] = FormAttachmentApi.useItem(id), form = FormApi.useGetItem(attachment?.FormId), }) => attachment && form ? (_jsxs(StyledView, { space: true, outline: true, gap: true, pad: true, flex: true, children: [_jsx(StyledText, { children: form.name || "untitled" }), attachment.createdAt && (_jsx(StyledDate, { children: attachment.createdAt * 1000 }))] })) : (_jsx(StyledLoader, {}));
|
|
11
|
-
//# sourceMappingURL=FormAttachmentView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttachmentView.js","sourceRoot":"","sources":["../../../src/FormAttachment/FormAttachmentView.tsx"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,6DAA6D;AAC7D,wCAAwC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EACjC,EAAE,GAAG,SAAS,EAAE,CAAC,gBAAgB,EACjC,UAAU,EAAE,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,EAAE,CAAC,EACvE,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,MAAM,CAAC,GAC9C,EAAE,EAAE,CACH,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,CACnB,MAAC,UAAU,IAAC,KAAK,QAAC,OAAO,QAAC,GAAG,QAAC,GAAG,QAAC,IAAI,mBACpC,KAAC,UAAU,cAAE,IAAI,CAAC,IAAI,IAAI,UAAU,GAAc,EACjD,UAAU,CAAC,SAAS,IAAI,CACvB,KAAC,UAAU,cAAE,UAAU,CAAC,SAAS,GAAG,IAAI,GAAc,CACvD,IACU,CACd,CAAC,CAAC,CAAC,CACF,KAAC,YAAY,KAAG,CACjB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "./FormAttachmentEdit";
|
|
2
|
-
export * from "./FormAttachmentEditScreen";
|
|
3
|
-
export * from "./FormAttachmentListEdit";
|
|
4
|
-
export * from "./FormAttachmentListScreen";
|
|
5
|
-
export * from "./FormAttachmentListView";
|
|
6
|
-
export * from "./FormAttachmentView";
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/FormAttachment/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileAttachmentApi.js","sourceRoot":"","sources":["../../../src/hooks/FileAttachmentApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAS,CAAiB;IACzD,EAAE,EAAE,SAAS;IACb,SAAS,EAAE,SAAS;IACpB,SAAS,EAAE,SAAS;IACpB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,gBAAgB,EAAE,SAAS;CAC5B,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttachmentApi.js","sourceRoot":"","sources":["../../../src/hooks/FormAttachmentApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAS,CAAkB;IAC1D,EAAE,EAAE,SAAS;IACb,SAAS,EAAE,SAAS;IACpB,SAAS,EAAE,SAAS;IACpB,MAAM,EAAE,SAAS;IACjB,IAAI,EAAE,SAAS;CAChB,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Copyright DWJ 2024.
|
|
2
|
-
// Distributed under the Boost Software License, Version 1.0.
|
|
3
|
-
// https://www.boost.org/LICENSE_1_0.txt
|
|
4
|
-
import { FormApi } from "./FormApi";
|
|
5
|
-
import { FormAttachmentApi } from "./FormAttachmentApi";
|
|
6
|
-
import { useParams } from "./useParams";
|
|
7
|
-
export const useCreateBlankFormAttachment = ({ createFormList = FormApi.useCreateList(), createAttachmentList = FormAttachmentApi.useCreateList(), AttachmentIds = useParams(), } = {}) => createFormList && createAttachmentList
|
|
8
|
-
? async (forms) => createAttachmentList(forms.map((form) => ({ ...AttachmentIds, FormId: form.id }))).then(([r]) => ({ FormAttachmentId: r?.id }))
|
|
9
|
-
: async () => undefined;
|
|
10
|
-
//# sourceMappingURL=useCreateBlankFormAttachment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateBlankFormAttachment.js","sourceRoot":"","sources":["../../../src/hooks/useCreateBlankFormAttachment.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,6DAA6D;AAC7D,wCAAwC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,EAC3C,cAAc,GAAG,OAAO,CAAC,aAAa,EAAE,EACxC,oBAAoB,GAAG,iBAAiB,CAAC,aAAa,EAAE,EACxD,aAAa,GAAG,SAAS,EAAE,GAC5B,GAAG,EAAE,EAAE,EAAE,CACR,cAAc,IAAI,oBAAoB;IACpC,CAAC,CAAC,KAAK,EAAE,KAAiB,EAAE,EAAE,CAC1B,oBAAoB,CAClB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,aAAa,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAC7D,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAClD,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileAttachment.js","sourceRoot":"","sources":["../../../src/types/FileAttachment.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttachment.js","sourceRoot":"","sources":["../../../src/types/FormAttachment.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const AttachmentEdit: ({ id, attachment: [attachment], file: [file, setFile], }: {
|
|
2
|
-
id?: string | null | undefined;
|
|
3
|
-
attachment?: [Partial<import("..").FileAttachment> | null | undefined, import("@dwidge/hooks-react").AsyncDispatch<import("react").SetStateAction<Partial<import("..").FileAttachment> | null>> | undefined, changed: boolean, save: () => void, revert: () => void] | undefined;
|
|
4
|
-
file?: [Partial<import("..").File2> | null | undefined, import("@dwidge/hooks-react").AsyncDispatch<import("react").SetStateAction<Partial<import("..").File2> | null>> | undefined, changed: boolean, save: () => void, revert: () => void] | undefined;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
//# sourceMappingURL=AttachmentEdit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentEdit.d.ts","sourceRoot":"","sources":["../../../src/FileAttachment/AttachmentEdit.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,cAAc;;;;6CAIc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentListEdit.d.ts","sourceRoot":"","sources":["../../../src/FileAttachment/AttachmentListEdit.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,MAAM,EAAa,MAAM,oBAAoB,CAAC;AAGvD,eAAO,MAAM,kBAAkB;;;;;;6CA2B9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentListView.d.ts","sourceRoot":"","sources":["../../../src/FileAttachment/AttachmentListView.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,kBAAkB;;;;;;;2DAGuC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentScreen.d.ts","sourceRoot":"","sources":["../../../src/FileAttachment/AttachmentScreen.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB;;;;;;6CAW5B,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const AttachmentView: ({ id, attachment: [attachment], file: [file, setFile], }: {
|
|
2
|
-
id?: string | undefined;
|
|
3
|
-
attachment?: [Partial<import("..").FileAttachment> | null | undefined, import("@dwidge/hooks-react").AsyncDispatch<import("react").SetStateAction<Partial<import("..").FileAttachment> | null>> | undefined, changed: boolean, save: () => void, revert: () => void] | undefined;
|
|
4
|
-
file?: [Partial<import("..").File2> | null | undefined, import("@dwidge/hooks-react").AsyncDispatch<import("react").SetStateAction<Partial<import("..").File2> | null>> | undefined, changed: boolean, save: () => void, revert: () => void] | undefined;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
//# sourceMappingURL=AttachmentView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentView.d.ts","sourceRoot":"","sources":["../../../src/FileAttachment/AttachmentView.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,cAAc;;;;6CAIc,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./AttachmentEdit";
|
|
2
|
-
export * from "./AttachmentListEdit";
|
|
3
|
-
export * from "./AttachmentListView";
|
|
4
|
-
export * from "./AttachmentScreen";
|
|
5
|
-
export * from "./AttachmentView";
|
|
6
|
-
export * from "./useFileAttachmentUrl";
|
|
7
|
-
export * from "./useFileUrl";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/FileAttachment/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFileAttachmentUrl.d.ts","sourceRoot":"","sources":["../../../src/FileAttachment/useFileAttachmentUrl.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB,kBAChB,MAAM,KACpB,MAAM,GAAG,IAAI,GAAG,SAAuD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFileUrl.d.ts","sourceRoot":"","sources":["../../../src/FileAttachment/useFileUrl.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU,YAAa,MAAM,KAAG,MAAM,GAAG,IAAI,GAAG,SACjC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditFormAttachmentScreen.d.ts","sourceRoot":"","sources":["../../../src/Form/EditFormAttachmentScreen.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,KAAK,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEjD,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE;QACN,IAAI,EAAE,SAAS,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,OAAO,CAAC;KACnB,EAAE,CAAC;CACL,CAAC;AAyCF,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;EAGR,CAAC;AAEH,eAAO,MAAM,wBAAwB;;6CAsBpC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare const FormSelectScreen: ({ onSelectForm, selected: [selected, setSelected], }: {
|
|
3
|
-
onSelectForm?: ((forms: import("..").Form1Key[]) => Promise<void>) | undefined;
|
|
4
|
-
selected?: [string[], React.Dispatch<React.SetStateAction<string[]>>] | undefined;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
//# sourceMappingURL=FormSelectScreen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelectScreen.d.ts","sourceRoot":"","sources":["../../../src/Form/FormSelectScreen.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAoBxC,eAAO,MAAM,gBAAgB;;;6CAwB5B,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
export declare const FormSelectView: ({ formList, selected: [selected, setSelected], searchValue: [searchValue, setSearchValue], createFormList, }: {
|
|
3
|
-
formList?: Partial<import("..").Form1>[] | undefined;
|
|
4
|
-
selected?: [string[], import("react").Dispatch<import("react").SetStateAction<string[]>>] | undefined;
|
|
5
|
-
searchValue?: [string, import("react").Dispatch<import("react").SetStateAction<string>>] | undefined;
|
|
6
|
-
createFormList?: ((list: Omit<Partial<import("..").Form1>, "createdAt" | "createdBy">[]) => Promise<(Partial<import("..").Form1> | null)[]>) | undefined;
|
|
7
|
-
}) => ReactNode;
|
|
8
|
-
//# sourceMappingURL=FormSelectView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelectView.d.ts","sourceRoot":"","sources":["../../../src/Form/FormSelectView.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAI5C,eAAO,MAAM,cAAc;;;;;MAKvB,SAgBH,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FormAttachment1 } from "../types/FormAttachment";
|
|
2
|
-
export declare const FormAttachmentEdit: ({ id, formAttachment: [formAttachment, setFormAttachment,], form, onEditForm, onSaveForm, }: {
|
|
3
|
-
id?: string | null | undefined;
|
|
4
|
-
formAttachment?: [Partial<FormAttachment1> | null | undefined, import("@dwidge/hooks-react").AsyncDispatch<import("react").SetStateAction<Partial<FormAttachment1> | null>> | undefined, changed: boolean, save: () => void, revert: () => void] | undefined;
|
|
5
|
-
form?: Partial<import("..").Form1> | null | undefined;
|
|
6
|
-
onEditForm?: ((key: string) => Promise<void>) | undefined;
|
|
7
|
-
onSaveForm?: (() => Promise<void>) | undefined;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=FormAttachmentEdit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttachmentEdit.d.ts","sourceRoot":"","sources":["../../../src/FormAttachment/FormAttachmentEdit.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,eAAO,MAAM,kBAAkB;;;;;;6CAmD5B,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const FormAttachmentEditScreen: ({ formAttachment, form, }: {
|
|
2
|
-
formAttachment?: Partial<import("..").FormAttachment1> | null | undefined;
|
|
3
|
-
form?: Partial<import("..").Form1> | null | undefined;
|
|
4
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
//# sourceMappingURL=FormAttachmentEditScreen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttachmentEditScreen.d.ts","sourceRoot":"","sources":["../../../src/FormAttachment/FormAttachmentEditScreen.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,wBAAwB;;;6CAUpC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const FormAttachmentListEdit: ({ ids, elements, selection: [selection, setSelection], onPress, }: {
|
|
2
|
-
ids?: (import("../hooks").Params & {
|
|
3
|
-
AttachmentId?: string | null | undefined;
|
|
4
|
-
FormId?: string | null | undefined;
|
|
5
|
-
FormAttachmentId?: string | null | undefined;
|
|
6
|
-
}) | undefined;
|
|
7
|
-
elements?: Partial<import("..").FormAttachment1>[] | undefined;
|
|
8
|
-
selection?: [string[], import("react").Dispatch<import("react").SetStateAction<string[]>>] | undefined;
|
|
9
|
-
onPress?: ((id: string) => Promise<void>) | undefined;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
//# sourceMappingURL=FormAttachmentListEdit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttachmentListEdit.d.ts","sourceRoot":"","sources":["../../../src/FormAttachment/FormAttachmentListEdit.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,sBAAsB;;;;;;;;;6CA0BlC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const FormAttachmentListScreen: ({ onCreateAttachment, onEditAttachment, onDeleteAttachmentList, selection, }: {
|
|
2
|
-
onCreateAttachment?: (() => Promise<void>) | undefined;
|
|
3
|
-
onEditAttachment?: ((key: string) => Promise<void>) | undefined;
|
|
4
|
-
onDeleteAttachmentList?: ((list: Pick<Partial<import("..").FormAttachment1>, "id">[]) => Promise<(Partial<import("..").FormAttachment1> | null)[]>) | undefined;
|
|
5
|
-
selection?: [string[], import("react").Dispatch<import("react").SetStateAction<string[]>>] | undefined;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
//# sourceMappingURL=FormAttachmentListScreen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttachmentListScreen.d.ts","sourceRoot":"","sources":["../../../src/FormAttachment/FormAttachmentListScreen.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,wBAAwB;;;;;6CA2CpC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const FormAttachmentListView: ({ attachments, onPressItem, }: {
|
|
2
|
-
attachments?: Partial<import("..").FormAttachment1>[] | undefined;
|
|
3
|
-
onPressItem?: ((id: string) => Promise<void>) | undefined;
|
|
4
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
//# sourceMappingURL=FormAttachmentListView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttachmentListView.d.ts","sourceRoot":"","sources":["../../../src/FormAttachment/FormAttachmentListView.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,sBAAsB;;;6CAkBlC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const FormAttachmentView: ({ id, attachment: [attachment, setAttachment], form, }: {
|
|
2
|
-
id?: string | null | undefined;
|
|
3
|
-
attachment?: [Partial<import("..").FormAttachment1> | null | undefined, import("@dwidge/hooks-react").AsyncDispatch<import("react").SetStateAction<Partial<import("..").FormAttachment1> | null>> | undefined, changed: boolean, save: () => void, revert: () => void] | undefined;
|
|
4
|
-
form?: Partial<import("..").Form1> | null | undefined;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
//# sourceMappingURL=FormAttachmentView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttachmentView.d.ts","sourceRoot":"","sources":["../../../src/FormAttachment/FormAttachmentView.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,kBAAkB;;;;6CAc5B,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "./FormAttachmentEdit";
|
|
2
|
-
export * from "./FormAttachmentEditScreen";
|
|
3
|
-
export * from "./FormAttachmentListEdit";
|
|
4
|
-
export * from "./FormAttachmentListScreen";
|
|
5
|
-
export * from "./FormAttachmentListView";
|
|
6
|
-
export * from "./FormAttachmentView";
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/FormAttachment/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { FileAttachment } from "../types/FileAttachment.js";
|
|
2
|
-
export declare const FileAttachmentApi: {
|
|
3
|
-
Context: import("react").Context<{
|
|
4
|
-
useGetList: (filter?: Partial<FileAttachment> | undefined) => Partial<FileAttachment>[] | undefined;
|
|
5
|
-
useCreateList: () => ((list: Omit<Partial<FileAttachment>, "createdAt" | "createdBy">[]) => Promise<(Partial<FileAttachment> | null)[]>) | undefined;
|
|
6
|
-
useDeleteList: () => ((list: Pick<Partial<FileAttachment>, "id">[]) => Promise<(Partial<FileAttachment> | null)[]>) | undefined;
|
|
7
|
-
useGetItem: (key?: (Partial<FileAttachment> & Pick<Partial<FileAttachment>, "id">) | undefined) => Partial<FileAttachment> | null | undefined;
|
|
8
|
-
useItem: (key?: Partial<FileAttachment> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<FileAttachment> | null>;
|
|
9
|
-
}>;
|
|
10
|
-
Provider: import("react").Provider<{
|
|
11
|
-
useGetList: (filter?: Partial<FileAttachment> | undefined) => Partial<FileAttachment>[] | undefined;
|
|
12
|
-
useCreateList: () => ((list: Omit<Partial<FileAttachment>, "createdAt" | "createdBy">[]) => Promise<(Partial<FileAttachment> | null)[]>) | undefined;
|
|
13
|
-
useDeleteList: () => ((list: Pick<Partial<FileAttachment>, "id">[]) => Promise<(Partial<FileAttachment> | null)[]>) | undefined;
|
|
14
|
-
useGetItem: (key?: (Partial<FileAttachment> & Pick<Partial<FileAttachment>, "id">) | undefined) => Partial<FileAttachment> | null | undefined;
|
|
15
|
-
useItem: (key?: Partial<FileAttachment> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<FileAttachment> | null>;
|
|
16
|
-
}>;
|
|
17
|
-
useGetList: (filter?: Partial<FileAttachment>, ids?: import("./useParams.js").Params & {
|
|
18
|
-
AttachmentId?: string | null | undefined;
|
|
19
|
-
FormId?: string | null | undefined;
|
|
20
|
-
FormAttachmentId?: string | null | undefined;
|
|
21
|
-
}) => Partial<FileAttachment>[] | undefined;
|
|
22
|
-
useGetItem: (id?: string | null | undefined, ids?: import("./useParams.js").Params & {
|
|
23
|
-
AttachmentId?: string | null | undefined;
|
|
24
|
-
FormId?: string | null | undefined;
|
|
25
|
-
FormAttachmentId?: string | null | undefined;
|
|
26
|
-
}) => Partial<FileAttachment> | null | undefined;
|
|
27
|
-
useItem: (id?: string | null | undefined, ids?: import("./useParams.js").Params & {
|
|
28
|
-
AttachmentId?: string | null | undefined;
|
|
29
|
-
FormId?: string | null | undefined;
|
|
30
|
-
FormAttachmentId?: string | null | undefined;
|
|
31
|
-
}) => [Partial<FileAttachment> | null | undefined, import("@dwidge/hooks-react").AsyncDispatch<import("react").SetStateAction<Partial<FileAttachment> | null>> | undefined, changed: boolean, save: () => void, revert: () => void];
|
|
32
|
-
useCreateList: () => ((list: Omit<Partial<FileAttachment>, "createdAt" | "createdBy">[]) => Promise<(Partial<FileAttachment> | null)[]>) | undefined;
|
|
33
|
-
useDeleteList: () => ((list: Pick<Partial<FileAttachment>, "id">[]) => Promise<(Partial<FileAttachment> | null)[]>) | undefined;
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=FileAttachmentApi.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileAttachmentApi.d.ts","sourceRoot":"","sources":["../../../src/hooks/FileAttachmentApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO5B,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { FormAttachment1 } from "../types/FormAttachment.js";
|
|
2
|
-
export declare const FormAttachmentApi: {
|
|
3
|
-
Context: import("react").Context<{
|
|
4
|
-
useGetList: (filter?: Partial<FormAttachment1> | undefined) => Partial<FormAttachment1>[] | undefined;
|
|
5
|
-
useCreateList: () => ((list: Omit<Partial<FormAttachment1>, "createdAt" | "createdBy">[]) => Promise<(Partial<FormAttachment1> | null)[]>) | undefined;
|
|
6
|
-
useDeleteList: () => ((list: Pick<Partial<FormAttachment1>, "id">[]) => Promise<(Partial<FormAttachment1> | null)[]>) | undefined;
|
|
7
|
-
useGetItem: (key?: (Partial<FormAttachment1> & Pick<Partial<FormAttachment1>, "id">) | undefined) => Partial<FormAttachment1> | null | undefined;
|
|
8
|
-
useItem: (key?: Partial<FormAttachment1> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<FormAttachment1> | null>;
|
|
9
|
-
}>;
|
|
10
|
-
Provider: import("react").Provider<{
|
|
11
|
-
useGetList: (filter?: Partial<FormAttachment1> | undefined) => Partial<FormAttachment1>[] | undefined;
|
|
12
|
-
useCreateList: () => ((list: Omit<Partial<FormAttachment1>, "createdAt" | "createdBy">[]) => Promise<(Partial<FormAttachment1> | null)[]>) | undefined;
|
|
13
|
-
useDeleteList: () => ((list: Pick<Partial<FormAttachment1>, "id">[]) => Promise<(Partial<FormAttachment1> | null)[]>) | undefined;
|
|
14
|
-
useGetItem: (key?: (Partial<FormAttachment1> & Pick<Partial<FormAttachment1>, "id">) | undefined) => Partial<FormAttachment1> | null | undefined;
|
|
15
|
-
useItem: (key?: Partial<FormAttachment1> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<FormAttachment1> | null>;
|
|
16
|
-
}>;
|
|
17
|
-
useGetList: (filter?: Partial<FormAttachment1>, ids?: import("./useParams.js").Params & {
|
|
18
|
-
AttachmentId?: string | null | undefined;
|
|
19
|
-
FormId?: string | null | undefined;
|
|
20
|
-
FormAttachmentId?: string | null | undefined;
|
|
21
|
-
}) => Partial<FormAttachment1>[] | undefined;
|
|
22
|
-
useGetItem: (id?: string | null | undefined, ids?: import("./useParams.js").Params & {
|
|
23
|
-
AttachmentId?: string | null | undefined;
|
|
24
|
-
FormId?: string | null | undefined;
|
|
25
|
-
FormAttachmentId?: string | null | undefined;
|
|
26
|
-
}) => Partial<FormAttachment1> | null | undefined;
|
|
27
|
-
useItem: (id?: string | null | undefined, ids?: import("./useParams.js").Params & {
|
|
28
|
-
AttachmentId?: string | null | undefined;
|
|
29
|
-
FormId?: string | null | undefined;
|
|
30
|
-
FormAttachmentId?: string | null | undefined;
|
|
31
|
-
}) => [Partial<FormAttachment1> | null | undefined, import("@dwidge/hooks-react").AsyncDispatch<import("react").SetStateAction<Partial<FormAttachment1> | null>> | undefined, changed: boolean, save: () => void, revert: () => void];
|
|
32
|
-
useCreateList: () => ((list: Omit<Partial<FormAttachment1>, "createdAt" | "createdBy">[]) => Promise<(Partial<FormAttachment1> | null)[]>) | undefined;
|
|
33
|
-
useDeleteList: () => ((list: Pick<Partial<FormAttachment1>, "id">[]) => Promise<(Partial<FormAttachment1> | null)[]>) | undefined;
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=FormAttachmentApi.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttachmentApi.d.ts","sourceRoot":"","sources":["../../../src/hooks/FormAttachmentApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAG7D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM5B,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Form1Key } from "../types/Form1";
|
|
2
|
-
export declare const useCreateBlankFormAttachment: ({ createFormList, createAttachmentList, AttachmentIds, }?: {
|
|
3
|
-
createFormList?: ((list: Omit<Partial<import("../types/Form1").Form1>, "createdAt" | "createdBy">[]) => Promise<(Partial<import("../types/Form1").Form1> | null)[]>) | undefined;
|
|
4
|
-
createAttachmentList?: ((list: Omit<Partial<import("..").FormAttachment1>, "createdAt" | "createdBy">[]) => Promise<(Partial<import("..").FormAttachment1> | null)[]>) | undefined;
|
|
5
|
-
AttachmentIds?: (import("./useParams").Params & {
|
|
6
|
-
AttachmentId?: string | null | undefined;
|
|
7
|
-
FormId?: string | null | undefined;
|
|
8
|
-
FormAttachmentId?: string | null | undefined;
|
|
9
|
-
}) | undefined;
|
|
10
|
-
}) => ((forms: Form1Key[]) => Promise<{
|
|
11
|
-
FormAttachmentId: string | undefined;
|
|
12
|
-
}>) | (() => Promise<undefined>);
|
|
13
|
-
//# sourceMappingURL=useCreateBlankFormAttachment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateBlankFormAttachment.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCreateBlankFormAttachment.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAK1C,eAAO,MAAM,4BAA4B;;;;;;;;eAMrB,QAAQ,EAAE;;gCAIH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileAttachment.d.ts","sourceRoot":"","sources":["../../../src/types/FileAttachment.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,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,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type FormAttachment1 = {
|
|
2
|
-
id: string;
|
|
3
|
-
created: boolean;
|
|
4
|
-
createdAt: number;
|
|
5
|
-
createdBy: number | null;
|
|
6
|
-
FormId: string | null;
|
|
7
|
-
data: string | null;
|
|
8
|
-
};
|
|
9
|
-
export type FormAttachment1Get = Partial<FormAttachment1>;
|
|
10
|
-
export type FormAttachment1Set = Omit<FormAttachment1Get, "createdAt" | "createdBy">;
|
|
11
|
-
export type FormAttachment1Key = Pick<FormAttachment1Get, "id">;
|
|
12
|
-
export type FormAttachment1Filter = FormAttachment1Get;
|
|
13
|
-
//# sourceMappingURL=FormAttachment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttachment.d.ts","sourceRoot":"","sources":["../../../src/types/FormAttachment.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,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,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,kBAAkB,EAClB,WAAW,GAAG,WAAW,CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;AAEhE,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
// Copyright DWJ 2024.
|
|
2
|
-
// Distributed under the Boost Software License, Version 1.0.
|
|
3
|
-
// https://www.boost.org/LICENSE_1_0.txt
|
|
4
|
-
|
|
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 "../FileAttachment/AttachmentListEdit";
|
|
14
|
-
import { FormApi } from "../hooks/FormApi";
|
|
15
|
-
import { FormAttachmentApi } from "../hooks/FormAttachmentApi";
|
|
16
|
-
import { FormsContext } from "../hooks/FormsContext";
|
|
17
|
-
import { useParams } from "../hooks/useParams";
|
|
18
|
-
import { FormAttachment1 } from "../types/FormAttachment";
|
|
19
|
-
|
|
20
|
-
type T = FormAttachment1 | null | undefined;
|
|
21
|
-
export const FormAttachmentEdit = ({
|
|
22
|
-
id = useParams().FormAttachmentId,
|
|
23
|
-
formAttachment: [
|
|
24
|
-
formAttachment,
|
|
25
|
-
setFormAttachment,
|
|
26
|
-
] = FormAttachmentApi.useItem(id),
|
|
27
|
-
form = FormApi.useGetItem(formAttachment?.FormId),
|
|
28
|
-
onEditForm = useNavAction2(
|
|
29
|
-
useContext(FormsContext).routes.FORM_EDIT_SCREEN,
|
|
30
|
-
async (key: string) => ({
|
|
31
|
-
FormId: key,
|
|
32
|
-
}),
|
|
33
|
-
),
|
|
34
|
-
onSaveForm = useNavAction2(
|
|
35
|
-
useContext(FormsContext).routes.FORM_ATTACHMENT_LIST_SCREEN,
|
|
36
|
-
async () => ({}),
|
|
37
|
-
),
|
|
38
|
-
}) =>
|
|
39
|
-
formAttachment === undefined || form === undefined ? (
|
|
40
|
-
<StyledLoader />
|
|
41
|
-
) : formAttachment === null || form === null ? (
|
|
42
|
-
<StyledText>No form</StyledText>
|
|
43
|
-
) : form.schema ? (
|
|
44
|
-
<>
|
|
45
|
-
<FormSubmit
|
|
46
|
-
dataString={[
|
|
47
|
-
formAttachment.data ?? defaultJsonFormDataString,
|
|
48
|
-
setFormAttachment &&
|
|
49
|
-
((data) =>
|
|
50
|
-
setFormAttachment((prev) => ({
|
|
51
|
-
...prev,
|
|
52
|
-
data:
|
|
53
|
-
typeof data === "function"
|
|
54
|
-
? data(prev?.data ?? defaultJsonFormDataString)
|
|
55
|
-
: data,
|
|
56
|
-
}))),
|
|
57
|
-
]}
|
|
58
|
-
schemaString={[form.schema ?? defaultFormSchemaString]}
|
|
59
|
-
/>
|
|
60
|
-
<AttachmentListEdit ids={{ FormAttachmentId: formAttachment.id }} />
|
|
61
|
-
<StyledButton onPress={onSaveForm}>Save</StyledButton>
|
|
62
|
-
</>
|
|
63
|
-
) : (
|
|
64
|
-
<>
|
|
65
|
-
<StyledText>This form has not been created yet.</StyledText>
|
|
66
|
-
{onEditForm && (
|
|
67
|
-
<StyledButton onPress={() => onEditForm(form.id!)}>
|
|
68
|
-
Edit Form
|
|
69
|
-
</StyledButton>
|
|
70
|
-
)}
|
|
71
|
-
</>
|
|
72
|
-
);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Copyright DWJ 2024.
|
|
2
|
-
// Distributed under the Boost Software License, Version 1.0.
|
|
3
|
-
// https://www.boost.org/LICENSE_1_0.txt
|
|
4
|
-
|
|
5
|
-
import { StyledHeader } from "@dwidge/components-expo";
|
|
6
|
-
import { ScreenView, ScrollView } from "@dwidge/components-rnw";
|
|
7
|
-
import { FormApi } from "../hooks/FormApi";
|
|
8
|
-
import { FormAttachmentApi } from "../hooks/FormAttachmentApi";
|
|
9
|
-
import { FormAttachmentEdit } from "./FormAttachmentEdit";
|
|
10
|
-
|
|
11
|
-
export const FormAttachmentEditScreen = ({
|
|
12
|
-
formAttachment = FormAttachmentApi.useGetItem(),
|
|
13
|
-
form = FormApi.useGetItem(formAttachment?.FormId),
|
|
14
|
-
}) => (
|
|
15
|
-
<ScreenView>
|
|
16
|
-
<StyledHeader title={["Form", form?.name].filter(Boolean).join(" - ")} />
|
|
17
|
-
<ScrollView flex gap pad>
|
|
18
|
-
<FormAttachmentEdit />
|
|
19
|
-
</ScrollView>
|
|
20
|
-
</ScreenView>
|
|
21
|
-
);
|