@donotdev/crud 0.2.3 → 0.3.0

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 (267) hide show
  1. package/dist/CrudService.bulk.d.ts +13 -14
  2. package/dist/CrudService.bulk.d.ts.map +1 -1
  3. package/dist/CrudService.bulk.js +1 -1
  4. package/dist/CrudService.bulkAcross.d.ts +12 -7
  5. package/dist/CrudService.bulkAcross.d.ts.map +1 -1
  6. package/dist/CrudService.bulkAcross.js +1 -1
  7. package/dist/CrudService.bulkReconciliation.d.ts +4 -0
  8. package/dist/CrudService.bulkReconciliation.d.ts.map +1 -0
  9. package/dist/CrudService.bulkReconciliation.js +1 -0
  10. package/dist/CrudService.cache.d.ts +1 -1
  11. package/dist/CrudService.cache.d.ts.map +1 -1
  12. package/dist/CrudService.cache.js +1 -1
  13. package/dist/CrudService.d.ts +35 -6
  14. package/dist/CrudService.d.ts.map +1 -1
  15. package/dist/CrudService.js +1 -1
  16. package/dist/CrudService.mutations.d.ts +3 -3
  17. package/dist/CrudService.mutations.d.ts.map +1 -1
  18. package/dist/CrudService.mutations.js +1 -1
  19. package/dist/CrudService.optimistic.d.ts +2 -2
  20. package/dist/CrudService.optimistic.d.ts.map +1 -1
  21. package/dist/CrudService.optimistic.js +1 -1
  22. package/dist/CrudService.subscriptions.js +1 -1
  23. package/dist/CrudService.writeRules.d.ts +57 -0
  24. package/dist/CrudService.writeRules.d.ts.map +1 -0
  25. package/dist/CrudService.writeRules.js +1 -0
  26. package/dist/CrudService.writeSchema.d.ts +64 -0
  27. package/dist/CrudService.writeSchema.d.ts.map +1 -0
  28. package/dist/CrudService.writeSchema.js +1 -0
  29. package/dist/CrudStore.d.ts +10 -1
  30. package/dist/CrudStore.d.ts.map +1 -1
  31. package/dist/CrudStore.js +1 -1
  32. package/dist/FieldRegistry.d.ts +1 -1
  33. package/dist/FieldRegistry.d.ts.map +1 -1
  34. package/dist/adapters/FunctionsAdapter.d.ts +3 -3
  35. package/dist/adapters/FunctionsAdapter.d.ts.map +1 -1
  36. package/dist/adapters/FunctionsAdapter.js +1 -1
  37. package/dist/components/CrudButton.d.ts +3 -2
  38. package/dist/components/CrudButton.d.ts.map +1 -1
  39. package/dist/components/CrudCard.d.ts.map +1 -1
  40. package/dist/components/CrudCard.js +1 -1
  41. package/dist/components/DateFilter.js +1 -1
  42. package/dist/components/EntityFilters.d.ts +23 -4
  43. package/dist/components/EntityFilters.d.ts.map +1 -1
  44. package/dist/components/EntityFilters.js +1 -1
  45. package/dist/components/FormFieldRenderer.d.ts +21 -4
  46. package/dist/components/FormFieldRenderer.d.ts.map +1 -1
  47. package/dist/components/FormFieldRenderer.js +1 -1
  48. package/dist/components/FormLayout.d.ts.map +1 -1
  49. package/dist/components/FormLayout.js +1 -1
  50. package/dist/components/SortableCardList.d.ts +47 -0
  51. package/dist/components/SortableCardList.d.ts.map +1 -0
  52. package/dist/components/SortableCardList.js +1 -0
  53. package/dist/components/YearFilter.js +1 -1
  54. package/dist/components/controlled/complex/ControlledAddressField.d.ts.map +1 -1
  55. package/dist/components/controlled/complex/ControlledAddressField.js +1 -1
  56. package/dist/components/controlled/complex/ControlledDateField.d.ts.map +1 -1
  57. package/dist/components/controlled/complex/ControlledDateField.js +1 -1
  58. package/dist/components/controlled/complex/ControlledFieldArrayField.d.ts +9 -0
  59. package/dist/components/controlled/complex/ControlledFieldArrayField.d.ts.map +1 -1
  60. package/dist/components/controlled/complex/ControlledFieldArrayField.js +1 -1
  61. package/dist/components/controlled/complex/ControlledMultiInputField.d.ts.map +1 -1
  62. package/dist/components/controlled/complex/ControlledMultiInputField.js +1 -1
  63. package/dist/components/controlled/complex/ControlledTimestampField.d.ts.map +1 -1
  64. package/dist/components/controlled/complex/ControlledTimestampField.js +1 -1
  65. package/dist/components/controlled/fieldOptions.d.ts +9 -0
  66. package/dist/components/controlled/fieldOptions.d.ts.map +1 -1
  67. package/dist/components/controlled/fieldOptions.js +1 -1
  68. package/dist/components/controlled/file/ControlledImageField.js +1 -1
  69. package/dist/components/controlled/input/ControlledCurrencyField.d.ts.map +1 -1
  70. package/dist/components/controlled/input/ControlledCurrencyField.js +1 -1
  71. package/dist/components/controlled/input/ControlledDurationField.js +1 -1
  72. package/dist/components/controlled/input/ControlledNumberField.d.ts.map +1 -1
  73. package/dist/components/controlled/input/ControlledNumberField.js +1 -1
  74. package/dist/components/controlled/input/ControlledPasswordField.d.ts.map +1 -1
  75. package/dist/components/controlled/input/ControlledPasswordField.js +1 -1
  76. package/dist/components/controlled/input/ControlledPhoneField.d.ts.map +1 -1
  77. package/dist/components/controlled/input/ControlledPhoneField.js +1 -1
  78. package/dist/components/controlled/input/ControlledPriceField.d.ts.map +1 -1
  79. package/dist/components/controlled/input/ControlledPriceField.js +1 -1
  80. package/dist/components/controlled/input/ControlledRatingField.js +1 -1
  81. package/dist/components/controlled/input/ControlledTextField.d.ts.map +1 -1
  82. package/dist/components/controlled/input/ControlledTextField.js +1 -1
  83. package/dist/components/controlled/input/ControlledTextareaField.d.ts.map +1 -1
  84. package/dist/components/controlled/input/ControlledTextareaField.js +1 -1
  85. package/dist/components/controlled/select/ControlledComboboxField.d.ts.map +1 -1
  86. package/dist/components/controlled/select/ControlledComboboxField.js +1 -1
  87. package/dist/components/controlled/select/ControlledDropdownField.d.ts.map +1 -1
  88. package/dist/components/controlled/select/ControlledDropdownField.js +1 -1
  89. package/dist/components/controlled/select/ControlledMultiDropdownField.d.ts.map +1 -1
  90. package/dist/components/controlled/select/ControlledMultiDropdownField.js +1 -1
  91. package/dist/components/controlled/select/ControlledReferenceField.d.ts.map +1 -1
  92. package/dist/components/controlled/select/ControlledReferenceField.js +1 -1
  93. package/dist/components/controlled/select/ControlledYearField.d.ts.map +1 -1
  94. package/dist/components/controlled/select/ControlledYearField.js +1 -1
  95. package/dist/components/fields/display/BadgeFieldDisplay.js +1 -1
  96. package/dist/components/fields/display/CheckboxFieldDisplay.js +1 -1
  97. package/dist/components/fields/display/MapFieldDisplay.js +1 -1
  98. package/dist/components/fields/display/NumberFieldDisplay.js +1 -1
  99. package/dist/components/fields/display/PasswordFieldDisplay.js +1 -1
  100. package/dist/components/fields/display/TextFieldDisplay.js +1 -1
  101. package/dist/components/form/fields/AddressFieldComponent.d.ts +3 -1
  102. package/dist/components/form/fields/AddressFieldComponent.d.ts.map +1 -1
  103. package/dist/components/form/fields/AddressFieldComponent.js +1 -1
  104. package/dist/components/form/fields/ComboboxComponent.d.ts +2 -0
  105. package/dist/components/form/fields/ComboboxComponent.d.ts.map +1 -1
  106. package/dist/components/form/fields/ComboboxComponent.js +1 -1
  107. package/dist/components/form/fields/CurrencyFieldComponent.d.ts +2 -0
  108. package/dist/components/form/fields/CurrencyFieldComponent.d.ts.map +1 -1
  109. package/dist/components/form/fields/CurrencyFieldComponent.js +1 -1
  110. package/dist/components/form/fields/DateFieldComponent.d.ts +2 -0
  111. package/dist/components/form/fields/DateFieldComponent.d.ts.map +1 -1
  112. package/dist/components/form/fields/DateFieldComponent.js +1 -1
  113. package/dist/components/form/fields/DocumentFieldComponent.js +1 -1
  114. package/dist/components/form/fields/DropdownComponent.d.ts +2 -0
  115. package/dist/components/form/fields/DropdownComponent.d.ts.map +1 -1
  116. package/dist/components/form/fields/DropdownComponent.js +1 -1
  117. package/dist/components/form/fields/DurationFieldComponent.d.ts.map +1 -1
  118. package/dist/components/form/fields/DurationFieldComponent.js +1 -1
  119. package/dist/components/form/fields/FileFieldComponent.js +1 -1
  120. package/dist/components/form/fields/GdprConsentFieldComponent.d.ts.map +1 -1
  121. package/dist/components/form/fields/GdprConsentFieldComponent.js +1 -1
  122. package/dist/components/form/fields/GeoPointFieldComponent.js +1 -1
  123. package/dist/components/form/fields/ImageFieldComponent.d.ts.map +1 -1
  124. package/dist/components/form/fields/ImageFieldComponent.js +1 -1
  125. package/dist/components/form/fields/MultiDropdownComponent.d.ts +2 -0
  126. package/dist/components/form/fields/MultiDropdownComponent.d.ts.map +1 -1
  127. package/dist/components/form/fields/MultiDropdownComponent.js +1 -1
  128. package/dist/components/form/fields/MultiInputTextFieldComponent.d.ts +2 -0
  129. package/dist/components/form/fields/MultiInputTextFieldComponent.d.ts.map +1 -1
  130. package/dist/components/form/fields/MultiInputTextFieldComponent.js +1 -1
  131. package/dist/components/form/fields/NumberFieldComponent.d.ts +2 -0
  132. package/dist/components/form/fields/NumberFieldComponent.d.ts.map +1 -1
  133. package/dist/components/form/fields/NumberFieldComponent.js +1 -1
  134. package/dist/components/form/fields/PasswordFieldComponent.d.ts +2 -0
  135. package/dist/components/form/fields/PasswordFieldComponent.d.ts.map +1 -1
  136. package/dist/components/form/fields/PasswordFieldComponent.js +1 -1
  137. package/dist/components/form/fields/PhoneNumberComponent.d.ts +11 -1
  138. package/dist/components/form/fields/PhoneNumberComponent.d.ts.map +1 -1
  139. package/dist/components/form/fields/PhoneNumberComponent.js +1 -1
  140. package/dist/components/form/fields/PriceFieldComponent.d.ts +2 -0
  141. package/dist/components/form/fields/PriceFieldComponent.d.ts.map +1 -1
  142. package/dist/components/form/fields/PriceFieldComponent.js +1 -1
  143. package/dist/components/form/fields/RangeFieldComponent.js +1 -1
  144. package/dist/components/form/fields/ReferenceFieldComponent.d.ts +3 -1
  145. package/dist/components/form/fields/ReferenceFieldComponent.d.ts.map +1 -1
  146. package/dist/components/form/fields/ReferenceFieldComponent.js +1 -1
  147. package/dist/components/form/fields/RichTextComponent.js +1 -1
  148. package/dist/components/form/fields/TextAreaComponent.d.ts +2 -0
  149. package/dist/components/form/fields/TextAreaComponent.d.ts.map +1 -1
  150. package/dist/components/form/fields/TextAreaComponent.js +1 -1
  151. package/dist/components/form/fields/TextFieldComponent.d.ts +3 -1
  152. package/dist/components/form/fields/TextFieldComponent.d.ts.map +1 -1
  153. package/dist/components/form/fields/TextFieldComponent.js +1 -1
  154. package/dist/components/form/fields/TimestampFieldComponent.d.ts +2 -0
  155. package/dist/components/form/fields/TimestampFieldComponent.d.ts.map +1 -1
  156. package/dist/components/form/fields/TimestampFieldComponent.js +1 -1
  157. package/dist/components/index.d.ts +2 -0
  158. package/dist/components/index.d.ts.map +1 -1
  159. package/dist/components/index.js +1 -1
  160. package/dist/fieldTypeRegistry.d.ts +2 -2
  161. package/dist/fieldTypeRegistry.d.ts.map +1 -1
  162. package/dist/fieldTypeRegistry.js +1 -1
  163. package/dist/fieldTypeRegistry.store.d.ts +0 -2
  164. package/dist/fieldTypeRegistry.store.d.ts.map +1 -1
  165. package/dist/fieldTypeRegistry.store.js +1 -1
  166. package/dist/fieldTypeRegistry.types.d.ts +8 -9
  167. package/dist/fieldTypeRegistry.types.d.ts.map +1 -1
  168. package/dist/forms/FormNavigation.d.ts +24 -0
  169. package/dist/forms/FormNavigation.d.ts.map +1 -0
  170. package/dist/forms/FormNavigation.js +1 -0
  171. package/dist/forms/childRows.d.ts +184 -0
  172. package/dist/forms/childRows.d.ts.map +1 -0
  173. package/dist/forms/childRows.js +1 -0
  174. package/dist/forms/extend.d.ts +88 -0
  175. package/dist/forms/extend.d.ts.map +1 -0
  176. package/dist/forms/extend.js +1 -0
  177. package/dist/forms/hooks/useEntityField.d.ts +11 -5
  178. package/dist/forms/hooks/useEntityField.d.ts.map +1 -1
  179. package/dist/forms/hooks/useEntityField.js +1 -1
  180. package/dist/forms/hooks/useEntityForm.d.ts +50 -5
  181. package/dist/forms/hooks/useEntityForm.d.ts.map +1 -1
  182. package/dist/forms/hooks/useEntityForm.js +1 -1
  183. package/dist/forms/hooks/useFormDraftState.d.ts +53 -0
  184. package/dist/forms/hooks/useFormDraftState.d.ts.map +1 -0
  185. package/dist/forms/hooks/useFormDraftState.js +1 -0
  186. package/dist/forms/index.d.ts +6 -2
  187. package/dist/forms/index.d.ts.map +1 -1
  188. package/dist/forms/index.js +1 -1
  189. package/dist/forms/types.d.ts +171 -25
  190. package/dist/forms/types.d.ts.map +1 -1
  191. package/dist/forms/utils/buildInitialValues.d.ts +32 -17
  192. package/dist/forms/utils/buildInitialValues.d.ts.map +1 -1
  193. package/dist/forms/utils/buildInitialValues.js +1 -1
  194. package/dist/forms/utils/conditionAwareResolver.d.ts +35 -0
  195. package/dist/forms/utils/conditionAwareResolver.d.ts.map +1 -0
  196. package/dist/forms/utils/conditionAwareResolver.js +1 -0
  197. package/dist/forms/utils/emptyValue.d.ts +34 -0
  198. package/dist/forms/utils/emptyValue.d.ts.map +1 -0
  199. package/dist/forms/utils/emptyValue.js +1 -0
  200. package/dist/forms/utils/getFieldsForOperation.d.ts +30 -19
  201. package/dist/forms/utils/getFieldsForOperation.d.ts.map +1 -1
  202. package/dist/forms/utils/getFieldsForOperation.js +1 -1
  203. package/dist/forms/utils/index.d.ts +1 -0
  204. package/dist/forms/utils/index.d.ts.map +1 -1
  205. package/dist/forms/utils/index.js +1 -1
  206. package/dist/forms/utils/isFieldEditable.d.ts +21 -22
  207. package/dist/forms/utils/isFieldEditable.d.ts.map +1 -1
  208. package/dist/forms/utils/isFieldEditable.js +1 -1
  209. package/dist/forms/utils/writableFields.d.ts +19 -0
  210. package/dist/forms/utils/writableFields.d.ts.map +1 -0
  211. package/dist/forms/utils/writableFields.js +1 -0
  212. package/dist/hooks/index.d.ts +2 -0
  213. package/dist/hooks/index.d.ts.map +1 -1
  214. package/dist/hooks/index.js +1 -1
  215. package/dist/hooks/useChildRows.d.ts +161 -0
  216. package/dist/hooks/useChildRows.d.ts.map +1 -0
  217. package/dist/hooks/useChildRows.js +1 -0
  218. package/dist/hooks/useCrudFilters.d.ts +21 -1
  219. package/dist/hooks/useCrudFilters.d.ts.map +1 -1
  220. package/dist/hooks/useCrudFilters.js +1 -1
  221. package/dist/hooks/useExtensionRows.d.ts +24 -0
  222. package/dist/hooks/useExtensionRows.d.ts.map +1 -0
  223. package/dist/hooks/useExtensionRows.js +1 -0
  224. package/dist/hooks/useFieldConditions.d.ts +2 -2
  225. package/dist/hooks/useFieldConditions.d.ts.map +1 -1
  226. package/dist/hooks/useFieldConditions.js +1 -1
  227. package/dist/hooks/useReferenceResolver.d.ts +4 -1
  228. package/dist/hooks/useReferenceResolver.d.ts.map +1 -1
  229. package/dist/hooks/useReferenceResolver.js +1 -1
  230. package/dist/index.d.ts +6 -5
  231. package/dist/index.d.ts.map +1 -1
  232. package/dist/index.js +1 -1
  233. package/dist/registerBuiltinFieldTypes.d.ts +2 -0
  234. package/dist/registerBuiltinFieldTypes.d.ts.map +1 -1
  235. package/dist/registerBuiltinFieldTypes.js +1 -1
  236. package/dist/stores/FormStore.d.ts +116 -5
  237. package/dist/stores/FormStore.d.ts.map +1 -1
  238. package/dist/stores/FormStore.js +1 -1
  239. package/dist/stores/UploadStore.js +1 -1
  240. package/dist/stores/index.d.ts +1 -1
  241. package/dist/stores/index.d.ts.map +1 -1
  242. package/dist/stores/index.js +1 -1
  243. package/dist/symbol-index.json +1 -1
  244. package/dist/tsconfig.tsbuildinfo +1 -1
  245. package/dist/types.d.ts +38 -6
  246. package/dist/types.d.ts.map +1 -1
  247. package/dist/useCrud.d.ts +7 -5
  248. package/dist/useCrud.d.ts.map +1 -1
  249. package/dist/useCrud.js +1 -1
  250. package/dist/useCrudDoc.js +1 -1
  251. package/dist/utils/clientListProcessing.d.ts +9 -12
  252. package/dist/utils/clientListProcessing.d.ts.map +1 -1
  253. package/dist/utils/clientListProcessing.js +1 -1
  254. package/dist/utils/collections.d.ts.map +1 -1
  255. package/dist/utils/collections.js +1 -1
  256. package/dist/utils/filterUrl.d.ts +45 -0
  257. package/dist/utils/filterUrl.d.ts.map +1 -0
  258. package/dist/utils/filterUrl.js +1 -0
  259. package/dist/utils/matchesFilter.d.ts +27 -3
  260. package/dist/utils/matchesFilter.d.ts.map +1 -1
  261. package/dist/utils/matchesFilter.js +1 -1
  262. package/dist/utils/uploadValidation.js +1 -1
  263. package/dist/utils/useRowTranslator.js +1 -1
  264. package/guidelines/COMPONENTS.md +82 -11
  265. package/guidelines/CRUD.md +242 -7
  266. package/guidelines/GOTCHAS.md +17 -1
  267. package/package.json +3 -3
