@applica-software-guru/react-admin 1.3.182 → 1.3.184
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/Admin.d.ts +5 -8
- package/dist/Admin.d.ts.map +1 -1
- package/dist/AdminContext.d.ts +2 -4
- package/dist/AdminContext.d.ts.map +1 -1
- package/dist/ApplicaAdmin.d.ts +4 -24
- package/dist/ApplicaAdmin.d.ts.map +1 -1
- package/dist/components/@extended/Breadcrumbs.d.ts +2 -8
- package/dist/components/AuthBackground.d.ts +2 -1
- package/dist/components/AuthBackground.d.ts.map +1 -1
- package/dist/components/Layout/Drawer/Drawer.d.ts +2 -2
- package/dist/components/Layout/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Layout/Drawer/DrawerHeader.d.ts +2 -2
- package/dist/components/Layout/Drawer/DrawerHeader.d.ts.map +1 -1
- package/dist/components/Layout/Drawer/DrawerHeaderStyled.d.ts +1 -0
- package/dist/components/Layout/Drawer/DrawerHeaderStyled.d.ts.map +1 -1
- package/dist/components/Layout/Footer.d.ts +0 -11
- package/dist/components/Layout/Footer.d.ts.map +1 -1
- package/dist/components/Layout/Header/AppBarStyled.d.ts +7 -3
- package/dist/components/Layout/Header/AppBarStyled.d.ts.map +1 -1
- package/dist/components/Layout/Layout.d.ts.map +1 -1
- package/dist/components/Notification.d.ts +3 -6
- package/dist/components/Notification.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/ra-buttons/CreateInDialogButton.d.ts +3 -33
- package/dist/components/ra-buttons/CreateInDialogButton.d.ts.map +1 -1
- package/dist/components/ra-buttons/EditInDialogButton.d.ts +9 -22
- package/dist/components/ra-buttons/EditInDialogButton.d.ts.map +1 -1
- package/dist/components/ra-buttons/ImpersonateUserButton.d.ts +5 -10
- package/dist/components/ra-buttons/ImpersonateUserButton.d.ts.map +1 -1
- package/dist/components/ra-buttons/index.d.ts +3 -4
- package/dist/components/ra-buttons/index.d.ts.map +1 -1
- package/dist/components/ra-custom/ListItem.d.ts +1 -20
- package/dist/components/ra-custom/ListItem.d.ts.map +1 -1
- package/dist/components/ra-custom/index.d.ts +1 -2
- package/dist/components/ra-custom/index.d.ts.map +1 -1
- package/dist/components/ra-fields/ActionsField.d.ts +7 -21
- package/dist/components/ra-fields/ActionsField.d.ts.map +1 -1
- package/dist/components/ra-fields/AttachmentField.d.ts +2 -25
- package/dist/components/ra-fields/AttachmentField.d.ts.map +1 -1
- package/dist/components/ra-fields/BaseAttachmentField.d.ts +1 -15
- package/dist/components/ra-fields/BaseAttachmentField.d.ts.map +1 -1
- package/dist/components/ra-fields/CoverField.d.ts +10 -31
- package/dist/components/ra-fields/CoverField.d.ts.map +1 -1
- package/dist/components/ra-fields/DateAgoField.d.ts +6 -8
- package/dist/components/ra-fields/DateAgoField.d.ts.map +1 -1
- package/dist/components/ra-fields/DateField.d.ts +3 -5
- package/dist/components/ra-fields/DateField.d.ts.map +1 -1
- package/dist/components/ra-fields/EmailField.d.ts +3 -16
- package/dist/components/ra-fields/EmailField.d.ts.map +1 -1
- package/dist/components/ra-fields/FileField.d.ts +8 -25
- package/dist/components/ra-fields/FileField.d.ts.map +1 -1
- package/dist/components/ra-fields/FunctionField.d.ts +3 -6
- package/dist/components/ra-fields/FunctionField.d.ts.map +1 -1
- package/dist/components/ra-fields/ImageField.d.ts +3 -18
- package/dist/components/ra-fields/ImageField.d.ts.map +1 -1
- package/dist/components/ra-fields/LocalizedTextField.d.ts +3 -2
- package/dist/components/ra-fields/LocalizedTextField.d.ts.map +1 -1
- package/dist/components/ra-fields/ReadonlyField.d.ts +1 -1
- package/dist/components/ra-fields/ReadonlyField.d.ts.map +1 -1
- package/dist/components/ra-fields/ReferenceManyField.d.ts +7 -16
- package/dist/components/ra-fields/ReferenceManyField.d.ts.map +1 -1
- package/dist/components/ra-fields/SizeField.d.ts +6 -11
- package/dist/components/ra-fields/SizeField.d.ts.map +1 -1
- package/dist/components/ra-fields/TextField.d.ts +3 -5
- package/dist/components/ra-fields/TextField.d.ts.map +1 -1
- package/dist/components/ra-fields/index.d.ts +14 -15
- package/dist/components/ra-fields/index.d.ts.map +1 -1
- package/dist/components/ra-forms/CardForm.d.ts +22 -26
- package/dist/components/ra-forms/CardForm.d.ts.map +1 -1
- package/dist/components/ra-forms/ChangePasswordForm.d.ts +2 -1
- package/dist/components/ra-forms/ChangePasswordForm.d.ts.map +1 -1
- package/dist/components/ra-forms/Create.d.ts +3 -4
- package/dist/components/ra-forms/Create.d.ts.map +1 -1
- package/dist/components/ra-forms/Edit.d.ts +3 -2
- package/dist/components/ra-forms/Edit.d.ts.map +1 -1
- package/dist/components/ra-forms/FormHeader.d.ts +4 -20
- package/dist/components/ra-forms/FormHeader.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/Content.d.ts +1 -1
- package/dist/components/ra-forms/LongForm/Content.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/Form.d.ts +1 -1
- package/dist/components/ra-forms/LongForm/Form.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/NavMenu.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/Provider.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/Sidebar.d.ts +1 -1
- package/dist/components/ra-forms/LongForm/Sidebar.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/Tab.d.ts +2 -2
- package/dist/components/ra-forms/LongForm/Tab.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/hooks.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/index.d.ts +2 -2
- package/dist/components/ra-forms/LongForm/index.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/utils.d.ts +1 -1
- package/dist/components/ra-forms/LongForm/utils.d.ts.map +1 -1
- package/dist/components/ra-forms/Show.d.ts +3 -12
- package/dist/components/ra-forms/Show.d.ts.map +1 -1
- package/dist/components/ra-forms/SimpleForm.d.ts +1 -30
- package/dist/components/ra-forms/SimpleForm.d.ts.map +1 -1
- package/dist/components/ra-forms/SimpleFormIterator.d.ts +1 -3
- package/dist/components/ra-forms/SimpleFormIterator.d.ts.map +1 -1
- package/dist/components/ra-forms/TabbedForm.d.ts +5 -9
- package/dist/components/ra-forms/TabbedForm.d.ts.map +1 -1
- package/dist/components/ra-forms/TableForm/TableFormIterator.d.ts +21 -22
- package/dist/components/ra-forms/TableForm/TableFormIterator.d.ts.map +1 -1
- package/dist/components/ra-forms/TableForm/TableFormIteratorItem.d.ts +1 -1
- package/dist/components/ra-forms/TableForm/TableFormIteratorItem.d.ts.map +1 -1
- package/dist/components/ra-forms/TableForm/index.d.ts +1 -2
- package/dist/components/ra-forms/TableForm/index.d.ts.map +1 -1
- package/dist/components/ra-forms/Toolbar.d.ts +3 -9
- package/dist/components/ra-forms/Toolbar.d.ts.map +1 -1
- package/dist/components/ra-forms/index.d.ts +12 -14
- package/dist/components/ra-forms/index.d.ts.map +1 -1
- package/dist/components/ra-inputs/ArrayInput.d.ts +3 -2
- package/dist/components/ra-inputs/ArrayInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/AttachmentInput.d.ts +2 -32
- package/dist/components/ra-inputs/AttachmentInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/AutocompleteArrayInput.d.ts +3 -7
- package/dist/components/ra-inputs/AutocompleteArrayInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/AutocompleteInput.d.ts +3 -5
- package/dist/components/ra-inputs/AutocompleteInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/BooleanInput.d.ts +3 -22
- package/dist/components/ra-inputs/BooleanInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/DateInput.d.ts +3 -16
- package/dist/components/ra-inputs/DateInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/DateTimeInput.d.ts +2 -19
- package/dist/components/ra-inputs/DateTimeInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/FileInput.d.ts +9 -32
- package/dist/components/ra-inputs/FileInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/ImageInput.d.ts +9 -12
- package/dist/components/ra-inputs/ImageInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/LabeledArrayInput.d.ts +2 -24
- package/dist/components/ra-inputs/LabeledArrayInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/LabeledInput.d.ts +1 -20
- package/dist/components/ra-inputs/LabeledInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/LocalizedTextInput.d.ts +2 -2
- package/dist/components/ra-inputs/LocalizedTextInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/NumberInput.d.ts +3 -22
- package/dist/components/ra-inputs/NumberInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/RecordInput.d.ts +7 -13
- package/dist/components/ra-inputs/RecordInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/ReferenceArrayInput.d.ts +6 -22
- package/dist/components/ra-inputs/ReferenceArrayInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/ReferenceInput.d.ts +6 -23
- package/dist/components/ra-inputs/ReferenceInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/ReferenceManyInput.d.ts +10 -12
- package/dist/components/ra-inputs/ReferenceManyInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/SearchInput.d.ts +3 -1
- package/dist/components/ra-inputs/SearchInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/SelectArrayInput.d.ts +3 -26
- package/dist/components/ra-inputs/SelectArrayInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/SelectInput.d.ts +3 -2
- package/dist/components/ra-inputs/SelectInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/SmartTextInput.d.ts +6 -26
- package/dist/components/ra-inputs/SmartTextInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/TextInput.d.ts +2 -16
- package/dist/components/ra-inputs/TextInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/TimeInput.d.ts +3 -16
- package/dist/components/ra-inputs/TimeInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/index.d.ts +23 -24
- package/dist/components/ra-inputs/index.d.ts.map +1 -1
- package/dist/components/ra-lists/BulkActionsToolbar.d.ts +1 -8
- package/dist/components/ra-lists/BulkActionsToolbar.d.ts.map +1 -1
- package/dist/components/ra-lists/BulkFloatingActionsToolbar.d.ts +1 -7
- package/dist/components/ra-lists/BulkFloatingActionsToolbar.d.ts.map +1 -1
- package/dist/components/ra-lists/Datagrid/Datagrid.d.ts +1 -1
- package/dist/components/ra-lists/Datagrid/Datagrid.d.ts.map +1 -1
- package/dist/components/ra-lists/Datagrid/DatagridContextProvider.d.ts +1 -1
- package/dist/components/ra-lists/Datagrid/DatagridContextProvider.d.ts.map +1 -1
- package/dist/components/ra-lists/Datagrid/index.d.ts +1 -4
- package/dist/components/ra-lists/Datagrid/index.d.ts.map +1 -1
- package/dist/components/ra-lists/Empty.d.ts +1 -11
- package/dist/components/ra-lists/Empty.d.ts.map +1 -1
- package/dist/components/ra-lists/List.d.ts +2 -26
- package/dist/components/ra-lists/List.d.ts.map +1 -1
- package/dist/components/ra-lists/ListView.d.ts +1 -16
- package/dist/components/ra-lists/ListView.d.ts.map +1 -1
- package/dist/components/ra-lists/NotificationList/NotificationList.d.ts +4 -3
- package/dist/components/ra-lists/NotificationList/NotificationList.d.ts.map +1 -1
- package/dist/components/ra-lists/NotificationList/buttons/MarkAsReadedButton.d.ts +4 -0
- package/dist/components/ra-lists/NotificationList/buttons/MarkAsReadedButton.d.ts.map +1 -0
- package/dist/components/ra-lists/NotificationList/buttons/MarkAsUnreadedButton.d.ts +4 -0
- package/dist/components/ra-lists/NotificationList/buttons/MarkAsUnreadedButton.d.ts.map +1 -0
- package/dist/components/ra-lists/NotificationList/buttons/index.d.ts +3 -0
- package/dist/components/ra-lists/NotificationList/buttons/index.d.ts.map +1 -0
- package/dist/components/ra-lists/NotificationList/fields/NotificationField.d.ts +4 -0
- package/dist/components/ra-lists/NotificationList/fields/NotificationField.d.ts.map +1 -0
- package/dist/components/ra-lists/NotificationList/fields/index.d.ts +2 -0
- package/dist/components/ra-lists/NotificationList/fields/index.d.ts.map +1 -0
- package/dist/components/ra-lists/NotificationList/index.d.ts +1 -2
- package/dist/components/ra-lists/NotificationList/index.d.ts.map +1 -1
- package/dist/components/ra-lists/SimpleList.d.ts +3 -3
- package/dist/components/ra-lists/SimpleList.d.ts.map +1 -1
- package/dist/components/ra-lists/index.d.ts +7 -7
- package/dist/components/ra-lists/index.d.ts.map +1 -1
- package/dist/components/ra-pages/LoginPage.d.ts +2 -16
- package/dist/components/ra-pages/LoginPage.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +67 -67
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +11554 -12406
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +67 -67
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/{Admin.jsx → Admin.tsx} +6 -14
- package/src/AdminContext.tsx +12 -14
- package/src/ApplicaAdmin.tsx +22 -38
- package/src/components/@extended/Breadcrumbs.jsx +2 -6
- package/src/components/AuthBackground.tsx +2 -2
- package/src/components/Layout/Drawer/Drawer.tsx +2 -3
- package/src/components/Layout/Drawer/DrawerHeader.tsx +2 -2
- package/src/components/Layout/Drawer/DrawerHeaderStyled.jsx +2 -8
- package/src/components/Layout/Footer.tsx +2 -13
- package/src/components/Layout/Header/AppBarStyled.tsx +29 -0
- package/src/components/Layout/Layout.tsx +0 -1
- package/src/components/Notification.tsx +15 -0
- package/src/components/index.jsx +1 -0
- package/src/components/ra-buttons/CreateInDialogButton.tsx +11 -47
- package/src/components/ra-buttons/{EditInDialogButton.jsx → EditInDialogButton.tsx} +20 -21
- package/src/components/ra-buttons/{ImpersonateUserButton.jsx → ImpersonateUserButton.tsx} +8 -9
- package/src/components/ra-buttons/index.ts +3 -0
- package/src/components/ra-custom/ListItem.tsx +4 -39
- package/src/components/ra-custom/index.ts +1 -0
- package/src/components/ra-fields/{ActionsField.jsx → ActionsField.tsx} +8 -16
- package/src/components/ra-fields/AttachmentField.tsx +4 -14
- package/src/components/ra-fields/BaseAttachmentField.tsx +2 -16
- package/src/components/ra-fields/{CoverField.jsx → CoverField.tsx} +17 -28
- package/src/components/ra-fields/{DateAgoField.jsx → DateAgoField.tsx} +8 -11
- package/src/components/ra-fields/DateField.tsx +14 -0
- package/src/components/ra-fields/EmailField.tsx +13 -0
- package/src/components/ra-fields/{FileField.jsx → FileField.tsx} +17 -13
- package/src/components/ra-fields/FunctionField.tsx +7 -0
- package/src/components/ra-fields/{ImageField.jsx → ImageField.tsx} +3 -9
- package/src/components/ra-fields/LocalizedTextField.tsx +3 -3
- package/src/components/ra-fields/ReadonlyField.tsx +4 -3
- package/src/components/ra-fields/ReferenceManyField.tsx +24 -35
- package/src/components/ra-fields/{SizeField.jsx → SizeField.tsx} +8 -9
- package/src/components/ra-fields/TextField.tsx +14 -0
- package/src/components/ra-fields/index.ts +14 -0
- package/src/components/ra-forms/CardForm.tsx +102 -0
- package/src/components/ra-forms/ChangePasswordForm.tsx +4 -6
- package/src/components/ra-forms/Create.tsx +6 -8
- package/src/components/ra-forms/{Edit.jsx → Edit.tsx} +5 -5
- package/src/components/ra-forms/FormHeader.tsx +5 -23
- package/src/components/ra-forms/LongForm/Content.tsx +1 -1
- package/src/components/ra-forms/LongForm/Form.tsx +3 -3
- package/src/components/ra-forms/LongForm/NavMenu.tsx +3 -3
- package/src/components/ra-forms/LongForm/Provider.tsx +3 -4
- package/src/components/ra-forms/LongForm/Sidebar.tsx +2 -2
- package/src/components/ra-forms/LongForm/Tab.tsx +5 -5
- package/src/components/ra-forms/LongForm/hooks.tsx +3 -3
- package/src/components/ra-forms/LongForm/index.ts +3 -13
- package/src/components/ra-forms/LongForm/utils.ts +1 -1
- package/src/components/ra-forms/Show.tsx +21 -19
- package/src/components/ra-forms/SimpleForm.tsx +23 -40
- package/src/components/ra-forms/SimpleFormIterator.tsx +26 -24
- package/src/components/ra-forms/TabbedForm.tsx +36 -27
- package/src/components/ra-forms/TableForm/TableFormIterator.tsx +6 -34
- package/src/components/ra-forms/TableForm/TableFormIteratorItem.tsx +3 -4
- package/src/components/ra-forms/TableForm/index.ts +1 -3
- package/src/components/ra-forms/{Toolbar.jsx → Toolbar.tsx} +6 -11
- package/src/components/ra-forms/index.ts +12 -0
- package/src/components/ra-inputs/ArrayInput.tsx +15 -15
- package/src/components/ra-inputs/AttachmentInput.tsx +17 -25
- package/src/components/ra-inputs/AutocompleteArrayInput.tsx +27 -0
- package/src/components/ra-inputs/{AutocompleteInput.jsx → AutocompleteInput.tsx} +8 -18
- package/src/components/ra-inputs/{BooleanInput.jsx → BooleanInput.tsx} +8 -15
- package/src/components/ra-inputs/DateInput.tsx +24 -0
- package/src/components/ra-inputs/DateTimeInput.tsx +10 -18
- package/src/components/ra-inputs/{FileInput.jsx → FileInput.tsx} +28 -29
- package/src/components/ra-inputs/ImageInput.tsx +44 -0
- package/src/components/ra-inputs/LabeledArrayInput.tsx +8 -31
- package/src/components/ra-inputs/LabeledInput.tsx +12 -24
- package/src/components/ra-inputs/LocalizedTextInput.tsx +7 -7
- package/src/components/ra-inputs/NumberInput.tsx +24 -0
- package/src/components/ra-inputs/{RecordInput.jsx → RecordInput.tsx} +20 -18
- package/src/components/ra-inputs/ReferenceArrayInput.tsx +19 -0
- package/src/components/ra-inputs/ReferenceInput.tsx +19 -0
- package/src/components/ra-inputs/ReferenceManyInput.tsx +26 -0
- package/src/components/ra-inputs/SearchInput.tsx +12 -0
- package/src/components/ra-inputs/SelectArrayInput.tsx +33 -0
- package/src/components/ra-inputs/SelectInput.tsx +8 -10
- package/src/components/ra-inputs/{SmartTextInput.jsx → SmartTextInput.tsx} +10 -20
- package/src/components/ra-inputs/TextInput.tsx +9 -12
- package/src/components/ra-inputs/TimeInput.tsx +39 -0
- package/src/components/ra-inputs/index.ts +23 -0
- package/src/components/ra-lists/BulkActionsToolbar.tsx +6 -15
- package/src/components/ra-lists/BulkFloatingActionsToolbar.tsx +5 -9
- package/src/components/ra-lists/Datagrid/Datagrid.tsx +5 -6
- package/src/components/ra-lists/Datagrid/DatagridContextProvider.tsx +1 -1
- package/src/components/ra-lists/Datagrid/index.tsx +2 -6
- package/src/components/ra-lists/Empty.tsx +5 -16
- package/src/components/ra-lists/List.tsx +11 -47
- package/src/components/ra-lists/ListView.tsx +4 -19
- package/src/components/ra-lists/NotificationList/{NotificationList.jsx → NotificationList.tsx} +7 -8
- package/src/components/ra-lists/NotificationList/{button/MarkAsReadedButton.jsx → buttons/MarkAsReadedButton.tsx} +9 -9
- package/src/components/ra-lists/NotificationList/{button/MarkAsUnreadedButton.jsx → buttons/MarkAsUnreadedButton.tsx} +7 -6
- package/src/components/ra-lists/NotificationList/buttons/index.ts +2 -0
- package/src/components/ra-lists/NotificationList/{field/NotificationField.jsx → fields/NotificationField.tsx} +5 -5
- package/src/components/ra-lists/NotificationList/fields/index.ts +1 -0
- package/src/components/ra-lists/NotificationList/index.ts +1 -0
- package/src/components/ra-lists/SimpleList.tsx +2 -2
- package/src/components/ra-lists/index.ts +7 -7
- package/src/components/ra-pages/LoginPage.tsx +11 -16
- package/vite.config.js +84 -71
- package/dist/components/ra-lists/NotificationList/button/MarkAsReadedButton.d.ts +0 -3
- package/dist/components/ra-lists/NotificationList/button/MarkAsReadedButton.d.ts.map +0 -1
- package/dist/components/ra-lists/NotificationList/button/MarkAsUnreadedButton.d.ts +0 -3
- package/dist/components/ra-lists/NotificationList/button/MarkAsUnreadedButton.d.ts.map +0 -1
- package/dist/components/ra-lists/NotificationList/button/index.d.ts +0 -3
- package/dist/components/ra-lists/NotificationList/button/index.d.ts.map +0 -1
- package/dist/components/ra-lists/NotificationList/field/NotificationField.d.ts +0 -3
- package/dist/components/ra-lists/NotificationList/field/NotificationField.d.ts.map +0 -1
- package/dist/components/ra-lists/NotificationList/field/index.d.ts +0 -2
- package/dist/components/ra-lists/NotificationList/field/index.d.ts.map +0 -1
- package/src/components/Layout/Header/AppBarStyled.jsx +0 -32
- package/src/components/Notification.jsx +0 -13
- package/src/components/ra-buttons/index.jsx +0 -4
- package/src/components/ra-custom/index.tsx +0 -2
- package/src/components/ra-fields/DateField.jsx +0 -27
- package/src/components/ra-fields/EmailField.jsx +0 -27
- package/src/components/ra-fields/FunctionField.jsx +0 -9
- package/src/components/ra-fields/TextField.jsx +0 -27
- package/src/components/ra-fields/index.jsx +0 -30
- package/src/components/ra-forms/CardForm.jsx +0 -107
- package/src/components/ra-forms/index.jsx +0 -29
- package/src/components/ra-inputs/AutocompleteArrayInput.jsx +0 -35
- package/src/components/ra-inputs/DateInput.jsx +0 -30
- package/src/components/ra-inputs/ImageInput.jsx +0 -45
- package/src/components/ra-inputs/NumberInput.jsx +0 -28
- package/src/components/ra-inputs/ReferenceArrayInput.jsx +0 -23
- package/src/components/ra-inputs/ReferenceInput.jsx +0 -23
- package/src/components/ra-inputs/ReferenceManyInput.jsx +0 -33
- package/src/components/ra-inputs/SearchInput.jsx +0 -14
- package/src/components/ra-inputs/SelectArrayInput.jsx +0 -47
- package/src/components/ra-inputs/TimeInput.jsx +0 -46
- package/src/components/ra-inputs/index.jsx +0 -48
- package/src/components/ra-lists/NotificationList/button/index.jsx +0 -2
- package/src/components/ra-lists/NotificationList/field/index.jsx +0 -1
- package/src/components/ra-lists/NotificationList/index.jsx +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MarkAsUnreadedButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ra-lists/NotificationList/button/MarkAsUnreadedButton.jsx"],"names":[],"mappings":";AAcA,iFAuCC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ra-lists/NotificationList/button/index.jsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ra-lists/NotificationList/field/NotificationField.jsx"],"names":[],"mappings":";AAMA,wFA6DC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ra-lists/NotificationList/field/index.jsx"],"names":[],"mappings":""}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import AppBar from '@mui/material/AppBar';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { styled } from '@mui/material/styles';
|
|
4
|
-
import { useThemeConfig } from '../../../hooks';
|
|
5
|
-
|
|
6
|
-
const AppBarStyled = styled(AppBar, { shouldForwardProp: (prop) => prop !== 'open' })(({ theme, open }) => {
|
|
7
|
-
const { drawerWidth } = useThemeConfig();
|
|
8
|
-
return {
|
|
9
|
-
zIndex: theme.zIndex.drawer + 1,
|
|
10
|
-
transition: theme.transitions.create(['width', 'margin'], {
|
|
11
|
-
easing: theme.transitions.easing.sharp,
|
|
12
|
-
duration: theme.transitions.duration.leavingScreen
|
|
13
|
-
}),
|
|
14
|
-
...(!open && {
|
|
15
|
-
width: `calc(100% - ${theme.spacing(7.5)})`
|
|
16
|
-
}),
|
|
17
|
-
...(open && {
|
|
18
|
-
marginLeft: drawerWidth,
|
|
19
|
-
width: `calc(100% - ${drawerWidth}px)`,
|
|
20
|
-
transition: theme.transitions.create(['width', 'margin'], {
|
|
21
|
-
easing: theme.transitions.easing.sharp,
|
|
22
|
-
duration: theme.transitions.duration.enteringScreen
|
|
23
|
-
})
|
|
24
|
-
})
|
|
25
|
-
};
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
AppBarStyled.propTypes = {
|
|
29
|
-
open: PropTypes.bool
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export default AppBarStyled;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Notification as RaNotification } from 'react-admin';
|
|
2
|
-
import { styled } from '@mui/material/styles';
|
|
3
|
-
|
|
4
|
-
const ApplicaStyledNotification = styled(
|
|
5
|
-
RaNotification,
|
|
6
|
-
{}
|
|
7
|
-
)(({ theme }) => ({
|
|
8
|
-
'& *': {
|
|
9
|
-
fontSize: theme.typography.body1.fontSize
|
|
10
|
-
}
|
|
11
|
-
}));
|
|
12
|
-
|
|
13
|
-
export default ApplicaStyledNotification;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { DateField as RaDateField } from 'react-admin';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { styled } from '@mui/material/styles';
|
|
4
|
-
|
|
5
|
-
const ApplicaStyledDateField = styled(RaDateField, {
|
|
6
|
-
name: 'RaApplicaDateField',
|
|
7
|
-
slot: 'Root'
|
|
8
|
-
})(() => ({}));
|
|
9
|
-
|
|
10
|
-
ApplicaStyledDateField.propTypes = {
|
|
11
|
-
...RaDateField.propTypes
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const DateField = (props) => {
|
|
15
|
-
return <ApplicaStyledDateField {...props} />;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
DateField.defaultProps = {
|
|
19
|
-
...RaDateField.defaultProps,
|
|
20
|
-
variant: 'body1'
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
DateField.propTypes = {
|
|
24
|
-
...RaDateField.propTypes
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default DateField;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { EmailField as RaEmailField } from 'react-admin';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { styled } from '@mui/material/styles';
|
|
4
|
-
|
|
5
|
-
const ApplicaStyledEmailField = styled(RaEmailField, {
|
|
6
|
-
name: 'RaApplicaEmailField',
|
|
7
|
-
slot: 'Root'
|
|
8
|
-
})(() => ({}));
|
|
9
|
-
|
|
10
|
-
ApplicaStyledEmailField.propTypes = {
|
|
11
|
-
...RaEmailField.propTypes
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const EmailField = (props) => {
|
|
15
|
-
return <ApplicaStyledEmailField {...props} />;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
EmailField.defaultProps = {
|
|
19
|
-
...RaEmailField.defaultProps,
|
|
20
|
-
variant: 'body1'
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
EmailField.propTypes = {
|
|
24
|
-
...RaEmailField.propTypes
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default EmailField;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { TextField as RaTextField } from 'react-admin';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { styled } from '@mui/material/styles';
|
|
4
|
-
|
|
5
|
-
const ApplicaStyledTextField = styled(RaTextField, {
|
|
6
|
-
name: 'RaApplicaTextField',
|
|
7
|
-
slot: 'Root'
|
|
8
|
-
})(() => ({}));
|
|
9
|
-
|
|
10
|
-
ApplicaStyledTextField.propTypes = {
|
|
11
|
-
...RaTextField.propTypes
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const TextField = (props) => {
|
|
15
|
-
return <ApplicaStyledTextField {...props} />;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
TextField.defaultProps = {
|
|
19
|
-
...RaTextField.defaultProps,
|
|
20
|
-
variant: 'body1'
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
TextField.propTypes = {
|
|
24
|
-
...RaTextField.propTypes
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default TextField;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import ActionsField from './ActionsField';
|
|
2
|
-
import AttachmentField from './AttachmentField';
|
|
3
|
-
import CoverField from './CoverField';
|
|
4
|
-
import DateAgoField from './DateAgoField';
|
|
5
|
-
import DateField from './DateField';
|
|
6
|
-
import EmailField from './EmailField';
|
|
7
|
-
import FileField from './FileField';
|
|
8
|
-
import FunctionField from './FunctionField';
|
|
9
|
-
import ImageField from './ImageField';
|
|
10
|
-
import LocalizedTextField from './LocalizedTextField';
|
|
11
|
-
import ReadonlyField from './ReadonlyField';
|
|
12
|
-
import ReferenceManyField from './ReferenceManyField';
|
|
13
|
-
import SizeField from './SizeField';
|
|
14
|
-
import TextField from './TextField';
|
|
15
|
-
export {
|
|
16
|
-
ActionsField,
|
|
17
|
-
AttachmentField,
|
|
18
|
-
CoverField,
|
|
19
|
-
DateAgoField,
|
|
20
|
-
DateField,
|
|
21
|
-
EmailField,
|
|
22
|
-
FileField,
|
|
23
|
-
FunctionField,
|
|
24
|
-
ImageField,
|
|
25
|
-
LocalizedTextField,
|
|
26
|
-
ReadonlyField,
|
|
27
|
-
ReferenceManyField,
|
|
28
|
-
SizeField,
|
|
29
|
-
TextField
|
|
30
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { Form, SaveButton, useResourceContext, useTranslate } from 'react-admin';
|
|
2
|
-
import { Grid, Stack } from '@mui/material';
|
|
3
|
-
import React, { Fragment, useMemo } from 'react';
|
|
4
|
-
|
|
5
|
-
import MainCard from '../MainCard';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
|
-
import Toolbar from './Toolbar';
|
|
8
|
-
import { styled } from '@mui/material/styles';
|
|
9
|
-
import { useThemeConfig } from '../../hooks';
|
|
10
|
-
|
|
11
|
-
const Section = ({ children, content, title, subheader, secondary, toolbar, ...gridProps }) => {
|
|
12
|
-
const translate = useTranslate();
|
|
13
|
-
const resource = useResourceContext();
|
|
14
|
-
const { cardTitle, cardSubheader } = useMemo(() => {
|
|
15
|
-
const defaultTitle = title || `resources.${resource}.title`;
|
|
16
|
-
return {
|
|
17
|
-
cardTitle: translate(defaultTitle, { _: defaultTitle }),
|
|
18
|
-
cardSubheader: subheader !== null ? translate(subheader, { _: subheader }) : null
|
|
19
|
-
};
|
|
20
|
-
}, [resource, subheader, title, translate]);
|
|
21
|
-
return (
|
|
22
|
-
<Grid item {...gridProps}>
|
|
23
|
-
<MainCard content={content} title={cardTitle} subheader={cardSubheader} secondary={secondary} divider>
|
|
24
|
-
<Fragment>
|
|
25
|
-
{children}
|
|
26
|
-
{toolbar === true ? (
|
|
27
|
-
<Toolbar>
|
|
28
|
-
<SaveButton />
|
|
29
|
-
</Toolbar>
|
|
30
|
-
) : (
|
|
31
|
-
toolbar
|
|
32
|
-
)}
|
|
33
|
-
</Fragment>
|
|
34
|
-
</MainCard>
|
|
35
|
-
</Grid>
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
Section.defaultProps = {
|
|
40
|
-
...Grid.defaultProps,
|
|
41
|
-
content: true,
|
|
42
|
-
subheader: null,
|
|
43
|
-
title: null,
|
|
44
|
-
secondary: null,
|
|
45
|
-
toolbar: false,
|
|
46
|
-
item: true,
|
|
47
|
-
|
|
48
|
-
lg: 12,
|
|
49
|
-
md: 12,
|
|
50
|
-
sm: 12,
|
|
51
|
-
xs: 12
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
Section.propTypes = {
|
|
55
|
-
...Grid.propTypes,
|
|
56
|
-
children: PropTypes.oneOfType([PropTypes.node, PropTypes.arrayOf(PropTypes.node)]),
|
|
57
|
-
contained: PropTypes.bool,
|
|
58
|
-
content: PropTypes.bool,
|
|
59
|
-
subheader: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
60
|
-
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
61
|
-
secondary: PropTypes.oneOfType([PropTypes.node, PropTypes.string, PropTypes.object]),
|
|
62
|
-
spacing: PropTypes.number,
|
|
63
|
-
toolbar: PropTypes.oneOfType([PropTypes.node, PropTypes.bool])
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const StyledForm = styled(Form, {
|
|
67
|
-
name: 'RaApplicaCardForm',
|
|
68
|
-
slot: 'root'
|
|
69
|
-
})(({ theme, spacing }) => ({
|
|
70
|
-
backgroundColor: 'transparent',
|
|
71
|
-
'& .RaToolbar-desktopToolbar': {
|
|
72
|
-
marginTop: theme.spacing(spacing * 2),
|
|
73
|
-
padding: 0
|
|
74
|
-
}
|
|
75
|
-
}));
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @see https://mui.com/material-ui/react-stack/
|
|
79
|
-
*/
|
|
80
|
-
const CardForm = ({ children, spacing, defaultValues, ...gridProps }) => {
|
|
81
|
-
const { spacing: themeSpacing } = useThemeConfig();
|
|
82
|
-
return (
|
|
83
|
-
<StyledForm defaultValues={defaultValues} spacing={spacing || themeSpacing}>
|
|
84
|
-
<Grid container {...gridProps} spacing={spacing || themeSpacing}>
|
|
85
|
-
{children}
|
|
86
|
-
</Grid>
|
|
87
|
-
</StyledForm>
|
|
88
|
-
);
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
CardForm.propTypes = {
|
|
92
|
-
...Grid.propTypes,
|
|
93
|
-
...Form.propTypes,
|
|
94
|
-
children: PropTypes.oneOfType([PropTypes.node, PropTypes.arrayOf(PropTypes.node)]),
|
|
95
|
-
spacing: PropTypes.number,
|
|
96
|
-
defaultValues: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),
|
|
97
|
-
record: PropTypes.object,
|
|
98
|
-
validate: PropTypes.func
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
CardForm.defaultProps = {
|
|
102
|
-
...Stack.defaultProps
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
CardForm.Section = Section;
|
|
106
|
-
|
|
107
|
-
export default CardForm;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import Create, { useResourceDefaultValues } from './Create';
|
|
2
|
-
|
|
3
|
-
import CardForm from './CardForm';
|
|
4
|
-
import ChangePasswordForm from './ChangePasswordForm';
|
|
5
|
-
import Edit from './Edit';
|
|
6
|
-
import FormHeader from './FormHeader';
|
|
7
|
-
import LongForm from './LongForm';
|
|
8
|
-
import Show from './Show';
|
|
9
|
-
import SimpleForm from './SimpleForm';
|
|
10
|
-
import SimpleFormIterator from './SimpleFormIterator';
|
|
11
|
-
import TabbedForm from './TabbedForm';
|
|
12
|
-
import TableFormIterator from './TableForm';
|
|
13
|
-
import Toolbar from './Toolbar';
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
CardForm,
|
|
17
|
-
ChangePasswordForm,
|
|
18
|
-
Create,
|
|
19
|
-
Edit,
|
|
20
|
-
FormHeader,
|
|
21
|
-
LongForm,
|
|
22
|
-
Show,
|
|
23
|
-
SimpleForm,
|
|
24
|
-
SimpleFormIterator,
|
|
25
|
-
TabbedForm,
|
|
26
|
-
TableFormIterator,
|
|
27
|
-
Toolbar,
|
|
28
|
-
useResourceDefaultValues
|
|
29
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import LabeledInput from './LabeledInput';
|
|
2
|
-
import { AutocompleteArrayInput as RaAutocompleteArrayInput } from 'react-admin';
|
|
3
|
-
import { styled } from '@mui/material/styles';
|
|
4
|
-
|
|
5
|
-
const StyledAutocompleteArrayInput = styled(RaAutocompleteArrayInput, {
|
|
6
|
-
name: 'StyledAutocompleteInput',
|
|
7
|
-
root: 'root'
|
|
8
|
-
})(({ label }) => ({
|
|
9
|
-
'& legend': {
|
|
10
|
-
width: label === false ? 0 : 'auto'
|
|
11
|
-
},
|
|
12
|
-
'& .MuiAutocomplete-inputRoot': {
|
|
13
|
-
padding: `0px 9px`
|
|
14
|
-
}
|
|
15
|
-
// '& label.MuiFormLabel-root[data-shrink="false"]': {
|
|
16
|
-
// minHeight: '18px'
|
|
17
|
-
// }
|
|
18
|
-
}));
|
|
19
|
-
|
|
20
|
-
// eslint-disable-next-line no-unused-vars
|
|
21
|
-
const AutocompleteArrayInput = ({ ...props }) => (
|
|
22
|
-
<LabeledInput {...props}>
|
|
23
|
-
<StyledAutocompleteArrayInput />
|
|
24
|
-
</LabeledInput>
|
|
25
|
-
);
|
|
26
|
-
AutocompleteArrayInput.propTypes = {
|
|
27
|
-
...RaAutocompleteArrayInput.propTypes,
|
|
28
|
-
...LabeledInput.propTypes
|
|
29
|
-
};
|
|
30
|
-
AutocompleteArrayInput.defaultProps = {
|
|
31
|
-
...RaAutocompleteArrayInput.defaultProps,
|
|
32
|
-
size: 'small'
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export default AutocompleteArrayInput;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import LabeledInput from './LabeledInput';
|
|
2
|
-
import { DateInput as RaDateInput } from 'react-admin';
|
|
3
|
-
import { styled } from '@mui/material/styles';
|
|
4
|
-
|
|
5
|
-
const StyledDateInput = styled(RaDateInput, {
|
|
6
|
-
name: 'RaApplicaDateInput',
|
|
7
|
-
slot: 'root'
|
|
8
|
-
})(({ label }) => ({
|
|
9
|
-
'& legend': {
|
|
10
|
-
width: label === false ? 0 : 'auto'
|
|
11
|
-
}
|
|
12
|
-
}));
|
|
13
|
-
|
|
14
|
-
const DateInput = (props) => (
|
|
15
|
-
<LabeledInput {...props}>
|
|
16
|
-
<StyledDateInput />
|
|
17
|
-
</LabeledInput>
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
DateInput.propTypes = {
|
|
21
|
-
...RaDateInput.propTypes,
|
|
22
|
-
...LabeledInput.propTypes
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
DateInput.defaultProps = {
|
|
26
|
-
...RaDateInput.defaultProps,
|
|
27
|
-
...LabeledInput.defaultProps
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export default DateInput;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ImageInput as RaImageInput, useInput, useRecordContext } from 'react-admin';
|
|
2
|
-
|
|
3
|
-
import { CoverField } from '../ra-fields';
|
|
4
|
-
import LabeledInput from './LabeledInput';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { get } from 'lodash';
|
|
8
|
-
import { useWatch } from 'react-hook-form';
|
|
9
|
-
|
|
10
|
-
const ImageInput = ({ children, title, ...props }) => {
|
|
11
|
-
const file = useWatch({ name: props.source });
|
|
12
|
-
const record = useRecordContext(props);
|
|
13
|
-
const { source } = props;
|
|
14
|
-
useInput({ source: `__image__${props?.source}`, defaultValue: props?.source });
|
|
15
|
-
return (
|
|
16
|
-
<LabeledInput {...props}>
|
|
17
|
-
<RaImageInput accept="image/*">
|
|
18
|
-
{React.cloneElement(children, {
|
|
19
|
-
...children.props,
|
|
20
|
-
title,
|
|
21
|
-
source,
|
|
22
|
-
record: {
|
|
23
|
-
...record,
|
|
24
|
-
[source]: file?.title || get(record, source),
|
|
25
|
-
[`_${source}`]: file?.src || get(record, `_${source}`)
|
|
26
|
-
}
|
|
27
|
-
})}
|
|
28
|
-
</RaImageInput>
|
|
29
|
-
</LabeledInput>
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
ImageInput.defaultProps = {
|
|
33
|
-
children: <CoverField />,
|
|
34
|
-
multiple: false
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
ImageInput.propTypes = {
|
|
38
|
-
...RaImageInput.propTypes,
|
|
39
|
-
source: PropTypes.string,
|
|
40
|
-
title: PropTypes.string,
|
|
41
|
-
children: PropTypes.node,
|
|
42
|
-
multiple: PropTypes.bool
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export default ImageInput;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import LabeledInput from './LabeledInput';
|
|
2
|
-
import { NumberInput as RaNumberInput } from 'react-admin';
|
|
3
|
-
import { styled } from '@mui/material/styles';
|
|
4
|
-
const StyledNumberInput = styled(RaNumberInput, {
|
|
5
|
-
name: 'RaApplicaNumberInput',
|
|
6
|
-
slot: 'root'
|
|
7
|
-
})(({ label }) => ({
|
|
8
|
-
'& legend': {
|
|
9
|
-
width: label === false ? 0 : 'auto'
|
|
10
|
-
}
|
|
11
|
-
}));
|
|
12
|
-
const NumberInput = (props) => (
|
|
13
|
-
<LabeledInput {...props}>
|
|
14
|
-
<StyledNumberInput />
|
|
15
|
-
</LabeledInput>
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
NumberInput.propTypes = {
|
|
19
|
-
...RaNumberInput.propTypes,
|
|
20
|
-
...LabeledInput.propTypes
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
NumberInput.defaultProps = {
|
|
24
|
-
...RaNumberInput.defaultProps,
|
|
25
|
-
...LabeledInput.defaultProps
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export default NumberInput;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import { ReferenceArrayInput as RaReferenceArrayInput } from 'react-admin';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
|
|
5
|
-
const ReferenceArrayInput = ({ children, ...props }) => (
|
|
6
|
-
<RaReferenceArrayInput {...props}>
|
|
7
|
-
{React.cloneElement(children, {
|
|
8
|
-
...props,
|
|
9
|
-
source: children.props.source || props.source
|
|
10
|
-
})}
|
|
11
|
-
</RaReferenceArrayInput>
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
ReferenceArrayInput.propTypes = {
|
|
15
|
-
...RaReferenceArrayInput.propTypes,
|
|
16
|
-
children: PropTypes.element
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
ReferenceArrayInput.defaultProps = {
|
|
20
|
-
...RaReferenceArrayInput.defaultProps
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export default ReferenceArrayInput;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import { ReferenceInput as RaReferenceInput } from 'react-admin';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
|
|
5
|
-
const ReferenceInput = ({ children, ...props }) => (
|
|
6
|
-
<RaReferenceInput {...props}>
|
|
7
|
-
{React.cloneElement(children, {
|
|
8
|
-
...props,
|
|
9
|
-
source: children.props.source || props.source
|
|
10
|
-
})}
|
|
11
|
-
</RaReferenceInput>
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
ReferenceInput.propTypes = {
|
|
15
|
-
...RaReferenceInput.propTypes,
|
|
16
|
-
children: PropTypes.element
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
ReferenceInput.defaultProps = {
|
|
20
|
-
...RaReferenceInput.defaultProps
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export default ReferenceInput;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ListToolbar, Pagination, ResourceContextProvider } from 'react-admin';
|
|
2
|
-
|
|
3
|
-
import { Fragment } from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import { ReferenceManyField } from '../ra-fields';
|
|
6
|
-
|
|
7
|
-
const ReferenceManyInput = ({ reference, target, children, filters, actions, ...props }) => {
|
|
8
|
-
return (
|
|
9
|
-
<ResourceContextProvider value={reference}>
|
|
10
|
-
<ReferenceManyField perPage={5} pagination={<Pagination />} {...props} reference={reference} target={target}>
|
|
11
|
-
<Fragment>
|
|
12
|
-
<ListToolbar filters={filters} actions={actions} />
|
|
13
|
-
{children}
|
|
14
|
-
</Fragment>
|
|
15
|
-
</ReferenceManyField>
|
|
16
|
-
</ResourceContextProvider>
|
|
17
|
-
);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
ReferenceManyInput.propTypes = {
|
|
21
|
-
...ReferenceManyField.propTypes,
|
|
22
|
-
children: PropTypes.node.isRequired,
|
|
23
|
-
reference: PropTypes.string.isRequired,
|
|
24
|
-
target: PropTypes.string.isRequired,
|
|
25
|
-
filters: PropTypes.oneOfType([PropTypes.element, PropTypes.func, PropTypes.element, PropTypes.arrayOf(PropTypes.node)]),
|
|
26
|
-
actions: PropTypes.oneOfType([PropTypes.element, PropTypes.func, PropTypes.element])
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
ReferenceManyInput.defaultProps = {
|
|
30
|
-
...ReferenceManyField.defaultProps
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export default ReferenceManyInput;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SearchInput as RaSearchInput } from 'react-admin';
|
|
2
|
-
import { styled } from '@mui/material/styles';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @return {React.Component}
|
|
6
|
-
*/
|
|
7
|
-
const ApplicaStyledSearchInput = styled(RaSearchInput, {
|
|
8
|
-
name: 'RaApplicaSearchInput',
|
|
9
|
-
slot: 'root'
|
|
10
|
-
})(() => ({}));
|
|
11
|
-
|
|
12
|
-
const SearchInput = (props) => <ApplicaStyledSearchInput {...props} />;
|
|
13
|
-
|
|
14
|
-
export default SearchInput;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import LabeledInput from './LabeledInput';
|
|
2
|
-
import { SelectArrayInput as RaSelectArrayInput } from 'react-admin';
|
|
3
|
-
import { styled } from '@mui/material/styles';
|
|
4
|
-
|
|
5
|
-
const ApplicaStyledSelectArrayInput = styled(RaSelectArrayInput, {
|
|
6
|
-
name: 'RaApplicaSelectArrayInput',
|
|
7
|
-
slot: 'Root'
|
|
8
|
-
})(({ label }) => ({
|
|
9
|
-
'& legend': {
|
|
10
|
-
width: label === false ? 0 : 'auto'
|
|
11
|
-
},
|
|
12
|
-
'& .RaSelectArrayInput-chips > .RaSelectArrayInput-chip': {
|
|
13
|
-
marginTop: '-2px',
|
|
14
|
-
marginBottom: '-2px'
|
|
15
|
-
}
|
|
16
|
-
// '& label.MuiFormLabel-root[data-shrink="false"]': {
|
|
17
|
-
// marginTop: '2px'
|
|
18
|
-
// }
|
|
19
|
-
}));
|
|
20
|
-
|
|
21
|
-
ApplicaStyledSelectArrayInput.propTypes = {
|
|
22
|
-
...RaSelectArrayInput.propTypes
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const SelectArrayInput = (props) => {
|
|
26
|
-
return (
|
|
27
|
-
<LabeledInput {...props}>
|
|
28
|
-
<ApplicaStyledSelectArrayInput
|
|
29
|
-
options={{
|
|
30
|
-
autoWidth: false
|
|
31
|
-
}}
|
|
32
|
-
/>
|
|
33
|
-
</LabeledInput>
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
SelectArrayInput.defaultProps = {
|
|
38
|
-
optionText: 'name',
|
|
39
|
-
optionValue: 'id'
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
SelectArrayInput.propTypes = {
|
|
43
|
-
...RaSelectArrayInput.propTypes,
|
|
44
|
-
...LabeledInput.propTypes
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export default SelectArrayInput;
|