@wix/patterns 1.444.0 → 1.445.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 (553) hide show
  1. package/dist/cjs/components/ActionControl/ActionButton.js +43 -37
  2. package/dist/cjs/components/ActionControl/ActionButton.js.map +1 -1
  3. package/dist/cjs/components/CardContainer/CardContainer.st.css.js +2 -2
  4. package/dist/cjs/components/CardContainer/CardContainer.st.css.js.map +1 -1
  5. package/dist/cjs/components/CmsFieldManagement/CmsFieldForm.st.css.js +3 -3
  6. package/dist/cjs/components/CmsFieldManagement/CmsFieldForm.st.css.js.map +1 -1
  7. package/dist/cjs/components/CmsFieldManagement/CmsFieldModal.st.css.js +3 -3
  8. package/dist/cjs/components/CmsFieldManagement/CmsFieldModal.st.css.js.map +1 -1
  9. package/dist/cjs/components/CmsFieldManagement/Sections/ValidationAndDefaultsSection.st.css.js +3 -3
  10. package/dist/cjs/components/CmsFieldManagement/Sections/ValidationAndDefaultsSection.st.css.js.map +1 -1
  11. package/dist/cjs/components/CmsFieldManagement/formFields/CharactersLimitInput.st.css.js +3 -3
  12. package/dist/cjs/components/CmsFieldManagement/formFields/CharactersLimitInput.st.css.js.map +1 -1
  13. package/dist/cjs/components/Collapse/Collapse.st.css.js +3 -3
  14. package/dist/cjs/components/Collapse/Collapse.st.css.js.map +1 -1
  15. package/dist/cjs/components/CollectionPageNew/CollectionPage.st.css.js +2 -2
  16. package/dist/cjs/components/CollectionPageNew/CollectionPage.st.css.js.map +1 -1
  17. package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js +3 -3
  18. package/dist/cjs/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js.map +1 -1
  19. package/dist/cjs/components/CollectionTable/CollectionTable.st.css.js +2 -2
  20. package/dist/cjs/components/CollectionTable/CollectionTable.st.css.js.map +1 -1
  21. package/dist/cjs/components/CollectionTable/CollectionTableWSRTable.js.map +1 -1
  22. package/dist/cjs/components/CollectionTable/CollectionTableWSRTable.st.css.js +2 -2
  23. package/dist/cjs/components/CollectionTable/CollectionTableWSRTable.st.css.js.map +1 -1
  24. package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js +5 -5
  25. package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js.map +1 -1
  26. package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +4 -4
  27. package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js.map +1 -1
  28. package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
  29. package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js.map +1 -1
  30. package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
  31. package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js.map +1 -1
  32. package/dist/cjs/components/CustomFieldModal/CustomFieldCollectionInput.js +95 -0
  33. package/dist/cjs/components/CustomFieldModal/CustomFieldCollectionInput.js.map +1 -0
  34. package/dist/cjs/components/CustomFieldModal/CustomFieldForm.js +44 -30
  35. package/dist/cjs/components/CustomFieldModal/CustomFieldForm.js.map +1 -1
  36. package/dist/cjs/components/CustomFieldModal/CustomFieldModal.js +17 -10
  37. package/dist/cjs/components/CustomFieldModal/CustomFieldModal.js.map +1 -1
  38. package/dist/cjs/components/CustomFieldModal/CustomFieldModal.uni.driver.js +14 -0
  39. package/dist/cjs/components/CustomFieldModal/CustomFieldModal.uni.driver.js.map +1 -1
  40. package/dist/cjs/components/CustomFieldModal/CustomFieldTypeDropdown.js +10 -6
  41. package/dist/cjs/components/CustomFieldModal/CustomFieldTypeDropdown.js.map +1 -1
  42. package/dist/cjs/components/DragHandle/DragHandle.st.css.js +2 -2
  43. package/dist/cjs/components/DragHandle/DragHandle.st.css.js.map +1 -1
  44. package/dist/cjs/components/EditableTable/EditableCell.st.css.js +3 -3
  45. package/dist/cjs/components/EditableTable/EditableCell.st.css.js.map +1 -1
  46. package/dist/cjs/components/EditableTable/EditableTableContextMenu.js +6 -6
  47. package/dist/cjs/components/EditableTable/EditableTableContextMenu.js.map +1 -1
  48. package/dist/cjs/components/EditableTable/HeaderActionsPopover.st.css.js +2 -2
  49. package/dist/cjs/components/EditableTable/HeaderActionsPopover.st.css.js.map +1 -1
  50. package/dist/cjs/components/EditableTable/cellTypes/CellViewLayout.st.css.js +2 -2
  51. package/dist/cjs/components/EditableTable/cellTypes/CellViewLayout.st.css.js.map +1 -1
  52. package/dist/cjs/components/EditableTable/cellTypes/address/Edit.st.css.js +3 -3
  53. package/dist/cjs/components/EditableTable/cellTypes/address/Edit.st.css.js.map +1 -1
  54. package/dist/cjs/components/EditableTable/cellTypes/array/Edit.st.css.js +3 -3
  55. package/dist/cjs/components/EditableTable/cellTypes/array/Edit.st.css.js.map +1 -1
  56. package/dist/cjs/components/EditableTable/cellTypes/boolean/Edit.st.css.js +3 -3
  57. package/dist/cjs/components/EditableTable/cellTypes/boolean/Edit.st.css.js.map +1 -1
  58. package/dist/cjs/components/EditableTable/cellTypes/boolean/View.st.css.js +3 -3
  59. package/dist/cjs/components/EditableTable/cellTypes/boolean/View.st.css.js.map +1 -1
  60. package/dist/cjs/components/EditableTable/cellTypes/color/Edit.st.css.js +2 -2
  61. package/dist/cjs/components/EditableTable/cellTypes/color/Edit.st.css.js.map +1 -1
  62. package/dist/cjs/components/EditableTable/cellTypes/date/Edit.st.css.js +3 -3
  63. package/dist/cjs/components/EditableTable/cellTypes/date/Edit.st.css.js.map +1 -1
  64. package/dist/cjs/components/EditableTable/cellTypes/date/View.st.css.js +2 -2
  65. package/dist/cjs/components/EditableTable/cellTypes/date/View.st.css.js.map +1 -1
  66. package/dist/cjs/components/EditableTable/cellTypes/datetime/Edit.st.css.js +8 -8
  67. package/dist/cjs/components/EditableTable/cellTypes/datetime/Edit.st.css.js.map +1 -1
  68. package/dist/cjs/components/EditableTable/cellTypes/datetime/View.st.css.js +7 -7
  69. package/dist/cjs/components/EditableTable/cellTypes/datetime/View.st.css.js.map +1 -1
  70. package/dist/cjs/components/EditableTable/cellTypes/email/Edit.st.css.js +3 -3
  71. package/dist/cjs/components/EditableTable/cellTypes/email/Edit.st.css.js.map +1 -1
  72. package/dist/cjs/components/EditableTable/cellTypes/email/View.st.css.js +2 -2
  73. package/dist/cjs/components/EditableTable/cellTypes/email/View.st.css.js.map +1 -1
  74. package/dist/cjs/components/EditableTable/cellTypes/number/Edit.st.css.js +3 -3
  75. package/dist/cjs/components/EditableTable/cellTypes/number/Edit.st.css.js.map +1 -1
  76. package/dist/cjs/components/EditableTable/cellTypes/number/View.st.css.js +3 -3
  77. package/dist/cjs/components/EditableTable/cellTypes/number/View.st.css.js.map +1 -1
  78. package/dist/cjs/components/EditableTable/cellTypes/object/Edit.st.css.js +3 -3
  79. package/dist/cjs/components/EditableTable/cellTypes/object/Edit.st.css.js.map +1 -1
  80. package/dist/cjs/components/EditableTable/cellTypes/object/View.st.css.js +2 -2
  81. package/dist/cjs/components/EditableTable/cellTypes/object/View.st.css.js.map +1 -1
  82. package/dist/cjs/components/EditableTable/cellTypes/select/Edit.st.css.js +3 -3
  83. package/dist/cjs/components/EditableTable/cellTypes/select/Edit.st.css.js.map +1 -1
  84. package/dist/cjs/components/EditableTable/cellTypes/text/Edit.st.css.js +4 -4
  85. package/dist/cjs/components/EditableTable/cellTypes/text/Edit.st.css.js.map +1 -1
  86. package/dist/cjs/components/EditableTable/cellTypes/text/View.st.css.js +2 -2
  87. package/dist/cjs/components/EditableTable/cellTypes/text/View.st.css.js.map +1 -1
  88. package/dist/cjs/components/EditableTable/cellTypes/time/Edit.st.css.js +4 -4
  89. package/dist/cjs/components/EditableTable/cellTypes/time/Edit.st.css.js.map +1 -1
  90. package/dist/cjs/components/EditableTable/cellTypes/url/Edit.st.css.js +3 -3
  91. package/dist/cjs/components/EditableTable/cellTypes/url/Edit.st.css.js.map +1 -1
  92. package/dist/cjs/components/EditableTable/cellTypes/url/View.st.css.js +5 -5
  93. package/dist/cjs/components/EditableTable/cellTypes/url/View.st.css.js.map +1 -1
  94. package/dist/cjs/components/EmptyState/EmptyStateBase.st.css.js +2 -2
  95. package/dist/cjs/components/EmptyState/EmptyStateBase.st.css.js.map +1 -1
  96. package/dist/cjs/components/EntityPage/EntityPagePlain.st.css.js +2 -2
  97. package/dist/cjs/components/EntityPage/EntityPagePlain.st.css.js.map +1 -1
  98. package/dist/cjs/components/EntityPageFields/EntityPageCustomField.js +67 -6
  99. package/dist/cjs/components/EntityPageFields/EntityPageCustomField.js.map +1 -1
  100. package/dist/cjs/components/EntityPageFields/EntityPageField.js +4 -3
  101. package/dist/cjs/components/EntityPageFields/EntityPageField.js.map +1 -1
  102. package/dist/cjs/components/EntityPageFields/EntityPageReferenceField.js +14 -8
  103. package/dist/cjs/components/EntityPageFields/EntityPageReferenceField.js.map +1 -1
  104. package/dist/cjs/components/Fade/Fade.st.css.js +2 -2
  105. package/dist/cjs/components/Fade/Fade.st.css.js.map +1 -1
  106. package/dist/cjs/components/Heading/Heading.st.css.js +2 -2
  107. package/dist/cjs/components/Heading/Heading.st.css.js.map +1 -1
  108. package/dist/cjs/components/ImportButton/ImportStepUpload.st.css.js +3 -3
  109. package/dist/cjs/components/ImportButton/ImportStepUpload.st.css.js.map +1 -1
  110. package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js +2 -2
  111. package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js.map +1 -1
  112. package/dist/cjs/components/LoadingRow/LoadingRow.st.css.js +3 -3
  113. package/dist/cjs/components/LoadingRow/LoadingRow.st.css.js.map +1 -1
  114. package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
  115. package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
  116. package/dist/cjs/components/MaxLines/MaxLines.st.css.js +2 -2
  117. package/dist/cjs/components/MaxLines/MaxLines.st.css.js.map +1 -1
  118. package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +5 -5
  119. package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js.map +1 -1
  120. package/dist/cjs/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
  121. package/dist/cjs/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js.map +1 -1
  122. package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js +5 -5
  123. package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js.map +1 -1
  124. package/dist/cjs/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js +2 -2
  125. package/dist/cjs/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js.map +1 -1
  126. package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
  127. package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js.map +1 -1
  128. package/dist/cjs/components/PickerContent/PickerContent.st.css.js +2 -2
  129. package/dist/cjs/components/PickerContent/PickerContent.st.css.js.map +1 -1
  130. package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js +4 -4
  131. package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
  132. package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
  133. package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js.map +1 -1
  134. package/dist/cjs/components/SchemaSource/referenceCells.js +25 -5
  135. package/dist/cjs/components/SchemaSource/referenceCells.js.map +1 -1
  136. package/dist/cjs/components/SchemaSource/schemaFieldManagement.js +32 -6
  137. package/dist/cjs/components/SchemaSource/schemaFieldManagement.js.map +1 -1
  138. package/dist/cjs/components/SchemaSource/schemaRendering.js +1 -1
  139. package/dist/cjs/components/SchemaSource/schemaRendering.js.map +1 -1
  140. package/dist/cjs/components/SchemaSource/tableSchemaSource.js +3 -0
  141. package/dist/cjs/components/SchemaSource/tableSchemaSource.js.map +1 -1
  142. package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
  143. package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js.map +1 -1
  144. package/dist/cjs/components/SetupWidget/SetupStepSecondaryCta.js +6 -4
  145. package/dist/cjs/components/SetupWidget/SetupStepSecondaryCta.js.map +1 -1
  146. package/dist/cjs/components/SetupWidget/SetupWidget.st.css +22 -5
  147. package/dist/cjs/components/SetupWidget/SetupWidget.st.css.js +10 -9
  148. package/dist/cjs/components/SetupWidget/SetupWidget.st.css.js.map +1 -1
  149. package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js +3 -3
  150. package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js.map +1 -1
  151. package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js +2 -2
  152. package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js.map +1 -1
  153. package/dist/cjs/components/Table/AddFieldColumnHeader.st.css.js +4 -4
  154. package/dist/cjs/components/Table/AddFieldColumnHeader.st.css.js.map +1 -1
  155. package/dist/cjs/components/TabsFilter/TabsDropdown.js +6 -5
  156. package/dist/cjs/components/TabsFilter/TabsDropdown.js.map +1 -1
  157. package/dist/cjs/components/TabsFilter/TabsFilter.js +9 -7
  158. package/dist/cjs/components/TabsFilter/TabsFilter.js.map +1 -1
  159. package/dist/cjs/components/TabsFilter/TabsFilter.st.css.js +3 -3
  160. package/dist/cjs/components/TabsFilter/TabsFilter.st.css.js.map +1 -1
  161. package/dist/cjs/components/TabsFilter/TabsFilter.uni.driver.js +7 -0
  162. package/dist/cjs/components/TabsFilter/TabsFilter.uni.driver.js.map +1 -1
  163. package/dist/cjs/components/TabsFilter/types.js.map +1 -1
  164. package/dist/cjs/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
  165. package/dist/cjs/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js.map +1 -1
  166. package/dist/cjs/components/ToolbarItem/ToolbarItem.st.css.js +2 -2
  167. package/dist/cjs/components/ToolbarItem/ToolbarItem.st.css.js.map +1 -1
  168. package/dist/cjs/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
  169. package/dist/cjs/components/ToolbarItemBox/ToolbarItemBox.st.css.js.map +1 -1
  170. package/dist/cjs/components/common.st.css.js +4 -4
  171. package/dist/cjs/components/common.st.css.js.map +1 -1
  172. package/dist/cjs/exports/schema.js.map +1 -1
  173. package/dist/cjs/index.js.map +1 -1
  174. package/dist/cjs/schema/index.js.map +1 -1
  175. package/dist/cjs/schema/schemaCollectionOptions.js.map +1 -1
  176. package/dist/cjs/schema/sourceMutations.js +2 -1
  177. package/dist/cjs/schema/sourceMutations.js.map +1 -1
  178. package/dist/cjs/schema/useEditableTableCollection.js +4 -1
  179. package/dist/cjs/schema/useEditableTableCollection.js.map +1 -1
  180. package/dist/cjs/schema/useEntityPage.js +8 -4
  181. package/dist/cjs/schema/useEntityPage.js.map +1 -1
  182. package/dist/cjs/schema/useLayoutSwitchCollection.js +4 -1
  183. package/dist/cjs/schema/useLayoutSwitchCollection.js.map +1 -1
  184. package/dist/cjs/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
  185. package/dist/cjs/state/CollectionPage/CollectionPageHeader.st.css.js.map +1 -1
  186. package/dist/cjs/state/FormPage/FormPageHeader.st.css.js +2 -2
  187. package/dist/cjs/state/FormPage/FormPageHeader.st.css.js.map +1 -1
  188. package/dist/cjs/state/buildFieldFilters.js +6 -7
  189. package/dist/cjs/state/buildFieldFilters.js.map +1 -1
  190. package/dist/cjs/styles.global.css +2 -2
  191. package/dist/cjs/version.js +1 -1
  192. package/dist/cjs/version.js.map +1 -1
  193. package/dist/docs/Table.md +1 -1
  194. package/dist/docs/TableFolders.md +1 -1
  195. package/dist/docs/TableGridSwitch.md +1 -1
  196. package/dist/docs/TableGridSwitchFolders.md +1 -1
  197. package/dist/docs/TabsFilter.md +108 -0
  198. package/dist/docs/index.json +34 -34
  199. package/dist/esm/components/ActionControl/ActionButton.js +5 -1
  200. package/dist/esm/components/ActionControl/ActionButton.js.map +1 -1
  201. package/dist/esm/components/CardContainer/CardContainer.st.css.js +2 -2
  202. package/dist/esm/components/CmsFieldManagement/CmsFieldForm.st.css.js +2 -2
  203. package/dist/esm/components/CmsFieldManagement/CmsFieldForm.st.css.js.map +1 -1
  204. package/dist/esm/components/CmsFieldManagement/CmsFieldModal.st.css.js +2 -2
  205. package/dist/esm/components/CmsFieldManagement/CmsFieldModal.st.css.js.map +1 -1
  206. package/dist/esm/components/CmsFieldManagement/Sections/ValidationAndDefaultsSection.st.css.js +2 -2
  207. package/dist/esm/components/CmsFieldManagement/formFields/CharactersLimitInput.st.css.js +2 -2
  208. package/dist/esm/components/Collapse/Collapse.st.css.js +2 -2
  209. package/dist/esm/components/CollectionPageNew/CollectionPage.st.css.js +2 -2
  210. package/dist/esm/components/CollectionPageNew/CollectionPage.st.css.js.map +1 -1
  211. package/dist/esm/components/CollectionSectionHeader/CollectionSectionHeader.st.css.js +2 -2
  212. package/dist/esm/components/CollectionTable/CollectionTable.st.css.js +2 -2
  213. package/dist/esm/components/CollectionTable/CollectionTable.st.css.js.map +1 -1
  214. package/dist/esm/components/CollectionTable/CollectionTableWSRTable.st.css.js +2 -2
  215. package/dist/esm/components/CollectionTable/CollectionTableWSRTable.st.css.js.map +1 -1
  216. package/dist/esm/components/CollectionToolbar/CollectionToolbar.st.css.js +2 -2
  217. package/dist/esm/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +2 -2
  218. package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
  219. package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js.map +1 -1
  220. package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
  221. package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.st.css.js.map +1 -1
  222. package/dist/esm/components/CustomFieldModal/CustomFieldCollectionInput.js +38 -0
  223. package/dist/esm/components/CustomFieldModal/CustomFieldCollectionInput.js.map +1 -0
  224. package/dist/esm/components/CustomFieldModal/CustomFieldForm.js +7 -4
  225. package/dist/esm/components/CustomFieldModal/CustomFieldForm.js.map +1 -1
  226. package/dist/esm/components/CustomFieldModal/CustomFieldModal.js +2 -1
  227. package/dist/esm/components/CustomFieldModal/CustomFieldModal.js.map +1 -1
  228. package/dist/esm/components/CustomFieldModal/CustomFieldModal.uni.driver.js +20 -1
  229. package/dist/esm/components/CustomFieldModal/CustomFieldModal.uni.driver.js.map +1 -1
  230. package/dist/esm/components/CustomFieldModal/CustomFieldTypeDropdown.js +6 -2
  231. package/dist/esm/components/CustomFieldModal/CustomFieldTypeDropdown.js.map +1 -1
  232. package/dist/esm/components/DragHandle/DragHandle.st.css.js +2 -2
  233. package/dist/esm/components/DragHandle/DragHandle.st.css.js.map +1 -1
  234. package/dist/esm/components/EditableTable/EditableCell.st.css.js +2 -2
  235. package/dist/esm/components/EditableTable/EditableTableContextMenu.js +1 -1
  236. package/dist/esm/components/EditableTable/EditableTableContextMenu.js.map +1 -1
  237. package/dist/esm/components/EditableTable/HeaderActionsPopover.st.css.js +2 -2
  238. package/dist/esm/components/EditableTable/cellTypes/CellViewLayout.st.css.js +2 -2
  239. package/dist/esm/components/EditableTable/cellTypes/CellViewLayout.st.css.js.map +1 -1
  240. package/dist/esm/components/EditableTable/cellTypes/address/Edit.st.css.js +2 -2
  241. package/dist/esm/components/EditableTable/cellTypes/array/Edit.st.css.js +2 -2
  242. package/dist/esm/components/EditableTable/cellTypes/boolean/Edit.st.css.js +2 -2
  243. package/dist/esm/components/EditableTable/cellTypes/boolean/Edit.st.css.js.map +1 -1
  244. package/dist/esm/components/EditableTable/cellTypes/boolean/View.st.css.js +2 -2
  245. package/dist/esm/components/EditableTable/cellTypes/color/Edit.st.css.js +2 -2
  246. package/dist/esm/components/EditableTable/cellTypes/date/Edit.st.css.js +2 -2
  247. package/dist/esm/components/EditableTable/cellTypes/date/View.st.css.js +2 -2
  248. package/dist/esm/components/EditableTable/cellTypes/date/View.st.css.js.map +1 -1
  249. package/dist/esm/components/EditableTable/cellTypes/datetime/Edit.st.css.js +2 -2
  250. package/dist/esm/components/EditableTable/cellTypes/datetime/View.st.css.js +2 -2
  251. package/dist/esm/components/EditableTable/cellTypes/email/Edit.st.css.js +2 -2
  252. package/dist/esm/components/EditableTable/cellTypes/email/View.st.css.js +2 -2
  253. package/dist/esm/components/EditableTable/cellTypes/email/View.st.css.js.map +1 -1
  254. package/dist/esm/components/EditableTable/cellTypes/number/Edit.st.css.js +2 -2
  255. package/dist/esm/components/EditableTable/cellTypes/number/View.st.css.js +2 -2
  256. package/dist/esm/components/EditableTable/cellTypes/object/Edit.st.css.js +2 -2
  257. package/dist/esm/components/EditableTable/cellTypes/object/View.st.css.js +2 -2
  258. package/dist/esm/components/EditableTable/cellTypes/object/View.st.css.js.map +1 -1
  259. package/dist/esm/components/EditableTable/cellTypes/select/Edit.st.css.js +2 -2
  260. package/dist/esm/components/EditableTable/cellTypes/text/Edit.st.css.js +2 -2
  261. package/dist/esm/components/EditableTable/cellTypes/text/View.st.css.js +2 -2
  262. package/dist/esm/components/EditableTable/cellTypes/text/View.st.css.js.map +1 -1
  263. package/dist/esm/components/EditableTable/cellTypes/time/Edit.st.css.js +2 -2
  264. package/dist/esm/components/EditableTable/cellTypes/time/Edit.st.css.js.map +1 -1
  265. package/dist/esm/components/EditableTable/cellTypes/url/Edit.st.css.js +2 -2
  266. package/dist/esm/components/EditableTable/cellTypes/url/View.st.css.js +2 -2
  267. package/dist/esm/components/EditableTable/cellTypes/url/View.st.css.js.map +1 -1
  268. package/dist/esm/components/EmptyState/EmptyStateBase.st.css.js +2 -2
  269. package/dist/esm/components/EmptyState/EmptyStateBase.st.css.js.map +1 -1
  270. package/dist/esm/components/EntityPage/EntityPagePlain.st.css.js +2 -2
  271. package/dist/esm/components/EntityPageFields/EntityPageCustomField.js +38 -3
  272. package/dist/esm/components/EntityPageFields/EntityPageCustomField.js.map +1 -1
  273. package/dist/esm/components/EntityPageFields/EntityPageField.js +2 -1
  274. package/dist/esm/components/EntityPageFields/EntityPageField.js.map +1 -1
  275. package/dist/esm/components/EntityPageFields/EntityPageReferenceField.js +9 -5
  276. package/dist/esm/components/EntityPageFields/EntityPageReferenceField.js.map +1 -1
  277. package/dist/esm/components/Fade/Fade.st.css.js +2 -2
  278. package/dist/esm/components/Fade/Fade.st.css.js.map +1 -1
  279. package/dist/esm/components/Heading/Heading.st.css.js +2 -2
  280. package/dist/esm/components/Heading/Heading.st.css.js.map +1 -1
  281. package/dist/esm/components/ImportButton/ImportStepUpload.st.css.js +2 -2
  282. package/dist/esm/components/InputOverflow/InputOverflow.st.css.js +2 -2
  283. package/dist/esm/components/LoadingRow/LoadingRow.st.css.js +3 -3
  284. package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
  285. package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
  286. package/dist/esm/components/MaxLines/MaxLines.st.css.js +2 -2
  287. package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
  288. package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js.map +1 -1
  289. package/dist/esm/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
  290. package/dist/esm/components/NestedTable/NestedTableRow.st.css.js +2 -2
  291. package/dist/esm/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js +2 -2
  292. package/dist/esm/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js.map +1 -1
  293. package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
  294. package/dist/esm/components/PickerContent/PickerContent.st.css.js +2 -2
  295. package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js +2 -2
  296. package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
  297. package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
  298. package/dist/esm/components/SchemaSource/referenceCells.js +24 -4
  299. package/dist/esm/components/SchemaSource/referenceCells.js.map +1 -1
  300. package/dist/esm/components/SchemaSource/schemaFieldManagement.js +34 -4
  301. package/dist/esm/components/SchemaSource/schemaFieldManagement.js.map +1 -1
  302. package/dist/esm/components/SchemaSource/schemaRendering.js +2 -2
  303. package/dist/esm/components/SchemaSource/schemaRendering.js.map +1 -1
  304. package/dist/esm/components/SchemaSource/tableSchemaSource.js +3 -0
  305. package/dist/esm/components/SchemaSource/tableSchemaSource.js.map +1 -1
  306. package/dist/esm/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
  307. package/dist/esm/components/SetupWidget/SetupStepSecondaryCta.js +2 -1
  308. package/dist/esm/components/SetupWidget/SetupStepSecondaryCta.js.map +1 -1
  309. package/dist/esm/components/SetupWidget/SetupWidget.st.css +22 -5
  310. package/dist/esm/components/SetupWidget/SetupWidget.st.css.js +2 -2
  311. package/dist/esm/components/SetupWidget/SetupWidget.st.css.js.map +1 -1
  312. package/dist/esm/components/SkeletonCard/SkeletonCard.st.css.js +2 -2
  313. package/dist/esm/components/SlidingModal/SlidingModal.st.css.js +2 -2
  314. package/dist/esm/components/Table/AddFieldColumnHeader.st.css.js +2 -2
  315. package/dist/esm/components/TabsFilter/TabsDropdown.js +1 -0
  316. package/dist/esm/components/TabsFilter/TabsDropdown.js.map +1 -1
  317. package/dist/esm/components/TabsFilter/TabsFilter.js +3 -1
  318. package/dist/esm/components/TabsFilter/TabsFilter.js.map +1 -1
  319. package/dist/esm/components/TabsFilter/TabsFilter.st.css.js +2 -2
  320. package/dist/esm/components/TabsFilter/TabsFilter.st.css.js.map +1 -1
  321. package/dist/esm/components/TabsFilter/TabsFilter.uni.driver.js +7 -0
  322. package/dist/esm/components/TabsFilter/TabsFilter.uni.driver.js.map +1 -1
  323. package/dist/esm/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
  324. package/dist/esm/components/ToolbarItem/ToolbarItem.st.css.js +2 -2
  325. package/dist/esm/components/ToolbarItem/ToolbarItem.st.css.js.map +1 -1
  326. package/dist/esm/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
  327. package/dist/esm/components/ToolbarItemBox/ToolbarItemBox.st.css.js.map +1 -1
  328. package/dist/esm/components/common.st.css.js +2 -2
  329. package/dist/esm/components/common.st.css.js.map +1 -1
  330. package/dist/esm/exports/schema.js.map +1 -1
  331. package/dist/esm/index.js.map +1 -1
  332. package/dist/esm/schema/index.js.map +1 -1
  333. package/dist/esm/schema/schemaCollectionOptions.js.map +1 -1
  334. package/dist/esm/schema/sourceMutations.js +5 -2
  335. package/dist/esm/schema/sourceMutations.js.map +1 -1
  336. package/dist/esm/schema/useEditableTableCollection.js +5 -3
  337. package/dist/esm/schema/useEditableTableCollection.js.map +1 -1
  338. package/dist/esm/schema/useEntityPage.js +8 -5
  339. package/dist/esm/schema/useEntityPage.js.map +1 -1
  340. package/dist/esm/schema/useLayoutSwitchCollection.js +8 -3
  341. package/dist/esm/schema/useLayoutSwitchCollection.js.map +1 -1
  342. package/dist/esm/state/CollectionPage/CollectionPageHeader.st.css.js +2 -2
  343. package/dist/esm/state/CollectionPage/CollectionPageHeader.st.css.js.map +1 -1
  344. package/dist/esm/state/FormPage/FormPageHeader.st.css.js +2 -2
  345. package/dist/esm/state/buildFieldFilters.js +1 -2
  346. package/dist/esm/state/buildFieldFilters.js.map +1 -1
  347. package/dist/esm/styles.global.css +2 -2
  348. package/dist/esm/version.js +1 -1
  349. package/dist/types/components/ActionControl/ActionButton.d.ts.map +1 -1
  350. package/dist/types/components/CmsFieldManagement/CmsFieldForm.st.css.d.ts.map +1 -1
  351. package/dist/types/components/CmsFieldManagement/CmsFieldModal.st.css.d.ts.map +1 -1
  352. package/dist/types/components/CollectionPageNew/CollectionPage.st.css.d.ts.map +1 -1
  353. package/dist/types/components/CollectionTable/CollectionTable.st.css.d.ts.map +1 -1
  354. package/dist/types/components/CollectionTable/CollectionTable.uni.driver.d.ts +3 -0
  355. package/dist/types/components/CollectionTable/CollectionTable.uni.driver.d.ts.map +1 -1
  356. package/dist/types/components/CollectionTable/CollectionTableWSRTable.d.ts +1 -1
  357. package/dist/types/components/CollectionTable/CollectionTableWSRTable.st.css.d.ts.map +1 -1
  358. package/dist/types/components/CollectionToolbar/CollectionToolbar.uni.driver.d.ts +1 -0
  359. package/dist/types/components/CollectionToolbar/CollectionToolbar.uni.driver.d.ts.map +1 -1
  360. package/dist/types/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.d.ts.map +1 -1
  361. package/dist/types/components/CollectionViewsDropdown/ViewsDropdown.st.css.d.ts.map +1 -1
  362. package/dist/types/components/CustomFieldModal/CustomFieldCollectionInput.d.ts +10 -0
  363. package/dist/types/components/CustomFieldModal/CustomFieldCollectionInput.d.ts.map +1 -0
  364. package/dist/types/components/CustomFieldModal/CustomFieldForm.d.ts.map +1 -1
  365. package/dist/types/components/CustomFieldModal/CustomFieldModal.d.ts.map +1 -1
  366. package/dist/types/components/CustomFieldModal/CustomFieldModal.uni.driver.d.ts +336 -1
  367. package/dist/types/components/CustomFieldModal/CustomFieldModal.uni.driver.d.ts.map +1 -1
  368. package/dist/types/components/CustomFieldModal/CustomFieldTypeDropdown.d.ts.map +1 -1
  369. package/dist/types/components/CustomFieldsWidget/CustomFieldsWidget.uni.driver.d.ts +335 -1
  370. package/dist/types/components/CustomFieldsWidget/CustomFieldsWidget.uni.driver.d.ts.map +1 -1
  371. package/dist/types/components/DragHandle/DragHandle.st.css.d.ts.map +1 -1
  372. package/dist/types/components/EditableTable/EditableTable.uni.driver.d.ts +339 -1
  373. package/dist/types/components/EditableTable/EditableTable.uni.driver.d.ts.map +1 -1
  374. package/dist/types/components/EditableTable/cellTypes/CellViewLayout.st.css.d.ts.map +1 -1
  375. package/dist/types/components/EditableTable/cellTypes/boolean/Edit.st.css.d.ts.map +1 -1
  376. package/dist/types/components/EditableTable/cellTypes/date/View.st.css.d.ts.map +1 -1
  377. package/dist/types/components/EditableTable/cellTypes/email/View.st.css.d.ts.map +1 -1
  378. package/dist/types/components/EditableTable/cellTypes/object/View.st.css.d.ts.map +1 -1
  379. package/dist/types/components/EditableTable/cellTypes/text/View.st.css.d.ts.map +1 -1
  380. package/dist/types/components/EditableTable/cellTypes/time/Edit.st.css.d.ts.map +1 -1
  381. package/dist/types/components/EditableTable/cellTypes/url/View.st.css.d.ts.map +1 -1
  382. package/dist/types/components/EmptyState/EmptyStateBase.st.css.d.ts.map +1 -1
  383. package/dist/types/components/EntityPageFields/EntityPageCustomField.d.ts.map +1 -1
  384. package/dist/types/components/EntityPageFields/EntityPageField.d.ts.map +1 -1
  385. package/dist/types/components/EntityPageFields/EntityPageReferenceField.d.ts.map +1 -1
  386. package/dist/types/components/Fade/Fade.st.css.d.ts.map +1 -1
  387. package/dist/types/components/Grid/Grid.uni.driver.d.ts +2 -0
  388. package/dist/types/components/Grid/Grid.uni.driver.d.ts.map +1 -1
  389. package/dist/types/components/Grid/GridFolders.uni.driver.d.ts +5 -0
  390. package/dist/types/components/Grid/GridFolders.uni.driver.d.ts.map +1 -1
  391. package/dist/types/components/Grid/GridFoldersSection.uni.driver.d.ts +2 -0
  392. package/dist/types/components/Grid/GridFoldersSection.uni.driver.d.ts.map +1 -1
  393. package/dist/types/components/Heading/Heading.st.css.d.ts.map +1 -1
  394. package/dist/types/components/Kanban/Kanban.uni.driver.d.ts +1 -0
  395. package/dist/types/components/Kanban/Kanban.uni.driver.d.ts.map +1 -1
  396. package/dist/types/components/MaxHeightText/MaxHeightText.st.css.d.ts.map +1 -1
  397. package/dist/types/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.d.ts.map +1 -1
  398. package/dist/types/components/NestedTable/NestedTable.uni.driver.d.ts +339 -1
  399. package/dist/types/components/NestedTable/NestedTable.uni.driver.d.ts.map +1 -1
  400. package/dist/types/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.d.ts.map +1 -1
  401. package/dist/types/components/PickerContent/PickerContentAdditionalStep.st.css.d.ts.map +1 -1
  402. package/dist/types/components/SchemaSource/referenceCells.d.ts +3 -0
  403. package/dist/types/components/SchemaSource/referenceCells.d.ts.map +1 -1
  404. package/dist/types/components/SchemaSource/schemaFieldManagement.d.ts.map +1 -1
  405. package/dist/types/components/SchemaSource/tableSchemaSource.d.ts.map +1 -1
  406. package/dist/types/components/SetupWidget/SetupStepSecondaryCta.d.ts.map +1 -1
  407. package/dist/types/components/SetupWidget/SetupWidget.st.css.d.ts +1 -0
  408. package/dist/types/components/SetupWidget/SetupWidget.st.css.d.ts.map +1 -1
  409. package/dist/types/components/Table/Table.uni.driver.d.ts +339 -1
  410. package/dist/types/components/Table/Table.uni.driver.d.ts.map +1 -1
  411. package/dist/types/components/TableFolders/TableFolders.uni.driver.d.ts +341 -1
  412. package/dist/types/components/TableFolders/TableFolders.uni.driver.d.ts.map +1 -1
  413. package/dist/types/components/TableGridSwitch/TableGridSwitch.uni.driver.d.ts +340 -1
  414. package/dist/types/components/TableGridSwitch/TableGridSwitch.uni.driver.d.ts.map +1 -1
  415. package/dist/types/components/TabsFilter/TabsDropdown.d.ts.map +1 -1
  416. package/dist/types/components/TabsFilter/TabsFilter.d.ts +12 -0
  417. package/dist/types/components/TabsFilter/TabsFilter.d.ts.map +1 -1
  418. package/dist/types/components/TabsFilter/TabsFilter.st.css.d.ts.map +1 -1
  419. package/dist/types/components/TabsFilter/TabsFilter.uni.driver.d.ts +7 -0
  420. package/dist/types/components/TabsFilter/TabsFilter.uni.driver.d.ts.map +1 -1
  421. package/dist/types/components/TabsFilter/types.d.ts +1 -0
  422. package/dist/types/components/TabsFilter/types.d.ts.map +1 -1
  423. package/dist/types/components/ToolbarItem/ToolbarItem.st.css.d.ts.map +1 -1
  424. package/dist/types/components/ToolbarItemBox/ToolbarItemBox.st.css.d.ts.map +1 -1
  425. package/dist/types/components/common.st.css.d.ts.map +1 -1
  426. package/dist/types/exports/schema.d.ts +2 -2
  427. package/dist/types/exports/schema.d.ts.map +1 -1
  428. package/dist/types/index.d.ts +1 -1
  429. package/dist/types/index.d.ts.map +1 -1
  430. package/dist/types/schema/index.d.ts +1 -1
  431. package/dist/types/schema/index.d.ts.map +1 -1
  432. package/dist/types/schema/schemaCollectionOptions.d.ts +5 -0
  433. package/dist/types/schema/schemaCollectionOptions.d.ts.map +1 -1
  434. package/dist/types/schema/sourceMutations.d.ts +1 -1
  435. package/dist/types/schema/sourceMutations.d.ts.map +1 -1
  436. package/dist/types/schema/useEditableTableCollection.d.ts +2 -2
  437. package/dist/types/schema/useEditableTableCollection.d.ts.map +1 -1
  438. package/dist/types/schema/useEntityPage.d.ts +2 -0
  439. package/dist/types/schema/useEntityPage.d.ts.map +1 -1
  440. package/dist/types/schema/useLayoutSwitchCollection.d.ts +2 -2
  441. package/dist/types/schema/useLayoutSwitchCollection.d.ts.map +1 -1
  442. package/dist/types/state/CollectionPage/CollectionPageHeader.st.css.d.ts.map +1 -1
  443. package/dist/types/state/buildFieldFilters.d.ts.map +1 -1
  444. package/dist/types/testkit/enzyme.d.ts +1698 -5
  445. package/dist/types/testkit/enzyme.d.ts.map +1 -1
  446. package/dist/types/testkit/jsdom.d.ts +2372 -7
  447. package/dist/types/testkit/jsdom.d.ts.map +1 -1
  448. package/dist/types/testkit/playwright.d.ts +2036 -6
  449. package/dist/types/testkit/playwright.d.ts.map +1 -1
  450. package/dist/types/testkit/puppeteer.d.ts +2037 -6
  451. package/dist/types/testkit/puppeteer.d.ts.map +1 -1
  452. package/dist/types/version.d.ts +1 -1
  453. package/package.json +9 -9
  454. package/src/components/ActionControl/ActionButton.tsx +4 -1
  455. package/src/components/CardContainer/CardContainer.st.css.ts +2 -2
  456. package/src/components/CmsFieldManagement/CmsFieldForm.st.css.ts +2 -2
  457. package/src/components/CmsFieldManagement/CmsFieldModal.st.css.ts +2 -2
  458. package/src/components/CmsFieldManagement/Sections/ValidationAndDefaultsSection.st.css.ts +2 -2
  459. package/src/components/CmsFieldManagement/formFields/CharactersLimitInput.st.css.ts +2 -2
  460. package/src/components/Collapse/Collapse.st.css.ts +2 -2
  461. package/src/components/CollectionPageNew/CollectionPage.st.css.ts +2 -2
  462. package/src/components/CollectionSectionHeader/CollectionSectionHeader.st.css.ts +2 -2
  463. package/src/components/CollectionTable/CollectionTable.st.css.ts +2 -2
  464. package/src/components/CollectionTable/CollectionTableWSRTable.st.css.ts +2 -2
  465. package/src/components/CollectionTable/CollectionTableWSRTable.tsx +1 -1
  466. package/src/components/CollectionToolbar/CollectionToolbar.st.css.ts +2 -2
  467. package/src/components/CollectionToolbar/SearchOrCustomFilter.st.css.ts +2 -2
  468. package/src/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.ts +2 -2
  469. package/src/components/CollectionViewsDropdown/ViewsDropdown.st.css.ts +2 -2
  470. package/src/components/CustomFieldModal/CustomFieldCollectionInput.tsx +95 -0
  471. package/src/components/CustomFieldModal/CustomFieldForm.tsx +16 -3
  472. package/src/components/CustomFieldModal/CustomFieldModal.tsx +4 -1
  473. package/src/components/CustomFieldModal/CustomFieldModal.uni.driver.ts +36 -0
  474. package/src/components/CustomFieldModal/CustomFieldTypeDropdown.tsx +10 -3
  475. package/src/components/DragHandle/DragHandle.st.css.ts +2 -2
  476. package/src/components/EditableTable/EditableCell.st.css.ts +2 -2
  477. package/src/components/EditableTable/EditableTableContextMenu.tsx +1 -1
  478. package/src/components/EditableTable/HeaderActionsPopover.st.css.ts +2 -2
  479. package/src/components/EditableTable/cellTypes/CellViewLayout.st.css.ts +2 -2
  480. package/src/components/EditableTable/cellTypes/address/Edit.st.css.ts +2 -2
  481. package/src/components/EditableTable/cellTypes/array/Edit.st.css.ts +2 -2
  482. package/src/components/EditableTable/cellTypes/boolean/Edit.st.css.ts +2 -2
  483. package/src/components/EditableTable/cellTypes/boolean/View.st.css.ts +2 -2
  484. package/src/components/EditableTable/cellTypes/color/Edit.st.css.ts +2 -2
  485. package/src/components/EditableTable/cellTypes/date/Edit.st.css.ts +2 -2
  486. package/src/components/EditableTable/cellTypes/date/View.st.css.ts +2 -2
  487. package/src/components/EditableTable/cellTypes/datetime/Edit.st.css.ts +2 -2
  488. package/src/components/EditableTable/cellTypes/datetime/View.st.css.ts +2 -2
  489. package/src/components/EditableTable/cellTypes/email/Edit.st.css.ts +2 -2
  490. package/src/components/EditableTable/cellTypes/email/View.st.css.ts +2 -2
  491. package/src/components/EditableTable/cellTypes/number/Edit.st.css.ts +2 -2
  492. package/src/components/EditableTable/cellTypes/number/View.st.css.ts +2 -2
  493. package/src/components/EditableTable/cellTypes/object/Edit.st.css.ts +2 -2
  494. package/src/components/EditableTable/cellTypes/object/View.st.css.ts +2 -2
  495. package/src/components/EditableTable/cellTypes/select/Edit.st.css.ts +2 -2
  496. package/src/components/EditableTable/cellTypes/text/Edit.st.css.ts +2 -2
  497. package/src/components/EditableTable/cellTypes/text/View.st.css.ts +2 -2
  498. package/src/components/EditableTable/cellTypes/time/Edit.st.css.ts +2 -2
  499. package/src/components/EditableTable/cellTypes/url/Edit.st.css.ts +2 -2
  500. package/src/components/EditableTable/cellTypes/url/View.st.css.ts +2 -2
  501. package/src/components/EmptyState/EmptyStateBase.st.css.ts +2 -2
  502. package/src/components/EntityPage/EntityPagePlain.st.css.ts +2 -2
  503. package/src/components/EntityPageFields/EntityPageCustomField.tsx +66 -10
  504. package/src/components/EntityPageFields/EntityPageField.tsx +2 -2
  505. package/src/components/EntityPageFields/EntityPageReferenceField.tsx +14 -5
  506. package/src/components/Fade/Fade.st.css.ts +2 -2
  507. package/src/components/Heading/Heading.st.css.ts +2 -2
  508. package/src/components/ImportButton/ImportStepUpload.st.css.ts +2 -2
  509. package/src/components/InputOverflow/InputOverflow.st.css.ts +2 -2
  510. package/src/components/LoadingRow/LoadingRow.st.css.ts +3 -3
  511. package/src/components/MaxHeightText/MaxHeightText.st.css.ts +2 -2
  512. package/src/components/MaxLines/MaxLines.st.css.ts +2 -2
  513. package/src/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.ts +2 -2
  514. package/src/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.ts +2 -2
  515. package/src/components/NestedTable/NestedTableRow.st.css.ts +2 -2
  516. package/src/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.ts +2 -2
  517. package/src/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.ts +2 -2
  518. package/src/components/PickerContent/PickerContent.st.css.ts +2 -2
  519. package/src/components/PickerContent/PickerContentAdditionalStep.st.css.ts +2 -2
  520. package/src/components/PickerTableListItem/PickerTableListItem.st.css.ts +2 -2
  521. package/src/components/SchemaSource/referenceCells.ts +32 -5
  522. package/src/components/SchemaSource/schemaFieldManagement.ts +43 -5
  523. package/src/components/SchemaSource/schemaRendering.tsx +2 -2
  524. package/src/components/SchemaSource/tableSchemaSource.ts +3 -0
  525. package/src/components/ScrollableContent/ScrollableContent.st.css.ts +2 -2
  526. package/src/components/SetupWidget/SetupStepSecondaryCta.tsx +2 -1
  527. package/src/components/SetupWidget/SetupWidget.st.css +22 -5
  528. package/src/components/SetupWidget/SetupWidget.st.css.ts +2 -2
  529. package/src/components/SkeletonCard/SkeletonCard.st.css.ts +2 -2
  530. package/src/components/SlidingModal/SlidingModal.st.css.ts +2 -2
  531. package/src/components/Table/AddFieldColumnHeader.st.css.ts +2 -2
  532. package/src/components/TabsFilter/TabsDropdown.tsx +1 -0
  533. package/src/components/TabsFilter/TabsFilter.st.css.ts +2 -2
  534. package/src/components/TabsFilter/TabsFilter.tsx +16 -0
  535. package/src/components/TabsFilter/TabsFilter.uni.driver.ts +7 -0
  536. package/src/components/TabsFilter/types.ts +1 -0
  537. package/src/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.ts +2 -2
  538. package/src/components/ToolbarItem/ToolbarItem.st.css.ts +2 -2
  539. package/src/components/ToolbarItemBox/ToolbarItemBox.st.css.ts +2 -2
  540. package/src/components/common.st.css.ts +2 -2
  541. package/src/exports/schema.ts +5 -0
  542. package/src/index.ts +3 -0
  543. package/src/schema/index.ts +5 -1
  544. package/src/schema/schemaCollectionOptions.ts +10 -0
  545. package/src/schema/sourceMutations.ts +5 -1
  546. package/src/schema/useEditableTableCollection.ts +16 -9
  547. package/src/schema/useEntityPage.ts +14 -4
  548. package/src/schema/useLayoutSwitchCollection.ts +22 -14
  549. package/src/state/CollectionPage/CollectionPageHeader.st.css.ts +2 -2
  550. package/src/state/FormPage/FormPageHeader.st.css.ts +2 -2
  551. package/src/state/buildFieldFilters.tsx +1 -7
  552. package/src/styles.global.css +2 -2
  553. package/src/version.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_useEntityPage","useEntityPage","source","options","entityId","fetch","onSave","rest","page","useState","state","useOpenEntityPage","schemaSource","fetchFromSource","saveToSource","entity","undefined","backend","loadSchema","required","get","values","form","getValues","updatedEntity","create","Error","update","fn","action"],"sources":["../../../src/schema/useEntityPage.ts"],"sourcesContent":["import { useState } from 'react';\nimport type { FieldValues } from 'react-hook-form';\nimport type { SchemaSource } from '@wix/bex-core';\nimport type { EntityPageState } from '../state';\nimport {\n useEntityPage as useOpenEntityPage,\n type UseEntityPageParams,\n} from '../hooks/useEntityPage';\n\n/** Entity page options for a source-driven page: the source loads the schema and\n * its backend reads and writes the entity, so `fetch` and `onSave` derive from\n * it — pass one only to replace the derived default. */\nexport type SchemaEntityPageOptions<\n T,\n V extends FieldValues = FieldValues,\n> = Omit<UseEntityPageParams<T, V>, 'fetch' | 'onSave' | 'schemaSource'> & {\n /** The entity to load. Omitted ⇒ the create route: the page starts empty and\n * saving creates an entity. */\n entityId?: string;\n /** Replaces the read through the source's backend. */\n fetch?: UseEntityPageParams<T, V>['fetch'];\n /** Replaces the write through the source's backend. */\n onSave?: UseEntityPageParams<T, V>['onSave'];\n};\n\n/** An entity page driven by a source: the source supplies the schema its fields\n * render from, and its backend reads and writes the entity. Render the state\n * with the `EntityPage` from this entry — it wires the fields provider. */\nexport function useEntityPage<T, V extends FieldValues = FieldValues>(\n source: SchemaSource<T>,\n options: SchemaEntityPageOptions<T, V>,\n): EntityPageState<T, V> {\n const { entityId, fetch, onSave, ...rest } = options;\n\n // The derived read and write need values that change or don't exist yet when\n // the state is created: the state itself (the save merges into the loaded\n // entity) and the latest entityId (a re-fetch should read the current one).\n const [page] = useState<PageRef<T, V>>(() => ({}));\n page.entityId = entityId;\n\n const state = useOpenEntityPage<T, V>({\n ...rest,\n schemaSource: source,\n fetch: fetch ?? (() => fetchFromSource(source, page.entityId)),\n onSave: onSave ?? (() => saveToSource(source, page)),\n } as UseEntityPageParams<T, V>);\n\n page.state = state;\n\n return state;\n}\n\ninterface PageRef<T, V extends FieldValues> {\n entityId?: string;\n state?: EntityPageState<T, V>;\n}\n\nasync function fetchFromSource<T>(\n source: SchemaSource<T>,\n entityId?: string,\n): Promise<{ entity: T | undefined }> {\n if (!entityId) {\n return { entity: undefined };\n }\n\n const { backend } = await source.loadSchema();\n return { entity: await required(backend.get, 'reading')(entityId) };\n}\n\nasync function saveToSource<T, V extends FieldValues>(\n source: SchemaSource<T>,\n page: PageRef<T, V>,\n): Promise<{ updatedEntity: T }> {\n const { entityId, state } = page;\n const { backend } = await source.loadSchema();\n const values = state!.form.getValues() as Partial<T>;\n\n // Which write to run follows the route, not whether an entity happens to be\n // loaded: an id whose entity is missing (deleted, or filtered out by\n // permissions) must fail rather than quietly create a second record.\n if (!entityId) {\n return {\n updatedEntity: await required(backend.create, 'creating')(values),\n };\n }\n\n const { entity } = state!;\n if (!entity) {\n throw new Error(`The source has no entity \"${entityId}\" to update`);\n }\n\n return {\n updatedEntity: await required(\n backend.update,\n 'updating',\n )({ ...entity, ...values } as T),\n };\n}\n\nfunction required<F>(fn: F | undefined, action: string): F {\n if (!fn) {\n throw new Error(`The source doesn't support ${action} items`);\n }\n return fn;\n}\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,cAAA,GAAAD,OAAA;AAKA;AACA;AACA;;AAcA;AACA;AACA;AACO,SAASE,aAAaA,CAC3BC,MAAuB,EACvBC,OAAs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AACnB,QAAQ,EAAE;IACb,OAAO;MACLoB,aAAa,EAAE,MAAML,QAAQ,CAACF,OAAO,CAACQ,MAAM,EAAE,UAAU,CAAC,CAACJ,MAAM;IAClE,CAAC;EACH;EAEA,MAAM;IAAEN;EAAO,CAAC,GAAGL,KAAM;EACzB,IAAI,CAACK,MAAM,EAAE;IACX,MAAM,IAAIW,KAAK,CAAC,6BAA6BtB,QAAQ,aAAa,CAAC;EACrE;EAEA,OAAO;IACLoB,aAAa,EAAE,MAAML,QAAQ,CAC3BF,OAAO,CAACU,MAAM,EACd,UACF,CAAC,CAAC;MAAE,GAAGZ,MAAM;MAAE,GAAGM;IAAO,CAAM;EACjC,CAAC;AACH;AAEA,SAASF,QAAQA,CAAIS,EAAiB,EAAEC,MAAc,EAAK;EACzD,IAAI,CAACD,EAAE,EAAE;IACP,MAAM,IAAIF,KAAK,CAAC,8BAA8BG,MAAM,QAAQ,CAAC;EAC/D;EACA,OAAOD,EAAE;AACX","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_useEntityPage","useEntityPage","source","options","entityId","fetch","onSave","createLocalItem","rest","page","useState","state","useOpenEntityPage","schemaSource","fetchFromSource","saveToSource","entity","backend","loadSchema","required","get","values","form","getValues","updatedEntity","create","Error","update","fn","action"],"sources":["../../../src/schema/useEntityPage.ts"],"sourcesContent":["import { useState } from 'react';\nimport type { FieldValues } from 'react-hook-form';\nimport type { SchemaSource } from '@wix/bex-core';\nimport type { EntityPageState } from '../state';\nimport {\n useEntityPage as useOpenEntityPage,\n type UseEntityPageParams,\n} from '../hooks/useEntityPage';\n\n/** Entity page options for a source-driven page: the source loads the schema and\n * its backend reads and writes the entity, so `fetch` and `onSave` derive from\n * it — pass one only to replace the derived default. */\nexport type SchemaEntityPageOptions<\n T,\n V extends FieldValues = FieldValues,\n> = Omit<UseEntityPageParams<T, V>, 'fetch' | 'onSave' | 'schemaSource'> & {\n /** Creates the initial values for a new entity. */\n createLocalItem?: () => Partial<T>;\n /** The entity to load. Omitted ⇒ the create route: the page starts empty and\n * saving creates an entity. */\n entityId?: string;\n /** Replaces the read through the source's backend. */\n fetch?: UseEntityPageParams<T, V>['fetch'];\n /** Replaces the write through the source's backend. */\n onSave?: UseEntityPageParams<T, V>['onSave'];\n};\n\n/** An entity page driven by a source: the source supplies the schema its fields\n * render from, and its backend reads and writes the entity. Render the state\n * with the `EntityPage` from this entry — it wires the fields provider. */\nexport function useEntityPage<T, V extends FieldValues = FieldValues>(\n source: SchemaSource<T>,\n options: SchemaEntityPageOptions<T, V>,\n): EntityPageState<T, V> {\n const { entityId, fetch, onSave, createLocalItem, ...rest } = options;\n\n // The derived read and write need values that change or don't exist yet when\n // the state is created: the state itself (the save merges into the loaded\n // entity) and the latest entityId (a re-fetch should read the current one).\n const [page] = useState<PageRef<T, V>>(() => ({}));\n page.entityId = entityId;\n\n const state = useOpenEntityPage<T, V>({\n ...rest,\n schemaSource: source,\n fetch:\n fetch ?? (() => fetchFromSource(source, page.entityId, createLocalItem)),\n onSave: onSave ?? (() => saveToSource(source, page)),\n } as UseEntityPageParams<T, V>);\n\n page.state = state;\n\n return state;\n}\n\ninterface PageRef<T, V extends FieldValues> {\n entityId?: string;\n state?: EntityPageState<T, V>;\n}\n\nasync function fetchFromSource<T>(\n source: SchemaSource<T>,\n entityId?: string,\n createLocalItem?: () => Partial<T>,\n): Promise<{ entity: T | undefined }> {\n if (!entityId) {\n return { entity: createLocalItem?.() as T | undefined };\n }\n\n const { backend } = await source.loadSchema();\n return { entity: await required(backend.get, 'reading')(entityId) };\n}\n\nasync function saveToSource<T, V extends FieldValues>(\n source: SchemaSource<T>,\n page: PageRef<T, V>,\n): Promise<{ updatedEntity: T }> {\n const { entityId, state } = page;\n const { backend } = await source.loadSchema();\n const values = state!.form.getValues() as Partial<T>;\n\n // Which write to run follows the route, not whether an entity happens to be\n // loaded: an id whose entity is missing (deleted, or filtered out by\n // permissions) must fail rather than quietly create a second record.\n if (!entityId) {\n return {\n updatedEntity: await required(\n backend.create,\n 'creating',\n )({\n ...(state!.entity ?? {}),\n ...values,\n }),\n };\n }\n\n const { entity } = state!;\n if (!entity) {\n throw new Error(`The source has no entity \"${entityId}\" to update`);\n }\n\n return {\n updatedEntity: await required(\n backend.update,\n 'updating',\n )({ ...entity, ...values } as T),\n };\n}\n\nfunction required<F>(fn: F | undefined, action: string): F {\n if (!fn) {\n throw new Error(`The source doesn't support ${action} items`);\n }\n return fn;\n}\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,cAAA,GAAAD,OAAA;AAKA;AACA;AACA;;AAgBA;AACA;AACA;AACO,SAASE,aAAaA,CAC3BC,MAAuB,EACvBC,OAAsC,EACf;EACvB,MAAM;IAAEC,QAAQ;IAAEC,KAAK;IAAEC,MAAM;IAAEC,eAAe;IAAE,GAAGC;EAAK,CAAC,GAAGL,OAAO;;EAErE;EACA;EACA;EACA,MAAM,CAACM,IAAI,CAAC,GAAG,IAAAC,eAAQ,EAAgB,OAAO,CAAC,CAAC,CAAC,CAAC;EAClDD,IAAI,CAACL,QAAQ,GAAGA,QAAQ;EAExB,MAAMO,KAAK,GAAG,IAAAC,4BAAiB,EAAO;IACpC,GAAGJ,IAAI;IACPK,YAAY,EAAEX,MAAM;IACpBG,KAAK,EACHA,KAAK,KAAK,MAAMS,eAAe,CAACZ,MAAM,EAAEO,IAAI,CAACL,QAAQ,EAAEG,eAAe,CAAC,CAAC;IAC1ED,MAAM,EAAEA,MAAM,KAAK,MAAMS,YAAY,CAACb,MAAM,EAAEO,IAAI,CAAC;EACrD,CAA8B,CAAC;EAE/BA,IAAI,CAACE,KAAK,GAAGA,KAAK;EAElB,OAAOA,KAAK;AACd;AAOA,eAAeG,eAAeA,CAC5BZ,MAAuB,EACvBE,QAAiB,EACjBG,eAAkC,EACE;EACpC,IAAI,CAACH,QAAQ,EAAE;IACb,OAAO;MAAEY,MAAM,EAAET,eAAe,oBAAfA,eAAe,CAAG;IAAmB,CAAC;EACzD;EAEA,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,
46
46
  spreadsheet,
47
+ createLocalItem,
47
48
  ...rest
48
49
  } = options ?? {};
