@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
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const AttachmentEdit: ({ id, attachment: [attachment], file: [file, setFile], }: {
|
|
2
|
+
id?: string | null | undefined;
|
|
3
|
+
attachment?: import("@dwidge/hooks-react").AsyncState<Partial<import("..").File1> | null> | undefined;
|
|
4
|
+
file?: import("@dwidge/hooks-react").AsyncState<Partial<import("..").File2> | null> | undefined;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=AttachmentEdit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentEdit.d.ts","sourceRoot":"","sources":["../../../src/Attachment/AttachmentEdit.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,cAAc;;;;6CAIc,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Params } from "../hooks/useParams";
|
|
2
2
|
export declare const AttachmentListEdit: ({ ids, elements, selection: [selection, setSelection], onCreateAttachment, onDeleteAttachmentList, }: {
|
|
3
3
|
ids?: Params | undefined;
|
|
4
|
-
elements?: Partial<import("..").
|
|
4
|
+
elements?: Partial<import("..").File1>[] | undefined;
|
|
5
5
|
selection?: [string[], import("react").Dispatch<import("react").SetStateAction<string[]>>] | undefined;
|
|
6
|
-
onCreateAttachment?: (() => Promise<Partial<import("..").
|
|
7
|
-
onDeleteAttachmentList?: ((list: Pick<Partial<import("..").
|
|
6
|
+
onCreateAttachment?: (() => Promise<Partial<import("..").File1> | null>) | undefined;
|
|
7
|
+
onDeleteAttachmentList?: ((list: Pick<Partial<import("..").File1>, "id">[]) => Promise<(Partial<import("..").File1> | null)[]>) | undefined;
|
|
8
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
//# sourceMappingURL=AttachmentListEdit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentListEdit.d.ts","sourceRoot":"","sources":["../../../src/Attachment/AttachmentListEdit.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,MAAM,EAAa,MAAM,oBAAoB,CAAC;AAGvD,eAAO,MAAM,kBAAkB;;;;;;6CA2B9B,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const AttachmentListView: ({ ids, attachments, }: {
|
|
2
2
|
ids?: (import("../hooks/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
|
}) | undefined;
|
|
7
|
-
attachments?: Partial<import("..").
|
|
7
|
+
attachments?: Partial<import("..").File1>[] | undefined;
|
|
8
8
|
}) => import("react/jsx-runtime").JSX.Element[] | undefined;
|
|
9
9
|
//# sourceMappingURL=AttachmentListView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentListView.d.ts","sourceRoot":"","sources":["../../../src/Attachment/AttachmentListView.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,kBAAkB;;;;;;;2DAGuC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const AttachmentScreen: ({ ids }: {
|
|
2
2
|
ids?: (import("../hooks/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
|
}) | undefined;
|
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
//# sourceMappingURL=AttachmentScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentScreen.d.ts","sourceRoot":"","sources":["../../../src/Attachment/AttachmentScreen.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB;;;;;;6CAW5B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const AttachmentView: ({ id, attachment: [attachment], file: [file, setFile], }: {
|
|
2
|
+
id?: string | undefined;
|
|
3
|
+
attachment?: import("@dwidge/hooks-react").AsyncState<Partial<import("..").File1> | null> | undefined;
|
|
4
|
+
file?: import("@dwidge/hooks-react").AsyncState<Partial<import("..").File2> | null> | undefined;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=AttachmentView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentView.d.ts","sourceRoot":"","sources":["../../../src/Attachment/AttachmentView.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,cAAc;;;;6CAIc,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Attachment/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFileAttachmentUrl.d.ts","sourceRoot":"","sources":["../../../src/Attachment/useFileAttachmentUrl.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB,kBAChB,MAAM,KACpB,MAAM,GAAG,IAAI,GAAG,SAAuD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFileUrl.d.ts","sourceRoot":"","sources":["../../../src/Attachment/useFileUrl.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,UAAU,YAAa,MAAM,KAAG,MAAM,GAAG,IAAI,GAAG,SACjC,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
1
|
+
export declare const FormEdit: ({ id, form: [form, setForm], schema, onEditSchema, onSaveForm, }: {
|
|
2
|
+
id?: string | null | undefined;
|
|
3
|
+
form?: import("@dwidge/hooks-react").AsyncState<Partial<import("..").Form1> | null> | undefined;
|
|
4
|
+
schema?: Partial<import("..").Schema1> | null | undefined;
|
|
5
|
+
onEditSchema?: ((SchemaId: string) => Promise<void>) | undefined;
|
|
6
|
+
onSaveForm?: (() => Promise<void>) | undefined;
|
|
3
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
4
8
|
//# sourceMappingURL=FormEdit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormEdit.d.ts","sourceRoot":"","sources":["../../../src/Form/FormEdit.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormEdit.d.ts","sourceRoot":"","sources":["../../../src/Form/FormEdit.tsx"],"names":[],"mappings":"AAmBA,eAAO,MAAM,QAAQ;;;;;;6CAgDlB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare const FormEditScreen: ({ form
|
|
2
|
-
form?:
|
|
1
|
+
export declare const FormEditScreen: ({ form, schema, }: {
|
|
2
|
+
form?: Partial<import("..").Form1> | null | undefined;
|
|
3
|
+
schema?: Partial<import("..").Schema1> | null | undefined;
|
|
3
4
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
//# sourceMappingURL=FormEditScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormEditScreen.d.ts","sourceRoot":"","sources":["../../../src/Form/FormEditScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormEditScreen.d.ts","sourceRoot":"","sources":["../../../src/Form/FormEditScreen.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,cAAc;;;6CAU1B,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
export declare const FormListEdit: ({
|
|
2
|
-
|
|
1
|
+
export declare const FormListEdit: ({ ids, items, selection: [selection, setSelection], onPress, }: {
|
|
2
|
+
ids?: (import("../hooks").Params & {
|
|
3
|
+
AttachmentId?: string | null | undefined;
|
|
4
|
+
SchemaId?: string | null | undefined;
|
|
5
|
+
FormId?: string | null | undefined;
|
|
6
|
+
}) | undefined;
|
|
7
|
+
items?: Partial<import("..").Form1>[] | undefined;
|
|
3
8
|
selection?: [string[], import("react").Dispatch<import("react").SetStateAction<string[]>>] | undefined;
|
|
4
9
|
onPress?: ((id: string) => Promise<void>) | undefined;
|
|
5
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormListEdit.d.ts","sourceRoot":"","sources":["../../../src/Form/FormListEdit.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormListEdit.d.ts","sourceRoot":"","sources":["../../../src/Form/FormListEdit.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,YAAY;;;;;;;;;6CA0BxB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export declare const FormListScreen: ({
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
onDeleteList?: ((list: Pick<Partial<import("..").Form1>, "id">[]) => Promise<(Partial<import("..").Form1> | null)[]>) | undefined;
|
|
1
|
+
export declare const FormListScreen: ({ createForm, editForm, deleteFormList, selection, }: {
|
|
2
|
+
createForm?: (() => Promise<void>) | undefined;
|
|
3
|
+
editForm?: ((key: string) => Promise<void>) | undefined;
|
|
4
|
+
deleteFormList?: ((list: Pick<Partial<import("..").Form1>, "id">[]) => Promise<(Partial<import("..").Form1> | null)[]>) | undefined;
|
|
6
5
|
selection?: [string[], import("react").Dispatch<import("react").SetStateAction<string[]>>] | undefined;
|
|
7
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
//# sourceMappingURL=FormListScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormListScreen.d.ts","sourceRoot":"","sources":["../../../src/Form/FormListScreen.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"FormListScreen.d.ts","sourceRoot":"","sources":["../../../src/Form/FormListScreen.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,cAAc;;;;;6CAwC1B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const FormListView: ({
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const FormListView: ({ attachments, onPressItem, }: {
|
|
2
|
+
attachments?: Partial<import("..").Form1>[] | undefined;
|
|
3
|
+
onPressItem?: ((id: string) => Promise<void>) | undefined;
|
|
4
4
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
//# sourceMappingURL=FormListView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormListView.d.ts","sourceRoot":"","sources":["../../../src/Form/FormListView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormListView.d.ts","sourceRoot":"","sources":["../../../src/Form/FormListView.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY;;;6CAkBxB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare const FormView: ({
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const FormView: ({ id, attachment: [attachment, setAttachment], form, }: {
|
|
2
|
+
id?: string | null | undefined;
|
|
3
|
+
attachment?: import("@dwidge/hooks-react").AsyncState<Partial<import("..").Form1> | null> | undefined;
|
|
4
|
+
form?: Partial<import("..").Schema1> | null | undefined;
|
|
4
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
//# sourceMappingURL=FormView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormView.d.ts","sourceRoot":"","sources":["../../../src/Form/FormView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormView.d.ts","sourceRoot":"","sources":["../../../src/Form/FormView.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,QAAQ;;;;6CAclB,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./FormSelectScreen";
|
|
8
|
-
export * from "./FormSelectView";
|
|
9
|
-
export * from "./FormView";
|
|
1
|
+
export * from "./FormEdit.js";
|
|
2
|
+
export * from "./FormEditScreen.js";
|
|
3
|
+
export * from "./FormListEdit.js";
|
|
4
|
+
export * from "./FormListScreen.js";
|
|
5
|
+
export * from "./FormListView.js";
|
|
6
|
+
export * from "./FormView.js";
|
|
10
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Form/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Form/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
|
|
@@ -33,8 +33,8 @@ declare const Form: z.ZodObject<{
|
|
|
33
33
|
uiSchema: string;
|
|
34
34
|
};
|
|
35
35
|
}>;
|
|
36
|
-
export declare const
|
|
36
|
+
export declare const EditSchemaScreen: ({ form: [form, setForm], }: {
|
|
37
37
|
form?: [Form | null | undefined, import("react").Dispatch<import("react").SetStateAction<Form | null | undefined>>] | undefined;
|
|
38
38
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
39
39
|
export {};
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=EditSchemaScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditSchemaScreen.d.ts","sourceRoot":"","sources":["../../../src/Schema/EditSchemaScreen.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,gBAAgB;;6CAsB5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaEdit.d.ts","sourceRoot":"","sources":["../../../src/Schema/SchemaEdit.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,UAAU;;6CAOpB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const SchemaEditScreen: ({ schema: [schema, setSchema], }: {
|
|
2
|
+
schema?: import("@dwidge/hooks-react").AsyncState<Partial<import("..").Schema1> | null> | undefined;
|
|
3
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=SchemaEditScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaEditScreen.d.ts","sourceRoot":"","sources":["../../../src/Schema/SchemaEditScreen.tsx"],"names":[],"mappings":"AAoBA,eAAO,MAAM,gBAAgB;;6CAoC5B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const SchemaListEdit: ({ elements, selection: [selection, setSelection], onPress, }: {
|
|
2
|
+
elements?: Partial<import("..").Schema1>[] | undefined;
|
|
3
|
+
selection?: [string[], import("react").Dispatch<import("react").SetStateAction<string[]>>] | undefined;
|
|
4
|
+
onPress?: ((id: string) => Promise<void>) | undefined;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=SchemaListEdit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaListEdit.d.ts","sourceRoot":"","sources":["../../../src/Schema/SchemaListEdit.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,cAAc;;;;6CAmB1B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const SchemaListScreen: ({ onCreate, onDeleteList, selection, }: {
|
|
2
|
+
onCreate?: (() => Promise<{
|
|
3
|
+
SchemaId: string | undefined;
|
|
4
|
+
}>) | undefined;
|
|
5
|
+
onDeleteList?: ((list: Pick<Partial<import("..").Schema1>, "id">[]) => Promise<(Partial<import("..").Schema1> | null)[]>) | undefined;
|
|
6
|
+
selection?: [string[], import("react").Dispatch<import("react").SetStateAction<string[]>>] | undefined;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=SchemaListScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaListScreen.d.ts","sourceRoot":"","sources":["../../../src/Schema/SchemaListScreen.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,gBAAgB;;;;;;6CAmC5B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const SchemaListView: ({ elements, selection: [selection, setSelection], }: {
|
|
2
|
+
elements?: Partial<import("..").Schema1>[] | undefined;
|
|
3
|
+
selection?: [string[], import("react").Dispatch<import("react").SetStateAction<string[]>>] | undefined;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=SchemaListView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaListView.d.ts","sourceRoot":"","sources":["../../../src/Schema/SchemaListView.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,cAAc;;;6CAY1B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const SchemaSelectScreen: ({ onSelectSchema, selected: [selected, setSelected], }: {
|
|
3
|
+
onSelectSchema?: ((forms: import("..").Schema1Key[]) => Promise<void>) | undefined;
|
|
4
|
+
selected?: [string[], React.Dispatch<React.SetStateAction<string[]>>] | undefined;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=SchemaSelectScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaSelectScreen.d.ts","sourceRoot":"","sources":["../../../src/Schema/SchemaSelectScreen.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAiBxC,eAAO,MAAM,kBAAkB;;;6CAsB9B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare const SchemaSelectView: ({ formList, selected: [selected, setSelected], searchValue: [searchValue, setSearchValue], createSchemaList, }: {
|
|
3
|
+
formList?: Partial<import("..").Schema1>[] | undefined;
|
|
4
|
+
selected?: [string[], import("react").Dispatch<import("react").SetStateAction<string[]>>] | undefined;
|
|
5
|
+
searchValue?: [string, import("react").Dispatch<import("react").SetStateAction<string>>] | undefined;
|
|
6
|
+
createSchemaList?: ((list: Omit<Partial<import("..").Schema1>, "createdAt" | "createdBy">[]) => Promise<(Partial<import("..").Schema1> | null)[]>) | undefined;
|
|
7
|
+
}) => ReactNode;
|
|
8
|
+
//# sourceMappingURL=SchemaSelectView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaSelectView.d.ts","sourceRoot":"","sources":["../../../src/Schema/SchemaSelectView.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAI5C,eAAO,MAAM,gBAAgB;;;;;MAKzB,SAgBH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaView.d.ts","sourceRoot":"","sources":["../../../src/Schema/SchemaView.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,UAAU;;;6CAGkC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./EditSchemaScreen.js";
|
|
2
|
+
export * from "./SchemaEdit.js";
|
|
3
|
+
export * from "./SchemaEditScreen.js";
|
|
4
|
+
export * from "./SchemaListEdit.js";
|
|
5
|
+
export * from "./SchemaListScreen.js";
|
|
6
|
+
export * from "./SchemaListView.js";
|
|
7
|
+
export * from "./SchemaSelectScreen.js";
|
|
8
|
+
export * from "./SchemaSelectView.js";
|
|
9
|
+
export * from "./SchemaView.js";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { File1 } from "../types/File1.js";
|
|
2
|
+
export declare const AttachmentApi: {
|
|
3
|
+
Context: import("react").Context<{
|
|
4
|
+
useGetList: (filter?: Partial<File1> | undefined) => Partial<File1>[] | undefined;
|
|
5
|
+
useCreateList: () => ((list: Omit<Partial<File1>, "createdAt" | "createdBy">[]) => Promise<(Partial<File1> | null)[]>) | undefined;
|
|
6
|
+
useDeleteList: () => ((list: Pick<Partial<File1>, "id">[]) => Promise<(Partial<File1> | null)[]>) | undefined;
|
|
7
|
+
useGetItem: (filter?: Partial<File1> | undefined) => Partial<File1> | null | undefined;
|
|
8
|
+
useItem: (filter?: Partial<File1> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<File1> | null>;
|
|
9
|
+
}>;
|
|
10
|
+
Provider: import("react").Provider<{
|
|
11
|
+
useGetList: (filter?: Partial<File1> | undefined) => Partial<File1>[] | undefined;
|
|
12
|
+
useCreateList: () => ((list: Omit<Partial<File1>, "createdAt" | "createdBy">[]) => Promise<(Partial<File1> | null)[]>) | undefined;
|
|
13
|
+
useDeleteList: () => ((list: Pick<Partial<File1>, "id">[]) => Promise<(Partial<File1> | null)[]>) | undefined;
|
|
14
|
+
useGetItem: (filter?: Partial<File1> | undefined) => Partial<File1> | null | undefined;
|
|
15
|
+
useItem: (filter?: Partial<File1> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<File1> | null>;
|
|
16
|
+
}>;
|
|
17
|
+
useGetList: (filter?: Partial<File1> | undefined) => Partial<File1>[] | undefined;
|
|
18
|
+
useGetItem: (filter?: Partial<File1> | undefined) => Partial<File1> | null | undefined;
|
|
19
|
+
useItem: (filter?: Partial<File1> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<File1> | null>;
|
|
20
|
+
useCreateList: () => ((list: Omit<Partial<File1>, "createdAt" | "createdBy">[]) => Promise<(Partial<File1> | null)[]>) | undefined;
|
|
21
|
+
useDeleteList: () => ((list: Pick<Partial<File1>, "id">[]) => Promise<(Partial<File1> | null)[]>) | undefined;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=AttachmentApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentApi.d.ts","sourceRoot":"","sources":["../../../src/hooks/AttachmentApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;CAOxB,CAAC"}
|
|
@@ -4,31 +4,19 @@ export declare const FileApi: {
|
|
|
4
4
|
useGetList: (filter?: Partial<File2> | undefined) => Partial<File2>[] | undefined;
|
|
5
5
|
useCreateList: () => ((list: Omit<Partial<File2>, "createdAt" | "createdBy">[]) => Promise<(Partial<File2> | null)[]>) | undefined;
|
|
6
6
|
useDeleteList: () => ((list: Pick<Partial<File2>, "id">[]) => Promise<(Partial<File2> | null)[]>) | undefined;
|
|
7
|
-
useGetItem: (
|
|
8
|
-
useItem: (
|
|
7
|
+
useGetItem: (filter?: Partial<File2> | undefined) => Partial<File2> | null | undefined;
|
|
8
|
+
useItem: (filter?: Partial<File2> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<File2> | null>;
|
|
9
9
|
}>;
|
|
10
10
|
Provider: import("react").Provider<{
|
|
11
11
|
useGetList: (filter?: Partial<File2> | undefined) => Partial<File2>[] | undefined;
|
|
12
12
|
useCreateList: () => ((list: Omit<Partial<File2>, "createdAt" | "createdBy">[]) => Promise<(Partial<File2> | null)[]>) | undefined;
|
|
13
13
|
useDeleteList: () => ((list: Pick<Partial<File2>, "id">[]) => Promise<(Partial<File2> | null)[]>) | undefined;
|
|
14
|
-
useGetItem: (
|
|
15
|
-
useItem: (
|
|
14
|
+
useGetItem: (filter?: Partial<File2> | undefined) => Partial<File2> | null | undefined;
|
|
15
|
+
useItem: (filter?: Partial<File2> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<File2> | null>;
|
|
16
16
|
}>;
|
|
17
|
-
useGetList: (filter?: Partial<File2
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
FormAttachmentId?: string | null | undefined;
|
|
21
|
-
}) => Partial<File2>[] | 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<File2> | 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<File2> | null | undefined, import("@dwidge/hooks-react").AsyncDispatch<import("react").SetStateAction<Partial<File2> | null>> | undefined, changed: boolean, save: () => void, revert: () => void];
|
|
17
|
+
useGetList: (filter?: Partial<File2> | undefined) => Partial<File2>[] | undefined;
|
|
18
|
+
useGetItem: (filter?: Partial<File2> | undefined) => Partial<File2> | null | undefined;
|
|
19
|
+
useItem: (filter?: Partial<File2> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<File2> | null>;
|
|
32
20
|
useCreateList: () => ((list: Omit<Partial<File2>, "createdAt" | "createdBy">[]) => Promise<(Partial<File2> | null)[]>) | undefined;
|
|
33
21
|
useDeleteList: () => ((list: Pick<Partial<File2>, "id">[]) => Promise<(Partial<File2> | null)[]>) | undefined;
|
|
34
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileApi.d.ts","sourceRoot":"","sources":["../../../src/hooks/FileApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"FileApi.d.ts","sourceRoot":"","sources":["../../../src/hooks/FileApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;CASlB,CAAC"}
|
|
@@ -4,31 +4,19 @@ export declare const FormApi: {
|
|
|
4
4
|
useGetList: (filter?: Partial<Form1> | undefined) => Partial<Form1>[] | undefined;
|
|
5
5
|
useCreateList: () => ((list: Omit<Partial<Form1>, "createdAt" | "createdBy">[]) => Promise<(Partial<Form1> | null)[]>) | undefined;
|
|
6
6
|
useDeleteList: () => ((list: Pick<Partial<Form1>, "id">[]) => Promise<(Partial<Form1> | null)[]>) | undefined;
|
|
7
|
-
useGetItem: (
|
|
8
|
-
useItem: (
|
|
7
|
+
useGetItem: (filter?: Partial<Form1> | undefined) => Partial<Form1> | null | undefined;
|
|
8
|
+
useItem: (filter?: Partial<Form1> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<Form1> | null>;
|
|
9
9
|
}>;
|
|
10
10
|
Provider: import("react").Provider<{
|
|
11
11
|
useGetList: (filter?: Partial<Form1> | undefined) => Partial<Form1>[] | undefined;
|
|
12
12
|
useCreateList: () => ((list: Omit<Partial<Form1>, "createdAt" | "createdBy">[]) => Promise<(Partial<Form1> | null)[]>) | undefined;
|
|
13
13
|
useDeleteList: () => ((list: Pick<Partial<Form1>, "id">[]) => Promise<(Partial<Form1> | null)[]>) | undefined;
|
|
14
|
-
useGetItem: (
|
|
15
|
-
useItem: (
|
|
14
|
+
useGetItem: (filter?: Partial<Form1> | undefined) => Partial<Form1> | null | undefined;
|
|
15
|
+
useItem: (filter?: Partial<Form1> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<Form1> | null>;
|
|
16
16
|
}>;
|
|
17
|
-
useGetList: (filter?: Partial<Form1
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
FormAttachmentId?: string | null | undefined;
|
|
21
|
-
}) => Partial<Form1>[] | 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<Form1> | 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<Form1> | null | undefined, import("@dwidge/hooks-react").AsyncDispatch<import("react").SetStateAction<Partial<Form1> | null>> | undefined, changed: boolean, save: () => void, revert: () => void];
|
|
17
|
+
useGetList: (filter?: Partial<Form1> | undefined) => Partial<Form1>[] | undefined;
|
|
18
|
+
useGetItem: (filter?: Partial<Form1> | undefined) => Partial<Form1> | null | undefined;
|
|
19
|
+
useItem: (filter?: Partial<Form1> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<Form1> | null>;
|
|
32
20
|
useCreateList: () => ((list: Omit<Partial<Form1>, "createdAt" | "createdBy">[]) => Promise<(Partial<Form1> | null)[]>) | undefined;
|
|
33
21
|
useDeleteList: () => ((list: Pick<Partial<Form1>, "id">[]) => Promise<(Partial<Form1> | null)[]>) | undefined;
|
|
34
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormApi.d.ts","sourceRoot":"","sources":["../../../src/hooks/FormApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"FormApi.d.ts","sourceRoot":"","sources":["../../../src/hooks/FormApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;CAMlB,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export declare const FormsContext: import("react").Context<{
|
|
2
2
|
routes: {
|
|
3
|
-
|
|
4
|
-
FORM_ATTACHMENT_EDIT_SCREEN: string;
|
|
3
|
+
FORM_LIST_SCREEN: string;
|
|
5
4
|
FORM_EDIT_SCREEN: string;
|
|
6
|
-
|
|
5
|
+
SCHEMA_EDIT_SCREEN: string;
|
|
6
|
+
SCHEMA_SELECT_SCREEN: string;
|
|
7
7
|
};
|
|
8
8
|
useParams: () => {
|
|
9
|
+
SchemaId?: string | null | undefined;
|
|
9
10
|
FormId?: string | null | undefined;
|
|
10
|
-
FormAttachmentId?: string | null | undefined;
|
|
11
11
|
AttachmentId?: string | null | undefined;
|
|
12
12
|
};
|
|
13
13
|
}>;
|
|
14
14
|
export declare const useNavRoutes: () => {
|
|
15
|
-
|
|
16
|
-
FORM_ATTACHMENT_EDIT_SCREEN: string;
|
|
15
|
+
FORM_LIST_SCREEN: string;
|
|
17
16
|
FORM_EDIT_SCREEN: string;
|
|
18
|
-
|
|
17
|
+
SCHEMA_EDIT_SCREEN: string;
|
|
18
|
+
SCHEMA_SELECT_SCREEN: string;
|
|
19
19
|
};
|
|
20
20
|
//# sourceMappingURL=FormsContext.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Schema1 } from "../types/Schema1.js";
|
|
2
|
+
export declare const SchemaApi: {
|
|
3
|
+
Context: import("react").Context<{
|
|
4
|
+
useGetList: (filter?: Partial<Schema1> | undefined) => Partial<Schema1>[] | undefined;
|
|
5
|
+
useCreateList: () => ((list: Omit<Partial<Schema1>, "createdAt" | "createdBy">[]) => Promise<(Partial<Schema1> | null)[]>) | undefined;
|
|
6
|
+
useDeleteList: () => ((list: Pick<Partial<Schema1>, "id">[]) => Promise<(Partial<Schema1> | null)[]>) | undefined;
|
|
7
|
+
useGetItem: (filter?: Partial<Schema1> | undefined) => Partial<Schema1> | null | undefined;
|
|
8
|
+
useItem: (filter?: Partial<Schema1> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<Schema1> | null>;
|
|
9
|
+
}>;
|
|
10
|
+
Provider: import("react").Provider<{
|
|
11
|
+
useGetList: (filter?: Partial<Schema1> | undefined) => Partial<Schema1>[] | undefined;
|
|
12
|
+
useCreateList: () => ((list: Omit<Partial<Schema1>, "createdAt" | "createdBy">[]) => Promise<(Partial<Schema1> | null)[]>) | undefined;
|
|
13
|
+
useDeleteList: () => ((list: Pick<Partial<Schema1>, "id">[]) => Promise<(Partial<Schema1> | null)[]>) | undefined;
|
|
14
|
+
useGetItem: (filter?: Partial<Schema1> | undefined) => Partial<Schema1> | null | undefined;
|
|
15
|
+
useItem: (filter?: Partial<Schema1> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<Schema1> | null>;
|
|
16
|
+
}>;
|
|
17
|
+
useGetList: (filter?: Partial<Schema1> | undefined) => Partial<Schema1>[] | undefined;
|
|
18
|
+
useGetItem: (filter?: Partial<Schema1> | undefined) => Partial<Schema1> | null | undefined;
|
|
19
|
+
useItem: (filter?: Partial<Schema1> | undefined) => import("@dwidge/hooks-react").AsyncState<Partial<Schema1> | null>;
|
|
20
|
+
useCreateList: () => ((list: Omit<Partial<Schema1>, "createdAt" | "createdBy">[]) => Promise<(Partial<Schema1> | null)[]>) | undefined;
|
|
21
|
+
useDeleteList: () => ((list: Pick<Partial<Schema1>, "id">[]) => Promise<(Partial<Schema1> | null)[]>) | undefined;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=SchemaApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaApi.d.ts","sourceRoot":"","sources":["../../../src/hooks/SchemaApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;CAOpB,CAAC"}
|
|
@@ -1,35 +1,23 @@
|
|
|
1
1
|
import { AsyncState } from "@dwidge/hooks-react";
|
|
2
2
|
export type ApiItem = Record<string, string | number | boolean | null>;
|
|
3
|
-
export declare const createApi: <T extends ApiItem>(defaultFilter?: Partial<T>) => {
|
|
3
|
+
export declare const createApi: <T extends ApiItem>(name: string, defaultFilter?: Partial<T>) => {
|
|
4
4
|
Context: import("react").Context<{
|
|
5
5
|
useGetList: (filter?: Partial<T>) => undefined | Partial<T>[];
|
|
6
6
|
useCreateList: () => ((list: Omit<Partial<T>, "createdAt" | "createdBy">[]) => Promise<(Partial<T> | null)[]>) | undefined;
|
|
7
7
|
useDeleteList: () => ((list: Pick<Partial<T>, "id">[]) => Promise<(Partial<T> | null)[]>) | undefined;
|
|
8
|
-
useGetItem: (
|
|
9
|
-
useItem: (
|
|
8
|
+
useGetItem: (filter?: Partial<T>) => undefined | Partial<T> | null;
|
|
9
|
+
useItem: (filter?: Partial<T>) => AsyncState<Partial<T> | null>;
|
|
10
10
|
}>;
|
|
11
11
|
Provider: import("react").Provider<{
|
|
12
12
|
useGetList: (filter?: Partial<T>) => undefined | Partial<T>[];
|
|
13
13
|
useCreateList: () => ((list: Omit<Partial<T>, "createdAt" | "createdBy">[]) => Promise<(Partial<T> | null)[]>) | undefined;
|
|
14
14
|
useDeleteList: () => ((list: Pick<Partial<T>, "id">[]) => Promise<(Partial<T> | null)[]>) | undefined;
|
|
15
|
-
useGetItem: (
|
|
16
|
-
useItem: (
|
|
15
|
+
useGetItem: (filter?: Partial<T>) => undefined | Partial<T> | null;
|
|
16
|
+
useItem: (filter?: Partial<T>) => AsyncState<Partial<T> | null>;
|
|
17
17
|
}>;
|
|
18
|
-
useGetList: (filter?: Partial<T
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
FormAttachmentId?: string | null | undefined;
|
|
22
|
-
}) => Partial<T>[] | undefined;
|
|
23
|
-
useGetItem: (id?: Partial<T>["id"] | null, ids?: import("./useParams").Params & {
|
|
24
|
-
AttachmentId?: string | null | undefined;
|
|
25
|
-
FormId?: string | null | undefined;
|
|
26
|
-
FormAttachmentId?: string | null | undefined;
|
|
27
|
-
}) => Partial<T> | null | undefined;
|
|
28
|
-
useItem: (id?: Partial<T>["id"] | null, ids?: import("./useParams").Params & {
|
|
29
|
-
AttachmentId?: string | null | undefined;
|
|
30
|
-
FormId?: string | null | undefined;
|
|
31
|
-
FormAttachmentId?: string | null | undefined;
|
|
32
|
-
}) => [Partial<T> | null | undefined, import("@dwidge/hooks-react").AsyncDispatch<import("react").SetStateAction<Partial<T> | null>> | undefined, changed: boolean, save: () => void, revert: () => void];
|
|
18
|
+
useGetList: (filter?: Partial<T>) => Partial<T>[] | undefined;
|
|
19
|
+
useGetItem: (filter?: Partial<T>) => Partial<T> | null | undefined;
|
|
20
|
+
useItem: (filter?: Partial<T>) => AsyncState<Partial<T> | null>;
|
|
33
21
|
useCreateList: () => ((list: Omit<Partial<T>, "createdAt" | "createdBy">[]) => Promise<(Partial<T> | null)[]>) | undefined;
|
|
34
22
|
useDeleteList: () => ((list: Pick<Partial<T>, "id">[]) => Promise<(Partial<T> | null)[]>) | undefined;
|
|
35
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createApi.d.ts","sourceRoot":"","sources":["../../../src/hooks/createApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"createApi.d.ts","sourceRoot":"","sources":["../../../src/hooks/createApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC;AAEvE,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,OAAO,QACnC,MAAM,kBACG,OAAO,CAAC,CAAC,CAAC;;oBAqBX,CAAC,MAAM,CAAC,YAAQ,KAAK,SAAS,GAAG,YAAK;uBACnC,MAAM,CAAC,CAAC,IAAI,EAAE,6CAAK,KAAK,OAAO,CAAC,CAAC,aAAM,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS;uBAC5D,MAAM,CAAC,CAAC,IAAI,EAAE,wBAAK,KAAK,OAAO,CAAC,CAAC,aAAM,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS;oBAC/D,CAAC,MAAM,CAAC,YAAQ,KAAK,SAAS,gBAAS,IAAI;iBAC9C,CAAC,MAAM,CAAC,YAAQ,KAAK,UAAU,CAAC,aAAM,IAAI,CAAC;;;oBAJxC,CAAC,MAAM,CAAC,YAAQ,KAAK,SAAS,GAAG,YAAK;uBACnC,MAAM,CAAC,CAAC,IAAI,EAAE,6CAAK,KAAK,OAAO,CAAC,CAAC,aAAM,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS;uBAC5D,MAAM,CAAC,CAAC,IAAI,EAAE,wBAAK,KAAK,OAAO,CAAC,CAAC,aAAM,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS;oBAC/D,CAAC,MAAM,CAAC,YAAQ,KAAK,SAAS,gBAAS,IAAI;iBAC9C,CAAC,MAAM,CAAC,YAAQ,KAAK,UAAU,CAAC,aAAM,IAAI,CAAC;;;;;iCAHvB,6CAAK,KAAK,OAAO,CAAC,CAAC,aAAM,IAAI,CAAC,EAAE,CAAC;iCACjC,wBAAK,KAAK,OAAO,CAAC,CAAC,aAAM,IAAI,CAAC,EAAE,CAAC;CAqCjE,CAAC"}
|