fastapi-rtk 0.2.33 → 0.2.37

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 (213) hide show
  1. package/dist/.external/cjs/{@tanstack_query-core@5.85.7 → @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.7 → @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.7 → @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.7 → @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.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/utils.cjs +2 -1
  7. package/dist/.external/cjs/{@tanstack_react-query@5.85.8_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.8_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.cjs +2 -2
  9. package/dist/.external/cjs/{@tanstack_react-query@5.85.8_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.cjs +1 -1
  10. package/dist/.external/cjs/i18next@25.5.2_typescript@5.9.2/i18next/dist/esm/i18next.cjs +2213 -0
  11. 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
  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/en/index.cjs +104 -0
  13. 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
  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/context.cjs +19 -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/defaults.cjs +22 -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/i18nInstance.cjs +9 -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/initReactI18next.cjs +12 -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/unescape.cjs +28 -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/useTranslation.cjs +113 -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/utils.cjs +71 -0
  21. package/dist/.external/esm/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/notifyManager.mjs +2 -1
  22. package/dist/.external/esm/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/query.mjs +11 -1
  23. package/dist/.external/esm/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/queryObserver.mjs +5 -4
  24. package/dist/.external/esm/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/removable.mjs +3 -2
  25. package/dist/.external/esm/@tanstack_query-core@5.87.1/@tanstack/query-core/build/modern/timeoutManager.mjs +78 -0
  26. package/dist/.external/esm/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/utils.mjs +2 -1
  27. package/dist/.external/esm/{@tanstack_react-query@5.85.8_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +1 -1
  28. package/dist/.external/esm/{@tanstack_react-query@5.85.8_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.mjs +2 -2
  29. package/dist/.external/esm/{@tanstack_react-query@5.85.8_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.mjs +1 -1
  30. package/dist/.external/esm/i18next@25.5.2_typescript@5.9.2/i18next/dist/esm/i18next.mjs +2213 -0
  31. 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
  32. 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
  33. 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
  34. 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
  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/defaults.mjs +22 -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/i18nInstance.mjs +9 -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/initReactI18next.mjs +12 -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/unescape.mjs +28 -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/useTranslation.mjs +113 -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/utils.mjs +71 -0
  41. package/dist/constants/cjs/_virtual/index.cjs +27 -0
  42. package/dist/constants/cjs/_virtual/index2.cjs +27 -0
  43. package/dist/constants/cjs/_virtual/index3.cjs +4 -0
  44. package/dist/constants/cjs/_virtual/index4.cjs +4 -0
  45. package/dist/constants/cjs/index.cjs +16 -0
  46. package/dist/constants/esm/_virtual/index.mjs +27 -0
  47. package/dist/constants/esm/_virtual/index2.mjs +27 -0
  48. package/dist/constants/esm/_virtual/index3.mjs +4 -0
  49. package/dist/constants/esm/_virtual/index4.mjs +4 -0
  50. package/dist/constants/esm/index.mjs +16 -0
  51. package/dist/constants/lib/index.d.ts +13 -0
  52. package/dist/core/cjs/ActionIcons/Add/Add.cjs +4 -1
  53. package/dist/core/cjs/ActionIcons/Delete/Delete.cjs +15 -17
  54. package/dist/core/cjs/ActionIcons/Download/Download.cjs +4 -1
  55. package/dist/core/cjs/ActionIcons/Edit/Edit.cjs +4 -1
  56. package/dist/core/cjs/ActionIcons/Refresh/Refresh.cjs +4 -1
  57. package/dist/core/cjs/ActionIcons/View/View.cjs +8 -9
  58. package/dist/core/cjs/Dialogs/AddDialog.cjs +100 -0
  59. package/dist/core/cjs/Dialogs/DeleteDialog.cjs +60 -0
  60. package/dist/core/cjs/{ActionIcons/Edit → Dialogs}/EditDialog.cjs +56 -19
  61. package/dist/core/cjs/Dialogs/ViewDialog.cjs +50 -0
  62. package/dist/core/cjs/{ActionIcons/Modals → Modals}/CommonModal.cjs +19 -60
  63. package/dist/core/cjs/Selectors/LanguageSelector.cjs +11 -0
  64. package/dist/core/cjs/Tables/DataGrid/DataGrid.cjs +7 -3
  65. package/dist/core/cjs/Tables/NextGenDataGrid/NextGenDataGrid.cjs +13 -5
  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 +5 -1
  71. package/dist/core/cjs/Wrappers/ApiProvider/Contexts/FormContext.cjs +10 -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 +14 -4
  88. package/dist/core/cjs/hooks/lang/useLang.cjs +5 -0
  89. package/dist/core/cjs/index.cjs +20 -7
  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/Delete/Delete.mjs +17 -19
  93. package/dist/core/esm/ActionIcons/Download/Download.mjs +4 -1
  94. package/dist/core/esm/ActionIcons/Edit/Edit.mjs +4 -1
  95. package/dist/core/esm/ActionIcons/Refresh/Refresh.mjs +4 -1
  96. package/dist/core/esm/ActionIcons/View/View.mjs +10 -11
  97. package/dist/core/esm/Dialogs/AddDialog.mjs +100 -0
  98. package/dist/core/esm/Dialogs/DeleteDialog.mjs +60 -0
  99. package/dist/core/esm/{ActionIcons/Edit → Dialogs}/EditDialog.mjs +57 -20
  100. package/dist/core/esm/Dialogs/ViewDialog.mjs +50 -0
  101. package/dist/core/esm/{ActionIcons/Modals → Modals}/CommonModal.mjs +20 -61
  102. package/dist/core/esm/Selectors/LanguageSelector.mjs +11 -0
  103. package/dist/core/esm/Tables/DataGrid/DataGrid.mjs +7 -3
  104. package/dist/core/esm/Tables/NextGenDataGrid/NextGenDataGrid.mjs +13 -5
  105. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.mjs +4 -1
  106. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.mjs +4 -1
  107. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useData.mjs +2 -2
  108. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useI18n.mjs +8 -0
  109. package/dist/core/esm/Wrappers/ApiProvider/ApiProvider.mjs +6 -2
  110. package/dist/core/esm/Wrappers/ApiProvider/Contexts/FormContext.mjs +11 -1
  111. package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +30 -13
  112. package/dist/core/esm/Wrappers/ApiProvider/utils/api/createItem.mjs +8 -3
  113. package/dist/core/esm/Wrappers/ApiProvider/utils/api/deleteItem.mjs +7 -3
  114. package/dist/core/esm/Wrappers/ApiProvider/utils/api/formCreateItem.mjs +5 -3
  115. package/dist/core/esm/Wrappers/ApiProvider/utils/api/formUpdateItem.mjs +9 -3
  116. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getInfo.mjs +3 -3
  117. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItem.mjs +7 -3
  118. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItems.mjs +3 -3
  119. package/dist/core/esm/Wrappers/ApiProvider/utils/api/updateItem.mjs +8 -3
  120. package/dist/core/esm/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.mjs +5 -4
  121. package/dist/core/esm/Wrappers/Provider/Contexts/LangContext.mjs +71 -0
  122. package/dist/core/esm/Wrappers/Provider/Provider.mjs +4 -3
  123. package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +2 -2
  124. package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +1 -1
  125. package/dist/core/esm/Wrappers/Provider/hooks/useProvideLang.mjs +44 -0
  126. package/dist/core/esm/hooks/api/useForms.mjs +15 -5
  127. package/dist/core/esm/hooks/lang/useLang.mjs +5 -0
  128. package/dist/core/esm/index.mjs +18 -5
  129. package/dist/core/esm/translations/de.mjs +22 -0
  130. package/dist/core/lib/ActionIcons/View/{ViewDialog.d.ts → Unused.d.ts} +1 -1
  131. package/dist/core/lib/{ActionIcons/Edit/EditDialog.d.ts → Dialogs/AddDialog.d.ts} +71 -28
  132. package/dist/core/lib/Dialogs/DeleteDialog.d.ts +129 -0
  133. package/dist/core/lib/Dialogs/EditDialog.d.ts +183 -0
  134. package/dist/core/lib/{ActionIcons/Add/AddDialog.d.ts → Dialogs/ViewDialog.d.ts} +55 -24
  135. package/dist/core/lib/Dialogs/index.d.ts +4 -0
  136. package/dist/core/lib/{ActionIcons/Modals → Modals}/CommonModal.d.ts +48 -23
  137. package/dist/core/lib/Modals/index.d.ts +3 -0
  138. package/dist/core/lib/Selectors/LanguageSelector.d.ts +1 -0
  139. package/dist/core/lib/Tables/NextGenDataGrid/hooks/useI18n.d.ts +3 -0
  140. package/dist/core/lib/Wrappers/ApiProvider/Contexts/FormContext.d.ts +10 -0
  141. package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideApi.d.ts +12 -8
  142. package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideBulk.d.ts +1 -1
  143. package/dist/core/lib/Wrappers/ApiProvider/utils/api/createItem.d.ts +1 -1
  144. package/dist/core/lib/Wrappers/ApiProvider/utils/api/deleteItem.d.ts +1 -1
  145. package/dist/core/lib/Wrappers/ApiProvider/utils/api/formCreateItem.d.ts +1 -1
  146. package/dist/core/lib/Wrappers/ApiProvider/utils/api/formUpdateItem.d.ts +1 -1
  147. package/dist/core/lib/Wrappers/ApiProvider/utils/api/getInfo.d.ts +1 -1
  148. package/dist/core/lib/Wrappers/ApiProvider/utils/api/getItem.d.ts +1 -1
  149. package/dist/core/lib/Wrappers/ApiProvider/utils/api/getItems.d.ts +1 -1
  150. package/dist/core/lib/Wrappers/ApiProvider/utils/api/updateItem.d.ts +1 -1
  151. package/dist/core/lib/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.d.ts +1 -1
  152. package/dist/core/lib/Wrappers/Provider/Contexts/LangContext.d.ts +15 -0
  153. package/dist/core/lib/Wrappers/Provider/Provider.d.ts +32 -0
  154. package/dist/core/lib/hooks/api/useApi.d.ts +16 -0
  155. package/dist/core/lib/hooks/api/useForms.d.ts +1 -1
  156. package/dist/core/lib/hooks/lang/useLang.d.ts +39 -0
  157. package/dist/core/lib/index.d.ts +5 -5
  158. package/dist/core/lib/translations/de.d.ts +18 -0
  159. package/dist/core/styles.css +19 -19
  160. package/dist/utils/cjs/FastAPIRTKLogger/FastAPIRTKLogger.cjs +8 -0
  161. package/dist/utils/cjs/createFetchParams/createFetchParams.cjs +7 -5
  162. package/dist/utils/cjs/index.cjs +2 -0
  163. package/dist/utils/esm/FastAPIRTKLogger/FastAPIRTKLogger.mjs +8 -0
  164. package/dist/utils/esm/createFetchParams/createFetchParams.mjs +7 -5
  165. package/dist/utils/esm/index.mjs +2 -0
  166. package/dist/utils/lib/FastAPIRTKLogger/FastAPIRTKLogger.d.ts +5 -0
  167. package/dist/utils/lib/FastAPIRTKLogger/index.d.ts +1 -0
  168. package/dist/utils/lib/createFetchParams/createFetchParams.d.ts +3 -12
  169. package/dist/utils/lib/index.d.ts +1 -0
  170. package/package.json +1 -1
  171. package/dist/core/cjs/ActionIcons/Add/AddDialog.cjs +0 -61
  172. package/dist/core/cjs/ActionIcons/View/RelationPanel.cjs +0 -17
  173. package/dist/core/cjs/ActionIcons/View/ViewDialog.cjs +0 -54
  174. package/dist/core/cjs/Dialogs/AlertDialog/AlertDialog.cjs +0 -25
  175. package/dist/core/esm/ActionIcons/Add/AddDialog.mjs +0 -61
  176. package/dist/core/esm/ActionIcons/View/RelationPanel.mjs +0 -18
  177. package/dist/core/esm/ActionIcons/View/ViewDialog.mjs +0 -54
  178. package/dist/core/esm/Dialogs/AlertDialog/AlertDialog.mjs +0 -25
  179. package/dist/core/lib/Dialogs/AlertDialog/AlertDialog.d.ts +0 -6
  180. /package/dist/.external/cjs/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/focusManager.cjs +0 -0
  181. /package/dist/.external/cjs/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +0 -0
  182. /package/dist/.external/cjs/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/mutation.cjs +0 -0
  183. /package/dist/.external/cjs/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/mutationCache.cjs +0 -0
  184. /package/dist/.external/cjs/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/onlineManager.cjs +0 -0
  185. /package/dist/.external/cjs/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/queryCache.cjs +0 -0
  186. /package/dist/.external/cjs/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/queryClient.cjs +0 -0
  187. /package/dist/.external/cjs/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/retryer.cjs +0 -0
  188. /package/dist/.external/cjs/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/subscribable.cjs +0 -0
  189. /package/dist/.external/cjs/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/thenable.cjs +0 -0
  190. /package/dist/.external/cjs/{@tanstack_react-query@5.85.8_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.cjs +0 -0
  191. /package/dist/.external/cjs/{@tanstack_react-query@5.85.8_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.cjs +0 -0
  192. /package/dist/.external/cjs/{@tanstack_react-query@5.85.8_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +0 -0
  193. /package/dist/.external/cjs/{@tanstack_react-query@5.85.8_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/suspense.cjs +0 -0
  194. /package/dist/.external/esm/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/focusManager.mjs +0 -0
  195. /package/dist/.external/esm/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +0 -0
  196. /package/dist/.external/esm/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/mutation.mjs +0 -0
  197. /package/dist/.external/esm/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/mutationCache.mjs +0 -0
  198. /package/dist/.external/esm/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/onlineManager.mjs +0 -0
  199. /package/dist/.external/esm/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/queryCache.mjs +0 -0
  200. /package/dist/.external/esm/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/queryClient.mjs +0 -0
  201. /package/dist/.external/esm/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/retryer.mjs +0 -0
  202. /package/dist/.external/esm/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/subscribable.mjs +0 -0
  203. /package/dist/.external/esm/{@tanstack_query-core@5.85.7 → @tanstack_query-core@5.87.1}/@tanstack/query-core/build/modern/thenable.mjs +0 -0
  204. /package/dist/.external/esm/{@tanstack_react-query@5.85.8_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.mjs +0 -0
  205. /package/dist/.external/esm/{@tanstack_react-query@5.85.8_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.mjs +0 -0
  206. /package/dist/.external/esm/{@tanstack_react-query@5.85.8_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +0 -0
  207. /package/dist/.external/esm/{@tanstack_react-query@5.85.8_react@18.3.1 → @tanstack_react-query@5.87.1_react@18.3.1}/@tanstack/react-query/build/modern/suspense.mjs +0 -0
  208. /package/dist/core/cjs/{ActionIcons/Modals → Modals}/normalProps.cjs +0 -0
  209. /package/dist/core/cjs/{ActionIcons/Modals → Modals}/overlayProps.cjs +0 -0
  210. /package/dist/core/esm/{ActionIcons/Modals → Modals}/normalProps.mjs +0 -0
  211. /package/dist/core/esm/{ActionIcons/Modals → Modals}/overlayProps.mjs +0 -0
  212. /package/dist/core/lib/{ActionIcons/Modals → Modals}/normalProps.d.ts +0 -0
  213. /package/dist/core/lib/{ActionIcons/Modals → Modals}/overlayProps.d.ts +0 -0
@@ -1,7 +1,12 @@
1
1
  import { createFetchParams, urlJoin, parseResponse } from "fastapi-rtk/utils";
2
- const createItem = async (path, data) => {
3
- const { fetchPath, options } = createFetchParams({ path: urlJoin(path, "/"), method: "POST", body: data });
4
- const response = await fetch(fetchPath, options);
2
+ const createItem = async (path, data, options) => {
3
+ const { fetchPath, options: fetchOptions } = createFetchParams({
4
+ path: urlJoin(path, "/"),
5
+ method: "POST",
6
+ body: data,
7
+ options
8
+ });
9
+ const response = await fetch(fetchPath, fetchOptions);
5
10
  return await parseResponse(response);
6
11
  };
7
12
  export {
@@ -1,7 +1,11 @@
1
1
  import { createFetchParams, urlJoin, parseResponse } from "fastapi-rtk/utils";
2
- const deleteItem = async (path, id) => {
3
- const { fetchPath, options } = createFetchParams({ path: urlJoin(path, id.toString()), method: "DELETE" });
4
- const response = await fetch(fetchPath, options);
2
+ const deleteItem = async (path, id, options) => {
3
+ const { fetchPath, options: fetchOptions } = createFetchParams({
4
+ path: urlJoin(path, id.toString()),
5
+ method: "DELETE",
6
+ options
7
+ });
8
+ const response = await fetch(fetchPath, fetchOptions);
5
9
  return await parseResponse(response);
6
10
  };
7
11
  export {
@@ -1,8 +1,10 @@
1
1
  import { convertToFormData, createFetchParams, urlJoin, parseResponse } from "fastapi-rtk/utils";
2
- const formCreateItem = async (path, data) => {
2
+ const formCreateItem = async (path, data, options) => {
3
3
  const formData = convertToFormData(data);
4
- const { fetchPath, options } = createFetchParams({ path: urlJoin(path, "/"), method: "POST" });
5
- const response = await fetch(fetchPath, { ...options, headers: void 0, body: formData });
4
+ const { fetchPath, options: fetchOptions } = createFetchParams({ path: urlJoin(path, "/"), method: "POST", options });
5
+ fetchOptions["headers"]["Content-Type"] = void 0;
6
+ fetchOptions["body"] = formData;
7
+ const response = await fetch(fetchPath, fetchOptions);
6
8
  return await parseResponse(response);
7
9
  };
8
10
  export {
@@ -1,8 +1,14 @@
1
1
  import { convertToFormData, createFetchParams, urlJoin, parseResponse } from "fastapi-rtk/utils";
2
- const formUpdateItem = async (path, id, data) => {
2
+ const formUpdateItem = async (path, id, data, options) => {
3
3
  const formData = convertToFormData(data);
4
- const { fetchPath, options } = createFetchParams({ path: urlJoin(path, id.toString()), method: "PUT" });
5
- const response = await fetch(fetchPath, { ...options, headers: void 0, body: formData });
4
+ const { fetchPath, options: fetchOptions } = createFetchParams({
5
+ path: urlJoin(path, id.toString()),
6
+ method: "PUT",
7
+ options
8
+ });
9
+ fetchOptions["headers"]["Content-Type"] = void 0;
10
+ fetchOptions["body"] = formData;
11
+ const response = await fetch(fetchPath, fetchOptions);
6
12
  return await parseResponse(response);
7
13
  };
8
14
  export {
@@ -1,7 +1,7 @@
1
1
  import { createFetchParams, parseResponse } from "fastapi-rtk/utils";
2
- const getInfo = async (path, signal) => {
3
- const { fetchPath, options } = createFetchParams({ path, method: "GET" });
4
- const response = await fetch(fetchPath, { signal, ...options });
2
+ const getInfo = async (path, options) => {
3
+ const { fetchPath, options: fetchOptions } = createFetchParams({ path, method: "GET", options });
4
+ const response = await fetch(fetchPath, fetchOptions);
5
5
  return await parseResponse(response);
6
6
  };
7
7
  export {
@@ -1,7 +1,11 @@
1
1
  import { createFetchParams, urlJoin, parseResponse } from "fastapi-rtk/utils";
2
- const getItem = async (path, id) => {
3
- const { fetchPath, options } = createFetchParams({ path: urlJoin(path, id.toString()), method: "GET" });
4
- const response = await fetch(fetchPath, options);
2
+ const getItem = async (path, id, options) => {
3
+ const { fetchPath, options: fetchOptions } = createFetchParams({
4
+ path: urlJoin(path, id.toString()),
5
+ method: "GET",
6
+ options
7
+ });
8
+ const response = await fetch(fetchPath, fetchOptions);
5
9
  return await parseResponse(response);
6
10
  };
7
11
  export {
@@ -1,7 +1,7 @@
1
1
  import { createFetchParams, parseResponse } from "fastapi-rtk/utils";
2
- const getItems = async (path, queryParams, signal) => {
3
- const { fetchPath, options } = createFetchParams({ path, method: "GET", queryParams });
4
- const response = await fetch(fetchPath, { signal, ...options });
2
+ const getItems = async (path, queryParams, options) => {
3
+ const { fetchPath, options: fetchOptions } = createFetchParams({ path, method: "GET", queryParams, options });
4
+ const response = await fetch(fetchPath, fetchOptions);
5
5
  return await parseResponse(response);
6
6
  };
7
7
  export {
@@ -1,7 +1,12 @@
1
1
  import { createFetchParams, urlJoin, parseResponse } from "fastapi-rtk/utils";
2
- const updateItem = async (path, id, data) => {
3
- const { fetchPath, options } = createFetchParams({ path: urlJoin(path, id.toString()), method: "PUT", body: data });
4
- const response = await fetch(fetchPath, options);
2
+ const updateItem = async (path, id, data, options) => {
3
+ const { fetchPath, options: fetchOptions } = createFetchParams({
4
+ path: urlJoin(path, id.toString()),
5
+ method: "PUT",
6
+ body: data,
7
+ options
8
+ });
9
+ const response = await fetch(fetchPath, fetchOptions);
5
10
  return await parseResponse(response);
6
11
  };
7
12
  export {
@@ -1,11 +1,12 @@
1
1
  import { createFetchParams, urlJoin, parseResponse } from "fastapi-rtk/utils";
2
- const postBulk = async (path, handler, data) => {
3
- const { fetchPath, options } = createFetchParams({
2
+ const postBulk = async (path, handler, data, options) => {
3
+ const { fetchPath, options: fetchOptions } = createFetchParams({
4
4
  path: urlJoin(path, "/bulk", handler),
5
5
  method: "POST",
6
- body: data
6
+ body: data,
7
+ options
7
8
  });
8
- const response = await fetch(fetchPath, options);
9
+ const response = await fetch(fetchPath, fetchOptions);
9
10
  return await parseResponse(response);
10
11
  };
11
12
  export {
@@ -0,0 +1,71 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { LANG_LOCAL_STORAGE_PROPS } from "fastapi-rtk/constants";
3
+ import { createSafeContext, parseFromValuesOrFunc } from "fastapi-rtk/utils";
4
+ import { useProxy } from "fastapi-rtk/zustand";
5
+ import { useLocalStorage } from "@mantine/hooks";
6
+ import { createInstance } from "../../../../../.external/esm/i18next@25.5.2_typescript@5.9.2/i18next/dist/esm/i18next.mjs";
7
+ import { useRef, useMemo, useEffect } from "react";
8
+ import de from "../../../translations/de.mjs";
9
+ import { useProvideLang } from "../hooks/useProvideLang.mjs";
10
+ import { I18nextProvider } 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/I18nextProvider.mjs";
11
+ import { initReactI18next } 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/initReactI18next.mjs";
12
+ const getI18n = ({ initProps, callback } = {}) => {
13
+ var _a, _b, _c, _d, _e, _f;
14
+ const i18n = createInstance();
15
+ i18n.use(initReactI18next).init({
16
+ ...initProps,
17
+ // the translations
18
+ // (tip move them in a JSON file and import them,
19
+ // or even better, manage them via a UI: https://react.i18next.com/guides/multiple-translation-files#manage-your-translations-with-a-management-gui)
20
+ resources: {
21
+ ...initProps == null ? void 0 : initProps.resources,
22
+ en: {
23
+ ...(_a = initProps == null ? void 0 : initProps.resources) == null ? void 0 : _a.en,
24
+ translation: {
25
+ "Welcome to React": "Welcome to React and react-i18next",
26
+ ...(_c = (_b = initProps == null ? void 0 : initProps.resources) == null ? void 0 : _b.en) == null ? void 0 : _c.translation
27
+ }
28
+ },
29
+ de: {
30
+ ...(_d = initProps == null ? void 0 : initProps.resources) == null ? void 0 : _d.de,
31
+ translation: {
32
+ "Welcome to React": "Willkommen bei React und react-i18next",
33
+ ...de,
34
+ ...(_f = (_e = initProps == null ? void 0 : initProps.resources) == null ? void 0 : _e.de) == null ? void 0 : _f.translation
35
+ }
36
+ }
37
+ },
38
+ interpolation: {
39
+ escapeValue: false,
40
+ // react already safes from xss => https://www.i18next.com/translation-function/interpolation#unescape
41
+ ...initProps == null ? void 0 : initProps.interpolation
42
+ }
43
+ });
44
+ return parseFromValuesOrFunc(callback ?? i18n, i18n);
45
+ };
46
+ const [InnerInnerLangContextProvider, useLangProvider] = createSafeContext(
47
+ "useLang must be used within a Provider"
48
+ );
49
+ const InnerLangContextProvider = ({ children, MRTLocalization, ...props }) => {
50
+ const lang = useProvideLang(MRTLocalization);
51
+ const langProxy = useProxy(lang);
52
+ return /* @__PURE__ */ jsx(InnerInnerLangContextProvider, { value: langProxy, ...props, children });
53
+ };
54
+ const LangContextProvider = ({ children, langProps, props }) => {
55
+ const i18nRef = useRef((langProps == null ? void 0 : langProps.i18n) ?? getI18n(langProps == null ? void 0 : langProps.getI18nProps));
56
+ const [localStorageLanguage] = useLocalStorage(LANG_LOCAL_STORAGE_PROPS);
57
+ const language = useMemo(
58
+ () => parseFromValuesOrFunc(langProps == null ? void 0 : langProps.lang, i18nRef.current) ?? localStorageLanguage,
59
+ [langProps == null ? void 0 : langProps.lang, localStorageLanguage]
60
+ );
61
+ useEffect(() => {
62
+ i18nRef.current.changeLanguage(language);
63
+ }, [language]);
64
+ return /* @__PURE__ */ jsx(I18nextProvider, { i18n: i18nRef.current, children: /* @__PURE__ */ jsx(InnerLangContextProvider, { MRTLocalization: langProps == null ? void 0 : langProps.MRTLocalization, ...props, children }) });
65
+ };
66
+ export {
67
+ InnerInnerLangContextProvider,
68
+ InnerLangContextProvider,
69
+ LangContextProvider,
70
+ useLangProvider
71
+ };
@@ -1,12 +1,13 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useProxy } from "fastapi-rtk/zustand";
3
- import { QueryClient } from "../../../../.external/esm/@tanstack_query-core@5.85.7/@tanstack/query-core/build/modern/queryClient.mjs";
4
- import { QueryClientProvider } from "../../../../.external/esm/@tanstack_react-query@5.85.8_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
3
+ import { QueryClient } from "../../../../.external/esm/@tanstack_query-core@5.87.1/@tanstack/query-core/build/modern/queryClient.mjs";
4
+ import { QueryClientProvider } from "../../../../.external/esm/@tanstack_react-query@5.87.1_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
5
5
  import { useState, useMemo } from "react";
6
6
  import { defaultAuth } from "../../fab-react-toolkit-patch/auth/hooks/useProvideAuth.mjs";
7
7
  import { defaultInfo } from "../../fab-react-toolkit-patch/auth/hooks/useProvideInfo.mjs";
8
8
  import { AuthContextProvider } from "./Contexts/AuthContext.mjs";
9
9
  import { InfoContextProvider } from "./Contexts/InfoContext.mjs";
10
+ import { LangContextProvider } from "./Contexts/LangContext.mjs";
10
11
  import { useProvideAuth } from "./hooks/useProvideAuth.mjs";
11
12
  import { useProvideInfo } from "./hooks/useProvideInfo.mjs";
12
13
  function InnerProvider(props) {
@@ -21,7 +22,7 @@ function InnerProvider(props) {
21
22
  const authProxy = useProxy(auth);
22
23
  const info = useProvideInfo(baseUrl, auth, infoParams);
23
24
  const infoProxy = useProxy(info);
24
- return /* @__PURE__ */ jsx(AuthContextProvider, { value: authProxy, children: /* @__PURE__ */ jsx(InfoContextProvider, { value: infoProxy, children }) });
25
+ return /* @__PURE__ */ jsx(AuthContextProvider, { value: authProxy, children: /* @__PURE__ */ jsx(InfoContextProvider, { value: infoProxy, children: /* @__PURE__ */ jsx(LangContextProvider, { langProps: props.langProps, children }) }) });
25
26
  }
26
27
  const Provider = (props) => {
27
28
  const [queryClient] = useState(() => new QueryClient(props.queryClientProps));
@@ -1,5 +1,5 @@
1
- import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.85.8_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
2
- import { useQueryClient } from "../../../../../.external/esm/@tanstack_react-query@5.85.8_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
1
+ import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.87.1_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
2
+ import { useQueryClient } from "../../../../../.external/esm/@tanstack_react-query@5.87.1_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
3
3
  import { useState, useCallback, useMemo } from "react";
4
4
  import { authOAuthSignin, authResetPassword, authSignout, authSignin } from "../utils/authFetch.mjs";
5
5
  import { updateUser, getUser } from "../utils/userCRUD.mjs";
@@ -1,4 +1,4 @@
1
- import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.85.8_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
1
+ import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.87.1_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
2
2
  import { useEffect } from "react";
3
3
  import { authInfo } from "../utils/authFetch.mjs";
4
4
  const defaultInfo = { getInfo: authInfo };
@@ -0,0 +1,44 @@
1
+ import { LANG_LOCAL_STORAGE_PROPS, MRT_LOCALIZATION_IMPORT_MAP } from "fastapi-rtk/constants";
2
+ import { FastAPIRTKLogger } from "fastapi-rtk/utils";
3
+ import { useLocalStorage, useSetState } from "@mantine/hooks";
4
+ import { useCallback, useEffect } from "react";
5
+ 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";
6
+ const useProvideLang = (baseMRTLocalization = {}) => {
7
+ const translation = useTranslation();
8
+ const [localStorageLanguage, setLocalStorageLanguage] = useLocalStorage(LANG_LOCAL_STORAGE_PROPS);
9
+ const setLanguage = useCallback(
10
+ (lng) => {
11
+ translation.i18n.changeLanguage(lng).then(() => setLocalStorageLanguage(lng));
12
+ },
13
+ [setLocalStorageLanguage, translation.i18n]
14
+ );
15
+ const [MRTLocalization, setMRTLocalization] = useSetState(baseMRTLocalization);
16
+ useEffect(() => {
17
+ if (!translation.i18n.language) {
18
+ return;
19
+ }
20
+ if (!(MRTLocalization == null ? void 0 : MRTLocalization[translation.i18n.language])) {
21
+ if (!MRT_LOCALIZATION_IMPORT_MAP[translation.i18n.language]) {
22
+ FastAPIRTKLogger.error(
23
+ `No localization found for '${translation.i18n.language}', consider adding it yourself using 'MRTLocalization' prop within the 'langProps' in 'Provider' component. See here for the keys: https://github.com/KevinVandy/mantine-react-table/blob/v2/packages/mantine-react-table/src/locales/en.ts`
24
+ );
25
+ return;
26
+ }
27
+ MRT_LOCALIZATION_IMPORT_MAP[translation.i18n.language]().then((languagePack) => setMRTLocalization({ [translation.i18n.language]: languagePack })).catch(() => FastAPIRTKLogger.error(`Failed to load localization for ${translation.i18n.language}`));
28
+ }
29
+ }, [translation.i18n.language]);
30
+ return {
31
+ currentLanguage: translation.i18n.language,
32
+ setLanguage,
33
+ translation,
34
+ useTranslation,
35
+ currentMRTLocalization: MRTLocalization[translation.i18n.language],
36
+ MRTLocalization,
37
+ setMRTLocalization,
38
+ localStorageLanguage,
39
+ setLocalStorageLanguage
40
+ };
41
+ };
42
+ export {
43
+ useProvideLang
44
+ };
@@ -1,8 +1,18 @@
1
- import { useFormEditProvider, useFormAddProvider } from "../../Wrappers/ApiProvider/Contexts/FormContext.mjs";
2
- const useForms = (type, options) => (
3
- // eslint-disable-next-line react-hooks/rules-of-hooks
4
- type === "add" ? useFormAddProvider(options) : useFormEditProvider(options)
5
- );
1
+ import { useFormDeleteProvider, useFormEditProvider, useFormAddProvider, useFormViewProvider } from "../../Wrappers/ApiProvider/Contexts/FormContext.mjs";
2
+ const useForms = (type, options) => {
3
+ switch (type) {
4
+ case "view":
5
+ return useFormViewProvider(options);
6
+ case "add":
7
+ return useFormAddProvider(options);
8
+ case "edit":
9
+ return useFormEditProvider(options);
10
+ case "delete":
11
+ return useFormDeleteProvider(options);
12
+ default:
13
+ throw new Error(`useForms: Unknown form type '${type}'. Expected 'view', 'add', 'edit', or 'delete'.`);
14
+ }
15
+ };
6
16
  export {
7
17
  useForms
8
18
  };
@@ -0,0 +1,5 @@
1
+ import { useLangProvider } from "../../Wrappers/Provider/Contexts/LangContext.mjs";
2
+ const useLang = (options) => useLangProvider(options);
3
+ export {
4
+ useLang
5
+ };
@@ -6,16 +6,21 @@ import { Edit } from "./ActionIcons/Edit/Edit.mjs";
6
6
  import { Refresh } from "./ActionIcons/Refresh/Refresh.mjs";
7
7
  import { Upload } from "./ActionIcons/Upload/Upload.mjs";
8
8
  import { View } from "./ActionIcons/View/View.mjs";
9
+ import { AddDialog } from "./Dialogs/AddDialog.mjs";
10
+ import { DeleteDialog } from "./Dialogs/DeleteDialog.mjs";
11
+ import { EditDialog } from "./Dialogs/EditDialog.mjs";
12
+ import { TabsDisplay, ViewDialog } from "./Dialogs/ViewDialog.mjs";
9
13
  import { useApi } from "./hooks/api/useApi.mjs";
10
14
  import { useBulkActions } from "./hooks/api/useBulkActions.mjs";
11
15
  import { useForms } from "./hooks/api/useForms.mjs";
12
16
  import { useAuth } from "./hooks/auth/useAuth.mjs";
13
17
  import { useInfo } from "./hooks/auth/useInfo.mjs";
18
+ import { useLang } from "./hooks/lang/useLang.mjs";
14
19
  import { UserMenu } from "./Menu/UserMenu/UserMenu.mjs";
15
- import { AddDialog } from "./ActionIcons/Add/AddDialog.mjs";
16
- import { EditDialog } from "./ActionIcons/Edit/EditDialog.mjs";
17
- import { CommonModal } from "./ActionIcons/Modals/CommonModal.mjs";
18
- import { ViewDialog } from "./ActionIcons/View/ViewDialog.mjs";
20
+ import { LanguageSelector } from "./Selectors/LanguageSelector.mjs";
21
+ import { CommonModal } from "./Modals/CommonModal.mjs";
22
+ import { normalProps } from "./Modals/normalProps.mjs";
23
+ import { overlayProps } from "./Modals/overlayProps.mjs";
19
24
  import { DataGrid, DataGrid as DataGrid2 } from "./Tables/DataGrid/DataGrid.mjs";
20
25
  import { NextGenDataGrid, NextGenDataGrid as NextGenDataGrid2, NextGenDataGrid as NextGenDataGrid3, NextGenDataGrid as NextGenDataGrid4 } from "./Tables/NextGenDataGrid/NextGenDataGrid.mjs";
21
26
  import { ApiProvider } from "./Wrappers/ApiProvider/ApiProvider.mjs";
@@ -28,6 +33,7 @@ export * from "fastapi-rtk/hooks";
28
33
  export * from "fastapi-rtk/utils";
29
34
  export * from "fastapi-rtk/zustand";
30
35
  import { Filter } from "./Tables/DataGrid/Toolbar/Filter/Filter.mjs";
36
+ 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
37
  export {
32
38
  Actions,
33
39
  Add,
@@ -37,11 +43,13 @@ export {
37
43
  DataGrid,
38
44
  DataGrid2 as Datagrid,
39
45
  Delete,
46
+ DeleteDialog,
40
47
  Download,
41
48
  Edit,
42
49
  EditDialog,
43
50
  Filter,
44
51
  InfiniteScroll,
52
+ LanguageSelector,
45
53
  LazyLoadWrapper,
46
54
  NextGenDataGrid,
47
55
  NextGenDataGrid2 as NextGenDatagrid,
@@ -49,13 +57,18 @@ export {
49
57
  NextGenDataGrid4 as Nextgendatagrid,
50
58
  Provider,
51
59
  Refresh,
60
+ TabsDisplay,
52
61
  Upload,
53
62
  UserMenu,
54
63
  View,
55
64
  ViewDialog,
65
+ normalProps,
66
+ overlayProps,
56
67
  useApi,
57
68
  useAuth,
58
69
  useBulkActions,
59
70
  useForms,
60
- useInfo
71
+ useInfo,
72
+ useLang,
73
+ useTranslation
61
74
  };
@@ -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
+ };
@@ -1,4 +1,4 @@
1
- export function ViewDialog({ item, info, opened, onClose, ...props }: {
1
+ export function Unused({ item, info, opened, onClose, ...props }: {
2
2
  [x: string]: any;
3
3
  item: any;
4
4
  info: any;
@@ -7,37 +7,48 @@
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.
27
34
  */
28
35
  /**
29
- * EditDialog component renders a modal dialog for editing an entry.
36
+ * @typedef {Object} AddDialogProps
37
+ * @property {Record<string, any>} [jsonForms] - Additional JSON Forms customization options.
38
+ * @property {(result: Record<string, any> | null) => void} [onSuccess] - Callback function triggered on successful form submission.
39
+ * @property {(error: any) => void} [onError] - Callback function triggered on form submission error.
40
+ */
41
+ /**
42
+ * AddDialog is a component that renders a modal dialog for adding a new entry.
30
43
  *
31
- * This component leverages various hooks to manage form state, API interactions, and UI transitions.
32
- * It initializes the form state based on the provided item's result and handles form submission by
33
- * sending only changed data to update the corresponding entry. Upon a successful update, it triggers
34
- * a refetch of data and related information.
44
+ * It integrates with the application's API to add entries and manages form state,
45
+ * view modes, and loading state via custom hooks. The component also manages the merge
46
+ * of default JSON Forms settings with any additional props provided.
35
47
  *
36
- * @component
37
- * @param {CommonModalProps} props - The component props.
38
- * @returns {JSX.Element} The rendered EditDialog component.
48
+ * @param {AddDialogProps & CommonModalProps} props - The properties for the AddDialog component.
49
+ * @returns {JSX.Element} The rendered modal dialog component for adding an entry.
39
50
  */
40
- export function EditDialog({ jsonForms: __jsonForms, ...props }: CommonModalProps): JSX.Element;
51
+ export function AddDialog({ jsonForms: __jsonForms, onSuccess, onError, ...props }: AddDialogProps & CommonModalProps): JSX.Element;
41
52
  export type CommonModalTitleOptionsProps = {
42
53
  /**
43
54
  * - Content or function to render on the left side of the title.
@@ -76,27 +87,33 @@ export type CommonModalTitleOptionsProps = {
76
87
  setView: (view: string) => void;
77
88
  }) => Record<string, any>);
78
89
  };
79
- export type CommonModalProps = {
90
+ export type CommonModalActionButtonsProps = {
80
91
  /**
81
- * - Schema for backward compatibility with fab-react-toolkit that includes defaultValues and validation schema.
92
+ * - Additional properties to be passed to the Group component wrapping the buttons.
82
93
  */
83
- fabSchema: Record<string, any>;
94
+ groupProps?: Record<string, any>;
84
95
  /**
85
- * - JSON Schema used by JsonFormsWithCustomizer.
96
+ * - Flag to determine if the reset button should be displayed.
86
97
  */
87
- schema: Record<string, any>;
98
+ withResetButton?: boolean;
88
99
  /**
89
- * - UI schema for customizing the form layout.
100
+ * - Flag to determine if the submit button should be displayed.
90
101
  */
91
- uischema: Record<string, any>;
102
+ withSubmitButton?: boolean;
92
103
  /**
93
- * - State object containing the form data.
104
+ * - Additional properties to be passed to the reset Button component.
94
105
  */
95
- state: Record<string, any>;
106
+ resetButtonProps?: Record<string, any>;
96
107
  /**
97
- * - Function to update the state containing form data.
108
+ * - Additional properties to be passed to the submit Button component.
98
109
  */
99
- setState: Function;
110
+ submitButtonProps?: Record<string, any>;
111
+ };
112
+ export type CommonModalProps = {
113
+ /**
114
+ * - The content to be rendered inside the modal.
115
+ */
116
+ children: React.ReactNode;
100
117
  /**
101
118
  * - Current view mode (e.g., VIEW_MODE.NORMAL, VIEW_MODE.FULL_SCREEN, VIEW_MODE.OVERLAY).
102
119
  */
@@ -106,9 +123,9 @@ export type CommonModalProps = {
106
123
  */
107
124
  setView: Function;
108
125
  /**
109
- * - Customizer configuration or additional properties for JsonFormsWithCustomizer.
126
+ * - Callback function triggered on form reset.
110
127
  */
111
- jsonForms: Record<string, any>;
128
+ onReset: Function;
112
129
  /**
113
130
  * - Callback function triggered on form submission.
114
131
  */
@@ -117,6 +134,10 @@ export type CommonModalProps = {
117
134
  * - Additional properties to be passed to the Box component wrapping the form.
118
135
  */
119
136
  boxProps: Record<string, any>;
137
+ /**
138
+ * - Text displayed on the reset button.
139
+ */
140
+ resetButtonText: string;
120
141
  /**
121
142
  * - Text displayed on the submit button.
122
143
  */
@@ -129,12 +150,34 @@ export type CommonModalProps = {
129
150
  * - Flag to determine if title options (e.g., full screen, overlay toggles) should be displayed.
130
151
  */
131
152
  withTitleOptions?: boolean;
153
+ /**
154
+ * - Flag to determine if action buttons (e.g., submit button) should be displayed.
155
+ */
156
+ withButtons?: boolean;
132
157
  /**
133
158
  * - Options for customizing the title area, such as toggles for full screen and overlay modes.
134
159
  */
135
160
  titleOptions?: CommonModalTitleOptionsProps;
161
+ /**
162
+ * - Options for customizing the action buttons area.
163
+ */
164
+ actionButtons?: CommonModalActionButtonsProps;
136
165
  /**
137
166
  * - Additional props to be passed to the Modal component.
138
167
  */
139
168
  rest: Record<string, any>;
140
169
  };
170
+ export type AddDialogProps = {
171
+ /**
172
+ * - Additional JSON Forms customization options.
173
+ */
174
+ jsonForms?: Record<string, any>;
175
+ /**
176
+ * - Callback function triggered on successful form submission.
177
+ */
178
+ onSuccess?: (result: Record<string, any> | null) => void;
179
+ /**
180
+ * - Callback function triggered on form submission error.
181
+ */
182
+ onError?: (error: any) => void;
183
+ };