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.
Files changed (192) hide show
  1. 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
  2. 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
  3. 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
  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
  5. package/dist/.external/cjs/@tanstack_query-core@5.87.1/@tanstack/query-core/build/modern/timeoutManager.cjs +78 -0
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. package/dist/.external/cjs/i18next@25.5.2_typescript@5.9.2/i18next/dist/esm/i18next.cjs +2213 -0
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. package/dist/.external/esm/@tanstack_query-core@5.87.1/@tanstack/query-core/build/modern/timeoutManager.mjs +78 -0
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. package/dist/.external/esm/i18next@25.5.2_typescript@5.9.2/i18next/dist/esm/i18next.mjs +2213 -0
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. package/dist/constants/cjs/_virtual/index.cjs +27 -0
  44. package/dist/constants/cjs/_virtual/index2.cjs +27 -0
  45. package/dist/constants/cjs/_virtual/index3.cjs +4 -0
  46. package/dist/constants/cjs/_virtual/index4.cjs +4 -0
  47. package/dist/constants/cjs/index.cjs +16 -0
  48. package/dist/constants/esm/_virtual/index.mjs +27 -0
  49. package/dist/constants/esm/_virtual/index2.mjs +27 -0
  50. package/dist/constants/esm/_virtual/index3.mjs +4 -0
  51. package/dist/constants/esm/_virtual/index4.mjs +4 -0
  52. package/dist/constants/esm/index.mjs +16 -0
  53. package/dist/constants/lib/index.d.ts +13 -0
  54. package/dist/core/cjs/ActionIcons/Add/Add.cjs +4 -1
  55. package/dist/core/cjs/ActionIcons/Add/AddDialog.cjs +52 -13
  56. package/dist/core/cjs/ActionIcons/Delete/Delete.cjs +15 -17
  57. package/dist/core/cjs/ActionIcons/Delete/DeleteDialog.cjs +60 -0
  58. package/dist/core/cjs/ActionIcons/Download/Download.cjs +4 -1
  59. package/dist/core/cjs/ActionIcons/Edit/Edit.cjs +4 -1
  60. package/dist/core/cjs/ActionIcons/Edit/EditDialog.cjs +50 -13
  61. package/dist/core/cjs/ActionIcons/Modals/CommonModal.cjs +17 -58
  62. package/dist/core/cjs/ActionIcons/Refresh/Refresh.cjs +4 -1
  63. package/dist/core/cjs/ActionIcons/View/View.cjs +4 -1
  64. package/dist/core/cjs/Selectors/LanguageSelector.cjs +11 -0
  65. package/dist/core/cjs/Tables/NextGenDataGrid/NextGenDataGrid.cjs +8 -2
  66. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.cjs +4 -1
  67. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.cjs +4 -1
  68. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useData.cjs +2 -2
  69. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useI18n.cjs +8 -0
  70. package/dist/core/cjs/Wrappers/ApiProvider/ApiProvider.cjs +3 -1
  71. package/dist/core/cjs/Wrappers/ApiProvider/Contexts/FormContext.cjs +5 -0
  72. package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +30 -13
  73. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/createItem.cjs +8 -3
  74. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/deleteItem.cjs +7 -3
  75. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/formCreateItem.cjs +5 -3
  76. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/formUpdateItem.cjs +9 -3
  77. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getInfo.cjs +3 -3
  78. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getItem.cjs +7 -3
  79. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getItems.cjs +3 -3
  80. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/updateItem.cjs +8 -3
  81. package/dist/core/cjs/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.cjs +5 -4
  82. package/dist/core/cjs/Wrappers/Provider/Contexts/LangContext.cjs +71 -0
  83. package/dist/core/cjs/Wrappers/Provider/Provider.cjs +4 -3
  84. package/dist/core/cjs/Wrappers/Provider/hooks/useProvideAuth.cjs +2 -2
  85. package/dist/core/cjs/Wrappers/Provider/hooks/useProvideInfo.cjs +1 -1
  86. package/dist/core/cjs/Wrappers/Provider/hooks/useProvideLang.cjs +44 -0
  87. package/dist/core/cjs/hooks/api/useForms.cjs +12 -4
  88. package/dist/core/cjs/hooks/lang/useLang.cjs +5 -0
  89. package/dist/core/cjs/index.cjs +5 -0
  90. package/dist/core/cjs/translations/de.cjs +21 -0
  91. package/dist/core/esm/ActionIcons/Add/Add.mjs +4 -1
  92. package/dist/core/esm/ActionIcons/Add/AddDialog.mjs +54 -15
  93. package/dist/core/esm/ActionIcons/Delete/Delete.mjs +17 -19
  94. package/dist/core/esm/ActionIcons/Delete/DeleteDialog.mjs +60 -0
  95. package/dist/core/esm/ActionIcons/Download/Download.mjs +4 -1
  96. package/dist/core/esm/ActionIcons/Edit/Edit.mjs +4 -1
  97. package/dist/core/esm/ActionIcons/Edit/EditDialog.mjs +51 -14
  98. package/dist/core/esm/ActionIcons/Modals/CommonModal.mjs +18 -59
  99. package/dist/core/esm/ActionIcons/Refresh/Refresh.mjs +4 -1
  100. package/dist/core/esm/ActionIcons/View/View.mjs +4 -1
  101. package/dist/core/esm/Selectors/LanguageSelector.mjs +11 -0
  102. package/dist/core/esm/Tables/NextGenDataGrid/NextGenDataGrid.mjs +8 -2
  103. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.mjs +4 -1
  104. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.mjs +4 -1
  105. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useData.mjs +2 -2
  106. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useI18n.mjs +8 -0
  107. package/dist/core/esm/Wrappers/ApiProvider/ApiProvider.mjs +4 -2
  108. package/dist/core/esm/Wrappers/ApiProvider/Contexts/FormContext.mjs +5 -0
  109. package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +30 -13
  110. package/dist/core/esm/Wrappers/ApiProvider/utils/api/createItem.mjs +8 -3
  111. package/dist/core/esm/Wrappers/ApiProvider/utils/api/deleteItem.mjs +7 -3
  112. package/dist/core/esm/Wrappers/ApiProvider/utils/api/formCreateItem.mjs +5 -3
  113. package/dist/core/esm/Wrappers/ApiProvider/utils/api/formUpdateItem.mjs +9 -3
  114. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getInfo.mjs +3 -3
  115. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItem.mjs +7 -3
  116. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItems.mjs +3 -3
  117. package/dist/core/esm/Wrappers/ApiProvider/utils/api/updateItem.mjs +8 -3
  118. package/dist/core/esm/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.mjs +5 -4
  119. package/dist/core/esm/Wrappers/Provider/Contexts/LangContext.mjs +71 -0
  120. package/dist/core/esm/Wrappers/Provider/Provider.mjs +4 -3
  121. package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +2 -2
  122. package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +1 -1
  123. package/dist/core/esm/Wrappers/Provider/hooks/useProvideLang.mjs +44 -0
  124. package/dist/core/esm/hooks/api/useForms.mjs +13 -5
  125. package/dist/core/esm/hooks/lang/useLang.mjs +5 -0
  126. package/dist/core/esm/index.mjs +6 -1
  127. package/dist/core/esm/translations/de.mjs +22 -0
  128. package/dist/core/lib/ActionIcons/Add/AddDialog.d.ts +55 -20
  129. package/dist/core/lib/ActionIcons/Delete/DeleteDialog.d.ts +127 -0
  130. package/dist/core/lib/ActionIcons/Edit/EditDialog.d.ts +55 -20
  131. package/dist/core/lib/ActionIcons/Modals/CommonModal.d.ts +45 -20
  132. package/dist/core/lib/Selectors/LanguageSelector.d.ts +1 -0
  133. package/dist/core/lib/Tables/NextGenDataGrid/hooks/useI18n.d.ts +3 -0
  134. package/dist/core/lib/Wrappers/ApiProvider/Contexts/FormContext.d.ts +5 -0
  135. package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideApi.d.ts +12 -8
  136. package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideBulk.d.ts +1 -1
  137. package/dist/core/lib/Wrappers/ApiProvider/utils/api/createItem.d.ts +1 -1
  138. package/dist/core/lib/Wrappers/ApiProvider/utils/api/deleteItem.d.ts +1 -1
  139. package/dist/core/lib/Wrappers/ApiProvider/utils/api/formCreateItem.d.ts +1 -1
  140. package/dist/core/lib/Wrappers/ApiProvider/utils/api/formUpdateItem.d.ts +1 -1
  141. package/dist/core/lib/Wrappers/ApiProvider/utils/api/getInfo.d.ts +1 -1
  142. package/dist/core/lib/Wrappers/ApiProvider/utils/api/getItem.d.ts +1 -1
  143. package/dist/core/lib/Wrappers/ApiProvider/utils/api/getItems.d.ts +1 -1
  144. package/dist/core/lib/Wrappers/ApiProvider/utils/api/updateItem.d.ts +1 -1
  145. package/dist/core/lib/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.d.ts +1 -1
  146. package/dist/core/lib/Wrappers/Provider/Contexts/LangContext.d.ts +15 -0
  147. package/dist/core/lib/Wrappers/Provider/Provider.d.ts +32 -0
  148. package/dist/core/lib/hooks/api/useApi.d.ts +16 -0
  149. package/dist/core/lib/hooks/api/useForms.d.ts +1 -1
  150. package/dist/core/lib/hooks/lang/useLang.d.ts +39 -0
  151. package/dist/core/lib/index.d.ts +2 -0
  152. package/dist/core/lib/translations/de.d.ts +18 -0
  153. package/dist/utils/cjs/FastAPIRTKLogger/FastAPIRTKLogger.cjs +8 -0
  154. package/dist/utils/cjs/createFetchParams/createFetchParams.cjs +7 -5
  155. package/dist/utils/cjs/index.cjs +2 -0
  156. package/dist/utils/esm/FastAPIRTKLogger/FastAPIRTKLogger.mjs +8 -0
  157. package/dist/utils/esm/createFetchParams/createFetchParams.mjs +7 -5
  158. package/dist/utils/esm/index.mjs +2 -0
  159. package/dist/utils/lib/FastAPIRTKLogger/FastAPIRTKLogger.d.ts +5 -0
  160. package/dist/utils/lib/FastAPIRTKLogger/index.d.ts +1 -0
  161. package/dist/utils/lib/createFetchParams/createFetchParams.d.ts +3 -12
  162. package/dist/utils/lib/index.d.ts +1 -0
  163. package/package.json +1 -1
  164. package/dist/core/cjs/Dialogs/AlertDialog/AlertDialog.cjs +0 -25
  165. package/dist/core/esm/Dialogs/AlertDialog/AlertDialog.mjs +0 -25
  166. package/dist/core/lib/Dialogs/AlertDialog/AlertDialog.d.ts +0 -6
  167. /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
  168. /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
  169. /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
  170. /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
  171. /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
  172. /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
  173. /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
  174. /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
  175. /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
  176. /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
  177. /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
  178. /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
  179. /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
  180. /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
  181. /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
  182. /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
  183. /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
  184. /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
  185. /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
  186. /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
  187. /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
  188. /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
  189. /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
  190. /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
  191. /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
  192. /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