50
+ const createLocalItemRef = (0, _react.useRef)(createLocalItem);
51
+ createLocalItemRef.current = createLocalItem;
49
52
  const state = (0, _useLayoutSwitchCollection.useLayoutSwitchCollection)(Object.assign((0, _schemaCollectionOptions.schemaCollectionConfig)(source, rest), {
50
53
  table,
51
54
  grid,
52
55
  spreadsheet: spreadsheet ? {
53
56
  ...spreadsheet,
54
- mutations: (0, _sourceMutations.sourceMutations)(sourceState)
57
+ mutations: (0, _sourceMutations.sourceMutations)(sourceState, () => (createLocalItemRef.current == null ? void 0 : createLocalItemRef.current()) ?? {})
55
58
  } : undefined
56
59
  }));
57
60
  (0, _react.useState)(() => fieldsProvider.setOnTable(state.toolbar));
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_bexCore","_react2","_useLayoutSwitchCollection","_SchemaState","_schemaCollectionOptions","_sourceMutations","_syncSourcePermissions","_usePlatformizedSource","useLayoutSwitchCollection","source","options","container","useWixPatternsContainer","fieldsProvider","sourceState","useState","holder","SourceState","attachesItself","load","SchemaState","table","grid","spreadsheet","rest","state","useOpenLayoutSwitchCollection","Object","assign","schemaCollectionConfig","mutations","sourceMutations","undefined","setOnTable","toolbar","useEffect","spreadsheetState","syncSourcePermissions"],"sources":["../../../src/schema/useLayoutSwitchCollection.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\nimport { SourceState } from '@wix/bex-core';\nimport type {\n FiltersMap,\n OptionalFiltersMap,\n SchemaSource,\n} from '@wix/bex-core';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport type {\n LayoutSwitchState,\n TableLayoutConfig,\n GridLayoutConfig,\n SpreadsheetLayoutConfig,\n} from '../state/LayoutSwitchState';\nimport type { FieldsSourceProvider } from '../components/fieldsSourceProvider';\nimport { useLayoutSwitchCollection as useOpenLayoutSwitchCollection } from '../hooks/useLayoutSwitchCollection';\nimport { SchemaState } from '../components/SchemaSource/SchemaState';\nimport {\n schemaCollectionConfig,\n type SchemaCollectionOptions,\n} from './schemaCollectionOptions';\nimport { sourceMutations } from './sourceMutations';\nimport { syncSourcePermissions } from './syncSourcePermissions';\nimport { attachesItself } from './usePlatformizedSource';\n\nexport type SchemaLayoutSwitchCollectionOptions<\n T,\n F extends FiltersMap = OptionalFiltersMap,\n> = SchemaCollectionOptions<T, F> & {\n table?: TableLayoutConfig;\n grid?: GridLayoutConfig;\n // No `permissions` either: row-action permissions are source-driven\n // (schema.itemPermissions + backend capabilities), not consumer-supplied.\n spreadsheet?: Omit<\n SpreadsheetLayoutConfig<T, F>,\n 'createOptimisticActions' | 'mutations' | 'permissions'\n >;\n};\n\n/** One collection and one toolbar driven by a source, shared by every enabled\n * layout — the source attaches before any layout mounts, so a page opening\n * in grid view has its fields and filters too. */\nexport function useLayoutSwitchCollection<\n T,\n F extends FiltersMap = OptionalFiltersMap,\n>(\n source: SchemaSource<T>,\n options?: SchemaLayoutSwitchCollectionOptions<T, F>,\n): LayoutSwitchState<T, F> {\n const container = useWixPatternsContainer();\n const [{ fieldsProvider, sourceState }] = useState<{\n fieldsProvider: FieldsSourceProvider;\n sourceState: SourceState<T>;\n }>(() => {\n const holder = new SourceState<T>({ container, source });\n if (attachesItself(source)) {\n // The schema attach path loads it otherwise; the derived row mutations\n // read the loaded backend.\n void holder.load();\n return { fieldsProvider: source, sourceState: holder };\n }\n return {\n fieldsProvider: new SchemaState<T>({ sourceState: holder }),\n sourceState: holder,\n };\n });\n\n const { table, grid, spreadsheet, ...rest } =\n options ?? ({} as SchemaLayoutSwitchCollectionOptions<T, F>);\n\n const state = useOpenLayoutSwitchCollection<T, F>(\n Object.assign(schemaCollectionConfig<T, F>(source, rest), {\n table,\n grid,\n spreadsheet: spreadsheet\n ? { ...spreadsheet, mutations: sourceMutations(sourceState) }\n : undefined,\n }),\n );\n\n useState(() => fieldsProvider.setOnTable(state.toolbar));\n\n // Keep the spreadsheet view's row actions gated on the source's permissions.\n useEffect(() => {\n const spreadsheetState = state.spreadsheetState;\n return spreadsheetState\n ? syncSourcePermissions(spreadsheetState, sourceState)\n : undefined;\n }, [state, sourceState]);\n\n return state;\n}\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAMA,IAAAE,OAAA,GAAAF,OAAA;AAQA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,wBAAA,GAAAL,OAAA;AAIA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,sBAAA,GAAAP,OAAA;AACA,IAAAQ,sBAAA,GAAAR,OAAA;AAgBA;AACA;AACA;AACO,SAASS,yBAAyBA,CAIvCC,MAAuB,EACvBC,OAAmD,EAC1B;EACzB,MAAMC,SAAS,GAAG,IAAAC,+BAAuB,EAAC,CAAC;EAC3C,MAAM,CAAC;IAAEC,cAAc;IAAEC;EAAY,CAAC,CAAC,GAAG,IAAAC,eAAQ,EAG/C,MAAM;IACP,MAAMC,MAAM,GAAG,IAAIC,oBAAW,CAAI;MAAEN,SAAS;MAAEF;IAAO,CAAC,CAAC;IACxD,IAAI,IAAAS,qCAAc,EAACT,MAAM,CAAC,EAAE;MAC1B;MACA;MACA,KAAKO,MAAM,CAACG,IAAI,CAAC,CAAC;MAClB,OAAO;QAAEN,cAAc,EAAEJ,MAAM;QAAEK,WAAW,EAAEE;MAAO,CAAC;IACxD;IACA,OAAO;MACLH,cAAc,EAAE,IAAIO,wBAAW,CAAI;QAAEN,WAAW,EAAEE;MAAO,CAAC,CAAC;MAC3DF,WAAW,EAAEE;IACf,CAAC;EACH,CAAC,CAAC;EAEF,MAAM;IAAEK,KAAK;IAAEC,IAAI;IAAEC,WAAW;IAAE,GAAGC;EAAK,CAAC,GACzCd,OAAO,IAAK,CAAC,CAA+C;EAE9D,MAAMe,KAAK,GAAG,IAAAC,oDAA6B,EACzCC,MAAM,CAACC,MAAM,CAAC,IAAAC,+CAAsB,EAAOpB,MAAM,EAAEe,IAAI,CAAC,EAAE;IACxDH,KAAK;IACLC,IAAI;IACJC,WAAW,EAAEA,WAAW,GACpB;MAAE,GAAGA,WAAW;MAAEO,SAAS,EAAE,IAAAC,gCAAe,EAACjB,WAAW;IAAE,CAAC,GAC3DkB;EACN,CAAC,CACH,CAAC;EAED,IAAAjB,eAAQ,EAAC,MAAMF,cAAc,CAACoB,UAAU,CAACR,KAAK,CAACS,OAAO,CAAC,CAAC;;EAExD;EACA,IAAAC,gBAAS,EAAC,MAAM;IACd,MAAMC,gBAAgB,GAAGX,KAAK,CAACW,gBAAgB;IAC/C,OAAOA,gBAAgB,GACnB,IAAAC,4CAAqB,EAACD,gBAAgB,EAAEtB,WAAW,CAAC,GACpDkB,SAAS;EACf,CAAC,EAAE,CAACP,KAAK,EAAEX,WAAW,CAAC,CAAC;EAExB,OAAOW,KAAK;AACd","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_bexCore","_react2","_useLayoutSwitchCollection","_SchemaState","_schemaCollectionOptions","_sourceMutations","_syncSourcePermissions","_usePlatformizedSource","useLayoutSwitchCollection","source","options","container","useWixPatternsContainer","fieldsProvider","sourceState","useState","holder","SourceState","attachesItself","load","SchemaState","table","grid","spreadsheet","createLocalItem","rest","createLocalItemRef","useRef","current","state","useOpenLayoutSwitchCollection","Object","assign","schemaCollectionConfig","mutations","sourceMutations","undefined","setOnTable","toolbar","useEffect","spreadsheetState","syncSourcePermissions"],"sources":["../../../src/schema/useLayoutSwitchCollection.ts"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\nimport { SourceState } from '@wix/bex-core';\nimport type {\n FiltersMap,\n OptionalFiltersMap,\n SchemaSource,\n} from '@wix/bex-core';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport type {\n LayoutSwitchState,\n TableLayoutConfig,\n GridLayoutConfig,\n SpreadsheetLayoutConfig,\n} from '../state/LayoutSwitchState';\nimport type { FieldsSourceProvider } from '../components/fieldsSourceProvider';\nimport { useLayoutSwitchCollection as useOpenLayoutSwitchCollection } from '../hooks/useLayoutSwitchCollection';\nimport { SchemaState } from '../components/SchemaSource/SchemaState';\nimport {\n schemaCollectionConfig,\n type SchemaMutableCollectionOptions,\n} from './schemaCollectionOptions';\nimport { sourceMutations } from './sourceMutations';\nimport { syncSourcePermissions } from './syncSourcePermissions';\nimport { attachesItself } from './usePlatformizedSource';\n\nexport type SchemaLayoutSwitchCollectionOptions<\n T,\n F extends FiltersMap = OptionalFiltersMap,\n> = SchemaMutableCollectionOptions<T, F> & {\n table?: TableLayoutConfig;\n grid?: GridLayoutConfig;\n // No `permissions` either: row-action permissions are source-driven\n // (schema.itemPermissions + backend capabilities), not consumer-supplied.\n spreadsheet?: Omit<\n SpreadsheetLayoutConfig<T, F>,\n 'createOptimisticActions' | 'mutations' | 'permissions'\n >;\n };\n\n/** One collection and one toolbar driven by a source, shared by every enabled\n * layout — the source attaches before any layout mounts, so a page opening\n * in grid view has its fields and filters too. */\nexport function useLayoutSwitchCollection<\n T,\n F extends FiltersMap = OptionalFiltersMap,\n>(\n source: SchemaSource<T>,\n options?: SchemaLayoutSwitchCollectionOptions<T, F>,\n): LayoutSwitchState<T, F> {\n const container = useWixPatternsContainer();\n const [{ fieldsProvider, sourceState }] = useState<{\n fieldsProvider: FieldsSourceProvider;\n sourceState: SourceState<T>;\n }>(() => {\n const holder = new SourceState<T>({ container, source });\n if (attachesItself(source)) {\n // The schema attach path loads it otherwise; the derived row mutations\n // read the loaded backend.\n void holder.load();\n return { fieldsProvider: source, sourceState: holder };\n }\n return {\n fieldsProvider: new SchemaState<T>({ sourceState: holder }),\n sourceState: holder,\n };\n });\n\n const { table, grid, spreadsheet, createLocalItem, ...rest } =\n options ?? ({} as SchemaLayoutSwitchCollectionOptions<T, F>);\n const createLocalItemRef = useRef(createLocalItem);\n createLocalItemRef.current = createLocalItem;\n\n const state = useOpenLayoutSwitchCollection<T, F>(\n Object.assign(schemaCollectionConfig<T, F>(source, rest), {\n table,\n grid,\n spreadsheet: spreadsheet\n ? {\n ...spreadsheet,\n mutations: sourceMutations(\n sourceState,\n () => createLocalItemRef.current?.() ?? {},\n ),\n }\n : undefined,\n }),\n );\n\n useState(() => fieldsProvider.setOnTable(state.toolbar));\n\n // Keep the spreadsheet view's row actions gated on the source's permissions.\n useEffect(() => {\n const spreadsheetState = state.spreadsheetState;\n return spreadsheetState\n ? syncSourcePermissions(spreadsheetState, sourceState)\n : undefined;\n }, [state, sourceState]);\n\n return state;\n}\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAMA,IAAAE,OAAA,GAAAF,OAAA;AAQA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,wBAAA,GAAAL,OAAA;AAIA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,sBAAA,GAAAP,OAAA;AACA,IAAAQ,sBAAA,GAAAR,OAAA;AAgBA;AACA;AACA;AACO,SAASS,yBAAyBA,CAIvCC,MAAuB,EACvBC,OAAmD,EAC1B;EACzB,MAAMC,SAAS,GAAG,IAAAC,+BAAuB,EAAC,CAAC;EAC3C,MAAM,CAAC;IAAEC,cAAc;IAAEC;EAAY,CAAC,CAAC,GAAG,IAAAC,eAAQ,EAG/C,MAAM;IACP,MAAMC,MAAM,GAAG,IAAIC,oBAAW,CAAI;MAAEN,SAAS;MAAEF;IAAO,CAAC,CAAC;IACxD,IAAI,IAAAS,qCAAc,EAACT,MAAM,CAAC,EAAE;MAC1B;MACA;MACA,KAAKO,MAAM,CAACG,IAAI,CAAC,CAAC;MAClB,OAAO;QAAEN,cAAc,EAAEJ,MAAM;QAAEK,WAAW,EAAEE;MAAO,CAAC;IACxD;IACA,OAAO;MACLH,cAAc,EAAE,IAAIO,wBAAW,CAAI;QAAEN,WAAW,EAAEE;MAAO,CAAC,CAAC;MAC3DF,WAAW,EAAEE;IACf,CAAC;EACH,CAAC,CAAC;EAEF,MAAM;IAAEK,KAAK;IAAEC,IAAI;IAAEC,WAAW;IAAEC,eAAe;IAAE,GAAGC;EAAK,CAAC,GAC1Df,OAAO,IAAK,CAAC,CAA+C;EAC9D,MAAMgB,kBAAkB,GAAG,IAAAC,aAAM,EAACH,eAAe,CAAC;EAClDE,kBAAkB,CAACE,OAAO,GAAGJ,eAAe;EAE5C,MAAMK,KAAK,GAAG,IAAAC,oDAA6B,EACzCC,MAAM,CAACC,MAAM,CAAC,IAAAC,+CAAsB,EAAOxB,MAAM,EAAEgB,IAAI,CAAC,EAAE;IACxDJ,KAAK;IACLC,IAAI;IACJC,WAAW,EAAEA,WAAW,GACpB;MACE,GAAGA,WAAW;MACdW,SAAS,EAAE,IAAAC,gCAAe,EACxBrB,WAAW,EACX,MAAM,CAAAY,kBAAkB,CAACE,OAAO,oBAA1BF,kBAAkB,CAACE,OAAO,CAAG,CAAC,KAAI,CAAC,CAC3C;IACF,CAAC,GACDQ;EACN,CAAC,CACH,CAAC;EAED,IAAArB,eAAQ,EAAC,MAAMF,cAAc,CAACwB,UAAU,CAACR,KAAK,CAACS,OAAO,CAAC,CAAC;;EAExD;EACA,IAAAC,gBAAS,EAAC,MAAM;IACd,MAAMC,gBAAgB,GAAGX,KAAK,CAACW,gBAAgB;IAC/C,OAAOA,gBAAgB,GACnB,IAAAC,4CAAqB,EAACD,gBAAgB,EAAE1B,WAAW,CAAC,GACpDsB,SAAS;EACf,CAAC,EAAE,CAACP,KAAK,EAAEf,WAAW,CAAC,CAAC;EAExB,OAAOe,KAAK;AACd","ignoreList":[]}
@@ -5,14 +5,14 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
5
5
  var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
6
6
  // @ts-nocheck
7
7
 
8
- var _namespace_ = "CollectionPageHeader2402203768";
8
+ var _namespace_ = "CollectionPageHeader441437568";
9
9
  var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
10
10
  var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
11
11
  var style = exports.style = _style_;
12
12
  var st = exports.st = _style_;
13
13
  var namespace = exports.namespace = _namespace_;
14
14
  var classes = exports.classes = {
15
- "root": "CollectionPageHeader2402203768__root"
15
+ "root": "CollectionPageHeader441437568__root"
16
16
  };
17
17
  var keyframes = exports.keyframes = {};
18
18
  var layers = exports.layers = {};
@@ -1 +1 @@
1
- {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/state/CollectionPage/CollectionPageHeader.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"CollectionPageHeader2402203768\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"CollectionPageHeader2402203768__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,gCAAgC;AAClD,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAAsC,CAAC;AAC7D,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/state/CollectionPage/CollectionPageHeader.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"CollectionPageHeader441437568\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"CollectionPageHeader441437568__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,+BAA+B;AACjD,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAAqC,CAAC;AAC5D,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
@@ -5,14 +5,14 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
5
5
  var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
6
6
  // @ts-nocheck
7
7
 
8
- var _namespace_ = "FormPageHeader3926371897";
8
+ var _namespace_ = "FormPageHeader1215860402";
9
9
  var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
10
10
  var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
11
11
  var style = exports.style = _style_;
12
12
  var st = exports.st = _style_;
13
13
  var namespace = exports.namespace = _namespace_;
14
14
  var classes = exports.classes = {
15
- "root": "FormPageHeader3926371897__root"
15
+ "root": "FormPageHeader1215860402__root"
16
16
  };
17
17
  var keyframes = exports.keyframes = {};
18
18
  var layers = exports.layers = {};
@@ -1 +1 @@
1
- {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/state/FormPage/FormPageHeader.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"FormPageHeader3926371897\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"FormPageHeader3926371897__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,0BAA0B;AAC5C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAAgC,CAAC;AACvD,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/state/FormPage/FormPageHeader.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"FormPageHeader1215860402\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"FormPageHeader1215860402__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,0BAA0B;AAC5C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAAgC,CAAC;AACvD,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
@@ -100,7 +100,6 @@ const resolveCustomFilter = (field, source) => {
100
100
  const customTypeConfig = (0, _bexCore.resolveFieldTypeDefinition)(source, field);
101
101
  return customTypeConfig && (0, _bexCore.isFilterTypeConfig)(customTypeConfig.filter) ? customTypeConfig.filter : undefined;
102
102
  };
103
- const isReferenceField = field => field.type === 'REFERENCE' || field.type === 'MULTI_REFERENCE';
104
103
 
105
104
  /** A field gets an auto filter when its type maps to a filter element, or —
106
105
  * for a CUSTOM field — when its type definition declares a filter config. A
@@ -109,7 +108,7 @@ const isFilterableField = (field, source, config, ReferenceFilter) => {
109
108
  if (field.type === 'CUSTOM') {
110
109
  return !!resolveCustomFilter(field, source);
111
110
  }
112
- if (isReferenceField(field)) {
111
+ if ((0, _bexCore.isReferenceField)(field)) {
113
112
  return !!ReferenceFilter && !!(config != null && config.referenceItems != null && config.referenceItems(field));
114
113
  }
115
114
  return isFilterableFieldType(field.type);
@@ -137,7 +136,7 @@ const registerFieldFilters = (toolbar, source, config, ReferenceFilter) => {
137
136
  toolbar.collection.query.addFilterIfNeeded(field.id, filter);
138
137
  return;
139
138
  }
140
- if (isReferenceField(field) && !(ReferenceFilter && config.referenceItems != null && config.referenceItems(field))) {
139
+ if ((0, _bexCore.isReferenceField)(field) && !(ReferenceFilter && config.referenceItems != null && config.referenceItems(field))) {
141
140
  return;
142
141
  }
143
142
  const factory = factoryByType[field.type];
@@ -180,12 +179,12 @@ const buildFieldFilterElement = (toolbar, field, config, source, ReferenceFilter
180
179
  __self: void 0,
181
180
  __source: {
182
181
  fileName: _jsxFileName,
183
- lineNumber: 234,
182
+ lineNumber: 228,
184
183
  columnNumber: 7
185
184
  }
186
185
  });
187
186
  }
188
- if (isReferenceField(field)) {
187
+ if ((0, _bexCore.isReferenceField)(field)) {
189
188
  const fetchItems = config.referenceItems == null ? void 0 : config.referenceItems(field);
190
189
  if (!ReferenceFilter || !fetchItems) {
191
190
  return null;
@@ -208,7 +207,7 @@ const buildFieldFilterElement = (toolbar, field, config, source, ReferenceFilter
208
207
  __self: void 0,
209
208
  __source: {
210
209
  fileName: _jsxFileName,
211
- lineNumber: 249,
210
+ lineNumber: 243,
212
211
  columnNumber: 7
213
212
  }
214
213
  });
@@ -237,7 +236,7 @@ const buildFieldFilterElement = (toolbar, field, config, source, ReferenceFilter
237
236
  __self: void 0,
238
237
  __source: {
239
238
  fileName: _jsxFileName,
240
- lineNumber: 268,
239
+ lineNumber: 262,
241
240
  columnNumber: 5
242
241
  }
243
242
  }));
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_bexCore","_fieldTypePrefixIcons","_CheckboxCustomFieldFilter","_DateCustomFieldFilter","_DateTimeCustomFieldFilter","_OperatorFilterCustomFieldFilter","_NumberRangeFilter","_HasValueCustomFieldFilter","_jsxFileName","FILTER_COMPONENT_BY_TYPE","SHORT_TEXT","OperatorFilterCustomFieldFilter","LONG_TEXT","URL","EMAIL","RICH_TEXT","ADDRESS","NUMBER","NumberRangeFilter","BOOLEAN","CheckboxCustomFieldFilter","DATE","DateCustomFieldFilter","DATETIME","DateTimeCustomFieldFilter","TIME","HasValueCustomFieldFilter","IMAGE","VIDEO","AUDIO","MEDIA_GALLERY","DOCUMENT","MULTI_DOCUMENT","RICH_CONTENT","OBJECT","COLOR","ARRAY","filterFactoryByType","config","stringFilter","params","stringOperatorFilter","allowedOperators","textOperators","numberRangeFilter","idNameArrayFilter","dateRangeFilter","REFERENCE","MULTI_REFERENCE","isFilterableFieldType","type","exports","resolveCustomFilter","field","source","customTypeConfig","resolveFieldTypeDefinition","isFilterTypeConfig","filter","undefined","isReferenceField","isFilterableField","ReferenceFilter","referenceItems","registerFieldFilters","toolbar","factoryByType","filterableFields","forEach","customFilter","createFilter","Object","assign","name","id","collection","query","addFilterIfNeeded","factory","isCustomField","buildFieldFilterElement","filters","label","displayName","_resolveCustomFilter","CustomComponent","Component","default","createElement","key","accordionItemProps","toolbarItemProps","toolbarTagProps","__self","__source","fileName","lineNumber","columnNumber","fetchItems","referencedCollectionId","referenceMetadata","fieldId","FilterComponent","decimal","numberIsDecimal","_extends2","fieldType","iconType","toFieldType","buildFieldFilters","map","el"],"sources":["../../../src/state/buildFieldFilters.tsx"],"sourcesContent":["import React, { type ComponentType } from 'react';\nimport {\n dateRangeFilter,\n idNameArrayFilter,\n isFilterTypeConfig,\n numberRangeFilter,\n resolveFieldTypeDefinition,\n stringOperatorFilter,\n} from '@wix/bex-core';\nimport type {\n Field,\n FieldsSource,\n MultiReferenceField,\n ReferenceField,\n Filter,\n FilterStateBaseParams,\n FilterOperator,\n FilterTypeConfig,\n PatternsFieldType,\n} from '@wix/bex-core';\nimport type { ToolbarCollectionState } from './ToolbarCollectionState';\nimport type { FilterElement } from '../components/CollectionToolbarFilters';\nimport { toFieldType } from '../utils/fieldTypePrefixIcons';\nimport { CheckboxCustomFieldFilter } from '../components/CustomFieldFilters/CheckboxCustomFieldFilter';\nimport { DateCustomFieldFilter } from '../components/CustomFieldFilters/DateCustomFieldFilter';\nimport { DateTimeCustomFieldFilter } from '../components/CustomFieldFilters/DateTimeCustomFieldFilter';\nimport { OperatorFilterCustomFieldFilter } from '../components/CustomFieldFilters/OperatorFilterCustomFieldFilter';\nimport { NumberRangeFilter } from '../components/NumberRangeFilter';\nimport { HasValueCustomFieldFilter } from '../components/CustomFieldFilters/HasValueCustomFieldFilter';\nimport type {\n FetchReferenceItems,\n ReferenceFieldFilterProps,\n} from '../components/ReferenceFieldFilter/ReferenceFieldFilter';\n\ntype FilterFactory = (\n params: Partial<FilterStateBaseParams<any>>,\n) => Filter<any>;\n\n/**\n * The reference filter, supplied by the source rather than imported here. It\n * reaches the referenced item's avatar in `@wix/patterns-fields`, which every\n * source would otherwise pay for — including sources with no reference fields.\n */\nexport type ReferenceFilterComponent = ComponentType<ReferenceFieldFilterProps>;\n\nexport type { FilterTypeConfig } from '@wix/bex-core';\n\n/**\n * The filter behavior a source supplies that the shared builder can't derive\n * from the neutral field type. The neutral type collapses distinct source types\n * (e.g. a DataExtension dropdown into SHORT_TEXT), so the source fills the gaps.\n */\nexport interface FieldFilterConfig {\n /** Operators the source's backend can run on text fields. */\n textOperators: FilterOperator[];\n /** Whether a NUMBER field's filter accepts decimals. Default: false. */\n numberIsDecimal?: (field: Field) => boolean;\n /** Filter type icon. Default: derived from the neutral field type. */\n iconType?: (field: Field) => ReturnType<typeof toFieldType>;\n /**\n * Queries a reference field's referenced collection for the options its\n * filter offers. Returning `undefined` for a field — or omitting this —\n * leaves that field without a filter, which is what a source that cannot\n * reach the referenced collection wants.\n */\n referenceItems?: (field: Field) => FetchReferenceItems | undefined;\n}\n\n// Field type → the filter element rendered in the toolbar. Its keys also define\n// which field types get an auto filter (see isFilterableFieldType).\nconst FILTER_COMPONENT_BY_TYPE: Partial<\n Record<PatternsFieldType, React.ComponentType<any>>\n> = {\n SHORT_TEXT: OperatorFilterCustomFieldFilter,\n LONG_TEXT: OperatorFilterCustomFieldFilter,\n URL: OperatorFilterCustomFieldFilter,\n EMAIL: OperatorFilterCustomFieldFilter,\n RICH_TEXT: OperatorFilterCustomFieldFilter,\n // The source matches an address against its formatted text.\n ADDRESS: OperatorFilterCustomFieldFilter,\n NUMBER: NumberRangeFilter,\n BOOLEAN: CheckboxCustomFieldFilter,\n DATE: DateCustomFieldFilter,\n DATETIME: DateTimeCustomFieldFilter,\n // Types with no value to match against — filter them on emptiness alone.\n TIME: HasValueCustomFieldFilter,\n IMAGE: HasValueCustomFieldFilter,\n VIDEO: HasValueCustomFieldFilter,\n AUDIO: HasValueCustomFieldFilter,\n MEDIA_GALLERY: HasValueCustomFieldFilter,\n DOCUMENT: HasValueCustomFieldFilter,\n MULTI_DOCUMENT: HasValueCustomFieldFilter,\n RICH_CONTENT: HasValueCustomFieldFilter,\n OBJECT: HasValueCustomFieldFilter,\n COLOR: HasValueCustomFieldFilter,\n ARRAY: HasValueCustomFieldFilter,\n // REFERENCE / MULTI_REFERENCE are absent on purpose: their filter component\n // is injected by the source (see ReferenceFilterComponent), so this file —\n // which every source's filters go through — never pulls it in.\n};\n\n// Field type → the filter state registered on the collection query. Text fields\n// use the source's allowed operators; the rest are fixed.\nconst filterFactoryByType = (\n config: FieldFilterConfig,\n): Partial<Record<PatternsFieldType, FilterFactory>> => {\n const stringFilter: FilterFactory = (params) =>\n stringOperatorFilter({ ...params, allowedOperators: config.textOperators });\n return {\n SHORT_TEXT: stringFilter,\n LONG_TEXT: stringFilter,\n URL: stringFilter,\n EMAIL: stringFilter,\n RICH_TEXT: stringFilter,\n ADDRESS: stringFilter,\n NUMBER: numberRangeFilter,\n BOOLEAN: idNameArrayFilter,\n DATE: dateRangeFilter,\n DATETIME: dateRangeFilter,\n TIME: idNameArrayFilter,\n IMAGE: idNameArrayFilter,\n VIDEO: idNameArrayFilter,\n AUDIO: idNameArrayFilter,\n MEDIA_GALLERY: idNameArrayFilter,\n DOCUMENT: idNameArrayFilter,\n MULTI_DOCUMENT: idNameArrayFilter,\n RICH_CONTENT: idNameArrayFilter,\n OBJECT: idNameArrayFilter,\n COLOR: idNameArrayFilter,\n ARRAY: idNameArrayFilter,\n REFERENCE: idNameArrayFilter,\n MULTI_REFERENCE: idNameArrayFilter,\n };\n};\n\n/** A field gets an auto filter when its type maps to a filter element. */\nexport const isFilterableFieldType = (type: PatternsFieldType): boolean =>\n type in FILTER_COMPONENT_BY_TYPE;\n\n/** The active filter config of a CUSTOM field's type definition, if any. */\nconst resolveCustomFilter = (\n field: Field,\n source: Pick<FieldsSource, 'fieldTypes'>,\n): FilterTypeConfig | undefined => {\n const customTypeConfig = resolveFieldTypeDefinition(source, field);\n return customTypeConfig && isFilterTypeConfig(customTypeConfig.filter)\n ? customTypeConfig.filter\n : undefined;\n};\n\nconst isReferenceField = (\n field: Field,\n): field is ReferenceField | MultiReferenceField =>\n field.type === 'REFERENCE' || field.type === 'MULTI_REFERENCE';\n\n/** A field gets an auto filter when its type maps to a filter element, or —\n * for a CUSTOM field — when its type definition declares a filter config. A\n * reference field also needs the source to reach the referenced collection. */\nexport const isFilterableField = (\n field: Field,\n source: Pick<FieldsSource, 'fieldTypes'>,\n config?: FieldFilterConfig,\n ReferenceFilter?: ReferenceFilterComponent,\n): boolean => {\n if (field.type === 'CUSTOM') {\n return !!resolveCustomFilter(field, source);\n }\n if (isReferenceField(field)) {\n return !!ReferenceFilter && !!config?.referenceItems?.(field);\n }\n return isFilterableFieldType(field.type);\n};\n\n/**\n * Registers a filter state per filterable field on the collection query, so the\n * built elements have a filter to read. Idempotent — addFilterIfNeeded skips a\n * field that is already registered.\n */\nexport const registerFieldFilters = (\n toolbar: ToolbarCollectionState<any, any>,\n source: Pick<FieldsSource, 'filterableFields' | 'fieldTypes'>,\n config: FieldFilterConfig,\n ReferenceFilter?: ReferenceFilterComponent,\n): void => {\n const factoryByType = filterFactoryByType(config);\n source.filterableFields.forEach((field) => {\n if (field.type === 'CUSTOM') {\n const customFilter = resolveCustomFilter(field, source);\n if (!customFilter) {\n return;\n }\n const filter = customFilter.createFilter(field);\n // The collection registers the filter under the field's id.\n Object.assign(filter, { name: field.id });\n toolbar.collection.query.addFilterIfNeeded(field.id as any, filter);\n return;\n }\n if (\n isReferenceField(field) &&\n !(ReferenceFilter && config.referenceItems?.(field))\n ) {\n return;\n }\n const factory = factoryByType[field.type];\n if (!factory) {\n return;\n }\n toolbar.collection.query.addFilterIfNeeded(\n field.id as any,\n factory({ name: field.id, isCustomField: true }),\n );\n });\n};\n\n/** Builds the toolbar filter element for a field, or null when it has none. */\nconst buildFieldFilterElement = (\n toolbar: ToolbarCollectionState<any, any>,\n field: Field,\n config: FieldFilterConfig,\n source: Pick<FieldsSource, 'fieldTypes'>,\n ReferenceFilter?: ReferenceFilterComponent,\n): FilterElement | null => {\n const filter = toolbar.collection.filters[field.id];\n if (!filter) {\n return null;\n }\n const label = field.displayName || field.id;\n if (field.type === 'CUSTOM') {\n const CustomComponent = resolveCustomFilter(field, source)?.Component;\n if (!CustomComponent) {\n return null;\n }\n return (\n <CustomComponent\n key={field.id}\n filter={filter}\n accordionItemProps={{ label }}\n toolbarItemProps={{ label }}\n toolbarTagProps={{ label }}\n />\n ) as FilterElement;\n }\n if (isReferenceField(field)) {\n const fetchItems = config.referenceItems?.(field);\n if (!ReferenceFilter || !fetchItems) {\n return null;\n }\n return (\n <ReferenceFilter\n key={field.id}\n filter={filter}\n fetchItems={fetchItems}\n referencedCollectionId={field.referenceMetadata.referencedCollectionId}\n fieldId={field.id}\n accordionItemProps={{ label }}\n toolbarItemProps={{ label }}\n toolbarTagProps={{ label }}\n />\n ) as FilterElement;\n }\n const FilterComponent = FILTER_COMPONENT_BY_TYPE[field.type];\n if (!FilterComponent) {\n return null;\n }\n const decimal =\n field.type === 'NUMBER' ? config.numberIsDecimal?.(field) : false;\n return (\n <FilterComponent\n key={field.id}\n filter={filter}\n fieldType={config.iconType?.(field) ?? toFieldType(field.type)}\n accordionItemProps={{ label }}\n toolbarItemProps={{ label }}\n toolbarTagProps={{ label }}\n {...(decimal ? { decimal: true } : {})}\n />\n ) as FilterElement;\n};\n\n/** Builds the toolbar filter elements for a source's filterable fields. */\nexport const buildFieldFilters = (\n toolbar: ToolbarCollectionState<any, any>,\n source: Pick<FieldsSource, 'filterableFields' | 'fieldTypes'>,\n config: FieldFilterConfig,\n ReferenceFilter?: ReferenceFilterComponent,\n): FilterElement[] =>\n source.filterableFields\n .map((field) =>\n buildFieldFilterElement(toolbar, field, config, source, ReferenceFilter),\n )\n .filter((el): el is FilterElement => el !== null);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAqBA,IAAAE,qBAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GA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CAACqE,QAAQ,CAAGtD,KAAK,CAAC,KAAI,IAAAuD,iCAAW,EAACvD,KAAK,CAACH,IAAI,CAAE;IAC/DwC,kBAAkB,EAAE;MAAER;IAAM,CAAE;IAC9BS,gBAAgB,EAAE;MAAET;IAAM,CAAE;IAC5BU,eAAe,EAAE;MAAEV;IAAM;EAAE,GACtBqB,OAAO,GAAG;IAAEA,OAAO,EAAE;EAAK,CAAC,GAAG,CAAC,CAAC;IAAAV,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAvF,YAAA;MAAAwF,UAAA;MAAAC,YAAA;IAAA;EAAA,EACtC,CAAC;AAEN,CAAC;;AAED;AACO,MAAMY,iBAAiB,GAAGA,CAC/B5C,OAAyC,EACzCX,MAA6D,EAC7DhB,MAAyB,EACzBwB,eAA0C,KAE1CR,MAAM,CAACa,gBAAgB,CACpB2C,GAAG,CAAEzD,KAAK,IACT2B,uBAAuB,CAACf,OAAO,EAAEZ,KAAK,EAAEf,MAAM,EAAEgB,MAAM,EAAEQ,eAAe,CACzE,CAAC,CACAJ,MAAM,CAAEqD,EAAE,IAA0BA,EAAE,KAAK,IAAI,CAAC;AAAC5D,OAAA,CAAA0D,iBAAA,GAAAA,iBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_bexCore","_fieldTypePrefixIcons","_CheckboxCustomFieldFilter","_DateCustomFieldFilter","_DateTimeCustomFieldFilter","_OperatorFilterCustomFieldFilter","_NumberRangeFilter","_HasValueCustomFieldFilter","_jsxFileName","FILTER_COMPONENT_BY_TYPE","SHORT_TEXT","OperatorFilterCustomFieldFilter","LONG_TEXT","URL","EMAIL","RICH_TEXT","ADDRESS","NUMBER","NumberRangeFilter","BOOLEAN","CheckboxCustomFieldFilter","DATE","DateCustomFieldFilter","DATETIME","DateTimeCustomFieldFilter","TIME","HasValueCustomFieldFilter","IMAGE","VIDEO","AUDIO","MEDIA_GALLERY","DOCUMENT","MULTI_DOCUMENT","RICH_CONTENT","OBJECT","COLOR","ARRAY","filterFactoryByType","config","stringFilter","params","stringOperatorFilter","allowedOperators","textOperators","numberRangeFilter","idNameArrayFilter","dateRangeFilter","REFERENCE","MULTI_REFERENCE","isFilterableFieldType","type","exports","resolveCustomFilter","field","source","customTypeConfig","resolveFieldTypeDefinition","isFilterTypeConfig","filter","undefined","isFilterableField","ReferenceFilter","isReferenceField","referenceItems","registerFieldFilters","toolbar","factoryByType","filterableFields","forEach","customFilter","createFilter","Object","assign","name","id","collection","query","addFilterIfNeeded","factory","isCustomField","buildFieldFilterElement","filters","label","displayName","_resolveCustomFilter","CustomComponent","Component","default","createElement","key","accordionItemProps","toolbarItemProps","toolbarTagProps","__self","__source","fileName","lineNumber","columnNumber","fetchItems","referencedCollectionId","referenceMetadata","fieldId","FilterComponent","decimal","numberIsDecimal","_extends2","fieldType","iconType","toFieldType","buildFieldFilters","map","el"],"sources":["../../../src/state/buildFieldFilters.tsx"],"sourcesContent":["import React, { type ComponentType } from 'react';\nimport {\n dateRangeFilter,\n idNameArrayFilter,\n isReferenceField,\n isFilterTypeConfig,\n numberRangeFilter,\n resolveFieldTypeDefinition,\n stringOperatorFilter,\n} from '@wix/bex-core';\nimport type {\n Field,\n FieldsSource,\n Filter,\n FilterStateBaseParams,\n FilterOperator,\n FilterTypeConfig,\n PatternsFieldType,\n} from '@wix/bex-core';\nimport type { ToolbarCollectionState } from './ToolbarCollectionState';\nimport type { FilterElement } from '../components/CollectionToolbarFilters';\nimport { toFieldType } from '../utils/fieldTypePrefixIcons';\nimport { CheckboxCustomFieldFilter } from '../components/CustomFieldFilters/CheckboxCustomFieldFilter';\nimport { DateCustomFieldFilter } from '../components/CustomFieldFilters/DateCustomFieldFilter';\nimport { DateTimeCustomFieldFilter } from '../components/CustomFieldFilters/DateTimeCustomFieldFilter';\nimport { OperatorFilterCustomFieldFilter } from '../components/CustomFieldFilters/OperatorFilterCustomFieldFilter';\nimport { NumberRangeFilter } from '../components/NumberRangeFilter';\nimport { HasValueCustomFieldFilter } from '../components/CustomFieldFilters/HasValueCustomFieldFilter';\nimport type {\n FetchReferenceItems,\n ReferenceFieldFilterProps,\n} from '../components/ReferenceFieldFilter/ReferenceFieldFilter';\n\ntype FilterFactory = (\n params: Partial<FilterStateBaseParams<any>>,\n) => Filter<any>;\n\n/**\n * The reference filter, supplied by the source rather than imported here. It\n * reaches the referenced item's avatar in `@wix/patterns-fields`, which every\n * source would otherwise pay for — including sources with no reference fields.\n */\nexport type ReferenceFilterComponent = ComponentType<ReferenceFieldFilterProps>;\n\nexport type { FilterTypeConfig } from '@wix/bex-core';\n\n/**\n * The filter behavior a source supplies that the shared builder can't derive\n * from the neutral field type. The neutral type collapses distinct source types\n * (e.g. a DataExtension dropdown into SHORT_TEXT), so the source fills the gaps.\n */\nexport interface FieldFilterConfig {\n /** Operators the source's backend can run on text fields. */\n textOperators: FilterOperator[];\n /** Whether a NUMBER field's filter accepts decimals. Default: false. */\n numberIsDecimal?: (field: Field) => boolean;\n /** Filter type icon. Default: derived from the neutral field type. */\n iconType?: (field: Field) => ReturnType<typeof toFieldType>;\n /**\n * Queries a reference field's referenced collection for the options its\n * filter offers. Returning `undefined` for a field — or omitting this —\n * leaves that field without a filter, which is what a source that cannot\n * reach the referenced collection wants.\n */\n referenceItems?: (field: Field) => FetchReferenceItems | undefined;\n}\n\n// Field type → the filter element rendered in the toolbar. Its keys also define\n// which field types get an auto filter (see isFilterableFieldType).\nconst FILTER_COMPONENT_BY_TYPE: Partial<\n Record<PatternsFieldType, React.ComponentType<any>>\n> = {\n SHORT_TEXT: OperatorFilterCustomFieldFilter,\n LONG_TEXT: OperatorFilterCustomFieldFilter,\n URL: OperatorFilterCustomFieldFilter,\n EMAIL: OperatorFilterCustomFieldFilter,\n RICH_TEXT: OperatorFilterCustomFieldFilter,\n // The source matches an address against its formatted text.\n ADDRESS: OperatorFilterCustomFieldFilter,\n NUMBER: NumberRangeFilter,\n BOOLEAN: CheckboxCustomFieldFilter,\n DATE: DateCustomFieldFilter,\n DATETIME: DateTimeCustomFieldFilter,\n // Types with no value to match against — filter them on emptiness alone.\n TIME: HasValueCustomFieldFilter,\n IMAGE: HasValueCustomFieldFilter,\n VIDEO: HasValueCustomFieldFilter,\n AUDIO: HasValueCustomFieldFilter,\n MEDIA_GALLERY: HasValueCustomFieldFilter,\n DOCUMENT: HasValueCustomFieldFilter,\n MULTI_DOCUMENT: HasValueCustomFieldFilter,\n RICH_CONTENT: HasValueCustomFieldFilter,\n OBJECT: HasValueCustomFieldFilter,\n COLOR: HasValueCustomFieldFilter,\n ARRAY: HasValueCustomFieldFilter,\n // REFERENCE / MULTI_REFERENCE are absent on purpose: their filter component\n // is injected by the source (see ReferenceFilterComponent), so this file —\n // which every source's filters go through — never pulls it in.\n};\n\n// Field type → the filter state registered on the collection query. Text fields\n// use the source's allowed operators; the rest are fixed.\nconst filterFactoryByType = (\n config: FieldFilterConfig,\n): Partial<Record<PatternsFieldType, FilterFactory>> => {\n const stringFilter: FilterFactory = (params) =>\n stringOperatorFilter({ ...params, allowedOperators: config.textOperators });\n return {\n SHORT_TEXT: stringFilter,\n LONG_TEXT: stringFilter,\n URL: stringFilter,\n EMAIL: stringFilter,\n RICH_TEXT: stringFilter,\n ADDRESS: stringFilter,\n NUMBER: numberRangeFilter,\n BOOLEAN: idNameArrayFilter,\n DATE: dateRangeFilter,\n DATETIME: dateRangeFilter,\n TIME: idNameArrayFilter,\n IMAGE: idNameArrayFilter,\n VIDEO: idNameArrayFilter,\n AUDIO: idNameArrayFilter,\n MEDIA_GALLERY: idNameArrayFilter,\n DOCUMENT: idNameArrayFilter,\n MULTI_DOCUMENT: idNameArrayFilter,\n RICH_CONTENT: idNameArrayFilter,\n OBJECT: idNameArrayFilter,\n COLOR: idNameArrayFilter,\n ARRAY: idNameArrayFilter,\n REFERENCE: idNameArrayFilter,\n MULTI_REFERENCE: idNameArrayFilter,\n };\n};\n\n/** A field gets an auto filter when its type maps to a filter element. */\nexport const isFilterableFieldType = (type: PatternsFieldType): boolean =>\n type in FILTER_COMPONENT_BY_TYPE;\n\n/** The active filter config of a CUSTOM field's type definition, if any. */\nconst resolveCustomFilter = (\n field: Field,\n source: Pick<FieldsSource, 'fieldTypes'>,\n): FilterTypeConfig | undefined => {\n const customTypeConfig = resolveFieldTypeDefinition(source, field);\n return customTypeConfig && isFilterTypeConfig(customTypeConfig.filter)\n ? customTypeConfig.filter\n : undefined;\n};\n\n/** A field gets an auto filter when its type maps to a filter element, or —\n * for a CUSTOM field — when its type definition declares a filter config. A\n * reference field also needs the source to reach the referenced collection. */\nexport const isFilterableField = (\n field: Field,\n source: Pick<FieldsSource, 'fieldTypes'>,\n config?: FieldFilterConfig,\n ReferenceFilter?: ReferenceFilterComponent,\n): boolean => {\n if (field.type === 'CUSTOM') {\n return !!resolveCustomFilter(field, source);\n }\n if (isReferenceField(field)) {\n return !!ReferenceFilter && !!config?.referenceItems?.(field);\n }\n return isFilterableFieldType(field.type);\n};\n\n/**\n * Registers a filter state per filterable field on the collection query, so the\n * built elements have a filter to read. Idempotent — addFilterIfNeeded skips a\n * field that is already registered.\n */\nexport const registerFieldFilters = (\n toolbar: ToolbarCollectionState<any, any>,\n source: Pick<FieldsSource, 'filterableFields' | 'fieldTypes'>,\n config: FieldFilterConfig,\n ReferenceFilter?: ReferenceFilterComponent,\n): void => {\n const factoryByType = filterFactoryByType(config);\n source.filterableFields.forEach((field) => {\n if (field.type === 'CUSTOM') {\n const customFilter = resolveCustomFilter(field, source);\n if (!customFilter) {\n return;\n }\n const filter = customFilter.createFilter(field);\n // The collection registers the filter under the field's id.\n Object.assign(filter, { name: field.id });\n toolbar.collection.query.addFilterIfNeeded(field.id as any, filter);\n return;\n }\n if (\n isReferenceField(field) &&\n !(ReferenceFilter && config.referenceItems?.(field))\n ) {\n return;\n }\n const factory = factoryByType[field.type];\n if (!factory) {\n return;\n }\n toolbar.collection.query.addFilterIfNeeded(\n field.id as any,\n factory({ name: field.id, isCustomField: true }),\n );\n });\n};\n\n/** Builds the toolbar filter element for a field, or null when it has none. */\nconst buildFieldFilterElement = (\n toolbar: ToolbarCollectionState<any, any>,\n field: Field,\n config: FieldFilterConfig,\n source: Pick<FieldsSource, 'fieldTypes'>,\n ReferenceFilter?: ReferenceFilterComponent,\n): FilterElement | null => {\n const filter = toolbar.collection.filters[field.id];\n if (!filter) {\n return null;\n }\n const label = field.displayName || field.id;\n if (field.type === 'CUSTOM') {\n const CustomComponent = resolveCustomFilter(field, source)?.Component;\n if (!CustomComponent) {\n return null;\n }\n return (\n <CustomComponent\n key={field.id}\n filter={filter}\n accordionItemProps={{ label }}\n toolbarItemProps={{ label }}\n toolbarTagProps={{ label }}\n />\n ) as FilterElement;\n }\n if (isReferenceField(field)) {\n const fetchItems = config.referenceItems?.(field);\n if (!ReferenceFilter || !fetchItems) {\n return null;\n }\n return (\n <ReferenceFilter\n key={field.id}\n filter={filter}\n fetchItems={fetchItems}\n referencedCollectionId={field.referenceMetadata.referencedCollectionId}\n fieldId={field.id}\n accordionItemProps={{ label }}\n toolbarItemProps={{ label }}\n toolbarTagProps={{ label }}\n />\n ) as FilterElement;\n }\n const FilterComponent = FILTER_COMPONENT_BY_TYPE[field.type];\n if (!FilterComponent) {\n return null;\n }\n const decimal =\n field.type === 'NUMBER' ? config.numberIsDecimal?.(field) : false;\n return (\n <FilterComponent\n key={field.id}\n filter={filter}\n fieldType={config.iconType?.(field) ?? toFieldType(field.type)}\n accordionItemProps={{ label }}\n toolbarItemProps={{ label }}\n toolbarTagProps={{ label }}\n {...(decimal ? { decimal: true } : {})}\n />\n ) as FilterElement;\n};\n\n/** Builds the toolbar filter elements for a source's filterable fields. */\nexport const buildFieldFilters = (\n toolbar: ToolbarCollectionState<any, any>,\n source: Pick<FieldsSource, 'filterableFields' | 'fieldTypes'>,\n config: FieldFilterConfig,\n ReferenceFilter?: ReferenceFilterComponent,\n): FilterElement[] =>\n source.filterableFields\n .map((field) =>\n buildFieldFilterElement(toolbar, field, config, source, ReferenceFilter),\n )\n .filter((el): el is F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AEA,MAAO;IACfgD,SAAS,EAAE,CAAApE,MAAM,CAACqE,QAAQ,oBAAfrE,MAAM,CAACqE,QAAQ,CAAGtD,KAAK,CAAC,KAAI,IAAAuD,iCAAW,EAACvD,KAAK,CAACH,IAAI,CAAE;IAC/DwC,kBAAkB,EAAE;MAAER;IAAM,CAAE;IAC9BS,gBAAgB,EAAE;MAAET;IAAM,CAAE;IAC5BU,eAAe,EAAE;MAAEV;IAAM;EAAE,GACtBqB,OAAO,GAAG;IAAEA,OAAO,EAAE;EAAK,CAAC,GAAG,CAAC,CAAC;IAAAV,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAvF,YAAA;MAAAwF,UAAA;MAAAC,YAAA;IAAA;EAAA,EACtC,CAAC;AAEN,CAAC;;AAED;AACO,MAAMY,iBAAiB,GAAGA,CAC/B5C,OAAyC,EACzCX,MAA6D,EAC7DhB,MAAyB,EACzBuB,eAA0C,KAE1CP,MAAM,CAACa,gBAAgB,CACpB2C,GAAG,CAAEzD,KAAK,IACT2B,uBAAuB,CAACf,OAAO,EAAEZ,KAAK,EAAEf,MAAM,EAAEgB,MAAM,EAAEO,eAAe,CACzE,CAAC,CACAH,MAAM,CAAEqD,EAAE,IAA0BA,EAAE,KAAK,IAAI,CAAC;AAAC5D,OAAA,CAAA0D,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -1,3 +1,3 @@
1
- .CardContainer2554583830__root.CardContainer2554583830--mobile{border-radius:0}.CmsFieldForm3946965538__fullBleedDivider{margin-top:var(--wds-space-300, 18px);margin-inline:calc(-1*var(--wds-custom-modal-content-padding-horizontal, 24px))}.CmsFieldModal1975015044__modal{--wds-custom-modal-content-padding-vertical:0}.ValidationAndDefaultsSection3500341913__accordionWrapper{margin-inline:calc(-1*var(--wds-custom-modal-content-padding-horizontal, 24px))}.CharactersLimitInput3476635084__field{flex:1;min-width:0}.Collapse2957174514__root{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.Collapse2957174514__exit{height:0}.CollectionPage2450011650__root [data-hook=page-header-wrapper]{--wds-space-300:18px}.CollectionPage2450011650__root.CollectionPage2450011650--mobile{--wds-page-header-padding-horizontal:0;--wds-page-header-padding-horizontal-small:0;--wds-color-fill-surface-sunken:#ffffff}.CollectionPage2450011650__root.CollectionPage2450011650--panel{overflow:hidden;position:relative}.CollectionSectionHeader2292765663__summaryIcon{display:flex;color:var(--wds-color-text-standard-secondary)}.CollectionTable1183688564__root td{vertical-align:middle}.CollectionTable1183688564__root.CollectionTable1183688564--mobile td:first-child{padding-left:18px}.CollectionTable1183688564__root.CollectionTable1183688564--mobile td:last-child{padding-right:18px}.CollectionTableWSRTable1207533983__root.CollectionTableWSRTable1207533983--resizable table{min-width:100%}.CollectionTableWSRTable1207533983__root.CollectionTableWSRTable1207533983--resizable [data-hook=table-resize-handle]{right:-4px!important;z-index:1}.CollectionToolbar1341892814__root.CollectionToolbar1341892814--harmony .CollectionToolbar1341892814__right [data-hook=horizontal-overflow-box]>*{margin-inline-start:0}.CollectionToolbar1341892814__left{min-width:0}.CollectionToolbar1341892814__left.CollectionToolbar1341892814--expandable{flex:auto}.CollectionToolbar1341892814__left.CollectionToolbar1341892814--title>*{width:100%}.CollectionToolbar1341892814__root.CollectionToolbar1341892814---responsiveMode-5-title .CollectionToolbar1341892814__left{flex:1 100;min-width:50px}.CollectionToolbar1341892814__root.CollectionToolbar1341892814---responsiveMode-4-tabs .CollectionToolbar1341892814__left,.CollectionToolbar1341892814__root.CollectionToolbar1341892814---responsiveMode-4-tabs .CollectionToolbar1341892814__left.CollectionToolbar1341892814--expandable{flex:1 100 auto;min-width:140px}.CollectionToolbar1341892814__root.CollectionToolbar1341892814---responsiveMode-4-tabs .CollectionToolbar1341892814__left>*{flex-shrink:1;min-width:0}.CollectionToolbar1341892814__root .CollectionToolbar1341892814__right{justify-content:flex-end!important;flex-grow:1;flex-shrink:1;flex-basis:auto}.CollectionToolbar1341892814__root.CollectionToolbar1341892814--views .CollectionToolbar1341892814__right{min-width:0;flex-grow:1;flex-shrink:0;flex-basis:0}.CollectionToolbar1341892814__root.CollectionToolbar1341892814---responsiveMode-4-tabs .CollectionToolbar1341892814__right,.CollectionToolbar1341892814__root.CollectionToolbar1341892814---responsiveMode-5-title .CollectionToolbar1341892814__right{flex:0 1 auto;min-width:0}.CollectionToolbar1341892814__root .CollectionToolbar1341892814__right.CollectionToolbar1341892814__fullWidth{margin-inline-start:0!important}.CollectionToolbar1341892814__root.CollectionToolbar1341892814--mobile:not(.CollectionToolbar1341892814--harmony){padding-right:18px;padding-left:18px}.SearchOrCustomFilter3124943132__search{min-width:140px;max-width:240px;flex:1 0}.SearchOrCustomFilter3124943132__searchMobile{justify-content:flex-end;position:absolute;right:18px}.SearchOrCustomFilter3124943132__searchMobile:not(.SearchOrCustomFilter3124943132--expandable){left:18px}.SearchOrCustomFilter3124943132__searchMobile.SearchOrCustomFilter3124943132--expandable.SearchOrCustomFilter3124943132--expanded{left:18px}.AutoCompleteReadonly4229998832__root.AutoCompleteReadonly4229998832--disableEditing{cursor:pointer}.AutoCompleteReadonly4229998832__root.AutoCompleteReadonly4229998832--disableEditing input{cursor:pointer}.ViewsDropdown2458184276__root{width:200px}.DragHandle371561672__root{display:flex;align-items:center}.DragHandle371561672__root:not(.DragHandle371561672--disabled){cursor:grab;color:#a8caff}.DragHandle371561672__root.DragHandle371561672--disabled{color:#acafc4}.DragHandle371561672__root:focus-visible:not(.DragHandle371561672--disabled){outline:0;box-shadow:0 0 0 3px #a6d0ff}.DragHandle371561672__root.DragHandle371561672--disabled{pointer-events:none}.DragHandle371561672__root.DragHandle371561672--dragging:not(.DragHandle371561672--disabled){cursor:grabbing}td:has(>.EditableCell4132715005__root){position:relative;overflow:visible}tr:has(.EditableCell4132715005__root)>td{padding-top:0!important;padding-bottom:0!important;height:36px}.EditableCell4132715005__root{display:flex;align-items:center;padding:0;position:absolute;top:-1px;left:-1px;right:0;bottom:0;overflow:hidden;box-sizing:border-box;outline:0;cursor:default;user-select:none;background:var(--wds-color-fill-surface-raised, var(--wsr-color-D80, #ffffff));border:var(--wds-border-width-default, 1px) solid var(--wds-color-border-dark-secondary, var(--wsr-color-D60, #dfe5eb))}tr:first-child>td>.EditableCell4132715005__root{top:0}.EditableCell4132715005__root:hover:not(.EditableCell4132715005--rowActive):not(.EditableCell4132715005--rangeSelected){background:var(--wds-color-black-750, #f6f7f9)}.EditableCell4132715005__root.EditableCell4132715005--rowActive:not(.EditableCell4132715005--rangeSelected){background:var(--wds-color-black-750, #f6f7f9);box-shadow:inset 0 22px 18px -18px rgba(0,6,36,.1)}.EditableCell4132715005__root.EditableCell4132715005--rowActive:hover:not(.EditableCell4132715005--focused):not(.EditableCell4132715005--rangeSelected){border-color:var(--wds-input-border-color-hover, var(--wsr-color-B40, #d6e6fe));box-shadow:inset 0 8px 6px -6px rgba(0,6,36,.05)}.EditableCell4132715005__root.EditableCell4132715005--focused:not(.EditableCell4132715005--rangeSelected){border-color:var(--wds-input-border-color-focus, var(--wsr-color-B10, #116dff));box-shadow:inset 0 8px 6px -6px rgba(0,6,36,.05);z-index:2}.EditableCell4132715005__root.EditableCell4132715005--editing{z-index:3;user-select:auto;overflow:visible;background:var(--wds-color-fill-surface-raised, var(--wsr-color-D80, #ffffff))}.EditableCell4132715005__root.EditableCell4132715005--editing:not(.EditableCell4132715005--showEditWhenFocused){bottom:auto;min-height:calc(100% + 1px)}.EditableCell4132715005__root.EditableCell4132715005--focused.EditableCell4132715005--growable{bottom:auto;min-height:calc(100% + 1px);z-index:3}.EditableCell4132715005__root:has([data-inner-focused]){overflow:visible;z-index:3;border-color:var(--wds-input-border-color-focus, var(--wsr-color-B10, #116dff));box-shadow:inset 0 8px 6px -6px rgba(0,6,36,.05)}.EditableCell4132715005__root.EditableCell4132715005--rangeSelected{background:rgba(56,153,236,.08)}.EditableCell4132715005__root.EditableCell4132715005--selectionTop:not(.EditableCell4132715005--editing){border-top:2px solid var(--wsr-color-B10)}.EditableCell4132715005__root.EditableCell4132715005--selectionBottom:not(.EditableCell4132715005--editing){border-bottom:2px solid var(--wsr-color-B10)}.EditableCell4132715005__root.EditableCell4132715005--selectionLeft:not(.EditableCell4132715005--editing){border-left:2px solid var(--wsr-color-B10)}.EditableCell4132715005__root.EditableCell4132715005--selectionRight:not(.EditableCell4132715005--editing){border-right:2px solid var(--wsr-color-B10)}.EditableCell4132715005__root.EditableCell4132715005--invalid,.EditableCell4132715005__root.EditableCell4132715005--invalid.EditableCell4132715005--rowActive:hover:not(.EditableCell4132715005--focused):not(.EditableCell4132715005--rangeSelected),.EditableCell4132715005__root.EditableCell4132715005--invalid.EditableCell4132715005--focused:not(.EditableCell4132715005--rangeSelected),.EditableCell4132715005__root.EditableCell4132715005--invalid:has([data-inner-focused]){border-color:var(--wds-color-red-100, var(--wsr-color-R10, #e62214))}.EditableCell4132715005__root.EditableCell4132715005--copiedTop:not(.EditableCell4132715005--selectionTop){border-top:2px dashed var(--wsr-color-B10)}.EditableCell4132715005__root.EditableCell4132715005--copiedBottom:not(.EditableCell4132715005--selectionBottom){border-bottom:2px dashed var(--wsr-color-B10)}.EditableCell4132715005__root.EditableCell4132715005--copiedLeft:not(.EditableCell4132715005--selectionLeft){border-left:2px dashed var(--wsr-color-B10)}.EditableCell4132715005__root.EditableCell4132715005--copiedRight:not(.EditableCell4132715005--selectionRight){border-right:2px dashed var(--wsr-color-B10)}.EditableCell4132715005__root.EditableCell4132715005--invalid:not(.EditableCell4132715005--focused):not(.EditableCell4132715005--editing){z-index:1}.EditableCell4132715005__errorMessage{position:absolute;top:calc(100% + 4px);left:-1px;z-index:4;box-sizing:border-box;width:max-content;max-width:240px;padding:6px 8px;pointer-events:none;border-radius:var(--wds-popover-border-radius, var(--wds-border-radius-400, 8px));background:var(--wds-popover-fill, var(--wds-color-fill-surface-overlay, var(--wsr-color-D80, #ffffff)));box-shadow:var(--wds-shadow-surface-overlay, 0 0 18px rgba(0, 6, 36, 0.1), 0 6px 6px rgba(0, 6, 36, 0.05))}.HeaderActionsPopover4036277946__root{opacity:0;transition:opacity .15s}th:hover .HeaderActionsPopover4036277946__root,.HeaderActionsPopover4036277946__root[data-menu-open=true],.HeaderActionsPopover4036277946__root:focus-within{opacity:1}.CellViewLayout3509898779__root{width:100%;height:100%;padding:6px 8px;box-sizing:border-box;display:flex;align-items:center;overflow:clip}.CellViewLayout3509898779__root>*{flex:1;min-width:0}.Edit2573311904__addressInput{width:100%;height:100%;display:flex;align-items:center;box-sizing:border-box;padding-left:8px;padding-right:8px;min-width:0;overflow:hidden}.Edit2573311904__addressInput>div,.Edit2573311904__addressInput>div>div,.Edit2573311904__addressInput>div>div>div{width:100%;min-width:0}.Edit2869226060__jsonInput{width:100%;margin-left:-1px}.Edit90257593__booleanEdit{display:flex;align-items:center;margin-left:8px}.View2858520939__booleanView{display:flex;align-items:center;margin-left:8px;pointer-events:none}.Edit1876479861__root{width:100%;height:100%;display:flex;align-items:center}.Edit2626484195__dateInput{width:100%;margin-left:-1px}.Edit731567354__half{min-width:0;position:relative;display:flex;align-items:center;box-sizing:border-box}.Edit731567354__dateHalf{flex:60 1 0}.Edit731567354__timeHalf{flex:40 1 0}.Edit731567354__divider{width:1px;height:16px;background:var(--wds-color-border-standard, #dfe5eb);flex-shrink:0}.Edit731567354__passiveText{padding:6px 8px;font-size:14px;line-height:18px;font-family:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;width:100%}.Edit731567354__placeholderText{color:var(--wds-color-text-placeholder, #868aa5)}.View3838782245__leaf{min-width:0;padding:6px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:18px;font-family:inherit;box-sizing:border-box}.View3838782245__datePart{flex:60 1 0}.View3838782245__timePart{flex:40 1 0}.View3838782245__placeholder{color:var(--wds-color-text-placeholder, #868aa5)}.View3838782245__divider{width:1px;height:16px;background:var(--wds-color-border-standard, #dfe5eb);flex-shrink:0}.Edit4098039100__emailInput{width:100%;margin-left:-1px}.Edit2319921542__numberInput{width:100%;margin-right:2px}.Edit2319921542__numberInput input{text-align:right;direction:ltr}.View2521455390__textView{width:100%;text-align:right}.Edit3789538789__jsonInput{width:100%;margin-left:-1px}.Edit3065165885__selectInput{width:100%}.Edit2824074131__editWrapper{width:100%}.Edit2824074131__inputArea{background-color:transparent;width:100%}.Edit2824074131__inputArea input,.Edit2824074131__inputArea textarea{font-size:var(--wds-font-size-body-small, var(--wsr-text-font-size-small, 14px))!important;line-height:var(--wds-font-line-height-body-small, var(--wsr-text-line-height-small, 18px))!important}.Edit2824074131__inputArea input{padding:6px 8px!important;outline:0!important;border:0!important;box-sizing:border-box!important}.Edit2824074131__inputArea>div{border:0!important;border-radius:0!important;box-shadow:none!important;background-color:transparent!important;outline:0!important}.Edit2824074131__inputArea>div::after{box-shadow:none!important}.Edit2824074131__inputArea textarea{padding:6px 8px!important;outline:0!important;border:0!important;box-sizing:border-box!important}.Edit2824074131__inputArea:not(.Edit2824074131--isFocused) textarea{resize:none;overflow:hidden}.Edit2824074131__inputArea:not(.Edit2824074131--isFocused) textarea::-webkit-scrollbar{display:none}.Edit2182445524__wrapper{position:relative;width:100%;height:100%;display:flex;align-items:center;--wds-input-value-font-size-small:var(--wds-font-size-body-small);--wds-input-value-font-line-height-small:var(
1
+ .CardContainer3128965469__root.CardContainer3128965469--mobile{border-radius:0}.CmsFieldForm713749527__fullBleedDivider{margin-top:var(--wds-space-300, 18px);margin-inline:calc(-1*var(--wds-custom-modal-content-padding-horizontal, 24px))}.CmsFieldModal236915718__modal{--wds-custom-modal-content-padding-vertical:0}.ValidationAndDefaultsSection3169958293__accordionWrapper{margin-inline:calc(-1*var(--wds-custom-modal-content-padding-horizontal, 24px))}.CharactersLimitInput3585359964__field{flex:1;min-width:0}.Collapse2410963627__root{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.Collapse2410963627__exit{height:0}.CollectionPage937746320__root [data-hook=page-header-wrapper]{--wds-space-300:18px}.CollectionPage937746320__root.CollectionPage937746320--mobile{--wds-page-header-padding-horizontal:0;--wds-page-header-padding-horizontal-small:0;--wds-color-fill-surface-sunken:#ffffff}.CollectionPage937746320__root.CollectionPage937746320--panel{overflow:hidden;position:relative}.CollectionSectionHeader2225851478__summaryIcon{display:flex;color:var(--wds-color-text-standard-secondary)}.CollectionTable839224026__root td{vertical-align:middle}.CollectionTable839224026__root.CollectionTable839224026--mobile td:first-child{padding-left:18px}.CollectionTable839224026__root.CollectionTable839224026--mobile td:last-child{padding-right:18px}.CollectionTableWSRTable555993268__root.CollectionTableWSRTable555993268--resizable table{min-width:100%}.CollectionTableWSRTable555993268__root.CollectionTableWSRTable555993268--resizable [data-hook=table-resize-handle]{right:-4px!important;z-index:1}.CollectionToolbar1623100111__root.CollectionToolbar1623100111--harmony .CollectionToolbar1623100111__right [data-hook=horizontal-overflow-box]>*{margin-inline-start:0}.CollectionToolbar1623100111__left{min-width:0}.CollectionToolbar1623100111__left.CollectionToolbar1623100111--expandable{flex:auto}.CollectionToolbar1623100111__left.CollectionToolbar1623100111--title>*{width:100%}.CollectionToolbar1623100111__root.CollectionToolbar1623100111---responsiveMode-5-title .CollectionToolbar1623100111__left{flex:1 100;min-width:50px}.CollectionToolbar1623100111__root.CollectionToolbar1623100111---responsiveMode-4-tabs .CollectionToolbar1623100111__left,.CollectionToolbar1623100111__root.CollectionToolbar1623100111---responsiveMode-4-tabs .CollectionToolbar1623100111__left.CollectionToolbar1623100111--expandable{flex:1 100 auto;min-width:140px}.CollectionToolbar1623100111__root.CollectionToolbar1623100111---responsiveMode-4-tabs .CollectionToolbar1623100111__left>*{flex-shrink:1;min-width:0}.CollectionToolbar1623100111__root .CollectionToolbar1623100111__right{justify-content:flex-end!important;flex-grow:1;flex-shrink:1;flex-basis:auto}.CollectionToolbar1623100111__root.CollectionToolbar1623100111--views .CollectionToolbar1623100111__right{min-width:0;flex-grow:1;flex-shrink:0;flex-basis:0}.CollectionToolbar1623100111__root.CollectionToolbar1623100111---responsiveMode-4-tabs .CollectionToolbar1623100111__right,.CollectionToolbar1623100111__root.CollectionToolbar1623100111---responsiveMode-5-title .CollectionToolbar1623100111__right{flex:0 1 auto;min-width:0}.CollectionToolbar1623100111__root .CollectionToolbar1623100111__right.CollectionToolbar1623100111__fullWidth{margin-inline-start:0!important}.CollectionToolbar1623100111__root.CollectionToolbar1623100111--mobile:not(.CollectionToolbar1623100111--harmony){padding-right:18px;padding-left:18px}.SearchOrCustomFilter3012136456__search{min-width:140px;max-width:240px;flex:1 0}.SearchOrCustomFilter3012136456__searchMobile{justify-content:flex-end;position:absolute;right:18px}.SearchOrCustomFilter3012136456__searchMobile:not(.SearchOrCustomFilter3012136456--expandable){left:18px}.SearchOrCustomFilter3012136456__searchMobile.SearchOrCustomFilter3012136456--expandable.SearchOrCustomFilter3012136456--expanded{left:18px}.AutoCompleteReadonly434646455__root.AutoCompleteReadonly434646455--disableEditing{cursor:pointer}.AutoCompleteReadonly434646455__root.AutoCompleteReadonly434646455--disableEditing input{cursor:pointer}.ViewsDropdown15537165__root{width:200px}.DragHandle1948296544__root{display:flex;align-items:center}.DragHandle1948296544__root:not(.DragHandle1948296544--disabled){cursor:grab;color:#a8caff}.DragHandle1948296544__root.DragHandle1948296544--disabled{color:#acafc4}.DragHandle1948296544__root:focus-visible:not(.DragHandle1948296544--disabled){outline:0;box-shadow:0 0 0 3px #a6d0ff}.DragHandle1948296544__root.DragHandle1948296544--disabled{pointer-events:none}.DragHandle1948296544__root.DragHandle1948296544--dragging:not(.DragHandle1948296544--disabled){cursor:grabbing}td:has(>.EditableCell3513595393__root){position:relative;overflow:visible}tr:has(.EditableCell3513595393__root)>td{padding-top:0!important;padding-bottom:0!important;height:36px}.EditableCell3513595393__root{display:flex;align-items:center;padding:0;position:absolute;top:-1px;left:-1px;right:0;bottom:0;overflow:hidden;box-sizing:border-box;outline:0;cursor:default;user-select:none;background:var(--wds-color-fill-surface-raised, var(--wsr-color-D80, #ffffff));border:var(--wds-border-width-default, 1px) solid var(--wds-color-border-dark-secondary, var(--wsr-color-D60, #dfe5eb))}tr:first-child>td>.EditableCell3513595393__root{top:0}.EditableCell3513595393__root:hover:not(.EditableCell3513595393--rowActive):not(.EditableCell3513595393--rangeSelected){background:var(--wds-color-black-750, #f6f7f9)}.EditableCell3513595393__root.EditableCell3513595393--rowActive:not(.EditableCell3513595393--rangeSelected){background:var(--wds-color-black-750, #f6f7f9);box-shadow:inset 0 22px 18px -18px rgba(0,6,36,.1)}.EditableCell3513595393__root.EditableCell3513595393--rowActive:hover:not(.EditableCell3513595393--focused):not(.EditableCell3513595393--rangeSelected){border-color:var(--wds-input-border-color-hover, var(--wsr-color-B40, #d6e6fe));box-shadow:inset 0 8px 6px -6px rgba(0,6,36,.05)}.EditableCell3513595393__root.EditableCell3513595393--focused:not(.EditableCell3513595393--rangeSelected){border-color:var(--wds-input-border-color-focus, var(--wsr-color-B10, #116dff));box-shadow:inset 0 8px 6px -6px rgba(0,6,36,.05);z-index:2}.EditableCell3513595393__root.EditableCell3513595393--editing{z-index:3;user-select:auto;overflow:visible;background:var(--wds-color-fill-surface-raised, var(--wsr-color-D80, #ffffff))}.EditableCell3513595393__root.EditableCell3513595393--editing:not(.EditableCell3513595393--showEditWhenFocused){bottom:auto;min-height:calc(100% + 1px)}.EditableCell3513595393__root.EditableCell3513595393--focused.EditableCell3513595393--growable{bottom:auto;min-height:calc(100% + 1px);z-index:3}.EditableCell3513595393__root:has([data-inner-focused]){overflow:visible;z-index:3;border-color:var(--wds-input-border-color-focus, var(--wsr-color-B10, #116dff));box-shadow:inset 0 8px 6px -6px rgba(0,6,36,.05)}.EditableCell3513595393__root.EditableCell3513595393--rangeSelected{background:rgba(56,153,236,.08)}.EditableCell3513595393__root.EditableCell3513595393--selectionTop:not(.EditableCell3513595393--editing){border-top:2px solid var(--wsr-color-B10)}.EditableCell3513595393__root.EditableCell3513595393--selectionBottom:not(.EditableCell3513595393--editing){border-bottom:2px solid var(--wsr-color-B10)}.EditableCell3513595393__root.EditableCell3513595393--selectionLeft:not(.EditableCell3513595393--editing){border-left:2px solid var(--wsr-color-B10)}.EditableCell3513595393__root.EditableCell3513595393--selectionRight:not(.EditableCell3513595393--editing){border-right:2px solid var(--wsr-color-B10)}.EditableCell3513595393__root.EditableCell3513595393--invalid,.EditableCell3513595393__root.EditableCell3513595393--invalid.EditableCell3513595393--rowActive:hover:not(.EditableCell3513595393--focused):not(.EditableCell3513595393--rangeSelected),.EditableCell3513595393__root.EditableCell3513595393--invalid.EditableCell3513595393--focused:not(.EditableCell3513595393--rangeSelected),.EditableCell3513595393__root.EditableCell3513595393--invalid:has([data-inner-focused]){border-color:var(--wds-color-red-100, var(--wsr-color-R10, #e62214))}.EditableCell3513595393__root.EditableCell3513595393--copiedTop:not(.EditableCell3513595393--selectionTop){border-top:2px dashed var(--wsr-color-B10)}.EditableCell3513595393__root.EditableCell3513595393--copiedBottom:not(.EditableCell3513595393--selectionBottom){border-bottom:2px dashed var(--wsr-color-B10)}.EditableCell3513595393__root.EditableCell3513595393--copiedLeft:not(.EditableCell3513595393--selectionLeft){border-left:2px dashed var(--wsr-color-B10)}.EditableCell3513595393__root.EditableCell3513595393--copiedRight:not(.EditableCell3513595393--selectionRight){border-right:2px dashed var(--wsr-color-B10)}.EditableCell3513595393__root.EditableCell3513595393--invalid:not(.EditableCell3513595393--focused):not(.EditableCell3513595393--editing){z-index:1}.EditableCell3513595393__errorMessage{position:absolute;top:calc(100% + 4px);left:-1px;z-index:4;box-sizing:border-box;width:max-content;max-width:240px;padding:6px 8px;pointer-events:none;border-radius:var(--wds-popover-border-radius, var(--wds-border-radius-400, 8px));background:var(--wds-popover-fill, var(--wds-color-fill-surface-overlay, var(--wsr-color-D80, #ffffff)));box-shadow:var(--wds-shadow-surface-overlay, 0 0 18px rgba(0, 6, 36, 0.1), 0 6px 6px rgba(0, 6, 36, 0.05))}.HeaderActionsPopover1397666700__root{opacity:0;transition:opacity .15s}th:hover .HeaderActionsPopover1397666700__root,.HeaderActionsPopover1397666700__root[data-menu-open=true],.HeaderActionsPopover1397666700__root:focus-within{opacity:1}.CellViewLayout554478013__root{width:100%;height:100%;padding:6px 8px;box-sizing:border-box;display:flex;align-items:center;overflow:clip}.CellViewLayout554478013__root>*{flex:1;min-width:0}.Edit1072967722__addressInput{width:100%;height:100%;display:flex;align-items:center;box-sizing:border-box;padding-left:8px;padding-right:8px;min-width:0;overflow:hidden}.Edit1072967722__addressInput>div,.Edit1072967722__addressInput>div>div,.Edit1072967722__addressInput>div>div>div{width:100%;min-width:0}.Edit2343355819__jsonInput{width:100%;margin-left:-1px}.Edit2165660215__booleanEdit{display:flex;align-items:center;margin-left:8px}.View1705582049__booleanView{display:flex;align-items:center;margin-left:8px;pointer-events:none}.Edit2491439285__root{width:100%;height:100%;display:flex;align-items:center}.Edit4289704283__dateInput{width:100%;margin-left:-1px}.Edit206686195__half{min-width:0;position:relative;display:flex;align-items:center;box-sizing:border-box}.Edit206686195__dateHalf{flex:60 1 0}.Edit206686195__timeHalf{flex:40 1 0}.Edit206686195__divider{width:1px;height:16px;background:var(--wds-color-border-standard, #dfe5eb);flex-shrink:0}.Edit206686195__passiveText{padding:6px 8px;font-size:14px;line-height:18px;font-family:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;width:100%}.Edit206686195__placeholderText{color:var(--wds-color-text-placeholder, #868aa5)}.View1553704831__leaf{min-width:0;padding:6px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:18px;font-family:inherit;box-sizing:border-box}.View1553704831__datePart{flex:60 1 0}.View1553704831__timePart{flex:40 1 0}.View1553704831__placeholder{color:var(--wds-color-text-placeholder, #868aa5)}.View1553704831__divider{width:1px;height:16px;background:var(--wds-color-border-standard, #dfe5eb);flex-shrink:0}.Edit3697751612__emailInput{width:100%;margin-left:-1px}.Edit2095126508__numberInput{width:100%;margin-right:2px}.Edit2095126508__numberInput input{text-align:right;direction:ltr}.View3154474587__textView{width:100%;text-align:right}.Edit1128688006__jsonInput{width:100%;margin-left:-1px}.Edit2705155614__selectInput{width:100%}.Edit3791132897__editWrapper{width:100%}.Edit3791132897__inputArea{background-color:transparent;width:100%}.Edit3791132897__inputArea input,.Edit3791132897__inputArea textarea{font-size:var(--wds-font-size-body-small, var(--wsr-text-font-size-small, 14px))!important;line-height:var(--wds-font-line-height-body-small, var(--wsr-text-line-height-small, 18px))!important}.Edit3791132897__inputArea input{padding:6px 8px!important;outline:0!important;border:0!important;box-sizing:border-box!important}.Edit3791132897__inputArea>div{border:0!important;border-radius:0!important;box-shadow:none!important;background-color:transparent!important;outline:0!important}.Edit3791132897__inputArea>div::after{box-shadow:none!important}.Edit3791132897__inputArea textarea{padding:6px 8px!important;outline:0!important;border:0!important;box-sizing:border-box!important}.Edit3791132897__inputArea:not(.Edit3791132897--isFocused) textarea{resize:none;overflow:hidden}.Edit3791132897__inputArea:not(.Edit3791132897--isFocused) textarea::-webkit-scrollbar{display:none}.Edit619452332__wrapper{position:relative;width:100%;height:100%;display:flex;align-items:center;--wds-input-value-font-size-small:var(--wds-font-size-body-small);--wds-input-value-font-line-height-small:var(
2
2
  --wds-font-line-height-body-small
3
- )}.Edit2182445524__overlay{position:absolute;inset:2px;pointer-events:none;background:var(--wds-color-background-elevation-base, #fff)}.Edit799129739__urlInput{width:100%;margin-left:-1px}.View2301561964__textView{width:100%;padding:9px 12px;display:flex;align-items:center;justify-content:space-between}.View2301561964__urlText{flex:1;min-width:0}.View2301561964__suffix{flex-shrink:0;margin-left:10px}.View2301561964__textView.View2301561964--suffixOnHover:not(:hover) .View2301561964__suffix{display:none}.EmptyStateBase2444871746__root{min-height:230px;align-items:center}.EntityPagePlain3511634604__root.EntityPagePlain3511634604--mobile{--wds-page-header-padding-horizontal:0}.Fade398040630__root{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);opacity:1}.Fade398040630__root.Fade398040630--exit{opacity:0}.Heading3290678__root{visibility:visible}.Heading3290678__root.Heading3290678--appearanceH2{font-size:28px!important;line-height:36px!important}.ImportStepUpload3011898540__fileUpload{width:100%}.InputOverflow291420642__root.InputOverflow291420642--selected:not(.InputOverflow291420642--focused) input::placeholder{color:#000624}@keyframes LoadingRow1738711764__gradientSwoosh{0%{background-position:50% 50%;background-size:150% 125%}15%{background-position:75% 40%;background-size:130% 115%}30%{background-position:50% 50%;background-size:120% 135%}60%{background-position:30% 50%;background-size:120% 135%}80%{background-position:10% 30%;background-size:130% 155%}to{background-position:40% 45%;background-size:125% 135%}}.LoadingRow1738711764__root{background-image:linear-gradient(60deg,rgba(255,255,255,.15)0,rgba(255,255,255,.15) 50%,rgba(95,242,174,.15) 100%),linear-gradient(284.81deg,#fff 67.18%,#91bbff 158.87%),linear-gradient(29deg,rgba(145,187,255,.6)0,#fff 40%,rgba(95,242,174,.6) 100%);height:100%;background-size:150% 125%;background-repeat:no-repeat;animation:LoadingRow1738711764__gradientSwoosh 2s ease-out infinite alternate}.MaxHeightText2576744574__root{opacity:1}.MaxHeightText2576744574__root.MaxHeightText2576744574--height24{line-height:24px}.MaxLines151483876__root{overflow:hidden}.MaxLines151483876__root.MaxLines151483876--clamp{-webkit-box-orient:vertical;display:-webkit-box}.MultiBulkActionToolbar4221628677__root{min-width:0}.MultiBulkActionToolbar4221628677__leftGroupWrapper{padding-right:12px;min-width:0;flex-wrap:nowrap;align-items:center}.MultiBulkActionToolbar4221628677__selectedCountItem{min-width:0;flex-shrink:1;white-space:nowrap;overflow:hidden}.MultiBulkActionToolbar4221628677__selectedCountText{display:block;width:100%}.NestedTablePlaceholderStatesRow3293222877__root td{padding:0!important;width:100%}.NestedTableRow450000607__firstLevel td{padding-top:18px!important;padding-bottom:18px!important}.NestedTableRow450000607__root:hover{background-color:#e7f0ff!important}.NestedTableRow450000607__root.NestedTableRow450000607--expandable{cursor:pointer}.NestedTableRow450000607__placeholder td{padding:0!important;width:100%}.NestedTableRow450000607__root:hover td:first-of-type::before,.NestedTableRow450000607__parentHovered td:first-of-type::before{content:"";position:absolute;top:0;bottom:0;left:0;width:2px;background-color:#5999ff}.MultipleDragOverlayEffect685663535__root{position:absolute;transform:translate(6px,6px);background-color:#fff;box-shadow:0 2px 4px 0 rgba(0,6,36,.12),0 0 6px 0 rgba(0,6,36,.12)}.NestedTableDragAndDropRow3264272890__root.NestedTableDragAndDropRow3264272890--draggingInto td{background-color:#e7f0ff!important}.PickerContent1259693087__root{display:flex}.PickerContentAdditionalStep2412951593__titles{display:flex;justify-content:center;flex:1 1 auto;overflow:hidden;flex-direction:column}.PickerContentAdditionalStep2412951593__suffix{display:flex;align-items:center;flex:0 0 auto;overflow:hidden}.PickerTableListItem3726368260__root{box-sizing:border-box}.ScrollableContent2391222633__root.ScrollableContent2391222633--overflowY{overflow-y:auto}.ScrollableContent2391222633__root.ScrollableContent2391222633--overflowX{overflow-x:auto}.ScrollableContent2391222633__root.ScrollableContent2391222633--smooth{scroll-behavior:smooth}.SetupWidget3513437405__row{display:flex;flex-direction:column;overflow:clip;--wds-clickable-card-outline-border-color:var(--wds-color-border-dark-secondary, var(--wsr-color-D60, #DFE5EB))}.SetupWidget3513437405__row.SetupWidget3513437405--focused{--wds-clickable-card-outline-border-color:var(--wds-color-border-standard-primary-active, var(--wsr-color-B10, #116DFF))}.SetupWidget3513437405__row.SetupWidget3513437405--focused.SetupWidget3513437405--withBackground{--wds-color-fill-surface-default:var(--wds-color-fill-standard-tertiary-hover, var(--wsr-color-B60, #F4F7FF))}.SetupWidget3513437405__completedCta{opacity:0;transition:opacity .25s ease-in-out}.SetupWidget3513437405__row:hover .SetupWidget3513437405__completedCta,.SetupWidget3513437405__row:focus-within .SetupWidget3513437405__completedCta{opacity:1}.SetupWidget3513437405__card{display:block;width:100%;border:0;border-radius:var(--wds-border-radius-400, 8px);background-color:var(--wds-color-fill-standard-tertiary, var(--wsr-color-D80, #FFFFFF));box-shadow:0 0 6px 0 rgba(0,6,36,.1),0 2px 4px 0 rgba(0,6,36,.05);overflow:clip;box-sizing:border-box;text-align:start;font:inherit;color:inherit;padding:0;margin:0}.SetupWidget3513437405__card.SetupWidget3513437405--primary{background-color:var(--wds-color-fill-standard-tertiary-hover, var(--wsr-color-B60, #F4F7FF))}.SetupWidget3513437405__card.SetupWidget3513437405--clickable{cursor:pointer}.SetupWidget3513437405__stepIcon{display:flex;align-items:center;flex-shrink:0;height:24px}.SetupWidget3513437405__chevron{display:flex;flex-shrink:0;color:var(--wds-color-text-standard-primary, var(--wsr-color-D10, #000624))}.SetupWidget3513437405__chevronDisabled{display:flex;flex-shrink:0;color:var(--wds-color-text-disabled, var(--wsr-color-D10-30, rgba(0, 6, 36, 0.30)))}.SetupWidget3513437405__inProgressLabel{--wds-color-text-standard-primary:var(--wds-color-text-urgent, var(--wsr-color-O10, #FE620F));text-transform:uppercase}.SkeletonCard4025769169__headerLoading{display:block!important}.SlidingModal3173682474__root{transition:transform .4s ease 0s;position:fixed;z-index:1}.SlidingModal3173682474__root.SlidingModal3173682474--overlay{transition:transform 0s ease 0s}.SlidingModal3173682474__root.SlidingModal3173682474---appendTo-6-parent{position:absolute}.SlidingModal3173682474__root.SlidingModal3173682474--inset{border-radius:var(--wds-side-panel-standard-corner-radius, 0);will-change:transform}.SlidingModal3173682474__root:not(.SlidingModal3173682474--exited){box-shadow:0 3px 24px 0 rgba(22,45,61,.18),0 8px 8px 0 rgba(22,45,61,.12)}.AddFieldColumnHeader1843435099__root{display:inline-flex;align-items:center;width:100%;min-width:0}.AddFieldColumnHeader1843435099__title{display:flex;width:100%;min-width:0}.AddFieldColumnHeader1843435099__hoverBridge{display:inline-block;padding:4px 13px 4px 4px;background:0 0}[data-content-element^=popover-content-add-field-popover-][data-hook=popover-content][class]{background:0 0;border:0;box-shadow:none;border-radius:0;padding:0}.TabsFilter1304651662__root .TabsFilter1304651662__title{color:var(--wds-tabs-label-fill, var(--wds-color-text-standard-primary, var(--wsr-color-D10, #000624)))}.TabsFilter1304651662__root.TabsFilter1304651662--selected .TabsFilter1304651662__title,.TabsFilter1304651662__root:hover .TabsFilter1304651662__title{color:var(--wds-tabs-label-fill-active, var(--wsr-color-B10, #116DFF))}.ManageTagsModal2997455488__root{display:flex}.ManageTagsModal2997455488__root.ManageTagsModal2997455488--harmony .wds_1_301_0_TableListItem__root{padding-inline-end:16px}.ManageTagsModal2997455488__root.ManageTagsModal2997455488--harmony .wds_1_301_0_TableListItem__optionsContainer{align-items:start}.ToolbarItem1286156115__root{min-width:0}.ToolbarItemBox803056766__root{min-width:0}.ToolbarItemBox803056766__root.ToolbarItemBox803056766--removeStartPadding{margin-left:-24px}.ToolbarItemBox803056766__root.ToolbarItemBox803056766--expandable{flex:1 0}.common782348121__column{display:flex;flex-direction:column}.common782348121__fullHeight{height:100%;min-height:0}.CollectionPageHeader2402203768__root:not(.CollectionPageHeader2402203768--mobile){gap:12px}.CollectionPageHeader2402203768__root.CollectionPageHeader2402203768--mobile{flex-direction:column;padding-right:18px;padding-left:18px}.CollectionPageHeader2402203768__root.CollectionPageHeader2402203768--mobile>*{margin-left:0;margin-top:6px!important;height:auto}.FormPageHeader3926371897__root.FormPageHeader3926371897--mobile{flex-direction:column;padding-right:18px;padding-left:18px}.FormPageHeader3926371897__root.FormPageHeader3926371897--mobile>*{margin-left:0;margin-top:6px!important;height:auto}
3
+ )}.Edit619452332__overlay{position:absolute;inset:2px;pointer-events:none;background:var(--wds-color-background-elevation-base, #fff)}.Edit208230424__urlInput{width:100%;margin-left:-1px}.View420760888__textView{width:100%;padding:9px 12px;display:flex;align-items:center;justify-content:space-between}.View420760888__urlText{flex:1;min-width:0}.View420760888__suffix{flex-shrink:0;margin-left:10px}.View420760888__textView.View420760888--suffixOnHover:not(:hover) .View420760888__suffix{display:none}.EmptyStateBase7412392__root{min-height:230px;align-items:center}.EntityPagePlain1660982067__root.EntityPagePlain1660982067--mobile{--wds-page-header-padding-horizontal:0}.Fade3709584242__root{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);opacity:1}.Fade3709584242__root.Fade3709584242--exit{opacity:0}.Heading386952903__root{visibility:visible}.Heading386952903__root.Heading386952903--appearanceH2{font-size:28px!important;line-height:36px!important}.ImportStepUpload1582844632__fileUpload{width:100%}.InputOverflow212485012__root.InputOverflow212485012--selected:not(.InputOverflow212485012--focused) input::placeholder{color:#000624}@keyframes LoadingRow3889172829__gradientSwoosh{0%{background-position:50% 50%;background-size:150% 125%}15%{background-position:75% 40%;background-size:130% 115%}30%{background-position:50% 50%;background-size:120% 135%}60%{background-position:30% 50%;background-size:120% 135%}80%{background-position:10% 30%;background-size:130% 155%}to{background-position:40% 45%;background-size:125% 135%}}.LoadingRow3889172829__root{background-image:linear-gradient(60deg,rgba(255,255,255,.15)0,rgba(255,255,255,.15) 50%,rgba(95,242,174,.15) 100%),linear-gradient(284.81deg,#fff 67.18%,#91bbff 158.87%),linear-gradient(29deg,rgba(145,187,255,.6)0,#fff 40%,rgba(95,242,174,.6) 100%);height:100%;background-size:150% 125%;background-repeat:no-repeat;animation:LoadingRow3889172829__gradientSwoosh 2s ease-out infinite alternate}.MaxHeightText883485478__root{opacity:1}.MaxHeightText883485478__root.MaxHeightText883485478--height24{line-height:24px}.MaxLines407219590__root{overflow:hidden}.MaxLines407219590__root.MaxLines407219590--clamp{-webkit-box-orient:vertical;display:-webkit-box}.MultiBulkActionToolbar302415624__root{min-width:0}.MultiBulkActionToolbar302415624__leftGroupWrapper{padding-right:12px;min-width:0;flex-wrap:nowrap;align-items:center}.MultiBulkActionToolbar302415624__selectedCountItem{min-width:0;flex-shrink:1;white-space:nowrap;overflow:hidden}.MultiBulkActionToolbar302415624__selectedCountText{display:block;width:100%}.NestedTablePlaceholderStatesRow1482393073__root td{padding:0!important;width:100%}.NestedTableRow397408975__firstLevel td{padding-top:18px!important;padding-bottom:18px!important}.NestedTableRow397408975__root:hover{background-color:#e7f0ff!important}.NestedTableRow397408975__root.NestedTableRow397408975--expandable{cursor:pointer}.NestedTableRow397408975__placeholder td{padding:0!important;width:100%}.NestedTableRow397408975__root:hover td:first-of-type::before,.NestedTableRow397408975__parentHovered td:first-of-type::before{content:"";position:absolute;top:0;bottom:0;left:0;width:2px;background-color:#5999ff}.MultipleDragOverlayEffect1122287837__root{position:absolute;transform:translate(6px,6px);background-color:#fff;box-shadow:0 2px 4px 0 rgba(0,6,36,.12),0 0 6px 0 rgba(0,6,36,.12)}.NestedTableDragAndDropRow3935211421__root.NestedTableDragAndDropRow3935211421--draggingInto td{background-color:#e7f0ff!important}.PickerContent4235159373__root{display:flex}.PickerContentAdditionalStep364555487__titles{display:flex;justify-content:center;flex:1 1 auto;overflow:hidden;flex-direction:column}.PickerContentAdditionalStep364555487__suffix{display:flex;align-items:center;flex:0 0 auto;overflow:hidden}.PickerTableListItem3124724981__root{box-sizing:border-box}.ScrollableContent2293720042__root.ScrollableContent2293720042--overflowY{overflow-y:auto}.ScrollableContent2293720042__root.ScrollableContent2293720042--overflowX{overflow-x:auto}.ScrollableContent2293720042__root.ScrollableContent2293720042--smooth{scroll-behavior:smooth}.SetupWidget1751783782__row{display:flex;flex-direction:column;overflow:clip;--wds-clickable-card-outline-border-color:var(--wds-color-border-dark-secondary, var(--wsr-color-D60, #DFE5EB))}.SetupWidget1751783782__row.SetupWidget1751783782--focused{--wds-clickable-card-outline-border-color:var(--wds-color-border-standard-primary-active, var(--wsr-color-B10, #116DFF))}.SetupWidget1751783782__row.SetupWidget1751783782--focused.SetupWidget1751783782--withBackground{--wds-color-fill-surface-default:var(--wds-color-fill-standard-tertiary-hover, var(--wsr-color-B60, #F4F7FF))}.SetupWidget1751783782__completedCta,.SetupWidget1751783782__secondaryCta{opacity:0;transition:opacity .25s ease-in-out}@media (hover:hover){.SetupWidget1751783782__row:hover .SetupWidget1751783782__completedCta,.SetupWidget1751783782__row:hover .SetupWidget1751783782__secondaryCta{opacity:1}}.SetupWidget1751783782__row:focus-within .SetupWidget1751783782__completedCta,.SetupWidget1751783782__row:focus-within .SetupWidget1751783782__secondaryCta,.SetupWidget1751783782__secondaryCta:focus-within{opacity:1}.SetupWidget1751783782__card{display:block;width:100%;border:0;border-radius:var(--wds-border-radius-400, 8px);background-color:var(--wds-color-fill-standard-tertiary, var(--wsr-color-D80, #FFFFFF));box-shadow:0 0 6px 0 rgba(0,6,36,.1),0 2px 4px 0 rgba(0,6,36,.05);overflow:clip;box-sizing:border-box;text-align:start;font:inherit;color:inherit;padding:0;margin:0}.SetupWidget1751783782__card.SetupWidget1751783782--primary{background-color:var(--wds-color-fill-standard-tertiary-hover, var(--wsr-color-B60, #F4F7FF))}.SetupWidget1751783782__card.SetupWidget1751783782--clickable{cursor:pointer}.SetupWidget1751783782__stepIcon{display:flex;align-items:center;flex-shrink:0;height:24px}.SetupWidget1751783782__chevron{display:flex;flex-shrink:0;color:var(--wds-color-text-standard-primary, var(--wsr-color-D10, #000624))}.SetupWidget1751783782__chevronDisabled{display:flex;flex-shrink:0;color:var(--wds-color-text-disabled, var(--wsr-color-D10-30, rgba(0, 6, 36, 0.30)))}.SetupWidget1751783782__inProgressLabel{--wds-color-text-standard-primary:var(--wds-color-text-urgent, var(--wsr-color-O10, #FE620F));text-transform:uppercase}.SkeletonCard3743223440__headerLoading{display:block!important}.SlidingModal2468710087__root{transition:transform .4s ease 0s;position:fixed;z-index:1}.SlidingModal2468710087__root.SlidingModal2468710087--overlay{transition:transform 0s ease 0s}.SlidingModal2468710087__root.SlidingModal2468710087---appendTo-6-parent{position:absolute}.SlidingModal2468710087__root.SlidingModal2468710087--inset{border-radius:var(--wds-side-panel-standard-corner-radius, 0);will-change:transform}.SlidingModal2468710087__root:not(.SlidingModal2468710087--exited){box-shadow:0 3px 24px 0 rgba(22,45,61,.18),0 8px 8px 0 rgba(22,45,61,.12)}.AddFieldColumnHeader3783145171__root{display:inline-flex;align-items:center;width:100%;min-width:0}.AddFieldColumnHeader3783145171__title{display:flex;width:100%;min-width:0}.AddFieldColumnHeader3783145171__hoverBridge{display:inline-block;padding:4px 13px 4px 4px;background:0 0}[data-content-element^=popover-content-add-field-popover-][data-hook=popover-content][class]{background:0 0;border:0;box-shadow:none;border-radius:0;padding:0}.TabsFilter924897__root .TabsFilter924897__title{color:var(--wds-tabs-label-fill, var(--wds-color-text-standard-primary, var(--wsr-color-D10, #000624)))}.TabsFilter924897__root.TabsFilter924897--selected .TabsFilter924897__title,.TabsFilter924897__root:hover .TabsFilter924897__title{color:var(--wds-tabs-label-fill-active, var(--wsr-color-B10, #116DFF))}.ManageTagsModal2867990103__root{display:flex}.ManageTagsModal2867990103__root.ManageTagsModal2867990103--harmony .wds_1_301_0_TableListItem__root{padding-inline-end:16px}.ManageTagsModal2867990103__root.ManageTagsModal2867990103--harmony .wds_1_301_0_TableListItem__optionsContainer{align-items:start}.ToolbarItem746777390__root{min-width:0}.ToolbarItemBox3698378441__root{min-width:0}.ToolbarItemBox3698378441__root.ToolbarItemBox3698378441--removeStartPadding{margin-left:-24px}.ToolbarItemBox3698378441__root.ToolbarItemBox3698378441--expandable{flex:1 0}.common25472537__column{display:flex;flex-direction:column}.common25472537__fullHeight{height:100%;min-height:0}.CollectionPageHeader441437568__root:not(.CollectionPageHeader441437568--mobile){gap:12px}.CollectionPageHeader441437568__root.CollectionPageHeader441437568--mobile{flex-direction:column;padding-right:18px;padding-left:18px}.CollectionPageHeader441437568__root.CollectionPageHeader441437568--mobile>*{margin-left:0;margin-top:6px!important;height:auto}.FormPageHeader1215860402__root.FormPageHeader1215860402--mobile{flex-direction:column;padding-right:18px;padding-left:18px}.FormPageHeader1215860402__root.FormPageHeader1215860402--mobile>*{margin-left:0;margin-top:6px!important;height:auto}
@@ -2,5 +2,5 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports.version = void 0;
5
- const version = exports.version = 'patterns@1.444.0';
5
+ const version = exports.version = 'patterns@1.445.0';
6
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["version","exports"],"sources":["../../src/version.ts"],"sourcesContent":["export const version = 'patterns@1.444.0';\n"],"mappings":";;;;AAAO,MAAMA,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,kBAAkB","ignoreList":[]}
1
+ {"version":3,"names":["version","exports"],"sources":["../../src/version.ts"],"sourcesContent":["export const version = 'patterns@1.445.0';\n"],"mappings":";;;;AAAO,MAAMA,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,kBAAkB","ignoreList":[]}
@@ -1010,7 +1010,7 @@ function UseExternalDataSource() {
1010
1010
  | `dataHook` | `string` | No | - | Applies a data-hook HTML attribute to be used in the tests |
1011
1011
  | `search` | `boolean \| FilterElement<any> \| CollectionSearchElement` | No | `true` | Displays a search input on the right side of the table toolbar.<br> <br> Accepts a boolean or a custom React element as a parameter. When passing `false`, no search input is displayed. |
1012
1012
  | `title` | `ToolbarTitleElement` | No | - | Displays a title at the left of a toolbar. Accepts a [ToolbarTitle](./?path=/story/features-display-toolbar--toolbartitle) component. |
1013
- | `skin` | `"standard" \| "neutral"` | No | - | @deprecated The table skin is fixed to `"neutral"` and any value passed here is ignored. This prop will be removed in a future release. |
1013
+ | `skin` | `"standard" \| "neutral"` | No | - | @deprecated The table skin is determined internally and any value passed here is ignored. This prop will be removed in a future release. |
1014
1014
  | `errorState` | `((err: unknown, params: { isOnline: boolean; retry: () => void; }) => ReactElement<any, string \| JSXElementConstructor<any>>)` | No | - | A render function to be rendered when there's an error fetching data from the server.<br> The function accepts the following parameters <br> * `err`: The error thrown by the [fetchData](./?path=/story/common-hooks--usecollection) function <br> * `isOnline`: Indicates whether internet connection is available <br> * `retry`: Retry collection fetch on failed response, similar to `collection.retryFetch` <br> Returns [`EmptyState`](https://www.docs.wixdesignsystem.com/?path=/story/components-layout--emptystate) component. |
1015
1015
  | `maxSelection` | `number` | No | - | Limits the amount of rows a visitor can select. |
1016
1016
  | `views` | `CollectionViewsDropdownElement<F>` | No | - | Adds view options to the table headers. Accepts a [Views](./?path=/story/features-display-views--views) component. |
@@ -382,7 +382,7 @@ function WithTags() {
382
382
  | `bulkActionModal` | `MultiCollectionBulkActionModalRenderProps` | No | - | Render a modal to be opened from `bulkActionToolbar`.<br> The function accepts the following parameters * `allSelected`: Indicates whether the "Select All" checkbox is checked * `closeModal`: Closes the a modal |
383
383
  | `search` | `boolean \| FilterElement<any> \| CollectionSearchElement` | No | `true` | Displays a search input on the right side of the table toolbar.<br> <br> Accepts a boolean or a custom React element as a parameter. When passing `false`, no search input is displayed. |
384
384
  | `title` | `ToolbarTitleElement` | No | - | Displays a title at the left of a toolbar. Accepts a [ToolbarTitle](./?path=/story/features-display-toolbar--toolbartitle) component. |
385
- | `skin` | `"standard" \| "neutral"` | No | - | @deprecated The table skin is fixed to `"neutral"` and any value passed here is ignored. This prop will be removed in a future release. |
385
+ | `skin` | `"standard" \| "neutral"` | No | - | @deprecated The table skin is determined internally and any value passed here is ignored. This prop will be removed in a future release. |
386
386
  | `tags` | `TagsElement<T1, Partial<F1 & F2>>` | No | - | Enables tags feature. In this element you can pass the configuration |
387
387
  | `errorState` | `((err: unknown, params: { isOnline: boolean; retry: () => void; }) => ReactElement<any, string \| JSXElementConstructor<any>>)` | No | - | A render function to be rendered when there's an error fetching data from the server.<br> The function accepts the following parameters <br> * `err`: The error thrown by the [fetchData](./?path=/story/common-hooks--usecollection) function <br> * `isOnline`: Indicates whether internet connection is available <br> * `retry`: Retry collection fetch on failed response, similar to `collection.retryFetch` <br> Returns [`EmptyState`](https://www.docs.wixdesignsystem.com/?path=/story/components-layout--emptystate) component. |
388
388
  | `maxSelection` | `number` | No | - | Limits the amount of rows a visitor can select. |
@@ -263,7 +263,7 @@ function TableGridSwitchAdvanceSorting() {
263
263
  | `actionCell` | `ActionCell<T, F>` | No | - | Adds an action on the grid item. For example, a delete button to delete an item. Accepts an [`ActionCellProps`](https://www.docs.wixdesignsystem.com/?path=/story/components-lists-table--tableactioncell) object, or a function that returns an `ActionCellProps` object. |
264
264
  | `renderAddItem` | `(() => ReactElement<AddItemProps, string \| JSXElementConstructor<any>>)` | No | - | A function that renders [`<AddItem>`](https://www.docs.wixdesignsystem.com/?path=/story/components-actions--additem&activeTab=Description&globals=backgrounds.value:!hex(F8F8F8);backgrounds.grid:false) after all cards in a gallery. <br><br> The `<AddItem>` card will not show when filters are applied unless the filter is defined with the persistent option. |
265
265
  | `imagePlacement` | `"top" \| "side"` | No | - | Sets placement of a background image. |
266
- | `skin` | `"standard" \| "neutral"` | No | - | @deprecated The table skin is fixed to `"neutral"` and any value passed here is ignored. This prop will be removed in a future release. |
266
+ | `skin` | `"standard" \| "neutral"` | No | - | @deprecated The table skin is determined internally and any value passed here is ignored. This prop will be removed in a future release. |
267
267
  | `maxSelection` | `number` | No | - | Limits the amount of rows a visitor can select. |
268
268
  | `columns` | `TableColumn<T>[]` | Yes | - | Defines the columns of the table. Accepts an array of [`TableColumn`](./?path=/story/common-types--tablecolumn) objects. |
269
269
  | `onRowClick` | `((item: T, index: number) => void)` | No | - | A callback method to be called on row click. Signature: `onRowClick(rowData, rowNum)`. To enable hover effect you should set this prop. |
@@ -412,7 +412,7 @@ function WithTags() {
412
412
  | `itemsSectionTitle` | `string` | No | - | Optional custom title for the items section |
413
413
  | `folderActionCell` | `ActionCell<T2, F2>` | No | - | Same as `actionCell`, but for a folder item. |
414
414
  | `renderFolderAddItem` | `(() => ReactElement<AddItemProps, string \| JSXElementConstructor<any>>)` | No | - | Same as `renderAddItem`, but for a folder item. |
415
- | `skin` | `"standard" \| "neutral"` | No | - | @deprecated The table skin is fixed to `"neutral"` and any value passed here is ignored. This prop will be removed in a future release. |
415
+ | `skin` | `"standard" \| "neutral"` | No | - | @deprecated The table skin is determined internally and any value passed here is ignored. This prop will be removed in a future release. |
416
416
  | `bulkActionToolbar` | `MultiCollectionBulkActionToolbarRenderProps` | No | - | A toolbar for performing bulk actions on multiple items. Supported parameters: + `selectedValues`: Selected item values. + `uncheckedValues`: Unselected item values. + `isSelectAll`: [bool] Whether the **Select All** option is selected. + `openModal`: Opens a modal that contains the component from `bulkActionModal` render prop. + `clearSelection`: Clears all selections. Call this after the action on the selected items finishes. + `closeModal`: Closes the modal. + `openConfirmModal`: Opens a `<MessageModalLayout />` to confirm an action to be applied to the selected items. + `query`: [object] Instance of [ComputedQuery](./?path=/story/common-types--computedquery) that represents the query that resulted in an empty state. Representation of the current paging, sorting and filtering applied. Usually for using together with bulk action such as `updateAll` and `deleteAll`. |
417
417
  | `columns` | `TableFoldersColumn<T1, T2>[]` | Yes | - | The same as [Table.columns](./?path=/story/base-components-collections-table-table--table), with the addition of `renderFolder` property. |
418
418
  | `hideBulkSelectionCheckbox` | `boolean` | No | - | Hides bulk selection checkbox in the table titlebar, If the [`MultiBulkActionToolbar`](./?path=/story/features-actions-bulk-actions--multibulkactiontoolbar) feature is enabled, this flag will have no effect. |
@@ -439,6 +439,113 @@ function TabsFilterTotalBadgeExample() {
439
439
  }
440
440
  ```
441
441
 
442
+ ### Disabled tabs
443
+
444
+ This example uses the `` `disabled` prop to make tabs with no items non-interactive.
445
+
446
+ ```tsx
447
+ import { Avatar } from '@wix/design-system';
448
+ import React from 'react';
449
+ import { CollectionPage } from '@wix/patterns/page';
450
+ import {
451
+ Filter,
452
+ Table,
453
+ TabsFilter,
454
+ useTableCollection,
455
+ idNameArrayFilter,
456
+ OffsetQuery,
457
+ } from '@wix/patterns';
458
+ import { contacts } from '@wix/crm';
459
+
460
+ type ContactsFilters = {
461
+ level: Filter<{ id: string; name: string }[]>;
462
+ };
463
+
464
+ function TabsFilterDisabledExample() {
465
+ const levels = [
466
+ { id: 'Beginner', name: 'Beginner' },
467
+ { id: 'Professional', name: 'Professional' },
468
+ { id: 'World Class', name: 'World Class' },
469
+ ];
470
+
471
+ const emptyLevelIds = ['World Class'];
472
+
473
+ const state = useTableCollection<contacts.Contact, ContactsFilters>({
474
+ queryName: 'TabsFilterDisabledExample',
475
+ fetchData: (query: OffsetQuery<ContactsFilters>) => {
476
+ const { limit, offset, search, filters } = query;
477
+
478
+ let queryBuilder = contacts.queryContacts().limit(limit).skip(offset);
479
+
480
+ if (search) {
481
+ queryBuilder = queryBuilder.startsWith('info.name.first', search);
482
+ }
483
+
484
+ if (filters.level) {
485
+ queryBuilder = queryBuilder.in(
486
+ 'info.jobTitle',
487
+ filters.level.map(({ id }) => id),
488
+ );
489
+ }
490
+
491
+ return queryBuilder.find().then(({ items = [], totalCount: total }) => ({
492
+ items,
493
+ total,
494
+ }));
495
+ },
496
+ itemName: (item) => `${item.info?.name?.first} ${item.info?.name?.last}`,
497
+ fetchErrorMessage: ({ err }) => String(err),
498
+ filters: {
499
+ level: idNameArrayFilter(),
500
+ },
501
+ });
502
+
503
+ const collection = state.collection;
504
+
505
+ return (
506
+ <CollectionPage height="400px">
507
+ <CollectionPage.Header title={{ text: 'Contacts' }} />
508
+ <CollectionPage.Content>
509
+ <Table
510
+ state={state}
511
+ tabs={
512
+ <TabsFilter
513
+ filter={collection.filters.level}
514
+ data={levels}
515
+ all="All Levels"
516
+ disabled={(level) => emptyLevelIds.includes(level.id)}
517
+ />
518
+ }
519
+ columns={[
520
+ {
521
+ title: '',
522
+ width: '50px',
523
+ render: (contact) => (
524
+ <Avatar
525
+ name={`${contact.info?.name?.first} ${contact.info?.name?.last}`}
526
+ imgProps={{ src: contact.info?.picture?.image }}
527
+ />
528
+ ),
529
+ },
530
+ {
531
+ title: 'Name',
532
+ width: '250px',
533
+ render: (contact) =>
534
+ `${contact.info?.name?.first} ${contact.info?.name?.last}`,
535
+ },
536
+ {
537
+ title: 'Last Activity',
538
+ render: (contact) =>
539
+ contact.lastActivity?.activityDate?.toLocaleString(),
540
+ },
541
+ ]}
542
+ />
543
+ </CollectionPage.Content>
544
+ </CollectionPage>
545
+ );
546
+ }
547
+ ```
548
+
442
549
  ## API
443
550
 
444
551
  ### Props
@@ -449,6 +556,7 @@ function TabsFilterTotalBadgeExample() {
449
556
  | `filter` | `Filter<V[]>` | Yes | - | Defines the selected filter. <br><br> Must be an [arrayFilter](./?path=/story/features-filter-factories--arrayfilter) object. |
450
557
  | `all` | `string \| false \| null` | No | - | Display name of the tab that indicates that all items are included. <br> Changes the value of `filter` to an empty array. |
451
558
  | `counterBadge` | `((value: V \| null) => TabTotalCounterBadge<V> \| TabTotalParens<V> \| null) \| undefined` | No | - | Renders a counter badge next to the tabs' texts. <br><br> See different examples of this implementation in the [Overview](./?path=/story/features-filter-components--tabsfilter) tab. |
559
+ | `disabled` | `((value: V) => boolean)` | No | - | Returns whether a tab should be disabled. <br><br> Disabled tabs are non-interactive and rendered in a visually muted state. <br><br> The result is memoized. pass a new function whenever its result may change. <br> Requires `@wix/design-system` version >= 1.310.0 |
452
560
  | `type` | `"uniformFull"` | No | - | Tabs layout type. <br><br> If this prop is omitted, the width depends on the label width. The total width of all the tabs cannot exceed 80% of the toolbar. <br><br> Supported values:<br> - `uniformFull`: Tabs are spread out uniformly. |
453
561
  | `mobilePopoverProps` | `PopoverCommonProps` | No | - | Custom popover props for the mobile dropdown menu. On mobile devices, tabs are displayed as a dropdown menu. |
454
562