@payloadcms/ui 3.29.0-internal.3471e81 → 3.29.0-internal.37e46b5

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 (473) hide show
  1. package/dist/elements/BulkUpload/EditForm/index.d.ts.map +1 -1
  2. package/dist/elements/BulkUpload/EditForm/index.js +8 -5
  3. package/dist/elements/BulkUpload/EditForm/index.js.map +1 -1
  4. package/dist/elements/BulkUpload/FormsManager/index.js +2 -2
  5. package/dist/elements/BulkUpload/FormsManager/index.js.map +1 -1
  6. package/dist/elements/BulkUpload/index.d.ts.map +1 -1
  7. package/dist/elements/BulkUpload/index.js +4 -2
  8. package/dist/elements/BulkUpload/index.js.map +1 -1
  9. package/dist/elements/Collapsible/provider.d.ts.map +1 -1
  10. package/dist/elements/Collapsible/provider.js +5 -3
  11. package/dist/elements/Collapsible/provider.js.map +1 -1
  12. package/dist/elements/ColumnSelector/index.js +1 -1
  13. package/dist/elements/ColumnSelector/index.js.map +1 -1
  14. package/dist/elements/ColumnSelector/index.scss +3 -2
  15. package/dist/elements/DeleteDocument/index.d.ts.map +1 -1
  16. package/dist/elements/DeleteDocument/index.js +2 -1
  17. package/dist/elements/DeleteDocument/index.js.map +1 -1
  18. package/dist/elements/DeleteMany/index.d.ts.map +1 -1
  19. package/dist/elements/DeleteMany/index.js +1 -1
  20. package/dist/elements/DeleteMany/index.js.map +1 -1
  21. package/dist/elements/DocumentDrawer/DrawerContent.d.ts.map +1 -1
  22. package/dist/elements/DocumentDrawer/DrawerContent.js +1 -2
  23. package/dist/elements/DocumentDrawer/DrawerContent.js.map +1 -1
  24. package/dist/elements/DocumentDrawer/Provider.d.ts.map +1 -1
  25. package/dist/elements/DocumentDrawer/Provider.js +3 -3
  26. package/dist/elements/DocumentDrawer/Provider.js.map +1 -1
  27. package/dist/elements/DocumentDrawer/types.d.ts +0 -4
  28. package/dist/elements/DocumentDrawer/types.d.ts.map +1 -1
  29. package/dist/elements/DocumentDrawer/types.js.map +1 -1
  30. package/dist/elements/DocumentFields/index.d.ts.map +1 -1
  31. package/dist/elements/DocumentFields/index.js +5 -1
  32. package/dist/elements/DocumentFields/index.js.map +1 -1
  33. package/dist/elements/Drawer/index.d.ts.map +1 -1
  34. package/dist/elements/Drawer/index.js +5 -3
  35. package/dist/elements/Drawer/index.js.map +1 -1
  36. package/dist/elements/EditMany/DrawerContent.d.ts.map +1 -1
  37. package/dist/elements/EditMany/DrawerContent.js +2 -2
  38. package/dist/elements/EditMany/DrawerContent.js.map +1 -1
  39. package/dist/elements/LeaveWithoutSaving/usePreventLeave.d.ts.map +1 -1
  40. package/dist/elements/LeaveWithoutSaving/usePreventLeave.js +1 -2
  41. package/dist/elements/LeaveWithoutSaving/usePreventLeave.js.map +1 -1
  42. package/dist/elements/ListControls/index.d.ts +24 -1
  43. package/dist/elements/ListControls/index.d.ts.map +1 -1
  44. package/dist/elements/ListControls/index.js +86 -115
  45. package/dist/elements/ListControls/index.js.map +1 -1
  46. package/dist/elements/ListControls/index.scss +9 -5
  47. package/dist/elements/ListDrawer/DrawerContent.d.ts.map +1 -1
  48. package/dist/elements/ListDrawer/DrawerContent.js +2 -4
  49. package/dist/elements/ListDrawer/DrawerContent.js.map +1 -1
  50. package/dist/elements/ListDrawer/Provider.js +3 -3
  51. package/dist/elements/ListDrawer/Provider.js.map +1 -1
  52. package/dist/elements/ListDrawer/types.d.ts +2 -3
  53. package/dist/elements/ListDrawer/types.d.ts.map +1 -1
  54. package/dist/elements/ListDrawer/types.js.map +1 -1
  55. package/dist/elements/LoadingOverlay/index.js +3 -3
  56. package/dist/elements/LoadingOverlay/index.js.map +1 -1
  57. package/dist/elements/Nav/context.d.ts.map +1 -1
  58. package/dist/elements/Nav/context.js +4 -2
  59. package/dist/elements/Nav/context.js.map +1 -1
  60. package/dist/elements/Pill/index.d.ts +1 -1
  61. package/dist/elements/Pill/index.d.ts.map +1 -1
  62. package/dist/elements/Pill/index.js +0 -2
  63. package/dist/elements/Pill/index.js.map +1 -1
  64. package/dist/elements/Pill/index.scss +6 -29
  65. package/dist/elements/Popup/PopupButtonList/index.d.ts +1 -1
  66. package/dist/elements/Popup/PopupButtonList/index.d.ts.map +1 -1
  67. package/dist/elements/Popup/PopupButtonList/index.js +0 -1
  68. package/dist/elements/Popup/PopupButtonList/index.js.map +1 -1
  69. package/dist/elements/Popup/index.d.ts.map +1 -1
  70. package/dist/elements/Popup/index.js +1 -1
  71. package/dist/elements/Popup/index.js.map +1 -1
  72. package/dist/elements/PublishButton/ScheduleDrawer/buildUpcomingColumns.d.ts +1 -2
  73. package/dist/elements/PublishButton/ScheduleDrawer/buildUpcomingColumns.d.ts.map +1 -1
  74. package/dist/elements/PublishButton/ScheduleDrawer/buildUpcomingColumns.js +1 -4
  75. package/dist/elements/PublishButton/ScheduleDrawer/buildUpcomingColumns.js.map +1 -1
  76. package/dist/elements/PublishButton/ScheduleDrawer/index.d.ts.map +1 -1
  77. package/dist/elements/PublishButton/ScheduleDrawer/index.js +3 -3
  78. package/dist/elements/PublishButton/ScheduleDrawer/index.js.map +1 -1
  79. package/dist/elements/RelationshipTable/cells/DrawerLink/index.js +1 -1
  80. package/dist/elements/RelationshipTable/cells/DrawerLink/index.js.map +1 -1
  81. package/dist/elements/RelationshipTable/index.d.ts.map +1 -1
  82. package/dist/elements/RelationshipTable/index.js +4 -3
  83. package/dist/elements/RelationshipTable/index.js.map +1 -1
  84. package/dist/elements/StepNav/context.d.ts.map +1 -1
  85. package/dist/elements/StepNav/context.js +5 -3
  86. package/dist/elements/StepNav/context.js.map +1 -1
  87. package/dist/elements/Table/DefaultCell/fields/File/index.d.ts.map +1 -1
  88. package/dist/elements/Table/DefaultCell/fields/File/index.js +1 -24
  89. package/dist/elements/Table/DefaultCell/fields/File/index.js.map +1 -1
  90. package/dist/elements/Table/DefaultCell/index.d.ts.map +1 -1
  91. package/dist/elements/Table/DefaultCell/index.js +25 -32
  92. package/dist/elements/Table/DefaultCell/index.js.map +1 -1
  93. package/dist/elements/Table/RelationshipProvider/index.d.ts.map +1 -1
  94. package/dist/elements/Table/RelationshipProvider/index.js +5 -3
  95. package/dist/elements/Table/RelationshipProvider/index.js.map +1 -1
  96. package/dist/elements/TableColumns/RenderDefaultCell/index.d.ts.map +1 -0
  97. package/dist/{providers → elements}/TableColumns/RenderDefaultCell/index.js +6 -4
  98. package/dist/elements/TableColumns/RenderDefaultCell/index.js.map +1 -0
  99. package/dist/{providers → elements}/TableColumns/buildColumnState.d.ts +1 -1
  100. package/dist/elements/TableColumns/buildColumnState.d.ts.map +1 -0
  101. package/dist/{providers → elements}/TableColumns/buildColumnState.js +2 -9
  102. package/dist/elements/TableColumns/buildColumnState.js.map +1 -0
  103. package/dist/{providers → elements}/TableColumns/buildPolymorphicColumnState.d.ts +1 -1
  104. package/dist/elements/TableColumns/buildPolymorphicColumnState.d.ts.map +1 -0
  105. package/dist/{providers → elements}/TableColumns/buildPolymorphicColumnState.js +1 -1
  106. package/dist/elements/TableColumns/buildPolymorphicColumnState.js.map +1 -0
  107. package/dist/elements/TableColumns/context.d.ts.map +1 -0
  108. package/dist/elements/TableColumns/context.js +4 -0
  109. package/dist/elements/TableColumns/context.js.map +1 -0
  110. package/dist/elements/TableColumns/filterFields.d.ts.map +1 -0
  111. package/dist/elements/TableColumns/filterFields.js.map +1 -0
  112. package/dist/elements/TableColumns/getInitialColumns.d.ts.map +1 -0
  113. package/dist/elements/TableColumns/getInitialColumns.js.map +1 -0
  114. package/dist/elements/TableColumns/index.d.ts.map +1 -0
  115. package/dist/{providers → elements}/TableColumns/index.js +3 -5
  116. package/dist/elements/TableColumns/index.js.map +1 -0
  117. package/dist/{providers → elements}/TableColumns/types.d.ts +1 -1
  118. package/dist/elements/TableColumns/types.d.ts.map +1 -0
  119. package/dist/elements/TableColumns/types.js.map +1 -0
  120. package/dist/elements/Thumbnail/index.js +22 -24
  121. package/dist/elements/Thumbnail/index.js.map +1 -1
  122. package/dist/elements/Toasts/fieldErrors.d.ts.map +1 -1
  123. package/dist/elements/Toasts/fieldErrors.js +2 -2
  124. package/dist/elements/Toasts/fieldErrors.js.map +1 -1
  125. package/dist/elements/Upload/index.d.ts.map +1 -1
  126. package/dist/elements/Upload/index.js +52 -8
  127. package/dist/elements/Upload/index.js.map +1 -1
  128. package/dist/elements/Upload/index.scss +1 -0
  129. package/dist/elements/WhereBuilder/Condition/index.d.ts.map +1 -1
  130. package/dist/elements/WhereBuilder/Condition/index.js +1 -1
  131. package/dist/elements/WhereBuilder/Condition/index.js.map +1 -1
  132. package/dist/elements/WhereBuilder/index.d.ts.map +1 -1
  133. package/dist/elements/WhereBuilder/index.js +15 -18
  134. package/dist/elements/WhereBuilder/index.js.map +1 -1
  135. package/dist/elements/WhereBuilder/transformWhereQuery.d.ts +8 -0
  136. package/dist/elements/WhereBuilder/transformWhereQuery.d.ts.map +1 -0
  137. package/dist/elements/WhereBuilder/transformWhereQuery.js +45 -0
  138. package/dist/elements/WhereBuilder/transformWhereQuery.js.map +1 -0
  139. package/dist/elements/WhereBuilder/validateWhereQuery.d.ts +4 -0
  140. package/dist/elements/WhereBuilder/validateWhereQuery.d.ts.map +1 -0
  141. package/dist/elements/WhereBuilder/validateWhereQuery.js +36 -0
  142. package/dist/elements/WhereBuilder/validateWhereQuery.js.map +1 -0
  143. package/dist/exports/client/{DatePicker-DMHV2M2L.js → CodeEditor-TQ5ADFPC.js} +2 -2
  144. package/dist/exports/client/{CodeEditor-J4IKAVAK.js → DatePicker-HHQ6TPOW.js} +2 -2
  145. package/dist/exports/client/{chunk-3AA2TJQ5.js → chunk-IMEQ6NKQ.js} +2 -2
  146. package/dist/exports/client/{chunk-3AA2TJQ5.js.map → chunk-IMEQ6NKQ.js.map} +3 -3
  147. package/dist/exports/client/{chunk-PKQOCWZD.js → chunk-LMYT7O7U.js} +2 -2
  148. package/dist/exports/client/{chunk-PKQOCWZD.js.map → chunk-LMYT7O7U.js.map} +3 -3
  149. package/dist/exports/client/index.d.ts +3 -7
  150. package/dist/exports/client/index.d.ts.map +1 -1
  151. package/dist/exports/client/index.js +23 -23
  152. package/dist/exports/client/index.js.map +4 -4
  153. package/dist/exports/shared/index.d.ts +3 -8
  154. package/dist/exports/shared/index.d.ts.map +1 -1
  155. package/dist/exports/shared/index.js +2 -2
  156. package/dist/exports/shared/index.js.map +4 -4
  157. package/dist/fields/Array/index.d.ts.map +1 -1
  158. package/dist/fields/Array/index.js +3 -4
  159. package/dist/fields/Array/index.js.map +1 -1
  160. package/dist/fields/Blocks/BlockRow.d.ts.map +1 -1
  161. package/dist/fields/Blocks/BlockRow.js +20 -26
  162. package/dist/fields/Blocks/BlockRow.js.map +1 -1
  163. package/dist/fields/Blocks/index.d.ts.map +1 -1
  164. package/dist/fields/Blocks/index.js +4 -5
  165. package/dist/fields/Blocks/index.js.map +1 -1
  166. package/dist/fields/Checkbox/index.d.ts +1 -1
  167. package/dist/fields/Checkbox/index.d.ts.map +1 -1
  168. package/dist/fields/Checkbox/index.js +3 -4
  169. package/dist/fields/Checkbox/index.js.map +1 -1
  170. package/dist/fields/Code/index.d.ts.map +1 -1
  171. package/dist/fields/Code/index.js +3 -4
  172. package/dist/fields/Code/index.js.map +1 -1
  173. package/dist/fields/Collapsible/index.d.ts.map +1 -1
  174. package/dist/fields/Collapsible/index.js +2 -3
  175. package/dist/fields/Collapsible/index.js.map +1 -1
  176. package/dist/fields/ConfirmPassword/index.js +11 -13
  177. package/dist/fields/ConfirmPassword/index.js.map +1 -1
  178. package/dist/fields/DateTime/index.d.ts.map +1 -1
  179. package/dist/fields/DateTime/index.js +4 -5
  180. package/dist/fields/DateTime/index.js.map +1 -1
  181. package/dist/fields/Email/index.d.ts.map +1 -1
  182. package/dist/fields/Email/index.js +2 -3
  183. package/dist/fields/Email/index.js.map +1 -1
  184. package/dist/fields/Group/index.d.ts.map +1 -1
  185. package/dist/fields/Group/index.js.map +1 -1
  186. package/dist/fields/Group/provider.d.ts.map +1 -1
  187. package/dist/fields/Group/provider.js +5 -3
  188. package/dist/fields/Group/provider.js.map +1 -1
  189. package/dist/fields/JSON/index.d.ts.map +1 -1
  190. package/dist/fields/JSON/index.js +4 -5
  191. package/dist/fields/JSON/index.js.map +1 -1
  192. package/dist/fields/Number/index.d.ts.map +1 -1
  193. package/dist/fields/Number/index.js +5 -6
  194. package/dist/fields/Number/index.js.map +1 -1
  195. package/dist/fields/Password/index.d.ts.map +1 -1
  196. package/dist/fields/Password/index.js +4 -2
  197. package/dist/fields/Password/index.js.map +1 -1
  198. package/dist/fields/Point/index.d.ts.map +1 -1
  199. package/dist/fields/Point/index.js +3 -4
  200. package/dist/fields/Point/index.js.map +1 -1
  201. package/dist/fields/RadioGroup/index.d.ts.map +1 -1
  202. package/dist/fields/RadioGroup/index.js +3 -4
  203. package/dist/fields/RadioGroup/index.js.map +1 -1
  204. package/dist/fields/Relationship/index.d.ts.map +1 -1
  205. package/dist/fields/Relationship/index.js +4 -5
  206. package/dist/fields/Relationship/index.js.map +1 -1
  207. package/dist/fields/Row/provider.d.ts.map +1 -1
  208. package/dist/fields/Row/provider.js +5 -3
  209. package/dist/fields/Row/provider.js.map +1 -1
  210. package/dist/fields/Select/index.d.ts.map +1 -1
  211. package/dist/fields/Select/index.js +3 -4
  212. package/dist/fields/Select/index.js.map +1 -1
  213. package/dist/fields/Tabs/Tab/index.d.ts +0 -1
  214. package/dist/fields/Tabs/Tab/index.d.ts.map +1 -1
  215. package/dist/fields/Tabs/Tab/index.js +25 -29
  216. package/dist/fields/Tabs/Tab/index.js.map +1 -1
  217. package/dist/fields/Tabs/Tab/index.scss +0 -4
  218. package/dist/fields/Tabs/index.d.ts +1 -1
  219. package/dist/fields/Tabs/index.d.ts.map +1 -1
  220. package/dist/fields/Tabs/index.js +194 -285
  221. package/dist/fields/Tabs/index.js.map +1 -1
  222. package/dist/fields/Tabs/index.scss +0 -8
  223. package/dist/fields/Tabs/provider.d.ts.map +1 -1
  224. package/dist/fields/Tabs/provider.js +5 -3
  225. package/dist/fields/Tabs/provider.js.map +1 -1
  226. package/dist/fields/Text/index.d.ts.map +1 -1
  227. package/dist/fields/Text/index.js +3 -4
  228. package/dist/fields/Text/index.js.map +1 -1
  229. package/dist/fields/Textarea/index.d.ts.map +1 -1
  230. package/dist/fields/Textarea/index.js +1 -2
  231. package/dist/fields/Textarea/index.js.map +1 -1
  232. package/dist/fields/Upload/index.d.ts.map +1 -1
  233. package/dist/fields/Upload/index.js +1 -2
  234. package/dist/fields/Upload/index.js.map +1 -1
  235. package/dist/forms/Form/context.d.ts.map +1 -1
  236. package/dist/forms/Form/context.js +25 -9
  237. package/dist/forms/Form/context.js.map +1 -1
  238. package/dist/forms/Form/index.d.ts.map +1 -1
  239. package/dist/forms/Form/index.js +8 -8
  240. package/dist/forms/Form/index.js.map +1 -1
  241. package/dist/forms/RowLabel/Context/index.d.ts.map +1 -1
  242. package/dist/forms/RowLabel/Context/index.js +2 -2
  243. package/dist/forms/RowLabel/Context/index.js.map +1 -1
  244. package/dist/forms/RowLabel/index.d.ts.map +1 -1
  245. package/dist/forms/RowLabel/index.js +2 -2
  246. package/dist/forms/RowLabel/index.js.map +1 -1
  247. package/dist/forms/RowLabel/types.d.ts +1 -1
  248. package/dist/forms/RowLabel/types.d.ts.map +1 -1
  249. package/dist/forms/RowLabel/types.js.map +1 -1
  250. package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.d.ts +1 -3
  251. package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.d.ts.map +1 -1
  252. package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.js +1 -45
  253. package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.js.map +1 -1
  254. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/index.d.ts +2 -4
  255. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/index.d.ts.map +1 -1
  256. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/index.js +0 -4
  257. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/index.js.map +1 -1
  258. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/iterateFields.d.ts +2 -4
  259. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/iterateFields.d.ts.map +1 -1
  260. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/iterateFields.js +0 -4
  261. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/iterateFields.js.map +1 -1
  262. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/promise.d.ts +2 -4
  263. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/promise.d.ts.map +1 -1
  264. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/promise.js +2 -41
  265. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/promise.js.map +1 -1
  266. package/dist/forms/fieldSchemasToFormState/index.d.ts +2 -4
  267. package/dist/forms/fieldSchemasToFormState/index.d.ts.map +1 -1
  268. package/dist/forms/fieldSchemasToFormState/index.js +0 -6
  269. package/dist/forms/fieldSchemasToFormState/index.js.map +1 -1
  270. package/dist/forms/fieldSchemasToFormState/iterateFields.d.ts +2 -4
  271. package/dist/forms/fieldSchemasToFormState/iterateFields.d.ts.map +1 -1
  272. package/dist/forms/fieldSchemasToFormState/iterateFields.js +0 -16
  273. package/dist/forms/fieldSchemasToFormState/iterateFields.js.map +1 -1
  274. package/dist/forms/useField/index.d.ts.map +1 -1
  275. package/dist/forms/useField/index.js +67 -70
  276. package/dist/forms/useField/index.js.map +1 -1
  277. package/dist/forms/useField/types.d.ts +0 -1
  278. package/dist/forms/useField/types.d.ts.map +1 -1
  279. package/dist/forms/useField/types.js.map +1 -1
  280. package/dist/hooks/useQueues.js +3 -3
  281. package/dist/hooks/useQueues.js.map +1 -1
  282. package/dist/icons/Chevron/index.d.ts +0 -1
  283. package/dist/icons/Chevron/index.d.ts.map +1 -1
  284. package/dist/icons/Chevron/index.js +0 -2
  285. package/dist/icons/Chevron/index.js.map +1 -1
  286. package/dist/icons/Dots/index.d.ts +0 -2
  287. package/dist/icons/Dots/index.d.ts.map +1 -1
  288. package/dist/icons/Dots/index.js +2 -5
  289. package/dist/icons/Dots/index.js.map +1 -1
  290. package/dist/icons/Dots/index.scss +0 -14
  291. package/dist/providers/Actions/index.d.ts.map +1 -1
  292. package/dist/providers/Actions/index.js +5 -3
  293. package/dist/providers/Actions/index.js.map +1 -1
  294. package/dist/providers/Auth/index.d.ts.map +1 -1
  295. package/dist/providers/Auth/index.js +5 -3
  296. package/dist/providers/Auth/index.js.map +1 -1
  297. package/dist/providers/ClientFunction/index.d.ts.map +1 -1
  298. package/dist/providers/ClientFunction/index.js +4 -4
  299. package/dist/providers/ClientFunction/index.js.map +1 -1
  300. package/dist/providers/Config/index.d.ts.map +1 -1
  301. package/dist/providers/Config/index.js +5 -3
  302. package/dist/providers/Config/index.js.map +1 -1
  303. package/dist/providers/DocumentEvents/index.d.ts.map +1 -1
  304. package/dist/providers/DocumentEvents/index.js +5 -3
  305. package/dist/providers/DocumentEvents/index.js.map +1 -1
  306. package/dist/providers/DocumentInfo/index.d.ts.map +1 -1
  307. package/dist/providers/DocumentInfo/index.js +5 -3
  308. package/dist/providers/DocumentInfo/index.js.map +1 -1
  309. package/dist/providers/DocumentInfo/types.d.ts +0 -1
  310. package/dist/providers/DocumentInfo/types.d.ts.map +1 -1
  311. package/dist/providers/DocumentInfo/types.js.map +1 -1
  312. package/dist/providers/EditDepth/index.d.ts.map +1 -1
  313. package/dist/providers/EditDepth/index.js +5 -3
  314. package/dist/providers/EditDepth/index.js.map +1 -1
  315. package/dist/providers/EntityVisibility/index.d.ts.map +1 -1
  316. package/dist/providers/EntityVisibility/index.js +5 -3
  317. package/dist/providers/EntityVisibility/index.js.map +1 -1
  318. package/dist/providers/ListQuery/context.d.ts +0 -2
  319. package/dist/providers/ListQuery/context.d.ts.map +1 -1
  320. package/dist/providers/ListQuery/context.js +2 -4
  321. package/dist/providers/ListQuery/context.js.map +1 -1
  322. package/dist/providers/ListQuery/index.d.ts.map +1 -1
  323. package/dist/providers/ListQuery/index.js +14 -30
  324. package/dist/providers/ListQuery/index.js.map +1 -1
  325. package/dist/providers/ListQuery/types.d.ts +3 -6
  326. package/dist/providers/ListQuery/types.d.ts.map +1 -1
  327. package/dist/providers/ListQuery/types.js.map +1 -1
  328. package/dist/providers/Locale/index.d.ts.map +1 -1
  329. package/dist/providers/Locale/index.js +9 -5
  330. package/dist/providers/Locale/index.js.map +1 -1
  331. package/dist/providers/Operation/index.d.ts.map +1 -1
  332. package/dist/providers/Operation/index.js +5 -3
  333. package/dist/providers/Operation/index.js.map +1 -1
  334. package/dist/providers/Params/index.d.ts.map +1 -1
  335. package/dist/providers/Params/index.js +5 -3
  336. package/dist/providers/Params/index.js.map +1 -1
  337. package/dist/providers/Preferences/index.d.ts.map +1 -1
  338. package/dist/providers/Preferences/index.js +5 -3
  339. package/dist/providers/Preferences/index.js.map +1 -1
  340. package/dist/providers/RouteCache/index.d.ts.map +1 -1
  341. package/dist/providers/RouteCache/index.js +5 -3
  342. package/dist/providers/RouteCache/index.js.map +1 -1
  343. package/dist/providers/RouteTransition/index.d.ts.map +1 -1
  344. package/dist/providers/RouteTransition/index.js +4 -2
  345. package/dist/providers/RouteTransition/index.js.map +1 -1
  346. package/dist/providers/SearchParams/index.d.ts.map +1 -1
  347. package/dist/providers/SearchParams/index.js +5 -3
  348. package/dist/providers/SearchParams/index.js.map +1 -1
  349. package/dist/providers/Selection/index.d.ts.map +1 -1
  350. package/dist/providers/Selection/index.js +5 -3
  351. package/dist/providers/Selection/index.js.map +1 -1
  352. package/dist/providers/ServerFunctions/index.d.ts +0 -1
  353. package/dist/providers/ServerFunctions/index.d.ts.map +1 -1
  354. package/dist/providers/ServerFunctions/index.js +2 -2
  355. package/dist/providers/ServerFunctions/index.js.map +1 -1
  356. package/dist/providers/Theme/index.d.ts.map +1 -1
  357. package/dist/providers/Theme/index.js +5 -3
  358. package/dist/providers/Theme/index.js.map +1 -1
  359. package/dist/providers/Translation/index.d.ts.map +1 -1
  360. package/dist/providers/Translation/index.js +5 -3
  361. package/dist/providers/Translation/index.js.map +1 -1
  362. package/dist/providers/UploadControls/index.d.ts +12 -0
  363. package/dist/providers/UploadControls/index.d.ts.map +1 -0
  364. package/dist/providers/UploadControls/index.js +41 -0
  365. package/dist/providers/UploadControls/index.js.map +1 -0
  366. package/dist/providers/UploadEdits/index.d.ts.map +1 -1
  367. package/dist/providers/UploadEdits/index.js +4 -2
  368. package/dist/providers/UploadEdits/index.js.map +1 -1
  369. package/dist/providers/UploadHandlers/index.d.ts.map +1 -1
  370. package/dist/providers/UploadHandlers/index.js +3 -3
  371. package/dist/providers/UploadHandlers/index.js.map +1 -1
  372. package/dist/styles.css +1 -1
  373. package/dist/utilities/buildFormState.d.ts.map +1 -1
  374. package/dist/utilities/buildFormState.js +1 -5
  375. package/dist/utilities/buildFormState.js.map +1 -1
  376. package/dist/utilities/mergeListSearchAndWhere.d.ts +10 -0
  377. package/dist/utilities/mergeListSearchAndWhere.d.ts.map +1 -0
  378. package/dist/utilities/mergeListSearchAndWhere.js +47 -0
  379. package/dist/utilities/mergeListSearchAndWhere.js.map +1 -0
  380. package/dist/utilities/renderTable.js +4 -4
  381. package/dist/utilities/renderTable.js.map +1 -1
  382. package/dist/utilities/upsertPreferences.d.ts +2 -7
  383. package/dist/utilities/upsertPreferences.d.ts.map +1 -1
  384. package/dist/utilities/upsertPreferences.js +5 -11
  385. package/dist/utilities/upsertPreferences.js.map +1 -1
  386. package/dist/views/Edit/index.d.ts.map +1 -1
  387. package/dist/views/Edit/index.js +10 -8
  388. package/dist/views/Edit/index.js.map +1 -1
  389. package/dist/views/List/index.d.ts.map +1 -1
  390. package/dist/views/List/index.js +1 -7
  391. package/dist/views/List/index.js.map +1 -1
  392. package/package.json +4 -4
  393. package/dist/elements/ListControls/ActiveQueryPreset/index.d.ts +0 -8
  394. package/dist/elements/ListControls/ActiveQueryPreset/index.d.ts.map +0 -1
  395. package/dist/elements/ListControls/ActiveQueryPreset/index.js +0 -102
  396. package/dist/elements/ListControls/ActiveQueryPreset/index.js.map +0 -1
  397. package/dist/elements/ListControls/ActiveQueryPreset/index.scss +0 -21
  398. package/dist/elements/ListControls/types.d.ts +0 -28
  399. package/dist/elements/ListControls/types.d.ts.map +0 -1
  400. package/dist/elements/ListControls/types.js.map +0 -1
  401. package/dist/elements/ListControls/useQueryPresets.d.ts +0 -17
  402. package/dist/elements/ListControls/useQueryPresets.d.ts.map +0 -1
  403. package/dist/elements/ListControls/useQueryPresets.js +0 -259
  404. package/dist/elements/ListControls/useQueryPresets.js.map +0 -1
  405. package/dist/elements/Popup/PopupDivider/index.d.ts +0 -4
  406. package/dist/elements/Popup/PopupDivider/index.d.ts.map +0 -1
  407. package/dist/elements/Popup/PopupDivider/index.js +0 -10
  408. package/dist/elements/Popup/PopupDivider/index.js.map +0 -1
  409. package/dist/elements/Popup/PopupDivider/index.scss +0 -10
  410. package/dist/elements/QueryPresets/cells/AccessCell/index.d.ts +0 -4
  411. package/dist/elements/QueryPresets/cells/AccessCell/index.d.ts.map +0 -1
  412. package/dist/elements/QueryPresets/cells/AccessCell/index.js +0 -25
  413. package/dist/elements/QueryPresets/cells/AccessCell/index.js.map +0 -1
  414. package/dist/elements/QueryPresets/cells/ColumnsCell/index.d.ts +0 -4
  415. package/dist/elements/QueryPresets/cells/ColumnsCell/index.d.ts.map +0 -1
  416. package/dist/elements/QueryPresets/cells/ColumnsCell/index.js +0 -11
  417. package/dist/elements/QueryPresets/cells/ColumnsCell/index.js.map +0 -1
  418. package/dist/elements/QueryPresets/cells/WhereCell/index.d.ts +0 -4
  419. package/dist/elements/QueryPresets/cells/WhereCell/index.d.ts.map +0 -1
  420. package/dist/elements/QueryPresets/cells/WhereCell/index.js +0 -23
  421. package/dist/elements/QueryPresets/cells/WhereCell/index.js.map +0 -1
  422. package/dist/elements/QueryPresets/fields/ColumnsField/index.d.ts +0 -4
  423. package/dist/elements/QueryPresets/fields/ColumnsField/index.d.ts.map +0 -1
  424. package/dist/elements/QueryPresets/fields/ColumnsField/index.js +0 -64
  425. package/dist/elements/QueryPresets/fields/ColumnsField/index.js.map +0 -1
  426. package/dist/elements/QueryPresets/fields/ColumnsField/index.scss +0 -28
  427. package/dist/elements/QueryPresets/fields/WhereField/index.d.ts +0 -4
  428. package/dist/elements/QueryPresets/fields/WhereField/index.d.ts.map +0 -1
  429. package/dist/elements/QueryPresets/fields/WhereField/index.js +0 -118
  430. package/dist/elements/QueryPresets/fields/WhereField/index.js.map +0 -1
  431. package/dist/elements/QueryPresets/fields/WhereField/index.scss +0 -23
  432. package/dist/icons/People/index.d.ts +0 -6
  433. package/dist/icons/People/index.d.ts.map +0 -1
  434. package/dist/icons/People/index.js +0 -18
  435. package/dist/icons/People/index.js.map +0 -1
  436. package/dist/icons/People/index.scss +0 -11
  437. package/dist/providers/TableColumns/RenderDefaultCell/index.d.ts.map +0 -1
  438. package/dist/providers/TableColumns/RenderDefaultCell/index.js.map +0 -1
  439. package/dist/providers/TableColumns/buildColumnState.d.ts.map +0 -1
  440. package/dist/providers/TableColumns/buildColumnState.js.map +0 -1
  441. package/dist/providers/TableColumns/buildPolymorphicColumnState.d.ts.map +0 -1
  442. package/dist/providers/TableColumns/buildPolymorphicColumnState.js.map +0 -1
  443. package/dist/providers/TableColumns/context.d.ts.map +0 -1
  444. package/dist/providers/TableColumns/context.js +0 -4
  445. package/dist/providers/TableColumns/context.js.map +0 -1
  446. package/dist/providers/TableColumns/filterFields.d.ts.map +0 -1
  447. package/dist/providers/TableColumns/filterFields.js.map +0 -1
  448. package/dist/providers/TableColumns/getInitialColumns.d.ts.map +0 -1
  449. package/dist/providers/TableColumns/getInitialColumns.js.map +0 -1
  450. package/dist/providers/TableColumns/index.d.ts.map +0 -1
  451. package/dist/providers/TableColumns/index.js.map +0 -1
  452. package/dist/providers/TableColumns/types.d.ts.map +0 -1
  453. package/dist/providers/TableColumns/types.js +0 -2
  454. package/dist/providers/TableColumns/types.js.map +0 -1
  455. package/dist/utilities/getDisplayedFieldValue.d.ts +0 -13
  456. package/dist/utilities/getDisplayedFieldValue.d.ts.map +0 -1
  457. package/dist/utilities/getDisplayedFieldValue.js +0 -28
  458. package/dist/utilities/getDisplayedFieldValue.js.map +0 -1
  459. package/dist/utilities/hasOptionLabelJSXElement.d.ts +0 -3
  460. package/dist/utilities/hasOptionLabelJSXElement.d.ts.map +0 -1
  461. package/dist/utilities/hasOptionLabelJSXElement.js +0 -15
  462. package/dist/utilities/hasOptionLabelJSXElement.js.map +0 -1
  463. /package/dist/{providers → elements}/TableColumns/RenderDefaultCell/index.d.ts +0 -0
  464. /package/dist/{providers → elements}/TableColumns/RenderDefaultCell/index.scss +0 -0
  465. /package/dist/{providers → elements}/TableColumns/context.d.ts +0 -0
  466. /package/dist/{providers → elements}/TableColumns/filterFields.d.ts +0 -0
  467. /package/dist/{providers → elements}/TableColumns/filterFields.js +0 -0
  468. /package/dist/{providers → elements}/TableColumns/getInitialColumns.d.ts +0 -0
  469. /package/dist/{providers → elements}/TableColumns/getInitialColumns.js +0 -0
  470. /package/dist/{providers → elements}/TableColumns/index.d.ts +0 -0
  471. /package/dist/elements/{ListControls → TableColumns}/types.js +0 -0
  472. /package/dist/exports/client/{CodeEditor-J4IKAVAK.js.map → CodeEditor-TQ5ADFPC.js.map} +0 -0
  473. /package/dist/exports/client/{DatePicker-DMHV2M2L.js.map → DatePicker-HHQ6TPOW.js.map} +0 -0