@@ -1 +1 @@
1
- {"FunctionsAdapter":"/**\n * Functions backend adapter\n * Works with any collection dynamically (collection name passed per operation)\n * Assumes Functions are named: `get_${collection}`, `create_${collection}`, etc.\n *\n * All backends go through ICallableProvider. If none configured, falls back to FirebaseCallableProvider.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare class FunctionsAdapter implements ICrudAdapter {\n readonly serverSideOnly = true;\n /**\n * Resolve ICallableProvider from provider registry.\n * Consumer must configure via configureProviders({ callable: adapter }).\n */\n private getCallable;\n /**\n * Get callable function invoker. Always uses ICallableProvider (configured or Firebase fallback).\n */\n private getCallableFn;\n get<T>(collectionName: string, id: string, schema: dndevSchema<unknown>): Promise<T | null>;\n set<T>(collectionName: string, id: string, data: T, schema: dndevSchema<T>): Promise<void>;\n update<T>(collectionName: string, id: string, data: Partial<T>): Promise<void>;\n delete(collectionName: string, id: string): Promise<void>;\n /**\n * Bulk transactional operation via the `bulk_${collection}` callable.\n *\n * @description Delegates atomicity, per-op ACL, and row validation to the\n * server-side `bulk_${collection}` callable registered by\n * `createCrudFunctions`. This client adapter is a thin pass-through:\n *\n * 1. `detectBulkCollisions(ops)` — rejects ambiguous payloads (same id in\n * two buckets) before any network call. The thrown\n * {@link BulkCollisionError} is not wrapped so callers can `instanceof`\n * it.\n * 2. Empty bulk is a no-op — if all three arrays are empty/absent we return\n * a zeroed {@link BulkResult} without issuing a callable. Matches the\n * server's empty-bulk contract and avoids a needless round-trip.\n * 3. Validates the wire body with {@link BulkRequestSchema} before sending\n * — malformed payloads fail loud locally.\n * 4. Invokes the callable via the provider registry (identical path to\n * `add` / `update` / `delete`).\n * 5. Validates the server reply with {@link BulkResponseSchema} — a\n * malformed server response surfaces as a clean error, never as a\n * silent zeroed result.\n * 6. Any other failure is wrapped via {@link wrapCrudError} to preserve\n * parity with sibling methods on this adapter.\n *\n * @param collection - Target collection (drives the callable name).\n * @param ops - Bulk operations to perform. All buckets are optional.\n * @param _schema - Intentionally unused — the server re-validates each\n * insert against the authoritative `createSchema` bound to the entity.\n * Matches how `add()` delegates validation server-side.\n * @param _options - Intentionally unused at the adapter layer. Per-op audit\n * and rate-limit live in the service layer.\n * @returns The server-echoed ids, order-preserved per bucket.\n *\n * @throws {BulkCollisionError} Propagated unwrapped when the payload carries\n * the same id in two mutually-exclusive buckets.\n * @throws {DoNotDevError} Wrapped via {@link wrapCrudError} for any\n * callable-side failure or malformed server response.\n *\n * @example\n * ```typescript\n * const adapter = new FunctionsAdapter();\n * const result = await adapter.bulk<Event>('events', {\n * inserts: [{ title: 'A' }, { title: 'B' }],\n * updates: [{ id: 'e1', patch: { title: 'renamed' } }],\n * deletes: ['e2'],\n * });\n * // result.insertedIds: ['evt_…', 'evt_…']\n * // result.updatedIds: ['e1']\n * // result.deletedIds: ['e2']\n * ```\n */\n bulk<T extends Record<string, unknown>>(collection: string, ops: BulkOperations<T>, _schema?: dndevSchema<T>, _options?: CrudOperationOptions): Promise<BulkResult>;\n add<T>(collectionName: string, data: T, schema?: dndevSchema<T>): Promise<{\n id: string;\n data: Record<string, unknown>;\n }>;\n query<T>(collectionName: string, options: FunctionsQueryOptions, schema: dndevSchema<unknown>, schemaType?: ListSchemaType): Promise<PaginatedQueryResult<T>>;\n subscribe<T>(): () => void;\n subscribeToCollection<T>(): () => void;\n}","FunctionsQueryOptions":"/**\n * Query options for Functions queries\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface FunctionsQueryOptions {\n where?: Array<{\n field: string;\n operator: string;\n value: unknown;\n }>;\n orderBy?: Array<{\n field: string;\n direction?: 'asc' | 'desc';\n }>;\n limit?: number;\n /** Cursor from previous page (QueryOptions uses startAfter; server uses startAfterId) */\n startAfter?: string | null;\n startAfterId?: string;\n}","getCrudService":"/**\n * Get or create CrudService singleton instance\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const getCrudService: () => CrudService;","useCrudStore":"/**\n * CRUD store hook for accessing CRUD state and actions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const useCrudStore: import(\"zustand\").UseBoundStore<import(\"zustand\").StoreApi<CrudState & CrudActions & import(\"@donotdev/stores\").DoNotDevStore>>;","CrudServiceInterface":"/**\n * CRUD Service Interface\n * Complete interface for CRUD operations with caching and optimistic updates\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface CrudServiceInterface {\n /** Initialize the CRUD adapter from the provider registry. Call configureProviders() first. */\n initialize(): Promise<void>;\n /** Attach the configured CRUD provider synchronously (safe during render). */\n attachProvider(): boolean;\n /** Server render: list queries run with `client` read as the holder of `accessToken`. */\n bindRequestAccessToken(client: object, accessToken: string): boolean;\n setStore(store: CrudStoreApi): void;\n /** Schema accepts unknown since OperationSchemas stores dndevSchema<unknown>. T is for return type. */\n getListQueryOptions<T>(collection: string, queryOptions: QueryOptions, schema: dndevSchema<unknown>, cacheOptions?: CacheOptions, schemaType?: ListSchemaType): CrudListQuery<T>;\n /** Schema accepts unknown since OperationSchemas stores dndevSchema<unknown>. T is for return type. */\n getDocQueryOptions<T>(collection: string, id: string, schema: dndevSchema<unknown>, cacheOptions?: CacheOptions): CrudDocQuery<T>;\n get<T>(collection: string, id: string, schema: dndevSchema<T>, options?: CacheOptions): Promise<T | null>;\n query<T>(collection: string, options: QueryOptions, schema: dndevSchema<T>, cacheOptions?: CacheOptions, schemaType?: ListSchemaType): Promise<PaginatedQueryResult<T>>;\n set<T>(collection: string, id: string, data: T, schema: dndevSchema<T>, options?: MutationOptions): Promise<void>;\n update<T>(collection: string, id: string, data: Partial<T>, schema?: dndevSchema<T>, options?: MutationOptions): Promise<void>;\n delete(collection: string, id: string, options?: MutationOptions): Promise<void>;\n add<T extends Record<string, unknown>>(collection: string, data: CrudCreateInput<T>, schema: dndevSchema<T>, options?: MutationOptions): Promise<string>;\n /**\n * Bulk write — one adapter call, one audit, one toast. Partial success: rows\n * that fail are returned in `BulkResult.failed`; written rows stay written.\n *\n * @param schemas - `create` validates inserts + resolves their PII fields;\n * `update` resolves PII fields on update patches.\n * @throws {Error} {@link BulkCollisionError} when the payload carries an id\n * in two mutually-exclusive buckets (detected before any side effect).\n *\n * Rows for bulk operations are always treated as object records so PII\n * encryption, cache merging and adapter mapping can rely on key/value\n * semantics.\n */\n bulk<T extends Record<string, unknown>>(collection: string, ops: BulkOperations<T>, schemas: {\n create?: dndevSchema<T>;\n draft?: dndevSchema<T>;\n update?: dndevSchema<T>;\n }, options?: MutationOptions): Promise<BulkResult>;\n /**\n * Cross-collection atomic bulk write. One optimistic pass, writes in\n * topological order, one toast, coordinated rollback.\n *\n * @throws {BulkCollisionError} Id collision within a single batch.\n * @throws {BulkAcrossCycleError} `dependsOn` contains a cycle.\n */\n bulkAcross(batches: BulkAcrossBatch[], options?: MutationOptions): Promise<BulkAcrossResult>;\n subscribe<T>(collection: string, id: string, callback: (data: T | null, error?: Error) => void, schema: dndevSchema<T>): () => void;\n subscribeToCollection<T>(collection: string, options: QueryOptions, callback: (data: T[], error?: Error) => void, schema: dndevSchema<T>): () => void;\n /** Add with optimistic update - shows item immediately, confirms/rolls back after server */\n addOptimistic<T extends {\n id?: string;\n }>(collection: string, data: T, schema: dndevSchema<T>, options?: MutationOptions): Promise<T & {\n id: string;\n }>;\n /** Update with optimistic update - shows change immediately, confirms/rolls back after server */\n updateOptimistic<T>(collection: string, id: string, data: Partial<T>, schema: dndevSchema<T>, options?: MutationOptions): Promise<T>;\n /** Delete with optimistic update - hides item immediately, confirms/restores after server */\n deleteOptimistic(collection: string, id: string, options?: MutationOptions): Promise<void>;\n /** Invalidate all cached queries for a collection */\n invalidateCollection(collection: string): Promise<void>;\n /** Get the shared QueryClient instance from @donotdev/core */\n getQueryClient(): QueryClient;\n}","CrudState":"/**\n * CRUD store state interface\n * Note: No data field - TanStack Query owns data, CrudStore only tracks optimistic ops\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface CrudState {\n crudService: CrudServiceInterface | null;\n /** Global flag to hide success toasts (set from app config) */\n hideSuccessToasts: boolean;\n collections: Record<string, {\n loading: boolean;\n error: Error | null;\n lastUpdated: number;\n /** Optimistic operation metadata keyed by document id */\n optimistic: Record<string, OptimisticMeta>;\n /** UI state: filters and favorites toggle (persists across navigation) */\n ui: CollectionUIState;\n }>;\n}","CrudActions":"/**\n * CRUD store actions interface\n * Note: No setData/getData - TanStack Query owns data, CrudStore only tracks optimistic ops\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface CrudActions {\n setCrudService: (service: CrudServiceInterface) => void;\n /** Set global flag to hide success toasts (called from app bootstrap) */\n setHideSuccessToasts: (hide: boolean) => void;\n setLoading: (collection: string, loading: boolean) => void;\n setError: (collection: string, error: Error | null) => void;\n clearCollection: (collection: string) => void;\n clearError: (collection: string) => void;\n setFilters: (collection: string, filters: FilterState) => void;\n setShowFavoritesOnly: (collection: string, show: boolean) => void;\n setPageSize: (collection: string, pageSize: number) => void;\n getFilters: (collection: string) => FilterState;\n getShowFavoritesOnly: (collection: string) => boolean;\n getPageSize: (collection: string) => number | undefined;\n /** Add item optimistically (before server confirms) */\n addOptimistic: (collection: string, tempId: string, data: unknown) => void;\n /** Confirm optimistic add - replace temp item with real item */\n confirmOptimistic: (collection: string, tempId: string, realId: string, realData: unknown) => void;\n /** Reject optimistic add - remove temp item */\n rejectOptimistic: (collection: string, tempId: string) => void;\n /** Update item optimistically */\n updateOptimistic: (collection: string, id: string, data: unknown, originalData: unknown) => void;\n /** Confirm optimistic update */\n confirmUpdate: (collection: string, id: string) => void;\n /** Reject optimistic update - restore original data */\n rejectUpdate: (collection: string, id: string) => void;\n /** Delete item optimistically (hide but keep for rollback) */\n deleteOptimistic: (collection: string, id: string, originalData: unknown) => void;\n /** Confirm optimistic delete - remove completely */\n confirmDelete: (collection: string, id: string) => void;\n /** Reject optimistic delete - restore item */\n rejectDelete: (collection: string, id: string) => void;\n getLoading: (collection: string) => boolean;\n getError: (collection: string) => Error | null;\n /** Check if item is optimistic (not yet confirmed by server) */\n isOptimistic: (collection: string, id: string) => boolean;\n /** Get optimistic status for an item */\n getOptimisticStatus: (collection: string, id: string) => OptimisticStatus | null;\n /** Get optimistic data for an item (for display during pending state) */\n getOptimisticData: (collection: string, id: string) => unknown | null;\n}","OptimisticStatus":"/** Union of optimistic operation status values: 'pending' | 'confirmed' | 'failed'. */\nexport type OptimisticStatus = (typeof OPTIMISTIC_STATUSES)[keyof typeof OPTIMISTIC_STATUSES];","OptimisticMeta":"/**\n * Optimistic operation metadata\n * Contains both original data (for rollback) and current data (for display)\n */\nexport interface OptimisticMeta {\n tempId: string;\n originalData: unknown | null;\n /** Current optimistic data to display (the new/updated value) */\n optimisticData: unknown;\n status: OptimisticStatus;\n operation: CrudOperation;\n}","CrudOperation":"/** Union of CRUD mutation operation kinds: 'add' | 'update' | 'set' | 'delete'. */\nexport type CrudOperation = (typeof CRUD_OPERATION)[keyof typeof CRUD_OPERATION];","CrudStoreApi":"/**\n * Store API type for CrudService - typed instead of any\n * Used by CrudService to type the store it receives\n */\nexport type CrudStoreApi = {\n getState: () => CrudState & CrudActions;\n}","CacheOptions":"/**\n * Cache options for read operations\n */\nexport interface CacheOptions {\n /** Bypass cache and fetch directly from adapter */\n noCache?: boolean;\n /** Custom stale time in ms (default: Infinity) */\n staleTime?: number;\n}","MutationOptions":"/**\n * Options for mutation operations (add, update, delete, set)\n */\nexport interface MutationOptions {\n /**\n * Override success toast behavior for this operation\n * - true: always show toast\n * - false: never show toast\n * - undefined: use global setting (hideSuccessToasts)\n */\n showSuccessToast?: boolean;\n}","FilterState":"/**\n * Filter state type for list views\n * Persists across navigation within CrudStore\n * - string: single value filter (text, select)\n * - string[]: multi-select filter (multiple values)\n * - { min?: string; max?: string }: range filter (number, date)\n */\nexport type FilterState = Record<string, string | string[] | {\n min?: string;\n max?: string;\n}","CollectionUIState":"/**\n * Collection UI state (filters, favorites toggle)\n * Persists across navigation\n */\nexport interface CollectionUIState {\n filters: FilterState;\n showFavoritesOnly: boolean;\n /** Persisted items-per-page preference (survives navigation) */\n pageSize?: number;\n}","OPTIMISTIC_STATUSES":"/**\n * Optimistic operation status\n */\nexport declare const OPTIMISTIC_STATUSES: {\n readonly PENDING: \"pending\";\n readonly CONFIRMED: \"confirmed\";\n readonly FAILED: \"failed\";\n}","CRUD_OPERATION":"/** Optimistic mutation operation kind */\nexport declare const CRUD_OPERATION: {\n readonly ADD: \"add\";\n readonly UPDATE: \"update\";\n /** Full document replacement (set/upsert) — cache replaces, not merges */\n readonly SET: \"set\";\n readonly DELETE: \"delete\";\n}","loadDeterministicRange":"/**\n * Load a deterministic range of items from a subcollection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function loadDeterministicRange<T>(userId: string, config: DeterministicSubcollectionConfig<T>): Promise<T[]>;","upsertDeterministic":"/**\n * Upsert a deterministic range of items in a subcollection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function upsertDeterministic<T>(userId: string, config: DeterministicSubcollectionConfig<T>, data: T[]): Promise<void>;","appendToCollection":"/**\n * Append an item to a subcollection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function appendToCollection<T extends Record<string, unknown>>(userId: string, config: AppendSubcollectionConfig<T>, item: CrudCreateInput<T>): Promise<string | void>;","getFieldRegistry":"/**\n * Get the field registry singleton.\n * Backed by globalThis to survive Vite pre-bundling chunk splits and HMR.\n */\nexport declare function getFieldRegistry(): FieldRegistry;","registerFieldType":"/**\n * Register a custom field type (form, optional display, optional filter).\n * Schema must be defined in entity.validation.schema\n *\n * @example\n * ```ts\n * import { useController, registerFieldType } from '@donotdev/crud';\n * import type { ControlledFieldProps } from '@donotdev/crud';\n * import * as v from 'valibot';\n *\n * function ControlledRepairOperationsField({\n * fieldConfig,\n * control,\n * errors,\n * t,\n * }: ControlledFieldProps) {\n * const { field, fieldState } = useController({\n * name: fieldConfig.name,\n * control: control,\n * });\n * return (\n * <div>\n * Your custom UI here\n * {fieldState?.error && <span>{fieldState.error.message}</span>}\n * </div>\n * );\n * }\n *\n * registerFieldType({\n * type: 'repairOperations',\n * controlledComponent: ControlledRepairOperationsField,\n * displayFormatter: (value) => (value != null ? String(value) : '—'),\n * filterable: true,\n * filterType: 'text',\n * });\n *\n * const carEntity = defineEntity({\n * fields: {\n * repairs: {\n * type: 'repairOperations',\n * validation: { schema: v.array(v.object({ operation: v.string(), cost: v.number() })) }\n * }\n * }\n * });\n * ```\n */\nexport declare function registerFieldType<FT extends FieldType>(registration: FieldTypeRegistration<FT>): void;","isFieldTypeRegistered":"/**\n * Check if a field type is registered\n */\nexport declare function isFieldTypeRegistered(type: string): boolean;","registerBuiltinFieldType":"/**\n * Register a built-in field type with all metadata.\n * For internal/plugin use — consumers should use registerFieldType() instead.\n */\nexport declare function registerBuiltinFieldType(metadata: FieldTypeMetadata): void;","getFieldTypeMetadata":"export declare function getFieldTypeMetadata(type: string): FieldTypeMetadata | undefined;","getFilterType":"export declare function getFilterType(type: string): FilterType | undefined;","getDisplayFormatter":"export declare function getDisplayFormatter(type: string): DisplayFormatter | undefined;","isFilterable":"export declare function isFilterable(type: string): boolean;","getValueType":"export declare function getValueType(type: string): ValueType | undefined;","clearFieldTypeRegistry":"export declare function clearFieldTypeRegistry(): void;","useEntityForm":"/**\n * Creates a type-safe form instance from an entity definition.\n *\n * Simple, predictable behavior:\n * - Edit mode: defaultValues (DB object) is used as-is, auto-save to FormStore\n * - Create mode: starts empty, auto-save to FormStore\n * - Draft restored on mount with dismissible toast\n *\n * When formId is provided:\n * - Tracks form status (uploading/validating/submitting)\n * - Orchestrates file uploads before validation\n * - Provides cleanup function for unmount\n *\n * @template E - Entity type from defineEntity()\n * @param entity - Entity definition from defineEntity()\n * @param options - Form configuration options\n * @returns Form instance with React Hook Form API plus entity-aware extensions\n */\nexport declare function useEntityForm<E extends AnyEntity>(entity: E, options?: UseEntityFormOptions<E>): EntityFormReturn<E>;","useEntityField":"/**\n * Granular hook for single field control within an entity form.\n *\n * Useful when you need fine-grained control over field rendering,\n * such as custom components, conditional logic, or complex layouts.\n *\n * Returns `{ field, meta, config, isEditable, isVisible, display }`.\n * - `display(options?)` formats the current value using the registered field type formatter.\n *\n * @template E - Entity type from defineEntity()\n * @template K - Field key from entity\n * @param form - Form instance from useEntityForm\n * @param fieldName - Name of the field to control\n * @returns Field state, config, editability info, and display formatter\n *\n * @example\n * ```tsx\n * // Custom field with display()\n * const { field, display, isEditable } = useEntityField(form, 'price');\n * // display() → \"€42.00\" (uses registered formatter)\n * // display({ compact: true }) → compact format for lists\n * if (!isEditable) return <span>{display()}</span>;\n * ```\n *\n * @example\n * ```tsx\n * // Full custom field\n * function CustomEmailField({ form }) {\n * const { field, meta, config, isEditable } = useEntityField(form, 'email');\n *\n * if (!isEditable) return <span>{field.value}</span>;\n *\n * return (\n * <div>\n * <label>{config.label}</label>\n * <input\n * type=\"email\"\n * value={field.value ?? ''}\n * onChange={field.onChange}\n * onBlur={field.onBlur}\n * />\n * {meta.error && <span className=\"error\">{meta.error}</span>}\n * </div>\n * );\n * }\n * ```\n *\n * @see {@link useEntityForm} for creating the form instance\n * @see {@link EntityFieldReturn} for return type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function useEntityField<E extends AnyEntity, K extends keyof InferEntityData<E>>(form: EntityFormReturn<E>, fieldName: K): EntityFieldReturn<E, K>;","useController":"/**\n * Framework-provided useController hook\n *\n * Use this instead of importing useController from react-hook-form directly.\n * This ensures type compatibility with framework's Control types.\n *\n * @template TFieldValues - Form values type\n * @template TName - Field name path\n * @param props - Controller props (name and control)\n * @returns Controller return value (field, fieldState, formState)\n *\n * @example\n * ```tsx\n * import { useController } from '@donotdev/crud';\n * import type { ControlledFieldProps } from '@donotdev/crud';\n *\n * function MyCustomField({ control, fieldConfig }: ControlledFieldProps) {\n * const { field, fieldState } = useController({\n * name: fieldConfig.name,\n * control: control,\n * });\n * // ...\n * }\n * ```\n */\nexport declare function useController<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: UseControllerProps<TFieldValues, TName>): UseControllerReturn<TFieldValues, TName>;","isFieldEditable":"/**\n * Determines if a field is editable by the current viewer.\n *\n * NOTE: Visibility is handled by backend - this function only handles editability (UI concern).\n *\n * @param editable - Field's editable configuration\n * @param viewerRole - Current viewer's role\n * @param operation - Form operation type\n * @returns Whether the field should be rendered as an input (true) or read-only (false)\n *\n * @example\n * ```typescript\n * // Default editable\n * isFieldEditable(undefined, 'user', 'create'); // true\n *\n * // Role-based (uses hierarchy: guest < user < admin < super)\n * isFieldEditable('admin', 'user', 'edit'); // false\n * isFieldEditable('admin', 'admin', 'edit'); // true\n * isFieldEditable('user', 'admin', 'edit'); // true (admin >= user)\n * isFieldEditable('super', 'admin', 'edit'); // false (admin < super)\n *\n * // Create-only field (`EDITABLE` from `@donotdev/core`; string literals still valid)\n * isFieldEditable(EDITABLE.CREATE_ONLY, 'user', 'create'); // true\n * isFieldEditable(EDITABLE.CREATE_ONLY, 'user', 'edit'); // false\n *\n * // Generated/computed — always false (excluded from forms)\n * isFieldEditable(EDITABLE.GENERATED, 'admin', 'create'); // false\n * isFieldEditable(EDITABLE.COMPUTED, 'admin', 'edit'); // false\n * ```\n *\n * @see {@link Editable} for editable configuration options\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function isFieldEditable(editable: Editable | undefined, viewerRole: string, operation: 'create' | 'edit'): boolean;","getFieldsForOperation":"/**\n * Filters entity fields based on operation type and viewer role.\n *\n * Pure function, no React dependencies. Use for building custom form layouts.\n *\n * **Create operation:**\n * - Excludes `visibility: 'technical'` fields (auto-added by backend)\n * - Excludes `visibility: 'hidden'` fields (never shown)\n *\n * **Edit operation:**\n * - Excludes `visibility: 'hidden'` fields (never shown)\n * - Technical fields are marked as `editable: false` (read-only)\n * - If `availableFields` provided, only returns fields in that list (backend-filtered)\n *\n * @param entity - Entity definition from defineEntity()\n * @param options - Filtering options\n * @returns Array of renderable fields with computed editability\n *\n * @example\n * ```typescript\n * import { getFieldsForOperation } from '@donotdev/crud/forms';\n * import { productEntity } from './entities/product';\n *\n * // Create form - excludes technical and hidden\n * const createFields = getFieldsForOperation(productEntity, {\n * operation: 'create',\n * viewerRole: 'user'\n * });\n *\n * // Edit form - uses backend-filtered fields\n * const editFields = getFieldsForOperation(productEntity, {\n * operation: 'edit',\n * viewerRole: 'admin',\n * availableFields: Object.keys(existingData)\n * });\n *\n * // Render custom form\n * editFields.map(({ name, config, editable }) => (\n * editable\n * ? <Input key={name} {...config} />\n * : <ReadOnlyDisplay key={name} {...config} />\n * ));\n * ```\n *\n * @see {@link AnyEntity} for entity definition structure\n * @see {@link RenderableField} for return type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function getFieldsForOperation(entity: EntityFieldsInput, options: GetFieldsForOperationOptions): RenderableField[];","validateEntity":"/**\n * Validates data against an entity definition.\n *\n * Uses Valibot under the hood with entity-derived schemas.\n * Pure function, no React dependencies.\n *\n * @template E - Entity type from defineEntity()\n * @param entity - Entity definition from defineEntity()\n * @param data - Data to validate\n * @param operation - Validation context ('create', 'draft', 'update', or 'full')\n * @returns Validation result with typed issues\n *\n * @example\n * ```typescript\n * import { validateEntity } from '@donotdev/crud/forms';\n * import { productEntity } from './entities/product';\n *\n * // Validate create data\n * const result = validateEntity(productEntity, formData, 'create');\n *\n * if (result.success) {\n * await saveProduct(result.data);\n * } else {\n * console.error('Validation failed:', result.issues);\n * // [{ path: 'name', message: 'Required' }, ...]\n * }\n * ```\n *\n * @example\n * ```typescript\n * // Use in form submission\n * const onSubmit = async (data: unknown) => {\n * const validation = validateEntity(productEntity, data, 'create');\n *\n * if (!validation.success) {\n * validation.issues?.forEach(issue => {\n * form.setError(issue.path, { message: issue.message });\n * });\n * return;\n * }\n *\n * await api.createProduct(validation.data);\n * };\n * ```\n *\n * @see {@link Entity} for entity definition structure\n * @see {@link ValidationResult} for return type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function validateEntity<E extends AnyEntity>(entity: E, data: unknown, operation?: SchemaOperation): ValidationResult<Record<string, unknown>>;","translateFieldLabel":"/**\n * Translates a field label using the provided translation function.\n *\n * Supports multiple label formats:\n * - Namespace syntax: `\"namespace:key\"` → translates `key` in `namespace`\n * - Direct label: `\"label\"` → translates `label` in current namespace\n * - Field name fallback: uses field name if no label in config\n *\n * @param fieldName - Field name (used as fallback)\n * @param config - Field configuration (may contain label)\n * @param t - Translation function from useTranslation hook\n * @returns Translated label string\n *\n * @example\n * ```typescript\n * import { translateFieldLabel } from '@donotdev/crud/forms';\n * import { useTranslation } from '@donotdev/core';\n *\n * const { t } = useTranslation('entity-car');\n * const label = translateFieldLabel('make', carEntity.fields.make, t);\n * // Returns: translated \"make\" from entity-car namespace\n * ```\n *\n * @example\n * ```typescript\n * // With namespace syntax in config.label\n * const label = translateFieldLabel('status', {\n * label: 'common:status',\n * type: 'select'\n * }, t);\n * // Returns: translated \"status\" from \"common\" namespace\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function translateFieldLabel<T extends FieldType = FieldType>(fieldName: string, config: EntityField<T> | undefined, t: (key: string, options?: Record<string, any>) => string): string;","translateLabel":"/**\n * Translates a label string with namespace support.\n * Used for translating option labels, field labels, or any label string.\n *\n * Supports namespace:key syntax (e.g., \"crud:status.draft\")\n *\n * **Translation Fallback Order (for status labels):**\n * 1. Entity namespace (`entity-{name}`) - User overrides take priority\n * 2. CRUD namespace (`crud`) - Framework defaults\n *\n * No dndev fallback - CRUD is optional and shouldn't pollute core framework namespace.\n * Same as `translateEntityLabel` from `@donotdev/core` (the implementation; SEO uses it too).\n *\n * @param label - Label string to translate (may include namespace:key syntax)\n * @param t - Translation function from useTranslation hook (should be from multi-namespace hook like [entity.namespace, 'crud'])\n * @returns Translated label string\n *\n * @example\n * ```typescript\n * translateLabel('crud:status.draft', t); // Tries entity namespace first, then crud\n * translateLabel('make', t); // Translates \"make\" in current namespace (entity or crud)\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function translateLabel(label: string, t: (key: string, options?: Record<string, any>) => string): string;","ViewerRole":"/** Viewer role type - used for editability checks */\nexport type ViewerRole = 'public' | 'guest' | 'user' | 'admin' | 'super';","RenderableField":"/** Field with computed editability for rendering */\nexport interface RenderableField<T extends FieldType = FieldType> {\n /** Field name/key */\n name: string;\n /** Field configuration */\n config: EntityField<T>;\n /** Whether field is editable (input vs read-only) */\n editable: boolean;\n}","GetFieldsForOperationOptions":"/** Options for field filtering */\nexport interface GetFieldsForOperationOptions {\n /** Form operation type */\n operation: 'create' | 'edit';\n /** Viewer role for editability checks (defaults to 'guest' if undefined) */\n viewerRole?: string;\n /**\n * Available field names (for edit mode).\n * When provided, only fields in this list are returned.\n * Typically comes from Object.keys(defaultValues) - backend-filtered data.\n */\n availableFields?: string[];\n}","EntityFieldsInput":"/** Entity fields input - supports Entity, Entity['fields'], or plain Record */\nexport type EntityFieldsInput = AnyEntity | AnyEntity['fields'] | Record<string, EntityField<FieldType>>;","SchemaOperation":"/**\n * Validation operation type\n */\nexport type SchemaOperation = 'create' | 'draft' | 'update' | 'full';","ValidationIssue":"/**\n * Validation issue structure\n */\nexport interface ValidationIssue {\n /** Field path (e.g., 'name' or 'address.street') */\n path: string;\n /** Error message */\n message: string;\n}","ValidationResult":"/**\n * Validation result structure\n * @template T - Data type\n */\nexport interface ValidationResult<T> {\n /** Whether validation succeeded */\n success: boolean;\n /** Validated data (if success) */\n data?: T;\n /** Validation issues (if failed) */\n issues?: ValidationIssue[];\n}","InferEntityData":"/**\n * Infers the data type from an entity definition.\n *\n * Alias of {@link InferEntityRow} — single source of truth with CRUD hooks and `defineEntity` field maps.\n *\n * @template E - Entity type from defineEntity()\n *\n * @example\n * ```typescript\n * const productEntity = defineEntity({\n * name: 'Product',\n * collection: 'products',\n * fields: {\n * name: { type: 'text', visibility: 'guest' },\n * price: { type: 'number', visibility: 'guest' },\n * active: { type: 'boolean', visibility: 'user' }\n * }\n * });\n *\n * type ProductData = InferEntityData<typeof productEntity>;\n * // { name: string; price: number; active: boolean; id: string; ... }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport type InferEntityData<E extends AnyEntity> = InferEntityRow<E>;","InferEntityCreate":"/**\n * Payload for {@link useCrud} `add` and bulk `inserts`: document shape without a\n * stable row `id` (matches {@link CrudCreateInput} over {@link InferEntityRow}).\n *\n * @template E - Entity from `defineEntity()`\n *\n * @version 0.1.0\n * @since 0.2.0\n */\nexport type InferEntityCreate<E extends AnyEntity> = CrudCreateInput<InferEntityRow<E>>;","InferEntityInput":"/**\n * Infers form input type (values before validation).\n * All fields are optional/partial since form may be incomplete.\n *\n * @template E - Entity type from defineEntity()\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport type InferEntityInput<E extends AnyEntity> = Partial<InferEntityData<E>>;","InferEntityOutput":"/**\n * Infers form output type (values after validation).\n * Represents validated, complete data ready for submission.\n *\n * @template E - Entity type from defineEntity()\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport type InferEntityOutput<E extends AnyEntity> = InferEntityData<E>;","UseEntityFormOptions":"/**\n * Options for useEntityForm hook.\n *\n * @template E - Entity type from defineEntity()\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface UseEntityFormOptions<E extends AnyEntity> {\n /**\n * Form ID for tracking form/upload state.\n * Required for deferred file uploads and form status tracking.\n * Generate with useId() in the parent component.\n */\n formId?: string;\n /**\n * Form operation type.\n * - 'create': Excludes technical fields, all other fields editable\n * - 'edit': Shows all fields from defaultValues, technical fields read-only\n * @default 'create' (or 'edit' if defaultValues provided)\n */\n operation?: 'create' | 'edit';\n /**\n * Initial form values.\n * For edit mode, should come from backend (already visibility-filtered).\n */\n defaultValues?: Partial<InferEntityData<E>>;\n /**\n * Viewer role for editability checks.\n * Determines which fields render as inputs vs read-only.\n * If not provided, defaults to 'guest' (most restrictive)\n * @default 'guest'\n */\n viewerRole?: string;\n /**\n * React Hook Form mode.\n * @default 'onSubmit'\n */\n mode?: 'onBlur' | 'onChange' | 'onSubmit' | 'onTouched' | 'all';\n /**\n * Translation function for field labels.\n * If not provided, uses entity labels or generates from field names.\n */\n t?: (key: string, options?: Record<string, unknown>) => string;\n /**\n * Whether the form data is still loading (e.g. async fetch in edit mode).\n * When true, form initialization and draft restoration are deferred until false.\n * Transitions from true → false reset the draft guard so draft loads against the correct data.\n * @default false\n */\n loading?: boolean;\n}","EntityFormReturn":"/**\n * Return type for useEntityForm hook.\n *\n * Extends React Hook Form's UseFormReturn with entity-aware additions.\n *\n * @template E - Entity type from defineEntity()\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface EntityFormReturn<E extends AnyEntity> extends UseFormReturn<InferEntityData<E>> {\n /**\n * Pre-filtered fields ready for rendering.\n * Already filtered by operation and visibility.\n */\n fields: RenderableField[];\n /**\n * Current operation type.\n */\n operation: 'create' | 'edit';\n /**\n * Original entity definition.\n */\n entity: E;\n /**\n * Translation function for labels.\n */\n t: (key: string, options?: Record<string, unknown>) => string;\n /**\n * Current viewer role.\n * Always has a value (defaults to 'guest' if not provided).\n */\n viewerRole: string;\n /**\n * Form ID for state tracking.\n * Undefined if not provided in options.\n */\n formId: string | undefined;\n /**\n * Current form status from FormStore.\n * Tracks: idle → uploading → validating → submitting → success/error\n */\n formStatus: FormStatus;\n /**\n * Upload progress 0-100 when status is 'uploading'.\n */\n uploadProgress: number;\n /**\n * Cleanup function to call on unmount.\n * Cleans up FormStore and UploadStore state for this form.\n */\n cleanup: () => void;\n /**\n * Cancel in-flight uploads and reset form submission state.\n * Aborts the AbortController, resets FormStore, and releases the submit mutex.\n */\n cancel: () => void;\n /**\n * Whether the form has unsaved changes.\n * True if any field value differs from original/default values.\n */\n isDirty: boolean;\n /**\n * Whether the user has interacted with the form.\n * True if any field has been touched or the form has been submitted.\n * Used to gate navigation blocking so we don't warn on untouched forms.\n */\n hasUserInteracted: boolean;\n /**\n * Reset form to original values and clear any saved draft.\n * Use this for \"Cancel\" button functionality.\n */\n resetForm: () => void;\n /**\n * Original values the form was initialized with.\n * For create mode: schema-based defaults.\n * For edit mode: schema defaults overlaid with the DB record.\n */\n originalValues: Partial<InferEntityData<E>> | undefined;\n}","EntityFieldReturn":"/**\n * Return type for useEntityField hook.\n *\n * @template E - Entity type from defineEntity()\n * @template K - Field key from entity\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface EntityFieldReturn<E extends AnyEntity, K extends keyof InferEntityData<E>> {\n /**\n * React Hook Form field props (value, onChange, onBlur, etc.)\n */\n field: ControllerRenderProps<InferEntityData<E>, FieldPath<InferEntityData<E>>>;\n /**\n * Field metadata (error, touched, dirty state).\n */\n meta: {\n error: string | undefined;\n touched: boolean;\n isDirty: boolean;\n };\n /**\n * Normalized field configuration.\n */\n config: EntityField;\n /**\n * Whether field is editable (based on role, operation, config).\n */\n isEditable: boolean;\n /**\n * Whether field is visible (based on filtering).\n */\n isVisible: boolean;\n /**\n * Format the current field value for display using registered formatter.\n * Returns the formatted value as string or ReactElement.\n *\n * @param options - Formatting options\n * @param options.compact - Use compact formatting (smaller images, plain spans for empty)\n * @param options.asString - Prefer string output when possible\n */\n display: (options?: {\n compact?: boolean;\n asString?: boolean;\n }) => string | ReactElement;\n}","UploadProvider":"/**\n * UploadProvider - Provides formId to upload components via context\n * Used by EntityFormRenderer to enable deferred uploads\n */\nexport declare function UploadProvider({ formId, children }","useUploadContext":"/**\n * useUploadContext - Get formId for upload components\n * Returns undefined if not inside an UploadProvider (standalone usage)\n */\nexport declare function useUploadContext(): string | undefined;","UploadProviderProps":"/** Props for the {@link UploadProvider} component. */\nexport interface UploadProviderProps {\n formId: string | undefined;\n children: ReactNode;\n}","useFileUpload":"/**\n * useFileUpload - Thin wrapper over UploadStore\n *\n * Store is SSOT. Hook provides:\n * - Selector (useFieldFiles) for React re-renders\n * - Plain dispatch functions (addFiles, removeFile, reorderFiles)\n * - 4 effects: init, RHF sync, registration, cleanup\n */\nexport declare function useFileUpload({ name, value, onChange, multiple, maxFiles, maxSize, accept, uploadFn, }","useEntityFavorites":"/**\n * Hook for managing entity favorites\n *\n * @example\n * ```typescript\n * // In detail page\n * const { isFavorite, toggleFavorite } = useEntityFavorites({ collection: 'cars' });\n *\n * <Button onClick={() => toggleFavorite(carId)}>\n * {isFavorite(carId) ? 'Saved' : 'Save'}\n * </Button>\n * ```\n *\n * @example\n * ```typescript\n * // In list page with filter (EntityCardList from @donotdev/ui)\n * const { favoritesFilter } = useEntityFavorites({ collection: 'cars' });\n * const [showFavoritesOnly, setShowFavoritesOnly] = useState(false);\n *\n * <EntityCardList\n * entity={carEntity}\n * filter={showFavoritesOnly ? favoritesFilter : undefined}\n * />\n * ```\n */\nexport declare function useEntityFavorites(options?: UseEntityFavoritesOptions): UseEntityFavoritesReturn;","useRelatedItems":"/**\n * useRelatedItems - Finds related items based on matching field criteria\n *\n * Matching logic by field type:\n * - String/select fields: exact match\n * - Number fields: within ±tolerance% of current value\n *\n * Items are matched if they satisfy ANY of the specified fields (OR logic).\n * Current item is automatically excluded.\n *\n * @example\n * ```tsx\n * const { items: relatedCars } = useRelatedItems(\n * carEntity,\n * currentCar,\n * allCars,\n * ['make', 'price'],\n * { limit: 3, tolerance: 0.2 }\n * );\n * ```\n */\nexport declare function useRelatedItems<T extends Record<string, unknown>>(entity: AnyEntity, currentItem: T | null | undefined, allItems: T[] | null | undefined, matchFields: string[], options?: UseRelatedItemsOptions): UseRelatedItemsReturn<T>;","useCrudFilters":"export declare function useCrudFilters(options: UseCrudFiltersOptions): UseCrudFiltersReturn;","useCrudPageSize":"/**\n * Hook for managing per-collection page size preference from CrudStore\n *\n * @example\n * ```typescript\n * const { pageSize, setPageSize } = useCrudPageSize({ collection: 'cars' });\n *\n * <DataTable\n * pageSize={pageSize}\n * onPageSizeChange={setPageSize}\n * />\n * ```\n */\nexport declare function useCrudPageSize(options: UseCrudPageSizeOptions): UseCrudPageSizeReturn;","useFieldConditions":"/**\n * Evaluate field conditions against live form values.\n *\n * @param fields - Array of renderable fields (from useEntityForm or getFieldsForOperation)\n * @param control - React Hook Form control object\n * @returns Record mapping field names to their computed condition states.\n * Fields without conditions are not included — treat missing entries as defaults.\n *\n * @example\n * ```tsx\n * function MyForm({ entity }) {\n * const { fields, control } = useEntityForm(entity, { operation: 'create' });\n * const conditions = useFieldConditions(fields, control);\n *\n * return fields.map(({ name, config }) => {\n * const cond = conditions[name];\n * if (cond && !cond.visible) return null;\n * return <FormField key={name} disabled={cond?.disabled} required={cond?.required} />;\n * });\n * }\n * ```\n */\nexport declare function useFieldConditions<TFieldValues extends FieldValues = FieldValues>(fields: readonly RenderableField[], control: Control<TFieldValues>): Record<string, ConditionResult>;","useReferenceResolver":"/**\n * Hook that fetches referenced collections for an entity and builds a lookup map.\n *\n * Supports up to 4 unique referenced collections. Each collection is fetched via useCrudList.\n * Because hooks must be called unconditionally, we always call all 4 useCrudList slots\n * and disable unused ones.\n *\n * @param entity - The entity whose reference fields to resolve\n * @returns ReferenceData lookup map\n */\nexport declare function useReferenceResolver(entity: AnyEntity, enabled?: boolean): ReferenceData;","FileMetadata":"/** Backwards-compatible alias */\nexport type FileMetadata = FileEntry;","FileEntry":"/**\n * Per-file state entry - SSOT for all file upload state.\n * Stored in UploadStore, consumed by useFileUpload hook via selector.\n */\nexport interface FileEntry {\n /** Unique ID for React keys and store lookups */\n id: string;\n /** Original File object (placeholder for existing uploads) */\n file: File;\n /** Local preview URL (blob: for new, https: for existing) */\n previewURL: string;\n /** Upload status */\n status: FileEntryStatus;\n /** Upload progress 0-100 (null = not started) */\n progress: number | null;\n /** Uploaded result (null = pending) */\n uploaded: UploadResult | null;\n /** Error message if upload failed */\n error: string | null;\n}","UseFileUploadOptions":"export interface UseFileUploadOptions {\n /** Field name for UploadStore registration */\n name: string;\n /** Current value from form (Picture or FileAsset based) */\n value: unknown;\n /** Change handler to update form */\n onChange: (value: unknown) => void;\n /** Allow multiple files */\n multiple?: boolean;\n /** Max number of files (multiple mode) */\n maxFiles?: number;\n /** Max file size in bytes (default: 10MB) */\n maxSize?: number;\n /** Accepted MIME types (e.g., ['image/*'], ['application/pdf']) */\n accept?: string[];\n /** Storage path prefix */\n storagePath?: string;\n /** Upload function - injected to avoid coupling to specific storage */\n uploadFn?: (file: File, onProgress: (progress: number) => void) => Promise<UploadResult>;\n}","UseEntityFavoritesOptions":"/** Options for the {@link useEntityFavorites} hook. */\nexport interface UseEntityFavoritesOptions {\n /** Storage key (default: 'entity-favorites') */\n storageKey?: string;\n /** Entity collection name (e.g., 'cars', 'products') - used to namespace favorites */\n collection?: string;\n}","UseEntityFavoritesReturn":"/** Return type of the {@link useEntityFavorites} hook. */\nexport interface UseEntityFavoritesReturn {\n /** Array of favorited entity IDs */\n favorites: string[];\n /** Check if an entity is favorited */\n isFavorite: (id: string) => boolean;\n /** Toggle favorite status for an entity */\n toggleFavorite: (id: string) => void;\n /** Add entity to favorites */\n addFavorite: (id: string) => void;\n /** Remove entity from favorites */\n removeFavorite: (id: string) => void;\n /** Clear all favorites */\n clearFavorites: () => void;\n /** Filter function for use with EntityCardList/EntityList (from @donotdev/ui) filter prop */\n favoritesFilter: (item: {\n id: string;\n }) => boolean;\n /** Whether favorites are loaded from localStorage */\n isLoaded: boolean;\n}","UseRelatedItemsOptions":"/** Options for the {@link useRelatedItems} hook. */\nexport interface UseRelatedItemsOptions {\n /** Maximum number of related items to return (default: 3) */\n limit?: number;\n /** Tolerance for numeric field matching as percentage (default: 0.2 = 20%) */\n tolerance?: number;\n}","UseRelatedItemsReturn":"/** Return type of the {@link useRelatedItems} hook. */\nexport interface UseRelatedItemsReturn<T> {\n /** Array of related items */\n items: T[];\n /** Whether any related items were found */\n hasItems: boolean;\n}","UseCrudFiltersOptions":"/** Options for the {@link useCrudFilters} hook. */\nexport interface UseCrudFiltersOptions {\n /** Entity collection name (e.g., 'cars', 'products') */\n collection: string;\n}","UseCrudFiltersReturn":"/** Return type of the {@link useCrudFilters} hook. */\nexport interface UseCrudFiltersReturn {\n /** Current filter state */\n filters: FilterState;\n /** Update filters */\n setFilters: (filters: FilterState) => void;\n /** Whether favorites-only toggle is enabled */\n showFavoritesOnly: boolean;\n /** Toggle favorites-only filter */\n setShowFavoritesOnly: (show: boolean) => void;\n}","UseCrudPageSizeOptions":"/** Options for the {@link useCrudPageSize} hook. */\nexport interface UseCrudPageSizeOptions {\n /** Entity collection name (e.g., 'cars', 'products') */\n collection: string;\n /** Default page size when no preference is stored (default: 12) */\n defaultPageSize?: number;\n}","UseCrudPageSizeReturn":"/** Return type of the {@link useCrudPageSize} hook. */\nexport interface UseCrudPageSizeReturn {\n /** Current page size (from store or default) */\n pageSize: number;\n /** Persist a new page size preference */\n setPageSize: (pageSize: number) => void;\n}","ReferenceData":"/** Lookup map: collection → { id → displayLabel } */\nexport type ReferenceData = Record<string, Record<string, string>>;","isStorageUrl":"/**\n * Check if a URL is a valid storage URL (not a blob URL)\n * @param url - URL to check\n * @returns true if URL is a storage URL (https://), false if blob URL or invalid\n */\nexport declare function isStorageUrl(url: string): boolean;","validatePicture":"/**\n * Validate that a Picture object has valid storage URLs.\n * `thumbUrl` is optional — only validated when present (W9: false positive fix).\n * @param picture - Picture object to validate\n * @returns true if fullUrl is a valid storage URL (and thumbUrl, when present, is also valid)\n */\nexport declare function validatePicture(picture: Picture): boolean;","checkForBlobUrls":"/**\n * Recursively check for blob URLs in form data\n * Returns array of paths where blob URLs were found\n * @param data - Data to check (can be nested object/array)\n * @param path - Current path in the data structure (for error messages)\n * @returns Array of paths where blob URLs were found\n */\nexport declare function checkForBlobUrls(data: unknown, path?: string): string[];","hasBlobUrls":"/**\n * Check if form data contains any blob URLs\n * @param data - Form data to check\n * @returns true if any blob URLs found, false otherwise\n */\nexport declare function hasBlobUrls(data: unknown): boolean;","defineWorkflow":"/**\n * Define a multi-step workflow configuration.\n * Identity function that provides type safety and documentation.\n *\n * @param config - Workflow configuration\n * @returns The same config, typed as WorkflowConfig\n */\nexport declare function defineWorkflow(config: WorkflowConfig): WorkflowConfig;","useEntityWorkflow":"/**\n * Orchestrate a multi-step entity workflow.\n *\n * @param config - Workflow configuration from defineWorkflow()\n * @param options - Workflow options (callbacks, defaults)\n * @returns Workflow state and navigation methods\n */\nexport declare function useEntityWorkflow(config: WorkflowConfig, options?: UseEntityWorkflowOptions): EntityWorkflowReturn;","saveWorkflowState":"/**\n * Save workflow state to localStorage.\n */\nexport declare function saveWorkflowState(workflowId: string, state: PersistedWorkflowState): void;","loadWorkflowState":"/**\n * Load workflow state from localStorage.\n * Returns null if no saved state exists or parsing fails.\n */\nexport declare function loadWorkflowState(workflowId: string): PersistedWorkflowState | null;","clearWorkflowState":"/**\n * Clear persisted workflow state.\n */\nexport declare function clearWorkflowState(workflowId: string): void;","WorkflowConfig":"/** Full workflow configuration */\nexport interface WorkflowConfig {\n /** Unique workflow identifier */\n id: string;\n /** Workflow display name */\n name: string;\n /** Whether to persist progress to localStorage */\n persist?: boolean;\n /** Persistence key prefix (defaults to workflow id) */\n persistKey?: string;\n /** Workflow steps */\n steps: WorkflowStep[];\n /** Callback when all steps are completed */\n onComplete?: (allData: Record<string, unknown>) => void | Promise<void>;\n}","WorkflowStep":"/** Configuration for a single workflow step */\nexport interface WorkflowStep {\n /** Unique step identifier */\n id: string;\n /** Step title displayed in stepper */\n title: string;\n /** Step description (optional) */\n description?: string;\n /** Entity definition to use for this step's form */\n entity?: AnyEntity;\n /** Subset of entity fields to show in this step (if omitted, shows all) */\n fields?: string[];\n /** Whether the user can skip this step */\n allowSkip?: boolean;\n /** Conditions for step visibility (cross-step references use 'stepId.field' notation) */\n conditions?: {\n visible?: ConditionInput;\n };\n /** Field-level condition overrides for this step (e.g., make a field required based on previous step data) */\n fieldConditions?: Record<string, ConditionalBehavior>;\n /** Callback after step is completed */\n after?: (context: WorkflowStepContext) => void | Promise<void>;\n /** Custom render function for non-entity steps (e.g., review/summary) */\n custom?: (allData: Record<string, unknown>) => ReactNode;\n /** Custom validation for the step */\n validation?: {\n validate?: (data: Record<string, unknown>) => boolean | string;\n message?: string;\n };\n}","WorkflowStepContext":"/** Context passed to step callbacks */\nexport interface WorkflowStepContext {\n /** Data collected in the current step */\n data: Record<string, unknown>;\n /** All data collected across all steps */\n allData: Record<string, unknown>;\n /** Helper to prefill next step */\n next: {\n prefill: (values: Record<string, unknown>) => void;\n };\n}","UseEntityWorkflowOptions":"/** Options for useEntityWorkflow */\nexport interface UseEntityWorkflowOptions {\n /** Callback when all steps are completed and data is submitted */\n onComplete?: (allData: Record<string, unknown>) => void | Promise<void>;\n /** Callback when step changes */\n onStepChange?: (fromIndex: number, toIndex: number) => void;\n /** Default values to pre-fill across steps */\n defaultValues?: Record<string, unknown>;\n}","EntityWorkflowReturn":"/** Return type of useEntityWorkflow */\nexport interface EntityWorkflowReturn {\n /** Current step configuration */\n currentStep: WorkflowStep;\n /** Current step index (0-based, relative to visible steps) */\n currentStepIndex: number;\n /** Steps after condition filtering (only visible steps) */\n visibleSteps: WorkflowStep[];\n /** Data per step (keyed by step id) */\n stepData: Record<string, Record<string, unknown>>;\n /** Merged data across all steps */\n allData: Record<string, unknown>;\n /** Navigate to next step (validates current step first) */\n goNext: (currentStepData?: Record<string, unknown>) => Promise<boolean>;\n /** Navigate to previous step */\n goPrevious: () => void;\n /** Skip current step (only if allowSkip is true) */\n skipStep: () => void;\n /** Jump to a specific step by index */\n goToStep: (index: number) => void;\n /** Whether current step is the first visible step */\n isFirst: boolean;\n /** Whether current step is the last visible step */\n isLast: boolean;\n /** Whether the workflow is submitting (final step) */\n isSubmitting: boolean;\n /** Whether the current step can proceed (no validation errors) */\n canGoNext: boolean;\n /** Force save current state to localStorage */\n persistNow: () => void;\n /** Clear all persisted state */\n clearPersisted: () => void;\n /** Prefill data for a specific step */\n prefillStep: (stepId: string, values: Record<string, unknown>) => void;\n}","PersistedWorkflowState":"/** Persisted workflow state */\nexport interface PersistedWorkflowState {\n /** Current step index */\n currentStepIndex: number;\n /** Data per step (keyed by step id) */\n stepData: Record<string, Record<string, unknown>>;\n /** Timestamp of last save */\n savedAt: number;\n}","formatValue":"/**\n * Formats a value for display based on field type.\n * Text output (`asString`, `displayKey`, `displayValue`) is `formatFieldText` from\n * `@donotdev/core`, the same text entity SEO uses; other output is the registered\n * display formatter's (React).\n *\n * @param value - Field value to format\n * @param config - Field configuration\n * @param t - Translation function\n * @param options - Formatting options\n * @param options.compact - Use compact formatting (smaller images, plain spans for empty)\n * @param options.asString - Prefer string output when possible (e.g. for price in text placeholders)\n * @returns Formatted value as string or ReactElement\n */\nexport declare function formatValue(value: any, config: EntityField, t: (key: string, options?: Record<string, any>) => string, options?: DisplayFormatterOptions): string | ReactElement;","buildReferenceLabel":"/**\n * Build a display label for a referenced item.\n *\n * Resolution order:\n * 1. `labelFields` — join multiple fields (e.g. `['first_name', 'last_name']` → \"John Doe\")\n * 2. `displayField` — single field\n * 3. Auto-detect: first match from name/title/label/displayName\n * 4. Fallback: document `id`\n */\nexport declare function buildReferenceLabel(item: Record<string, any>, labelFields?: string[], displayField?: string): string;","matchesFilter":"/**\n * Pure filter matching utility — checks if an item value matches a filter value.\n *\n * Supports all built-in field types: text (contains), number/price (range),\n * date/datetime (range), select (exact), multiselect (contains), address (formatted_address).\n *\n * Null/undefined handling for range filters:\n * - MIN only → exclude null/undefined\n * - MAX only → include null/undefined\n * - MIN + MAX → exclude null/undefined\n *\n * @param itemValue - The item's field value to test\n * @param filterValue - The filter criterion (string, range, date, array)\n * @param fieldType - Entity field type (e.g. 'text', 'number', 'date', 'price')\n * @returns true if item passes the filter\n *\n * @example\n * ```typescript\n * import { matchesFilter } from '@donotdev/crud';\n *\n * matchesFilter('hello world', 'hello', 'text'); // true (contains)\n * matchesFilter(42, { min: '10', max: '50' }, 'number'); // true (in range)\n * matchesFilter(null, { min: '10' }, 'number'); // false (null excluded)\n * ```\n */\nexport declare function matchesFilter(itemValue: any, filterValue: string | {\n min?: string;\n max?: string;\n}","applyFilters":"/**\n * Apply filter state to items using entity field type metadata.\n * Typically called automatically by `useCrudList`/`useCrudCardList` via `processed`.\n * Export available for advanced use cases (e.g. filtering outside React).\n *\n * @param items - Raw items array\n * @param filters - Current filter state from CrudStore\n * @param entity - Entity definition (for field type lookup)\n * @returns Filtered items\n *\n * @example\n * ```typescript\n * import { applyFilters } from '@donotdev/crud';\n * const filtered = applyFilters(items, { status: 'active' }, productEntity);\n * ```\n */\nexport declare function applyFilters<T extends Record<string, any>>(items: T[], filters: FilterState, entity: AnyEntity): T[];","applySearch":"/**\n * Apply search query to items.\n * Searches fields defined by `entity.search.fields` or auto-detected text-like visible fields.\n * Typically called automatically by `useCrudList`/`useCrudCardList` when `searchQuery` option is set.\n *\n * @param items - Items to search\n * @param query - Search query string (case-insensitive contains)\n * @param entity - Entity definition (for field config and search.fields lookup)\n * @returns Filtered items matching search\n *\n * @example\n * ```typescript\n * import { applySearch } from '@donotdev/crud';\n * const results = applySearch(items, 'bmw', carEntity);\n * ```\n */\nexport declare function applySearch<T extends Record<string, any>>(items: T[], query: string, entity: AnyEntity): T[];","applySort":"/**\n * Apply client-side sorting to items.\n * Accepts a field-based config or a custom comparator function.\n * Handles null/undefined values by sorting them last.\n * Supports number, string, Date, and price ({ amount }) comparisons.\n *\n * @param items - Items to sort\n * @param sort - Sort configuration (field + direction) or comparator function\n * @returns Sorted items (new array, original unchanged)\n *\n * @example\n * ```typescript\n * import { applySort } from '@donotdev/crud';\n * // Field-based\n * const sorted = applySort(items, { field: 'createdAt', direction: 'desc' });\n * // Custom comparator\n * const sorted = applySort(items, (a, b) => a.priority - b.priority);\n * ```\n */\nexport declare function applySort<T extends Record<string, any>>(items: T[], sort: ClientSort<T>): T[];","getSearchableFields":"/**\n * Returns the list of searchable field names for an entity.\n * Uses entity.search.fields if defined, otherwise auto-detects text-like visible fields.\n *\n * @param entity - Entity definition\n * @returns Array of field names to search\n */\nexport declare function getSearchableFields(entity: AnyEntity): string[];","ClientSort":"/**\n * Client-side sort: field-based config or custom comparator function.\n *\n * @example\n * ```typescript\n * // Field-based\n * const sort: ClientSort = { field: 'price', direction: 'desc' };\n *\n * // Custom comparator (multi-key, status priority, etc.)\n * const sort: ClientSort<Apartment> = (a, b) =>\n * STATUS_PRIORITY[a.status] - STATUS_PRIORITY[b.status]\n * || a.date.localeCompare(b.date);\n * ```\n */\nexport type ClientSort<T = Record<string, unknown>> = ClientSortConfig | ((a: T, b: T) => number);","ClientSortConfig":"/**\n * Sort configuration for client-side sorting.\n *\n * @example\n * ```typescript\n * const sort: ClientSortConfig = { field: 'price', direction: 'desc' };\n * ```\n */\nexport interface ClientSortConfig {\n field: string;\n direction?: 'asc' | 'desc';\n}","EMPTY_DATA":"export declare const EMPTY_DATA: Record<string, unknown>;","EMPTY_OPTIMISTIC":"export declare const EMPTY_OPTIMISTIC: Record<string, unknown>;","getCrudServiceInstance":"/**\n * Get the current CrudService instance (for use in callbacks)\n */\nexport declare function getCrudServiceInstance(): CrudServiceInterface | null;","UseCrudOptions":"/** Options for the {@link useCrud} hook. */\nexport interface UseCrudOptions<T> {\n schema?: dndevSchema<T>;\n /** Entity definition - auto-generates schema if schema not provided */\n entity?: AnyEntity;\n /** TanStack Query stale time in ms (default: Infinity) */\n staleTime?: number;\n /** Disable caching (bypass TanStack Query) */\n noCache?: boolean;\n /**\n * Read hooks (`useCrudDoc`, `useCrudList`, `useCrudCardList`): show fields defined\n * with `i18n: true` in the current language (default true). Edit forms pass false:\n * they must load and save the stored default-language values.\n *\n * @since 0.2.3\n */\n translate?: boolean;\n}","UseCrudReturn":"/**\n * CRUD API return type - Single Document & Actions\n */\nexport interface UseCrudReturn<T extends Record<string, unknown>> extends CrudAPI<T> {\n /**\n * Bulk write — inserts + updates + deletes in one adapter call. Partial\n * success: rows that are written stay written; rows that fail are listed in\n * `result.failed` (with the reason) and only they are reverted in the cache.\n * One audit entry, one rate-limit hit, one toast. Throws `BulkCollisionError`\n * when the payload carries the same id in two mutually-exclusive buckets.\n *\n * @example\n * ```tsx\n * const { bulk } = useCrud<Event>(eventEntity);\n * await bulk({ inserts, updates, deletes });\n * ```\n */\n bulk: (ops: BulkOperations<T>, options?: MutationOptions) => Promise<BulkResult>;\n /**\n * Cross-collection atomic bulk write. Does NOT require the hook's own entity\n * to be one of the collections. Each batch carries its own schemas.\n * One optimistic pass, writes in topological order, one toast, coordinated rollback.\n *\n * @example\n * ```tsx\n * const { bulkAcross } = useCrud(customerEntity);\n * const customerId = generateUUID();\n * await bulkAcross([\n * { collection: 'customers', inserts: [{ id: customerId, ...customerData }], schemas: { create: customerSchema } },\n * { collection: 'inquiries', inserts: [{ customerId, ...inquiryData }], schemas: { create: inquirySchema }, dependsOn: ['customers'] },\n * ]);\n * ```\n */\n bulkAcross: (batches: BulkAcrossBatch[], options?: MutationOptions) => Promise<BulkAcrossResult>;\n /** @internal Collection name */\n _collection: string;\n /** @internal Generated schemas */\n _schemas: OperationSchemas | undefined;\n /** @internal Cache options */\n _cacheOptions: CacheOptions;\n /** @internal Scope configuration (for multi-tenancy) */\n _scope: ScopeConfig | undefined;\n}","useCrud":"/**\n * React hook for CRUD Actions & Single Documents\n *\n * Use this hook for:\n * - Checking feature status: `const status = useCrud('status');`\n * - Adding, Updating, Deleting items\n * - Fetching a single document\n *\n * **IMPORTANT: Always destructure the return value.**\n * The returned object is a new reference every render (same pattern as\n * TanStack Query). Individual methods (`get`, `query`, `add`, `update`,\n * `delete`) are `useCallback`-stable and safe as useEffect dependencies.\n * Putting the whole object in a dependency array causes an infinite loop.\n *\n * @example\n * ```tsx\n * // Correct — destructure, use stable methods in deps\n * const { query, add } = useCrud<Car>(carEntity);\n * useEffect(() => { query({ limit: 50 }).then(setRows); }, [query]);\n *\n * // WRONG — infinite loop (new object every render)\n * const crud = useCrud<Car>(carEntity);\n * useEffect(() => { crud.query(...); }, [crud]); // loop!\n * ```\n *\n * @template T - Document type for this collection\n * @param entityOrCollection - Entity definition or collection name\n * @param options - Configuration options\n * @returns CRUD Actions API (destructure before using in deps)\n */\nexport declare function useCrud(key: 'status'): FeatureStatus;","UseCrudListOptions":"/** Options for the {@link useCrudList} hook. */\nexport interface UseCrudListOptions<T> extends UseCrudOptions<T> {\n /** Automatically fetch data on mount (default: true) */\n enabled?: boolean;\n /**\n * Pagination mode:\n * - `'auto'` (default) — fetches up to 1000 client-side. If total > 1000, auto-switches to server pagination.\n * - `'client'` — forces client-side (fetches all, paginates in browser).\n * - `'server'` — forces server-side (cursor pagination, one page at a time).\n */\n pagination?: 'auto' | 'client' | 'server';\n /** Page number for server-side pagination (1-indexed, default: 1) */\n page?: number;\n /** Page size for server-side pagination (default: 10) */\n pageSize?: number;\n /** Where/orderBy/limit passed to list query (merged with pagination on server) */\n queryOptions?: QueryOptions;\n /** Client-side search query. Applied after filters. */\n searchQuery?: string;\n /** Client-side sort: field config, comparator function, or null to disable. Defaults to entity.defaultSort. */\n clientSort?: ClientSort<T> | ClientSortConfig | null;\n}","UseCrudListReturn":"/** Return type of the {@link useCrudList} hook. */\nexport interface UseCrudListReturn<T> {\n status: FeatureStatus;\n data: {\n items: T[];\n total?: number;\n } | null;\n /** Convenience: items array (data?.items ?? []) — raw + optimistic, no client processing */\n items: T[];\n /** Items after client-side filters + search + sort — ready to render */\n processed: T[];\n /** Count of items after filters + search (before pagination) */\n filteredTotal: number;\n /** True during initial fetch (show skeletons) */\n loading: boolean;\n /** True during background refetch (show subtle indicator) */\n fetching: boolean;\n error: Error | null;\n /** Manual refresh function */\n mutate: () => Promise<void>;\n /** Alias for mutate (manual refresh) */\n refresh: () => Promise<void>;\n isAvailable: boolean;\n /** Effective pagination mode after auto-detection ('client' or 'server'). */\n effectiveMode: 'client' | 'server';\n}","useCrudList":"/**\n * React hook for fetching and managing a list of entities\n *\n * Use this hook for:\n * - Admin tables\n * - Data grids\n * - Lists of items\n *\n * @template T - Document type\n * @param entityOrCollection - Entity definition or collection name\n * @param options - Configuration options\n * @returns List data and control methods\n *\n * @example\n * ```typescript\n * // Basic usage — processed has filters + search + sort applied\n * const { processed, loading, refresh } = useCrudList(carEntity, {\n * searchQuery: search,\n * });\n *\n * // With explicit sort\n * const { processed } = useCrudList(carEntity, {\n * searchQuery: search,\n * clientSort: { field: 'price', direction: 'asc' },\n * });\n * ```\n */\nexport declare function useCrudList<E extends AnyEntity>(entity: E, options?: UseCrudListOptions<InferEntityRow<E>>): UseCrudListReturn<InferEntityRow<E>>;","UseCrudDocOptions":"/**\n * Options for the {@link useCrudDoc} hook.\n * No `noCache`: the hook is a view of the shared cache entry (use `refresh()` to re-read).\n */\nexport interface UseCrudDocOptions<T> extends Omit<UseCrudOptions<T>, 'noCache'> {\n /** Fetch automatically when `id` is set (default: true) */\n enabled?: boolean;\n}","UseCrudDocReturn":"/** Return type of the {@link useCrudDoc} hook. */\nexport interface UseCrudDocReturn<T> {\n status: FeatureStatus;\n /**\n * The document, with pending optimistic changes applied.\n * null while loading, without `id`, or when no document exists.\n */\n data: T | null;\n /** True during the initial fetch, or while CRUD initializes with an `id` to read */\n loading: boolean;\n /** True during a background refetch (show a subtle indicator) */\n fetching: boolean;\n /** True once the read settled and no document exists for `id` */\n notFound: boolean;\n /** Read error (access denied, network, adapter) */\n error: Error | null;\n /** Re-read the document from the backend (no-op without `id` or while CRUD is unavailable) */\n refresh: () => Promise<void>;\n isAvailable: boolean;\n}","useCrudDoc":"/**\n * React hook for reading one document, reactive to the CRUD cache.\n *\n * Use this hook for:\n * - Detail / view pages\n * - Any component showing a document that may be edited elsewhere on the page\n *\n * Shares the cache key `['crud', collection, 'get', id]` with `useCrud().get()`\n * and every mutation, so an edit made anywhere shows up here without a refetch.\n * Pass `null` / `undefined` as `id` to wait (no fetch, not loading).\n *\n * @template T - Document type\n * @param entityOrCollection - Entity definition or collection name\n * @param id - Document id; null/undefined disables the read\n * @param options - Configuration options\n * @returns The document and its read state\n *\n * @example\n * ```tsx\n * const { data: car, loading, notFound } = useCrudDoc(carEntity, carId);\n * if (loading) return <Spinner />;\n * if (notFound) return <Text>{t('notFound')}</Text>;\n * return <Text>{car?.model}</Text>;\n * ```\n */\nexport declare function useCrudDoc<E extends AnyEntity>(entity: E, id: string | null | undefined, options?: UseCrudDocOptions<InferEntityRow<E>>): UseCrudDocReturn<InferEntityRow<E>>;","UseCrudCardListOptions":"/** Options for the {@link useCrudCardList} hook. */\nexport interface UseCrudCardListOptions<T> extends UseCrudOptions<T> {\n /** Automatically fetch data on mount (default: true) */\n enabled?: boolean;\n /** Where/orderBy/limit passed to listCard query */\n queryOptions?: QueryOptions;\n /** Client-side search query. Applied after filters. */\n searchQuery?: string;\n /** Client-side sort: field config, comparator function, or null to disable. Defaults to entity.defaultSort. */\n clientSort?: ClientSort<T> | ClientSortConfig | null;\n}","UseCrudCardListReturn":"/** Return type of the {@link useCrudCardList} hook. */\nexport interface UseCrudCardListReturn<T> {\n status: FeatureStatus;\n data: {\n items: T[];\n } | null;\n /** Convenience: items array (data?.items ?? []) — raw + optimistic, no client processing */\n items: T[];\n /** Items after client-side filters + search + sort — ready to render */\n processed: T[];\n /** Count of items after filters + search (before pagination) */\n filteredTotal: number;\n /** True during initial fetch (show skeletons) */\n loading: boolean;\n /** True during background refetch (show subtle indicator) */\n fetching: boolean;\n error: Error | null;\n /** Manual refresh function */\n mutate: () => Promise<void>;\n /** Alias for mutate (manual refresh) */\n refresh: () => Promise<void>;\n isAvailable: boolean;\n}","useCrudCardList":"/**\n * React hook for fetching a list of entities optimized for Card views\n *\n * Use this hook for:\n * - Public-facing grids\n * - Dashboard widgets\n * - Summary lists\n *\n * @template T - Document type\n * @param entityOrCollection - Entity definition or collection name\n * @param options - Configuration options\n * @returns List data and control methods\n *\n * @example\n * ```typescript\n * // processed has filters + search + sort applied\n * const { processed, loading } = useCrudCardList(carEntity, {\n * searchQuery: search,\n * });\n * ```\n */\nexport declare function useCrudCardList<E extends AnyEntity>(entity: E, options?: UseCrudCardListOptions<InferEntityRow<E>>): UseCrudCardListReturn<InferEntityRow<E>>;","CrudButton":"/**\n * Defensive button component for CRUD operations.\n *\n * Features (inherited from ActionButton):\n * - Auto-disables while loading\n * - Shows spinner + loadingText during action\n * - Optional confirmation dialog\n * - aria-busy for accessibility\n *\n * CRUD-specific features:\n * - **Auto-detects CRUD availability** - no manual prop needed\n * - Auto-disables when user not authenticated (if requiresAuth=true)\n *\n * @example\n * ```tsx\n * const { delete: deleteItem } = useCrud(itemEntity);\n * const user = useAuth('user');\n *\n * <CrudButton\n * action={() => deleteItem(itemId)}\n * user={user}\n * loadingText=\"Deleting...\"\n * confirmText=\"Delete this item?\"\n * confirmTitle=\"Delete Item\"\n * onSuccess={() => refetch()}\n * variant=\"destructive\"\n * >\n * Delete\n * </CrudButton>\n * ```\n */\ndeclare function CrudButton<T = unknown>({ requiresAuth, user, disabled, children, ...actionButtonProps }","CrudButtonProps":"/** Props for {@link CrudButton}, an ActionButton variant that auto-checks CRUD availability. */\nexport interface CrudButtonProps<T = unknown> extends Omit<ActionButtonProps<T>, 'disabled'> {\n /**\n * Whether user authentication is required for this action.\n * When true, button is disabled if user is not authenticated.\n * @default true\n */\n requiresAuth?: boolean;\n /**\n * Current user object. Pass from useAuth('user').\n * Required when requiresAuth=true.\n */\n user?: unknown;\n /**\n * Additional disabled condition.\n */\n disabled?: boolean;\n /** Button content */\n children: ReactNode;\n}","FormFieldRenderer":"/**\n * FormFieldRenderer - renders fields via registry lookup\n */\nexport declare function FormFieldRenderer<T extends FieldType, TFieldValues extends FieldValues = FieldValues>({ name, config, t, ...props }","DisplayFieldRenderer":"/**\n * DisplayFieldRenderer - Renders a field value as read-only display\n *\n * Used when:\n * - editable: false (field is never editable)\n * - editable: 'admin' and viewer is not admin\n * - `EDITABLE.CREATE_ONLY` and viewing existing record\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function DisplayFieldRenderer<T extends FieldType = FieldType>({ name, config, value, t, }","DisplayFieldRendererProps":"/** Props for {@link DisplayFieldRenderer}, renders a field value as read-only text. */\nexport interface DisplayFieldRendererProps<T extends FieldType = FieldType> {\n /** Field identifier */\n name: string;\n /** Field configuration */\n config: EntityField<T>;\n /** Current field value */\n value: any;\n /** Translation function */\n t: (key: string, options?: Record<string, any>) => string;\n}","FormLayout":"/**\n * Enhanced FormLayout with modern UX features\n *\n * Features:\n * - Responsive design\n * - Loading states\n * - ARIA compliance\n * - Multiple variants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * - Action buttons\n * - Error handling\n */\ndeclare const FormLayout: <T extends FieldValues>({ title, onSubmit, children, formMethods, loading, submitText, cancelText, showCancel, onCancel, variant, columns, description, }","EntityFilters":"/**\n\n * Entity Filters Component - Auto-generates filter UI based on entity field types\n\n *\n\n * Features:\n\n * - String/Select fields: Combobox with unique values\n\n * - Number fields: Min/Max inputs + Slider (2 rows)\n\n * - Date fields: Min/Max date pickers + shortcuts (2 rows)\n\n * - Filters wrap naturally with flex-wrap\n\n * - Clear individual filters or all filters\n\n */\nexport declare function EntityFilters<T extends Record<string, any> & {\n id: string;\n}","EntityFiltersProps":"/** Props for {@link EntityFilters}, auto-generates filter UI based on entity field types. */\nexport interface EntityFiltersProps<T extends Record<string, any> & {\n id: string;\n}","YearFilter":"/**\n * YearFilter - Year range filter backed by RangeInput (type=\"number\").\n * Matches every other numeric range filter in the framework.\n */\nexport declare function YearFilter({ label, value, onChange, tCrud, minYear, maxYear, }","YearFilterValue":"export type YearFilterValue = {\n min?: string;\n max?: string;\n}","YearFilterProps":"export interface YearFilterProps {\n /** Field label */\n label: string;\n /** Current filter value */\n value?: YearFilterValue;\n /** Callback when filter value changes */\n onChange: (value: YearFilterValue | undefined) => void;\n /** Translation function for CRUD namespace */\n tCrud: (key: string, opts?: {\n defaultValue?: string;\n }) => string;\n /** Minimum year (from entity validation.min) */\n minYear?: number;\n /** Maximum year (from entity validation.max) */\n maxYear?: number;\n}","DisplayThumbnail":"/**\n * DisplayThumbnail - Renders thumbnail of first picture for list cards.\n * Used by CrudCard and any list view that needs a single thumbnail.\n */\nexport declare function DisplayThumbnail({ pictures, alt, aspectRatio, className, style, }","CrudCard":"/**\n * CrudCard — Presentational card from entity + item + field slots.\n * Navigation: `href` renders a real link (router-aware); `onClick` for other interactions.\n */\nexport declare function CrudCard({ item, entity, onClick, href, titleFields: titleFieldsProp, subtitleFields: subtitleFieldsProp, contentFields: contentFieldsProp, footerFields: footerFieldsProp, showDelete, renderActions, renderOverlay, className, }","ControlledFieldProps":"type ControlledFieldProps, type UncontrolledFieldProps, } from './FieldRegistry';","convertValidationRules":"/**\n\n * Convert validation rules to react-hook-form RegisterOptions\n\n */\nexport declare function convertValidationRules(validation: any): RegisterOptions;","convertPatternToRegex":"/**\n\n * Convert pattern string to RegExp\n\n */\nexport declare function convertPatternToRegex(pattern: string | RegExp | undefined): RegExp | undefined;","ControlledCheckboxField":"/**\n\n * ControlledCheckboxField - Explicit controlled component for checkbox inputs\n\n * Uses standard React Hook Form Controller pattern\n\n */\nexport declare function ControlledCheckboxField(props: ControlledFieldProps): ReactElement;","ControlledCurrencyField":"/**\n * ControlledCurrencyField - Explicit controlled component for currency inputs\n * Uses CurrencyFieldComponent with currency code from field options\n */\nexport declare function ControlledCurrencyField(props: ControlledFieldProps): ReactElement;","ControlledNumberField":"/**\n\n * ControlledNumberField - Explicit controlled component for number inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n */\nexport declare function ControlledNumberField(props: ControlledFieldProps): ReactElement;","ControlledPasswordField":"/**\n\n * ControlledPasswordField - Explicit controlled component for password inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n */\nexport declare function ControlledPasswordField(props: ControlledFieldProps): ReactElement;","ControlledPriceField":"/**\n * ControlledPriceField - Controlled component for structured price (amount, currency, VAT, discount %).\n * Value: { amount, currency?, vatIncluded?, discountPercent? }.\n */\nexport declare function ControlledPriceField(props: ControlledFieldProps): ReactElement;","ControlledPhoneField":"/**\n\n * ControlledPhoneField - Explicit controlled component for phone inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n */\nexport declare function ControlledPhoneField(props: ControlledFieldProps): ReactElement;","ControlledRangeField":"/**\n\n * ControlledRangeField - Explicit controlled component for range inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n */\nexport declare function ControlledRangeField(props: ControlledFieldProps): ReactElement;","ControlledRatingField":"/**\n * ControlledRatingField - Controlled component for star rating inputs\n * Wraps RatingFieldComponent with react-hook-form Controller\n */\nexport declare function ControlledRatingField(props: ControlledFieldProps): ReactElement;","ControlledDurationField":"/**\n * ControlledDurationField - Controlled component for duration (minutes) with preset chips + custom slider\n */\nexport declare function ControlledDurationField(props: ControlledFieldProps): ReactElement;","ControlledSwitchField":"/**\n\n * ControlledSwitchField - Switch with custom value mapping\n\n * Supports uncheckedValue/checkedValue for string values like 'Manual'/'Automatic'\n\n */\nexport declare function ControlledSwitchField(props: ControlledFieldProps): ReactElement;","ControlledTextField":"/**\n * ControlledTextField - Text input controlled by react-hook-form\n *\n * Uses Controller to keep value in sync with RHF state.\n * register() is incompatible with TextFieldComponent's controlled\n * `<Input value={value}>` — default values are overwritten on re-render.\n */\nexport declare function ControlledTextField(props: ControlledFieldProps): ReactElement;","ControlledTextareaField":"/**\n\n * ControlledTextareaField - Explicit controlled component for textarea inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n */\nexport declare function ControlledTextareaField(props: ControlledFieldProps): ReactElement;","ControlledGdprConsentField":"/**\n * ControlledGdprConsentField - GDPR-compliant consent checkbox with automatic label generation\n * Uses standard React Hook Form Controller pattern\n */\nexport declare function ControlledGdprConsentField(props: ControlledFieldProps): ReactElement;","ControlledComboboxField":"/**\n\n * ControlledComboboxField - Explicit controlled component for combobox inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n * Handles dynamic options and creatable mode\n\n */\nexport declare function ControlledComboboxField(props: ControlledFieldProps): ReactElement;","ControlledDropdownField":"/**\n * ControlledDropdownField - Explicit controlled component for select/dropdown inputs\n *\n * Forwards Controller's ref for focus/validation (simple input)\n *\n * Handles dynamic options (function-based) and dependsOn logic\n */\nexport declare function ControlledDropdownField(props: ControlledFieldProps): ReactElement;","ControlledMultiDropdownField":"/**\n * ControlledMultiDropdownField - Explicit controlled component for multiselect inputs\n *\n * Forwards Controller's ref for focus/validation (simple input)\n *\n * Handles dynamic options\n */\nexport declare function ControlledMultiDropdownField(props: ControlledFieldProps): ReactElement;","ControlledRadioField":"/**\n * ControlledRadioField - Explicit controlled component for radio inputs\n *\n * Forwards Controller's ref for focus/validation (simple input)\n *\n * Handles dynamic options\n */\nexport declare function ControlledRadioField(props: ControlledFieldProps): ReactElement;","ControlledReferenceField":"/**\n * ControlledReferenceField — Controlled component for `type: 'reference'` fields.\n *\n * Reads `validation.reference` to determine the collection, auto-fetches items\n * via `useCrudList`, and renders the existing `ReferenceFieldComponent` (Combobox).\n */\nexport declare function ControlledReferenceField(props: ControlledFieldProps): ReactElement;","ControlledYearField":"/**\n * ControlledYearField - Year input using Combobox (type or select)\n * Auto-generates year options from validation.min/max or defaults to 1900-2100\n * Stores value as number, displays as string in combobox\n */\nexport declare function ControlledYearField(props: ControlledFieldProps): ReactElement;","ControlledDocumentField":"/**\n\n * ControlledDocumentField - Explicit controlled component for document uploads\n\n * NO ref forwarding - complex component (forwardRef) handles its own refs\n\n */\nexport declare function ControlledDocumentField(props: ControlledFieldProps): ReactElement;","ControlledFileField":"/**\n\n * ControlledFileField - Explicit controlled component for file uploads\n\n * NO ref forwarding - complex component (forwardRef) handles its own refs\n\n */\nexport declare function ControlledFileField(props: ControlledFieldProps): ReactElement;","ControlledImageField":"/**\n\n * ControlledImageField - Explicit controlled component for image uploads\n\n * NO ref forwarding - complex component (forwardRef) handles its own refs\n\n */\nexport declare function ControlledImageField(props: ControlledFieldProps): ReactElement;","ControlledMultiDocumentField":"/**\n\n * ControlledMultiDocumentField - Explicit controlled component for multiple document uploads\n\n * NO ref forwarding - complex component (forwardRef) handles its own refs\n\n */\nexport declare function ControlledMultiDocumentField(props: ControlledFieldProps): ReactElement;","ControlledMultiFileField":"/**\n\n * ControlledMultiFileField - Explicit controlled component for multiple file uploads\n\n * NO ref forwarding - complex component (forwardRef) handles its own refs\n\n */\nexport declare function ControlledMultiFileField(props: ControlledFieldProps): ReactElement;","ControlledMultiImageField":"/**\n\n * ControlledMultiImageField - Explicit controlled component for multiple image uploads\n\n * NO ref forwarding - complex component (forwardRef) handles its own refs\n\n */\nexport declare function ControlledMultiImageField(props: ControlledFieldProps): ReactElement;","ControlledAddressField":"/**\n\n * ControlledAddressField - Explicit controlled component for address inputs\n\n * NO ref forwarding - complex component handles its own refs\n\n */\nexport declare function ControlledAddressField(props: ControlledFieldProps): ReactElement;","ControlledFieldArrayField":"/**\n * ControlledFieldArrayField — nested object array with per-row sub-fields.\n * Each sub-field is rendered via the field type registry so custom types work automatically.\n */\nexport declare function ControlledFieldArrayField(props: ControlledFieldProps): ReactElement;","ControlledDateField":"/**\n\n * ControlledDateField - Explicit controlled component for date inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n */\nexport declare function ControlledDateField(props: ControlledFieldProps): ReactElement;","ControlledGeoPointField":"/**\n\n * ControlledGeoPointField - Explicit controlled component for geographic coordinates\n\n * NO ref forwarding - complex component handles its own refs\n\n */\nexport declare function ControlledGeoPointField(props: ControlledFieldProps): ReactElement;","ControlledMapField":"/**\n\n * ControlledMapField - Explicit controlled component for map data inputs\n\n * NO ref forwarding - complex component handles its own refs\n\n */\nexport declare function ControlledMapField(props: ControlledFieldProps): ReactElement;","ControlledMultiInputField":"/**\n\n * ControlledMultiInputField - Explicit controlled component for array of text inputs\n\n * NO ref forwarding - complex component handles its own refs\n\n */\nexport declare function ControlledMultiInputField(props: ControlledFieldProps): ReactElement;","ControlledRichTextField":"/**\n\n * ControlledRichTextField - Explicit controlled component for rich text editor\n\n * NO ref forwarding - complex component handles its own refs\n\n */\nexport declare function ControlledRichTextField(props: ControlledFieldProps): ReactElement;","ControlledTimestampField":"/**\n\n * ControlledTimestampField - Explicit controlled component for timestamp inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n */\nexport declare function ControlledTimestampField(props: ControlledFieldProps): ReactElement;","AvatarFieldComponent":"/**\n * AvatarFieldComponent - Input field for avatar URLs with preview\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const AvatarFieldComponent: ComponentType<AvatarFieldComponentProps>;","AvatarFieldComponentProps":"export interface AvatarFieldComponentProps extends Omit<ComponentProps<typeof Input>, 'value' | 'onChange'> {\n /** Field configuration */\n config: EntityField<'avatar'>;\n /** Current value */\n value: string;\n /** Change handler */\n onChange: (value: string) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Translation function */\n t: (key: string, options?: Record<string, any>) => string;\n}","BadgeFieldComponent":"/**\n * BadgeFieldComponent - Input field for badge text with preview\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const BadgeFieldComponent: ComponentType<BadgeFieldComponentProps>;","BadgeFieldComponentProps":"export interface BadgeFieldComponentProps extends Omit<ComponentProps<typeof Input>, 'value' | 'onChange'> {\n /** Field configuration */\n config: EntityField<'badge'>;\n /** Current value */\n value: string;\n /** Change handler */\n onChange: (value: string) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Translation function */\n t: (key: string, options?: Record<string, any>) => string;\n /** Badge variant */\n variant?: 'default' | 'secondary' | 'destructive' | 'outline';\n}","TextFieldComponent":"/**\n * Enhanced TextFieldComponent with modern UX features\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * Features:\n * - Full ARIA compliance\n * - Loading states with spinner\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * - Character counting\n * - Error handling\n * - Required field indicators\n * - Responsive design\n *\n * @param props - TextFieldComponentProps\n * @returns JSX.Element\n */\ndeclare function TextFieldComponent({ label, value, onChange, error, helperText, type, loading, maxLength, showCharCount, required, disabled, className, ref, ...props }","TextFieldComponentProps":"export interface TextFieldComponentProps extends Omit<ComponentProps<typeof Input>, 'value' | 'onChange'> {\n /** Field label */\n label: string;\n /** Current value */\n value?: string;\n /** Change handler */\n onChange: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;\n /** Error message */\n error?: string;\n /** Helper text to display */\n helperText?: string;\n /** Input type (default: text) */\n type?: string;\n /** Loading state */\n loading?: boolean;\n /** Maximum character count */\n maxLength?: number;\n /** Show character count */\n showCharCount?: boolean;\n /** Required field indicator */\n required?: boolean;\n /** Disabled state */\n disabled?: boolean;\n}","NumberFieldComponent":"/**\n * NumberFieldComponent renders a styled number input with validation.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - NumberFieldComponentProps\n * @returns JSX.Element\n */\ndeclare const NumberFieldComponent: ComponentType<NumberFieldComponentProps>;","NumberFieldComponentProps":"export interface NumberFieldComponentProps {\n /** Label for the field */\n label: string;\n /** Current numeric value */\n value?: number;\n /** Change handler */\n onChange: (event: ChangeEvent<HTMLInputElement>) => void;\n /** Whether the field is in error state */\n error?: boolean;\n /** Helper text to display */\n helperText?: string;\n /** Minimum allowed value */\n min?: number;\n /** Maximum allowed value */\n max?: number;\n /** Step value for increments/decrements */\n step?: number;\n /** Whether the field is disabled */\n disabled?: boolean;\n /** Whether the field is required */\n required?: boolean;\n /** Optional className */\n className?: string;\n /** Input mask type: 'currency' (commas + 2 decimals), 'mileage' (commas, no decimals), or 'number' (no formatting) */\n mask?: 'currency' | 'mileage' | 'number';\n}","DateFieldComponent":"/**\n * DateFieldComponent renders a date (or related) input field\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const DateFieldComponent: ComponentType<DateFieldComponentProps>;","DateFieldComponentProps":"export interface DateFieldComponentProps {\n /** Field label */\n label: string;\n /** Value as an ISO string or null */\n value?: string | null;\n /** Change handler emitting an ISO string or null */\n onChange: (date: string | null) => void;\n /** Error message (string = message to display, falsy = no error) */\n error?: string;\n /** Helper text to display */\n helperText?: string;\n /**\n * Input mode: \"date\", \"datetime-local\", \"month\", \"time\", or \"week\".\n * This controls both the input type and the formatting of the displayed value.\n */\n mode?: 'date' | 'datetime-local' | 'month' | 'time' | 'week';\n /** Whether the field is required */\n required?: boolean;\n}","CheckboxFieldComponent":"/**\n * CheckboxFieldComponent renders a labeled checkbox.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - CheckboxFieldComponentProps\n * @returns JSX.Element\n */\ndeclare const CheckboxFieldComponent: ComponentType<CheckboxFieldComponentProps>;","CheckboxFieldComponentProps":"export interface CheckboxFieldComponentProps {\n /** The label for the checkbox - can be a string or ReactNode (e.g., with links) */\n label: string | ReactNode;\n /** Whether the checkbox is checked */\n checked?: boolean;\n /** Change handler for the checkbox */\n onChange?: (event: ChangeEvent<HTMLInputElement>) => void;\n /** Whether the field is required */\n required?: boolean;\n}","ComboboxComponent":"/**\n * ComboboxComponent renders a searchable combobox with autocomplete.\n * Input + Dropdown pattern: user types in input, dropdown appears below.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - ComboboxComponentProps\n * @returns JSX.Element\n */\ndeclare const ComboboxComponent: ComponentType<ComboboxComponentProps>;","ComboboxComponentProps":"export interface ComboboxComponentProps {\n /** Field label */\n label: string;\n /** Current value */\n value?: string;\n /** Available options */\n options: {\n value: string;\n label: string;\n }[];\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Change handler - accepts both event and direct value */\n onChange?: (value: string | ChangeEvent<HTMLSelectElement>) => void;\n /** Blur handler */\n onBlur?: () => void;\n /** Whether the field is required */\n required?: boolean;\n /** Placeholder text */\n placeholder?: string;\n /** Translation namespace for placeholder fallback (default: 'dndev') */\n translationNamespace?: string;\n /** Translation key for placeholder fallback (default: 'actions.select') */\n placeholderKey?: string;\n /** Default placeholder text if translation not found (default: 'Select') */\n placeholderDefault?: string;\n /** Enable creating new values */\n creatable?: boolean;\n /** Label for create option */\n createLabel?: string;\n /** Empty message */\n emptyMessage?: string;\n}","DropdownComponent":"/**\n * DropdownComponent renders a styled select input.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - DropdownComponentProps\n * @returns JSX.Element\n */\ndeclare const DropdownComponent: ComponentType<DropdownComponentProps>;","DropdownComponentProps":"export interface DropdownComponentProps {\n /** Field label */\n label: string;\n /** Current value */\n value?: string | number | boolean;\n /** Available options */\n options: {\n value: string | number | boolean;\n label: string;\n }[];\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Change handler - accepts both event and direct value */\n onChange?: (value: string | ChangeEvent<HTMLSelectElement>) => void;\n /** Blur handler */\n onBlur?: () => void;\n /** Whether the field is required */\n required?: boolean;\n}","MultiDropdownComponent":"/**\n * MultiDropdownComponent renders a multi-select dropdown field using Radix UI's Select.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - MultiDropdownComponentProps\n * @returns JSX.Element\n */\ndeclare const MultiDropdownComponent: ComponentType<MultiDropdownComponentProps>;","MultiDropdownComponentProps":"export interface MultiDropdownComponentProps {\n /** Label for the dropdown */\n label: string;\n /** Current selected values */\n value?: string[];\n /** Options for selection */\n options: {\n value: string | number | boolean;\n label: string;\n }[];\n /** Whether an error exists */\n error?: boolean;\n /** Helper text for the field */\n helperText?: string;\n /** Change handler - accepts both event and direct value */\n onChange: (value: string[] | ChangeEvent<HTMLSelectElement>) => void;\n /** Blur handler */\n onBlur?: () => void;\n /** Whether the field is required */\n required?: boolean;\n /** Additional CSS classes */\n className?: string;\n}","FileFieldComponent":"/**\n * FileFieldComponent - Generic file upload with storage\n * Features: Deferred upload, progress indicator, multiple files, drag-and-drop\n */\ndeclare const FileFieldComponent: import(\"react\").ForwardRefExoticComponent<FileFieldComponentProps & import(\"react\").RefAttributes<FileFieldComponentRef>>;","FileFieldComponentProps":"export interface FileFieldComponentProps {\n /** Field name (for upload registration) */\n name?: string;\n /** Field label */\n label: string;\n /** Current value - FileAsset for single, FileAsset[] for multiple */\n value?: FileAsset | FileAsset[] | null;\n /** Change handler */\n onChange: (value: FileAsset | FileAsset[] | null) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Accept attribute for file input (MIME types or extensions) */\n accept?: string;\n /** Multiple files mode */\n multiple?: boolean;\n /** Maximum number of files (multiple mode only) */\n maxFiles?: number;\n /** Maximum file size in bytes (default: 50MB) */\n maxSize?: number;\n /** Folder path within the storage bucket. Omit to upload to bucket root. */\n storagePath?: string;\n /** Whether the field is required */\n required?: boolean;\n}","ImageFieldComponent":"/**\n * ImageFieldComponent - Image upload with viewer dialog for crop/rotate and drag-to-reorder\n */\ndeclare const ImageFieldComponent: import(\"react\").ForwardRefExoticComponent<ImageFieldComponentProps & import(\"react\").RefAttributes<ImageFieldComponentRef>>;","ImageFieldComponentProps":"export interface ImageFieldComponentProps {\n /** Field name (for upload registration) */\n name?: string;\n /** Field label */\n label: string;\n /** Current value - Picture for single, Picture[] for multiple */\n value?: Picture | Picture[] | null;\n /** Change handler */\n onChange: (value: Picture | Picture[] | null) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Multiple images mode */\n multiple?: boolean;\n /** Maximum number of images (multiple mode only) */\n maxFiles?: number;\n /** Maximum file size in bytes (default: 10MB) */\n maxSize?: number;\n /** Folder path within the storage bucket. Omit to upload to bucket root. */\n storagePath?: string;\n /** Whether the field is required */\n required?: boolean;\n /** Camera capture mode: 'environment' (back), 'user' (front), or undefined (browser decides) */\n capture?: 'environment' | 'user';\n /**\n * WebP processing applied before upload (sizes, ratio, quality, background).\n * Omit for the defaults: 1920x1440 full + 300x225 thumb, 4:3 center crop,\n * quality 0.85 / 0.65, white background. Entity fields set it through\n * `options.fieldSpecific.image`.\n */\n processing?: Omit<ProcessImageOptions, 'crop'>;\n}","DocumentFieldComponent":"/**\n * DocumentFieldComponent - Document-specific upload with storage\n * Features: Restricted to document types, PDF preview, deferred upload\n */\ndeclare const DocumentFieldComponent: import(\"react\").ForwardRefExoticComponent<DocumentFieldComponentProps & import(\"react\").RefAttributes<DocumentFieldComponentRef>>;","DocumentFieldComponentProps":"export interface DocumentFieldComponentProps {\n /** Field name (for upload registration) */\n name?: string;\n /** Field label */\n label: string;\n /** Current value - FileAsset for single, FileAsset[] for multiple */\n value?: FileAsset | FileAsset[] | null;\n /** Change handler */\n onChange: (value: FileAsset | FileAsset[] | null) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Multiple files mode */\n multiple?: boolean;\n /** Maximum number of files (multiple mode only) */\n maxFiles?: number;\n /** Maximum file size in bytes (default: 25MB for documents) */\n maxSize?: number;\n /** Folder path within the storage bucket. Omit to upload to bucket root. */\n storagePath?: string;\n /** Whether the field is required */\n required?: boolean;\n /** Enable PDF preview */\n enablePreview?: boolean;\n}","TextAreaComponent":"/**\n * Enhanced TextAreaComponent with modern UX features\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * Features:\n * - Full ARIA compliance\n * - Auto-resize functionality\n * - Loading states with spinner\n * - Character counting\n * - Error handling\n * - Required field indicators\n * - Responsive design\n *\n * @param props - TextAreaComponentProps\n * @returns JSX.Element\n */\ndeclare const TextAreaComponent: ComponentType<TextAreaComponentProps>;","TextAreaComponentProps":"export interface TextAreaComponentProps extends Omit<ComponentProps<typeof Textarea>, 'value' | 'onChange'> {\n /** Field label */\n label: string;\n /** Current value */\n value?: string;\n /** Change handler */\n onChange: (event: ChangeEvent<HTMLTextAreaElement>) => void;\n /** Error message */\n error?: string;\n /** Helper text to display */\n helperText?: string;\n /** Number of rows (default: 3) */\n rows?: number;\n /** Loading state */\n loading?: boolean;\n /** Maximum character count */\n maxLength?: number;\n /** Show character count */\n showCharCount?: boolean;\n /** Auto-resize based on content */\n autoResize?: boolean;\n /** Required field indicator */\n required?: boolean;\n /** Disabled state */\n disabled?: boolean;\n}","SwitchFieldComponent":"/**\n * SwitchFieldComponent renders a switch field for CRUD forms.\n * Displays field label, delegates switch rendering to Switch component.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - SwitchFieldComponentProps\n * @returns JSX.Element\n */\ndeclare const SwitchFieldComponent: ComponentType<SwitchFieldComponentProps>;","SwitchFieldComponentProps":"export interface SwitchFieldComponentProps {\n /** Field label */\n label: string;\n /** Whether the toggle is checked */\n checked?: boolean;\n /** Change handler */\n onChange?: (event: ChangeEvent<HTMLInputElement>) => void;\n /** Label for unchecked state (e.g., \"Manual\") */\n uncheckedLabel?: string;\n /** Label for checked state (e.g., \"Automatic\") */\n checkedLabel?: string;\n /** Helper text */\n helperText?: string;\n}","RadioFieldComponent":"declare const RadioFieldComponent: ComponentType<RadioFieldComponentProps>;","RadioFieldComponentProps":"export interface RadioFieldComponentProps {\n /** Field label */\n label: string;\n /** Selected value */\n value?: string;\n /** Change handler - accepts both event and direct value */\n onChange: (value: string | ChangeEvent<HTMLInputElement>) => void;\n /** Available radio options */\n options: RadioOption[];\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Whether the field is required */\n required?: boolean;\n}","RangeFieldComponent":"/**\n * RangeFieldComponent renders a slider input with optional value display\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - RangeFieldComponentProps\n * @returns JSX.Element\n */\ndeclare const RangeFieldComponent: ComponentType<RangeFieldComponentProps>;","RangeFieldComponentProps":"export interface RangeFieldComponentProps {\n /** Label for the field */\n label: string;\n /** Current numeric value */\n value?: number;\n /** Change handler - accepts both event and direct value */\n onChange: (value: number | ChangeEvent<HTMLInputElement>) => void;\n /** Whether the field is in error state */\n error?: boolean;\n /** Helper text to display */\n helperText?: string;\n /** Minimum allowed value */\n min?: number;\n /** Maximum allowed value */\n max?: number;\n /** Step value for increments */\n step?: number;\n /** Whether the field is disabled */\n disabled?: boolean;\n /** Whether the field is required */\n required?: boolean;\n /** Show value label */\n showValue?: boolean;\n}","RatingFieldComponent":"/**\n * RatingFieldComponent renders a star rating input\n *\n * Used by the built-in entity field type `rating`. Supports whole-number input\n * (1–max), optional fractional display, and optional numeric value display.\n *\n * @see Entity field type: `rating` (registered in registerBuiltinFieldTypes)\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const RatingFieldComponent: ComponentType<RatingFieldComponentProps>;","RatingFieldComponentProps":"export interface RatingFieldComponentProps {\n /** Label for the field */\n label: string;\n /** Current rating value (1-5) */\n value?: number;\n /** Change handler */\n onChange: (value: number) => void;\n /** Whether the field is in error state */\n error?: boolean;\n /** Helper text to display */\n helperText?: string;\n /** Maximum rating value */\n max?: number;\n /** Whether the field is disabled */\n disabled?: boolean;\n /** Whether the field is required */\n required?: boolean;\n /** Read-only mode (display only) */\n readonly?: boolean;\n /** Show numeric value next to stars */\n showValue?: boolean;\n}","DurationFieldComponent":"/**\n * DurationFieldComponent - Preset chips + Custom slider for duration (minutes)\n *\n * Used by the built-in entity field type `duration`.\n *\n * @see Entity field type: `duration` (registered in registerBuiltinFieldTypes)\n */\ndeclare const DurationFieldComponent: ComponentType<DurationFieldComponentProps>;","DurationFieldComponentProps":"export interface DurationFieldComponentProps {\n /** Label for the field */\n label: string;\n /** Current value in minutes */\n value?: number;\n /** Change handler (minutes) */\n onChange: (value: number) => void;\n /** Whether the field is in error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Whether the field is disabled */\n disabled?: boolean;\n /** Whether the field is required */\n required?: boolean;\n /** Read-only mode (display only) */\n readonly?: boolean;\n /** Min minutes for custom slider (default 0) */\n min?: number;\n /** Max minutes for custom slider (default 480 = 8h) */\n max?: number;\n /** Step for custom slider (default 5) */\n step?: number;\n /**\n * Translation function for preset labels (e.g. t('crud:duration.30m')).\n * Receives i18n key; return value is the chip label.\n */\n t?: (key: string, options?: Record<string, unknown>) => string;\n}","DURATION_PRESETS":"/** Preset durations in minutes */\nexport declare const DURATION_PRESETS: readonly [15, 30, 45, 60, 90, 120, 150, 180];","PhoneNumberComponent":"/**\n * PhoneNumberComponent renders a single phone number input with country code selector.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const PhoneNumberComponent: ComponentType<PhoneNumberComponentProps>;","PhoneNumberComponentProps":"export interface PhoneNumberComponentProps {\n /** Field label */\n label: string;\n /** Current phone number value (full number with country code) */\n value?: string;\n /** Change handler */\n onChange: (event: ChangeEvent<HTMLInputElement>) => void;\n /** Error message */\n error?: string;\n /** Helper text */\n helperText?: string;\n /** Required field indicator */\n required?: boolean;\n /** Disabled state */\n disabled?: boolean;\n /** Default country code (e.g., 'FR' for +33) */\n defaultCountry?: string;\n /** Whether to show country flags */\n showFlags?: boolean;\n /** Preferred country codes to show at the top (e.g., ['FR', 'US', 'GB']) */\n preferredCountries?: string[];\n /** Custom list of country codes to show (if provided, only these countries are shown) */\n countries?: string[];\n}","GeoPointFieldComponent":"/**\n * GeoPointFieldComponent renders latitude and longitude input fields\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const GeoPointFieldComponent: ComponentType<GeoPointFieldComponentProps>;","GeoPointFieldComponentProps":"export interface GeoPointFieldComponentProps {\n /** Field label */\n label: string;\n /** Current coordinates */\n value?: GeoPoint;\n /** Change handler - accepts both event and direct value */\n onChange: (point: GeoPoint | ChangeEvent<HTMLInputElement>) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Whether the field is disabled */\n disabled?: boolean;\n /** Whether the field is required */\n required?: boolean;\n}","GeoPoint":"export interface GeoPoint {\n lat: number;\n lng: number;\n}","MapFieldComponent":"declare const MapFieldComponent: ComponentType<MapFieldComponentProps>;","MapFieldComponentProps":"export interface MapFieldComponentProps {\n /** Field label */\n label: string;\n /** Map data as an object */\n value?: Record<string, any>;\n /** Change handler - accepts both event and direct value */\n onChange: (value: Record<string, any> | ChangeEvent<HTMLInputElement>) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Whether the field is required */\n required?: boolean;\n}","TimestampFieldComponent":"declare const TimestampFieldComponent: ComponentType<TimestampFieldComponentProps>;","TimestampFieldComponentProps":"export interface TimestampFieldComponentProps {\n /** Field label */\n label: string;\n /** Current Date value or null */\n value?: Date | null;\n /** Change handler - accepts both event and direct value */\n onChange: (date: Date | null | ChangeEvent<HTMLInputElement>) => void;\n /** Error message */\n error?: string;\n /** Helper text */\n helperText?: string;\n /** Mode for underlying date field (defaults to \"datetime-local\") */\n mode?: 'datetime-local' | 'date';\n /** Whether the field is required */\n required?: boolean;\n}","MultiInputTextFieldComponent":"declare const MultiInputTextFieldComponent: ComponentType<MultiInputTextFieldComponentProps>;","MultiInputTextFieldComponentProps":"export interface MultiInputTextFieldComponentProps {\n /** Label for the input field */\n label: string;\n /** Array of current text entries */\n value: string[];\n /** Handler for value changes - accepts both event and direct value */\n onChange: (value: string[] | ChangeEvent<HTMLInputElement>) => void;\n /** Optional classname for styling */\n className?: string;\n /** Whether the field is required */\n required?: boolean;\n}","ButtonFieldComponent":"declare const ButtonFieldComponent: ComponentType<ButtonFieldComponentProps>;","ButtonFieldComponentProps":"export interface ButtonFieldComponentProps {\n /** The button label */\n label: string;\n /** The button type: submit, reset, or button */\n type: 'submit' | 'reset' | 'button';\n /** Optional click handler */\n onClick?: () => void;\n /** Button variant */\n variant?: ButtonVariant;\n /** Disabled state */\n disabled?: boolean;\n}","HiddenFieldComponent":"declare const HiddenFieldComponent: ComponentType<HiddenFieldComponentProps>;","HiddenFieldComponentProps":"export interface HiddenFieldComponentProps {\n name: string;\n value: string;\n}","PasswordFieldComponent":"/**\n * PasswordFieldComponent renders a styled password input.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - PasswordFieldComponentProps\n * @returns JSX.Element\n */\ndeclare const PasswordFieldComponent: ComponentType<PasswordFieldComponentProps>;","PasswordFieldComponentProps":"export interface PasswordFieldComponentProps extends Omit<ComponentProps<typeof PasswordInput>, 'value' | 'onChange'> {\n /** Field label */\n label: string;\n /** Current value */\n value?: string;\n /** Change handler */\n onChange: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;\n /** Error state */\n error?: boolean;\n /** Helper text to display */\n helperText?: string;\n}","AddressFieldComponent":"/**\n * Address field component with Google Places autocomplete (new API).\n *\n * Modes:\n * - Manual (no API key or `enableGoogleMaps=false`): free-text via Combobox `creatable`.\n * - Google: AutocompleteSuggestion + Place.fetchFields() with Geocoder fallback for coords.\n *\n * Env vars:\n * - Vite: VITE_GOOGLE_MAPS_API_KEY\n * - Next.js: NEXT_PUBLIC_GOOGLE_MAPS_API_KEY\n */\ndeclare const AddressFieldComponent: ({ label, value, onChange, enableGoogleMaps, extractDistrictCode, error, helperText, required, }","AddressFieldComponentProps":"/**\n * Address field component props\n */\nexport interface AddressFieldComponentProps {\n /** Field label */\n label: string;\n /** Address value with formatted address and coordinates */\n value?: {\n formatted_address: string;\n latitude?: number;\n longitude?: number;\n [key: string]: any;\n };\n /** Change handler */\n onChange: (value: any) => void;\n /**\n * Whether to enable Google Maps autocomplete (default: false).\n * Requires env var: VITE_GOOGLE_MAPS_API_KEY (Vite) or NEXT_PUBLIC_GOOGLE_MAPS_API_KEY (Next.js).\n */\n enableGoogleMaps?: boolean;\n /**\n * Whether to extract district_code (last 2 digits of postal code, \"92\" prefix → 92)\n * onto the address value.\n */\n extractDistrictCode?: boolean;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Whether the field is required */\n required?: boolean;\n}","CurrencyFieldComponent":"/**\n * Currency field with locale-aware formatting\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const CurrencyFieldComponent: ComponentType<CurrencyFieldComponentProps>;","CurrencyFieldComponentProps":"export interface CurrencyFieldComponentProps {\n /** Field label */\n label: string;\n /** Current value (number in cents/smallest unit) */\n value?: number;\n /** Change handler */\n onChange: (event: ChangeEvent<HTMLInputElement>) => void;\n /** Currency code (e.g., 'EUR', 'USD') */\n currency?: string;\n /** Locale for formatting (e.g., 'fr-FR', 'en-US') */\n locale?: string;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Required field */\n required?: boolean;\n /** Disabled state */\n disabled?: boolean;\n /** Placeholder */\n placeholder?: string;\n}","PriceFieldComponent":"declare const PriceFieldComponent: ComponentType<PriceFieldComponentProps>;","PriceFieldComponentProps":"export interface PriceFieldComponentProps {\n /** Field label (for amount) */\n label: string;\n /** Current value */\n value?: PriceValue | null;\n /** Change handler */\n onChange: (value: PriceValue) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Required */\n required?: boolean;\n /** Disabled */\n disabled?: boolean;\n /** Placeholder for amount */\n placeholder?: string;\n /** Default currency when value.currency is unset */\n defaultCurrency?: string;\n /** Label for collapsible section */\n optionsTitle?: string;\n /** Allowed currencies in the select; when set, only these are shown (e.g. ['EUR'] for single-currency) */\n currencies?: string[];\n}","PriceValue":"export interface PriceValue {\n amount: number | null;\n currency?: string;\n vatIncluded?: boolean;\n discountPercent?: number;\n}","RichTextComponent":"/**\n * RichTextComponent - WYSIWYG editor with Tiptap\n * Falls back to textarea if Tiptap is not available\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const RichTextComponent: ComponentType<RichTextComponentProps>;","RichTextComponentProps":"/**\n * Rich Text Field Component Props\n */\nexport interface RichTextComponentProps {\n /** Field label */\n label: string;\n /** Current HTML value */\n value?: string;\n /** Change handler */\n onChange: (event: ChangeEvent<HTMLTextAreaElement>) => void;\n /** Error state */\n error?: string;\n /** Helper text */\n helperText?: string;\n /** Required field */\n required?: boolean;\n /** Disabled state */\n disabled?: boolean;\n /** Placeholder */\n placeholder?: string;\n /** Optional className */\n className?: string;\n}","GdprConsentFieldComponent":"/**\n * GDPR Consent Field Component - Renders a consent checkbox with automatic label generation.\n * Opens privacy policy and terms in Sheet with iframe when links are clicked.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - GdprConsentFieldComponentProps\n * @returns JSX.Element\n */\ndeclare const GdprConsentFieldComponent: ComponentType<GdprConsentFieldComponentProps>;","GdprConsentFieldComponentProps":"export interface GdprConsentFieldComponentProps {\n /** Whether the checkbox is checked */\n checked?: boolean;\n /** Change handler for the checkbox */\n onChange?: (event: ChangeEvent<HTMLInputElement>) => void;\n /** Whether the field is required */\n required?: boolean;\n /** Path to privacy policy page (default: '/legal/privacy') */\n privacyPolicyPath?: string;\n /** Path to terms of use page (default: '/legal/terms') */\n termsPath?: string;\n}","TextFieldDisplay":"/**\n * Enhanced TextFieldDisplay with modern UX features\n *\n * Features:\n * - Smart formatting based on field type\n * - Copy to clipboard functionality\n * - Truncation with tooltips\n * - Badge display option\n * - Loading states\n * - Responsive design\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const TextFieldDisplay: ComponentType<TextFieldDisplayProps>;","BadgeFieldDisplay":"/**\n * BadgeFieldDisplay - Displays boolean/select values as badges\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const BadgeFieldDisplay: React.ComponentType<BadgeFieldDisplayProps>;","AvatarFieldDisplay":"/**\n * AvatarFieldDisplay - Displays image values as avatars\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const AvatarFieldDisplay: React.ComponentType<AvatarFieldDisplayProps>;","LinkFieldDisplay":"/**\n * LinkFieldDisplay - Displays URL/email/tel values as clickable links\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const LinkFieldDisplay: ComponentType<LinkFieldDisplayProps>;","DateFieldDisplay":"/**\n * DateFieldDisplay - Displays date values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const DateFieldDisplay: ComponentType<DateFieldDisplayProps>;","NumberFieldDisplay":"/**\n * NumberFieldDisplay - Displays number values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const NumberFieldDisplay: ComponentType<NumberFieldDisplayProps>;","PhoneNumberDisplay":"/**\n * PhoneNumberDisplay - Displays phone number values as clickable links\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const PhoneNumberDisplay: ComponentType<PhoneNumberDisplayProps>;","TextAreaDisplay":"/**\n * TextAreaDisplay - Displays textarea values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const TextAreaDisplay: ComponentType<TextAreaDisplayProps>;","RichTextDisplay":"/**\n * RichTextDisplay - Displays rich text/HTML content in read-only mode\n *\n * Renders HTML with styling that matches Tiptap editor output.\n * Safe to use with HTML from Tiptap (sanitized by Tiptap).\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const RichTextDisplay: ComponentType<RichTextDisplayProps>;","CheckboxFieldDisplay":"/**\n * CheckboxFieldDisplay - Displays checkbox/boolean values as badges\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const CheckboxFieldDisplay: React.ComponentType<CheckboxFieldDisplayProps>;","DropdownDisplay":"/**\n * DropdownDisplay - Displays select values as badges\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const DropdownDisplay: React.ComponentType<DropdownDisplayProps>;","MultiDropdownDisplay":"/**\n * MultiDropdownDisplay - Displays multiselect values as multiple badges\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const MultiDropdownDisplay: ComponentType<MultiDropdownDisplayProps>;","MultiInputTextFieldDisplay":"/**\n * MultiInputTextFieldDisplay - Displays array values as multiple badges\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const MultiInputTextFieldDisplay: ComponentType<MultiInputTextFieldDisplayProps>;","RadioFieldDisplay":"/**\n * RadioFieldDisplay - Displays radio values as badges\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const RadioFieldDisplay: ComponentType<RadioFieldDisplayProps>;","RangeFieldDisplay":"/**\n * RangeFieldDisplay - Displays range values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const RangeFieldDisplay: ComponentType<RangeFieldDisplayProps>;","FileFieldDisplay":"/**\n * FileFieldDisplay - Displays file values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const FileFieldDisplay: React.ComponentType<FileFieldDisplayProps>;","ImageFieldDisplay":"/**\n * ImageFieldDisplay - Displays image values as avatars\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const ImageFieldDisplay: ComponentType<ImageFieldDisplayProps>;","GeoPointFieldDisplay":"/**\n * GeoPointFieldDisplay - Displays geopoint values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const GeoPointFieldDisplay: ComponentType<GeoPointFieldDisplayProps>;","MapFieldDisplay":"/**\n * MapFieldDisplay - Displays map values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const MapFieldDisplay: ComponentType<MapFieldDisplayProps>;","ReferenceFieldDisplay":"/**\n * ReferenceFieldDisplay - Displays reference values as badges\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const ReferenceFieldDisplay: ComponentType<ReferenceFieldDisplayProps>;","TimestampFieldDisplay":"/**\n * TimestampFieldDisplay - Displays timestamp values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const TimestampFieldDisplay: ComponentType<TimestampFieldDisplayProps>;","HiddenFieldDisplay":"/**\n * HiddenFieldDisplay - Hidden fields are not displayed\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const HiddenFieldDisplay: ComponentType<HiddenFieldDisplayProps>;","ButtonFieldDisplay":"/**\n * ButtonFieldDisplay - Button fields are not displayed in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const ButtonFieldDisplay: React.ComponentType<ButtonFieldDisplayProps>;","useFormStore":"/**\n * Form store for managing form submission states and draft persistence\n *\n * @example\n * ```tsx\n * const formId = useId();\n * const isLoading = useFormStore((s) => s.isLoading(formId));\n * const status = useFormStore((s) => s.getStatus(formId));\n * ```\n */\nexport declare const useFormStore: import(\"zustand\").UseBoundStore<import(\"zustand\").StoreApi<FormStoreState & FormStoreActions & import(\"@donotdev/stores\").DoNotDevStore>>;","useFormStatus":"/**\n * Hook to get form status\n */\nexport declare const useFormStatus: (formId: string) => FormStatus;","useFormLoading":"/**\n * Hook to check if form is loading\n */\nexport declare const useFormLoading: (formId: string) => boolean;","useUploadProgress":"/**\n * Hook to get upload progress\n */\nexport declare const useUploadProgress: (formId: string) => number;","useFormError":"/**\n * Hook to get form error\n */\nexport declare const useFormError: (formId: string) => string | null;","useFormIsDirty":"/**\n * Hook to check if form is dirty\n */\nexport declare const useFormIsDirty: (formId: string) => boolean;","useHasDirtyForms":"/**\n * Hook to check if any form is dirty\n */\nexport declare const useHasDirtyForms: () => boolean;","useUploadStore":"/**\n * Upload store for managing file upload progress\n *\n * @example\n * ```tsx\n * const formId = useId();\n * const totalProgress = useUploadStore((s) => s.getTotalProgress(formId));\n * const isUploading = useUploadStore((s) => s.isUploading(formId));\n * ```\n */\nexport declare const useUploadStore: import(\"zustand\").UseBoundStore<import(\"zustand\").StoreApi<UploadStoreState & UploadStoreActions & import(\"@donotdev/stores\").DoNotDevStore>>;","useTotalProgress":"/**\n * Hook to get total upload progress for a form\n */\nexport declare const useTotalProgress: (formId: string) => number;","useIsUploading":"/**\n * Hook to check if any field is currently uploading\n */\nexport declare const useIsUploading: (formId: string) => boolean;","useFieldProgress":"/**\n * Hook to get upload progress for a specific field\n */\nexport declare const useFieldProgress: (formId: string, fieldName: string) => number;","useFieldUploadStatus":"/**\n * Hook to get upload status for a specific field\n */\nexport declare const useFieldUploadStatus: (formId: string, fieldName: string) => UploadStatus;","useFieldFiles":"/**\n * Hook to get per-file entries for a specific field.\n * Returns the stored array reference directly (stable when unchanged).\n * Falls back to EMPTY_FILES constant to avoid re-renders.\n */\nexport declare const useFieldFiles: (formId: string, fieldName: string) => FileEntry[];","generateStandaloneFormId":"/** Generate a synthetic formId for standalone mode (no EntityFormRenderer) */\nexport declare function generateStandaloneFormId(): string;"}
1
+ {"FunctionsAdapter":"/**\n * Functions backend adapter\n * Works with any collection dynamically (collection name passed per operation)\n * Assumes Functions are named: `get_${collection}`, `create_${collection}`, etc.\n *\n * All backends go through ICallableProvider. If none configured, falls back to FirebaseCallableProvider.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare class FunctionsAdapter implements ICrudAdapter {\n readonly serverSideOnly = true;\n /**\n * Resolve ICallableProvider from provider registry.\n * Consumer must configure via configureProviders({ callable: adapter }).\n */\n private getCallable;\n /**\n * Get callable function invoker. Always uses ICallableProvider (configured or Firebase fallback).\n */\n private getCallableFn;\n get<T>(collectionName: string, id: string, schema: dndevSchema<unknown>): Promise<T | null>;\n set<T>(collectionName: string, id: string, data: T, schema: dndevSchema<T>): Promise<Record<string, unknown>>;\n update<T>(collectionName: string, id: string, data: Partial<T>): Promise<Record<string, unknown>>;\n delete(collectionName: string, id: string): Promise<void>;\n /**\n * Bulk transactional operation via the `bulk_${collection}` callable.\n *\n * @description Delegates atomicity, per-op ACL, and row validation to the\n * server-side `bulk_${collection}` callable registered by\n * `createCrudFunctions`. This client adapter is a thin pass-through:\n *\n * 1. `detectBulkCollisions(ops)` — rejects ambiguous payloads (same id in\n * two buckets) before any network call. The thrown\n * {@link BulkCollisionError} is not wrapped so callers can `instanceof`\n * it.\n * 2. Empty bulk is a no-op — if all three arrays are empty/absent we return\n * a zeroed {@link BulkResult} without issuing a callable. Matches the\n * server's empty-bulk contract and avoids a needless round-trip.\n * 3. Validates the wire body with {@link BulkRequestSchema} before sending\n * — malformed payloads fail loud locally.\n * 4. Invokes the callable via the provider registry (identical path to\n * `add` / `update` / `delete`).\n * 5. Validates the server reply with {@link validateBulkOutcome} — a\n * malformed server response surfaces as a clean error, never as a\n * silent zeroed result.\n * 6. Any other failure is wrapped via {@link wrapCrudError} to preserve\n * parity with sibling methods on this adapter.\n *\n * @param collection - Target collection (drives the callable name).\n * @param ops - Bulk operations to perform. All buckets are optional.\n * @param _schema - Intentionally unused — the server re-validates each\n * insert against the authoritative `createSchema` bound to the entity.\n * Matches how `add()` delegates validation server-side.\n * @param _options - Intentionally unused at the adapter layer. Per-op audit\n * and rate-limit live in the service layer.\n * @returns The server-echoed ids, order-preserved per bucket.\n *\n * @throws {BulkCollisionError} Propagated unwrapped when the payload carries\n * the same id in two mutually-exclusive buckets.\n * @throws {DoNotDevError} Wrapped via {@link wrapCrudError} for any\n * callable-side failure or malformed server response.\n *\n * @example\n * ```typescript\n * const adapter = new FunctionsAdapter();\n * const result = await adapter.bulk<Event>('events', {\n * inserts: [{ title: 'A' }, { title: 'B' }],\n * updates: [{ id: 'e1', patch: { title: 'renamed' } }],\n * deletes: ['e2'],\n * });\n * // result.insertedIds: ['evt_…', 'evt_…']\n * // result.updatedIds: ['e1']\n * // result.deletedIds: ['e2']\n * ```\n */\n bulk<T extends Record<string, unknown>>(collection: string, ops: BulkOperations<T>, _schema?: dndevSchema<T>, _options?: CrudOperationOptions): Promise<BulkResult>;\n add<T>(collectionName: string, data: T, schema?: dndevSchema<T>): Promise<{\n id: string;\n data: Record<string, unknown>;\n }>;\n query<T>(collectionName: string, options: FunctionsQueryOptions, schema: dndevSchema<unknown>, schemaType?: ListSchemaType): Promise<PaginatedQueryResult<T>>;\n subscribe<T>(): () => void;\n subscribeToCollection<T>(): () => void;\n}","FunctionsQueryOptions":"/**\n * Query options for Functions queries\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface FunctionsQueryOptions {\n where?: Array<{\n field: string;\n operator: string;\n value: unknown;\n }>;\n orderBy?: Array<{\n field: string;\n direction?: 'asc' | 'desc';\n }>;\n limit?: number;\n /** Cursor from previous page (QueryOptions uses startAfter; server uses startAfterId) */\n startAfter?: string | null;\n startAfterId?: string;\n}","getCrudService":"/**\n * Get or create CrudService singleton instance\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const getCrudService: () => CrudService;","useCrudStore":"/**\n * CRUD store hook for accessing CRUD state and actions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const useCrudStore: import(\"zustand\").UseBoundStore<import(\"zustand\").StoreApi<CrudState & CrudActions & import(\"@donotdev/stores\").DoNotDevStore>>;","CrudServiceInterface":"/**\n * CRUD Service Interface\n * Complete interface for CRUD operations with caching and optimistic updates\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface CrudServiceInterface {\n /** Initialize the CRUD adapter from the provider registry. Call configureProviders() first. */\n initialize(): Promise<void>;\n /** Attach the configured CRUD provider synchronously (safe during render). */\n attachProvider(): boolean;\n /** Server render: list queries run with `client` read as the holder of `accessToken`. */\n bindRequestAccessToken(client: object, accessToken: string): boolean;\n setStore(store: CrudStoreApi): void;\n /** Schema accepts unknown since OperationSchemas stores dndevSchema<unknown>. T is for return type. */\n getListQueryOptions<T>(collection: string, queryOptions: QueryOptions, schema: dndevSchema<unknown>, cacheOptions?: CacheOptions, schemaType?: ListSchemaType): CrudListQuery<T>;\n /** Schema accepts unknown since OperationSchemas stores dndevSchema<unknown>. T is for return type. */\n getDocQueryOptions<T>(collection: string, id: string, schema: dndevSchema<unknown>, cacheOptions?: CacheOptions): CrudDocQuery<T>;\n get<T>(collection: string, id: string, schema: dndevSchema<T>, options?: CacheOptions): Promise<T | null>;\n query<T>(collection: string, options: QueryOptions, schema: dndevSchema<T>, cacheOptions?: CacheOptions, schemaType?: ListSchemaType): Promise<PaginatedQueryResult<T>>;\n set<T>(collection: string, id: string, data: T, schema: dndevSchema<T>, options?: MutationOptions): Promise<Record<string, unknown>>;\n update<T>(collection: string, id: string, data: Partial<T>, schema?: dndevSchema<T>, options?: MutationOptions): Promise<Record<string, unknown>>;\n /** Logical delete (CRUD rule 3): the update `{ status: 'deleted' }`; `delete` is the hard delete. */\n remove(collection: string, id: string): Promise<void>;\n delete(collection: string, id: string, options?: MutationOptions): Promise<void>;\n add<T extends Record<string, unknown>>(collection: string, data: CrudCreateInput<T>, schema: dndevSchema<T>, options?: MutationOptions): Promise<string>;\n /**\n * Bulk write — one adapter call, one audit, one toast. Partial success: rows\n * that fail are returned in `BulkResult.failed`; written rows stay written.\n *\n * @param schemas - `create` validates inserts + resolves their PII fields;\n * `update` resolves PII fields on update patches.\n * @throws {Error} {@link BulkCollisionError} when the payload carries an id\n * in two mutually-exclusive buckets (detected before any side effect).\n *\n * Rows for bulk operations are always treated as object records so PII\n * encryption, cache merging and adapter mapping can rely on key/value\n * semantics.\n */\n bulk<T extends Record<string, unknown>>(collection: string, ops: BulkOperations<T>, schemas: {\n create?: dndevSchema<T>;\n draft?: dndevSchema<T>;\n update?: dndevSchema<T>;\n }, options?: MutationOptions): Promise<BulkResult>;\n /**\n * Cross-collection bulk write. Legacy execution is ordered but not atomic.\n * Atomic execution requires an adapter capability and rejects without writing when unsupported.\n *\n * @throws {BulkCollisionError} Id collision within a single batch.\n * @throws {BulkAcrossCycleError} `dependsOn` contains a cycle.\n */\n bulkAcross(batches: BulkAcrossBatch[], options?: BulkAcrossOptions): Promise<BulkAcrossResult>;\n subscribe<T>(collection: string, id: string, callback: (data: T | null, error?: Error) => void, schema: dndevSchema<T>): () => void;\n subscribeToCollection<T>(collection: string, options: QueryOptions, callback: (data: T[], error?: Error) => void, schema: dndevSchema<T>): () => void;\n /** Add with optimistic update - shows item immediately, confirms/rolls back after server */\n addOptimistic<T extends {\n id?: string;\n }>(collection: string, data: T, schema: dndevSchema<T>, options?: MutationOptions): Promise<T & {\n id: string;\n }>;\n /** Update with optimistic update - shows change immediately, confirms/rolls back after server */\n updateOptimistic<T>(collection: string, id: string, data: Partial<T>, schema: dndevSchema<T>, options?: MutationOptions): Promise<T>;\n /** Delete with optimistic update - hides item immediately, confirms/restores after server */\n deleteOptimistic(collection: string, id: string, options?: MutationOptions): Promise<void>;\n /** Invalidate all cached queries for a collection */\n invalidateCollection(collection: string): Promise<void>;\n /**\n * Cache a row stored by a write that did not go through this service (an app\n * RPC, a server function): the document cache and every cached list holding it\n * take the row as stored, without a refetch.\n * @param row - The full row as the backend returned it, read-filtered for the requester\n * @since 0.3.0\n */\n cacheStored<T extends {\n id: string;\n }>(collection: string, row: T): void;\n /** Get the shared QueryClient instance from @donotdev/core */\n getQueryClient(): QueryClient;\n}","CrudState":"/**\n * CRUD store state interface\n * Note: No data field - TanStack Query owns data, CrudStore only tracks optimistic ops\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface CrudState {\n crudService: CrudServiceInterface | null;\n /** Global flag to hide success toasts (set from app config) */\n hideSuccessToasts: boolean;\n collections: Record<string, {\n loading: boolean;\n error: Error | null;\n lastUpdated: number;\n /** Optimistic operation metadata keyed by document id */\n optimistic: Record<string, OptimisticMeta>;\n /** UI state: filters and favorites toggle (persists across navigation) */\n ui: CollectionUIState;\n }>;\n}","CrudActions":"/**\n * CRUD store actions interface\n * Note: No setData/getData - TanStack Query owns data, CrudStore only tracks optimistic ops\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface CrudActions {\n setCrudService: (service: CrudServiceInterface) => void;\n /** Set global flag to hide success toasts (called from app bootstrap) */\n setHideSuccessToasts: (hide: boolean) => void;\n setLoading: (collection: string, loading: boolean) => void;\n setError: (collection: string, error: Error | null) => void;\n clearCollection: (collection: string) => void;\n clearError: (collection: string) => void;\n setFilters: (collection: string, filters: FilterState) => void;\n setShowFavoritesOnly: (collection: string, show: boolean) => void;\n setPageSize: (collection: string, pageSize: number) => void;\n getFilters: (collection: string) => FilterState;\n /**\n * URL sync of a filter state (`f_*` params, see CRUD.md \"URL sync\"). Default: a key\n * that is an entity collection (defineEntity) syncs with that entity's fields; any\n * other key (an `EntityFilters` `filterKey`) does not. `entity` opts a key in\n * (its fields decode the params), `null` opts it out.\n * @since 0.3.0\n */\n setFilterUrlSync: (key: string, entity: AnyEntity | null) => void;\n /**\n * Re-read a URL-synced filter state from the current URL (no-op for other keys, on\n * the server, or while this page's own URL write is pending).\n * @since 0.3.0\n */\n syncFiltersFromUrl: (key: string) => void;\n getShowFavoritesOnly: (collection: string) => boolean;\n getPageSize: (collection: string) => number | undefined;\n /** Add item optimistically (before server confirms) */\n addOptimistic: (collection: string, tempId: string, data: unknown) => void;\n /** Confirm optimistic add - replace temp item with real item */\n confirmOptimistic: (collection: string, tempId: string, realId: string, realData: unknown) => void;\n /** Reject optimistic add - remove temp item */\n rejectOptimistic: (collection: string, tempId: string) => void;\n /** Update item optimistically */\n updateOptimistic: (collection: string, id: string, data: unknown, originalData: unknown) => void;\n /** Confirm optimistic update */\n confirmUpdate: (collection: string, id: string) => void;\n /** Reject optimistic update - restore original data */\n rejectUpdate: (collection: string, id: string) => void;\n /** Delete item optimistically (hide but keep for rollback) */\n deleteOptimistic: (collection: string, id: string, originalData: unknown) => void;\n /** Confirm optimistic delete - remove completely */\n confirmDelete: (collection: string, id: string) => void;\n /** Reject optimistic delete - restore item */\n rejectDelete: (collection: string, id: string) => void;\n getLoading: (collection: string) => boolean;\n getError: (collection: string) => Error | null;\n /** Check if item is optimistic (not yet confirmed by server) */\n isOptimistic: (collection: string, id: string) => boolean;\n /** Get optimistic status for an item */\n getOptimisticStatus: (collection: string, id: string) => OptimisticStatus | null;\n /** Get optimistic data for an item (for display during pending state) */\n getOptimisticData: (collection: string, id: string) => unknown | null;\n}","OptimisticStatus":"/** Union of optimistic operation status values: 'pending' | 'confirmed' | 'failed'. */\nexport type OptimisticStatus = (typeof OPTIMISTIC_STATUSES)[keyof typeof OPTIMISTIC_STATUSES];","OptimisticMeta":"/**\n * Optimistic operation metadata\n * Contains both original data (for rollback) and current data (for display)\n */\nexport interface OptimisticMeta {\n tempId: string;\n originalData: unknown | null;\n /** Current optimistic data to display (the new/updated value) */\n optimisticData: unknown;\n status: OptimisticStatus;\n operation: CrudOperation;\n}","CrudOperation":"/** Union of CRUD mutation operation kinds: 'add' | 'update' | 'set' | 'delete'. */\nexport type CrudOperation = (typeof CRUD_OPERATION)[keyof typeof CRUD_OPERATION];","CrudStoreApi":"/**\n * Store API type for CrudService - typed instead of any\n * Used by CrudService to type the store it receives\n */\nexport type CrudStoreApi = {\n getState: () => CrudState & CrudActions;\n}","CacheOptions":"/**\n * Cache options for read operations\n */\nexport interface CacheOptions {\n /** Bypass cache and fetch directly from adapter */\n noCache?: boolean;\n /** Custom stale time in ms (default: Infinity) */\n staleTime?: number;\n}","MutationOptions":"/**\n * Options for mutation operations (add, update, delete, set)\n */\nexport interface MutationOptions {\n /**\n * Override success toast behavior for this operation\n * - true: always show toast\n * - false: never show toast\n * - undefined: use global setting (hideSuccessToasts)\n */\n showSuccessToast?: boolean;\n /**\n * The collection's read schema (`useCrud` passes it): the stored row a write\n * returns is filtered with it for the requester's role before it is cached.\n * @since 0.3.0\n */\n readSchema?: dndevSchema<unknown>;\n}","FilterState":"/**\n * Filter state type for list views\n * Persists across navigation within CrudStore\n * - string: single value filter (text, select)\n * - string[]: multi-select filter (multiple values)\n * - { min?: string; max?: string }: range filter (number, date)\n */\nexport type FilterState = Record<string, string | string[] | {\n min?: string;\n max?: string;\n}","CollectionUIState":"/**\n * Collection UI state (filters, favorites toggle)\n * Persists across navigation\n */\nexport interface CollectionUIState {\n filters: FilterState;\n showFavoritesOnly: boolean;\n /** Persisted items-per-page preference (survives navigation) */\n pageSize?: number;\n}","OPTIMISTIC_STATUSES":"/**\n * Optimistic operation status\n */\nexport declare const OPTIMISTIC_STATUSES: {\n readonly PENDING: \"pending\";\n readonly CONFIRMED: \"confirmed\";\n readonly FAILED: \"failed\";\n}","CRUD_OPERATION":"/** Optimistic mutation operation kind */\nexport declare const CRUD_OPERATION: {\n readonly ADD: \"add\";\n readonly UPDATE: \"update\";\n /** Full document replacement (set/upsert) — cache replaces, not merges */\n readonly SET: \"set\";\n readonly DELETE: \"delete\";\n}","loadDeterministicRange":"/**\n * Load a deterministic range of items from a subcollection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function loadDeterministicRange<T>(userId: string, config: DeterministicSubcollectionConfig<T>): Promise<T[]>;","upsertDeterministic":"/**\n * Upsert a deterministic range of items in a subcollection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function upsertDeterministic<T>(userId: string, config: DeterministicSubcollectionConfig<T>, data: T[]): Promise<void>;","appendToCollection":"/**\n * Append an item to a subcollection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function appendToCollection<T extends Record<string, unknown>>(userId: string, config: AppendSubcollectionConfig<T>, item: CrudCreateInput<T>): Promise<string | void>;","getFieldRegistry":"/**\n * Get the field registry singleton.\n * Backed by globalThis to survive Vite pre-bundling chunk splits and HMR.\n */\nexport declare function getFieldRegistry(): FieldRegistry;","registerFieldType":"/**\n * Register a custom field type (form, optional display, optional filter).\n * Schema must be defined in entity.validation.schema\n *\n * @example\n * ```ts\n * import { useController, registerFieldType } from '@donotdev/crud';\n * import type { ControlledFieldProps } from '@donotdev/crud';\n * import * as v from 'valibot';\n *\n * function ControlledRepairOperationsField({\n * fieldConfig,\n * control,\n * errors,\n * t,\n * }: ControlledFieldProps) {\n * const { field, fieldState } = useController({\n * name: fieldConfig.name,\n * control: control,\n * });\n * return (\n * <div>\n * Your custom UI here\n * {fieldState?.error && <span>{fieldState.error.message}</span>}\n * </div>\n * );\n * }\n *\n * registerFieldType({\n * type: 'repairOperations',\n * controlledComponent: ControlledRepairOperationsField,\n * displayFormatter: (value) => (value != null ? String(value) : '—'),\n * filterable: true,\n * filterType: 'text',\n * });\n *\n * const carEntity = defineEntity({\n * fields: {\n * repairs: {\n * type: 'repairOperations',\n * validation: { schema: v.array(v.object({ operation: v.string(), cost: v.number() })) }\n * }\n * }\n * });\n * ```\n */\nexport declare function registerFieldType<FT extends FieldType>(registration: FieldTypeRegistration<FT>): void;","isFieldTypeRegistered":"/**\n * Check if a field type is registered\n */\nexport declare function isFieldTypeRegistered(type: string): boolean;","registerBuiltinFieldType":"/**\n * Register a built-in field type with all metadata.\n * For internal/plugin use — consumers should use registerFieldType() instead.\n */\nexport declare function registerBuiltinFieldType(metadata: FieldTypeMetadata): void;","getFieldTypeMetadata":"export declare function getFieldTypeMetadata(type: string): FieldTypeMetadata | undefined;","getFilterType":"export declare function getFilterType(type: string): FilterType | undefined;","getDisplayFormatter":"export declare function getDisplayFormatter(type: string): DisplayFormatter | undefined;","isFilterable":"export declare function isFilterable(type: string): boolean;","clearFieldTypeRegistry":"export declare function clearFieldTypeRegistry(): void;","useEntityForm":"/**\n * Creates a type-safe form instance from an entity definition.\n *\n * Automatically binds translations to `[entity.namespace, 'crud']`, including\n * language changes and the SSR request language. No `t` option is needed for\n * normal framework usage; each entity form resolves its own namespace.\n * Pass `options.t` only to override the default namespace resolution with your\n * own translator. It replaces the default translator, rather than extending it.\n * Pass the returned `form.t` to every FormFieldRenderer / DisplayFieldRenderer,\n * including nested field-array fields. Do not duplicate entity labels in page locales.\n * The viewer role is not inferred: pass the actual `viewerRole` (default: guest).\n * Prefer EntityFormRenderer from @donotdev/ui when no custom layout is needed.\n *\n * Simple, predictable behavior:\n * - Edit mode: defaultValues (DB object) is accepted as-is and becomes `form.record`;\n * auto-save to FormStore\n * - Create mode: schema/caller defaults, auto-save to FormStore\n * - Draft restored on mount with dismissible toast (with the `form.record` it was\n * saved with, so a concurrency token read from it stays the draft's base version)\n *\n * Form state, local draft and payload hold only the fields the form writes\n * (entity descriptor, design 3.4): inputs editable for the viewer and operation,\n * `editable: 'computed'` fields (shown read-only, written), their i18n companions,\n * and `id` on edit. Generated, technical, `editable: false` and role-denied fields\n * never enter them: read them from `form.record`. `handleSubmit(onValid)` passes\n * `onValid` the resolver's output (`FormValues<E, Op, X>`; the extensions' values\n * under their keys).\n *\n * When formId is provided:\n * - Tracks form status (uploading/validating/submitting)\n * - Orchestrates file uploads before validation\n * - Provides cleanup function for unmount\n *\n * On a valid submit the page leaves for `successPath` (default: the previous\n * breadcrumb) before the server answers, and returns on rejection. Pass\n * `successPath: null` to stay.\n *\n * `handleSubmit()` without `onValid` uses the default writer: the record\n * (update, or add on create) with the fields the form writes, plus the child\n * rows joined to this form (`useChildRows` / a nested `EntityList`), in one\n * `bulkAcross`. With `onValid`, write the joined rows from `form.pendingWrites()`\n * (the submit fails explicitly when joined rows have edits and it was not read).\n *\n * @template E - Entity type from defineEntity()\n * @template Op - Form operation (`options.operation`; both when not given)\n * @template X - 1:1 extensions (`options.extend`), none by default\n * @param entity - Entity definition from defineEntity()\n * @param options - Form configuration options\n * @returns Form instance with React Hook Form API plus entity-aware extensions\n *\n * @example\n * ```tsx\n * const viewerRole = useAuth('userRole');\n * const form = useEntityForm(productEntity, {\n * formId: 'product-create',\n * operation: 'create',\n * viewerRole,\n * });\n * // In the custom layout, for each editable field from form.fields:\n * // <FormFieldRenderer name={field.name} config={field.config}\n * // control={form.control} t={form.t} />\n * ```\n */\nexport declare function useEntityForm<E extends AnyEntity, Op extends FieldOperation = FieldOperation, const X extends EntityExtensions = Record<never, never>>(entity: E, options?: UseEntityFormOptions<E, Op, X>): EntityFormReturn<E, Op, X>;","useEntityField":"/**\n * Granular hook for single field control within an entity form.\n *\n * Useful when you need fine-grained control over field rendering,\n * such as custom components, conditional logic, or complex layouts.\n *\n * Returns `{ field, meta, config, isEditable, isVisible, display }`.\n * - `isEditable` / `isVisible`: as `form.fields` (entity descriptor, viewer role, operation).\n * - `display(options?)` formats the value using the registered field type formatter:\n * the form value for fields the form writes, `form.record` for the others\n * (technical, `editable: false`, role-denied: not in form state).\n *\n * @template E - Entity type from defineEntity()\n * @template K - Field key from entity\n * @template Op - The form's operation (inferred from `form`)\n * @template X - The form's 1:1 extensions (inferred from `form`)\n * @param form - Form instance from useEntityForm (any operation, any extensions)\n * @param fieldName - Name of the field to control\n * @returns Field state, config, editability info, and display formatter\n *\n * @example\n * ```tsx\n * // Custom field with display()\n * const { field, display, isEditable } = useEntityField(form, 'price');\n * // display() → \"€42.00\" (uses registered formatter)\n * // display({ compact: true }) → compact format for lists\n * if (!isEditable) return <span>{display()}</span>;\n * ```\n *\n * @example\n * ```tsx\n * // Full custom field\n * function CustomEmailField({ form }) {\n * const { field, meta, config, isEditable } = useEntityField(form, 'email');\n *\n * if (!isEditable) return <span>{field.value}</span>;\n *\n * return (\n * <div>\n * <label>{config.label}</label>\n * <input\n * type=\"email\"\n * value={field.value ?? ''}\n * onChange={field.onChange}\n * onBlur={field.onBlur}\n * />\n * {meta.error && <span className=\"error\">{meta.error}</span>}\n * </div>\n * );\n * }\n * ```\n *\n * @see {@link useEntityForm} for creating the form instance\n * @see {@link EntityFieldReturn} for return type\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function useEntityField<E extends AnyEntity, K extends string & keyof InferEntityData<E> & FieldPath<InferEntityData<E>>, Op extends FieldOperation = FieldOperation, X extends EntityExtensions = Record<never, never>>(form: EntityFormReturn<E, Op, X>, fieldName: K): EntityFieldReturn<E, K>;","useController":"/**\n * Framework-provided useController hook\n *\n * Use this instead of importing useController from react-hook-form directly.\n * This ensures type compatibility with framework's Control types.\n *\n * @template TFieldValues - Form values type\n * @template TName - Field name path\n * @param props - Controller props (name and control)\n * @returns Controller return value (field, fieldState, formState)\n *\n * @example\n * ```tsx\n * import { useController } from '@donotdev/crud';\n * import type { ControlledFieldProps } from '@donotdev/crud';\n *\n * function MyCustomField({ control, fieldConfig }: ControlledFieldProps) {\n * const { field, fieldState } = useController({\n * name: fieldConfig.name,\n * control: control,\n * });\n * // ...\n * }\n * ```\n */\nexport declare function useController<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: UseControllerProps<TFieldValues, TName>): UseControllerReturn<TFieldValues, TName>;","FormNavigationProvider":"/**\n * Provides router access to every `useEntityForm` below it.\n * `@donotdev/ui` mounts it in `UIProviders`; apps do not mount it themselves.\n *\n * @example\n * ```tsx\n * <FormNavigationProvider value={{ navigate, currentPath, parentPath }}>\n * {children}\n * </FormNavigationProvider>\n * ```\n */\nexport declare const FormNavigationProvider: import(\"react\").Provider<FormNavigation | null>;","useFormNavigation":"/** Router access for forms, or null when no router provided it. */\nexport declare function useFormNavigation(): FormNavigation | null;","useFormDraftState":"/**\n * Page state saved in the form's draft: autosaved with it, saved at submit,\n * restored with it (\"Draft restored\" toast), reset by its Discard, cleared when\n * the submit succeeds and kept when it fails. A value different from `initial`\n * is an edit: it keeps the draft like a dirty field. Values must be JSON-serializable.\n *\n * @param form - The `useEntityForm` result that owns the page Save\n * @param key - Slot name, unique within the form\n * @param initial - Value when no draft exists (and after Discard)\n * @param options - See {@link UseFormDraftStateOptions}\n * @returns `[value, setValue]`, like `useState`\n *\n * @example\n * ```tsx\n * const form = useEntityForm(routineEntity, { formId: 'routine', operation: 'edit', defaultValues });\n * const [productIds, setProductIds] = useFormDraftState(form, 'productIds', initialIds, {\n * parse: (draft) => v.parse(v.array(v.string()), draft),\n * });\n * const save = form.handleSubmit((values) => saveRoutine(values, productIds));\n * ```\n */\nexport declare function useFormDraftState<T>(form: {\n draftState: FormDraftStateRegistry;\n}","EMPTY_VALUE":"/**\n * The form-state value of a field that is not filled in.\n *\n * @since 0.2.4\n */\nexport declare const EMPTY_VALUE: null;","fromInputValue":"/**\n * Form-state value of a text input's DOM value: an emptied input is {@link EMPTY_VALUE}.\n *\n * @param value - The input's DOM value\n * @returns The value to store in form state\n *\n * @example\n * ```tsx\n * <Input value={field.value ?? ''} onChange={(e) => field.onChange(fromInputValue(e.target.value))} />\n * ```\n *\n * @since 0.2.4\n */\nexport declare function fromInputValue(value: string): string | null;","isFieldEditable":"/**\n * Determines if a field is edited as an input by the current viewer, from the\n * entity descriptor (`describeEntity(entity).fields[name].editableFor`): the same\n * rule as forms, grids and URL prefills.\n *\n * - Only the `user` write class is editable: `editable: 'generated'`, `'computed'`,\n * `false`, hidden fields and backend names (`id`, `createdAt`, ...) never are\n * - `editable` unset / `true`: editable, except technical fields (read-only)\n * - `'create-only'`: editable on create only\n * - a role: `hasRoleAccess(viewerRole, role)` (guest < user < admin < super)\n *\n * NOTE: Visibility is handled by backend - this function only handles editability (UI concern).\n *\n * @param entity - Entity from `defineEntity()`\n * @param fieldName - Field name (key in `entity.fields`)\n * @param viewerRole - Current viewer's role\n * @param operation - Form operation type\n * @returns Whether the field should be rendered as an input (true) or read-only (false)\n * @throws When `entity` has no field `fieldName`\n *\n * @example\n * ```typescript\n * // fields: { title: {}, status: { editable: 'admin' }, sku: { editable: 'create-only' } }\n * isFieldEditable(productEntity, 'title', 'user', 'edit'); // true\n * isFieldEditable(productEntity, 'status', 'user', 'edit'); // false (user < admin)\n * isFieldEditable(productEntity, 'sku', 'admin', 'edit'); // false (create only)\n * isFieldEditable(productEntity, 'createdAt', 'super', 'edit'); // false (backend-generated)\n * ```\n *\n * @see `Editable` (`@donotdev/core`) for editable configuration options\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function isFieldEditable(entity: AnyEntity, fieldName: string, viewerRole: string, operation: FieldOperation): boolean;","getFieldsForOperation":"/**\n * Filters entity fields based on operation type and viewer role, from the entity\n * descriptor (`describeEntity`: write class, `editableFor`, visibility).\n *\n * Pure function, no React dependencies. Use for building custom form layouts.\n *\n * Per write class (design 3.4):\n * - `never` (hidden, `editable: 'generated'`, backend names): not shown, except\n * technical fields on edit, shown read-only (`id`, `createdAt`, ...)\n * - `program` (`editable: false`): shown read-only\n * - `derived` (`editable: 'computed'`): shown read-only, written by the form\n * - `user`: an input when `editableFor(viewerRole, operation)`, else read-only\n *\n * **Create operation:** excludes `visibility: 'technical'` fields.\n * **Edit operation:** if `availableFields` is provided, only returns those fields.\n * Fields the viewer cannot see (`visibility` above the role, `hidden`) are left out.\n *\n * @param entity - Entity definition from defineEntity(), or a field map\n * @param options - Filtering options\n * @returns Array of renderable fields with computed editability\n * @throws When a field has a custom type and no value shape (`describeEntity`)\n *\n * @example\n * ```typescript\n * import { getFieldsForOperation } from '@donotdev/crud/forms';\n * import { productEntity } from './entities/product';\n *\n * const editFields = getFieldsForOperation(productEntity, {\n * operation: 'edit',\n * viewerRole: 'admin',\n * });\n *\n * // Inputs for written editable fields; read-only display for the others\n * // (`written`: from form state, else from form.record)\n * editFields.map(({ name, config, editable }) => (\n * editable\n * ? <Input key={name} {...config} />\n * : <ReadOnlyDisplay key={name} {...config} />\n * ));\n * ```\n *\n * @see {@link AnyEntity} for entity definition structure\n * @see {@link RenderableField} for return type\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function getFieldsForOperation(entity: EntityFieldsInput, options: GetFieldsForOperationOptions): RenderableField[];","validateEntity":"/**\n * Validates data against an entity definition.\n *\n * Uses Valibot under the hood with entity-derived schemas.\n * Pure function, no React dependencies.\n *\n * @template E - Entity type from defineEntity()\n * @param entity - Entity definition from defineEntity()\n * @param data - Data to validate\n * @param operation - Validation context ('create', 'draft', 'update', or 'full')\n * @returns Validation result with typed issues\n *\n * @example\n * ```typescript\n * import { validateEntity } from '@donotdev/crud/forms';\n * import { productEntity } from './entities/product';\n *\n * // Validate create data\n * const result = validateEntity(productEntity, formData, 'create');\n *\n * if (result.success) {\n * await saveProduct(result.data);\n * } else {\n * console.error('Validation failed:', result.issues);\n * // [{ path: 'name', message: 'Required' }, ...]\n * }\n * ```\n *\n * @example\n * ```typescript\n * // Use in form submission\n * const onSubmit = async (data: unknown) => {\n * const validation = validateEntity(productEntity, data, 'create');\n *\n * if (!validation.success) {\n * validation.issues?.forEach(issue => {\n * form.setError(issue.path, { message: issue.message });\n * });\n * return;\n * }\n *\n * await api.createProduct(validation.data);\n * };\n * ```\n *\n * @see {@link Entity} for entity definition structure\n * @see {@link ValidationResult} for return type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function validateEntity<E extends AnyEntity>(entity: E, data: unknown, operation?: SchemaOperation): ValidationResult<Record<string, unknown>>;","translateFieldLabel":"/**\n * Translates a field label using the provided translation function.\n *\n * Supports multiple label formats:\n * - Namespace syntax: `\"namespace:key\"` → translates `key` in `namespace`\n * - Direct label: `\"label\"` → translates `label` in current namespace\n * - Field name fallback: uses field name if no label in config\n *\n * @param fieldName - Field name (used as fallback)\n * @param config - Field configuration (may contain label)\n * @param t - Translation function from useTranslation hook\n * @returns Translated label string\n *\n * @example\n * ```typescript\n * import { translateFieldLabel } from '@donotdev/crud/forms';\n * import { useTranslation } from '@donotdev/core';\n *\n * const { t } = useTranslation('entity-car');\n * const label = translateFieldLabel('make', carEntity.fields.make, t);\n * // Returns: translated \"make\" from entity-car namespace\n * ```\n *\n * @example\n * ```typescript\n * // With namespace syntax in config.label\n * const label = translateFieldLabel('status', {\n * label: 'common:status',\n * type: 'select'\n * }, t);\n * // Returns: translated \"status\" from \"common\" namespace\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function translateFieldLabel<T extends FieldType = FieldType>(fieldName: string, config: EntityField<T> | undefined, t: (key: string, options?: Record<string, any>) => string): string;","translateLabel":"/**\n * Translates a label string with namespace support.\n * Used for translating option labels, field labels, or any label string.\n *\n * Supports namespace:key syntax (e.g., \"crud:status.draft\")\n *\n * **Translation Fallback Order (for status labels):**\n * 1. Entity namespace (`entity-{name}`) - User overrides take priority\n * 2. CRUD namespace (`crud`) - Framework defaults\n *\n * No dndev fallback - CRUD is optional and shouldn't pollute core framework namespace.\n * Same as `translateEntityLabel` from `@donotdev/core` (the implementation; SEO uses it too).\n *\n * @param label - Label string to translate (may include namespace:key syntax)\n * @param t - Translation function from useTranslation hook (should be from multi-namespace hook like [entity.namespace, 'crud'])\n * @returns Translated label string\n *\n * @example\n * ```typescript\n * translateLabel('crud:status.draft', t); // Tries entity namespace first, then crud\n * translateLabel('make', t); // Translates \"make\" in current namespace (entity or crud)\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function translateLabel(label: string, t: (key: string, options?: Record<string, any>) => string): string;","ViewerRole":"/** Viewer role type - used for editability checks */\nexport type ViewerRole = 'public' | 'guest' | 'user' | 'admin' | 'super';","RenderableField":"/** Field with computed editability for rendering */\nexport interface RenderableField<T extends FieldType = FieldType> {\n /** Field name/key */\n name: string;\n /** Field configuration */\n config: EntityField<T>;\n /** Whether field is editable (input vs read-only) */\n editable: boolean;\n /**\n * Whether the form writes the field: an input (`editable`) or a derived\n * (`editable: 'computed'`) field. Its value lives in form state; a field the form\n * does not write (technical, `editable: false`, role-denied) is read from\n * `form.record`.\n * @since 0.2.5\n */\n written: boolean;\n /**\n * Values the field's `conditions` read: the key of a 1:1 extension (`offer`)\n * for its prefixed fields (`offer.priceExclVat`); omitted for the entity's own.\n * @since 0.2.5\n */\n scope?: string;\n}","GetFieldsForOperationOptions":"/** Options for field filtering */\nexport interface GetFieldsForOperationOptions {\n /** Form operation type */\n operation: 'create' | 'edit';\n /** Viewer role for editability checks (defaults to 'guest' if undefined) */\n viewerRole?: string;\n /**\n * Available field names (for edit mode).\n * When provided, only fields in this list are returned.\n * Typically comes from Object.keys(defaultValues) - backend-filtered data.\n */\n availableFields?: string[];\n}","EntityFieldsInput":"/** Entity fields input - supports Entity, Entity['fields'], or plain Record */\nexport type EntityFieldsInput = AnyEntity | AnyEntity['fields'] | Record<string, EntityField<FieldType>>;","SchemaOperation":"/**\n * Validation operation type\n */\nexport type SchemaOperation = 'create' | 'draft' | 'update' | 'full';","ValidationIssue":"/**\n * Validation issue structure\n */\nexport interface ValidationIssue {\n /** Field path (e.g., 'name' or 'address.street') */\n path: string;\n /** Error message */\n message: string;\n}","ValidationResult":"/**\n * Validation result structure\n * @template T - Data type\n */\nexport interface ValidationResult<T> {\n /** Whether validation succeeded */\n success: boolean;\n /** Validated data (if success) */\n data?: T;\n /** Validation issues (if failed) */\n issues?: ValidationIssue[];\n}","InferEntityData":"/**\n * Infers the data type from an entity definition.\n *\n * Alias of {@link InferEntityRow} — single source of truth with CRUD hooks and `defineEntity` field maps.\n *\n * @template E - Entity type from defineEntity()\n *\n * @example\n * ```typescript\n * const productEntity = defineEntity({\n * name: 'Product',\n * collection: 'products',\n * fields: {\n * name: { type: 'text', visibility: 'guest' },\n * price: { type: 'number', visibility: 'guest' },\n * active: { type: 'boolean', visibility: 'user' }\n * }\n * });\n *\n * type ProductData = InferEntityData<typeof productEntity>;\n * // { name: string; price: number; active: boolean; id: string; ... }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport type InferEntityData<E extends AnyEntity> = InferEntityRow<E>;","InferEntityCreate":"/**\n * Create payload of an entity: {@link CreateInput} (`createSchemas(e).create`, from\n * the entity descriptor). Written fields only (`user`, `derived`, `program` write\n * classes); required → key required, value; optional / conditional → key optional,\n * value or `null`.\n *\n * @template E - Entity from `defineEntity()`\n *\n * @version 0.2.0\n * @since 0.2.0\n */\nexport type InferEntityCreate<E extends AnyEntity> = CreateInput<E>;","InferEntityInput":"/**\n * Infers form input type (values before validation).\n * All fields are optional/partial since form may be incomplete.\n *\n * @template E - Entity type from defineEntity()\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport type InferEntityInput<E extends AnyEntity> = Partial<InferEntityData<E>>;","InferEntityOutput":"/**\n * Infers form output type (values after validation).\n * Represents validated, complete data ready for submission.\n *\n * @template E - Entity type from defineEntity()\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport type InferEntityOutput<E extends AnyEntity> = InferEntityData<E>;","UseEntityFormOptions":"/**\n * Options for useEntityForm hook.\n *\n * @template E - Entity type from defineEntity()\n * @template Op - Form operation (`operation`), both when not given\n * @template X - 1:1 extensions (`extend`), none by default\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface UseEntityFormOptions<E extends AnyEntity, Op extends FieldOperation = FieldOperation, X extends EntityExtensions = Record<never, never>> {\n /**\n * Form ID for tracking form/upload state.\n * Required for deferred file uploads and form status tracking.\n * Also scopes the auto-saved draft: give each form on the same record its own\n * stable formId (e.g. 'product-prices') so their drafts never overwrite each other.\n */\n formId?: string;\n /**\n * Form operation type.\n * - 'create': Excludes technical fields, all other fields editable\n * - 'edit': Shows all fields from defaultValues, technical fields read-only\n * @default 'create' (or 'edit' if defaultValues provided)\n */\n operation?: Op;\n /**\n * Initial form values ({@link EntityFormDefaultValues}).\n * - edit: the stored row as read (already visibility-filtered), accepted as-is.\n * It becomes `form.record`; form state holds only the fields the form writes.\n * - create: create defaults (e.g. `status: 'draft'`, a parent reference).\n * Fields the form does not write (generated, technical, `editable: false`,\n * role-denied) never enter form state, the local draft or the payload.\n */\n defaultValues?: EntityFormDefaultValues<E, Op>;\n /**\n * Viewer role for editability checks.\n * Determines which fields render as inputs vs read-only.\n * If not provided, defaults to 'guest' (most restrictive)\n * @default 'guest'\n */\n viewerRole?: string;\n /**\n * React Hook Form mode.\n * @default 'onSubmit'\n */\n mode?: 'onBlur' | 'onChange' | 'onSubmit' | 'onTouched' | 'all';\n /**\n * Optional override for labels, hints, options and nested field-array fields.\n * Omit for normal usage: useEntityForm automatically uses\n * `useTranslation([entity.namespace, 'crud'])` with language/SSR support.\n * Supply your own translator only to bypass that namespace resolution; it\n * replaces the default translator completely. Pass returned `form.t` to the\n * field renderers in either case.\n */\n t?: (key: string, options?: Record<string, unknown>) => string;\n /**\n * Whether the form data is still loading (e.g. async fetch in edit mode).\n * When true, form initialization and draft restoration are deferred until false.\n * Transitions from true → false reset the draft guard so draft loads against the correct data.\n * @default false\n */\n loading?: boolean;\n /**\n * Where the page goes once a submit passes validation and uploads.\n * The form leaves right away, before the server answers (optimistic); if the\n * write rejects, it returns to the page it left and the saved draft restores\n * every edit.\n * - omitted: the previous breadcrumb (nearest existing parent route, else `/`)\n * - a path: that path\n * - `null`: stay on the page (dialogs, wizards, settings, create flows that\n * open the new record, pages holding other unsaved state, and every form of\n * a nested submit: leaving would unmount the inner form and cancel its save)\n *\n * Needs the router access `@donotdev/ui` provides; without it the form stays.\n */\n successPath?: string | null;\n /**\n * 1:1 extensions edited with the record (a record split across two tables,\n * e.g. `{ offer: { entity: productOfferEntity, field: 'productId' } }`): their\n * fields join `form.fields` prefixed `key.` (`offer.priceExclVat`; values under\n * `values.offer`), with conditions, validation, draft and uploads. In edit mode\n * the extension row is read (the form waits for it); the default writer and\n * `pendingWrites()` update it, or insert it when missing (after the record on\n * create). A viewer without read access to an extension entity gets none of it.\n * Keep the same keys while mounted.\n * @since 0.2.5\n */\n extend?: X;\n}","EntityFormReturn":"/**\n * Return type for useEntityForm hook.\n *\n * Extends React Hook Form's UseFormReturn with entity-aware additions. Form state\n * ({@link EntityFormState}) is {@link FormValues} for both operations: the fields\n * the form writes (inputs editable for the viewer, `editable: 'computed'` fields,\n * i18n companions, `id` on edit). Other fields of the stored row are read from\n * {@link EntityFormReturn.record}. `Op` keys `operation`, what `handleSubmit`'s\n * `onValid` receives (React Hook Form's `TTransformedValues`) and `originalValues`; every form of `E` (any `Op`) is an\n * `EntityFormReturn<E>`, so helpers typed `<E extends AnyEntity>(form:\n * EntityFormReturn<E>)` take a `create` or `edit` form. A helper taking a form\n * with 1:1 extensions declares `X` (`EntityFormReturn<E, FieldOperation, X>`).\n *\n * @template E - Entity type from defineEntity()\n * @template Op - Form operation\n * @template X - 1:1 extensions (`extend`), none by default\n *\n * @version 0.3.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface EntityFormReturn<E extends AnyEntity, Op extends FieldOperation = FieldOperation, X extends EntityExtensions = Record<never, never>> extends UseFormReturn<EntityFormState<E, X>, unknown, FormValues<E, Op, X>> {\n /**\n * Validates, uploads, writes the draft, leaves for `successPath`, then calls\n * `onValid` with the resolver's output ({@link FormValues} for `Op`: the fields\n * the form writes); `onInvalid` gets the errors keyed by form state. Third\n * argument: per-submit {@link EntityFormSubmitOptions}.\n */\n handleSubmit: EntityFormHandleSubmit<FormValues<E, Op, X>, EntityFormState<E, X>>;\n /**\n * Stored row the edit started from (`defaultValues` on edit, 1:1 extension rows\n * under their key), saved with the local draft and restored with it: a value read\n * from it (a concurrency token such as `revision`) stays the base version of a\n * restored draft. Read-only displays read fields the form does not write\n * (technical, `editable: false`, role-denied) from it. `undefined` on create and\n * while the record loads.\n * @since 0.2.5\n */\n record: InferEntityRow<E> | undefined;\n /**\n * Page-state slots kept in this form's draft. Pass the form to\n * `useFormDraftState`; do not call it directly.\n */\n draftState: FormDraftStateRegistry;\n /**\n * Writes besides the record itself: the 1:1 extensions (`extend`: update, or\n * insert when missing) and the child rows joined to this form (`useChildRows`\n * / a nested `EntityList` on this record), one `bulkAcross` batch per\n * collection (inserts with pre-minted ids, updates, deletes, schemas). During\n * a submit, what that submit carries. Call it in your `handleSubmit(onValid)`\n * and add the batches to your write; if there is something to write and it\n * was not read during the submit, the submit fails with an explicit error (no\n * silent loss). Empty when nothing joined, no extension and no edits.\n *\n * On create, inserting an extension needs the record id: pre-mint it and pass\n * `{ recordId }` (its batch depends on the record's collection, so include the\n * record insert in the same call).\n *\n * @example\n * ```tsx\n * const save = form.handleSubmit(async (values) => {\n * await bulkAcross([\n * { collection: 'campaigns', updates: [{ id, patch: toPatch(values) }], schemas: createSchemas(campaign) },\n * ...form.pendingWrites(),\n * ]);\n * });\n * ```\n * @since 0.2.5\n */\n pendingWrites: (options?: {\n recordId?: string;\n }) => BulkAcrossBatch[];\n /**\n * Logical delete of the open record (CRUD rule 3): `{ status: 'deleted' }` only, the\n * form's values are not validated. Clears the local draft. Edit mode only.\n * @since 0.3.0\n */\n remove: () => Promise<void>;\n /**\n * Pre-filtered fields ready for rendering.\n * Already filtered by operation and visibility.\n */\n fields: RenderableField[];\n /**\n * Current operation type.\n */\n operation: Op;\n /**\n * Original entity definition.\n */\n entity: E;\n /**\n * Resolved entity + crud translator, or options.t when explicitly overridden.\n * Pass it to FormFieldRenderer / DisplayFieldRenderer in custom layouts.\n */\n t: (key: string, options?: Record<string, unknown>) => string;\n /**\n * Current viewer role.\n * Always has a value (defaults to 'guest' if not provided).\n */\n viewerRole: string;\n /**\n * Form ID for state tracking.\n * Undefined if not provided in options.\n */\n formId: string | undefined;\n /**\n * Current form status from FormStore.\n * Tracks: idle → uploading → validating → submitting → success/error\n */\n formStatus: FormStatus;\n /**\n * Upload progress 0-100 when status is 'uploading'.\n */\n uploadProgress: number;\n /**\n * Cleanup function to call on unmount.\n * Cleans up FormStore and UploadStore state for this form.\n */\n cleanup: () => void;\n /**\n * Cancel in-flight uploads and reset form submission state.\n * Aborts the AbortController, resets FormStore, and releases the submit mutex.\n */\n cancel: () => void;\n /**\n * Whether the form has unsaved changes.\n * True if any field value differs from original/default values.\n */\n isDirty: boolean;\n /**\n * Whether the user has interacted with the form.\n * True if any field has been touched or the form has been submitted.\n * Used to gate navigation blocking so we don't warn on untouched forms.\n */\n hasUserInteracted: boolean;\n /**\n * Reset form to original values and clear any saved draft.\n * Use this for \"Cancel\" button functionality.\n */\n resetForm: () => void;\n /**\n * Original values the form was initialized with (form state: the fields the form writes).\n * For create mode: schema-based defaults with the caller's defaults.\n * For edit mode: the DB record projected onto the written fields, type defaults for empty ones.\n */\n originalValues: Partial<FormValues<E, Op, X>> | undefined;\n}","EntityFieldReturn":"/**\n * Return type for useEntityField hook.\n *\n * @template E - Entity type from defineEntity()\n * @template K - Field key from entity\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface EntityFieldReturn<E extends AnyEntity, K extends keyof InferEntityData<E>> {\n /**\n * React Hook Form field props (value, onChange, onBlur, etc.)\n */\n field: ControllerRenderProps<InferEntityData<E>, FieldPath<InferEntityData<E>>>;\n /**\n * Field metadata (error, touched, dirty state).\n */\n meta: {\n error: string | undefined;\n touched: boolean;\n isDirty: boolean;\n };\n /**\n * Normalized field configuration.\n */\n config: EntityField;\n /**\n * Whether field is editable (based on role, operation, config).\n */\n isEditable: boolean;\n /**\n * Whether field is visible (based on filtering).\n */\n isVisible: boolean;\n /**\n * Format the current field value for display using registered formatter.\n * Returns the formatted value as string or ReactElement.\n *\n * @param options - Formatting options\n * @param options.compact - Use compact formatting (smaller images, plain spans for empty)\n * @param options.asString - Prefer string output when possible\n */\n display: (options?: {\n compact?: boolean;\n asString?: boolean;\n }) => string | ReactElement;\n}","FormNavigation":"/** Router access a form needs to leave on save and return on failure. */\nexport interface FormNavigation {\n /** Navigate to an app path. */\n navigate: (path: string) => void;\n /** Current app path, read at call time. */\n currentPath: () => string;\n /** Previous breadcrumb of the current path (nearest existing parent route, else home). */\n parentPath: () => string;\n}","FormDraftSlot":"/** One page-state slot as the form sees it. */\nexport interface FormDraftSlot {\n /** Current value, read when the draft is saved. */\n get: () => unknown;\n /** True when the current value differs from the initial one (the slot holds an edit). */\n edited: () => boolean;\n /** Apply a value restored from the draft. */\n restore: (value: unknown) => void;\n /** Back to the initial value (Discard, resetForm). */\n reset: () => void;\n}","FormDraftStateRegistry":"/** Slot registry exposed by `useEntityForm` as `form.draftState`. */\nexport interface FormDraftStateRegistry {\n /** Register a slot; returns its unregister function. */\n register: (key: string, slot: FormDraftSlot) => () => void;\n /** A slot changed: schedule the form's draft autosave. */\n changed: () => void;\n}","UseFormDraftStateOptions":"/** Options for {@link useFormDraftState}. */\nexport interface UseFormDraftStateOptions<T> {\n /**\n * Validate a value read back from the draft (browser storage: untrusted, may\n * come from an older page version) and adjust it before it is applied, e.g.\n * drop table edits that already equal the loaded record. Throw to reject it;\n * the slot then keeps `initial`.\n */\n parse: (draft: unknown) => T;\n}","EntityFormHandleSubmit":"/**\n * React Hook Form's `handleSubmit` (resolves `onValid`'s result, `undefined` when\n * the submit did not reach it) plus per-submit {@link EntityFormSubmitOptions}.\n *\n * `onValid` is optional: without it the default writer saves the record (update,\n * or add on create) with the fields the entity allows, plus the child rows joined\n * to the form, in one `bulkAcross`, and resolves its {@link BulkAcrossResult}.\n * With it, the app writes; joined rows' writes come from `form.pendingWrites()`.\n *\n * @template T - What `onValid` receives (the resolver's output)\n * @template S - Form state `onInvalid`'s errors are keyed by, `T` by default\n */\nexport type EntityFormHandleSubmit<T extends FieldValues, S extends FieldValues = T> = <TResult = BulkAcrossResult>(onValid?: SubmitHandler<T, TResult>, onInvalid?: SubmitErrorHandler<S>, options?: EntityFormSubmitOptions) => (event?: BaseSyntheticEvent) => Promise<Awaited<TResult> | undefined>;","EntityFormState":"/**\n * Form state of an entity form (React Hook Form's `TFieldValues` in\n * {@link EntityFormReturn}): {@link FormValues} for both operations. Not keyed by\n * the operation: React Hook Form's types are invariant in their field values, so a\n * state per operation would make a `create` / `edit` form unassignable to\n * `EntityFormReturn<E>`. The operation keys what is submitted (`TTransformedValues`:\n * `handleSubmit`'s `onValid`), in which they are covariant.\n *\n * @template E - Entity type from defineEntity()\n * @template X - 1:1 extensions (`extend`), none by default\n *\n * @version 0.1.0\n * @since 0.2.5\n * @author AMBROISE PARK Consulting\n */\nexport type EntityFormState<E extends AnyEntity, X extends EntityExtensions = Record<never, never>> = FormValues<E, FieldOperation, X>;","EntityFormSubmitOptions":"/** Per-submit options for {@link EntityFormHandleSubmit}. */\nexport interface EntityFormSubmitOptions {\n /**\n * Overrides the hook's `successPath` for this submit only, e.g. Save on a draft\n * stays (`null`) while Publish on the same form leaves. When the key is present\n * it wins, `undefined` included (= previous breadcrumb); when absent the hook\n * option applies.\n */\n successPath?: string | null;\n}","UploadProvider":"/**\n * UploadProvider - Provides formId to upload components via context\n * Used by EntityFormRenderer to enable deferred uploads\n */\nexport declare function UploadProvider({ formId, children }","useUploadContext":"/**\n * useUploadContext - Get formId for upload components\n * Returns undefined if not inside an UploadProvider (standalone usage)\n */\nexport declare function useUploadContext(): string | undefined;","UploadProviderProps":"/** Props for the {@link UploadProvider} component. */\nexport interface UploadProviderProps {\n formId: string | undefined;\n children: ReactNode;\n}","useFileUpload":"/**\n * useFileUpload - Thin wrapper over UploadStore\n *\n * Store is SSOT. Hook provides:\n * - Selector (useFieldFiles) for React re-renders\n * - Plain dispatch functions (addFiles, removeFile, reorderFiles)\n * - 4 effects: init, RHF sync, registration, cleanup\n */\nexport declare function useFileUpload({ name, value, onChange, multiple, maxFiles, maxSize, accept, uploadFn, }","useEntityFavorites":"/**\n * Hook for managing entity favorites\n *\n * @example\n * ```typescript\n * // In detail page\n * const { isFavorite, toggleFavorite } = useEntityFavorites({ collection: 'cars' });\n *\n * <Button onClick={() => toggleFavorite(carId)}>\n * {isFavorite(carId) ? 'Saved' : 'Save'}\n * </Button>\n * ```\n *\n * @example\n * ```typescript\n * // In list page with filter (EntityCardList from @donotdev/ui)\n * const { favoritesFilter } = useEntityFavorites({ collection: 'cars' });\n * const [showFavoritesOnly, setShowFavoritesOnly] = useState(false);\n *\n * <EntityCardList\n * entity={carEntity}\n * filter={showFavoritesOnly ? favoritesFilter : undefined}\n * />\n * ```\n */\nexport declare function useEntityFavorites(options?: UseEntityFavoritesOptions): UseEntityFavoritesReturn;","useRelatedItems":"/**\n * useRelatedItems - Finds related items based on matching field criteria\n *\n * Matching logic by field type:\n * - String/select fields: exact match\n * - Number fields: within ±tolerance% of current value\n *\n * Items are matched if they satisfy ANY of the specified fields (OR logic).\n * Current item is automatically excluded.\n *\n * @example\n * ```tsx\n * const { items: relatedCars } = useRelatedItems(\n * carEntity,\n * currentCar,\n * allCars,\n * ['make', 'price'],\n * { limit: 3, tolerance: 0.2 }\n * );\n * ```\n */\nexport declare function useRelatedItems<T extends Record<string, unknown>>(entity: AnyEntity, currentItem: T | null | undefined, allItems: T[] | null | undefined, matchFields: string[], options?: UseRelatedItemsOptions): UseRelatedItemsReturn<T>;","useCrudFilters":"export declare function useCrudFilters(options: UseCrudFiltersOptions): UseCrudFiltersReturn;","useCrudPageSize":"/**\n * Hook for managing per-collection page size preference from CrudStore\n *\n * @example\n * ```typescript\n * const { pageSize, setPageSize } = useCrudPageSize({ collection: 'cars' });\n *\n * <DataTable\n * pageSize={pageSize}\n * onPageSizeChange={setPageSize}\n * />\n * ```\n */\nexport declare function useCrudPageSize(options: UseCrudPageSizeOptions): UseCrudPageSizeReturn;","useFieldConditions":"/**\n * Evaluate field conditions against live form values.\n *\n * @param fields - Array of renderable fields (from useEntityForm or getFieldsForOperation)\n * @param control - React Hook Form control object (`form.control`)\n * @returns Record mapping field names to their computed condition states.\n * Fields without conditions are not included — treat missing entries as defaults.\n *\n * @example\n * ```tsx\n * function MyForm({ entity }) {\n * const { fields, control } = useEntityForm(entity, { operation: 'create' });\n * const conditions = useFieldConditions(fields, control);\n *\n * return fields.map(({ name, config }) => {\n * const cond = conditions[name];\n * if (cond && !cond.visible) return null;\n * return <FormField key={name} disabled={cond?.disabled} required={cond?.required} />;\n * });\n * }\n * ```\n */\nexport declare function useFieldConditions<TFieldValues extends FieldValues = FieldValues, TTransformedValues = TFieldValues>(fields: readonly RenderableField[], control: Control<TFieldValues, unknown, TTransformedValues>): Record<string, ConditionResult>;","useReferenceResolver":"/**\n * Hook that fetches referenced collections for an entity and builds a lookup map.\n *\n * Supports up to 4 unique referenced collections. Each collection is fetched via useCrudList.\n * Because hooks must be called unconditionally, we always call all 4 useCrudList slots\n * and disable unused ones. Reference fields come from the entity descriptor\n * (`value.kind === 'ref'`).\n *\n * @param entity - The entity whose reference fields to resolve\n * @param enabled - Fetch the referenced collections (default `true`)\n * @returns ReferenceData lookup map\n * @throws When the entity references more than 4 collections\n */\nexport declare function useReferenceResolver(entity: AnyEntity, enabled?: boolean): ReferenceData;","useChildRows":"/**\n * A record's child rows, edited with the record and saved by its Save.\n *\n * **Joined (automatic):** when an edit form (`useEntityForm` / `EntityFormRenderer`)\n * is open on the parent record, the rows join it: unsaved edits live in that\n * form's draft (restored, discarded and kept on a failed save with it), the\n * form's Save writes them (default writer, or `form.pendingWrites()` in the\n * app's `onValid`), they are validated with the fields before the page leaves,\n * and cleared then refetched after a successful save. Every `useChildRows` on\n * the same form, entity and parent sees the same rows. The latest form opened\n * on the record wins. All the parent's rows are loaded (client-side list).\n *\n * **Standalone:** no such form, or no `parent` (every record of the entity):\n * edits stay in memory for this instance; `save()` writes them.\n *\n * **1:1 extensions (`extend`):** see {@link UseChildRowsOptions.extend}.\n *\n * Entity rules: the viewer's `access` gates add / edit / remove (calls throw\n * when not allowed), only fields the viewer may write are set, drafts read back\n * from the browser are validated, edits of rows that no longer exist are dropped.\n *\n * @param entity - The child entity\n * @param parent - The child's reference field and the parent record id (`null` before the parent exists; omitted: every record)\n * @param options - See {@link UseChildRowsOptions}\n * @returns See {@link UseChildRowsReturn}\n *\n * @example\n * ```tsx\n * const rows = useChildRows(campaignProductEntity, { field: 'campaignId', value: campaign.id });\n * rows.items.map((row) => <ProductLine key={row.id} row={row} onChange={(patch) => rows.update(row.id, patch)} />);\n * <Button onClick={() => rows.add([{ productId }])}>Add</Button>\n *\n * // Products with their private offer, all records (no parent)\n * const products = useChildRows(productEntity, undefined, {\n * extend: { offer: { entity: productOfferEntity, field: 'productId' } },\n * });\n * products.update(id, { 'offer.priceExclVat': 12 });\n * ```\n */\nexport declare function useChildRows<E extends AnyEntity>(entity: E, parent?: ChildRowsParent, options?: UseChildRowsOptions): UseChildRowsReturn<InferEntityRow<E>>;","useJoinedForm":"/**\n * The edit form the child rows of `parent` join: the latest `useEntityForm` (edit\n * mode) opened on that parent record, or `null`. The parent collection comes\n * from the child field's `validation.reference`.\n *\n * @param entity - The child entity\n * @param parent - The child's parent field and the parent record id (`undefined`: none)\n * @returns The open form, or `null` when none edits that record\n *\n * @example\n * ```tsx\n * const joined = useJoinedForm(campaignProductEntity, { field: 'campaignId', value: campaign.id }) !== null;\n * ```\n */\nexport declare function useJoinedForm(entity: AnyEntity, parent: ChildRowsParent | undefined): OpenRecordForm | null;","FileMetadata":"/** Backwards-compatible alias */\nexport type FileMetadata = FileEntry;","FileEntry":"/**\n * Per-file state entry - SSOT for all file upload state.\n * Stored in UploadStore, consumed by useFileUpload hook via selector.\n */\nexport interface FileEntry {\n /** Unique ID for React keys and store lookups */\n id: string;\n /** Original File object (placeholder for existing uploads) */\n file: File;\n /** Local preview URL (blob: for new, https: for existing) */\n previewURL: string;\n /** Upload status */\n status: FileEntryStatus;\n /** Upload progress 0-100 (null = not started) */\n progress: number | null;\n /** Uploaded result (null = pending) */\n uploaded: UploadResult | null;\n /** Error message if upload failed */\n error: string | null;\n}","UseFileUploadOptions":"export interface UseFileUploadOptions {\n /** Field name for UploadStore registration */\n name: string;\n /** Current value from form (Picture or FileAsset based) */\n value: unknown;\n /** Change handler to update form */\n onChange: (value: unknown) => void;\n /** Allow multiple files */\n multiple?: boolean;\n /** Max number of files (multiple mode) */\n maxFiles?: number;\n /** Max file size in bytes (default: 10MB) */\n maxSize?: number;\n /** Accepted MIME types (e.g., ['image/*'], ['application/pdf']) */\n accept?: string[];\n /** Storage path prefix */\n storagePath?: string;\n /** Upload function - injected to avoid coupling to specific storage */\n uploadFn?: (file: File, onProgress: (progress: number) => void) => Promise<UploadResult>;\n}","UseEntityFavoritesOptions":"/** Options for the {@link useEntityFavorites} hook. */\nexport interface UseEntityFavoritesOptions {\n /** Storage key (default: 'entity-favorites') */\n storageKey?: string;\n /** Entity collection name (e.g., 'cars', 'products') - used to namespace favorites */\n collection?: string;\n}","UseEntityFavoritesReturn":"/** Return type of the {@link useEntityFavorites} hook. */\nexport interface UseEntityFavoritesReturn {\n /** Array of favorited entity IDs */\n favorites: string[];\n /** Check if an entity is favorited */\n isFavorite: (id: string) => boolean;\n /** Toggle favorite status for an entity */\n toggleFavorite: (id: string) => void;\n /** Add entity to favorites */\n addFavorite: (id: string) => void;\n /** Remove entity from favorites */\n removeFavorite: (id: string) => void;\n /** Clear all favorites */\n clearFavorites: () => void;\n /** Filter function for use with EntityCardList/EntityList (from @donotdev/ui) filter prop */\n favoritesFilter: (item: {\n id: string;\n }) => boolean;\n /** Whether favorites are loaded from localStorage */\n isLoaded: boolean;\n}","UseRelatedItemsOptions":"/** Options for the {@link useRelatedItems} hook. */\nexport interface UseRelatedItemsOptions {\n /** Maximum number of related items to return (default: 3) */\n limit?: number;\n /** Tolerance for numeric field matching as percentage (default: 0.2 = 20%) */\n tolerance?: number;\n}","UseRelatedItemsReturn":"/** Return type of the {@link useRelatedItems} hook. */\nexport interface UseRelatedItemsReturn<T> {\n /** Array of related items */\n items: T[];\n /** Whether any related items were found */\n hasItems: boolean;\n}","UseCrudFiltersOptions":"/** Options for the {@link useCrudFilters} hook. */\nexport interface UseCrudFiltersOptions {\n /**\n * Entity collection name (e.g., 'cars', 'products'): the filter state the lists\n * of that collection apply. Any other key (an `EntityFilters` `filterKey`) holds\n * its own, separate filter state.\n */\n collection: string;\n /**\n * Sync this filter state with the URL (`f_<field>` params: shareable links,\n * back/forward). Default: `true` when `collection` is the collection of an entity\n * defined with `defineEntity` (the page list's filter state), `false` for any other\n * key (pickers, dialogs). One URL-synced filter state per page: set `false` on the\n * others. `true` on a custom key needs `entity`.\n * @since 0.3.0\n */\n urlSync?: boolean;\n /**\n * Entity whose fields the URL params encode, for `urlSync: true`.\n * Default: the entity of `collection`.\n * @since 0.3.0\n */\n entity?: AnyEntity;\n}","UseCrudFiltersReturn":"/** Return type of the {@link useCrudFilters} hook. */\nexport interface UseCrudFiltersReturn {\n /** Current filter state */\n filters: FilterState;\n /** Update filters */\n setFilters: (filters: FilterState) => void;\n /** Whether favorites-only toggle is enabled */\n showFavoritesOnly: boolean;\n /** Toggle favorites-only filter */\n setShowFavoritesOnly: (show: boolean) => void;\n}","UseCrudPageSizeOptions":"/** Options for the {@link useCrudPageSize} hook. */\nexport interface UseCrudPageSizeOptions {\n /** Entity collection name (e.g., 'cars', 'products') */\n collection: string;\n /** Default page size when no preference is stored (default: 12) */\n defaultPageSize?: number;\n}","UseCrudPageSizeReturn":"/** Return type of the {@link useCrudPageSize} hook. */\nexport interface UseCrudPageSizeReturn {\n /** Current page size (from store or default) */\n pageSize: number;\n /** Persist a new page size preference */\n setPageSize: (pageSize: number) => void;\n}","ReferenceData":"/** Lookup map: collection → { id → displayLabel } */\nexport type ReferenceData = Record<string, Record<string, string>>;","ChildRowsParent":"/** Parent of the child rows: the child's reference field and the parent record id. */\nexport interface ChildRowsParent {\n /** Reference field of the child entity pointing at the parent (e.g. `'campaignId'`) */\n field: string;\n /** Parent record id, or `null` while the parent is not created yet (no rows) */\n value: string | null;\n}","UseChildRowsOptions":"/** Options for {@link useChildRows}. */\nexport interface UseChildRowsOptions {\n /**\n * Viewer role for the entity rules (access, editable fields). Default: the\n * joined form's `viewerRole`, else `'guest'` (most restrictive).\n */\n viewerRole?: string;\n /**\n * 1:1 extensions of the rows (e.g. `{ offer: { entity: productOfferEntity,\n * field: 'productId' } }`): read in one batched query per loaded set, merged\n * under the key (`row.offer.priceExclVat`), edited and validated as\n * `offer.priceExclVat`, written with the rows (update, or insert of a missing\n * extension). A viewer without access to an extension entity gets none of it.\n * Use the same `extend` on every instance of the same rows; keep its keys.\n * @since 0.2.5\n */\n extend?: EntityExtensions;\n}","UseChildRowsReturn":"/** Return type of {@link useChildRows}. */\nexport interface UseChildRowsReturn<T extends {\n id: string;\n}","ChildRowsAccess":"/** What the viewer may do on the child entity (`entity.access`). */\nexport interface ChildRowsAccess {\n /** Add rows (`access.create`) */\n create: boolean;\n /** Edit saved rows (`access.update`) */\n update: boolean;\n /** Remove saved rows (`access.delete`) */\n delete: boolean;\n}","isStorageUrl":"/**\n * Check if a URL is a valid storage URL (not a blob URL)\n * @param url - URL to check\n * @returns true if URL is a storage URL (https://), false if blob URL or invalid\n */\nexport declare function isStorageUrl(url: string): boolean;","validatePicture":"/**\n * Validate that a Picture object has valid storage URLs.\n * `thumbUrl` is optional — only validated when present (W9: false positive fix).\n * @param picture - Picture object to validate\n * @returns true if fullUrl is a valid storage URL (and thumbUrl, when present, is also valid)\n */\nexport declare function validatePicture(picture: Picture): boolean;","checkForBlobUrls":"/**\n * Recursively check for blob URLs in form data\n * Returns array of paths where blob URLs were found\n * @param data - Data to check (can be nested object/array)\n * @param path - Current path in the data structure (for error messages)\n * @returns Array of paths where blob URLs were found\n */\nexport declare function checkForBlobUrls(data: unknown, path?: string): string[];","hasBlobUrls":"/**\n * Check if form data contains any blob URLs\n * @param data - Form data to check\n * @returns true if any blob URLs found, false otherwise\n */\nexport declare function hasBlobUrls(data: unknown): boolean;","defineWorkflow":"/**\n * Define a multi-step workflow configuration.\n * Identity function that provides type safety and documentation.\n *\n * @param config - Workflow configuration\n * @returns The same config, typed as WorkflowConfig\n */\nexport declare function defineWorkflow(config: WorkflowConfig): WorkflowConfig;","useEntityWorkflow":"/**\n * Orchestrate a multi-step entity workflow.\n *\n * @param config - Workflow configuration from defineWorkflow()\n * @param options - Workflow options (callbacks, defaults)\n * @returns Workflow state and navigation methods\n */\nexport declare function useEntityWorkflow(config: WorkflowConfig, options?: UseEntityWorkflowOptions): EntityWorkflowReturn;","saveWorkflowState":"/**\n * Save workflow state to localStorage.\n */\nexport declare function saveWorkflowState(workflowId: string, state: PersistedWorkflowState): void;","loadWorkflowState":"/**\n * Load workflow state from localStorage.\n * Returns null if no saved state exists or parsing fails.\n */\nexport declare function loadWorkflowState(workflowId: string): PersistedWorkflowState | null;","clearWorkflowState":"/**\n * Clear persisted workflow state.\n */\nexport declare function clearWorkflowState(workflowId: string): void;","WorkflowConfig":"/** Full workflow configuration */\nexport interface WorkflowConfig {\n /** Unique workflow identifier */\n id: string;\n /** Workflow display name */\n name: string;\n /** Whether to persist progress to localStorage */\n persist?: boolean;\n /** Persistence key prefix (defaults to workflow id) */\n persistKey?: string;\n /** Workflow steps */\n steps: WorkflowStep[];\n /** Callback when all steps are completed */\n onComplete?: (allData: Record<string, unknown>) => void | Promise<void>;\n}","WorkflowStep":"/** Configuration for a single workflow step */\nexport interface WorkflowStep {\n /** Unique step identifier */\n id: string;\n /** Step title displayed in stepper */\n title: string;\n /** Step description (optional) */\n description?: string;\n /** Entity definition to use for this step's form */\n entity?: AnyEntity;\n /** Subset of entity fields to show in this step (if omitted, shows all) */\n fields?: string[];\n /** Whether the user can skip this step */\n allowSkip?: boolean;\n /** Conditions for step visibility (cross-step references use 'stepId.field' notation) */\n conditions?: {\n visible?: ConditionInput;\n };\n /** Field-level condition overrides for this step (e.g., make a field required based on previous step data) */\n fieldConditions?: Record<string, ConditionalBehavior>;\n /** Callback after step is completed */\n after?: (context: WorkflowStepContext) => void | Promise<void>;\n /** Custom render function for non-entity steps (e.g., review/summary) */\n custom?: (allData: Record<string, unknown>) => ReactNode;\n /** Custom validation for the step */\n validation?: {\n validate?: (data: Record<string, unknown>) => boolean | string;\n message?: string;\n };\n}","WorkflowStepContext":"/** Context passed to step callbacks */\nexport interface WorkflowStepContext {\n /** Data collected in the current step */\n data: Record<string, unknown>;\n /** All data collected across all steps */\n allData: Record<string, unknown>;\n /** Helper to prefill next step */\n next: {\n prefill: (values: Record<string, unknown>) => void;\n };\n}","UseEntityWorkflowOptions":"/** Options for useEntityWorkflow */\nexport interface UseEntityWorkflowOptions {\n /** Callback when all steps are completed and data is submitted */\n onComplete?: (allData: Record<string, unknown>) => void | Promise<void>;\n /** Callback when step changes */\n onStepChange?: (fromIndex: number, toIndex: number) => void;\n /** Default values to pre-fill across steps */\n defaultValues?: Record<string, unknown>;\n}","EntityWorkflowReturn":"/** Return type of useEntityWorkflow */\nexport interface EntityWorkflowReturn {\n /** Current step configuration */\n currentStep: WorkflowStep;\n /** Current step index (0-based, relative to visible steps) */\n currentStepIndex: number;\n /** Steps after condition filtering (only visible steps) */\n visibleSteps: WorkflowStep[];\n /** Data per step (keyed by step id) */\n stepData: Record<string, Record<string, unknown>>;\n /** Merged data across all steps */\n allData: Record<string, unknown>;\n /** Navigate to next step (validates current step first) */\n goNext: (currentStepData?: Record<string, unknown>) => Promise<boolean>;\n /** Navigate to previous step */\n goPrevious: () => void;\n /** Skip current step (only if allowSkip is true) */\n skipStep: () => void;\n /** Jump to a specific step by index */\n goToStep: (index: number) => void;\n /** Whether current step is the first visible step */\n isFirst: boolean;\n /** Whether current step is the last visible step */\n isLast: boolean;\n /** Whether the workflow is submitting (final step) */\n isSubmitting: boolean;\n /** Whether the current step can proceed (no validation errors) */\n canGoNext: boolean;\n /** Force save current state to localStorage */\n persistNow: () => void;\n /** Clear all persisted state */\n clearPersisted: () => void;\n /** Prefill data for a specific step */\n prefillStep: (stepId: string, values: Record<string, unknown>) => void;\n}","PersistedWorkflowState":"/** Persisted workflow state */\nexport interface PersistedWorkflowState {\n /** Current step index */\n currentStepIndex: number;\n /** Data per step (keyed by step id) */\n stepData: Record<string, Record<string, unknown>>;\n /** Timestamp of last save */\n savedAt: number;\n}","formatValue":"/**\n * Formats a value for display based on field type.\n * Text output (`asString`, `displayKey`, `displayValue`) is `formatFieldText` from\n * `@donotdev/core`, the same text entity SEO uses; other output is the registered\n * display formatter's (React).\n *\n * @param value - Field value to format\n * @param config - Field configuration\n * @param t - Translation function\n * @param options - Formatting options\n * @param options.compact - Use compact formatting (smaller images, plain spans for empty)\n * @param options.asString - Prefer string output when possible (e.g. for price in text placeholders)\n * @returns Formatted value as string or ReactElement\n */\nexport declare function formatValue(value: any, config: EntityField, t: (key: string, options?: Record<string, any>) => string, options?: DisplayFormatterOptions): string | ReactElement;","buildReferenceLabel":"/**\n * Build a display label for a referenced item.\n *\n * Resolution order:\n * 1. `labelFields` — join multiple fields (e.g. `['first_name', 'last_name']` → \"John Doe\")\n * 2. `displayField` — single field\n * 3. Auto-detect: first match from name/title/label/displayName\n * 4. Fallback: document `id`\n */\nexport declare function buildReferenceLabel(item: Record<string, any>, labelFields?: string[], displayField?: string): string;","matchesFilter":"/**\n * Pure filter matching utility — checks if an item value matches a filter value.\n *\n * Matching by the field type's filter type (`getFilterType`):\n * - `text`: case-insensitive substring; `address`: substring of `formatted_address`\n * - `select`, `multiselect`, `reference` (option codes, ids): exact, case-sensitive\n * equality. An array item value (multiselect) matches when any of its items is\n * selected; an array filter value selects any of its values (any-of). A value\n * holding `filter.wildcard` matches any selection.\n * - `range` (number, price amount, date): min/max; `rating`: minimum\n *\n * Null/undefined handling for range filters:\n * - MIN only → exclude null/undefined\n * - MAX only → include null/undefined\n * - MIN + MAX → exclude null/undefined\n *\n * Null/undefined handling for range filters:\n * - MIN only → exclude null/undefined\n * - MAX only → include null/undefined\n * - MIN + MAX → exclude null/undefined\n *\n * @param itemValue - The item's field value to test\n * @param filterValue - The filter criterion (string, range, date, array)\n * @param fieldType - Entity field type (e.g. 'text', 'number', 'date', 'price')\n * @param filterConfig - The field's `filter` config (`wildcard`); `applyFilters` passes it\n * @returns true if item passes the filter\n *\n * @example\n * ```typescript\n * import { matchesFilter } from '@donotdev/crud';\n *\n * matchesFilter('hello world', 'hello', 'text'); // true (contains)\n * matchesFilter(42, { min: '10', max: '50' }, 'number'); // true (in range)\n * matchesFilter(null, { min: '10' }, 'number'); // false (null excluded)\n * matchesFilter('toner_pad', 'toner', 'select'); // false (exact)\n * matchesFilter(['dry', 'oily'], ['oily', 'normal'], 'multiselect'); // true (any-of)\n * matchesFilter(['all'], 'dry', 'multiselect', { wildcard: 'all' }); // true\n * ```\n */\nexport declare function matchesFilter(itemValue: any, filterValue: string | {\n min?: string;\n max?: string;\n}","applyFilters":"/**\n * Apply filter state to items using entity field type metadata: every filter must\n * match ({@link matchesFilter} semantics per field type; the field's `filter.wildcard`\n * applies). Typically called automatically by `useCrudList`/`useCrudCardList` via `processed`.\n * Export available for advanced use cases (e.g. filtering outside React).\n *\n * @param items - Raw items array\n * @param filters - Current filter state from CrudStore\n * @param entity - Entity definition (for field type lookup)\n * @returns Filtered items\n *\n * @example\n * ```typescript\n * import { applyFilters } from '@donotdev/crud';\n * const filtered = applyFilters(items, { status: 'active' }, productEntity);\n * ```\n */\nexport declare function applyFilters<T extends Record<string, any>>(items: T[], filters: FilterState, entity: AnyEntity): T[];","applySearch":"/**\n * Apply search query to items.\n * Searches fields defined by `entity.search.fields` or auto-detected text-like visible fields.\n * Typically called automatically by `useCrudList`/`useCrudCardList` when `searchQuery` option is set.\n *\n * @param items - Items to search\n * @param query - Search query string (case-insensitive contains)\n * @param entity - Entity definition (for field config and search.fields lookup)\n * @returns Filtered items matching search\n *\n * @example\n * ```typescript\n * import { applySearch } from '@donotdev/crud';\n * const results = applySearch(items, 'bmw', carEntity);\n * ```\n */\nexport declare function applySearch<T extends Record<string, any>>(items: T[], query: string, entity: AnyEntity): T[];","applySort":"/**\n * Apply client-side sorting to items.\n * Accepts a field-based config or a custom comparator function.\n * Handles null/undefined values by sorting them last.\n * Supports number, string, Date, and price ({ amount }) comparisons.\n *\n * @param items - Items to sort\n * @param sort - Sort configuration (field + direction) or comparator function\n * @returns Sorted items (new array, original unchanged)\n *\n * @example\n * ```typescript\n * import { applySort } from '@donotdev/crud';\n * // Field-based\n * const sorted = applySort(items, { field: 'createdAt', direction: 'desc' });\n * // Custom comparator\n * const sorted = applySort(items, (a, b) => a.priority - b.priority);\n * ```\n */\nexport declare function applySort<T extends Record<string, any>>(items: T[], sort: ClientSort<T>): T[];","getSearchableFields":"/**\n * Returns the list of searchable field names for an entity.\n * Uses entity.search.fields if defined, otherwise auto-detects the visible fields\n * whose stored value is text (descriptor `value.kind === 'text'`, custom types\n * with a string `validation.schema` included; references are ids, not searched).\n *\n * @param entity - Entity definition\n * @returns Array of field names to search\n *\n * @version 0.2.0\n * @since 0.0.1\n */\nexport declare function getSearchableFields(entity: AnyEntity): string[];","ClientSort":"/**\n * Client-side sort: field-based config or custom comparator function.\n *\n * @example\n * ```typescript\n * // Field-based\n * const sort: ClientSort = { field: 'price', direction: 'desc' };\n *\n * // Custom comparator (multi-key, status priority, etc.)\n * const sort: ClientSort<Apartment> = (a, b) =>\n * STATUS_PRIORITY[a.status] - STATUS_PRIORITY[b.status]\n * || a.date.localeCompare(b.date);\n * ```\n */\nexport type ClientSort<T = Record<string, unknown>> = ClientSortConfig | ((a: T, b: T) => number);","ClientSortConfig":"/**\n * Sort configuration for client-side sorting.\n *\n * @example\n * ```typescript\n * const sort: ClientSortConfig = { field: 'price', direction: 'desc' };\n * ```\n */\nexport interface ClientSortConfig {\n field: string;\n direction?: 'asc' | 'desc';\n}","EMPTY_DATA":"export declare const EMPTY_DATA: Record<string, unknown>;","EMPTY_OPTIMISTIC":"export declare const EMPTY_OPTIMISTIC: Record<string, unknown>;","getCrudServiceInstance":"/**\n * Get the current CrudService instance (for use in callbacks)\n */\nexport declare function getCrudServiceInstance(): CrudServiceInterface | null;","UseCrudOptions":"/** Options for the {@link useCrud} hook. */\nexport interface UseCrudOptions<T> {\n schema?: dndevSchema<T>;\n /** Entity definition - auto-generates schema if schema not provided */\n entity?: AnyEntity;\n /** TanStack Query stale time in ms (default: Infinity) */\n staleTime?: number;\n /** Disable caching (bypass TanStack Query) */\n noCache?: boolean;\n /**\n * Read hooks (`useCrudDoc`, `useCrudList`, `useCrudCardList`): show fields defined\n * with `i18n: true` in the current language (default true). Edit forms pass false:\n * they must load and save the stored default-language values.\n *\n * @since 0.2.3\n */\n translate?: boolean;\n}","UseCrudReturn":"/**\n * CRUD API return type - Single Document & Actions\n */\nexport interface UseCrudReturn<T extends Record<string, unknown>> extends CrudAPI<T> {\n /**\n * Bulk write — inserts + updates + deletes in one adapter call. Partial\n * success: rows that are written stay written; rows that fail are listed in\n * `result.failed` (with the reason) and only they are reverted in the cache.\n * One audit entry, one rate-limit hit, one toast. Throws `BulkCollisionError`\n * when the payload carries the same id in two mutually-exclusive buckets.\n *\n * @example\n * ```tsx\n * const { bulk } = useCrud<Event>(eventEntity);\n * await bulk({ inserts, updates, deletes });\n * ```\n */\n bulk: (ops: BulkOperations<T>, options?: MutationOptions) => Promise<BulkResult>;\n /**\n * Ordered cross-collection bulk write, NOT a database transaction. Does NOT\n * require the hook's own entity to be one of the collections. Each batch\n * carries its own schemas. One optimistic pass, writes in topological waves.\n * Failure stops subsequent waves after all started writes settle, reverts\n * optimistic state, then refetches. Committed rows survive; the call rejects.\n *\n * @example\n * ```tsx\n * const { bulkAcross } = useCrud(customerEntity);\n * const customerId = generateUUID();\n * await bulkAcross([\n * { collection: 'customers', inserts: [{ id: customerId, ...customerData }], schemas: { create: customerSchema } },\n * { collection: 'inquiries', inserts: [{ customerId, ...inquiryData }], schemas: { create: inquirySchema }, dependsOn: ['customers'] },\n * ]);\n * ```\n */\n bulkAcross: (batches: BulkAcrossBatch[], options?: BulkAcrossOptions) => Promise<BulkAcrossResult>;\n /** @internal Collection name */\n _collection: string;\n /** @internal Generated schemas */\n _schemas: OperationSchemas | undefined;\n /** @internal Cache options */\n _cacheOptions: CacheOptions;\n /** @internal Scope configuration (for multi-tenancy) */\n _scope: ScopeConfig | undefined;\n}","useCrud":"/**\n * React hook for CRUD Actions & Single Documents\n *\n * Use this hook for:\n * - Checking feature status: `const status = useCrud('status');`\n * - Adding, Updating, Deleting items\n * - Fetching a single document\n *\n * **IMPORTANT: Always destructure the return value.**\n * The returned object is a new reference every render (same pattern as\n * TanStack Query). Individual methods (`get`, `query`, `add`, `update`,\n * `delete`) are `useCallback`-stable and safe as useEffect dependencies.\n * Putting the whole object in a dependency array causes an infinite loop.\n *\n * @example\n * ```tsx\n * // Correct — destructure, use stable methods in deps\n * const { query, add } = useCrud<Car>(carEntity);\n * useEffect(() => { query({ limit: 50 }).then(setRows); }, [query]);\n *\n * // WRONG — infinite loop (new object every render)\n * const crud = useCrud<Car>(carEntity);\n * useEffect(() => { crud.query(...); }, [crud]); // loop!\n * ```\n *\n * @template T - Document type for this collection\n * @param entityOrCollection - Entity definition or collection name\n * @param options - Configuration options\n * @returns CRUD Actions API (destructure before using in deps)\n */\nexport declare function useCrud(key: 'status'): FeatureStatus;","UseCrudListOptions":"/** Options for the {@link useCrudList} hook. */\nexport interface UseCrudListOptions<T> extends UseCrudOptions<T> {\n /** Automatically fetch data on mount (default: true) */\n enabled?: boolean;\n /**\n * Pagination mode:\n * - `'auto'` (default) — fetches up to 1000 client-side. If total > 1000, auto-switches to server pagination.\n * - `'client'` — forces client-side (fetches all, paginates in browser).\n * - `'server'` — forces server-side (cursor pagination, one page at a time).\n */\n pagination?: 'auto' | 'client' | 'server';\n /** Page number for server-side pagination (1-indexed, default: 1) */\n page?: number;\n /** Page size for server-side pagination (default: 10) */\n pageSize?: number;\n /** Where/orderBy/limit passed to list query (merged with pagination on server) */\n queryOptions?: QueryOptions;\n /** Client-side search query. Applied after filters. */\n searchQuery?: string;\n /** Client-side sort: field config, comparator function, or null to disable. Defaults to entity.defaultSort. */\n clientSort?: ClientSort<T> | ClientSortConfig | null;\n}","UseCrudListReturn":"/** Return type of the {@link useCrudList} hook. */\nexport interface UseCrudListReturn<T> {\n status: FeatureStatus;\n data: {\n items: T[];\n total?: number;\n } | null;\n /** Convenience: items array (data?.items ?? []) — raw + optimistic, no client processing */\n items: T[];\n /** Items after client-side filters + search + sort — ready to render */\n processed: T[];\n /** Count of items after filters + search (before pagination) */\n filteredTotal: number;\n /** True during initial fetch (show skeletons) */\n loading: boolean;\n /** True during background refetch (show subtle indicator) */\n fetching: boolean;\n error: Error | null;\n /** Manual refresh function */\n mutate: () => Promise<void>;\n /** Alias for mutate (manual refresh) */\n refresh: () => Promise<void>;\n isAvailable: boolean;\n /** Effective pagination mode after auto-detection ('client' or 'server'). */\n effectiveMode: 'client' | 'server';\n}","useCrudList":"/**\n * React hook for fetching and managing a list of entities\n *\n * Use this hook for:\n * - Admin tables\n * - Data grids\n * - Lists of items\n *\n * @template T - Document type\n * @param entityOrCollection - Entity definition or collection name\n * @param options - Configuration options\n * @returns List data and control methods\n *\n * @example\n * ```typescript\n * // Basic usage — processed has filters + search + sort applied\n * const { processed, loading, refresh } = useCrudList(carEntity, {\n * searchQuery: search,\n * });\n *\n * // With explicit sort\n * const { processed } = useCrudList(carEntity, {\n * searchQuery: search,\n * clientSort: { field: 'price', direction: 'asc' },\n * });\n * ```\n */\nexport declare function useCrudList<E extends AnyEntity>(entity: E, options?: UseCrudListOptions<InferEntityRow<E>>): UseCrudListReturn<InferEntityRow<E>>;","UseCrudDocOptions":"/**\n * Options for the {@link useCrudDoc} hook.\n * No `noCache`: the hook is a view of the shared cache entry (use `refresh()` to re-read).\n */\nexport interface UseCrudDocOptions<T> extends Omit<UseCrudOptions<T>, 'noCache'> {\n /** Fetch automatically when `id` is set (default: true) */\n enabled?: boolean;\n}","UseCrudDocReturn":"/** Return type of the {@link useCrudDoc} hook. */\nexport interface UseCrudDocReturn<T> {\n status: FeatureStatus;\n /**\n * The document, with pending optimistic changes applied.\n * null while loading, without `id`, or when no document exists.\n */\n data: T | null;\n /** True during the initial fetch, or while CRUD initializes with an `id` to read */\n loading: boolean;\n /** True during a background refetch (show a subtle indicator) */\n fetching: boolean;\n /** True once the read settled and no document exists for `id` */\n notFound: boolean;\n /** Read error (access denied, network, adapter) */\n error: Error | null;\n /** Re-read the document from the backend (no-op without `id` or while CRUD is unavailable) */\n refresh: () => Promise<void>;\n isAvailable: boolean;\n}","useCrudDoc":"/**\n * React hook for reading one document, reactive to the CRUD cache.\n *\n * Use this hook for:\n * - Detail / view pages\n * - Any component showing a document that may be edited elsewhere on the page\n *\n * Shares the cache key `['crud', collection, 'get', id]` with `useCrud().get()`\n * and every mutation, so an edit made anywhere shows up here without a refetch.\n * Pass `null` / `undefined` as `id` to wait (no fetch, not loading).\n *\n * @template T - Document type\n * @param entityOrCollection - Entity definition or collection name\n * @param id - Document id; null/undefined disables the read\n * @param options - Configuration options\n * @returns The document and its read state\n *\n * @example\n * ```tsx\n * const { data: car, loading, notFound } = useCrudDoc(carEntity, carId);\n * if (loading) return <Spinner />;\n * if (notFound) return <Text>{t('notFound')}</Text>;\n * return <Text>{car?.model}</Text>;\n * ```\n */\nexport declare function useCrudDoc<E extends AnyEntity>(entity: E, id: string | null | undefined, options?: UseCrudDocOptions<InferEntityRow<E>>): UseCrudDocReturn<InferEntityRow<E>>;","UseCrudCardListOptions":"/** Options for the {@link useCrudCardList} hook. */\nexport interface UseCrudCardListOptions<T> extends UseCrudOptions<T> {\n /** Automatically fetch data on mount (default: true) */\n enabled?: boolean;\n /** Where/orderBy/limit passed to listCard query */\n queryOptions?: QueryOptions;\n /** Client-side search query. Applied after filters. */\n searchQuery?: string;\n /** Client-side sort: field config, comparator function, or null to disable. Defaults to entity.defaultSort. */\n clientSort?: ClientSort<T> | ClientSortConfig | null;\n}","UseCrudCardListReturn":"/** Return type of the {@link useCrudCardList} hook. */\nexport interface UseCrudCardListReturn<T> {\n status: FeatureStatus;\n data: {\n items: T[];\n } | null;\n /** Convenience: items array (data?.items ?? []) — raw + optimistic, no client processing */\n items: T[];\n /** Items after client-side filters + search + sort — ready to render */\n processed: T[];\n /** Count of items after filters + search (before pagination) */\n filteredTotal: number;\n /** True during initial fetch (show skeletons) */\n loading: boolean;\n /** True during background refetch (show subtle indicator) */\n fetching: boolean;\n error: Error | null;\n /** Manual refresh function */\n mutate: () => Promise<void>;\n /** Alias for mutate (manual refresh) */\n refresh: () => Promise<void>;\n isAvailable: boolean;\n}","useCrudCardList":"/**\n * React hook for fetching a list of entities optimized for Card views\n *\n * Use this hook for:\n * - Public-facing grids\n * - Dashboard widgets\n * - Summary lists\n *\n * @template T - Document type\n * @param entityOrCollection - Entity definition or collection name\n * @param options - Configuration options\n * @returns List data and control methods\n *\n * @example\n * ```typescript\n * // processed has filters + search + sort applied\n * const { processed, loading } = useCrudCardList(carEntity, {\n * searchQuery: search,\n * });\n * ```\n */\nexport declare function useCrudCardList<E extends AnyEntity>(entity: E, options?: UseCrudCardListOptions<InferEntityRow<E>>): UseCrudCardListReturn<InferEntityRow<E>>;","CrudButton":"/**\n * Defensive button component for CRUD operations.\n *\n * Features (inherited from ActionButton):\n * - Auto-disables while loading\n * - Shows spinner + loadingText during action\n * - Optional confirmation dialog\n * - aria-busy for accessibility\n *\n * CRUD-specific features:\n * - **Auto-detects CRUD availability** - no manual prop needed\n * - Auto-disables when user not authenticated (if requiresAuth=true)\n *\n * @example\n * ```tsx\n * // `remove` = logical delete (status `deleted`); `delete` = hard delete\n * const { remove } = useCrud(itemEntity);\n * const user = useAuth('user');\n *\n * <CrudButton\n * action={() => remove(itemId)}\n * user={user}\n * loadingText=\"Deleting...\"\n * confirmText=\"Delete this item?\"\n * confirmTitle=\"Delete Item\"\n * onSuccess={() => refetch()}\n * variant=\"destructive\"\n * >\n * Delete\n * </CrudButton>\n * ```\n */\ndeclare function CrudButton<T = unknown>({ requiresAuth, user, disabled, children, ...actionButtonProps }","CrudButtonProps":"/** Props for {@link CrudButton}, an ActionButton variant that auto-checks CRUD availability. */\nexport interface CrudButtonProps<T = unknown> extends Omit<ActionButtonProps<T>, 'disabled'> {\n /**\n * Whether user authentication is required for this action.\n * When true, button is disabled if user is not authenticated.\n * @default true\n */\n requiresAuth?: boolean;\n /**\n * Current user object. Pass from useAuth('user').\n * Required when requiresAuth=true.\n */\n user?: unknown;\n /**\n * Additional disabled condition.\n */\n disabled?: boolean;\n /** Button content */\n children: ReactNode;\n}","FormFieldRenderer":"/**\n * FormFieldRenderer - renders fields via registry lookup\n */\nexport declare function FormFieldRenderer<T extends FieldType, TFieldValues extends FieldValues = FieldValues, TTransformedValues = TFieldValues>({ name, config, t, onlyOptions, ...props }","DisplayFieldRenderer":"/**\n * DisplayFieldRenderer - Renders a field value as read-only display\n *\n * Used when:\n * - editable: false (field is never editable)\n * - editable: 'admin' and viewer is not admin\n * - `EDITABLE.CREATE_ONLY` and viewing existing record\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function DisplayFieldRenderer<T extends FieldType = FieldType>({ name, config, value, t, }","DisplayFieldRendererProps":"/** Props for {@link DisplayFieldRenderer}, renders a field value as read-only text. */\nexport interface DisplayFieldRendererProps<T extends FieldType = FieldType> {\n /** Field identifier */\n name: string;\n /** Field configuration */\n config: EntityField<T>;\n /** Current field value */\n value: any;\n /** Translation function */\n t: (key: string, options?: Record<string, any>) => string;\n}","FormLayout":"/**\n * Enhanced FormLayout with modern UX features\n *\n * Features:\n * - Responsive design\n * - Loading states\n * - ARIA compliance\n * - Multiple variants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * - Action buttons\n * - Error handling\n */\ndeclare const FormLayout: <T extends FieldValues>({ title, onSubmit, children, formMethods, loading, submitText, cancelText, showCancel, onCancel, variant, columns, description, }","EntityFilters":"/**\n\n * Entity Filters Component - Auto-generates filter UI based on entity field types\n\n *\n\n * Features:\n\n * - Select/radio/multiselect/reference fields: multi-select Combobox (exact match,\n * OR within the field; reference options labelled like list cells; a field's\n * `filter.wildcard` value is never offered and matches every option)\n * - Text fields: Combobox with the unique values (substring match)\n\n * - Number fields: Min/Max inputs + Slider (2 rows)\n\n * - Date fields: Min/Max date pickers + shortcuts (2 rows)\n\n * - Filters wrap naturally with flex-wrap\n\n * - Clear individual filters (chips with option labels) or all filters\n * - URL sync of the entity collection's state (`urlSync`, CRUD.md \"Filters\")\n\n */\nexport declare function EntityFilters<T extends Record<string, any> & {\n id: string;\n}","EntityFiltersProps":"/** Props for {@link EntityFilters}, auto-generates filter UI based on entity field types. */\nexport interface EntityFiltersProps<T extends Record<string, any> & {\n id: string;\n}","YearFilter":"/**\n * YearFilter - Year range filter backed by RangeInput (type=\"number\").\n * Matches every other numeric range filter in the framework.\n */\nexport declare function YearFilter({ label, value, onChange, tCrud, minYear, maxYear, }","YearFilterValue":"export type YearFilterValue = {\n min?: string;\n max?: string;\n}","YearFilterProps":"export interface YearFilterProps {\n /** Field label */\n label: string;\n /** Current filter value */\n value?: YearFilterValue;\n /** Callback when filter value changes */\n onChange: (value: YearFilterValue | undefined) => void;\n /** Translation function for CRUD namespace */\n tCrud: (key: string, opts?: {\n defaultValue?: string;\n }) => string;\n /** Minimum year (from entity validation.min) */\n minYear?: number;\n /** Maximum year (from entity validation.max) */\n maxYear?: number;\n}","DisplayThumbnail":"/**\n * DisplayThumbnail - Renders thumbnail of first picture for list cards.\n * Used by CrudCard and any list view that needs a single thumbnail.\n */\nexport declare function DisplayThumbnail({ pictures, alt, aspectRatio, className, style, }","CrudCard":"/**\n * CrudCard — Presentational card from entity + item + field slots.\n * Navigation: `href` renders a real link (router-aware); `onClick` for other interactions.\n */\nexport declare function CrudCard({ item, entity, onClick, href, titleFields: titleFieldsProp, subtitleFields: subtitleFieldsProp, contentFields: contentFieldsProp, footerFields: footerFieldsProp, showDelete, renderActions, renderOverlay, className, }","SortableCardList":"/**\n * Cards in a grid, re-ordered by dragging (the whole card with a mouse, or after a short\n * hold on touch; only the handle with `handleOnly`), with the keyboard on the handle\n * (Space/Enter, arrows, Space/Enter; Escape cancels), or with the move-before /\n * move-after buttons. `onRemove` adds a remove button. Screen readers get translated\n * instructions and announcements. Stateless: the caller owns `items` and receives each\n * new order in `onReorder`, then saves it. Labels come from the `crud` namespace.\n *\n * @component\n * @example\n * ```tsx\n * <SortableCardList\n * items={productIds}\n * onReorder={setProductIds}\n * onRemove={(id) => setProductIds(productIds.filter((p) => p !== id))}\n * itemLabel={(id) => products.get(id)?.name ?? id}\n * renderItem={(id, index) => <Card title={`${index + 1}. ${products.get(id)?.name}`} />}\n * />\n * ```\n */\nexport declare function SortableCardList({ items, onReorder, renderItem, itemLabel, onRemove, handleOnly, disabled, cols, }","SortableCardListProps":"/** Props for {@link SortableCardList}. */\nexport interface SortableCardListProps {\n /** Item ids, in their current order. Ids must be unique. */\n items: readonly string[];\n /** Receives the new order after a drag or a move button. The caller owns and saves it. */\n onReorder: (items: string[]) => void;\n /** Card content for one item (title, image…). Remove goes through `onRemove`. */\n renderItem: (id: string, index: number) => ReactNode;\n /** Accessible name of an item, used by the handle, the buttons and the announcements. */\n itemLabel: (id: string) => string;\n /** Adds a remove (X) button at the end of each card's bar. */\n onRemove?: (id: string) => void;\n /**\n * Only the handle starts drags (mouse and touch). Use it when the card itself is a\n * link or a button; otherwise the whole card drags. @default false\n */\n handleOnly?: boolean;\n /** Disables dragging and the buttons. @default false */\n disabled?: boolean;\n /** Grid columns. @default [1, 2, 3, 4] */\n cols?: GridCols;\n}","ControlledFieldProps":"type ControlledFieldProps, type UncontrolledFieldProps, } from './FieldRegistry';","convertValidationRules":"/**\n\n * Convert validation rules to react-hook-form RegisterOptions\n\n */\nexport declare function convertValidationRules(validation: any): RegisterOptions;","convertPatternToRegex":"/**\n\n * Convert pattern string to RegExp\n\n */\nexport declare function convertPatternToRegex(pattern: string | RegExp | undefined): RegExp | undefined;","ControlledCheckboxField":"/**\n\n * ControlledCheckboxField - Explicit controlled component for checkbox inputs\n\n * Uses standard React Hook Form Controller pattern\n\n */\nexport declare function ControlledCheckboxField(props: ControlledFieldProps): ReactElement;","ControlledCurrencyField":"/**\n * ControlledCurrencyField - Explicit controlled component for currency inputs\n * Uses CurrencyFieldComponent with currency code from field options\n */\nexport declare function ControlledCurrencyField(props: ControlledFieldProps): ReactElement;","ControlledNumberField":"/**\n\n * ControlledNumberField - Explicit controlled component for number inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n */\nexport declare function ControlledNumberField(props: ControlledFieldProps): ReactElement;","ControlledPasswordField":"/**\n\n * ControlledPasswordField - Explicit controlled component for password inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n */\nexport declare function ControlledPasswordField(props: ControlledFieldProps): ReactElement;","ControlledPriceField":"/**\n * ControlledPriceField - Controlled component for structured price (amount, currency, VAT, discount %).\n * Value: { amount, currency?, vatIncluded?, discountPercent? }.\n */\nexport declare function ControlledPriceField(props: ControlledFieldProps): ReactElement;","ControlledPhoneField":"/**\n\n * ControlledPhoneField - Explicit controlled component for phone inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n */\nexport declare function ControlledPhoneField(props: ControlledFieldProps): ReactElement;","ControlledRangeField":"/**\n\n * ControlledRangeField - Explicit controlled component for range inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n */\nexport declare function ControlledRangeField(props: ControlledFieldProps): ReactElement;","ControlledRatingField":"/**\n * ControlledRatingField - Controlled component for star rating inputs\n * Wraps RatingFieldComponent with react-hook-form Controller\n */\nexport declare function ControlledRatingField(props: ControlledFieldProps): ReactElement;","ControlledDurationField":"/**\n * ControlledDurationField - Controlled component for duration (minutes) with preset chips + custom slider\n */\nexport declare function ControlledDurationField(props: ControlledFieldProps): ReactElement;","ControlledSwitchField":"/**\n\n * ControlledSwitchField - Switch with custom value mapping\n\n * Supports uncheckedValue/checkedValue for string values like 'Manual'/'Automatic'\n\n */\nexport declare function ControlledSwitchField(props: ControlledFieldProps): ReactElement;","ControlledTextField":"/**\n * ControlledTextField - Text input controlled by react-hook-form\n *\n * Uses Controller to keep value in sync with RHF state.\n * register() is incompatible with TextFieldComponent's controlled\n * `<Input value={value}>` — default values are overwritten on re-render.\n */\nexport declare function ControlledTextField(props: ControlledFieldProps): ReactElement;","ControlledTextareaField":"/**\n\n * ControlledTextareaField - Explicit controlled component for textarea inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n */\nexport declare function ControlledTextareaField(props: ControlledFieldProps): ReactElement;","ControlledGdprConsentField":"/**\n * ControlledGdprConsentField - GDPR-compliant consent checkbox with automatic label generation\n * Uses standard React Hook Form Controller pattern\n */\nexport declare function ControlledGdprConsentField(props: ControlledFieldProps): ReactElement;","ControlledComboboxField":"/**\n\n * ControlledComboboxField - Explicit controlled component for combobox inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n * Handles dynamic options and creatable mode\n\n */\nexport declare function ControlledComboboxField(props: ControlledFieldProps): ReactElement;","ControlledDropdownField":"/**\n * ControlledDropdownField - Explicit controlled component for select/dropdown inputs\n *\n * Forwards Controller's ref for focus/validation (simple input)\n *\n * Handles dynamic options (function-based) and dependsOn logic\n */\nexport declare function ControlledDropdownField(props: ControlledFieldProps): ReactElement;","ControlledMultiDropdownField":"/**\n * ControlledMultiDropdownField - Explicit controlled component for multiselect inputs\n *\n * Forwards Controller's ref for focus/validation (simple input)\n *\n * Handles dynamic options\n */\nexport declare function ControlledMultiDropdownField(props: ControlledFieldProps): ReactElement;","ControlledRadioField":"/**\n * ControlledRadioField - Explicit controlled component for radio inputs\n *\n * Forwards Controller's ref for focus/validation (simple input)\n *\n * Handles dynamic options\n */\nexport declare function ControlledRadioField(props: ControlledFieldProps): ReactElement;","ControlledReferenceField":"/**\n * ControlledReferenceField — Controlled component for `type: 'reference'` fields.\n *\n * Reads `validation.reference` to determine the collection, auto-fetches items\n * via `useCrudList`, and renders the existing `ReferenceFieldComponent` (Combobox).\n */\nexport declare function ControlledReferenceField(props: ControlledFieldProps): ReactElement;","ControlledYearField":"/**\n * ControlledYearField - Year input using Combobox (type or select)\n * Auto-generates year options from validation.min/max or defaults to 1900-2100\n * Stores value as number, displays as string in combobox\n */\nexport declare function ControlledYearField(props: ControlledFieldProps): ReactElement;","ControlledDocumentField":"/**\n\n * ControlledDocumentField - Explicit controlled component for document uploads\n\n * NO ref forwarding - complex component (forwardRef) handles its own refs\n\n */\nexport declare function ControlledDocumentField(props: ControlledFieldProps): ReactElement;","ControlledFileField":"/**\n\n * ControlledFileField - Explicit controlled component for file uploads\n\n * NO ref forwarding - complex component (forwardRef) handles its own refs\n\n */\nexport declare function ControlledFileField(props: ControlledFieldProps): ReactElement;","ControlledImageField":"/**\n\n * ControlledImageField - Explicit controlled component for image uploads\n\n * NO ref forwarding - complex component (forwardRef) handles its own refs\n\n */\nexport declare function ControlledImageField(props: ControlledFieldProps): ReactElement;","ControlledMultiDocumentField":"/**\n\n * ControlledMultiDocumentField - Explicit controlled component for multiple document uploads\n\n * NO ref forwarding - complex component (forwardRef) handles its own refs\n\n */\nexport declare function ControlledMultiDocumentField(props: ControlledFieldProps): ReactElement;","ControlledMultiFileField":"/**\n\n * ControlledMultiFileField - Explicit controlled component for multiple file uploads\n\n * NO ref forwarding - complex component (forwardRef) handles its own refs\n\n */\nexport declare function ControlledMultiFileField(props: ControlledFieldProps): ReactElement;","ControlledMultiImageField":"/**\n\n * ControlledMultiImageField - Explicit controlled component for multiple image uploads\n\n * NO ref forwarding - complex component (forwardRef) handles its own refs\n\n */\nexport declare function ControlledMultiImageField(props: ControlledFieldProps): ReactElement;","ControlledAddressField":"/**\n\n * ControlledAddressField - Explicit controlled component for address inputs\n\n * NO ref forwarding - complex component handles its own refs\n\n */\nexport declare function ControlledAddressField(props: ControlledFieldProps): ReactElement;","ControlledFieldArrayField":"/**\n * ControlledFieldArrayField — nested object array with per-row sub-fields.\n * Each sub-field is rendered via the field type registry so custom types work automatically.\n * Uses the supplied translator for child fields and CRUD field-array control/diagnostic text.\n */\nexport declare function ControlledFieldArrayField(props: ControlledFieldProps): ReactElement;","ControlledDateField":"/**\n\n * ControlledDateField - Explicit controlled component for date inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n */\nexport declare function ControlledDateField(props: ControlledFieldProps): ReactElement;","ControlledGeoPointField":"/**\n\n * ControlledGeoPointField - Explicit controlled component for geographic coordinates\n\n * NO ref forwarding - complex component handles its own refs\n\n */\nexport declare function ControlledGeoPointField(props: ControlledFieldProps): ReactElement;","ControlledMapField":"/**\n\n * ControlledMapField - Explicit controlled component for map data inputs\n\n * NO ref forwarding - complex component handles its own refs\n\n */\nexport declare function ControlledMapField(props: ControlledFieldProps): ReactElement;","ControlledMultiInputField":"/**\n\n * ControlledMultiInputField - Explicit controlled component for array of text inputs\n\n * NO ref forwarding - complex component handles its own refs\n\n */\nexport declare function ControlledMultiInputField(props: ControlledFieldProps): ReactElement;","ControlledRichTextField":"/**\n\n * ControlledRichTextField - Explicit controlled component for rich text editor\n\n * NO ref forwarding - complex component handles its own refs\n\n */\nexport declare function ControlledRichTextField(props: ControlledFieldProps): ReactElement;","ControlledTimestampField":"/**\n\n * ControlledTimestampField - Explicit controlled component for timestamp inputs\n\n * Forwards Controller's ref for focus/validation (simple input)\n\n */\nexport declare function ControlledTimestampField(props: ControlledFieldProps): ReactElement;","AvatarFieldComponent":"/**\n * AvatarFieldComponent - Input field for avatar URLs with preview\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const AvatarFieldComponent: ComponentType<AvatarFieldComponentProps>;","AvatarFieldComponentProps":"export interface AvatarFieldComponentProps extends Omit<ComponentProps<typeof Input>, 'value' | 'onChange'> {\n /** Field configuration */\n config: EntityField<'avatar'>;\n /** Current value */\n value: string;\n /** Change handler */\n onChange: (value: string) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Translation function */\n t: (key: string, options?: Record<string, any>) => string;\n}","BadgeFieldComponent":"/**\n * BadgeFieldComponent - Input field for badge text with preview\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const BadgeFieldComponent: ComponentType<BadgeFieldComponentProps>;","BadgeFieldComponentProps":"export interface BadgeFieldComponentProps extends Omit<ComponentProps<typeof Input>, 'value' | 'onChange'> {\n /** Field configuration */\n config: EntityField<'badge'>;\n /** Current value */\n value: string;\n /** Change handler */\n onChange: (value: string) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Translation function */\n t: (key: string, options?: Record<string, any>) => string;\n /** Badge variant */\n variant?: 'default' | 'secondary' | 'destructive' | 'outline';\n}","TextFieldComponent":"/**\n * Enhanced TextFieldComponent with modern UX features\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * Features:\n * - Full ARIA compliance\n * - Loading states with spinner\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * - Character counting\n * - Error handling\n * - Required field indicators\n * - Responsive design\n *\n * @param props - TextFieldComponentProps\n * @returns JSX.Element\n */\ndeclare function TextFieldComponent({ label, info, value, onChange, error, helperText, type, loading, maxLength, showCharCount, required, disabled, className, ref, ...props }","TextFieldComponentProps":"export interface TextFieldComponentProps extends Omit<ComponentProps<typeof Input>, 'value' | 'onChange'> {\n /** Field label */\n label: string;\n /** Help text (entity field `hint`): an (i) after the label shows it */\n info?: string;\n /** Current value */\n value?: string;\n /** Change handler */\n onChange: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;\n /** Error message */\n error?: string;\n /** Helper text to display */\n helperText?: string;\n /** Input type (default: text) */\n type?: string;\n /** Loading state */\n loading?: boolean;\n /** Maximum character count */\n maxLength?: number;\n /** Show character count */\n showCharCount?: boolean;\n /** Required field indicator */\n required?: boolean;\n /** Disabled state */\n disabled?: boolean;\n}","NumberFieldComponent":"/**\n * NumberFieldComponent renders a styled number input with validation.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - NumberFieldComponentProps\n * @returns JSX.Element\n */\ndeclare const NumberFieldComponent: ComponentType<NumberFieldComponentProps>;","NumberFieldComponentProps":"export interface NumberFieldComponentProps {\n /** Label for the field */\n label: string;\n /** Help text (entity field `hint`): an (i) after the label shows it */\n info?: string;\n /** Current numeric value */\n value?: number;\n /** Change handler */\n onChange: (event: ChangeEvent<HTMLInputElement>) => void;\n /** Whether the field is in error state */\n error?: boolean;\n /** Helper text to display */\n helperText?: string;\n /** Minimum allowed value */\n min?: number;\n /** Maximum allowed value */\n max?: number;\n /** Step value for increments/decrements */\n step?: number;\n /** Whether the field is disabled */\n disabled?: boolean;\n /** Whether the field is required */\n required?: boolean;\n /** Optional className */\n className?: string;\n /** Input mask type: 'currency' (commas + 2 decimals), 'mileage' (commas, no decimals), or 'number' (no formatting) */\n mask?: 'currency' | 'mileage' | 'number';\n}","DateFieldComponent":"/**\n * DateFieldComponent renders a date (or related) input field\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const DateFieldComponent: ComponentType<DateFieldComponentProps>;","DateFieldComponentProps":"export interface DateFieldComponentProps {\n /** Field label */\n label: string;\n /** Help text (entity field `hint`): an (i) after the label shows it */\n info?: string;\n /** Value as an ISO string or null */\n value?: string | null;\n /** Change handler emitting an ISO string or null */\n onChange: (date: string | null) => void;\n /** Error message (string = message to display, falsy = no error) */\n error?: string;\n /** Helper text to display */\n helperText?: string;\n /**\n * Input mode: \"date\", \"datetime-local\", \"month\", \"time\", or \"week\".\n * This controls both the input type and the formatting of the displayed value.\n */\n mode?: 'date' | 'datetime-local' | 'month' | 'time' | 'week';\n /** Whether the field is required */\n required?: boolean;\n}","CheckboxFieldComponent":"/**\n * CheckboxFieldComponent renders a labeled checkbox.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - CheckboxFieldComponentProps\n * @returns JSX.Element\n */\ndeclare const CheckboxFieldComponent: ComponentType<CheckboxFieldComponentProps>;","CheckboxFieldComponentProps":"export interface CheckboxFieldComponentProps {\n /** The label for the checkbox - can be a string or ReactNode (e.g., with links) */\n label: string | ReactNode;\n /** Whether the checkbox is checked */\n checked?: boolean;\n /** Change handler for the checkbox */\n onChange?: (event: ChangeEvent<HTMLInputElement>) => void;\n /** Whether the field is required */\n required?: boolean;\n}","ComboboxComponent":"/**\n * ComboboxComponent renders a searchable combobox with autocomplete.\n * Input + Dropdown pattern: user types in input, dropdown appears below.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - ComboboxComponentProps\n * @returns JSX.Element\n */\ndeclare const ComboboxComponent: ComponentType<ComboboxComponentProps>;","ComboboxComponentProps":"export interface ComboboxComponentProps {\n /** Field label */\n label: string;\n /** Help text (entity field `hint`): an (i) after the label shows it */\n info?: string;\n /** Current value */\n value?: string;\n /** Available options */\n options: {\n value: string;\n label: string;\n }[];\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Change handler - accepts both event and direct value */\n onChange?: (value: string | ChangeEvent<HTMLSelectElement>) => void;\n /** Blur handler */\n onBlur?: () => void;\n /** Whether the field is required */\n required?: boolean;\n /** Placeholder text */\n placeholder?: string;\n /** Translation namespace for placeholder fallback (default: 'dndev') */\n translationNamespace?: string;\n /** Translation key for placeholder fallback (default: 'actions.select') */\n placeholderKey?: string;\n /** Default placeholder text if translation not found (default: 'Select') */\n placeholderDefault?: string;\n /** Enable creating new values */\n creatable?: boolean;\n /** Label for create option */\n createLabel?: string;\n /** Empty message */\n emptyMessage?: string;\n}","DropdownComponent":"/**\n * DropdownComponent renders a styled select input.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - DropdownComponentProps\n * @returns JSX.Element\n */\ndeclare const DropdownComponent: ComponentType<DropdownComponentProps>;","DropdownComponentProps":"export interface DropdownComponentProps {\n /** Field label */\n label: string;\n /** Help text (entity field `hint`): an (i) after the label shows it */\n info?: string;\n /** Current value */\n value?: string | number | boolean;\n /** Available options */\n options: {\n value: string | number | boolean;\n label: string;\n }[];\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Change handler - accepts both event and direct value */\n onChange?: (value: string | ChangeEvent<HTMLSelectElement>) => void;\n /** Blur handler */\n onBlur?: () => void;\n /** Whether the field is required */\n required?: boolean;\n}","MultiDropdownComponent":"/**\n * MultiDropdownComponent renders a multi-select dropdown field using Radix UI's Select.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - MultiDropdownComponentProps\n * @returns JSX.Element\n */\ndeclare const MultiDropdownComponent: ComponentType<MultiDropdownComponentProps>;","MultiDropdownComponentProps":"export interface MultiDropdownComponentProps {\n /** Label for the dropdown */\n label: string;\n /** Help text (entity field `hint`): an (i) after the label shows it */\n info?: string;\n /** Current selected values */\n value?: string[];\n /** Options for selection */\n options: {\n value: string | number | boolean;\n label: string;\n }[];\n /** Whether an error exists */\n error?: boolean;\n /** Helper text for the field */\n helperText?: string;\n /** Change handler - accepts both event and direct value */\n onChange: (value: string[] | ChangeEvent<HTMLSelectElement>) => void;\n /** Blur handler */\n onBlur?: () => void;\n /** Whether the field is required */\n required?: boolean;\n /** Additional CSS classes */\n className?: string;\n}","FileFieldComponent":"/**\n * FileFieldComponent - Generic file upload with storage\n * Features: Deferred upload, progress indicator, multiple files, drag-and-drop\n */\ndeclare const FileFieldComponent: import(\"react\").ForwardRefExoticComponent<FileFieldComponentProps & import(\"react\").RefAttributes<FileFieldComponentRef>>;","FileFieldComponentProps":"export interface FileFieldComponentProps {\n /** Field name (for upload registration) */\n name?: string;\n /** Field label */\n label: string;\n /** Current value - FileAsset for single, FileAsset[] for multiple */\n value?: FileAsset | FileAsset[] | null;\n /** Change handler */\n onChange: (value: FileAsset | FileAsset[] | null) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Accept attribute for file input (MIME types or extensions) */\n accept?: string;\n /** Multiple files mode */\n multiple?: boolean;\n /** Maximum number of files (multiple mode only) */\n maxFiles?: number;\n /** Maximum file size in bytes (default: 50MB) */\n maxSize?: number;\n /** Folder path within the storage bucket. Omit to upload to bucket root. */\n storagePath?: string;\n /** Whether the field is required */\n required?: boolean;\n}","ImageFieldComponent":"/**\n * ImageFieldComponent - Image upload with viewer dialog for crop/rotate and drag-to-reorder\n */\ndeclare const ImageFieldComponent: import(\"react\").ForwardRefExoticComponent<ImageFieldComponentProps & import(\"react\").RefAttributes<ImageFieldComponentRef>>;","ImageFieldComponentProps":"export interface ImageFieldComponentProps {\n /** Field name (for upload registration) */\n name?: string;\n /** Field label */\n label: string;\n /** Current value - Picture for single, Picture[] for multiple */\n value?: Picture | Picture[] | null;\n /** Change handler */\n onChange: (value: Picture | Picture[] | null) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Multiple images mode */\n multiple?: boolean;\n /** Maximum number of images (multiple mode only) */\n maxFiles?: number;\n /** Maximum file size in bytes (default: 10MB) */\n maxSize?: number;\n /** Folder path within the storage bucket. Omit to upload to bucket root. */\n storagePath?: string;\n /** Whether the field is required */\n required?: boolean;\n /** Camera capture mode: 'environment' (back), 'user' (front), or undefined (browser decides) */\n capture?: 'environment' | 'user';\n /**\n * WebP processing applied before upload (sizes, ratio, quality, background).\n * Omit for the defaults: 1920x1440 full + 300x225 thumb, 4:3 center crop,\n * quality 0.85 / 0.65, white background. Entity fields set it through\n * `options.fieldSpecific.image`.\n */\n processing?: Omit<ProcessImageOptions, 'crop'>;\n}","DocumentFieldComponent":"/**\n * DocumentFieldComponent - Document-specific upload with storage\n * Features: Restricted to document types, PDF preview, deferred upload\n */\ndeclare const DocumentFieldComponent: import(\"react\").ForwardRefExoticComponent<DocumentFieldComponentProps & import(\"react\").RefAttributes<DocumentFieldComponentRef>>;","DocumentFieldComponentProps":"export interface DocumentFieldComponentProps {\n /** Field name (for upload registration) */\n name?: string;\n /** Field label */\n label: string;\n /** Current value - FileAsset for single, FileAsset[] for multiple */\n value?: FileAsset | FileAsset[] | null;\n /** Change handler */\n onChange: (value: FileAsset | FileAsset[] | null) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Multiple files mode */\n multiple?: boolean;\n /** Maximum number of files (multiple mode only) */\n maxFiles?: number;\n /** Maximum file size in bytes (default: 25MB for documents) */\n maxSize?: number;\n /** Folder path within the storage bucket. Omit to upload to bucket root. */\n storagePath?: string;\n /** Whether the field is required */\n required?: boolean;\n /** Enable PDF preview */\n enablePreview?: boolean;\n}","TextAreaComponent":"/**\n * Enhanced TextAreaComponent with modern UX features\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * Features:\n * - Full ARIA compliance\n * - Auto-resize functionality\n * - Loading states with spinner\n * - Character counting\n * - Error handling\n * - Required field indicators\n * - Responsive design\n *\n * @param props - TextAreaComponentProps\n * @returns JSX.Element\n */\ndeclare const TextAreaComponent: ComponentType<TextAreaComponentProps>;","TextAreaComponentProps":"export interface TextAreaComponentProps extends Omit<ComponentProps<typeof Textarea>, 'value' | 'onChange'> {\n /** Field label */\n label: string;\n /** Help text (entity field `hint`): an (i) after the label shows it */\n info?: string;\n /** Current value */\n value?: string;\n /** Change handler */\n onChange: (event: ChangeEvent<HTMLTextAreaElement>) => void;\n /** Error message */\n error?: string;\n /** Helper text to display */\n helperText?: string;\n /** Number of rows (default: 3) */\n rows?: number;\n /** Loading state */\n loading?: boolean;\n /** Maximum character count */\n maxLength?: number;\n /** Show character count */\n showCharCount?: boolean;\n /** Auto-resize based on content */\n autoResize?: boolean;\n /** Required field indicator */\n required?: boolean;\n /** Disabled state */\n disabled?: boolean;\n}","SwitchFieldComponent":"/**\n * SwitchFieldComponent renders a switch field for CRUD forms.\n * Displays field label, delegates switch rendering to Switch component.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - SwitchFieldComponentProps\n * @returns JSX.Element\n */\ndeclare const SwitchFieldComponent: ComponentType<SwitchFieldComponentProps>;","SwitchFieldComponentProps":"export interface SwitchFieldComponentProps {\n /** Field label */\n label: string;\n /** Whether the toggle is checked */\n checked?: boolean;\n /** Change handler */\n onChange?: (event: ChangeEvent<HTMLInputElement>) => void;\n /** Label for unchecked state (e.g., \"Manual\") */\n uncheckedLabel?: string;\n /** Label for checked state (e.g., \"Automatic\") */\n checkedLabel?: string;\n /** Helper text */\n helperText?: string;\n}","RadioFieldComponent":"declare const RadioFieldComponent: ComponentType<RadioFieldComponentProps>;","RadioFieldComponentProps":"export interface RadioFieldComponentProps {\n /** Field label */\n label: string;\n /** Selected value */\n value?: string;\n /** Change handler - accepts both event and direct value */\n onChange: (value: string | ChangeEvent<HTMLInputElement>) => void;\n /** Available radio options */\n options: RadioOption[];\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Whether the field is required */\n required?: boolean;\n}","RangeFieldComponent":"/**\n * RangeFieldComponent renders a slider input with optional value display\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - RangeFieldComponentProps\n * @returns JSX.Element\n */\ndeclare const RangeFieldComponent: ComponentType<RangeFieldComponentProps>;","RangeFieldComponentProps":"export interface RangeFieldComponentProps {\n /** Label for the field */\n label: string;\n /** Current numeric value */\n value?: number;\n /** Change handler - accepts both event and direct value */\n onChange: (value: number | ChangeEvent<HTMLInputElement>) => void;\n /** Whether the field is in error state */\n error?: boolean;\n /** Helper text to display */\n helperText?: string;\n /** Minimum allowed value */\n min?: number;\n /** Maximum allowed value */\n max?: number;\n /** Step value for increments */\n step?: number;\n /** Whether the field is disabled */\n disabled?: boolean;\n /** Whether the field is required */\n required?: boolean;\n /** Show value label */\n showValue?: boolean;\n}","RatingFieldComponent":"/**\n * RatingFieldComponent renders a star rating input\n *\n * Used by the built-in entity field type `rating`. Supports whole-number input\n * (1–max), optional fractional display, and optional numeric value display.\n *\n * @see Entity field type: `rating` (registered in registerBuiltinFieldTypes)\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const RatingFieldComponent: ComponentType<RatingFieldComponentProps>;","RatingFieldComponentProps":"export interface RatingFieldComponentProps {\n /** Label for the field */\n label: string;\n /** Current rating value (1-5) */\n value?: number;\n /** Change handler */\n onChange: (value: number) => void;\n /** Whether the field is in error state */\n error?: boolean;\n /** Helper text to display */\n helperText?: string;\n /** Maximum rating value */\n max?: number;\n /** Whether the field is disabled */\n disabled?: boolean;\n /** Whether the field is required */\n required?: boolean;\n /** Read-only mode (display only) */\n readonly?: boolean;\n /** Show numeric value next to stars */\n showValue?: boolean;\n}","DurationFieldComponent":"/**\n * DurationFieldComponent - Preset chips + Custom slider for duration (minutes)\n *\n * Used by the built-in entity field type `duration`.\n *\n * @see Entity field type: `duration` (registered in registerBuiltinFieldTypes)\n */\ndeclare const DurationFieldComponent: ComponentType<DurationFieldComponentProps>;","DurationFieldComponentProps":"export interface DurationFieldComponentProps {\n /** Label for the field */\n label: string;\n /** Current value in minutes */\n value?: number;\n /** Change handler (minutes) */\n onChange: (value: number) => void;\n /** Whether the field is in error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Whether the field is disabled */\n disabled?: boolean;\n /** Whether the field is required */\n required?: boolean;\n /** Read-only mode (display only) */\n readonly?: boolean;\n /** Min minutes for custom slider (default 0) */\n min?: number;\n /** Max minutes for custom slider (default 480 = 8h) */\n max?: number;\n /** Step for custom slider (default 5) */\n step?: number;\n /**\n * Translation function for preset labels (e.g. t('crud:duration.30m')).\n * Receives i18n key; return value is the chip label.\n */\n t?: (key: string, options?: Record<string, unknown>) => string;\n}","DURATION_PRESETS":"/** Preset durations in minutes */\nexport declare const DURATION_PRESETS: readonly [15, 30, 45, 60, 90, 120, 150, 180];","PhoneNumberComponent":"/**\n * PhoneNumberComponent renders a single phone number input with country code selector.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const PhoneNumberComponent: ComponentType<PhoneNumberComponentProps>;","PhoneNumberComponentProps":"/** Props for the phone input, including native form identity, blur, and ref wiring. */\nexport interface PhoneNumberComponentProps {\n /** Name of the telephone input in the form */\n name?: ComponentProps<typeof Input>['name'];\n /** Blur handler for the telephone input */\n onBlur?: ComponentProps<typeof Input>['onBlur'];\n /** React 19 native ref targeting the telephone input */\n ref?: ComponentProps<typeof Input>['ref'];\n /** Field label */\n label: string;\n /** Help text (entity field `hint`): an (i) after the label shows it */\n info?: string;\n /** Current phone number value (full number with country code) */\n value?: string;\n /** Change handler */\n onChange: (event: ChangeEvent<HTMLInputElement>) => void;\n /** Error message */\n error?: string;\n /** Helper text */\n helperText?: string;\n /** Required field indicator */\n required?: boolean;\n /** Disabled state */\n disabled?: boolean;\n /** Default country code (e.g., 'FR' for +33) */\n defaultCountry?: string;\n /** Whether to show country flags */\n showFlags?: boolean;\n /** Preferred country codes to show at the top (e.g., ['FR', 'US', 'GB']) */\n preferredCountries?: string[];\n /** Custom list of country codes to show (if provided, only these countries are shown) */\n countries?: string[];\n}","GeoPointFieldComponent":"/**\n * GeoPointFieldComponent renders latitude and longitude input fields\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const GeoPointFieldComponent: ComponentType<GeoPointFieldComponentProps>;","GeoPointFieldComponentProps":"export interface GeoPointFieldComponentProps {\n /** Field label */\n label: string;\n /** Current coordinates */\n value?: GeoPoint;\n /** Change handler - accepts both event and direct value */\n onChange: (point: GeoPoint | ChangeEvent<HTMLInputElement>) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Whether the field is disabled */\n disabled?: boolean;\n /** Whether the field is required */\n required?: boolean;\n}","GeoPoint":"export interface GeoPoint {\n lat: number;\n lng: number;\n}","MapFieldComponent":"declare const MapFieldComponent: ComponentType<MapFieldComponentProps>;","MapFieldComponentProps":"export interface MapFieldComponentProps {\n /** Field label */\n label: string;\n /** Map data as an object */\n value?: Record<string, any>;\n /** Change handler - accepts both event and direct value */\n onChange: (value: Record<string, any> | ChangeEvent<HTMLInputElement>) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Whether the field is required */\n required?: boolean;\n}","TimestampFieldComponent":"declare const TimestampFieldComponent: ComponentType<TimestampFieldComponentProps>;","TimestampFieldComponentProps":"export interface TimestampFieldComponentProps {\n /** Field label */\n label: string;\n /** Help text (entity field `hint`): an (i) after the label shows it */\n info?: string;\n /** Current Date value or null */\n value?: Date | null;\n /** Change handler - accepts both event and direct value */\n onChange: (date: Date | null | ChangeEvent<HTMLInputElement>) => void;\n /** Error message */\n error?: string;\n /** Helper text */\n helperText?: string;\n /** Mode for underlying date field (defaults to \"datetime-local\") */\n mode?: 'datetime-local' | 'date';\n /** Whether the field is required */\n required?: boolean;\n}","MultiInputTextFieldComponent":"declare const MultiInputTextFieldComponent: ComponentType<MultiInputTextFieldComponentProps>;","MultiInputTextFieldComponentProps":"export interface MultiInputTextFieldComponentProps {\n /** Label for the input field */\n label: string;\n /** Help text (entity field `hint`): an (i) after the label shows it */\n info?: string;\n /** Array of current text entries */\n value: string[];\n /** Handler for value changes - accepts both event and direct value */\n onChange: (value: string[] | ChangeEvent<HTMLInputElement>) => void;\n /** Optional classname for styling */\n className?: string;\n /** Whether the field is required */\n required?: boolean;\n}","ButtonFieldComponent":"declare const ButtonFieldComponent: ComponentType<ButtonFieldComponentProps>;","ButtonFieldComponentProps":"export interface ButtonFieldComponentProps {\n /** The button label */\n label: string;\n /** The button type: submit, reset, or button */\n type: 'submit' | 'reset' | 'button';\n /** Optional click handler */\n onClick?: () => void;\n /** Button variant */\n variant?: ButtonVariant;\n /** Disabled state */\n disabled?: boolean;\n}","HiddenFieldComponent":"declare const HiddenFieldComponent: ComponentType<HiddenFieldComponentProps>;","HiddenFieldComponentProps":"export interface HiddenFieldComponentProps {\n name: string;\n value: string;\n}","PasswordFieldComponent":"/**\n * PasswordFieldComponent renders a styled password input.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - PasswordFieldComponentProps\n * @returns JSX.Element\n */\ndeclare const PasswordFieldComponent: ComponentType<PasswordFieldComponentProps>;","PasswordFieldComponentProps":"export interface PasswordFieldComponentProps extends Omit<ComponentProps<typeof PasswordInput>, 'value' | 'onChange'> {\n /** Field label */\n label: string;\n /** Help text (entity field `hint`): an (i) after the label shows it */\n info?: string;\n /** Current value */\n value?: string;\n /** Change handler */\n onChange: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;\n /** Error state */\n error?: boolean;\n /** Helper text to display */\n helperText?: string;\n}","AddressFieldComponent":"/**\n * Address field component with Google Places autocomplete (new API).\n *\n * Modes:\n * - Manual (no API key or `enableGoogleMaps=false`): free-text via Combobox `creatable`.\n * - Google: AutocompleteSuggestion + Place.fetchFields() with Geocoder fallback for coords.\n *\n * Env vars:\n * - Vite: VITE_GOOGLE_MAPS_API_KEY\n * - Next.js: NEXT_PUBLIC_GOOGLE_MAPS_API_KEY\n */\ndeclare const AddressFieldComponent: ({ label, info, value, onChange, enableGoogleMaps, extractDistrictCode, error, helperText, required, }","AddressFieldComponentProps":"/**\n * Address field component props\n */\nexport interface AddressFieldComponentProps {\n /** Field label */\n label: string;\n /** Help text (entity field `hint`): an (i) after the label shows it */\n info?: string;\n /** Address value with formatted address and coordinates */\n value?: {\n formatted_address: string;\n latitude?: number;\n longitude?: number;\n [key: string]: any;\n };\n /** Change handler */\n onChange: (value: any) => void;\n /**\n * Whether to enable Google Maps autocomplete (default: false).\n * Requires env var: VITE_GOOGLE_MAPS_API_KEY (Vite) or NEXT_PUBLIC_GOOGLE_MAPS_API_KEY (Next.js).\n */\n enableGoogleMaps?: boolean;\n /**\n * Whether to extract district_code (last 2 digits of postal code, \"92\" prefix → 92)\n * onto the address value.\n */\n extractDistrictCode?: boolean;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Whether the field is required */\n required?: boolean;\n}","CurrencyFieldComponent":"/**\n * Currency field with locale-aware formatting\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const CurrencyFieldComponent: ComponentType<CurrencyFieldComponentProps>;","CurrencyFieldComponentProps":"export interface CurrencyFieldComponentProps {\n /** Field label */\n label: string;\n /** Help text (entity field `hint`): an (i) after the label shows it */\n info?: string;\n /** Current value (number in cents/smallest unit) */\n value?: number;\n /** Change handler */\n onChange: (event: ChangeEvent<HTMLInputElement>) => void;\n /** Currency code (e.g., 'EUR', 'USD') */\n currency?: string;\n /** Locale for formatting (e.g., 'fr-FR', 'en-US') */\n locale?: string;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Required field */\n required?: boolean;\n /** Disabled state */\n disabled?: boolean;\n /** Placeholder */\n placeholder?: string;\n}","PriceFieldComponent":"declare const PriceFieldComponent: ComponentType<PriceFieldComponentProps>;","PriceFieldComponentProps":"export interface PriceFieldComponentProps {\n /** Field label (for amount) */\n label: string;\n /** Help text (entity field `hint`): an (i) after the label shows it */\n info?: string;\n /** Current value */\n value?: PriceValue | null;\n /** Change handler */\n onChange: (value: PriceValue) => void;\n /** Error state */\n error?: boolean;\n /** Helper text */\n helperText?: string;\n /** Required */\n required?: boolean;\n /** Disabled */\n disabled?: boolean;\n /** Placeholder for amount */\n placeholder?: string;\n /** Default currency when value.currency is unset */\n defaultCurrency?: string;\n /** Label for collapsible section */\n optionsTitle?: string;\n /** Allowed currencies in the select; when set, only these are shown (e.g. ['EUR'] for single-currency) */\n currencies?: string[];\n}","PriceValue":"export interface PriceValue {\n amount: number | null;\n currency?: string;\n vatIncluded?: boolean;\n discountPercent?: number;\n}","RichTextComponent":"/**\n * RichTextComponent - WYSIWYG editor with Tiptap\n * Falls back to textarea if Tiptap is not available\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const RichTextComponent: ComponentType<RichTextComponentProps>;","RichTextComponentProps":"/**\n * Rich Text Field Component Props\n */\nexport interface RichTextComponentProps {\n /** Field label */\n label: string;\n /** Current HTML value */\n value?: string;\n /** Change handler */\n onChange: (event: ChangeEvent<HTMLTextAreaElement>) => void;\n /** Error state */\n error?: string;\n /** Helper text */\n helperText?: string;\n /** Required field */\n required?: boolean;\n /** Disabled state */\n disabled?: boolean;\n /** Placeholder */\n placeholder?: string;\n /** Optional className */\n className?: string;\n}","GdprConsentFieldComponent":"/**\n * GDPR Consent Field Component - Renders a consent checkbox with automatic label generation.\n * Opens privacy policy and terms in Sheet with iframe when links are clicked.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - GdprConsentFieldComponentProps\n * @returns JSX.Element\n */\ndeclare const GdprConsentFieldComponent: ComponentType<GdprConsentFieldComponentProps>;","GdprConsentFieldComponentProps":"export interface GdprConsentFieldComponentProps {\n /** Whether the checkbox is checked */\n checked?: boolean;\n /** Change handler for the checkbox */\n onChange?: (event: ChangeEvent<HTMLInputElement>) => void;\n /** Whether the field is required */\n required?: boolean;\n /** Path to privacy policy page (default: '/legal/privacy') */\n privacyPolicyPath?: string;\n /** Path to terms of use page (default: '/legal/terms') */\n termsPath?: string;\n}","TextFieldDisplay":"/**\n * Enhanced TextFieldDisplay with modern UX features\n *\n * Features:\n * - Smart formatting based on field type\n * - Copy to clipboard functionality\n * - Truncation with tooltips\n * - Badge display option\n * - Loading states\n * - Responsive design\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const TextFieldDisplay: ComponentType<TextFieldDisplayProps>;","BadgeFieldDisplay":"/**\n * BadgeFieldDisplay - Displays boolean/select values as badges\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const BadgeFieldDisplay: React.ComponentType<BadgeFieldDisplayProps>;","AvatarFieldDisplay":"/**\n * AvatarFieldDisplay - Displays image values as avatars\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const AvatarFieldDisplay: React.ComponentType<AvatarFieldDisplayProps>;","LinkFieldDisplay":"/**\n * LinkFieldDisplay - Displays URL/email/tel values as clickable links\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const LinkFieldDisplay: ComponentType<LinkFieldDisplayProps>;","DateFieldDisplay":"/**\n * DateFieldDisplay - Displays date values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const DateFieldDisplay: ComponentType<DateFieldDisplayProps>;","NumberFieldDisplay":"/**\n * NumberFieldDisplay - Displays number values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const NumberFieldDisplay: ComponentType<NumberFieldDisplayProps>;","PhoneNumberDisplay":"/**\n * PhoneNumberDisplay - Displays phone number values as clickable links\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const PhoneNumberDisplay: ComponentType<PhoneNumberDisplayProps>;","TextAreaDisplay":"/**\n * TextAreaDisplay - Displays textarea values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const TextAreaDisplay: ComponentType<TextAreaDisplayProps>;","RichTextDisplay":"/**\n * RichTextDisplay - Displays rich text/HTML content in read-only mode\n *\n * Renders HTML with styling that matches Tiptap editor output.\n * Safe to use with HTML from Tiptap (sanitized by Tiptap).\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const RichTextDisplay: ComponentType<RichTextDisplayProps>;","CheckboxFieldDisplay":"/**\n * CheckboxFieldDisplay - Displays checkbox/boolean values as badges\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const CheckboxFieldDisplay: React.ComponentType<CheckboxFieldDisplayProps>;","DropdownDisplay":"/**\n * DropdownDisplay - Displays select values as badges\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const DropdownDisplay: React.ComponentType<DropdownDisplayProps>;","MultiDropdownDisplay":"/**\n * MultiDropdownDisplay - Displays multiselect values as multiple badges\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const MultiDropdownDisplay: ComponentType<MultiDropdownDisplayProps>;","MultiInputTextFieldDisplay":"/**\n * MultiInputTextFieldDisplay - Displays array values as multiple badges\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const MultiInputTextFieldDisplay: ComponentType<MultiInputTextFieldDisplayProps>;","RadioFieldDisplay":"/**\n * RadioFieldDisplay - Displays radio values as badges\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const RadioFieldDisplay: ComponentType<RadioFieldDisplayProps>;","RangeFieldDisplay":"/**\n * RangeFieldDisplay - Displays range values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const RangeFieldDisplay: ComponentType<RangeFieldDisplayProps>;","FileFieldDisplay":"/**\n * FileFieldDisplay - Displays file values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const FileFieldDisplay: React.ComponentType<FileFieldDisplayProps>;","ImageFieldDisplay":"/**\n * ImageFieldDisplay - Displays image values as avatars\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const ImageFieldDisplay: ComponentType<ImageFieldDisplayProps>;","GeoPointFieldDisplay":"/**\n * GeoPointFieldDisplay - Displays geopoint values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const GeoPointFieldDisplay: ComponentType<GeoPointFieldDisplayProps>;","MapFieldDisplay":"/**\n * MapFieldDisplay - Displays map values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const MapFieldDisplay: ComponentType<MapFieldDisplayProps>;","ReferenceFieldDisplay":"/**\n * ReferenceFieldDisplay - Displays reference values as badges\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const ReferenceFieldDisplay: ComponentType<ReferenceFieldDisplayProps>;","TimestampFieldDisplay":"/**\n * TimestampFieldDisplay - Displays timestamp values in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const TimestampFieldDisplay: ComponentType<TimestampFieldDisplayProps>;","HiddenFieldDisplay":"/**\n * HiddenFieldDisplay - Hidden fields are not displayed\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const HiddenFieldDisplay: ComponentType<HiddenFieldDisplayProps>;","ButtonFieldDisplay":"/**\n * ButtonFieldDisplay - Button fields are not displayed in read-only mode\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const ButtonFieldDisplay: React.ComponentType<ButtonFieldDisplayProps>;","useFormStore":"/**\n * Form store for managing form submission states and draft persistence\n *\n * @example\n * ```tsx\n * const formId = useId();\n * const isLoading = useFormStore((s) => s.isLoading(formId));\n * const status = useFormStore((s) => s.getStatus(formId));\n * ```\n */\nexport declare const useFormStore: import(\"zustand\").UseBoundStore<import(\"zustand\").StoreApi<FormStoreState & FormStoreActions>>;","useFormStatus":"/**\n * Hook to get form status\n */\nexport declare const useFormStatus: (formId: string) => FormStatus;","useFormLoading":"/**\n * Hook to check if form is loading\n */\nexport declare const useFormLoading: (formId: string) => boolean;","useUploadProgress":"/**\n * Hook to get upload progress\n */\nexport declare const useUploadProgress: (formId: string) => number;","useFormError":"/**\n * Hook to get form error\n */\nexport declare const useFormError: (formId: string) => string | null;","useFormErrorCause":"/**\n * What the last submission threw (in memory only), or null.\n * Lets a page show a detailed error, e.g. after an optimistic leave returned to it.\n */\nexport declare const useFormErrorCause: (formId: string) => unknown;","useFormIsDirty":"/**\n * Hook to check if form is dirty\n */\nexport declare const useFormIsDirty: (formId: string) => boolean;","useHasDirtyForms":"/**\n * Hook to check if any form is dirty\n */\nexport declare const useHasDirtyForms: () => boolean;","childRowsKey":"/**\n * Key of one joined child list's edits in {@link FormStoreState.childEdits}.\n *\n * @param formKey - The open form's key\n * @param recordId - The parent record id\n * @param collection - The child collection\n * @param field - The child's reference field pointing at the parent\n */\nexport declare const childRowsKey: (formKey: string, recordId: string, collection: string, field: string) => string;","extensionMintKey":"/**\n * Minted-id key of the 1:1 extension row a write inserts for a record.\n *\n * @param extensionCollection - The extension collection\n * @param recordId - The extended record id\n */\nexport declare const extensionMintKey: (extensionCollection: string, recordId: string) => string;","useUploadStore":"/**\n * Upload store for managing file upload progress\n *\n * @example\n * ```tsx\n * const formId = useId();\n * const totalProgress = useUploadStore((s) => s.getTotalProgress(formId));\n * const isUploading = useUploadStore((s) => s.isUploading(formId));\n * ```\n */\nexport declare const useUploadStore: import(\"zustand\").UseBoundStore<import(\"zustand\").StoreApi<UploadStoreState & UploadStoreActions & import(\"@donotdev/stores\").DoNotDevStore>>;","useTotalProgress":"/**\n * Hook to get total upload progress for a form\n */\nexport declare const useTotalProgress: (formId: string) => number;","useIsUploading":"/**\n * Hook to check if any field is currently uploading\n */\nexport declare const useIsUploading: (formId: string) => boolean;","useFieldProgress":"/**\n * Hook to get upload progress for a specific field\n */\nexport declare const useFieldProgress: (formId: string, fieldName: string) => number;","useFieldUploadStatus":"/**\n * Hook to get upload status for a specific field\n */\nexport declare const useFieldUploadStatus: (formId: string, fieldName: string) => UploadStatus;","useFieldFiles":"/**\n * Hook to get per-file entries for a specific field.\n * Returns the stored array reference directly (stable when unchanged).\n * Falls back to EMPTY_FILES constant to avoid re-renders.\n */\nexport declare const useFieldFiles: (formId: string, fieldName: string) => FileEntry[];","generateStandaloneFormId":"/** Generate a synthetic formId for standalone mode (no EntityFormRenderer) */\nexport declare function generateStandaloneFormId(): string;"}