fastapi-rtk 0.2.39 → 0.2.41

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 (237) hide show
  1. package/dist/.bundled/jsonforms/cjs/index.cjs +2 -0
  2. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/Contexts/LayoutPaddingContext.cjs +8 -0
  3. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/JsonFormsWithCustomizer/JsonFormsWithCustomizer.cjs +6 -3
  4. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineBooleanInput.cjs +13 -5
  5. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineDateInput.cjs +3 -3
  6. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineDateTimeInput.cjs +7 -7
  7. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineEnumArrayInput.cjs +3 -3
  8. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineEnumInput.cjs +3 -3
  9. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineFileInput.cjs +3 -3
  10. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineJsonInput.cjs +3 -3
  11. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineNumberInput.cjs +3 -3
  12. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineOneOfEnumInput.cjs +5 -5
  13. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineTextInput.cjs +3 -3
  14. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineTimeInput.cjs +3 -3
  15. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useBooleanProps.cjs +4 -4
  16. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useCommonProps.cjs +20 -1
  17. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useDateProps.cjs +5 -5
  18. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useFileProps.cjs +2 -2
  19. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useJsonProps.cjs +9 -9
  20. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useMultiSelectProps.cjs +3 -3
  21. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useNumberProps.cjs +3 -3
  22. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useSelectProps.cjs +2 -2
  23. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useTextProps.cjs +2 -2
  24. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useTimeProps.cjs +2 -2
  25. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/MantineCategorizationLayoutRenderer.cjs +74 -0
  26. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationCards.cjs +86 -0
  27. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationStepper.cjs +124 -0
  28. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationTabs.cjs +93 -0
  29. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/renderers/mantineRenderers.cjs +1 -1
  30. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/layout.cjs +5 -3
  31. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/withAjvProps.cjs +11 -0
  32. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/withDebounce.cjs +12 -0
  33. package/dist/.bundled/jsonforms/esm/index.mjs +3 -1
  34. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/Contexts/LayoutPaddingContext.mjs +8 -0
  35. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/JsonFormsWithCustomizer/JsonFormsWithCustomizer.mjs +6 -3
  36. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineBooleanInput.mjs +13 -5
  37. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineDateInput.mjs +3 -3
  38. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineDateTimeInput.mjs +7 -7
  39. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineEnumArrayInput.mjs +3 -3
  40. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineEnumInput.mjs +3 -3
  41. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineFileInput.mjs +3 -3
  42. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineJsonInput.mjs +3 -3
  43. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineNumberInput.mjs +3 -3
  44. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineOneOfEnumInput.mjs +5 -5
  45. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineTextInput.mjs +3 -3
  46. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineTimeInput.mjs +3 -3
  47. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useBooleanProps.mjs +4 -4
  48. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useCommonProps.mjs +20 -1
  49. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useDateProps.mjs +5 -5
  50. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useFileProps.mjs +2 -2
  51. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useJsonProps.mjs +9 -9
  52. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useMultiSelectProps.mjs +3 -3
  53. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useNumberProps.mjs +3 -3
  54. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useSelectProps.mjs +2 -2
  55. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useTextProps.mjs +2 -2
  56. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useTimeProps.mjs +2 -2
  57. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/MantineCategorizationLayoutRenderer.mjs +74 -0
  58. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationCards.mjs +86 -0
  59. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationStepper.mjs +124 -0
  60. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationTabs.mjs +93 -0
  61. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/renderers/mantineRenderers.mjs +1 -1
  62. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/layout.mjs +5 -3
  63. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/withAjvProps.mjs +11 -0
  64. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/withDebounce.mjs +12 -0
  65. package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs +1 -1
  66. package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.cjs +2 -2
  67. package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.cjs +1 -1
  68. package/dist/.external/esm/@jsonforms_react@3.6.0_@jsonforms_core@3.6.0_react@18.3.1/@jsonforms/react/lib/jsonforms-react.esm.mjs +1 -1
  69. package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +1 -1
  70. package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.mjs +2 -2
  71. package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.mjs +1 -1
  72. package/dist/constants/cjs/index.cjs +3 -1
  73. package/dist/constants/esm/index.mjs +3 -1
  74. package/dist/constants/lib/index.d.ts +2 -1
  75. package/dist/core/cjs/Dialogs/AddDialog.cjs +1 -1
  76. package/dist/core/cjs/Dialogs/DeleteDialog.cjs +4 -4
  77. package/dist/core/cjs/Dialogs/EditDialog.cjs +1 -1
  78. package/dist/core/cjs/Tables/DataGrid/ErrorDialog.cjs +5 -2
  79. package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +1 -1
  80. package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +10 -10
  81. package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideBulk.cjs +1 -1
  82. package/dist/core/cjs/Wrappers/Provider/Contexts/LangContext.cjs +12 -7
  83. package/dist/core/cjs/Wrappers/Provider/Provider.cjs +2 -2
  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/utils/authFetch.cjs +2 -2
  87. package/dist/core/cjs/fab-react-toolkit-patch/auth/utils/authFetch.cjs +2 -2
  88. package/dist/core/cjs/translations/de.cjs +25 -3
  89. package/dist/core/esm/Dialogs/AddDialog.mjs +1 -1
  90. package/dist/core/esm/Dialogs/DeleteDialog.mjs +4 -4
  91. package/dist/core/esm/Dialogs/EditDialog.mjs +1 -1
  92. package/dist/core/esm/Tables/DataGrid/ErrorDialog.mjs +5 -2
  93. package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +1 -1
  94. package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +10 -10
  95. package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideBulk.mjs +1 -1
  96. package/dist/core/esm/Wrappers/Provider/Contexts/LangContext.mjs +12 -7
  97. package/dist/core/esm/Wrappers/Provider/Provider.mjs +2 -2
  98. package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +2 -2
  99. package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +1 -1
  100. package/dist/core/esm/Wrappers/Provider/utils/authFetch.mjs +2 -2
  101. package/dist/core/esm/fab-react-toolkit-patch/auth/utils/authFetch.mjs +2 -2
  102. package/dist/core/esm/translations/de.mjs +25 -3
  103. package/dist/core/lib/Dialogs/DeleteDialog.d.ts +5 -1
  104. package/dist/core/lib/Wrappers/Provider/Provider.d.ts +4 -0
  105. package/dist/core/lib/translations/de.d.ts +20 -0
  106. package/dist/jsonforms/cjs/Contexts/LayoutPaddingContext.cjs +8 -0
  107. package/dist/jsonforms/cjs/JsonFormsWithCustomizer/JsonFormsWithCustomizer.cjs +6 -3
  108. package/dist/jsonforms/cjs/MantineInputs/MantineBooleanInput.cjs +13 -5
  109. package/dist/jsonforms/cjs/MantineInputs/MantineDateInput.cjs +3 -3
  110. package/dist/jsonforms/cjs/MantineInputs/MantineDateTimeInput.cjs +7 -7
  111. package/dist/jsonforms/cjs/MantineInputs/MantineEnumArrayInput.cjs +3 -3
  112. package/dist/jsonforms/cjs/MantineInputs/MantineEnumInput.cjs +3 -3
  113. package/dist/jsonforms/cjs/MantineInputs/MantineFileInput.cjs +3 -3
  114. package/dist/jsonforms/cjs/MantineInputs/MantineJsonInput.cjs +3 -3
  115. package/dist/jsonforms/cjs/MantineInputs/MantineNumberInput.cjs +3 -3
  116. package/dist/jsonforms/cjs/MantineInputs/MantineOneOfEnumInput.cjs +5 -5
  117. package/dist/jsonforms/cjs/MantineInputs/MantineTextInput.cjs +3 -3
  118. package/dist/jsonforms/cjs/MantineInputs/MantineTimeInput.cjs +3 -3
  119. package/dist/jsonforms/cjs/hooks/useBooleanProps.cjs +4 -4
  120. package/dist/jsonforms/cjs/hooks/useCommonProps.cjs +20 -1
  121. package/dist/jsonforms/cjs/hooks/useDateProps.cjs +5 -5
  122. package/dist/jsonforms/cjs/hooks/useFileProps.cjs +2 -2
  123. package/dist/jsonforms/cjs/hooks/useJsonProps.cjs +9 -9
  124. package/dist/jsonforms/cjs/hooks/useMultiSelectProps.cjs +3 -3
  125. package/dist/jsonforms/cjs/hooks/useNumberProps.cjs +3 -3
  126. package/dist/jsonforms/cjs/hooks/useSelectProps.cjs +2 -2
  127. package/dist/jsonforms/cjs/hooks/useTextProps.cjs +2 -2
  128. package/dist/jsonforms/cjs/hooks/useTimeProps.cjs +2 -2
  129. package/dist/jsonforms/cjs/index.cjs +2 -0
  130. package/dist/jsonforms/cjs/layouts/Categorization/MantineCategorizationLayoutRenderer.cjs +74 -0
  131. package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationCards.cjs +86 -0
  132. package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationStepper.cjs +124 -0
  133. package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationTabs.cjs +93 -0
  134. package/dist/jsonforms/cjs/renderers/mantineRenderers.cjs +1 -1
  135. package/dist/jsonforms/cjs/utils/layout.cjs +5 -3
  136. package/dist/jsonforms/cjs/utils/withAjvProps.cjs +11 -0
  137. package/dist/jsonforms/cjs/utils/withDebounce.cjs +12 -0
  138. package/dist/jsonforms/esm/Contexts/LayoutPaddingContext.mjs +8 -0
  139. package/dist/jsonforms/esm/JsonFormsWithCustomizer/JsonFormsWithCustomizer.mjs +6 -3
  140. package/dist/jsonforms/esm/MantineInputs/MantineBooleanInput.mjs +13 -5
  141. package/dist/jsonforms/esm/MantineInputs/MantineDateInput.mjs +3 -3
  142. package/dist/jsonforms/esm/MantineInputs/MantineDateTimeInput.mjs +7 -7
  143. package/dist/jsonforms/esm/MantineInputs/MantineEnumArrayInput.mjs +3 -3
  144. package/dist/jsonforms/esm/MantineInputs/MantineEnumInput.mjs +3 -3
  145. package/dist/jsonforms/esm/MantineInputs/MantineFileInput.mjs +3 -3
  146. package/dist/jsonforms/esm/MantineInputs/MantineJsonInput.mjs +3 -3
  147. package/dist/jsonforms/esm/MantineInputs/MantineNumberInput.mjs +3 -3
  148. package/dist/jsonforms/esm/MantineInputs/MantineOneOfEnumInput.mjs +5 -5
  149. package/dist/jsonforms/esm/MantineInputs/MantineTextInput.mjs +3 -3
  150. package/dist/jsonforms/esm/MantineInputs/MantineTimeInput.mjs +3 -3
  151. package/dist/jsonforms/esm/hooks/useBooleanProps.mjs +4 -4
  152. package/dist/jsonforms/esm/hooks/useCommonProps.mjs +20 -1
  153. package/dist/jsonforms/esm/hooks/useDateProps.mjs +5 -5
  154. package/dist/jsonforms/esm/hooks/useFileProps.mjs +2 -2
  155. package/dist/jsonforms/esm/hooks/useJsonProps.mjs +9 -9
  156. package/dist/jsonforms/esm/hooks/useMultiSelectProps.mjs +3 -3
  157. package/dist/jsonforms/esm/hooks/useNumberProps.mjs +3 -3
  158. package/dist/jsonforms/esm/hooks/useSelectProps.mjs +2 -2
  159. package/dist/jsonforms/esm/hooks/useTextProps.mjs +2 -2
  160. package/dist/jsonforms/esm/hooks/useTimeProps.mjs +2 -2
  161. package/dist/jsonforms/esm/index.mjs +3 -1
  162. package/dist/jsonforms/esm/layouts/Categorization/MantineCategorizationLayoutRenderer.mjs +74 -0
  163. package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationCards.mjs +86 -0
  164. package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationStepper.mjs +124 -0
  165. package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationTabs.mjs +93 -0
  166. package/dist/jsonforms/esm/renderers/mantineRenderers.mjs +1 -1
  167. package/dist/jsonforms/esm/utils/layout.mjs +5 -3
  168. package/dist/jsonforms/esm/utils/withAjvProps.mjs +11 -0
  169. package/dist/jsonforms/esm/utils/withDebounce.mjs +12 -0
  170. package/dist/jsonforms/lib/Contexts/LayoutPaddingContext.d.ts +5 -0
  171. package/dist/jsonforms/lib/JsonFormsWithCustomizer/JsonFormsWithCustomizer.d.ts +14 -0
  172. package/dist/jsonforms/lib/hooks/useBooleanProps.d.ts +3 -3
  173. package/dist/jsonforms/lib/hooks/useCommonProps.d.ts +5 -1
  174. package/dist/jsonforms/lib/hooks/useDateProps.d.ts +3 -3
  175. package/dist/jsonforms/lib/hooks/useFileProps.d.ts +3 -3
  176. package/dist/jsonforms/lib/hooks/useJsonProps.d.ts +5 -5
  177. package/dist/jsonforms/lib/hooks/useMultiSelectProps.d.ts +3 -3
  178. package/dist/jsonforms/lib/hooks/useNumberProps.d.ts +3 -3
  179. package/dist/jsonforms/lib/hooks/useSelectProps.d.ts +3 -3
  180. package/dist/jsonforms/lib/hooks/useTextProps.d.ts +3 -3
  181. package/dist/jsonforms/lib/hooks/useTimeProps.d.ts +3 -3
  182. package/dist/jsonforms/lib/index.d.ts +1 -0
  183. package/dist/jsonforms/lib/layouts/{MantineCategorizationLayoutRenderer.d.ts → Categorization/MantineCategorizationLayoutRenderer.d.ts} +1 -1
  184. package/dist/jsonforms/lib/layouts/Categorization/variants/CategorizationCards.d.ts +10 -0
  185. package/dist/jsonforms/lib/layouts/Categorization/variants/CategorizationStepper.d.ts +11 -0
  186. package/dist/jsonforms/lib/layouts/Categorization/variants/CategorizationTabs.d.ts +10 -0
  187. package/dist/jsonforms/lib/renderers/mantineRenderers.d.ts +12 -3
  188. package/dist/jsonforms/lib/utils/withAjvProps.d.ts +1 -0
  189. package/dist/jsonforms/lib/utils/withDebounce.d.ts +1 -0
  190. package/package.json +1 -1
  191. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineCategorizationLayoutRenderer.cjs +0 -63
  192. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineCategorizationLayoutRenderer.mjs +0 -63
  193. package/dist/jsonforms/cjs/layouts/MantineCategorizationLayoutRenderer.cjs +0 -63
  194. package/dist/jsonforms/esm/layouts/MantineCategorizationLayoutRenderer.mjs +0 -63
  195. package/dist/jsonforms/lib/utils/debounce.d.ts +0 -1
  196. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/focusManager.cjs +0 -0
  197. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +0 -0
  198. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutation.cjs +0 -0
  199. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutationCache.cjs +0 -0
  200. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/notifyManager.cjs +0 -0
  201. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/onlineManager.cjs +0 -0
  202. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/query.cjs +0 -0
  203. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryCache.cjs +0 -0
  204. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryClient.cjs +0 -0
  205. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryObserver.cjs +0 -0
  206. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/removable.cjs +0 -0
  207. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/retryer.cjs +0 -0
  208. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/subscribable.cjs +0 -0
  209. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/thenable.cjs +0 -0
  210. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/timeoutManager.cjs +0 -0
  211. /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/utils.cjs +0 -0
  212. /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.cjs +0 -0
  213. /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.cjs +0 -0
  214. /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +0 -0
  215. /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/suspense.cjs +0 -0
  216. /package/dist/.external/cjs/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.8_yup@1.7.0 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.1_yup@1.7.0}/mantine-form-yup-resolver/dist/esm/index.cjs +0 -0
  217. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/focusManager.mjs +0 -0
  218. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +0 -0
  219. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutation.mjs +0 -0
  220. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutationCache.mjs +0 -0
  221. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/notifyManager.mjs +0 -0
  222. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/onlineManager.mjs +0 -0
  223. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/query.mjs +0 -0
  224. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryCache.mjs +0 -0
  225. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryClient.mjs +0 -0
  226. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryObserver.mjs +0 -0
  227. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/removable.mjs +0 -0
  228. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/retryer.mjs +0 -0
  229. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/subscribable.mjs +0 -0
  230. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/thenable.mjs +0 -0
  231. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/timeoutManager.mjs +0 -0
  232. /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/utils.mjs +0 -0
  233. /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.mjs +0 -0
  234. /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.mjs +0 -0
  235. /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +0 -0
  236. /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/suspense.mjs +0 -0
  237. /package/dist/.external/esm/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.8_yup@1.7.0 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.1_yup@1.7.0}/mantine-form-yup-resolver/dist/esm/index.mjs +0 -0
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const utils = require("fastapi-rtk/utils");
5
+ const jsonformsCore_esm = require("../../../../../../../../../.external/cjs/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.cjs");
6
+ const core = require("@mantine/core");
7
+ const React = require("react");
8
+ const LayoutPaddingContext = require("../../../Contexts/LayoutPaddingContext.cjs");
9
+ const useContextProps = require("../../../hooks/useContextProps.cjs");
10
+ const layout = require("../../../utils/layout.cjs");
11
+ const CategorizationStepperStep = ({ label, description, jsonFormsProps, children, ...props }) => {
12
+ const [, _props] = useContextProps.useContextProps(
13
+ `Categorization.Stepper.Step`,
14
+ `Categorization.Stepper.Step.${label}`,
15
+ { label, description, children },
16
+ jsonFormsProps,
17
+ false
18
+ );
19
+ const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
20
+ return /* @__PURE__ */ jsxRuntime.jsx(core.Stepper.Step, { label: mergedProps.label, description: mergedProps.description, ...mergedProps, children: mergedProps.children });
21
+ };
22
+ const CategorizationStepperButton = ({ labels, name, onClick, jsonFormsProps, children, ...props }) => {
23
+ const [, _props] = useContextProps.useContextProps(
24
+ `Categorization.Stepper.Button`,
25
+ `Categorization.Stepper.Button.[${labels}].${name}`,
26
+ { name, onClick, children },
27
+ jsonFormsProps,
28
+ false
29
+ );
30
+ const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
31
+ return /* @__PURE__ */ jsxRuntime.jsx(core.Button, { ...mergedProps, children: mergedProps.children });
32
+ };
33
+ const CategorizationStepper = ({
34
+ labels,
35
+ categorization: _categorization,
36
+ categories: _categories,
37
+ renderers,
38
+ cells,
39
+ childProps,
40
+ t,
41
+ jsonFormsProps,
42
+ showNavButtons
43
+ }) => {
44
+ const [_value, _onChange] = React.useState((_categories == null ? void 0 : _categories[0]) ? jsonformsCore_esm.deriveLabelForUISchemaElement(_categories[0], t) : "");
45
+ const contextPath = `Categorization.Stepper.[${labels}]`;
46
+ const [, componentProps] = useContextProps.useContextProps(
47
+ `Categorization.Stepper`,
48
+ contextPath,
49
+ {
50
+ categorization: _categorization,
51
+ categories: _categories,
52
+ value: _value,
53
+ onChange: _onChange
54
+ },
55
+ jsonFormsProps,
56
+ false
57
+ );
58
+ const { categories, value, onChange, stepProps, buttonProps, ...rest } = componentProps;
59
+ const categoryLabels = React.useMemo(
60
+ () => categories.map((category) => jsonformsCore_esm.deriveLabelForUISchemaElement(category, t)),
61
+ [categories, t]
62
+ );
63
+ React.useEffect(() => {
64
+ if (!categoryLabels.includes(value)) {
65
+ onChange((categories == null ? void 0 : categories[0]) ? jsonformsCore_esm.deriveLabelForUISchemaElement(categories[0], t) : "");
66
+ }
67
+ }, [categoryLabels]);
68
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
69
+ /* @__PURE__ */ jsxRuntime.jsx(
70
+ core.Stepper,
71
+ {
72
+ active: categoryLabels.indexOf(value),
73
+ onStepClick: (index) => onChange(categoryLabels[index]),
74
+ ...rest,
75
+ children: categories.map((category) => /* @__PURE__ */ jsxRuntime.jsx(
76
+ CategorizationStepperStep,
77
+ {
78
+ label: jsonformsCore_esm.deriveLabelForUISchemaElement(category, t),
79
+ description: category.description,
80
+ jsonFormsProps,
81
+ ...stepProps,
82
+ children: /* @__PURE__ */ jsxRuntime.jsx(LayoutPaddingContext.LayoutPaddingContextProvider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(layout.MantineLayoutRenderer, { ...childProps, elements: category.elements, renderers, cells }) })
83
+ },
84
+ jsonformsCore_esm.deriveLabelForUISchemaElement(category, t)
85
+ ))
86
+ }
87
+ ),
88
+ showNavButtons && /* @__PURE__ */ jsxRuntime.jsxs(core.Group, { justify: "end", children: [
89
+ /* @__PURE__ */ jsxRuntime.jsx(
90
+ CategorizationStepperButton,
91
+ {
92
+ labels,
93
+ name: "Previous",
94
+ onClick: () => {
95
+ const currentIndex = categoryLabels.indexOf(value);
96
+ if (currentIndex > 0) {
97
+ onChange(categoryLabels[currentIndex - 1]);
98
+ }
99
+ },
100
+ jsonFormsProps,
101
+ ...buttonProps,
102
+ children: "Previous"
103
+ }
104
+ ),
105
+ /* @__PURE__ */ jsxRuntime.jsx(
106
+ CategorizationStepperButton,
107
+ {
108
+ labels,
109
+ name: "Next",
110
+ onClick: () => {
111
+ const currentIndex = categoryLabels.indexOf(value);
112
+ if (currentIndex < categoryLabels.length - 1) {
113
+ onChange(categoryLabels[currentIndex + 1]);
114
+ }
115
+ },
116
+ jsonFormsProps,
117
+ ...buttonProps,
118
+ children: "Next"
119
+ }
120
+ )
121
+ ] })
122
+ ] });
123
+ };
124
+ exports.CategorizationStepper = CategorizationStepper;
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const utils = require("fastapi-rtk/utils");
5
+ const jsonformsCore_esm = require("../../../../../../../../../.external/cjs/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.cjs");
6
+ const core = require("@mantine/core");
7
+ const React = require("react");
8
+ const LayoutPaddingContext = require("../../../Contexts/LayoutPaddingContext.cjs");
9
+ const useContextProps = require("../../../hooks/useContextProps.cjs");
10
+ const layout = require("../../../utils/layout.cjs");
11
+ const CategorizationTabsList = ({ labels, jsonFormsProps, children, ...props }) => {
12
+ const [, _props] = useContextProps.useContextProps(
13
+ `Categorization.Tabs.List`,
14
+ `Categorization.Tabs.List.[${labels}]`,
15
+ { labels, children },
16
+ jsonFormsProps,
17
+ false
18
+ );
19
+ const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
20
+ return /* @__PURE__ */ jsxRuntime.jsx(core.Tabs.List, { ...mergedProps, children: mergedProps.children });
21
+ };
22
+ const CategorizationTabsTab = ({ value, jsonFormsProps, children, ...props }) => {
23
+ const [, _props] = useContextProps.useContextProps(
24
+ `Categorization.Tabs.Tab`,
25
+ `Categorization.Tabs.Tab.${value}`,
26
+ { value, children },
27
+ jsonFormsProps,
28
+ false
29
+ );
30
+ const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
31
+ return /* @__PURE__ */ jsxRuntime.jsx(core.Tabs.Tab, { value, ...mergedProps, children: mergedProps == null ? void 0 : mergedProps.children });
32
+ };
33
+ const CategorizationTabsPanel = ({ value, jsonFormsProps, children, ...props }) => {
34
+ const [, _props] = useContextProps.useContextProps(
35
+ `Categorization.Tabs.Panel`,
36
+ `Categorization.Tabs.Panel.${value}`,
37
+ { value, children },
38
+ jsonFormsProps,
39
+ false
40
+ );
41
+ const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
42
+ return /* @__PURE__ */ jsxRuntime.jsx(core.Tabs.Panel, { value, ...mergedProps, children: mergedProps == null ? void 0 : mergedProps.children });
43
+ };
44
+ const CategorizationTabs = ({
45
+ labels,
46
+ categorization: _categorization,
47
+ categories: _categories,
48
+ renderers,
49
+ cells,
50
+ childProps,
51
+ t,
52
+ jsonFormsProps
53
+ }) => {
54
+ const [_value, _onChange] = React.useState((_categories == null ? void 0 : _categories[0]) ? jsonformsCore_esm.deriveLabelForUISchemaElement(_categories[0], t) : "");
55
+ const contextPath = `Categorization.Tabs.[${labels}]`;
56
+ const [, componentProps] = useContextProps.useContextProps(
57
+ `Categorization.Tabs`,
58
+ contextPath,
59
+ {
60
+ categorization: _categorization,
61
+ categories: _categories,
62
+ value: _value,
63
+ onChange: _onChange
64
+ },
65
+ jsonFormsProps,
66
+ false
67
+ );
68
+ const { categories, value, onChange, listProps, tabProps, panelProps, ...rest } = componentProps;
69
+ const categoryLabels = React.useMemo(
70
+ () => categories.map((category) => jsonformsCore_esm.deriveLabelForUISchemaElement(category, t)),
71
+ [categories, t]
72
+ );
73
+ React.useEffect(() => {
74
+ if (!categoryLabels.includes(value)) {
75
+ onChange((categories == null ? void 0 : categories[0]) ? jsonformsCore_esm.deriveLabelForUISchemaElement(categories[0], t) : "");
76
+ }
77
+ }, [categoryLabels]);
78
+ return /* @__PURE__ */ jsxRuntime.jsxs(core.Tabs, { value, onChange, ...rest, children: [
79
+ /* @__PURE__ */ jsxRuntime.jsx(CategorizationTabsList, { labels, jsonFormsProps, ...listProps, children: categoryLabels.map((label) => /* @__PURE__ */ jsxRuntime.jsx(CategorizationTabsTab, { value: label, jsonFormsProps, ...tabProps, children: label }, label)) }),
80
+ _categories.map((category) => /* @__PURE__ */ jsxRuntime.jsx(
81
+ CategorizationTabsPanel,
82
+ {
83
+ value: jsonformsCore_esm.deriveLabelForUISchemaElement(category, t),
84
+ jsonFormsProps,
85
+ pt: "xs",
86
+ ...panelProps,
87
+ children: /* @__PURE__ */ jsxRuntime.jsx(LayoutPaddingContext.LayoutPaddingContextProvider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(layout.MantineLayoutRenderer, { ...childProps, elements: category.elements, renderers, cells }) })
88
+ },
89
+ jsonformsCore_esm.deriveLabelForUISchemaElement(category, t)
90
+ ))
91
+ ] });
92
+ };
93
+ exports.CategorizationTabs = CategorizationTabs;
@@ -16,7 +16,7 @@ const MantineOneOfEnumControl = require("../controls/MantineOneOfEnumControl.cjs
16
16
  const MantineTextControl = require("../controls/MantineTextControl.cjs");
17
17
  const MantineTimeControl = require("../controls/MantineTimeControl.cjs");
18
18
  const MantineLabelRenderer = require("../labels/MantineLabelRenderer.cjs");
19
- const MantineCategorizationLayoutRenderer = require("../layouts/MantineCategorizationLayoutRenderer.cjs");
19
+ const MantineCategorizationLayoutRenderer = require("../layouts/Categorization/MantineCategorizationLayoutRenderer.cjs");
20
20
  const MantineGroupLayoutRenderer = require("../layouts/MantineGroupLayoutRenderer.cjs");
21
21
  const MantineHotizontalLayoutRenderer = require("../layouts/MantineHotizontalLayoutRenderer.cjs");
22
22
  const MantineVerticalLayoutRenderer = require("../layouts/MantineVerticalLayoutRenderer.cjs");
@@ -5,14 +5,16 @@ const jsonformsReact_esm = require("../../../../../../../.external/cjs/@jsonform
5
5
  const core = require("@mantine/core");
6
6
  const isEmpty = require("../../../../_virtual/isEmpty.cjs");
7
7
  const React = require("react");
8
+ const LayoutPaddingContext = require("../Contexts/LayoutPaddingContext.cjs");
8
9
  const renderLayoutElements = (elements, schema, path, enabled, direction, renderers, cells) => {
10
+ const withPadding = LayoutPaddingContext.useLayoutPadding({ throwOnError: false, defaultValue: false });
9
11
  return elements.map((child, index) => /* @__PURE__ */ jsxRuntime.jsx(
10
12
  core.Grid.Col,
11
13
  {
12
14
  span: direction === "row" ? 12 / elements.length : 12,
13
15
  style: { alignContent: "start" },
14
- p: 0,
15
- children: /* @__PURE__ */ jsxRuntime.jsx(
16
+ p: withPadding && child.elements ? void 0 : 0,
17
+ children: /* @__PURE__ */ jsxRuntime.jsx(LayoutPaddingContext.LayoutPaddingContextProvider, { value: false, children: /* @__PURE__ */ jsxRuntime.jsx(
16
18
  jsonformsReact_esm.JsonFormsDispatch,
17
19
  {
18
20
  uischema: child,
@@ -22,7 +24,7 @@ const renderLayoutElements = (elements, schema, path, enabled, direction, render
22
24
  renderers,
23
25
  cells
24
26
  }
25
- )
27
+ ) })
26
28
  },
27
29
  `${path}-${index}`
28
30
  ));
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const jsonformsCore_esm = require("../../../../../../../.external/cjs/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.cjs");
5
+ const jsonformsReact_esm = require("../../../../../../../.external/cjs/@jsonforms_react@3.6.0_@jsonforms_core@3.6.0_react@18.3.1/@jsonforms/react/lib/jsonforms-react.esm.cjs");
6
+ const withAjvProps = (Component) => function WithAjvProps(props) {
7
+ const ctx = jsonformsReact_esm.useJsonForms();
8
+ const ajv = jsonformsCore_esm.getAjv({ jsonforms: { ...ctx } });
9
+ return /* @__PURE__ */ jsxRuntime.jsx(Component, { ...props, ajv });
10
+ };
11
+ exports.withAjvProps = withAjvProps;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const core = require("@mantine/core");
5
+ const useThemeCustomizer = require("../hooks/useThemeCustomizer.cjs");
6
+ const withDebounce = (Component) => {
7
+ return function WithDebounce(props) {
8
+ const customizer = useThemeCustomizer.useThemeCustomizer({ __: { debounce: true } });
9
+ return /* @__PURE__ */ jsxRuntime.jsx(core.MantineThemeProvider, { theme: customizer, children: /* @__PURE__ */ jsxRuntime.jsx(Component, { ...props }) });
10
+ };
11
+ };
12
+ exports.withDebounce = withDebounce;
@@ -21,6 +21,7 @@ import { isJsonArrayControl } from "./packages/jsonforms/src/testers/isJsonArray
21
21
  import { isJsonControl } from "./packages/jsonforms/src/testers/isJsonControl.mjs";
22
22
  import { isSchemaTypeInclude } from "./packages/jsonforms/src/utils/isSchemaTypeInclude.mjs";
23
23
  import { convertLocalStringToUTCString, convertUTCStringToLocalString } from "./packages/jsonforms/src/utils/utcConverter.mjs";
24
+ import { withAjvProps } from "./packages/jsonforms/src/utils/withAjvProps.mjs";
24
25
  export {
25
26
  JsonFormsWithCustomizer,
26
27
  convertLocalStringToUTCString,
@@ -45,5 +46,6 @@ export {
45
46
  useSelectProps,
46
47
  useTextProps,
47
48
  useThemeCustomizer,
48
- useTimeProps
49
+ useTimeProps,
50
+ withAjvProps
49
51
  };
@@ -0,0 +1,8 @@
1
+ import { createSafeContext } from "fastapi-rtk/utils";
2
+ const [LayoutPaddingContextProvider, useLayoutPadding] = createSafeContext(
3
+ "useLayoutPadding must be used within a LayoutPaddingContextProvider"
4
+ );
5
+ export {
6
+ LayoutPaddingContextProvider,
7
+ useLayoutPadding
8
+ };
@@ -10,9 +10,11 @@ const JsonFormsWithCustomizer = memo(function JsonFormsWithCustomizer2({
10
10
  uischema,
11
11
  data,
12
12
  onChange,
13
- customizer
13
+ customizer,
14
+ debounce = false,
15
+ ...props
14
16
  }) {
15
- const theme = useThemeCustomizer(customizer);
17
+ const theme = useThemeCustomizer({ ...customizer, __: { debounce } });
16
18
  return /* @__PURE__ */ jsx(MantineThemeProvider, { theme, children: /* @__PURE__ */ jsx(
17
19
  JsonForms,
18
20
  {
@@ -21,7 +23,8 @@ const JsonFormsWithCustomizer = memo(function JsonFormsWithCustomizer2({
21
23
  renderers: mantineRenderers,
22
24
  cells: mantineCells,
23
25
  data,
24
- onChange
26
+ onChange,
27
+ ...props
25
28
  }
26
29
  ) });
27
30
  });
@@ -5,16 +5,24 @@ import { useBooleanProps } from "../hooks/useBooleanProps.mjs";
5
5
  import { useCommonProps } from "../hooks/useCommonProps.mjs";
6
6
  import { useContextProps } from "../hooks/useContextProps.mjs";
7
7
  function MantineBooleanInput({ margin, ...props }) {
8
- const commonProps = useCommonProps(props);
9
- const { path, data, schema } = props;
10
- const isCheckbox = useMemo(() => schema.format === "checkbox", [schema.format]);
11
- const booleanProps = useBooleanProps(isCheckbox, { data, onChange: commonProps.onChange });
8
+ var _a;
9
+ const { value, ...commonProps } = useCommonProps(props);
10
+ const { path, schema, uischema } = props;
11
+ const isCheckbox = useMemo(
12
+ () => {
13
+ var _a2;
14
+ return (((_a2 = uischema.options) == null ? void 0 : _a2.variant) ?? schema.format) === "checkbox";
15
+ },
16
+ [schema.format, (_a = uischema.options) == null ? void 0 : _a.variant]
17
+ );
18
+ const booleanProps = useBooleanProps(isCheckbox, { value, onChange: commonProps.onChange });
12
19
  const componentProps = useMemo(() => ({ ...commonProps, ...booleanProps }), [booleanProps, commonProps]);
13
20
  const [Component, _props] = useContextProps("Boolean", path, componentProps, props);
14
21
  if (!props.visible) {
15
22
  return null;
16
23
  }
17
- return /* @__PURE__ */ jsx(Box, { m: Component === null ? void 0 : margin, children: Component === void 0 ? isCheckbox ? /* @__PURE__ */ jsx(Checkbox, { ..._props }) : /* @__PURE__ */ jsx(Select, { ..._props }) : Component });
24
+ const { inputWrapperOrder, ...__props } = _props;
25
+ return /* @__PURE__ */ jsx(Box, { m: Component === null ? void 0 : margin, children: Component === void 0 ? isCheckbox ? /* @__PURE__ */ jsx(Checkbox, { ...__props }) : /* @__PURE__ */ jsx(Select, { inputWrapperOrder, ...__props }) : Component });
18
26
  }
19
27
  export {
20
28
  MantineBooleanInput
@@ -6,9 +6,9 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
6
6
  import { useContextProps } from "../hooks/useContextProps.mjs";
7
7
  import { useDateProps } from "../hooks/useDateProps.mjs";
8
8
  function MantineDateInput({ margin, ...props }) {
9
- const commonProps = useCommonProps(props);
10
- const { path, data } = props;
11
- const dateProps = useDateProps("date", true, { data, onChange: commonProps.onChange });
9
+ const { value, ...commonProps } = useCommonProps(props);
10
+ const { path } = props;
11
+ const dateProps = useDateProps("date", true, { value, onChange: commonProps.onChange });
12
12
  const componentProps = useMemo(() => ({ ...commonProps, ...dateProps }), [commonProps, dateProps]);
13
13
  const [Component, _props] = useContextProps("Date", path, componentProps, props);
14
14
  if (!props.visible) {
@@ -7,22 +7,22 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
7
7
  import { useContextProps } from "../hooks/useContextProps.mjs";
8
8
  import { useDateProps } from "../hooks/useDateProps.mjs";
9
9
  function MantineDateTimeInput({ margin, ...props }) {
10
- const commonProps = useCommonProps(props);
11
- const { path, data, uischema } = props;
10
+ const { value, ...commonProps } = useCommonProps(props);
11
+ const { path, uischema } = props;
12
12
  const { initialUTC: __initialUTC } = uischema.options || {};
13
- const _dateProps = useDateProps("date-time", false, { data, toggle: () => null, onChange: commonProps.onChange });
13
+ const _dateProps = useDateProps("date-time", false, { value, toggle: () => null, onChange: commonProps.onChange });
14
14
  const [, { initialUTC }] = useContextProps("DateTime", path, { ...commonProps, ..._dateProps }, props);
15
15
  const [isUTC, { open: setToUTC, close: setToLocal, toggle }] = useDisclosure(initialUTC ?? __initialUTC);
16
16
  const { initialUTC: _initialUTC, ...dateProps } = useDateProps("date-time", isUTC, {
17
- data,
17
+ value,
18
18
  toggle,
19
19
  onChange: commonProps.onChange
20
20
  });
21
21
  useEffect(() => {
22
- if (data) {
23
- data.endsWith("Z") ? setToUTC() : setToLocal();
22
+ if (value) {
23
+ value.endsWith("Z") ? setToUTC() : setToLocal();
24
24
  }
25
- }, [data, setToLocal, setToUTC]);
25
+ }, [value, setToLocal, setToUTC]);
26
26
  const componentProps = useMemo(() => ({ ...commonProps, ...dateProps }), [commonProps, dateProps]);
27
27
  const [Component, { initialUTC: _, ..._props }] = useContextProps("DateTime", path, componentProps, props);
28
28
  if (!props.visible) {
@@ -5,9 +5,9 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
5
5
  import { useContextProps } from "../hooks/useContextProps.mjs";
6
6
  import { useMultiSelectProps } from "../hooks/useMultiSelectProps.mjs";
7
7
  function MantineEnumArrayInput({ margin, ...props }) {
8
- const commonProps = useCommonProps(props);
9
- const { path, data } = props;
10
- const multiSelectProps = useMultiSelectProps(data, props.schema.items, { onChange: commonProps.onChange });
8
+ const { value, ...commonProps } = useCommonProps(props);
9
+ const { path } = props;
10
+ const multiSelectProps = useMultiSelectProps(value, props.schema.items, { onChange: commonProps.onChange });
11
11
  const componentProps = useMemo(() => ({ ...commonProps, ...multiSelectProps }), [commonProps, multiSelectProps]);
12
12
  const [Component, _props] = useContextProps("EnumArray", path, componentProps, props);
13
13
  if (!props.visible) {
@@ -5,9 +5,9 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
5
5
  import { useContextProps } from "../hooks/useContextProps.mjs";
6
6
  import { useSelectProps } from "../hooks/useSelectProps.mjs";
7
7
  function MantineEnumInput({ margin, ...props }) {
8
- const commonProps = useCommonProps(props);
9
- const { path, data } = props;
10
- const selectProps = useSelectProps(data, props.schema);
8
+ const { value, ...commonProps } = useCommonProps(props);
9
+ const { path } = props;
10
+ const selectProps = useSelectProps(value, props.schema);
11
11
  const componentProps = useMemo(() => ({ ...commonProps, ...selectProps }), [commonProps, selectProps]);
12
12
  const [Component, _props] = useContextProps("Enum", path, componentProps, props);
13
13
  if (!props.visible) {
@@ -6,10 +6,10 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
6
6
  import { useContextProps } from "../hooks/useContextProps.mjs";
7
7
  import { useFileProps } from "../hooks/useFileProps.mjs";
8
8
  const InnerMantineFileInput = ({ contextName, margin, children, ...props }) => {
9
- const commonProps = useCommonProps(props);
10
- const { path, data, schema, errors } = props;
9
+ const { value, ...commonProps } = useCommonProps(props);
10
+ const { path, schema, errors } = props;
11
11
  const fileProps = useFileProps({
12
- data,
12
+ value,
13
13
  onChange: commonProps.onChange,
14
14
  contentMediaType: schema.contentMediaType,
15
15
  errors
@@ -5,9 +5,9 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
5
5
  import { useContextProps } from "../hooks/useContextProps.mjs";
6
6
  import { useJsonProps } from "../hooks/useJsonProps.mjs";
7
7
  function MantineJsonInput({ margin, ...props }) {
8
- const commonProps = useCommonProps(props);
9
- const { path, data } = props;
10
- const jsonProps = useJsonProps({ data, onChange: commonProps.onChange });
8
+ const { value, ...commonProps } = useCommonProps(props);
9
+ const { path } = props;
10
+ const jsonProps = useJsonProps({ value, onChange: commonProps.onChange });
11
11
  const componentProps = useMemo(() => ({ ...commonProps, ...jsonProps }), [commonProps, jsonProps]);
12
12
  const [Component, _props] = useContextProps("Json", path, componentProps, props);
13
13
  if (!props.visible) {
@@ -5,9 +5,9 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
5
5
  import { useContextProps } from "../hooks/useContextProps.mjs";
6
6
  import { useNumberProps } from "../hooks/useNumberProps.mjs";
7
7
  const InnerMantineNumberInput = ({ contextName, margin, ...props }) => {
8
- const commonProps = useCommonProps(props);
9
- const { path, data } = props;
10
- const numberProps = useNumberProps(contextName.toLowerCase(), { data, onChange: commonProps.onChange });
8
+ const { value, ...commonProps } = useCommonProps(props);
9
+ const { path } = props;
10
+ const numberProps = useNumberProps(contextName.toLowerCase(), { value, onChange: commonProps.onChange });
11
11
  const componentProps = useMemo(() => ({ ...commonProps, ...numberProps }), [commonProps, numberProps]);
12
12
  const [Component, _props] = useContextProps(contextName, path, componentProps, props);
13
13
  if (!props.visible) {
@@ -5,17 +5,17 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
5
5
  import { useContextProps } from "../hooks/useContextProps.mjs";
6
6
  import { useSelectProps } from "../hooks/useSelectProps.mjs";
7
7
  function MantineOneOfEnumInput({ margin, ...props }) {
8
- const commonProps = useCommonProps(props);
9
- const { path, data, schema } = props;
10
- const selectProps = useSelectProps(data, schema);
8
+ const { value, ...commonProps } = useCommonProps(props);
9
+ const { path, schema } = props;
10
+ const selectProps = useSelectProps(value, schema);
11
11
  const errorProps = useMemo(() => {
12
12
  var _a;
13
- const isNull = data === null;
13
+ const isNull = value === null;
14
14
  const error = (_a = commonProps.error) == null ? void 0 : _a.filter(
15
15
  (error2) => error2.key === "is a required property" || !isNull ? error2 : false
16
16
  );
17
17
  return (error == null ? void 0 : error.length) ? { error } : { error: isNull && commonProps.required ? "is a required property" : void 0 };
18
- }, [commonProps.error, commonProps.required, data]);
18
+ }, [commonProps.error, commonProps.required, value]);
19
19
  const componentProps = useMemo(
20
20
  () => ({ ...commonProps, ...selectProps, ...errorProps }),
21
21
  [commonProps, errorProps, selectProps]
@@ -5,9 +5,9 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
5
5
  import { useContextProps } from "../hooks/useContextProps.mjs";
6
6
  import { useTextProps } from "../hooks/useTextProps.mjs";
7
7
  function MantineTextInput({ margin, ...props }) {
8
- const commonProps = useCommonProps(props);
9
- const { path, data, schema } = props;
10
- const textProps = useTextProps({ data, onChange: commonProps.onChange });
8
+ const { value, ...commonProps } = useCommonProps(props);
9
+ const { path, schema } = props;
10
+ const textProps = useTextProps({ value, onChange: commonProps.onChange });
11
11
  const componentProps = useMemo(() => ({ ...commonProps, ...textProps }), [commonProps, textProps]);
12
12
  const [Component, _props] = useContextProps("Text", path, componentProps, props);
13
13
  if (!props.visible) {
@@ -6,9 +6,9 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
6
6
  import { useContextProps } from "../hooks/useContextProps.mjs";
7
7
  import { useTimeProps } from "../hooks/useTimeProps.mjs";
8
8
  function MantineTimeInput({ margin, ...props }) {
9
- const commonProps = useCommonProps(props);
10
- const { path, data } = props;
11
- const textProps = useTimeProps({ data });
9
+ const { value, ...commonProps } = useCommonProps(props);
10
+ const { path } = props;
11
+ const textProps = useTimeProps({ value });
12
12
  const componentProps = useMemo(() => ({ ...commonProps, ...textProps }), [commonProps, textProps]);
13
13
  const [Component, _props] = useContextProps("Time", path, componentProps, props);
14
14
  if (!props.visible) {
@@ -1,7 +1,7 @@
1
1
  import { isTruthy } from "fastapi-rtk/utils";
2
- function useBooleanProps(isCheckbox, { data, onChange }) {
2
+ function useBooleanProps(isCheckbox, { value, onChange }) {
3
3
  return isCheckbox ? {
4
- checked: data || false,
4
+ checked: value || false,
5
5
  onChange: (event) => onChange(event.target.checked)
6
6
  } : {
7
7
  data: [
@@ -14,8 +14,8 @@ function useBooleanProps(isCheckbox, { data, onChange }) {
14
14
  label: "False"
15
15
  }
16
16
  ],
17
- value: isTruthy(data) ? String(data) : null,
18
- onChange: (value) => onChange(isTruthy(value) ? value === String(true) : void 0)
17
+ value: isTruthy(value) ? String(value) : null,
18
+ onChange: (value2) => onChange(isTruthy(value2) ? value2 === String(true) : void 0)
19
19
  };
20
20
  }
21
21
  export {
@@ -1,8 +1,12 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { DEBOUNCE_JSONFORMS_DELAY } from "fastapi-rtk/core";
2
3
  import { useProps } from "@mantine/core";
4
+ import { useDebouncedCallback } from "@mantine/hooks";
5
+ import { useState, useEffect } from "react";
3
6
  import { isSchemaTypeInclude } from "../utils/isSchemaTypeInclude.mjs";
4
7
  function useCommonProps(props = {}) {
5
8
  const __ = useProps("__", {}, {});
9
+ const [value, setValue] = useState(props.data);
6
10
  let valueIfNull = null;
7
11
  if (!isSchemaTypeInclude(props.schema.type, "null")) {
8
12
  if (isSchemaTypeInclude(props.schema.type, "array")) {
@@ -13,13 +17,28 @@ function useCommonProps(props = {}) {
13
17
  valueIfNull = "";
14
18
  }
15
19
  }
20
+ const debouncedCallback = useDebouncedCallback((value2) => props.handleChange(props.path, value2), {
21
+ delay: DEBOUNCE_JSONFORMS_DELAY,
22
+ flushOnUnmount: true,
23
+ ...__.debounceOptions
24
+ });
25
+ const onChange = (value2) => {
26
+ const newValue = value2 ?? (__.setNull ? valueIfNull : void 0);
27
+ setValue(newValue);
28
+ __.debounce ? debouncedCallback(newValue) : props.handleChange(props.path, newValue);
29
+ };
30
+ useEffect(() => {
31
+ setValue(props.data);
32
+ }, [props.data]);
16
33
  return {
17
34
  inputWrapperOrder: ["label", "input", "description", "error"],
18
35
  label: props.label,
19
36
  description: props.description,
20
37
  required: props.required,
21
38
  disabled: !props.enabled,
22
- onChange: (value) => props.handleChange(props.path, value ?? (__.setNull ? valueIfNull : void 0)),
39
+ value,
40
+ onChange,
41
+ onBlur: () => debouncedCallback.flush(),
23
42
  error: props.errors ? props.errors.split("\n").map((error) => /* @__PURE__ */ jsx("span", { style: { display: "block" }, children: error }, error)) : void 0
24
43
  };
25
44
  }
@@ -2,17 +2,17 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { Icon } from "../../../../../../../.external/esm/@iconify_react@6.0.1_react@18.3.1/@iconify/react/dist/iconify.mjs";
3
3
  import { useMantineTheme, Group, CloseButton } from "@mantine/core";
4
4
  import { convertUTCStringToLocalString, convertLocalStringToUTCString } from "../utils/utcConverter.mjs";
5
- function useDateProps(type, isUTC, { data, toggle, onChange }) {
5
+ function useDateProps(type, isUTC, { value, toggle, onChange }) {
6
6
  const theme = useMantineTheme();
7
7
  const props = { clearable: true };
8
8
  if (type === "date") {
9
9
  props.valueFormat = "DD.MM.YYYY";
10
- props.value = data || null;
11
- props.onChange = (data2) => onChange(data2 || void 0);
10
+ props.value = value || null;
11
+ props.onChange = (value2) => onChange(value2 || void 0);
12
12
  } else {
13
13
  props.valueFormat = isUTC ? "DD.MM.YYYY HH:mm (UTC)" : "DD.MM.YYYY HH:mm";
14
- props.value = data ? isUTC ? convertUTCStringToLocalString(data) : data : null;
15
- props.onChange = (data2) => onChange(data2 ? isUTC ? convertLocalStringToUTCString(data2) : data2 : void 0);
14
+ props.value = value ? isUTC ? convertUTCStringToLocalString(value) : value : null;
15
+ props.onChange = (value2) => onChange(value2 ? isUTC ? convertLocalStringToUTCString(value2) : value2 : void 0);
16
16
  props.placeholder = isUTC ? "DD.MM.YYYY HH:mm (UTC)" : "DD.MM.YYYY HH:mm";
17
17
  props.rightSection = /* @__PURE__ */ jsxs(Group, { gap: "0.25rem", wrap: "nowrap", children: [
18
18
  /* @__PURE__ */ jsx(
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- function useFileProps({ data, onChange, contentMediaType, errors }) {
2
+ function useFileProps({ value, onChange, contentMediaType, errors }) {
3
3
  var _a;
4
4
  const filteredErrors = (_a = errors == null ? void 0 : errors.split("\n").filter((error) => !error.startsWith("must be string"))) == null ? void 0 : _a.join("\n");
5
- let value = data || null;
5
+ value = value || null;
6
6
  if (typeof value === "string") {
7
7
  value = new File([value], value);
8
8
  }