@@ -0,0 +1,5 @@
1
+ import { useLangProvider } from "../../Wrappers/Provider/Contexts/LangContext.mjs";
2
+ const useLang = (options) => useLangProvider(options);
3
+ export {
4
+ useLang
5
+ };
@@ -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 {Record<string, any>} fabSchema - Schema for backward compatibility with fab-react-toolkit that includes defaultValues and validation schema.
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 {Record<string, any>} jsonForms - Customizer configuration or additional properties for JsonFormsWithCustomizer.
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 CommonModalProps = {
86
+ export type CommonModalActionButtonsProps = {
78
87
  /**
79
- * - Schema for backward compatibility with fab-react-toolkit that includes defaultValues and validation schema.
88
+ * - Additional properties to be passed to the Group component wrapping the buttons.
80
89
  */
81
- fabSchema: Record<string, any>;
90
+ groupProps?: Record<string, any>;
82
91
  /**
83
- * - JSON Schema used by JsonFormsWithCustomizer.
92
+ * - Flag to determine if the reset button should be displayed.
84
93
  */
85
- schema: Record<string, any>;
94
+ withResetButton?: boolean;
86
95
  /**
87
- * - UI schema for customizing the form layout.
96
+ * - Flag to determine if the submit button should be displayed.
88
97
  */
89
- uischema: Record<string, any>;
98
+ withSubmitButton?: boolean;
90
99
  /**
91
- * - State object containing the form data.
100
+ * - Additional properties to be passed to the reset Button component.
92
101
  */
93
- state: Record<string, any>;
102
+ resetButtonProps?: Record<string, any>;
94
103
  /**
95
- * - Function to update the state containing form data.
104
+ * - Additional properties to be passed to the submit Button component.
96
105
  */
97
- setState: Function;
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
- * - Customizer configuration or additional properties for JsonFormsWithCustomizer.
122
+ * - Callback function triggered on form reset.
108
123
  */
109
- jsonForms: Record<string, any>;
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 {Record<string, any>} fabSchema - Schema for backward compatibility with fab-react-toolkit that includes defaultValues and validation schema.
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 {Record<string, any>} jsonForms - Customizer configuration or additional properties for JsonFormsWithCustomizer.
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 CommonModalProps = {
88
+ export type CommonModalActionButtonsProps = {
80
89
  /**
81
- * - Schema for backward compatibility with fab-react-toolkit that includes defaultValues and validation schema.
90
+ * - Additional properties to be passed to the Group component wrapping the buttons.
82
91
  */
83
- fabSchema: Record<string, any>;
92
+ groupProps?: Record<string, any>;
84
93
  /**
85
- * - JSON Schema used by JsonFormsWithCustomizer.
94
+ * - Flag to determine if the reset button should be displayed.
86
95
  */
87
- schema: Record<string, any>;
96
+ withResetButton?: boolean;
88
97
  /**
89
- * - UI schema for customizing the form layout.
98
+ * - Flag to determine if the submit button should be displayed.
90
99
  */
91
- uischema: Record<string, any>;
100
+ withSubmitButton?: boolean;
92
101
  /**
93
- * - State object containing the form data.
102
+ * - Additional properties to be passed to the reset Button component.
94
103
  */
95
- state: Record<string, any>;
104
+ resetButtonProps?: Record<string, any>;
96
105
  /**
97
- * - Function to update the state containing form data.
106
+ * - Additional properties to be passed to the submit Button component.
98
107
  */
99
- setState: Function;
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
- * - Customizer configuration or additional properties for JsonFormsWithCustomizer.
124
+ * - Callback function triggered on form reset.
110
125
  */
111
- jsonForms: Record<string, any>;
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 {Record<string, any>} fabSchema - Schema for backward compatibility with fab-react-toolkit that includes defaultValues and validation schema.
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 {Record<string, any>} jsonForms - Customizer configuration or additional properties for JsonFormsWithCustomizer.
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({ fabSchema, schema, uischema, state, setState, view, setView, jsonForms, onSubmit, boxProps, buttonText, buttonLoading, withTitleOptions, titleOptions, ...props }: CommonModalComponentProps): import("react").JSX.Element;
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 CommonModalProps = {
83
+ export type CommonModalActionButtonsProps = {
77
84
  /**
78
- * - Schema for backward compatibility with fab-react-toolkit that includes defaultValues and validation schema.
85
+ * - Additional properties to be passed to the Group component wrapping the buttons.
79
86
  */
80
- fabSchema: Record<string, any>;
87
+ groupProps?: Record<string, any>;
81
88
  /**
82
- * - JSON Schema used by JsonFormsWithCustomizer.
89
+ * - Flag to determine if the reset button should be displayed.
83
90
  */
84
- schema: Record<string, any>;
91
+ withResetButton?: boolean;
85
92
  /**
86
- * - UI schema for customizing the form layout.
93
+ * - Flag to determine if the submit button should be displayed.
87
94
  */
88
- uischema: Record<string, any>;
95
+ withSubmitButton?: boolean;
89
96
  /**
90
- * - State object containing the form data.
97
+ * - Additional properties to be passed to the reset Button component.
91
98
  */
92
- state: Record<string, any>;
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
- * - Function to update the state containing form data.
107
+ * - The content to be rendered inside the modal.
95
108
  */
96
- setState: Function;
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
- * - Customizer configuration or additional properties for JsonFormsWithCustomizer.
119
+ * - Callback function triggered on form reset.
107
120
  */
108
- jsonForms: Record<string, any>;
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;
@@ -0,0 +1,3 @@
1
+ export function useI18n(): {
2
+ localization: any;
3
+ };
@@ -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;