@@ -7,7 +7,6 @@ import { tabHasName, toKebabCase } from 'payload/shared';
7
7
  import React, { useCallback, useEffect, useState } from 'react';
8
8
  import { useCollapsible } from '../../elements/Collapsible/provider.js';
9
9
  import { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js';
10
- import { useFormFields } from '../../forms/Form/index.js';
11
10
  import { RenderFields } from '../../forms/RenderFields/index.js';
12
11
  import { useField } from '../../forms/useField/index.js';
13
12
  import { withCondition } from '../../forms/withCondition/index.js';
@@ -16,9 +15,9 @@ import { usePreferences } from '../../providers/Preferences/index.js';
16
15
  import { useTranslation } from '../../providers/Translation/index.js';
17
16
  import { FieldDescription } from '../FieldDescription/index.js';
18
17
  import { fieldBaseClass } from '../shared/index.js';
18
+ import './index.scss';
19
19
  import { TabsProvider } from './provider.js';
20
20
  import { TabComponent } from './Tab/index.js';
21
- import './index.scss';
22
21
  const baseClass = 'tabs-field';
23
22
  export { TabsProvider };
24
23
  function generateTabPath({
@@ -36,7 +35,7 @@ function generateTabPath({
36
35
  return tabPath;
37
36
  }
38
37
  const TabsFieldComponent = props => {
39
- const $ = _c(89);
38
+ const $ = _c(75);
40
39
  const {
41
40
  field: t0,
42
41
  forceRender: t1,
@@ -89,105 +88,99 @@ const TabsFieldComponent = props => {
89
88
  const {
90
89
  isWithinCollapsible
91
90
  } = useCollapsible();
91
+ const [activeTabIndex, setActiveTabIndex] = useState(0);
92
+ const tabsPrefKey = `tabs-${indexPath}`;
92
93
  let t10;
93
- if ($[4] !== tabs) {
94
- t10 = t11 => {
95
- const [fields] = t11;
96
- return tabs.map((tab, index) => {
97
- const id = tab?.id;
98
- return {
99
- index,
100
- passesCondition: fields?.[id]?.passesCondition ?? true,
101
- tab
102
- };
103
- });
104
- };
105
- $[4] = tabs;
106
- $[5] = t10;
94
+ if ($[4] !== activeTabIndex || $[5] !== parentPath || $[6] !== tabs) {
95
+ t10 = () => generateTabPath({
96
+ activeTabConfig: tabs[activeTabIndex],
97
+ path: parentPath
98
+ });
99
+ $[4] = activeTabIndex;
100
+ $[5] = parentPath;
101
+ $[6] = tabs;
102
+ $[7] = t10;
107
103
  } else {
108
- t10 = $[5];
104
+ t10 = $[7];
109
105
  }
110
- const tabStates = useFormFields(t10);
106
+ const [activeTabPath, setActiveTabPath] = useState(t10);
111
107
  let t11;
112
- if ($[6] !== tabStates) {
113
- t11 = () => tabStates.filter(_temp)?.[0]?.index ?? 0;
114
- $[6] = tabStates;
115
- $[7] = t11;
108
+ if ($[8] !== activeTabIndex || $[9] !== activeTabPath || $[10] !== parentPath || $[11] !== tabs) {
109
+ t11 = tabHasName(tabs[activeTabIndex]) ? activeTabPath : parentPath;
110
+ $[8] = activeTabIndex;
111
+ $[9] = activeTabPath;
112
+ $[10] = parentPath;
113
+ $[11] = tabs;
114
+ $[12] = t11;
116
115
  } else {
117
- t11 = $[7];
116
+ t11 = $[12];
118
117
  }
119
- const [activeTabIndex, setActiveTabIndex] = useState(t11);
120
- const tabsPrefKey = `tabs-${indexPath}`;
118
+ const activePathChildrenPath = t11;
121
119
  let t12;
122
- if ($[8] !== activeTabIndex || $[9] !== parentPath || $[10] !== tabs) {
120
+ if ($[13] !== parentSchemaPath || $[14] !== tabs) {
123
121
  t12 = () => generateTabPath({
124
- activeTabConfig: tabs[activeTabIndex],
125
- path: parentPath
126
- });
127
- $[8] = activeTabIndex;
128
- $[9] = parentPath;
129
- $[10] = tabs;
130
- $[11] = t12;
131
- } else {
132
- t12 = $[11];
133
- }
134
- const [activeTabPath, setActiveTabPath] = useState(t12);
135
- let t13;
136
- if ($[12] !== parentSchemaPath || $[13] !== tabs) {
137
- t13 = () => generateTabPath({
138
122
  activeTabConfig: tabs[0],
139
123
  path: parentSchemaPath
140
124
  });
141
- $[12] = parentSchemaPath;
142
- $[13] = tabs;
143
- $[14] = t13;
125
+ $[13] = parentSchemaPath;
126
+ $[14] = tabs;
127
+ $[15] = t12;
144
128
  } else {
145
- t13 = $[14];
129
+ t12 = $[15];
146
130
  }
147
- const [activeTabSchemaPath, setActiveTabSchemaPath] = useState(t13);
148
- let t14;
149
- if ($[15] !== activeTabIndex || $[16] !== activeTabPath || $[17] !== parentPath || $[18] !== tabs) {
150
- t14 = tabHasName(tabs[activeTabIndex]) ? activeTabPath : parentPath;
151
- $[15] = activeTabIndex;
152
- $[16] = activeTabPath;
153
- $[17] = parentPath;
154
- $[18] = tabs;
155
- $[19] = t14;
131
+ const [activeTabSchemaPath, setActiveTabSchemaPath] = useState(t12);
132
+ let t13;
133
+ if ($[16] !== activeTabIndex || $[17] !== activeTabSchemaPath || $[18] !== parentSchemaPath || $[19] !== tabs) {
134
+ t13 = tabHasName(tabs[activeTabIndex]) ? activeTabSchemaPath : parentSchemaPath;
135
+ $[16] = activeTabIndex;
136
+ $[17] = activeTabSchemaPath;
137
+ $[18] = parentSchemaPath;
138
+ $[19] = tabs;
139
+ $[20] = t13;
156
140
  } else {
157
- t14 = $[19];
141
+ t13 = $[20];
158
142
  }
159
- const activePathChildrenPath = t14;
160
- const activeTabInfo = tabStates[activeTabIndex];
161
- const activeTabConfig = activeTabInfo?.tab;
143
+ const activePathSchemaChildrenPath = t13;
144
+ let t14;
162
145
  let t15;
163
- if ($[20] !== activeTabIndex || $[21] !== activeTabSchemaPath || $[22] !== parentSchemaPath || $[23] !== tabs) {
164
- t15 = tabHasName(tabs[activeTabIndex]) ? activeTabSchemaPath : parentSchemaPath;
165
- $[20] = activeTabIndex;
166
- $[21] = activeTabSchemaPath;
167
- $[22] = parentSchemaPath;
168
- $[23] = tabs;
169
- $[24] = t15;
146
+ if ($[21] !== getPreference || $[22] !== parentPath || $[23] !== parentSchemaPath || $[24] !== path || $[25] !== preferencesKey || $[26] !== tabs || $[27] !== tabsPrefKey) {
147
+ t14 = () => {
148
+ if (preferencesKey) {
149
+ const getInitialPref = async () => {
150
+ const existingPreferences = await getPreference(preferencesKey);
151
+ const initialIndex = path ? existingPreferences?.fields?.[path]?.tabIndex : existingPreferences?.fields?.[tabsPrefKey]?.tabIndex;
152
+ const newIndex = initialIndex || 0;
153
+ setActiveTabIndex(newIndex);
154
+ setActiveTabPath(generateTabPath({
155
+ activeTabConfig: tabs[newIndex],
156
+ path: parentPath
157
+ }));
158
+ setActiveTabSchemaPath(generateTabPath({
159
+ activeTabConfig: tabs[newIndex],
160
+ path: parentSchemaPath
161
+ }));
162
+ };
163
+ getInitialPref();
164
+ }
165
+ };
166
+ t15 = [path, getPreference, preferencesKey, tabsPrefKey, tabs, parentPath, parentSchemaPath];
167
+ $[21] = getPreference;
168
+ $[22] = parentPath;
169
+ $[23] = parentSchemaPath;
170
+ $[24] = path;
171
+ $[25] = preferencesKey;
172
+ $[26] = tabs;
173
+ $[27] = tabsPrefKey;
174
+ $[28] = t14;
175
+ $[29] = t15;
170
176
  } else {
171
- t15 = $[24];
177
+ t14 = $[28];
178
+ t15 = $[29];
172
179
  }
173
- const activePathSchemaChildrenPath = t15;
174
- const activeTabDescription = activeTabConfig.admin?.description ?? activeTabConfig.description;
180
+ useEffect(t14, t15);
175
181
  let t16;
176
- if ($[25] !== activeTabDescription || $[26] !== i18n) {
177
- t16 = typeof activeTabDescription === "function" ? activeTabDescription({
178
- t: i18n.t
179
- }) : activeTabDescription;
180
- $[25] = activeTabDescription;
181
- $[26] = i18n;
182
- $[27] = t16;
183
- } else {
184
- t16 = $[27];
185
- }
186
- const activeTabStaticDescription = t16;
187
- const hasVisibleTabs = tabStates.some(_temp2);
188
- let t17;
189
- if ($[28] !== getPreference || $[29] !== parentPath || $[30] !== parentSchemaPath || $[31] !== path || $[32] !== preferencesKey || $[33] !== setPreference || $[34] !== tabs || $[35] !== tabsPrefKey) {
190
- t17 = async incomingTabIndex => {
182
+ if ($[30] !== getPreference || $[31] !== parentPath || $[32] !== parentSchemaPath || $[33] !== path || $[34] !== preferencesKey || $[35] !== setPreference || $[36] !== tabs || $[37] !== tabsPrefKey) {
183
+ t16 = async incomingTabIndex => {
191
184
  setActiveTabIndex(incomingTabIndex);
192
185
  setActiveTabPath(generateTabPath({
193
186
  activeTabConfig: tabs[incomingTabIndex],
@@ -197,23 +190,23 @@ const TabsFieldComponent = props => {
197
190
  activeTabConfig: tabs[incomingTabIndex],
198
191
  path: parentSchemaPath
199
192
  }));
200
- const existingPreferences = await getPreference(preferencesKey);
193
+ const existingPreferences_0 = await getPreference(preferencesKey);
201
194
  if (preferencesKey) {
202
195
  setPreference(preferencesKey, {
203
- ...existingPreferences,
196
+ ...existingPreferences_0,
204
197
  ...(path ? {
205
198
  fields: {
206
- ...(existingPreferences?.fields || {}),
199
+ ...(existingPreferences_0?.fields || {}),
207
200
  [path]: {
208
- ...existingPreferences?.fields?.[path],
201
+ ...existingPreferences_0?.fields?.[path],
209
202
  tabIndex: incomingTabIndex
210
203
  }
211
204
  }
212
205
  } : {
213
206
  fields: {
214
- ...existingPreferences?.fields,
207
+ ...existingPreferences_0?.fields,
215
208
  [tabsPrefKey]: {
216
- ...existingPreferences?.fields?.[tabsPrefKey],
209
+ ...existingPreferences_0?.fields?.[tabsPrefKey],
217
210
  tabIndex: incomingTabIndex
218
211
  }
219
212
  }
@@ -221,196 +214,132 @@ const TabsFieldComponent = props => {
221
214
  });
222
215
  }
223
216
  };
224
- $[28] = getPreference;
225
- $[29] = parentPath;
226
- $[30] = parentSchemaPath;
227
- $[31] = path;
228
- $[32] = preferencesKey;
229
- $[33] = setPreference;
230
- $[34] = tabs;
231
- $[35] = tabsPrefKey;
232
- $[36] = t17;
217
+ $[30] = getPreference;
218
+ $[31] = parentPath;
219
+ $[32] = parentSchemaPath;
220
+ $[33] = path;
221
+ $[34] = preferencesKey;
222
+ $[35] = setPreference;
223
+ $[36] = tabs;
224
+ $[37] = tabsPrefKey;
225
+ $[38] = t16;
233
226
  } else {
234
- t17 = $[36];
227
+ t16 = $[38];
235
228
  }
236
- const handleTabChange = t17;
237
- let t18;
238
- let t19;
239
- if ($[37] !== getPreference || $[38] !== parentPath || $[39] !== parentSchemaPath || $[40] !== path || $[41] !== preferencesKey || $[42] !== tabs || $[43] !== tabsPrefKey) {
240
- t18 = () => {
241
- if (preferencesKey) {
242
- const getInitialPref = async () => {
243
- const existingPreferences_0 = await getPreference(preferencesKey);
244
- const initialIndex = path ? existingPreferences_0?.fields?.[path]?.tabIndex : existingPreferences_0?.fields?.[tabsPrefKey]?.tabIndex;
245
- const newIndex = initialIndex || 0;
246
- setActiveTabIndex(newIndex);
247
- setActiveTabPath(generateTabPath({
248
- activeTabConfig: tabs[newIndex],
249
- path: parentPath
250
- }));
251
- setActiveTabSchemaPath(generateTabPath({
252
- activeTabConfig: tabs[newIndex],
253
- path: parentSchemaPath
254
- }));
255
- };
256
- getInitialPref();
257
- }
258
- };
259
- t19 = [path, getPreference, preferencesKey, tabsPrefKey, tabs, parentPath, parentSchemaPath];
260
- $[37] = getPreference;
261
- $[38] = parentPath;
262
- $[39] = parentSchemaPath;
263
- $[40] = path;
264
- $[41] = preferencesKey;
265
- $[42] = tabs;
266
- $[43] = tabsPrefKey;
267
- $[44] = t18;
268
- $[45] = t19;
229
+ const handleTabChange = t16;
230
+ const activeTabConfig = tabs[activeTabIndex];
231
+ const activeTabDescription = activeTabConfig.admin?.description ?? activeTabConfig.description;
232
+ let t17;
233
+ if ($[39] !== activeTabDescription || $[40] !== i18n) {
234
+ t17 = typeof activeTabDescription === "function" ? activeTabDescription({
235
+ t: i18n.t
236
+ }) : activeTabDescription;
237
+ $[39] = activeTabDescription;
238
+ $[40] = i18n;
239
+ $[41] = t17;
269
240
  } else {
270
- t18 = $[44];
271
- t19 = $[45];
241
+ t17 = $[41];
272
242
  }
273
- useEffect(t18, t19);
274
- let t20;
275
- if ($[46] !== activeTabInfo?.passesCondition || $[47] !== handleTabChange || $[48] !== tabStates) {
276
- t20 = () => {
277
- if (activeTabInfo?.passesCondition === false) {
278
- const nextTab = tabStates.find(_temp3);
279
- if (nextTab) {
280
- handleTabChange(nextTab.index);
281
- }
282
- }
283
- };
284
- $[46] = activeTabInfo?.passesCondition;
285
- $[47] = handleTabChange;
286
- $[48] = tabStates;
287
- $[49] = t20;
243
+ const activeTabStaticDescription = t17;
244
+ const t18 = isWithinCollapsible && `${baseClass}--within-collapsible`;
245
+ let t19;
246
+ if ($[42] !== className || $[43] !== t18) {
247
+ t19 = [fieldBaseClass, className, baseClass, t18].filter(Boolean);
248
+ $[42] = className;
249
+ $[43] = t18;
250
+ $[44] = t19;
288
251
  } else {
289
- t20 = $[49];
252
+ t19 = $[44];
290
253
  }
254
+ const t20 = t19.join(" ");
291
255
  let t21;
292
- if ($[50] !== activeTabInfo || $[51] !== handleTabChange || $[52] !== tabStates) {
293
- t21 = [activeTabInfo, tabStates, handleTabChange];
294
- $[50] = activeTabInfo;
295
- $[51] = handleTabChange;
296
- $[52] = tabStates;
297
- $[53] = t21;
298
- } else {
299
- t21 = $[53];
300
- }
301
- useEffect(t20, t21);
302
- const t22 = isWithinCollapsible && `${baseClass}--within-collapsible`;
303
- const t23 = !hasVisibleTabs && `${baseClass}--hidden`;
304
- let t24;
305
- if ($[54] !== className || $[55] !== t22 || $[56] !== t23) {
306
- t24 = [fieldBaseClass, className, baseClass, t22, t23].filter(Boolean);
307
- $[54] = className;
308
- $[55] = t22;
309
- $[56] = t23;
310
- $[57] = t24;
311
- } else {
312
- t24 = $[57];
313
- }
314
- const t25 = t24.join(" ");
315
- let t26;
316
- if ($[58] !== activePathChildrenPath || $[59] !== activePathSchemaChildrenPath || $[60] !== activeTabConfig || $[61] !== activeTabIndex || $[62] !== activeTabInfo || $[63] !== activeTabPath || $[64] !== activeTabStaticDescription || $[65] !== forceRender || $[66] !== handleTabChange || $[67] !== indexPath || $[68] !== path || $[69] !== permissions || $[70] !== readOnly || $[71] !== t25 || $[72] !== tabStates) {
317
- let t27;
318
- if ($[74] !== activeTabIndex || $[75] !== handleTabChange || $[76] !== path) {
319
- t27 = t28 => {
320
- const {
321
- index: index_0,
322
- passesCondition: passesCondition_2,
323
- tab: tab_0
324
- } = t28;
325
- return _jsx(TabComponent, {
326
- hidden: !passesCondition_2,
327
- isActive: activeTabIndex === index_0,
328
- parentPath: path,
329
- setIsActive: () => {
330
- handleTabChange(index_0);
331
- },
332
- tab: tab_0
333
- }, index_0);
334
- };
335
- $[74] = activeTabIndex;
336
- $[75] = handleTabChange;
337
- $[76] = path;
338
- $[77] = t27;
256
+ if ($[45] !== activePathChildrenPath || $[46] !== activePathSchemaChildrenPath || $[47] !== activeTabConfig || $[48] !== activeTabIndex || $[49] !== activeTabPath || $[50] !== activeTabStaticDescription || $[51] !== forceRender || $[52] !== handleTabChange || $[53] !== indexPath || $[54] !== path || $[55] !== permissions || $[56] !== readOnly || $[57] !== t20 || $[58] !== tabs) {
257
+ let t22;
258
+ if ($[60] !== activeTabIndex || $[61] !== handleTabChange || $[62] !== path) {
259
+ t22 = (tab, tabIndex) => _jsx(TabComponent, {
260
+ isActive: activeTabIndex === tabIndex,
261
+ parentPath: path,
262
+ setIsActive: () => {
263
+ handleTabChange(tabIndex);
264
+ },
265
+ tab
266
+ }, tabIndex);
267
+ $[60] = activeTabIndex;
268
+ $[61] = handleTabChange;
269
+ $[62] = path;
270
+ $[63] = t22;
339
271
  } else {
340
- t27 = $[77];
272
+ t22 = $[63];
341
273
  }
342
- let t28;
343
- if ($[78] !== activePathChildrenPath || $[79] !== activePathSchemaChildrenPath || $[80] !== activeTabConfig || $[81] !== activeTabInfo || $[82] !== activeTabPath || $[83] !== activeTabStaticDescription || $[84] !== forceRender || $[85] !== indexPath || $[86] !== permissions || $[87] !== readOnly) {
344
- t28 = activeTabConfig && _jsx(TabContent, {
274
+ let t23;
275
+ if ($[64] !== activePathChildrenPath || $[65] !== activePathSchemaChildrenPath || $[66] !== activeTabConfig || $[67] !== activeTabIndex || $[68] !== activeTabPath || $[69] !== activeTabStaticDescription || $[70] !== forceRender || $[71] !== indexPath || $[72] !== permissions || $[73] !== readOnly) {
276
+ t23 = activeTabConfig && _jsx(ActiveTabContent, {
345
277
  description: activeTabStaticDescription,
346
278
  fields: activeTabConfig.fields,
347
279
  forceRender,
348
- hidden: false,
349
- parentIndexPath: tabHasName(activeTabConfig) ? "" : `${indexPath ? indexPath + "-" : ""}` + String(activeTabInfo.index),
280
+ parentIndexPath: tabHasName(activeTabConfig) ? "" : `${indexPath ? indexPath + "-" : ""}` + String(activeTabIndex),
350
281
  parentPath: activePathChildrenPath,
351
282
  parentSchemaPath: activePathSchemaChildrenPath,
352
283
  path: activeTabPath,
353
284
  permissions: permissions && typeof permissions === "object" && "name" in activeTabConfig ? permissions[activeTabConfig.name] && typeof permissions[activeTabConfig.name] === "object" && "fields" in permissions[activeTabConfig.name] ? permissions[activeTabConfig.name].fields : permissions[activeTabConfig.name] : permissions,
354
285
  readOnly
355
286
  });
356
- $[78] = activePathChildrenPath;
357
- $[79] = activePathSchemaChildrenPath;
358
- $[80] = activeTabConfig;
359
- $[81] = activeTabInfo;
360
- $[82] = activeTabPath;
361
- $[83] = activeTabStaticDescription;
362
- $[84] = forceRender;
363
- $[85] = indexPath;
364
- $[86] = permissions;
365
- $[87] = readOnly;
366
- $[88] = t28;
287
+ $[64] = activePathChildrenPath;
288
+ $[65] = activePathSchemaChildrenPath;
289
+ $[66] = activeTabConfig;
290
+ $[67] = activeTabIndex;
291
+ $[68] = activeTabPath;
292
+ $[69] = activeTabStaticDescription;
293
+ $[70] = forceRender;
294
+ $[71] = indexPath;
295
+ $[72] = permissions;
296
+ $[73] = readOnly;
297
+ $[74] = t23;
367
298
  } else {
368
- t28 = $[88];
299
+ t23 = $[74];
369
300
  }
370
- t26 = _jsx("div", {
371
- className: t25,
301
+ t21 = _jsx("div", {
302
+ className: t20,
372
303
  children: _jsxs(TabsProvider, {
373
304
  children: [_jsx("div", {
374
305
  className: `${baseClass}__tabs-wrap`,
375
306
  children: _jsx("div", {
376
307
  className: `${baseClass}__tabs`,
377
- children: tabStates.map(t27)
308
+ children: tabs.map(t22)
378
309
  })
379
310
  }), _jsx("div", {
380
311
  className: `${baseClass}__content-wrap`,
381
- children: t28
312
+ children: t23
382
313
  })]
383
314
  })
384
315
  });
385
- $[58] = activePathChildrenPath;
386
- $[59] = activePathSchemaChildrenPath;
387
- $[60] = activeTabConfig;
388
- $[61] = activeTabIndex;
389
- $[62] = activeTabInfo;
390
- $[63] = activeTabPath;
391
- $[64] = activeTabStaticDescription;
392
- $[65] = forceRender;
393
- $[66] = handleTabChange;
394
- $[67] = indexPath;
395
- $[68] = path;
396
- $[69] = permissions;
397
- $[70] = readOnly;
398
- $[71] = t25;
399
- $[72] = tabStates;
400
- $[73] = t26;
316
+ $[45] = activePathChildrenPath;
317
+ $[46] = activePathSchemaChildrenPath;
318
+ $[47] = activeTabConfig;
319
+ $[48] = activeTabIndex;
320
+ $[49] = activeTabPath;
321
+ $[50] = activeTabStaticDescription;
322
+ $[51] = forceRender;
323
+ $[52] = handleTabChange;
324
+ $[53] = indexPath;
325
+ $[54] = path;
326
+ $[55] = permissions;
327
+ $[56] = readOnly;
328
+ $[57] = t20;
329
+ $[58] = tabs;
330
+ $[59] = t21;
401
331
  } else {
402
- t26 = $[73];
332
+ t21 = $[59];
403
333
  }
404
- return t26;
334
+ return t21;
405
335
  };
406
336
  export const TabsField = withCondition(TabsFieldComponent);
407
- function TabContent(t0) {
408
- const $ = _c(21);
337
+ function ActiveTabContent(t0) {
338
+ const $ = _c(20);
409
339
  const {
410
340
  description,
411
341
  fields,
412
342
  forceRender,
413
- hidden,
414
343
  label,
415
344
  parentIndexPath,
416
345
  parentPath,
@@ -452,22 +381,20 @@ function TabContent(t0) {
452
381
  if (Field) {
453
382
  return Field;
454
383
  }
455
- const t4 = hidden && `${baseClass}__tab--hidden`;
456
- const t5 = label && `${baseClass}__tabConfigLabel-${toKebabCase(getTranslation(label, i18n))}`;
457
- let t6;
458
- if ($[4] !== t4 || $[5] !== t5) {
459
- t6 = [t4, `${baseClass}__tab`, t5].filter(Boolean);
384
+ const t4 = label && `${baseClass}__tabConfigLabel-${toKebabCase(getTranslation(label, i18n))}`;
385
+ let t5;
386
+ if ($[4] !== t4) {
387
+ t5 = [`${baseClass}__tab`, t4].filter(Boolean);
460
388
  $[4] = t4;
461
389
  $[5] = t5;
462
- $[6] = t6;
463
390
  } else {
464
- t6 = $[6];
391
+ t5 = $[5];
465
392
  }
466
- const t7 = t6.join(" ");
467
- let t8;
468
- if ($[7] !== AfterInput || $[8] !== BeforeInput || $[9] !== Description || $[10] !== description || $[11] !== fields || $[12] !== forceRender || $[13] !== parentIndexPath || $[14] !== parentPath || $[15] !== parentSchemaPath || $[16] !== path || $[17] !== permissions || $[18] !== readOnly || $[19] !== t7) {
469
- t8 = _jsxs("div", {
470
- className: t7,
393
+ const t6 = t5.join(" ");
394
+ let t7;
395
+ if ($[6] !== AfterInput || $[7] !== BeforeInput || $[8] !== Description || $[9] !== description || $[10] !== fields || $[11] !== forceRender || $[12] !== parentIndexPath || $[13] !== parentPath || $[14] !== parentSchemaPath || $[15] !== path || $[16] !== permissions || $[17] !== readOnly || $[18] !== t6) {
396
+ t7 = _jsxs("div", {
397
+ className: t6,
471
398
  children: [_jsx(RenderCustomComponent, {
472
399
  CustomComponent: Description,
473
400
  Fallback: _jsx(FieldDescription, {
@@ -485,41 +412,23 @@ function TabContent(t0) {
485
412
  readOnly
486
413
  }), AfterInput]
487
414
  });
488
- $[7] = AfterInput;
489
- $[8] = BeforeInput;
490
- $[9] = Description;
491
- $[10] = description;
492
- $[11] = fields;
493
- $[12] = forceRender;
494
- $[13] = parentIndexPath;
495
- $[14] = parentPath;
496
- $[15] = parentSchemaPath;
497
- $[16] = path;
498
- $[17] = permissions;
499
- $[18] = readOnly;
415
+ $[6] = AfterInput;
416
+ $[7] = BeforeInput;
417
+ $[8] = Description;
418
+ $[9] = description;
419
+ $[10] = fields;
420
+ $[11] = forceRender;
421
+ $[12] = parentIndexPath;
422
+ $[13] = parentPath;
423
+ $[14] = parentSchemaPath;
424
+ $[15] = path;
425
+ $[16] = permissions;
426
+ $[17] = readOnly;
427
+ $[18] = t6;
500
428
  $[19] = t7;
501
- $[20] = t8;
502
429
  } else {
503
- t8 = $[20];
430
+ t7 = $[19];
504
431
  }
505
- return t8;
506
- }
507
- function _temp(t0) {
508
- const {
509
- passesCondition
510
- } = t0;
511
- return passesCondition;
512
- }
513
- function _temp2(t0) {
514
- const {
515
- passesCondition: passesCondition_0
516
- } = t0;
517
- return passesCondition_0;
518
- }
519
- function _temp3(t0) {
520
- const {
521
- passesCondition: passesCondition_1
522
- } = t0;
523
- return passesCondition_1;
432
+ return t7;
524
433
  }
525
434
  //# sourceMappingURL=index.js.map