fastapi-rtk 0.2.32 → 0.2.36
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/.external/cjs/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/notifyManager.cjs +2 -1
- package/dist/.external/cjs/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/query.cjs +10 -0
- package/dist/.external/cjs/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/queryObserver.cjs +5 -4
- package/dist/.external/cjs/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/removable.cjs +3 -2
- package/dist/.external/cjs/@tanstack_query-core@5.87.1/@tanstack/query-core/build/modern/timeoutManager.cjs +78 -0
- package/dist/.external/cjs/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/utils.cjs +26 -22
- package/dist/.external/cjs/{@tanstack_react-query@5.85.6_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.85.6_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/suspense.cjs +6 -2
- package/dist/.external/cjs/{@tanstack_react-query@5.85.6_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.cjs +2 -2
- package/dist/.external/cjs/{@tanstack_react-query@5.85.6_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.cjs +1 -1
- package/dist/.external/cjs/i18next@25.5.2_typescript@5.9.2/i18next/dist/esm/i18next.cjs +2213 -0
- package/dist/.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._v6brefjjgmgbqbolvm3v6bkbsa/mantine-react-table/locales/de/index.cjs +104 -0
- package/dist/.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._v6brefjjgmgbqbolvm3v6bkbsa/mantine-react-table/locales/en/index.cjs +104 -0
- package/dist/.external/cjs/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/I18nextProvider.cjs +18 -0
- package/dist/.external/cjs/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/context.cjs +19 -0
- package/dist/.external/cjs/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/defaults.cjs +22 -0
- package/dist/.external/cjs/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/i18nInstance.cjs +9 -0
- package/dist/.external/cjs/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/initReactI18next.cjs +12 -0
- package/dist/.external/cjs/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/unescape.cjs +28 -0
- package/dist/.external/cjs/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/useTranslation.cjs +113 -0
- package/dist/.external/cjs/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/utils.cjs +71 -0
- package/dist/.external/esm/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/notifyManager.mjs +2 -1
- package/dist/.external/esm/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/query.mjs +10 -0
- package/dist/.external/esm/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/queryObserver.mjs +5 -4
- package/dist/.external/esm/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/removable.mjs +3 -2
- package/dist/.external/esm/@tanstack_query-core@5.87.1/@tanstack/query-core/build/modern/timeoutManager.mjs +78 -0
- package/dist/.external/esm/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/utils.mjs +26 -22
- package/dist/.external/esm/{@tanstack_react-query@5.85.6_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.85.6_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/suspense.mjs +6 -2
- package/dist/.external/esm/{@tanstack_react-query@5.85.6_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.mjs +2 -2
- package/dist/.external/esm/{@tanstack_react-query@5.85.6_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.mjs +1 -1
- package/dist/.external/esm/i18next@25.5.2_typescript@5.9.2/i18next/dist/esm/i18next.mjs +2213 -0
- package/dist/.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._v6brefjjgmgbqbolvm3v6bkbsa/mantine-react-table/locales/de/index.mjs +104 -0
- package/dist/.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._v6brefjjgmgbqbolvm3v6bkbsa/mantine-react-table/locales/en/index.mjs +104 -0
- package/dist/.external/esm/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/I18nextProvider.mjs +18 -0
- package/dist/.external/esm/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/context.mjs +19 -0
- package/dist/.external/esm/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/defaults.mjs +22 -0
- package/dist/.external/esm/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/i18nInstance.mjs +9 -0
- package/dist/.external/esm/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/initReactI18next.mjs +12 -0
- package/dist/.external/esm/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/unescape.mjs +28 -0
- package/dist/.external/esm/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/useTranslation.mjs +113 -0
- package/dist/.external/esm/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/utils.mjs +71 -0
- package/dist/constants/cjs/_virtual/index.cjs +27 -0
- package/dist/constants/cjs/_virtual/index2.cjs +27 -0
- package/dist/constants/cjs/_virtual/index3.cjs +4 -0
- package/dist/constants/cjs/_virtual/index4.cjs +4 -0
- package/dist/constants/cjs/index.cjs +16 -0
- package/dist/constants/esm/_virtual/index.mjs +27 -0
- package/dist/constants/esm/_virtual/index2.mjs +27 -0
- package/dist/constants/esm/_virtual/index3.mjs +4 -0
- package/dist/constants/esm/_virtual/index4.mjs +4 -0
- package/dist/constants/esm/index.mjs +16 -0
- package/dist/constants/lib/index.d.ts +13 -0
- package/dist/core/cjs/ActionIcons/Add/Add.cjs +4 -1
- package/dist/core/cjs/ActionIcons/Add/AddDialog.cjs +52 -13
- package/dist/core/cjs/ActionIcons/Delete/Delete.cjs +15 -17
- package/dist/core/cjs/ActionIcons/Delete/DeleteDialog.cjs +60 -0
- package/dist/core/cjs/ActionIcons/Download/Download.cjs +4 -1
- package/dist/core/cjs/ActionIcons/Edit/Edit.cjs +4 -1
- package/dist/core/cjs/ActionIcons/Edit/EditDialog.cjs +50 -13
- package/dist/core/cjs/ActionIcons/Modals/CommonModal.cjs +17 -58
- package/dist/core/cjs/ActionIcons/Refresh/Refresh.cjs +4 -1
- package/dist/core/cjs/ActionIcons/View/View.cjs +4 -1
- package/dist/core/cjs/Selectors/LanguageSelector.cjs +11 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/NextGenDataGrid.cjs +8 -2
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.cjs +4 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.cjs +4 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useData.cjs +2 -2
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useI18n.cjs +8 -0
- package/dist/core/cjs/Wrappers/ApiProvider/ApiProvider.cjs +3 -1
- package/dist/core/cjs/Wrappers/ApiProvider/Contexts/FormContext.cjs +5 -0
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +30 -13
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/createItem.cjs +8 -3
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/deleteItem.cjs +7 -3
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/formCreateItem.cjs +5 -3
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/formUpdateItem.cjs +9 -3
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getInfo.cjs +3 -3
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getItem.cjs +7 -3
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getItems.cjs +3 -3
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/updateItem.cjs +8 -3
- package/dist/core/cjs/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.cjs +5 -4
- package/dist/core/cjs/Wrappers/Provider/Contexts/LangContext.cjs +71 -0
- package/dist/core/cjs/Wrappers/Provider/Provider.cjs +4 -3
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideAuth.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideInfo.cjs +1 -1
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideLang.cjs +44 -0
- package/dist/core/cjs/hooks/api/useForms.cjs +12 -4
- package/dist/core/cjs/hooks/lang/useLang.cjs +5 -0
- package/dist/core/cjs/index.cjs +5 -0
- package/dist/core/cjs/translations/de.cjs +21 -0
- package/dist/core/esm/ActionIcons/Add/Add.mjs +4 -1
- package/dist/core/esm/ActionIcons/Add/AddDialog.mjs +54 -15
- package/dist/core/esm/ActionIcons/Delete/Delete.mjs +17 -19
- package/dist/core/esm/ActionIcons/Delete/DeleteDialog.mjs +60 -0
- package/dist/core/esm/ActionIcons/Download/Download.mjs +4 -1
- package/dist/core/esm/ActionIcons/Edit/Edit.mjs +4 -1
- package/dist/core/esm/ActionIcons/Edit/EditDialog.mjs +51 -14
- package/dist/core/esm/ActionIcons/Modals/CommonModal.mjs +18 -59
- package/dist/core/esm/ActionIcons/Refresh/Refresh.mjs +4 -1
- package/dist/core/esm/ActionIcons/View/View.mjs +4 -1
- package/dist/core/esm/Selectors/LanguageSelector.mjs +11 -0
- package/dist/core/esm/Tables/NextGenDataGrid/NextGenDataGrid.mjs +8 -2
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.mjs +4 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.mjs +4 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useData.mjs +2 -2
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useI18n.mjs +8 -0
- package/dist/core/esm/Wrappers/ApiProvider/ApiProvider.mjs +4 -2
- package/dist/core/esm/Wrappers/ApiProvider/Contexts/FormContext.mjs +5 -0
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +30 -13
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/createItem.mjs +8 -3
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/deleteItem.mjs +7 -3
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/formCreateItem.mjs +5 -3
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/formUpdateItem.mjs +9 -3
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/getInfo.mjs +3 -3
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItem.mjs +7 -3
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItems.mjs +3 -3
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/updateItem.mjs +8 -3
- package/dist/core/esm/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.mjs +5 -4
- package/dist/core/esm/Wrappers/Provider/Contexts/LangContext.mjs +71 -0
- package/dist/core/esm/Wrappers/Provider/Provider.mjs +4 -3
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +1 -1
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideLang.mjs +44 -0
- package/dist/core/esm/hooks/api/useForms.mjs +13 -5
- package/dist/core/esm/hooks/lang/useLang.mjs +5 -0
- package/dist/core/esm/index.mjs +6 -1
- package/dist/core/esm/translations/de.mjs +22 -0
- package/dist/core/lib/ActionIcons/Add/AddDialog.d.ts +55 -20
- package/dist/core/lib/ActionIcons/Delete/DeleteDialog.d.ts +127 -0
- package/dist/core/lib/ActionIcons/Edit/EditDialog.d.ts +55 -20
- package/dist/core/lib/ActionIcons/Modals/CommonModal.d.ts +45 -20
- package/dist/core/lib/Selectors/LanguageSelector.d.ts +1 -0
- package/dist/core/lib/Tables/NextGenDataGrid/hooks/useI18n.d.ts +3 -0
- package/dist/core/lib/Wrappers/ApiProvider/Contexts/FormContext.d.ts +5 -0
- package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideApi.d.ts +12 -8
- package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideBulk.d.ts +1 -1
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/createItem.d.ts +1 -1
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/deleteItem.d.ts +1 -1
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/formCreateItem.d.ts +1 -1
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/formUpdateItem.d.ts +1 -1
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/getInfo.d.ts +1 -1
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/getItem.d.ts +1 -1
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/getItems.d.ts +1 -1
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/updateItem.d.ts +1 -1
- package/dist/core/lib/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.d.ts +1 -1
- package/dist/core/lib/Wrappers/Provider/Contexts/LangContext.d.ts +15 -0
- package/dist/core/lib/Wrappers/Provider/Provider.d.ts +32 -0
- package/dist/core/lib/hooks/api/useApi.d.ts +16 -0
- package/dist/core/lib/hooks/api/useForms.d.ts +1 -1
- package/dist/core/lib/hooks/lang/useLang.d.ts +39 -0
- package/dist/core/lib/index.d.ts +2 -0
- package/dist/core/lib/translations/de.d.ts +18 -0
- package/dist/utils/cjs/FastAPIRTKLogger/FastAPIRTKLogger.cjs +8 -0
- package/dist/utils/cjs/createFetchParams/createFetchParams.cjs +7 -5
- package/dist/utils/cjs/index.cjs +2 -0
- package/dist/utils/esm/FastAPIRTKLogger/FastAPIRTKLogger.mjs +8 -0
- package/dist/utils/esm/createFetchParams/createFetchParams.mjs +7 -5
- package/dist/utils/esm/index.mjs +2 -0
- package/dist/utils/lib/FastAPIRTKLogger/FastAPIRTKLogger.d.ts +5 -0
- package/dist/utils/lib/FastAPIRTKLogger/index.d.ts +1 -0
- package/dist/utils/lib/createFetchParams/createFetchParams.d.ts +3 -12
- package/dist/utils/lib/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/core/cjs/Dialogs/AlertDialog/AlertDialog.cjs +0 -25
- package/dist/core/esm/Dialogs/AlertDialog/AlertDialog.mjs +0 -25
- package/dist/core/lib/Dialogs/AlertDialog/AlertDialog.d.ts +0 -6
- /package/dist/.external/cjs/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/focusManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/mutation.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/mutationCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/onlineManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/queryCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/queryClient.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/retryer.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/subscribable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/thenable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.85.6_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.85.6_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.85.6_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/focusManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/mutation.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/mutationCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/onlineManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/queryCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/queryClient.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/retryer.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/subscribable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.85.6 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/thenable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.85.6_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.85.6_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.85.6_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +0 -0
package/dist/core/esm/index.mjs
CHANGED
|
@@ -12,6 +12,7 @@ import { useForms } from "./hooks/api/useForms.mjs";
|
|
|
12
12
|
import { useAuth } from "./hooks/auth/useAuth.mjs";
|
|
13
13
|
import { useInfo } from "./hooks/auth/useInfo.mjs";
|
|
14
14
|
import { UserMenu } from "./Menu/UserMenu/UserMenu.mjs";
|
|
15
|
+
import { LanguageSelector } from "./Selectors/LanguageSelector.mjs";
|
|
15
16
|
import { AddDialog } from "./ActionIcons/Add/AddDialog.mjs";
|
|
16
17
|
import { EditDialog } from "./ActionIcons/Edit/EditDialog.mjs";
|
|
17
18
|
import { CommonModal } from "./ActionIcons/Modals/CommonModal.mjs";
|
|
@@ -27,7 +28,9 @@ export * from "fastapi-rtk/constants";
|
|
|
27
28
|
export * from "fastapi-rtk/hooks";
|
|
28
29
|
export * from "fastapi-rtk/utils";
|
|
29
30
|
export * from "fastapi-rtk/zustand";
|
|
31
|
+
import "./Wrappers/Provider/Contexts/LangContext.mjs";
|
|
30
32
|
import { Filter } from "./Tables/DataGrid/Toolbar/Filter/Filter.mjs";
|
|
33
|
+
import { useTranslation } from "../../.external/esm/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/useTranslation.mjs";
|
|
31
34
|
export {
|
|
32
35
|
Actions,
|
|
33
36
|
Add,
|
|
@@ -42,6 +45,7 @@ export {
|
|
|
42
45
|
EditDialog,
|
|
43
46
|
Filter,
|
|
44
47
|
InfiniteScroll,
|
|
48
|
+
LanguageSelector,
|
|
45
49
|
LazyLoadWrapper,
|
|
46
50
|
NextGenDataGrid,
|
|
47
51
|
NextGenDataGrid2 as NextGenDatagrid,
|
|
@@ -57,5 +61,6 @@ export {
|
|
|
57
61
|
useAuth,
|
|
58
62
|
useBulkActions,
|
|
59
63
|
useForms,
|
|
60
|
-
useInfo
|
|
64
|
+
useInfo,
|
|
65
|
+
useTranslation
|
|
61
66
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const de = {
|
|
2
|
+
// Actions
|
|
3
|
+
View: "Ansehen",
|
|
4
|
+
Add: "Hinzufügen",
|
|
5
|
+
"Add Item": "Element hinzufügen",
|
|
6
|
+
Edit: "Bearbeiten",
|
|
7
|
+
Delete: "Löschen",
|
|
8
|
+
Refresh: "Aktualisieren",
|
|
9
|
+
Download: "Herunterladen",
|
|
10
|
+
Cancel: "Abbrechen",
|
|
11
|
+
Overlay: "Overlay",
|
|
12
|
+
"Exit overlay": "Overlay verlassen",
|
|
13
|
+
"Full screen": "Vollbild",
|
|
14
|
+
"Exit full screen": "Vollbild verlassen",
|
|
15
|
+
// Dialogs,
|
|
16
|
+
"Are you sure you want to delete this item?": "Sind Sie Sicher, dass Sie das Item löschen wollen?",
|
|
17
|
+
"No filters": "Keine Filter",
|
|
18
|
+
"Advanced Filters": "Erweiterte Filter"
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
de as default
|
|
22
|
+
};
|
|
@@ -7,23 +7,32 @@
|
|
|
7
7
|
* @property {Record<string, any> | ((props: { view: string; setView: (view: string) => void }) => Record<string, any>)} [overlayButtonProps] - Additional props to be passed to the overlay toggle button.
|
|
8
8
|
* @property {Record<string, any> | ((props: { view: string; setView: (view: string) => void }) => Record<string, any>)} [fullScreenButtonProps] - Additional props to be passed to the full screen toggle button.
|
|
9
9
|
*/
|
|
10
|
+
/**
|
|
11
|
+
* @typedef {Object} CommonModalActionButtonsProps
|
|
12
|
+
* @property {Record<string, any>} [groupProps] - Additional properties to be passed to the Group component wrapping the buttons.
|
|
13
|
+
* @property {boolean} [withResetButton=true] - Flag to determine if the reset button should be displayed.
|
|
14
|
+
* @property {boolean} [withSubmitButton=true] - Flag to determine if the submit button should be displayed.
|
|
15
|
+
* @property {Record<string, any>} [resetButtonProps] - Additional properties to be passed to the reset Button component.
|
|
16
|
+
* @property {Record<string, any>} [submitButtonProps] - Additional properties to be passed to the submit Button component.
|
|
17
|
+
*/
|
|
10
18
|
/**
|
|
11
19
|
* @typedef {Object} CommonModalProps
|
|
12
|
-
* @property {
|
|
13
|
-
* @property {Record<string, any>} schema - JSON Schema used by JsonFormsWithCustomizer.
|
|
14
|
-
* @property {Record<string, any>} uischema - UI schema for customizing the form layout.
|
|
15
|
-
* @property {Record<string, any>} state - State object containing the form data.
|
|
16
|
-
* @property {Function} setState - Function to update the state containing form data.
|
|
20
|
+
* @property {React.ReactNode} children - The content to be rendered inside the modal.
|
|
17
21
|
* @property {string} view - Current view mode (e.g., VIEW_MODE.NORMAL, VIEW_MODE.FULL_SCREEN, VIEW_MODE.OVERLAY).
|
|
18
22
|
* @property {Function} setView - Function to update the view mode.
|
|
19
|
-
* @property {
|
|
23
|
+
* @property {Function} onReset - Callback function triggered on form reset.
|
|
20
24
|
* @property {Function} onSubmit - Callback function triggered on form submission.
|
|
21
25
|
* @property {Record<string, any>} boxProps - Additional properties to be passed to the Box component wrapping the form.
|
|
26
|
+
* @property {string} resetButtonText - Text displayed on the reset button.
|
|
22
27
|
* @property {string} buttonText - Text displayed on the submit button.
|
|
23
28
|
* @property {boolean} buttonLoading - Indicates whether the submit button should display a loading state.
|
|
24
29
|
* @property {boolean} [withTitleOptions=true] - Flag to determine if title options (e.g., full screen, overlay toggles) should be displayed.
|
|
30
|
+
* @property {boolean} [withButtons=true] - Flag to determine if action buttons (e.g., submit button) should be displayed.
|
|
25
31
|
* @property {CommonModalTitleOptionsProps} [titleOptions] - Options for customizing the title area, such as toggles for full screen and overlay modes.
|
|
32
|
+
* @property {CommonModalActionButtonsProps} [actionButtons] - Options for customizing the action buttons area.
|
|
26
33
|
* @property {Record<string, any>} rest - Additional props to be passed to the Modal component.
|
|
34
|
+
* @property {(result: Record<string, any> | null) => void} [onSuccess] - Callback function triggered on successful form submission.
|
|
35
|
+
* @property {(error: any) => void} [onError] - Callback function triggered on form submission error.
|
|
27
36
|
*/
|
|
28
37
|
/**
|
|
29
38
|
* AddDialog is a component that renders a modal dialog for adding a new entry.
|
|
@@ -35,7 +44,7 @@
|
|
|
35
44
|
* @param {CommonModalProps} props - The properties passed to the AddDialog component.
|
|
36
45
|
* @returns {JSX.Element} The rendered modal dialog component for adding an entry.
|
|
37
46
|
*/
|
|
38
|
-
export function AddDialog({ jsonForms: __jsonForms, ...props }: CommonModalProps): JSX.Element;
|
|
47
|
+
export function AddDialog({ jsonForms: __jsonForms, onSuccess, onError, ...props }: CommonModalProps): JSX.Element;
|
|
39
48
|
export type CommonModalTitleOptionsProps = {
|
|
40
49
|
/**
|
|
41
50
|
* - Content or function to render on the left side of the title.
|
|
@@ -74,27 +83,33 @@ export type CommonModalTitleOptionsProps = {
|
|
|
74
83
|
setView: (view: string) => void;
|
|
75
84
|
}) => Record<string, any>);
|
|
76
85
|
};
|
|
77
|
-
export type
|
|
86
|
+
export type CommonModalActionButtonsProps = {
|
|
78
87
|
/**
|
|
79
|
-
* -
|
|
88
|
+
* - Additional properties to be passed to the Group component wrapping the buttons.
|
|
80
89
|
*/
|
|
81
|
-
|
|
90
|
+
groupProps?: Record<string, any>;
|
|
82
91
|
/**
|
|
83
|
-
* -
|
|
92
|
+
* - Flag to determine if the reset button should be displayed.
|
|
84
93
|
*/
|
|
85
|
-
|
|
94
|
+
withResetButton?: boolean;
|
|
86
95
|
/**
|
|
87
|
-
* -
|
|
96
|
+
* - Flag to determine if the submit button should be displayed.
|
|
88
97
|
*/
|
|
89
|
-
|
|
98
|
+
withSubmitButton?: boolean;
|
|
90
99
|
/**
|
|
91
|
-
* -
|
|
100
|
+
* - Additional properties to be passed to the reset Button component.
|
|
92
101
|
*/
|
|
93
|
-
|
|
102
|
+
resetButtonProps?: Record<string, any>;
|
|
94
103
|
/**
|
|
95
|
-
* -
|
|
104
|
+
* - Additional properties to be passed to the submit Button component.
|
|
96
105
|
*/
|
|
97
|
-
|
|
106
|
+
submitButtonProps?: Record<string, any>;
|
|
107
|
+
};
|
|
108
|
+
export type CommonModalProps = {
|
|
109
|
+
/**
|
|
110
|
+
* - The content to be rendered inside the modal.
|
|
111
|
+
*/
|
|
112
|
+
children: React.ReactNode;
|
|
98
113
|
/**
|
|
99
114
|
* - Current view mode (e.g., VIEW_MODE.NORMAL, VIEW_MODE.FULL_SCREEN, VIEW_MODE.OVERLAY).
|
|
100
115
|
*/
|
|
@@ -104,9 +119,9 @@ export type CommonModalProps = {
|
|
|
104
119
|
*/
|
|
105
120
|
setView: Function;
|
|
106
121
|
/**
|
|
107
|
-
* -
|
|
122
|
+
* - Callback function triggered on form reset.
|
|
108
123
|
*/
|
|
109
|
-
|
|
124
|
+
onReset: Function;
|
|
110
125
|
/**
|
|
111
126
|
* - Callback function triggered on form submission.
|
|
112
127
|
*/
|
|
@@ -115,6 +130,10 @@ export type CommonModalProps = {
|
|
|
115
130
|
* - Additional properties to be passed to the Box component wrapping the form.
|
|
116
131
|
*/
|
|
117
132
|
boxProps: Record<string, any>;
|
|
133
|
+
/**
|
|
134
|
+
* - Text displayed on the reset button.
|
|
135
|
+
*/
|
|
136
|
+
resetButtonText: string;
|
|
118
137
|
/**
|
|
119
138
|
* - Text displayed on the submit button.
|
|
120
139
|
*/
|
|
@@ -127,12 +146,28 @@ export type CommonModalProps = {
|
|
|
127
146
|
* - Flag to determine if title options (e.g., full screen, overlay toggles) should be displayed.
|
|
128
147
|
*/
|
|
129
148
|
withTitleOptions?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* - Flag to determine if action buttons (e.g., submit button) should be displayed.
|
|
151
|
+
*/
|
|
152
|
+
withButtons?: boolean;
|
|
130
153
|
/**
|
|
131
154
|
* - Options for customizing the title area, such as toggles for full screen and overlay modes.
|
|
132
155
|
*/
|
|
133
156
|
titleOptions?: CommonModalTitleOptionsProps;
|
|
157
|
+
/**
|
|
158
|
+
* - Options for customizing the action buttons area.
|
|
159
|
+
*/
|
|
160
|
+
actionButtons?: CommonModalActionButtonsProps;
|
|
134
161
|
/**
|
|
135
162
|
* - Additional props to be passed to the Modal component.
|
|
136
163
|
*/
|
|
137
164
|
rest: Record<string, any>;
|
|
165
|
+
/**
|
|
166
|
+
* - Callback function triggered on successful form submission.
|
|
167
|
+
*/
|
|
168
|
+
onSuccess?: (result: Record<string, any> | null) => void;
|
|
169
|
+
/**
|
|
170
|
+
* - Callback function triggered on form submission error.
|
|
171
|
+
*/
|
|
172
|
+
onError?: (error: any) => void;
|
|
138
173
|
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
export function DeleteDialog({ onSuccess, onError, ...props }: CommonModalProps): JSX.Element;
|
|
2
|
+
export type CommonModalTitleOptionsProps = {
|
|
3
|
+
/**
|
|
4
|
+
* - Content or function to render on the left side of the title.
|
|
5
|
+
*/
|
|
6
|
+
left: React.ReactNode | ((props: {
|
|
7
|
+
view: string;
|
|
8
|
+
setView: (view: string) => void;
|
|
9
|
+
}) => React.ReactNode);
|
|
10
|
+
/**
|
|
11
|
+
* - Content or function to render on the right side of the title.
|
|
12
|
+
*/
|
|
13
|
+
right: React.ReactNode | ((props: {
|
|
14
|
+
view: string;
|
|
15
|
+
setView: (view: string) => void;
|
|
16
|
+
}) => React.ReactNode);
|
|
17
|
+
/**
|
|
18
|
+
* - If true, hides the overlay toggle button.
|
|
19
|
+
*/
|
|
20
|
+
hideOverlay?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* - If true, hides the full screen toggle button.
|
|
23
|
+
*/
|
|
24
|
+
hideFullScreen?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* - Additional props to be passed to the overlay toggle button.
|
|
27
|
+
*/
|
|
28
|
+
overlayButtonProps?: Record<string, any> | ((props: {
|
|
29
|
+
view: string;
|
|
30
|
+
setView: (view: string) => void;
|
|
31
|
+
}) => Record<string, any>);
|
|
32
|
+
/**
|
|
33
|
+
* - Additional props to be passed to the full screen toggle button.
|
|
34
|
+
*/
|
|
35
|
+
fullScreenButtonProps?: Record<string, any> | ((props: {
|
|
36
|
+
view: string;
|
|
37
|
+
setView: (view: string) => void;
|
|
38
|
+
}) => Record<string, any>);
|
|
39
|
+
};
|
|
40
|
+
export type CommonModalActionButtonsProps = {
|
|
41
|
+
/**
|
|
42
|
+
* - Additional properties to be passed to the Group component wrapping the buttons.
|
|
43
|
+
*/
|
|
44
|
+
groupProps?: Record<string, any>;
|
|
45
|
+
/**
|
|
46
|
+
* - Flag to determine if the reset button should be displayed.
|
|
47
|
+
*/
|
|
48
|
+
withResetButton?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* - Flag to determine if the submit button should be displayed.
|
|
51
|
+
*/
|
|
52
|
+
withSubmitButton?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* - Additional properties to be passed to the reset Button component.
|
|
55
|
+
*/
|
|
56
|
+
resetButtonProps?: Record<string, any>;
|
|
57
|
+
/**
|
|
58
|
+
* - Additional properties to be passed to the submit Button component.
|
|
59
|
+
*/
|
|
60
|
+
submitButtonProps?: Record<string, any>;
|
|
61
|
+
};
|
|
62
|
+
export type CommonModalProps = {
|
|
63
|
+
/**
|
|
64
|
+
* - The content to be rendered inside the modal.
|
|
65
|
+
*/
|
|
66
|
+
children: React.ReactNode;
|
|
67
|
+
/**
|
|
68
|
+
* - Current view mode (e.g., VIEW_MODE.NORMAL, VIEW_MODE.FULL_SCREEN, VIEW_MODE.OVERLAY).
|
|
69
|
+
*/
|
|
70
|
+
view: string;
|
|
71
|
+
/**
|
|
72
|
+
* - Function to update the view mode.
|
|
73
|
+
*/
|
|
74
|
+
setView: Function;
|
|
75
|
+
/**
|
|
76
|
+
* - Callback function triggered on form reset.
|
|
77
|
+
*/
|
|
78
|
+
onReset: Function;
|
|
79
|
+
/**
|
|
80
|
+
* - Callback function triggered on form submission.
|
|
81
|
+
*/
|
|
82
|
+
onSubmit: Function;
|
|
83
|
+
/**
|
|
84
|
+
* - Additional properties to be passed to the Box component wrapping the form.
|
|
85
|
+
*/
|
|
86
|
+
boxProps: Record<string, any>;
|
|
87
|
+
/**
|
|
88
|
+
* - Text displayed on the reset button.
|
|
89
|
+
*/
|
|
90
|
+
resetButtonText: string;
|
|
91
|
+
/**
|
|
92
|
+
* - Text displayed on the submit button.
|
|
93
|
+
*/
|
|
94
|
+
buttonText: string;
|
|
95
|
+
/**
|
|
96
|
+
* - Indicates whether the submit button should display a loading state.
|
|
97
|
+
*/
|
|
98
|
+
buttonLoading: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* - Flag to determine if title options (e.g., full screen, overlay toggles) should be displayed.
|
|
101
|
+
*/
|
|
102
|
+
withTitleOptions?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* - Flag to determine if action buttons (e.g., submit button) should be displayed.
|
|
105
|
+
*/
|
|
106
|
+
withButtons?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* - Options for customizing the title area, such as toggles for full screen and overlay modes.
|
|
109
|
+
*/
|
|
110
|
+
titleOptions?: CommonModalTitleOptionsProps;
|
|
111
|
+
/**
|
|
112
|
+
* - Options for customizing the action buttons area.
|
|
113
|
+
*/
|
|
114
|
+
actionButtons?: CommonModalActionButtonsProps;
|
|
115
|
+
/**
|
|
116
|
+
* - Additional props to be passed to the Modal component.
|
|
117
|
+
*/
|
|
118
|
+
rest: Record<string, any>;
|
|
119
|
+
/**
|
|
120
|
+
* - Callback function triggered on successful form submission.
|
|
121
|
+
*/
|
|
122
|
+
onSuccess?: (result: Record<string, any> | null) => void;
|
|
123
|
+
/**
|
|
124
|
+
* - Callback function triggered on form submission error.
|
|
125
|
+
*/
|
|
126
|
+
onError?: (error: any) => void;
|
|
127
|
+
};
|
|
@@ -7,23 +7,32 @@
|
|
|
7
7
|
* @property {Record<string, any> | ((props: { view: string; setView: (view: string) => void }) => Record<string, any>)} [overlayButtonProps] - Additional props to be passed to the overlay toggle button.
|
|
8
8
|
* @property {Record<string, any> | ((props: { view: string; setView: (view: string) => void }) => Record<string, any>)} [fullScreenButtonProps] - Additional props to be passed to the full screen toggle button.
|
|
9
9
|
*/
|
|
10
|
+
/**
|
|
11
|
+
* @typedef {Object} CommonModalActionButtonsProps
|
|
12
|
+
* @property {Record<string, any>} [groupProps] - Additional properties to be passed to the Group component wrapping the buttons.
|
|
13
|
+
* @property {boolean} [withResetButton=true] - Flag to determine if the reset button should be displayed.
|
|
14
|
+
* @property {boolean} [withSubmitButton=true] - Flag to determine if the submit button should be displayed.
|
|
15
|
+
* @property {Record<string, any>} [resetButtonProps] - Additional properties to be passed to the reset Button component.
|
|
16
|
+
* @property {Record<string, any>} [submitButtonProps] - Additional properties to be passed to the submit Button component.
|
|
17
|
+
*/
|
|
10
18
|
/**
|
|
11
19
|
* @typedef {Object} CommonModalProps
|
|
12
|
-
* @property {
|
|
13
|
-
* @property {Record<string, any>} schema - JSON Schema used by JsonFormsWithCustomizer.
|
|
14
|
-
* @property {Record<string, any>} uischema - UI schema for customizing the form layout.
|
|
15
|
-
* @property {Record<string, any>} state - State object containing the form data.
|
|
16
|
-
* @property {Function} setState - Function to update the state containing form data.
|
|
20
|
+
* @property {React.ReactNode} children - The content to be rendered inside the modal.
|
|
17
21
|
* @property {string} view - Current view mode (e.g., VIEW_MODE.NORMAL, VIEW_MODE.FULL_SCREEN, VIEW_MODE.OVERLAY).
|
|
18
22
|
* @property {Function} setView - Function to update the view mode.
|
|
19
|
-
* @property {
|
|
23
|
+
* @property {Function} onReset - Callback function triggered on form reset.
|
|
20
24
|
* @property {Function} onSubmit - Callback function triggered on form submission.
|
|
21
25
|
* @property {Record<string, any>} boxProps - Additional properties to be passed to the Box component wrapping the form.
|
|
26
|
+
* @property {string} resetButtonText - Text displayed on the reset button.
|
|
22
27
|
* @property {string} buttonText - Text displayed on the submit button.
|
|
23
28
|
* @property {boolean} buttonLoading - Indicates whether the submit button should display a loading state.
|
|
24
29
|
* @property {boolean} [withTitleOptions=true] - Flag to determine if title options (e.g., full screen, overlay toggles) should be displayed.
|
|
30
|
+
* @property {boolean} [withButtons=true] - Flag to determine if action buttons (e.g., submit button) should be displayed.
|
|
25
31
|
* @property {CommonModalTitleOptionsProps} [titleOptions] - Options for customizing the title area, such as toggles for full screen and overlay modes.
|
|
32
|
+
* @property {CommonModalActionButtonsProps} [actionButtons] - Options for customizing the action buttons area.
|
|
26
33
|
* @property {Record<string, any>} rest - Additional props to be passed to the Modal component.
|
|
34
|
+
* @property {(result: Record<string, any> | null) => void} [onSuccess] - Callback function triggered on successful form submission.
|
|
35
|
+
* @property {(error: any) => void} [onError] - Callback function triggered on form submission error.
|
|
27
36
|
*/
|
|
28
37
|
/**
|
|
29
38
|
* EditDialog component renders a modal dialog for editing an entry.
|
|
@@ -37,7 +46,7 @@
|
|
|
37
46
|
* @param {CommonModalProps} props - The component props.
|
|
38
47
|
* @returns {JSX.Element} The rendered EditDialog component.
|
|
39
48
|
*/
|
|
40
|
-
export function EditDialog({ jsonForms: __jsonForms, ...props }: CommonModalProps): JSX.Element;
|
|
49
|
+
export function EditDialog({ jsonForms: __jsonForms, onSuccess, onError, ...props }: CommonModalProps): JSX.Element;
|
|
41
50
|
export type CommonModalTitleOptionsProps = {
|
|
42
51
|
/**
|
|
43
52
|
* - Content or function to render on the left side of the title.
|
|
@@ -76,27 +85,33 @@ export type CommonModalTitleOptionsProps = {
|
|
|
76
85
|
setView: (view: string) => void;
|
|
77
86
|
}) => Record<string, any>);
|
|
78
87
|
};
|
|
79
|
-
export type
|
|
88
|
+
export type CommonModalActionButtonsProps = {
|
|
80
89
|
/**
|
|
81
|
-
* -
|
|
90
|
+
* - Additional properties to be passed to the Group component wrapping the buttons.
|
|
82
91
|
*/
|
|
83
|
-
|
|
92
|
+
groupProps?: Record<string, any>;
|
|
84
93
|
/**
|
|
85
|
-
* -
|
|
94
|
+
* - Flag to determine if the reset button should be displayed.
|
|
86
95
|
*/
|
|
87
|
-
|
|
96
|
+
withResetButton?: boolean;
|
|
88
97
|
/**
|
|
89
|
-
* -
|
|
98
|
+
* - Flag to determine if the submit button should be displayed.
|
|
90
99
|
*/
|
|
91
|
-
|
|
100
|
+
withSubmitButton?: boolean;
|
|
92
101
|
/**
|
|
93
|
-
* -
|
|
102
|
+
* - Additional properties to be passed to the reset Button component.
|
|
94
103
|
*/
|
|
95
|
-
|
|
104
|
+
resetButtonProps?: Record<string, any>;
|
|
96
105
|
/**
|
|
97
|
-
* -
|
|
106
|
+
* - Additional properties to be passed to the submit Button component.
|
|
98
107
|
*/
|
|
99
|
-
|
|
108
|
+
submitButtonProps?: Record<string, any>;
|
|
109
|
+
};
|
|
110
|
+
export type CommonModalProps = {
|
|
111
|
+
/**
|
|
112
|
+
* - The content to be rendered inside the modal.
|
|
113
|
+
*/
|
|
114
|
+
children: React.ReactNode;
|
|
100
115
|
/**
|
|
101
116
|
* - Current view mode (e.g., VIEW_MODE.NORMAL, VIEW_MODE.FULL_SCREEN, VIEW_MODE.OVERLAY).
|
|
102
117
|
*/
|
|
@@ -106,9 +121,9 @@ export type CommonModalProps = {
|
|
|
106
121
|
*/
|
|
107
122
|
setView: Function;
|
|
108
123
|
/**
|
|
109
|
-
* -
|
|
124
|
+
* - Callback function triggered on form reset.
|
|
110
125
|
*/
|
|
111
|
-
|
|
126
|
+
onReset: Function;
|
|
112
127
|
/**
|
|
113
128
|
* - Callback function triggered on form submission.
|
|
114
129
|
*/
|
|
@@ -117,6 +132,10 @@ export type CommonModalProps = {
|
|
|
117
132
|
* - Additional properties to be passed to the Box component wrapping the form.
|
|
118
133
|
*/
|
|
119
134
|
boxProps: Record<string, any>;
|
|
135
|
+
/**
|
|
136
|
+
* - Text displayed on the reset button.
|
|
137
|
+
*/
|
|
138
|
+
resetButtonText: string;
|
|
120
139
|
/**
|
|
121
140
|
* - Text displayed on the submit button.
|
|
122
141
|
*/
|
|
@@ -129,12 +148,28 @@ export type CommonModalProps = {
|
|
|
129
148
|
* - Flag to determine if title options (e.g., full screen, overlay toggles) should be displayed.
|
|
130
149
|
*/
|
|
131
150
|
withTitleOptions?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* - Flag to determine if action buttons (e.g., submit button) should be displayed.
|
|
153
|
+
*/
|
|
154
|
+
withButtons?: boolean;
|
|
132
155
|
/**
|
|
133
156
|
* - Options for customizing the title area, such as toggles for full screen and overlay modes.
|
|
134
157
|
*/
|
|
135
158
|
titleOptions?: CommonModalTitleOptionsProps;
|
|
159
|
+
/**
|
|
160
|
+
* - Options for customizing the action buttons area.
|
|
161
|
+
*/
|
|
162
|
+
actionButtons?: CommonModalActionButtonsProps;
|
|
136
163
|
/**
|
|
137
164
|
* - Additional props to be passed to the Modal component.
|
|
138
165
|
*/
|
|
139
166
|
rest: Record<string, any>;
|
|
167
|
+
/**
|
|
168
|
+
* - Callback function triggered on successful form submission.
|
|
169
|
+
*/
|
|
170
|
+
onSuccess?: (result: Record<string, any> | null) => void;
|
|
171
|
+
/**
|
|
172
|
+
* - Callback function triggered on form submission error.
|
|
173
|
+
*/
|
|
174
|
+
onError?: (error: any) => void;
|
|
140
175
|
};
|
|
@@ -8,22 +8,29 @@ import { Modal } from '@mantine/core';
|
|
|
8
8
|
* @property {Record<string, any> | ((props: { view: string; setView: (view: string) => void }) => Record<string, any>)} [overlayButtonProps] - Additional props to be passed to the overlay toggle button.
|
|
9
9
|
* @property {Record<string, any> | ((props: { view: string; setView: (view: string) => void }) => Record<string, any>)} [fullScreenButtonProps] - Additional props to be passed to the full screen toggle button.
|
|
10
10
|
*/
|
|
11
|
+
/**
|
|
12
|
+
* @typedef {Object} CommonModalActionButtonsProps
|
|
13
|
+
* @property {Record<string, any>} [groupProps] - Additional properties to be passed to the Group component wrapping the buttons.
|
|
14
|
+
* @property {boolean} [withResetButton=true] - Flag to determine if the reset button should be displayed.
|
|
15
|
+
* @property {boolean} [withSubmitButton=true] - Flag to determine if the submit button should be displayed.
|
|
16
|
+
* @property {Record<string, any>} [resetButtonProps] - Additional properties to be passed to the reset Button component.
|
|
17
|
+
* @property {Record<string, any>} [submitButtonProps] - Additional properties to be passed to the submit Button component.
|
|
18
|
+
*/
|
|
11
19
|
/**
|
|
12
20
|
* @typedef {Object} CommonModalProps
|
|
13
|
-
* @property {
|
|
14
|
-
* @property {Record<string, any>} schema - JSON Schema used by JsonFormsWithCustomizer.
|
|
15
|
-
* @property {Record<string, any>} uischema - UI schema for customizing the form layout.
|
|
16
|
-
* @property {Record<string, any>} state - State object containing the form data.
|
|
17
|
-
* @property {Function} setState - Function to update the state containing form data.
|
|
21
|
+
* @property {React.ReactNode} children - The content to be rendered inside the modal.
|
|
18
22
|
* @property {string} view - Current view mode (e.g., VIEW_MODE.NORMAL, VIEW_MODE.FULL_SCREEN, VIEW_MODE.OVERLAY).
|
|
19
23
|
* @property {Function} setView - Function to update the view mode.
|
|
20
|
-
* @property {
|
|
24
|
+
* @property {Function} onReset - Callback function triggered on form reset.
|
|
21
25
|
* @property {Function} onSubmit - Callback function triggered on form submission.
|
|
22
26
|
* @property {Record<string, any>} boxProps - Additional properties to be passed to the Box component wrapping the form.
|
|
27
|
+
* @property {string} resetButtonText - Text displayed on the reset button.
|
|
23
28
|
* @property {string} buttonText - Text displayed on the submit button.
|
|
24
29
|
* @property {boolean} buttonLoading - Indicates whether the submit button should display a loading state.
|
|
25
30
|
* @property {boolean} [withTitleOptions=true] - Flag to determine if title options (e.g., full screen, overlay toggles) should be displayed.
|
|
31
|
+
* @property {boolean} [withButtons=true] - Flag to determine if action buttons (e.g., submit button) should be displayed.
|
|
26
32
|
* @property {CommonModalTitleOptionsProps} [titleOptions] - Options for customizing the title area, such as toggles for full screen and overlay modes.
|
|
33
|
+
* @property {CommonModalActionButtonsProps} [actionButtons] - Options for customizing the action buttons area.
|
|
27
34
|
* @property {Record<string, any>} rest - Additional props to be passed to the Modal component.
|
|
28
35
|
* @typedef {CommonModalProps & React.ComponentProps<typeof Modal>} CommonModalComponentProps
|
|
29
36
|
*/
|
|
@@ -34,7 +41,7 @@ import { Modal } from '@mantine/core';
|
|
|
34
41
|
* @param {CommonModalComponentProps} props - The properties for the CommonModal component.
|
|
35
42
|
* @returns - A rendered Modal component with an embedded form and optional title controls.
|
|
36
43
|
*/
|
|
37
|
-
export function CommonModal({
|
|
44
|
+
export function CommonModal({ children, view, setView, onReset, onSubmit, boxProps, resetButtonText, buttonText, buttonLoading, withTitleOptions, withButtons, titleOptions, actionButtons, ...props }: CommonModalComponentProps): import("react").JSX.Element;
|
|
38
45
|
export type CommonModalTitleOptionsProps = {
|
|
39
46
|
/**
|
|
40
47
|
* - Content or function to render on the left side of the title.
|
|
@@ -73,27 +80,33 @@ export type CommonModalTitleOptionsProps = {
|
|
|
73
80
|
setView: (view: string) => void;
|
|
74
81
|
}) => Record<string, any>);
|
|
75
82
|
};
|
|
76
|
-
export type
|
|
83
|
+
export type CommonModalActionButtonsProps = {
|
|
77
84
|
/**
|
|
78
|
-
* -
|
|
85
|
+
* - Additional properties to be passed to the Group component wrapping the buttons.
|
|
79
86
|
*/
|
|
80
|
-
|
|
87
|
+
groupProps?: Record<string, any>;
|
|
81
88
|
/**
|
|
82
|
-
* -
|
|
89
|
+
* - Flag to determine if the reset button should be displayed.
|
|
83
90
|
*/
|
|
84
|
-
|
|
91
|
+
withResetButton?: boolean;
|
|
85
92
|
/**
|
|
86
|
-
* -
|
|
93
|
+
* - Flag to determine if the submit button should be displayed.
|
|
87
94
|
*/
|
|
88
|
-
|
|
95
|
+
withSubmitButton?: boolean;
|
|
89
96
|
/**
|
|
90
|
-
* -
|
|
97
|
+
* - Additional properties to be passed to the reset Button component.
|
|
91
98
|
*/
|
|
92
|
-
|
|
99
|
+
resetButtonProps?: Record<string, any>;
|
|
100
|
+
/**
|
|
101
|
+
* - Additional properties to be passed to the submit Button component.
|
|
102
|
+
*/
|
|
103
|
+
submitButtonProps?: Record<string, any>;
|
|
104
|
+
};
|
|
105
|
+
export type CommonModalProps = {
|
|
93
106
|
/**
|
|
94
|
-
* -
|
|
107
|
+
* - The content to be rendered inside the modal.
|
|
95
108
|
*/
|
|
96
|
-
|
|
109
|
+
children: React.ReactNode;
|
|
97
110
|
/**
|
|
98
111
|
* - Current view mode (e.g., VIEW_MODE.NORMAL, VIEW_MODE.FULL_SCREEN, VIEW_MODE.OVERLAY).
|
|
99
112
|
*/
|
|
@@ -103,9 +116,9 @@ export type CommonModalProps = {
|
|
|
103
116
|
*/
|
|
104
117
|
setView: Function;
|
|
105
118
|
/**
|
|
106
|
-
* -
|
|
119
|
+
* - Callback function triggered on form reset.
|
|
107
120
|
*/
|
|
108
|
-
|
|
121
|
+
onReset: Function;
|
|
109
122
|
/**
|
|
110
123
|
* - Callback function triggered on form submission.
|
|
111
124
|
*/
|
|
@@ -114,6 +127,10 @@ export type CommonModalProps = {
|
|
|
114
127
|
* - Additional properties to be passed to the Box component wrapping the form.
|
|
115
128
|
*/
|
|
116
129
|
boxProps: Record<string, any>;
|
|
130
|
+
/**
|
|
131
|
+
* - Text displayed on the reset button.
|
|
132
|
+
*/
|
|
133
|
+
resetButtonText: string;
|
|
117
134
|
/**
|
|
118
135
|
* - Text displayed on the submit button.
|
|
119
136
|
*/
|
|
@@ -126,10 +143,18 @@ export type CommonModalProps = {
|
|
|
126
143
|
* - Flag to determine if title options (e.g., full screen, overlay toggles) should be displayed.
|
|
127
144
|
*/
|
|
128
145
|
withTitleOptions?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* - Flag to determine if action buttons (e.g., submit button) should be displayed.
|
|
148
|
+
*/
|
|
149
|
+
withButtons?: boolean;
|
|
129
150
|
/**
|
|
130
151
|
* - Options for customizing the title area, such as toggles for full screen and overlay modes.
|
|
131
152
|
*/
|
|
132
153
|
titleOptions?: CommonModalTitleOptionsProps;
|
|
154
|
+
/**
|
|
155
|
+
* - Options for customizing the action buttons area.
|
|
156
|
+
*/
|
|
157
|
+
actionButtons?: CommonModalActionButtonsProps;
|
|
133
158
|
/**
|
|
134
159
|
* - Additional props to be passed to the Modal component.
|
|
135
160
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function LanguageSelector(props: any): import("react").JSX.Element;
|
|
@@ -8,3 +8,8 @@ export const FormContextEditProvider: import('react').ComponentType<{
|
|
|
8
8
|
children: any;
|
|
9
9
|
}>;
|
|
10
10
|
export const useFormEditProvider: (options?: SafeContextOptions) => any;
|
|
11
|
+
export const FormContextDeleteProvider: import('react').ComponentType<{
|
|
12
|
+
value: any;
|
|
13
|
+
children: any;
|
|
14
|
+
}>;
|
|
15
|
+
export const useFormDeleteProvider: (options?: SafeContextOptions) => any;
|