@wix/patterns 1.2.0 → 1.4.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 (492) hide show
  1. package/dist/cjs/components/ActionCell/ActionCell.js.map +1 -1
  2. package/dist/cjs/components/AppliedFiltersTagList/AppliedFiltersTagList.js +6 -4
  3. package/dist/cjs/components/AppliedFiltersTagList/AppliedFiltersTagList.js.map +1 -1
  4. package/dist/cjs/components/AppliedFiltersTagList/AppliedFiltersTagListState.js +73 -33
  5. package/dist/cjs/components/AppliedFiltersTagList/AppliedFiltersTagListState.js.map +1 -1
  6. package/dist/cjs/components/AppliedFiltersTagList/FilterTagContent.js +27 -0
  7. package/dist/cjs/components/AppliedFiltersTagList/FilterTagContent.js.map +1 -0
  8. package/dist/cjs/components/AutoCompleteFilter/AutoCompleteFilter.js.map +1 -1
  9. package/dist/cjs/components/Collapse/Collapse.st.css.js +3 -3
  10. package/dist/cjs/components/Collapse/Collapse.st.css.js.map +1 -1
  11. package/dist/cjs/components/CollectionTable/CollectionTable.js +10 -10
  12. package/dist/cjs/components/CollectionTable/CollectionTable.js.map +1 -1
  13. package/dist/cjs/components/CollectionTable/CollectionTable.uni.driver.js +18 -45
  14. package/dist/cjs/components/CollectionTable/CollectionTable.uni.driver.js.map +1 -1
  15. package/dist/cjs/components/CollectionTable/CollectionTableBaseCommonProps.js.map +1 -1
  16. package/dist/cjs/components/CollectionTable/CollectionTableWSRTable.js +22 -12
  17. package/dist/cjs/components/CollectionTable/CollectionTableWSRTable.js.map +1 -1
  18. package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js +5 -5
  19. package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js.map +1 -1
  20. package/dist/cjs/components/CollectionToolbar/CollectionToolbar.uni.driver.js +2 -8
  21. package/dist/cjs/components/CollectionToolbar/CollectionToolbar.uni.driver.js.map +1 -1
  22. package/dist/cjs/components/CollectionToolbar/PrimaryActionButton.js.map +1 -1
  23. package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +3 -3
  24. package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js.map +1 -1
  25. package/dist/cjs/components/CollectionToolbarFilters/CollectionToolbarFilters.js +14 -9
  26. package/dist/cjs/components/CollectionToolbarFilters/CollectionToolbarFilters.js.map +1 -1
  27. package/dist/cjs/components/CollectionToolbars/CollectionToolbars.js +10 -34
  28. package/dist/cjs/components/CollectionToolbars/CollectionToolbars.js.map +1 -1
  29. package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
  30. package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js.map +1 -1
  31. package/dist/cjs/components/CollectionViewsDropdown/CollectionViewsDropdown.js +11 -28
  32. package/dist/cjs/components/CollectionViewsDropdown/CollectionViewsDropdown.js.map +1 -1
  33. package/dist/cjs/components/CollectionViewsDropdown/CollectionViewsDropdown.uni.driver.js +78 -1
  34. package/dist/cjs/components/CollectionViewsDropdown/CollectionViewsDropdown.uni.driver.js.map +1 -1
  35. package/dist/cjs/components/CollectionViewsDropdown/CollectionViewsDropdownBase.js +35 -0
  36. package/dist/cjs/components/CollectionViewsDropdown/CollectionViewsDropdownBase.js.map +1 -0
  37. package/dist/cjs/components/CollectionViewsDropdown/CollectionViewsDropdownStandalone.js +27 -0
  38. package/dist/cjs/components/CollectionViewsDropdown/CollectionViewsDropdownStandalone.js.map +1 -0
  39. package/dist/cjs/components/CollectionViewsDropdown/ManageViewPopover.js +3 -4
  40. package/dist/cjs/components/CollectionViewsDropdown/ManageViewPopover.js.map +1 -1
  41. package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.js +14 -12
  42. package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.js.map +1 -1
  43. package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
  44. package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js.map +1 -1
  45. package/dist/cjs/components/CollectionViewsDropdown/index.js +6 -0
  46. package/dist/cjs/components/CollectionViewsDropdown/index.js.map +1 -1
  47. package/dist/cjs/components/CtaProps.js +4 -0
  48. package/dist/cjs/components/CtaProps.js.map +1 -0
  49. package/dist/cjs/components/CustomColumns/CustomColumns.js.map +1 -1
  50. package/dist/cjs/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.st.css.js +3 -3
  51. package/dist/cjs/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.st.css.js.map +1 -1
  52. package/dist/cjs/components/DataExtension/CollectionDataExtensionState.js +3 -1
  53. package/dist/cjs/components/DataExtension/CollectionDataExtensionState.js.map +1 -1
  54. package/dist/cjs/components/DragHandle/DragHandle.st.css.js +2 -2
  55. package/dist/cjs/components/DragHandle/DragHandle.st.css.js.map +1 -1
  56. package/dist/cjs/components/EmptyState/CollectionEmptyState.js +3 -3
  57. package/dist/cjs/components/EmptyState/CollectionEmptyState.js.map +1 -1
  58. package/dist/cjs/components/EmptyState/CollectionNoResultsState.js +7 -7
  59. package/dist/cjs/components/EmptyState/CollectionNoResultsState.js.map +1 -1
  60. package/dist/cjs/components/EmptyState/CollectionPremiumEmptyState.js +3 -3
  61. package/dist/cjs/components/EmptyState/CollectionPremiumEmptyState.js.map +1 -1
  62. package/dist/cjs/components/EmptyState/EmptyStateBase.js +4 -3
  63. package/dist/cjs/components/EmptyState/EmptyStateBase.js.map +1 -1
  64. package/dist/cjs/components/Fade/Fade.st.css.js +2 -2
  65. package/dist/cjs/components/Fade/Fade.st.css.js.map +1 -1
  66. package/dist/cjs/components/Grid/Grid.js +30 -57
  67. package/dist/cjs/components/Grid/Grid.js.map +1 -1
  68. package/dist/cjs/components/Grid/Grid.uni.driver.js +6 -1
  69. package/dist/cjs/components/Grid/Grid.uni.driver.js.map +1 -1
  70. package/dist/cjs/components/Grid/GridContent.js +84 -12
  71. package/dist/cjs/components/Grid/GridContent.js.map +1 -1
  72. package/dist/cjs/components/Grid/GridFolders.js +19 -12
  73. package/dist/cjs/components/Grid/GridFolders.js.map +1 -1
  74. package/dist/cjs/components/Grid/GridItemBaseProps.js.map +1 -1
  75. package/dist/cjs/components/Grid/GridPlaceholderStates.js +1 -1
  76. package/dist/cjs/components/Grid/GridPlaceholderStates.js.map +1 -1
  77. package/dist/cjs/components/Grid/{useGridSyncProps.js → useGridBaseSyncProps.js} +10 -14
  78. package/dist/cjs/components/Grid/useGridBaseSyncProps.js.map +1 -0
  79. package/dist/cjs/components/Grid/useRenderItem.js +1 -1
  80. package/dist/cjs/components/Grid/useRenderItem.js.map +1 -1
  81. package/dist/cjs/components/GridSections/GridSectionAndRepeater.js +55 -0
  82. package/dist/cjs/components/GridSections/GridSectionAndRepeater.js.map +1 -0
  83. package/dist/cjs/components/GridSections/GridSectionHeader.js +72 -0
  84. package/dist/cjs/components/GridSections/GridSectionHeader.js.map +1 -0
  85. package/dist/cjs/components/GridSections/GridSectionHeader.uni.driver.js +12 -0
  86. package/dist/cjs/components/GridSections/GridSectionHeader.uni.driver.js.map +1 -0
  87. package/dist/cjs/components/GridSections/GridSectionHeaderActionBar.js +36 -0
  88. package/dist/cjs/components/GridSections/GridSectionHeaderActionBar.js.map +1 -0
  89. package/dist/cjs/components/GridSections/GridSectionsContent.js +67 -0
  90. package/dist/cjs/components/GridSections/GridSectionsContent.js.map +1 -0
  91. package/dist/cjs/components/GridSections/GridSectionsState.js +47 -0
  92. package/dist/cjs/components/GridSections/GridSectionsState.js.map +1 -0
  93. package/dist/cjs/components/Heading/Heading.st.css.js +2 -2
  94. package/dist/cjs/components/Heading/Heading.st.css.js.map +1 -1
  95. package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js +2 -2
  96. package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js.map +1 -1
  97. package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
  98. package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
  99. package/dist/cjs/components/MaxLines/MaxLines.st.css.js +2 -2
  100. package/dist/cjs/components/MaxLines/MaxLines.st.css.js.map +1 -1
  101. package/dist/cjs/components/MultiBulkActionButton/MultiBulkActionSubItemProps.js.map +1 -1
  102. package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.js.map +1 -1
  103. package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
  104. package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js.map +1 -1
  105. package/dist/cjs/components/MultiInlineCheckboxFilter/MultiInlineCheckboxFilter.js +1 -1
  106. package/dist/cjs/components/MultiInlineCheckboxFilter/MultiInlineCheckboxFilter.js.map +1 -1
  107. package/dist/cjs/components/MultiSelectCollectionFilter/MultiSelectCollectionFilter.js +1 -1
  108. package/dist/cjs/components/MultiSelectCollectionFilter/MultiSelectCollectionFilter.js.map +1 -1
  109. package/dist/cjs/components/NestedTable/NestedTable.js +3 -3
  110. package/dist/cjs/components/NestedTable/NestedTable.js.map +1 -1
  111. package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js +5 -5
  112. package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js.map +1 -1
  113. package/dist/cjs/components/PickerContent/PickerContent.st.css.js +2 -2
  114. package/dist/cjs/components/PickerContent/PickerContent.st.css.js.map +1 -1
  115. package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js +4 -4
  116. package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
  117. package/dist/cjs/components/PickerStandaloneLayout/PickerStandaloneLayoutFooter.js.map +1 -1
  118. package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
  119. package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js.map +1 -1
  120. package/dist/cjs/components/RadioGroupFilter/RadioGroupFilter.js +4 -4
  121. package/dist/cjs/components/RadioGroupFilter/RadioGroupFilter.js.map +1 -1
  122. package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
  123. package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js.map +1 -1
  124. package/dist/cjs/components/SingleSelectFilter/SingleSelectFilter.js.map +1 -1
  125. package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js +3 -3
  126. package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js.map +1 -1
  127. package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js +2 -2
  128. package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js.map +1 -1
  129. package/dist/cjs/components/SummaryBar/SummaryBar.js +23 -23
  130. package/dist/cjs/components/SummaryBar/SummaryBar.js.map +1 -1
  131. package/dist/cjs/components/Table/Table.js.map +1 -1
  132. package/dist/cjs/components/Table/TableVirtual.st.css.js +3 -3
  133. package/dist/cjs/components/Table/TableVirtual.st.css.js.map +1 -1
  134. package/dist/cjs/components/TableFolders/TableFoldersContent.js.map +1 -1
  135. package/dist/cjs/components/TableGridSwitch/TableGridSwitch.js.map +1 -1
  136. package/dist/cjs/components/TabsFilter/TabsFilter.js +7 -7
  137. package/dist/cjs/components/TabsFilter/TabsFilter.js.map +1 -1
  138. package/dist/cjs/components/TabsFilter/TabsFilter.st.css.js +3 -3
  139. package/dist/cjs/components/TabsFilter/TabsFilter.st.css.js.map +1 -1
  140. package/dist/cjs/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
  141. package/dist/cjs/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js.map +1 -1
  142. package/dist/cjs/components/ToolbarCollection/ToolbarCollection.js +3 -3
  143. package/dist/cjs/components/ToolbarCollection/ToolbarCollection.js.map +1 -1
  144. package/dist/cjs/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
  145. package/dist/cjs/components/ToolbarItemBox/ToolbarItemBox.st.css.js.map +1 -1
  146. package/dist/cjs/components/ToolbarTitle/ToolbarTitle.js +8 -8
  147. package/dist/cjs/components/ToolbarTitle/ToolbarTitle.js.map +1 -1
  148. package/dist/cjs/components/common.st.css.js +4 -4
  149. package/dist/cjs/components/common.st.css.js.map +1 -1
  150. package/dist/cjs/giza/buildWixPatternsEssentials.js +1 -0
  151. package/dist/cjs/giza/buildWixPatternsEssentials.js.map +1 -1
  152. package/dist/cjs/hooks/useCollectionFilterInitialFetchTiming.js.map +1 -1
  153. package/dist/cjs/hooks/usePickerModal/UsePickerModalParamsBase.js.map +1 -1
  154. package/dist/cjs/index.js +9 -1
  155. package/dist/cjs/index.js.map +1 -1
  156. package/dist/cjs/model/filterProps.js.map +1 -1
  157. package/dist/cjs/state/EntityPage/EntityPageState.js +3 -1
  158. package/dist/cjs/state/EntityPage/EntityPageState.js.map +1 -1
  159. package/dist/cjs/state/EntityPage/EntityPageStateBIReporter.js +21 -1
  160. package/dist/cjs/state/EntityPage/EntityPageStateBIReporter.js.map +1 -1
  161. package/dist/cjs/state/GridBaseState.js +14 -6
  162. package/dist/cjs/state/GridBaseState.js.map +1 -1
  163. package/dist/cjs/state/GridState.js +2 -9
  164. package/dist/cjs/state/GridState.js.map +1 -1
  165. package/dist/cjs/state/NestedTableState/NestedTableState.js.map +1 -1
  166. package/dist/cjs/state/TagsBulkAssignPopoverState.js +1 -0
  167. package/dist/cjs/state/TagsBulkAssignPopoverState.js.map +1 -1
  168. package/dist/cjs/state/ToolbarCollectionState.js +7 -6
  169. package/dist/cjs/state/ToolbarCollectionState.js.map +1 -1
  170. package/dist/cjs/state/simplifyExtendedColumns.js +4 -3
  171. package/dist/cjs/state/simplifyExtendedColumns.js.map +1 -1
  172. package/dist/cjs/styles.global.css +1 -1
  173. package/dist/cjs/version.js +1 -1
  174. package/dist/cjs/version.js.map +1 -1
  175. package/dist/esm/components/AppliedFiltersTagList/AppliedFiltersTagList.js +9 -5
  176. package/dist/esm/components/AppliedFiltersTagList/AppliedFiltersTagList.js.map +1 -1
  177. package/dist/esm/components/AppliedFiltersTagList/AppliedFiltersTagListState.js +49 -21
  178. package/dist/esm/components/AppliedFiltersTagList/AppliedFiltersTagListState.js.map +1 -1
  179. package/dist/esm/components/AppliedFiltersTagList/FilterTagContent.js +9 -0
  180. package/dist/esm/components/AppliedFiltersTagList/FilterTagContent.js.map +1 -0
  181. package/dist/esm/components/Collapse/Collapse.st.css.js +2 -2
  182. package/dist/esm/components/CollectionTable/CollectionTable.js.map +1 -1
  183. package/dist/esm/components/CollectionTable/CollectionTable.uni.driver.js +18 -45
  184. package/dist/esm/components/CollectionTable/CollectionTable.uni.driver.js.map +1 -1
  185. package/dist/esm/components/CollectionTable/CollectionTableWSRTable.js +9 -4
  186. package/dist/esm/components/CollectionTable/CollectionTableWSRTable.js.map +1 -1
  187. package/dist/esm/components/CollectionToolbar/CollectionToolbar.st.css.js +2 -2
  188. package/dist/esm/components/CollectionToolbar/CollectionToolbar.st.css.js.map +1 -1
  189. package/dist/esm/components/CollectionToolbar/CollectionToolbar.uni.driver.js +1 -9
  190. package/dist/esm/components/CollectionToolbar/CollectionToolbar.uni.driver.js.map +1 -1
  191. package/dist/esm/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +2 -2
  192. package/dist/esm/components/CollectionToolbarFilters/CollectionToolbarFilters.js +8 -3
  193. package/dist/esm/components/CollectionToolbarFilters/CollectionToolbarFilters.js.map +1 -1
  194. package/dist/esm/components/CollectionToolbars/CollectionToolbars.js +1 -6
  195. package/dist/esm/components/CollectionToolbars/CollectionToolbars.js.map +1 -1
  196. package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
  197. package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js.map +1 -1
  198. package/dist/esm/components/CollectionViewsDropdown/CollectionViewsDropdown.js +4 -14
  199. package/dist/esm/components/CollectionViewsDropdown/CollectionViewsDropdown.js.map +1 -1
  200. package/dist/esm/components/CollectionViewsDropdown/CollectionViewsDropdown.uni.driver.js +78 -1
  201. package/dist/esm/components/CollectionViewsDropdown/CollectionViewsDropdown.uni.driver.js.map +1 -1
  202. package/dist/esm/components/CollectionViewsDropdown/CollectionViewsDropdownBase.js +10 -0
  203. package/dist/esm/components/CollectionViewsDropdown/CollectionViewsDropdownBase.js.map +1 -0
  204. package/dist/esm/components/CollectionViewsDropdown/CollectionViewsDropdownStandalone.js +8 -0
  205. package/dist/esm/components/CollectionViewsDropdown/CollectionViewsDropdownStandalone.js.map +1 -0
  206. package/dist/esm/components/CollectionViewsDropdown/ManageViewPopover.js +3 -2
  207. package/dist/esm/components/CollectionViewsDropdown/ManageViewPopover.js.map +1 -1
  208. package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.js +3 -1
  209. package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.js.map +1 -1
  210. package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
  211. package/dist/esm/components/CollectionViewsDropdown/index.js +1 -0
  212. package/dist/esm/components/CollectionViewsDropdown/index.js.map +1 -1
  213. package/dist/esm/components/CtaProps.js +2 -0
  214. package/dist/esm/components/CtaProps.js.map +1 -0
  215. package/dist/esm/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.st.css.js +2 -2
  216. package/dist/esm/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.st.css.js.map +1 -1
  217. package/dist/esm/components/DataExtension/CollectionDataExtensionState.js +3 -1
  218. package/dist/esm/components/DataExtension/CollectionDataExtensionState.js.map +1 -1
  219. package/dist/esm/components/DragHandle/DragHandle.st.css.js +2 -2
  220. package/dist/esm/components/EmptyState/CollectionEmptyState.js.map +1 -1
  221. package/dist/esm/components/EmptyState/CollectionNoResultsState.js.map +1 -1
  222. package/dist/esm/components/EmptyState/CollectionPremiumEmptyState.js.map +1 -1
  223. package/dist/esm/components/EmptyState/EmptyStateBase.js +1 -1
  224. package/dist/esm/components/EmptyState/EmptyStateBase.js.map +1 -1
  225. package/dist/esm/components/Fade/Fade.st.css.js +2 -2
  226. package/dist/esm/components/Fade/Fade.st.css.js.map +1 -1
  227. package/dist/esm/components/Grid/Grid.js +5 -16
  228. package/dist/esm/components/Grid/Grid.js.map +1 -1
  229. package/dist/esm/components/Grid/Grid.uni.driver.js +3 -2
  230. package/dist/esm/components/Grid/Grid.uni.driver.js.map +1 -1
  231. package/dist/esm/components/Grid/GridContent.js +40 -8
  232. package/dist/esm/components/Grid/GridContent.js.map +1 -1
  233. package/dist/esm/components/Grid/GridFolders.js +5 -3
  234. package/dist/esm/components/Grid/GridFolders.js.map +1 -1
  235. package/dist/esm/components/Grid/GridPlaceholderStates.js +1 -1
  236. package/dist/esm/components/Grid/GridPlaceholderStates.js.map +1 -1
  237. package/dist/esm/components/Grid/{useGridSyncProps.js → useGridBaseSyncProps.js} +10 -5
  238. package/dist/esm/components/Grid/useGridBaseSyncProps.js.map +1 -0
  239. package/dist/esm/components/Grid/useRenderItem.js.map +1 -1
  240. package/dist/esm/components/GridSections/GridSectionAndRepeater.js +15 -0
  241. package/dist/esm/components/GridSections/GridSectionAndRepeater.js.map +1 -0
  242. package/dist/esm/components/GridSections/GridSectionHeader.js +19 -0
  243. package/dist/esm/components/GridSections/GridSectionHeader.js.map +1 -0
  244. package/dist/esm/components/GridSections/GridSectionHeader.uni.driver.js +5 -0
  245. package/dist/esm/components/GridSections/GridSectionHeader.uni.driver.js.map +1 -0
  246. package/dist/esm/components/GridSections/GridSectionHeaderActionBar.js +7 -0
  247. package/dist/esm/components/GridSections/GridSectionHeaderActionBar.js.map +1 -0
  248. package/dist/esm/components/GridSections/GridSectionsContent.js +31 -0
  249. package/dist/esm/components/GridSections/GridSectionsContent.js.map +1 -0
  250. package/dist/esm/components/GridSections/GridSectionsState.js +34 -0
  251. package/dist/esm/components/GridSections/GridSectionsState.js.map +1 -0
  252. package/dist/esm/components/Heading/Heading.st.css.js +2 -2
  253. package/dist/esm/components/Heading/Heading.st.css.js.map +1 -1
  254. package/dist/esm/components/InputOverflow/InputOverflow.st.css.js +2 -2
  255. package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
  256. package/dist/esm/components/MaxLines/MaxLines.st.css.js +2 -2
  257. package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
  258. package/dist/esm/components/MultiInlineCheckboxFilter/MultiInlineCheckboxFilter.js.map +1 -1
  259. package/dist/esm/components/MultiSelectCollectionFilter/MultiSelectCollectionFilter.js.map +1 -1
  260. package/dist/esm/components/NestedTable/NestedTable.js.map +1 -1
  261. package/dist/esm/components/NestedTable/NestedTableRow.st.css.js +2 -2
  262. package/dist/esm/components/PickerContent/PickerContent.st.css.js +2 -2
  263. package/dist/esm/components/PickerContent/PickerContent.st.css.js.map +1 -1
  264. package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js +2 -2
  265. package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
  266. package/dist/esm/components/PickerStandaloneLayout/PickerStandaloneLayoutFooter.js.map +1 -1
  267. package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
  268. package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js.map +1 -1
  269. package/dist/esm/components/RadioGroupFilter/RadioGroupFilter.js.map +1 -1
  270. package/dist/esm/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
  271. package/dist/esm/components/ScrollableContent/ScrollableContent.st.css.js.map +1 -1
  272. package/dist/esm/components/SkeletonCard/SkeletonCard.st.css.js +2 -2
  273. package/dist/esm/components/SlidingModal/SlidingModal.st.css.js +2 -2
  274. package/dist/esm/components/SummaryBar/SummaryBar.js.map +1 -1
  275. package/dist/esm/components/Table/TableVirtual.st.css.js +2 -2
  276. package/dist/esm/components/TabsFilter/TabsFilter.js.map +1 -1
  277. package/dist/esm/components/TabsFilter/TabsFilter.st.css.js +2 -2
  278. package/dist/esm/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
  279. package/dist/esm/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js.map +1 -1
  280. package/dist/esm/components/ToolbarCollection/ToolbarCollection.js.map +1 -1
  281. package/dist/esm/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
  282. package/dist/esm/components/ToolbarTitle/ToolbarTitle.js.map +1 -1
  283. package/dist/esm/components/common.st.css.js +2 -2
  284. package/dist/esm/components/common.st.css.js.map +1 -1
  285. package/dist/esm/giza/buildWixPatternsEssentials.js +3 -2
  286. package/dist/esm/giza/buildWixPatternsEssentials.js.map +1 -1
  287. package/dist/esm/hooks/useCollectionFilterInitialFetchTiming.js.map +1 -1
  288. package/dist/esm/index.js +2 -1
  289. package/dist/esm/index.js.map +1 -1
  290. package/dist/esm/state/EntityPage/EntityPageState.js +3 -2
  291. package/dist/esm/state/EntityPage/EntityPageState.js.map +1 -1
  292. package/dist/esm/state/EntityPage/EntityPageStateBIReporter.js +16 -1
  293. package/dist/esm/state/EntityPage/EntityPageStateBIReporter.js.map +1 -1
  294. package/dist/esm/state/GridBaseState.js +13 -8
  295. package/dist/esm/state/GridBaseState.js.map +1 -1
  296. package/dist/esm/state/GridState.js +1 -8
  297. package/dist/esm/state/GridState.js.map +1 -1
  298. package/dist/esm/state/NestedTableState/NestedTableState.js.map +1 -1
  299. package/dist/esm/state/TagsBulkAssignPopoverState.js +1 -0
  300. package/dist/esm/state/TagsBulkAssignPopoverState.js.map +1 -1
  301. package/dist/esm/state/ToolbarCollectionState.js +4 -4
  302. package/dist/esm/state/ToolbarCollectionState.js.map +1 -1
  303. package/dist/esm/state/simplifyExtendedColumns.js +2 -2
  304. package/dist/esm/state/simplifyExtendedColumns.js.map +1 -1
  305. package/dist/esm/styles.global.css +1 -1
  306. package/dist/esm/version.js +1 -1
  307. package/dist/types/components/ActionCell/ActionCell.d.ts +31 -3
  308. package/dist/types/components/ActionCell/ActionCell.d.ts.map +1 -1
  309. package/dist/types/components/AppliedFiltersTagList/AppliedFiltersTagList.d.ts.map +1 -1
  310. package/dist/types/components/AppliedFiltersTagList/AppliedFiltersTagListState.d.ts +22 -11
  311. package/dist/types/components/AppliedFiltersTagList/AppliedFiltersTagListState.d.ts.map +1 -1
  312. package/dist/types/components/AppliedFiltersTagList/FilterTagContent.d.ts +7 -0
  313. package/dist/types/components/AppliedFiltersTagList/FilterTagContent.d.ts.map +1 -0
  314. package/dist/types/components/AutoCompleteFilter/AutoCompleteFilter.d.ts +1 -1
  315. package/dist/types/components/CardContainer/CardContainer.uni.driver.d.ts +1 -1
  316. package/dist/types/components/CollectionList/CollectionList.uni.driver.d.ts +79 -6
  317. package/dist/types/components/CollectionList/CollectionList.uni.driver.d.ts.map +1 -1
  318. package/dist/types/components/CollectionTable/CollectionTable.d.ts +16 -20
  319. package/dist/types/components/CollectionTable/CollectionTable.d.ts.map +1 -1
  320. package/dist/types/components/CollectionTable/CollectionTable.uni.driver.d.ts +161 -27
  321. package/dist/types/components/CollectionTable/CollectionTable.uni.driver.d.ts.map +1 -1
  322. package/dist/types/components/CollectionTable/CollectionTableBaseCommonProps.d.ts +4 -3
  323. package/dist/types/components/CollectionTable/CollectionTableBaseCommonProps.d.ts.map +1 -1
  324. package/dist/types/components/CollectionTable/CollectionTableWSRTable.d.ts +3 -2
  325. package/dist/types/components/CollectionTable/CollectionTableWSRTable.d.ts.map +1 -1
  326. package/dist/types/components/CollectionToolbar/CollectionToolbar.st.css.d.ts.map +1 -1
  327. package/dist/types/components/CollectionToolbar/CollectionToolbar.uni.driver.d.ts +81 -18
  328. package/dist/types/components/CollectionToolbar/CollectionToolbar.uni.driver.d.ts.map +1 -1
  329. package/dist/types/components/CollectionToolbar/PrimaryActionButton.d.ts +1 -1
  330. package/dist/types/components/CollectionToolbar/ReorderModeToolbar.uni.driver.d.ts +1 -1
  331. package/dist/types/components/CollectionToolbarFilters/CollectionToolbarFilters.d.ts +5 -0
  332. package/dist/types/components/CollectionToolbarFilters/CollectionToolbarFilters.d.ts.map +1 -1
  333. package/dist/types/components/CollectionToolbars/CollectionToolbars.d.ts.map +1 -1
  334. package/dist/types/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.d.ts.map +1 -1
  335. package/dist/types/components/CollectionViewsDropdown/CollectionViewsDropdown.d.ts +2 -70
  336. package/dist/types/components/CollectionViewsDropdown/CollectionViewsDropdown.d.ts.map +1 -1
  337. package/dist/types/components/CollectionViewsDropdown/CollectionViewsDropdown.uni.driver.d.ts +79 -0
  338. package/dist/types/components/CollectionViewsDropdown/CollectionViewsDropdown.uni.driver.d.ts.map +1 -1
  339. package/dist/types/components/CollectionViewsDropdown/CollectionViewsDropdownBase.d.ts +91 -0
  340. package/dist/types/components/CollectionViewsDropdown/CollectionViewsDropdownBase.d.ts.map +1 -0
  341. package/dist/types/components/CollectionViewsDropdown/CollectionViewsDropdownStandalone.d.ts +11 -0
  342. package/dist/types/components/CollectionViewsDropdown/CollectionViewsDropdownStandalone.d.ts.map +1 -0
  343. package/dist/types/components/CollectionViewsDropdown/ManageViewPopover.d.ts.map +1 -1
  344. package/dist/types/components/CollectionViewsDropdown/ViewsDropdown.d.ts.map +1 -1
  345. package/dist/types/components/CollectionViewsDropdown/index.d.ts +1 -0
  346. package/dist/types/components/CollectionViewsDropdown/index.d.ts.map +1 -1
  347. package/dist/types/components/CollectionViewsDropdown/modals/SaveView/CollectionSaveViewModal.uni.driver.d.ts +1 -1
  348. package/dist/types/components/CtaProps.d.ts +11 -0
  349. package/dist/types/components/CtaProps.d.ts.map +1 -0
  350. package/dist/types/components/CustomColumns/CustomColumns.d.ts +1 -1
  351. package/dist/types/components/CustomFieldModal/CustomFieldModal.uni.driver.d.ts +15 -1
  352. package/dist/types/components/CustomFieldModal/CustomFieldModal.uni.driver.d.ts.map +1 -1
  353. package/dist/types/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.st.css.d.ts.map +1 -1
  354. package/dist/types/components/CustomFieldsWidget/CustomFieldsWidget.uni.driver.d.ts +15 -1
  355. package/dist/types/components/CustomFieldsWidget/CustomFieldsWidget.uni.driver.d.ts.map +1 -1
  356. package/dist/types/components/DataExtension/CollectionDataExtensionState.d.ts.map +1 -1
  357. package/dist/types/components/EmptyState/CollectionEmptyState.d.ts +4 -3
  358. package/dist/types/components/EmptyState/CollectionEmptyState.d.ts.map +1 -1
  359. package/dist/types/components/EmptyState/CollectionEmptyState.uni.driver.d.ts +1 -1
  360. package/dist/types/components/EmptyState/CollectionNoResultsState.d.ts.map +1 -1
  361. package/dist/types/components/EmptyState/CollectionNoResultsState.uni.driver.d.ts +1 -1
  362. package/dist/types/components/EmptyState/CollectionPremiumEmptyState.d.ts +4 -3
  363. package/dist/types/components/EmptyState/CollectionPremiumEmptyState.d.ts.map +1 -1
  364. package/dist/types/components/EmptyState/EmptyState.uni.driver.d.ts +1 -1
  365. package/dist/types/components/EmptyState/EmptyStateBase.d.ts +5 -6
  366. package/dist/types/components/EmptyState/EmptyStateBase.d.ts.map +1 -1
  367. package/dist/types/components/EntityPage/EntityPage.uni.driver.d.ts +2 -2
  368. package/dist/types/components/EntityPageCard/EntityPageCard.uni.driver.d.ts +1 -1
  369. package/dist/types/components/ErrorCard/ErrorCard.uni.driver.d.ts +1 -1
  370. package/dist/types/components/ErrorState/ToolbarCollectionErrorState.uni.driver.d.ts +2 -2
  371. package/dist/types/components/Fade/Fade.st.css.d.ts.map +1 -1
  372. package/dist/types/components/FiltersPanel/FiltersPanel.uni.driver.d.ts +1 -1
  373. package/dist/types/components/Grid/Grid.d.ts +20 -15
  374. package/dist/types/components/Grid/Grid.d.ts.map +1 -1
  375. package/dist/types/components/Grid/Grid.uni.driver.d.ts +101 -15
  376. package/dist/types/components/Grid/Grid.uni.driver.d.ts.map +1 -1
  377. package/dist/types/components/Grid/GridContent.d.ts +28 -6
  378. package/dist/types/components/Grid/GridContent.d.ts.map +1 -1
  379. package/dist/types/components/Grid/GridFolders.d.ts +1 -2
  380. package/dist/types/components/Grid/GridFolders.d.ts.map +1 -1
  381. package/dist/types/components/Grid/GridFolders.uni.driver.d.ts +288 -46
  382. package/dist/types/components/Grid/GridFolders.uni.driver.d.ts.map +1 -1
  383. package/dist/types/components/Grid/GridFoldersSection.uni.driver.d.ts +100 -14
  384. package/dist/types/components/Grid/GridFoldersSection.uni.driver.d.ts.map +1 -1
  385. package/dist/types/components/Grid/GridItemBaseProps.d.ts +5 -5
  386. package/dist/types/components/Grid/GridItemBaseProps.d.ts.map +1 -1
  387. package/dist/types/components/Grid/GridPlaceholderStates.d.ts +2 -2
  388. package/dist/types/components/Grid/GridPlaceholderStates.d.ts.map +1 -1
  389. package/dist/types/components/Grid/useGridBaseSyncProps.d.ts +18 -0
  390. package/dist/types/components/Grid/useGridBaseSyncProps.d.ts.map +1 -0
  391. package/dist/types/components/Grid/useRenderItem.d.ts +3 -3
  392. package/dist/types/components/Grid/useRenderItem.d.ts.map +1 -1
  393. package/dist/types/components/GridSections/GridSectionAndRepeater.d.ts +16 -0
  394. package/dist/types/components/GridSections/GridSectionAndRepeater.d.ts.map +1 -0
  395. package/dist/types/components/GridSections/GridSectionHeader.d.ts +13 -0
  396. package/dist/types/components/GridSections/GridSectionHeader.d.ts.map +1 -0
  397. package/dist/types/components/GridSections/GridSectionHeader.uni.driver.d.ts +9 -0
  398. package/dist/types/components/GridSections/GridSectionHeader.uni.driver.d.ts.map +1 -0
  399. package/dist/types/components/GridSections/GridSectionHeaderActionBar.d.ts +7 -0
  400. package/dist/types/components/GridSections/GridSectionHeaderActionBar.d.ts.map +1 -0
  401. package/dist/types/components/GridSections/GridSectionsContent.d.ts +20 -0
  402. package/dist/types/components/GridSections/GridSectionsContent.d.ts.map +1 -0
  403. package/dist/types/components/GridSections/GridSectionsState.d.ts +30 -0
  404. package/dist/types/components/GridSections/GridSectionsState.d.ts.map +1 -0
  405. package/dist/types/components/Heading/Heading.st.css.d.ts.map +1 -1
  406. package/dist/types/components/InfiniteScrollCollectionList/InfiniteScrollCollectionList.uni.driver.d.ts +79 -6
  407. package/dist/types/components/InfiniteScrollCollectionList/InfiniteScrollCollectionList.uni.driver.d.ts.map +1 -1
  408. package/dist/types/components/MultiBulkActionButton/MultiBulkActionSubItemProps.d.ts +1 -1
  409. package/dist/types/components/MultiBulkActionToolbar/MultiBulkActionToolbar.d.ts +3 -3
  410. package/dist/types/components/MultiInlineCheckboxFilter/MultiInlineCheckboxFilter.d.ts +8 -2
  411. package/dist/types/components/MultiInlineCheckboxFilter/MultiInlineCheckboxFilter.d.ts.map +1 -1
  412. package/dist/types/components/MultiSelectCollectionFilter/MultiSelectCollectionFilter.d.ts +9 -0
  413. package/dist/types/components/MultiSelectCollectionFilter/MultiSelectCollectionFilter.d.ts.map +1 -1
  414. package/dist/types/components/NestedTable/NestedTable.d.ts +15 -16
  415. package/dist/types/components/NestedTable/NestedTable.d.ts.map +1 -1
  416. package/dist/types/components/NestedTable/NestedTable.uni.driver.d.ts +237 -32
  417. package/dist/types/components/NestedTable/NestedTable.uni.driver.d.ts.map +1 -1
  418. package/dist/types/components/NestedTable/NestedTableRowPlaceholderStates.uni.driver.d.ts +3 -3
  419. package/dist/types/components/PageErrorState/PageErrorState.uni.driver.d.ts +1 -1
  420. package/dist/types/components/PickerContent/PickerContent.st.css.d.ts.map +1 -1
  421. package/dist/types/components/PickerContent/PickerContentAdditionalStep.st.css.d.ts.map +1 -1
  422. package/dist/types/components/PickerModal/PickerModal.uni.driver.d.ts +15 -1
  423. package/dist/types/components/PickerModal/PickerModal.uni.driver.d.ts.map +1 -1
  424. package/dist/types/components/PickerModal/PickerModalLayout.uni.driver.d.ts +15 -1
  425. package/dist/types/components/PickerModal/PickerModalLayout.uni.driver.d.ts.map +1 -1
  426. package/dist/types/components/PickerTableListItem/PickerTableListItem.st.css.d.ts.map +1 -1
  427. package/dist/types/components/RadioGroupFilter/RadioGroupFilter.d.ts +4 -0
  428. package/dist/types/components/RadioGroupFilter/RadioGroupFilter.d.ts.map +1 -1
  429. package/dist/types/components/ScrollableContent/ScrollableContent.st.css.d.ts.map +1 -1
  430. package/dist/types/components/SingleSelectFilter/SingleSelectFilter.d.ts +2 -2
  431. package/dist/types/components/SummaryBar/SummaryBar.d.ts +8 -3
  432. package/dist/types/components/SummaryBar/SummaryBar.d.ts.map +1 -1
  433. package/dist/types/components/SummaryBar/SummaryBar.uni.driver.d.ts +16 -2
  434. package/dist/types/components/SummaryBar/SummaryBar.uni.driver.d.ts.map +1 -1
  435. package/dist/types/components/Table/Table.d.ts +1 -1
  436. package/dist/types/components/Table/Table.uni.driver.d.ts +170 -26
  437. package/dist/types/components/Table/Table.uni.driver.d.ts.map +1 -1
  438. package/dist/types/components/TableFolders/TableFolders.uni.driver.d.ts +232 -27
  439. package/dist/types/components/TableFolders/TableFolders.uni.driver.d.ts.map +1 -1
  440. package/dist/types/components/TableFolders/TableFoldersContent.d.ts +16 -16
  441. package/dist/types/components/TableFolders/TableFoldersContent.d.ts.map +1 -1
  442. package/dist/types/components/TableGridSwitch/TableGridSwitch.d.ts +2 -2
  443. package/dist/types/components/TableGridSwitch/TableGridSwitch.uni.driver.d.ts +294 -39
  444. package/dist/types/components/TableGridSwitch/TableGridSwitch.uni.driver.d.ts.map +1 -1
  445. package/dist/types/components/TableGridSwitchFolders/TableGridSwitchFolders.uni.driver.d.ts +533 -69
  446. package/dist/types/components/TableGridSwitchFolders/TableGridSwitchFolders.uni.driver.d.ts.map +1 -1
  447. package/dist/types/components/TabsFilter/TabsFilter.d.ts +16 -9
  448. package/dist/types/components/TabsFilter/TabsFilter.d.ts.map +1 -1
  449. package/dist/types/components/Tags/BulkAssignTagsPopover/BulkAssignTagsPopover.uni.driver.d.ts +1 -1
  450. package/dist/types/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.d.ts.map +1 -1
  451. package/dist/types/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.uni.driver.d.ts +1 -1
  452. package/dist/types/components/TagsAssignButton/TagsAssignButton.uni.driver.d.ts +1 -1
  453. package/dist/types/components/ToolbarCollection/ToolbarCollection.d.ts +56 -47
  454. package/dist/types/components/ToolbarCollection/ToolbarCollection.d.ts.map +1 -1
  455. package/dist/types/components/ToolbarTitle/ToolbarTitle.d.ts +6 -4
  456. package/dist/types/components/ToolbarTitle/ToolbarTitle.d.ts.map +1 -1
  457. package/dist/types/components/common.st.css.d.ts.map +1 -1
  458. package/dist/types/giza/buildWixPatternsEssentials.d.ts.map +1 -1
  459. package/dist/types/hooks/useCollectionFilterInitialFetchTiming.d.ts +3 -2
  460. package/dist/types/hooks/useCollectionFilterInitialFetchTiming.d.ts.map +1 -1
  461. package/dist/types/hooks/usePickerModal/UsePickerModalParamsBase.d.ts +3 -0
  462. package/dist/types/hooks/usePickerModal/UsePickerModalParamsBase.d.ts.map +1 -1
  463. package/dist/types/index.d.ts +2 -1
  464. package/dist/types/index.d.ts.map +1 -1
  465. package/dist/types/model/filterProps.d.ts +15 -9
  466. package/dist/types/model/filterProps.d.ts.map +1 -1
  467. package/dist/types/state/EntityPage/EntityPageState.d.ts.map +1 -1
  468. package/dist/types/state/EntityPage/EntityPageStateBIReporter.d.ts +6 -0
  469. package/dist/types/state/EntityPage/EntityPageStateBIReporter.d.ts.map +1 -1
  470. package/dist/types/state/GridBaseState.d.ts +6 -1
  471. package/dist/types/state/GridBaseState.d.ts.map +1 -1
  472. package/dist/types/state/GridState.d.ts +4 -2
  473. package/dist/types/state/GridState.d.ts.map +1 -1
  474. package/dist/types/state/NestedTableState/NestedTableState.d.ts +2 -1
  475. package/dist/types/state/NestedTableState/NestedTableState.d.ts.map +1 -1
  476. package/dist/types/state/TagsBulkAssignPopoverState.d.ts.map +1 -1
  477. package/dist/types/state/ToolbarCollectionState.d.ts +3 -2
  478. package/dist/types/state/ToolbarCollectionState.d.ts.map +1 -1
  479. package/dist/types/state/simplifyExtendedColumns.d.ts +2 -1
  480. package/dist/types/state/simplifyExtendedColumns.d.ts.map +1 -1
  481. package/dist/types/testkit/enzyme.d.ts +2017 -260
  482. package/dist/types/testkit/enzyme.d.ts.map +1 -1
  483. package/dist/types/testkit/jsdom.d.ts +2023 -266
  484. package/dist/types/testkit/jsdom.d.ts.map +1 -1
  485. package/dist/types/testkit/puppeteer.d.ts +2018 -261
  486. package/dist/types/testkit/puppeteer.d.ts.map +1 -1
  487. package/dist/types/version.d.ts +1 -1
  488. package/package.json +4 -4
  489. package/dist/cjs/components/Grid/useGridSyncProps.js.map +0 -1
  490. package/dist/esm/components/Grid/useGridSyncProps.js.map +0 -1
  491. package/dist/types/components/Grid/useGridSyncProps.d.ts +0 -19
  492. package/dist/types/components/Grid/useGridSyncProps.d.ts.map +0 -1
@@ -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_ = "PickerTableListItem3051680425";
8
+ var _namespace_ = "PickerTableListItem270992690";
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": "PickerTableListItem3051680425__root"
15
+ "root": "PickerTableListItem270992690__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/components/PickerTableListItem/PickerTableListItem.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"PickerTableListItem3051680425\";\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\":\"PickerTableListItem3051680425__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":[]}
1
+ {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/PickerTableListItem/PickerTableListItem.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"PickerTableListItem270992690\";\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\":\"PickerTableListItem270992690__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,8BAA8B;AAChD,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;AAAoC,CAAC;AAC3D,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":[]}
@@ -57,7 +57,7 @@ function _RadioGroupFilter(props) {
57
57
  __self: this,
58
58
  __source: {
59
59
  fileName: _jsxFileName,
60
- lineNumber: 54,
60
+ lineNumber: 58,
61
61
  columnNumber: 5
62
62
  }
63
63
  }, /*#__PURE__*/_react.default.createElement(_designSystem.RadioGroup, {
@@ -74,7 +74,7 @@ function _RadioGroupFilter(props) {
74
74
  __self: this,
75
75
  __source: {
76
76
  fileName: _jsxFileName,
77
- lineNumber: 59,
77
+ lineNumber: 63,
78
78
  columnNumber: 7
79
79
  }
80
80
  }, /*#__PURE__*/_react.default.createElement(_designSystem.RadioGroup.Radio, {
@@ -83,7 +83,7 @@ function _RadioGroupFilter(props) {
83
83
  __self: this,
84
84
  __source: {
85
85
  fileName: _jsxFileName,
86
- lineNumber: 73,
86
+ lineNumber: 77,
87
87
  columnNumber: 9
88
88
  }
89
89
  }, defaultValue.name), keyedItems.map((keyedItem, index) => {
@@ -96,7 +96,7 @@ function _RadioGroupFilter(props) {
96
96
  __self: this,
97
97
  __source: {
98
98
  fileName: _jsxFileName,
99
- lineNumber: 83,
99
+ lineNumber: 87,
100
100
  columnNumber: 13
101
101
  }
102
102
  }), (radioProps == null ? void 0 : radioProps.children) ?? filter.itemName(keyedItem.item));
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_hooks","_designSystem","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_RadioGroupFilter","props","_selectedValues$","filter","data","renderItem","dropdownSelect","init","useDropdownSelectFilterState","select","selectedValues","container","translate","defaultValue","id","name","useEffect","keyedItems","useMemo","map","item","index","key","itemKey","indexWithinPage","pageIndex","createElement","Box","direction","gap","dataHook","__self","__source","fileName","lineNumber","columnNumber","RadioGroup","value","onChange","v","toString","clear","newItem","find","setSingle","Radio","keyedItem","radioProps","_extends2","children","itemName","RadioGroupFilter","exports","observer"],"sources":["../../../../src/components/RadioGroupFilter/RadioGroupFilter.tsx"],"sourcesContent":["import React, { PropsWithChildren, useEffect, useMemo } from 'react';\nimport { observer } from 'mobx-react-lite';\nimport { useDropdownSelectFilterState } from '../../hooks';\nimport { FilterProps } from '../../model';\nimport { Box, RadioGroup, RadioProps } from '@wix/design-system';\nimport { KeyedItem } from '@wix/bex-core';\n\nexport interface RadioGroupFilterProps<V> extends FilterProps<V[]> {\n /**\n * List of items to select from\n * @external\n */\n data: V[];\n renderItem?: (\n item: V,\n index: number,\n ) => Partial<PropsWithChildren<RadioProps>>;\n}\n\nfunction _RadioGroupFilter<V>(props: RadioGroupFilterProps<V>) {\n const { filter, data = [], renderItem } = props;\n\n const { dropdownSelect, init } = useDropdownSelectFilterState<V>({\n filter,\n });\n const {\n select: { selectedValues },\n container: { translate: t },\n } = dropdownSelect;\n\n const defaultValue = { id: 'all', name: t('cairo.filtersPanel.default.All') };\n\n useEffect(() => {\n return init();\n }, []);\n\n const keyedItems = useMemo(\n () =>\n data.map((item, index) => {\n const key = filter.itemKey(item);\n return {\n id: key,\n key,\n item,\n index,\n indexWithinPage: index,\n pageIndex: 0,\n };\n }),\n [data],\n );\n\n return (\n <Box\n direction=\"vertical\"\n gap=\"SP2\"\n dataHook={`radio-group-filter-${filter.name}`}\n >\n <RadioGroup\n dataHook=\"radio-group-filter-group\"\n value={selectedValues[0]?.key || defaultValue.id}\n onChange={(v) => {\n if (v?.toString() === defaultValue.id) {\n dropdownSelect.clear();\n } else {\n const newItem = keyedItems.find(\n (item) => item.key === v?.toString(),\n );\n newItem && dropdownSelect.setSingle(newItem as KeyedItem<V>);\n }\n }}\n >\n <RadioGroup.Radio\n value={defaultValue.id}\n dataHook=\"radio-group-filter-option-all\"\n >\n {defaultValue.name}\n </RadioGroup.Radio>\n {keyedItems.map((keyedItem, index) => {\n const radioProps = renderItem?.(keyedItem.item, index);\n const key = keyedItem.key;\n return (\n <RadioGroup.Radio\n {...radioProps}\n key={key}\n value={key}\n dataHook={`radio-group-filter-option-${key}`}\n >\n {radioProps?.children ?? filter.itemName(keyedItem.item)}\n </RadioGroup.Radio>\n );\n })}\n </RadioGroup>\n </Box>\n );\n}\n\nexport const RadioGroupFilter = observ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jD,MAAA,CAAAa,OAAA,CAAAwC,aAAA,CAAChD,aAAA,CAAA0D,UAAU,CAACS,KAAK,MAAAG,SAAA,CAAA9D,OAAA,MACX6D,UAAU;MACdzB,GAAG,EAAEA,GAAI;MACTe,KAAK,EAAEf,GAAI;MACXQ,QAAQ,EAAG,6BAA4BR,GAAI,EAAE;MAAAS,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAAtD,YAAA;QAAAuD,UAAA;QAAAC,YAAA;MAAA;IAAA,IAE5C,CAAAY,UAAU,oBAAVA,UAAU,CAAEE,QAAQ,KAAI9C,MAAM,CAAC+C,QAAQ,CAACJ,SAAS,CAAC1B,IAAI,CACvC,CAAC;EAEvB,CAAC,CACS,CACT,CAAC;AAEV;AAEO,MAAM+B,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,IAAAE,uBAAQ,EAACrD,iBAAiB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_hooks","_designSystem","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_RadioGroupFilter","props","_selectedValues$","filter","data","renderItem","dropdownSelect","init","useDropdownSelectFilterState","select","selectedValues","container","translate","defaultValue","id","name","useEffect","keyedItems","useMemo","map","item","index","key","itemKey","indexWithinPage","pageIndex","createElement","Box","direction","gap","dataHook","__self","__source","fileName","lineNumber","columnNumber","RadioGroup","value","onChange","v","toString","clear","newItem","find","setSingle","Radio","keyedItem","radioProps","_extends2","children","itemName","RadioGroupFilter","exports","observer"],"sources":["../../../../src/components/RadioGroupFilter/RadioGroupFilter.tsx"],"sourcesContent":["import React, { PropsWithChildren, useEffect, useMemo } from 'react';\nimport { observer } from 'mobx-react-lite';\nimport { useDropdownSelectFilterState } from '../../hooks';\nimport { FilterProps } from '../../model';\nimport { Box, RadioGroup, RadioProps } from '@wix/design-system';\nimport { KeyedItem } from '@wix/bex-core';\n\nexport interface RadioGroupFilterProps<V> extends FilterProps<V[]> {\n /**\n * List of items to select from\n * @external\n */\n data: V[];\n /**\n * A function that returns Radio props for rendering each item\n * @external\n */\n renderItem?: (\n item: V,\n index: number,\n ) => Partial<PropsWithChildren<RadioProps>>;\n}\n\nfunction _RadioGroupFilter<V>(props: RadioGroupFilterProps<V>) {\n const { filter, data = [], renderItem } = props;\n\n const { dropdownSelect, init } = useDropdownSelectFilterState<V>({\n filter,\n });\n const {\n select: { selectedValues },\n container: { translate: t },\n } = dropdownSelect;\n\n const defaultValue = { id: 'all', name: t('cairo.filtersPanel.default.All') };\n\n useEffect(() => {\n return init();\n }, []);\n\n const keyedItems = useMemo(\n () =>\n data.map((item, index) => {\n const key = filter.itemKey(item);\n return {\n id: key,\n key,\n item,\n index,\n indexWithinPage: index,\n pageIndex: 0,\n };\n }),\n [data],\n );\n\n return (\n <Box\n direction=\"vertical\"\n gap=\"SP2\"\n dataHook={`radio-group-filter-${filter.name}`}\n >\n <RadioGroup\n dataHook=\"radio-group-filter-group\"\n value={selectedValues[0]?.key || defaultValue.id}\n onChange={(v) => {\n if (v?.toString() === defaultValue.id) {\n dropdownSelect.clear();\n } else {\n const newItem = keyedItems.find(\n (item) => item.key === v?.toString(),\n );\n newItem && dropdownSelect.setSingle(newItem as KeyedItem<V>);\n }\n }}\n >\n <RadioGroup.Radio\n value={defaultValue.id}\n dataHook=\"radio-group-filter-option-all\"\n >\n {defaultValue.name}\n </RadioGroup.Radio>\n {keyedItems.map((keyedItem, index) => {\n const radioProps = renderItem?.(keyedItem.item, index);\n const key = keyedItem.key;\n return (\n <RadioGroup.Radio\n {...radioProps}\n key={key}\n value={key}\n dataHook={`radio-group-filter-option-${key}`}\n >\n {radioProps?.children ?? filter.itemName(keyedItem.item)}\n </RadioGroup.Radio>\n );\n })}\n </RadioGroup>\n </Box>\n );\n}\n\nexport const RadioGroupFilter = observer(_RadioGroupFilter);\n"],"mappings":";;;;;;AAA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A,CAAChD,aAAA,CAAA0D,UAAU,CAACS,KAAK,MAAAG,SAAA,CAAA9D,OAAA,MACX6D,UAAU;MACdzB,GAAG,EAAEA,GAAI;MACTe,KAAK,EAAEf,GAAI;MACXQ,QAAQ,EAAG,6BAA4BR,GAAI,EAAE;MAAAS,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAAtD,YAAA;QAAAuD,UAAA;QAAAC,YAAA;MAAA;IAAA,IAE5C,CAAAY,UAAU,oBAAVA,UAAU,CAAEE,QAAQ,KAAI9C,MAAM,CAAC+C,QAAQ,CAACJ,SAAS,CAAC1B,IAAI,CACvC,CAAC;EAEvB,CAAC,CACS,CACT,CAAC;AAEV;AAEO,MAAM+B,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,IAAAE,uBAAQ,EAACrD,iBAAiB,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_ = "ScrollableContent871863361";
8
+ var _namespace_ = "ScrollableContent1704740860";
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": "ScrollableContent871863361__root"
15
+ "root": "ScrollableContent1704740860__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/components/ScrollableContent/ScrollableContent.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"ScrollableContent871863361\";\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\":\"ScrollableContent871863361__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,4BAA4B;AAC9C,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;AAAkC,CAAC;AACzD,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/components/ScrollableContent/ScrollableContent.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"ScrollableContent1704740860\";\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\":\"ScrollableContent1704740860__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,6BAA6B;AAC/C,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;AAAmC,CAAC;AAC1D,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 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_state","_mobxReactLite","_SingleSelectFilterBase","_hooks","_react2","_providers","_usePlaceholderStateOptions","_useCollectionFilterInitialFetchTiming","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_SingleSelectFilter","props","filter","collection","renderItem","renderSection","rest","container","useWixPatternsContainer","toolbar","useFilterToolbarState","collectionFilter","useState","CollectionFilterState","dropdownSelect","init","DropdownCollectionFilterState","resetOnClose","query","search","skipInitialFetch","onFocus","useCollectionFilterInitialFetchTiming","useEffect","result","keyedItems","fetchedLastPage","options","fixedFooter","showInitialLoader","usePlaceholderStateOptions","useBuildGroupedOptions","items","map","useBuildOption","createElement","SingleSelectFilterBase","_extends2","infiniteScroll","value","onChange","target","hasMore","loadMore","fetchNextPageIfNeeded","__self","__source","fileName","lineNumber","columnNumber","SingleSelectFilter","exports","observer"],"sources":["../../../../src/components/SingleSelectFilter/SingleSelectFilter.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport {\n CollectionFilterState,\n DropdownCollectionFilterState,\n} from '../../state';\nimport { observer } from 'mobx-react-lite';\nimport { CollectionState, FiltersMap } from '@wix/bex-core';\nimport {\n SingleSelectFilterBase,\n SingleSelectFilterBaseProps,\n} from '../SingleSelectFilterBase';\nimport { ListItem, useBuildGroupedOptions, useBuildOption } from '../../hooks';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { useFilterToolbarState } from '../../providers';\nimport { usePlaceholderStateOptions } from '../../hooks/usePlaceholderStateOptions';\nimport {\n CollectionFilterInitialFetchTimingProps,\n useCollectionFilterInitialFetchTiming,\n} from '../../hooks/useCollectionFilterInitialFetchTiming';\n\nexport interface SingleSelectFilterProps<V, F extends FiltersMap>\n extends Omit<\n SingleSelectFilterBaseProps<V>,\n 'keyedItems' | 'options' | 'dropdownSelect'\n >,\n CollectionFilterInitialFetchTimingProps {\n /**\n * A collection state object to fetch the dropdown items.<br>\n * A collection created using [useFilterCollection](/pages/cairo/?path=/story/common-hooks--usefiltercollection) or [useStaticListFilterCollection](/pages/cairo/?path=/story/common-hooks--usestaticlistfiltercollection)\n * @external\n */\n collection: CollectionState<V, F>;\n\n /**\n * A function that returns a [ListItemSelectProps](https://www.docs.wixdesignsystem.com/?path=/story/components-form-dropdownlistitems--listitemselect) extended by `{sectionId?: string}`<br/>\n * (Optional)\n * @external\n */\n renderItem?: (item: V, index: number) => ListItem;\n /**\n * A function that returns [ListItemSectionProps](https://www.docs.wixdesignsystem.com/?path=/story/components-form-dropdownlistitems--listitemsection) <br/>\n * According to make it works you need return `sectionId` in `renderItem` method. <br/>\n * ⚠️ Server should return section items sorted by sections in strict order. Otherwise, when using infinite scrolling the behavior of the sections will be unexpected (see sections example). <br/>\n * (Optional)\n * @external\n */\n renderSection?: SingleSelectFilterBaseProps<V>['renderSection'];\n}\n\nfunction _SingleSelectFilter<V, F extends FiltersMap>(\n props: SingleSelectFilterProps<V, F>,\n) {\n const { filter, collection, renderItem, renderSection, ...rest } = props;\n\n const container = useWixPatternsContainer();\n const toolbar = useFilterToolbarState();\n\n const [collectionFilter] = useState(\n () =>\n new CollectionFilterState({\n collection,\n filter,\n }),\n );\n\n const [{ dropdownSelect, init }] = useState(\n () =>\n new DropdownCollectionFilterState({\n collectionFilter,\n resetOnClose: false,\n container,\n toolbar,\n }),\n );\n\n const {\n query: { search },\n } = collection;\n\n const { skipInitialFetch, onFocus } =\n useCollectionFilterInitialFetchTiming(props);\n\n useEffect(() => init({ skipInitialFetch }), []);\n\n const {\n result: { keyedItems },\n fetchedLastPage,\n } = collection;\n\n const { options, fixedFooter, showInitialLoader } =\n usePlaceholderStateOptions(\n useBuildGroupedOptions({\n items: keyedItems.map(\n useBuildOption({\n filter,\n renderItem,\n }),\n ),\n renderSection,\n }),\n {\n collection,\n },\n );\n\n return (\n <SingleSelectFilterBase\n {...rest}\n fixedFooter={fixedFooter}\n infiniteScroll\n value={search.value}\n onChange={(e) => {\n collection.search(e.target.value);\n }}\n onFocus={onFocus}\n filter={filter}\n options={options}\n renderItem={renderItem}\n dropdownSelect={dropdownSelect}\n hasMore={!showInitialLoader && !fetchedLastPage}\n loadMore={collection.fetchNextPageIfNeeded}\n />\n );\n}\n\nexport const SingleSelectFilter = observer(_SingleSelectFilter);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAIA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,uBAAA,GAAAH,OAAA;AAIA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,2BAAA,GAAAP,OAAA;AACA,IAAAQ,sCAAA,GAAAR,OAAA;AAG2D,IAAAS,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAZ,wBAAAY,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAA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AE,uBAAQ,EAACpD,mBAAmB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_state","_mobxReactLite","_SingleSelectFilterBase","_hooks","_react2","_providers","_usePlaceholderStateOptions","_useCollectionFilterInitialFetchTiming","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_SingleSelectFilter","props","filter","collection","renderItem","renderSection","rest","container","useWixPatternsContainer","toolbar","useFilterToolbarState","collectionFilter","useState","CollectionFilterState","dropdownSelect","init","DropdownCollectionFilterState","resetOnClose","query","search","skipInitialFetch","onFocus","useCollectionFilterInitialFetchTiming","useEffect","result","keyedItems","fetchedLastPage","options","fixedFooter","showInitialLoader","usePlaceholderStateOptions","useBuildGroupedOptions","items","map","useBuildOption","createElement","SingleSelectFilterBase","_extends2","infiniteScroll","value","onChange","target","hasMore","loadMore","fetchNextPageIfNeeded","__self","__source","fileName","lineNumber","columnNumber","SingleSelectFilter","exports","observer"],"sources":["../../../../src/components/SingleSelectFilter/SingleSelectFilter.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport {\n CollectionFilterState,\n DropdownCollectionFilterState,\n} from '../../state';\nimport { observer } from 'mobx-react-lite';\nimport { CollectionState, FiltersMap } from '@wix/bex-core';\nimport {\n SingleSelectFilterBase,\n SingleSelectFilterBaseProps,\n} from '../SingleSelectFilterBase';\nimport { ListItem, useBuildGroupedOptions, useBuildOption } from '../../hooks';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { useFilterToolbarState } from '../../providers';\nimport { usePlaceholderStateOptions } from '../../hooks/usePlaceholderStateOptions';\nimport {\n CollectionFilterInitialFetchTimingProps,\n useCollectionFilterInitialFetchTiming,\n} from '../../hooks/useCollectionFilterInitialFetchTiming';\n\nexport interface SingleSelectFilterProps<V, F extends FiltersMap>\n extends Omit<\n SingleSelectFilterBaseProps<V>,\n 'keyedItems' | 'options' | 'dropdownSelect'\n >,\n CollectionFilterInitialFetchTimingProps {\n /**\n * Collection state object to fetch the items for the dropdown list.<br>\n * Create using [useFilterCollection](./?path=%2Fstory%2Fcommon-hooks--usefiltercollection) or [useStaticListFilterCollection](./?path=%2Fstory%2Fcommon-hooks--usestaticlistfiltercollection).\n * @external\n */\n collection: CollectionState<V, F>;\n\n /**\n * A function that returns a [ListItemSelectProps](https://www.docs.wixdesignsystem.com/?path=/story/components-form-dropdownlistitems--listitemselect) extended by `{sectionId?: string}`<br/>\n * (Optional)\n * @external\n */\n renderItem?: (item: V, index: number) => ListItem;\n /**\n * A function that returns [ListItemSectionProps](https://www.docs.wixdesignsystem.com/?path=/story/components-form-dropdownlistitems--listitemsection) <br/>\n * According to make it works you need return `sectionId` in `renderItem` method. <br/>\n * ⚠️ Server should return section items sorted by sections in strict order. Otherwise, when using infinite scrolling the behavior of the sections will be unexpected (see sections example). <br/>\n * (Optional)\n * @external\n */\n renderSection?: SingleSelectFilterBaseProps<V>['renderSection'];\n}\n\nfunction _SingleSelectFilter<V, F extends FiltersMap>(\n props: SingleSelectFilterProps<V, F>,\n) {\n const { filter, collection, renderItem, renderSection, ...rest } = props;\n\n const container = useWixPatternsContainer();\n const toolbar = useFilterToolbarState();\n\n const [collectionFilter] = useState(\n () =>\n new CollectionFilterState({\n collection,\n filter,\n }),\n );\n\n const [{ dropdownSelect, init }] = useState(\n () =>\n new DropdownCollectionFilterState({\n collectionFilter,\n resetOnClose: false,\n container,\n toolbar,\n }),\n );\n\n const {\n query: { search },\n } = collection;\n\n const { skipInitialFetch, onFocus } =\n useCollectionFilterInitialFetchTiming(props);\n\n useEffect(() => init({ skipInitialFetch }), []);\n\n const {\n result: { keyedItems },\n fetchedLastPage,\n } = collection;\n\n const { options, fixedFooter, showInitialLoader } =\n usePlaceholderStateOptions(\n useBuildGroupedOptions({\n items: keyedItems.map(\n useBuildOption({\n filter,\n renderItem,\n }),\n ),\n renderSection,\n }),\n {\n collection,\n },\n );\n\n return (\n <SingleSelectFilterBase\n {...rest}\n fixedFooter={fixedFooter}\n infiniteScroll\n value={search.value}\n onChange={(e) => {\n collection.search(e.target.value);\n }}\n onFocus={onFocus}\n filter={filter}\n options={options}\n renderItem={renderItem}\n dropdownSelect={dropdownSelect}\n hasMore={!showInitialLoader && !fetchedLastPage}\n loadMore={collection.fetchNextPageIfNeeded}\n />\n );\n}\n\nexport const SingleSelectFilter = observer(_SingleSelectFilter);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAIA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,uBAAA,GAAAH,OAAA;AAIA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,2BAAA,GAAAP,OAAA;AACA,IAAAQ,sCAAA,GAAAR,OAAA;AAG2D,IAAAS,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAZ,wBAAAY,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAA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.stVars = exports.st = exports.namespace =
5
5
  var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
6
6
  // @ts-nocheck
7
7
 
8
- var _namespace_ = "SkeletonCard1736745282";
8
+ var _namespace_ = "SkeletonCard4174103827";
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": "SkeletonCard1736745282__root",
16
- "headerLoading": "SkeletonCard1736745282__headerLoading"
15
+ "root": "SkeletonCard4174103827__root",
16
+ "headerLoading": "SkeletonCard4174103827__headerLoading"
17
17
  };
18
18
  var keyframes = exports.keyframes = {};
19
19
  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/components/SkeletonCard/SkeletonCard.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"SkeletonCard1736745282\";\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\":\"SkeletonCard1736745282__root\",\"headerLoading\":\"SkeletonCard1736745282__headerLoading\"};\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,wBAAwB;AAC1C,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,8BAA8B;EAAC,eAAe,EAAC;AAAuC,CAAC;AAC7G,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/components/SkeletonCard/SkeletonCard.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"SkeletonCard4174103827\";\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\":\"SkeletonCard4174103827__root\",\"headerLoading\":\"SkeletonCard4174103827__headerLoading\"};\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,wBAAwB;AAC1C,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,8BAA8B;EAAC,eAAe,EAAC;AAAuC,CAAC;AAC7G,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_ = "SlidingModal1925921167";
8
+ var _namespace_ = "SlidingModal2022521490";
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": "SlidingModal1925921167__root"
15
+ "root": "SlidingModal2022521490__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/components/SlidingModal/SlidingModal.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"SlidingModal1925921167\";\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\":\"SlidingModal1925921167__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,wBAAwB;AAC1C,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;AAA8B,CAAC;AACrD,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/components/SlidingModal/SlidingModal.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"SlidingModal2022521490\";\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\":\"SlidingModal2022521490__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,wBAAwB;AAC1C,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;AAA8B,CAAC;AACrD,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":[]}
@@ -16,7 +16,7 @@ const SkeletonSummaryBar = () => /*#__PURE__*/_react.default.createElement(_desi
16
16
  __self: void 0,
17
17
  __source: {
18
18
  fileName: _jsxFileName,
19
- lineNumber: 44,
19
+ lineNumber: 49,
20
20
  columnNumber: 3
21
21
  }
22
22
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
@@ -26,7 +26,7 @@ const SkeletonSummaryBar = () => /*#__PURE__*/_react.default.createElement(_desi
26
26
  __self: void 0,
27
27
  __source: {
28
28
  fileName: _jsxFileName,
29
- lineNumber: 45,
29
+ lineNumber: 50,
30
30
  columnNumber: 5
31
31
  }
32
32
  }, /*#__PURE__*/_react.default.createElement(_designSystem.SkeletonLine, {
@@ -34,7 +34,7 @@ const SkeletonSummaryBar = () => /*#__PURE__*/_react.default.createElement(_desi
34
34
  __self: void 0,
35
35
  __source: {
36
36
  fileName: _jsxFileName,
37
- lineNumber: 46,
37
+ lineNumber: 51,
38
38
  columnNumber: 7
39
39
  }
40
40
  }), /*#__PURE__*/_react.default.createElement(_designSystem.SkeletonLine, {
@@ -42,7 +42,7 @@ const SkeletonSummaryBar = () => /*#__PURE__*/_react.default.createElement(_desi
42
42
  __self: void 0,
43
43
  __source: {
44
44
  fileName: _jsxFileName,
45
- lineNumber: 47,
45
+ lineNumber: 52,
46
46
  columnNumber: 7
47
47
  }
48
48
  }), /*#__PURE__*/_react.default.createElement(_designSystem.SkeletonLine, {
@@ -50,7 +50,7 @@ const SkeletonSummaryBar = () => /*#__PURE__*/_react.default.createElement(_desi
50
50
  __self: void 0,
51
51
  __source: {
52
52
  fileName: _jsxFileName,
53
- lineNumber: 48,
53
+ lineNumber: 53,
54
54
  columnNumber: 7
55
55
  }
56
56
  })));
@@ -68,7 +68,7 @@ const ErrorSummaryBar = ({
68
68
  __self: void 0,
69
69
  __source: {
70
70
  fileName: _jsxFileName,
71
- lineNumber: 62,
71
+ lineNumber: 67,
72
72
  columnNumber: 5
73
73
  }
74
74
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
@@ -80,7 +80,7 @@ const ErrorSummaryBar = ({
80
80
  __self: void 0,
81
81
  __source: {
82
82
  fileName: _jsxFileName,
83
- lineNumber: 63,
83
+ lineNumber: 68,
84
84
  columnNumber: 7
85
85
  }
86
86
  }, t('cairo.table.summaryBar.loadError')), /*#__PURE__*/_react.default.createElement(_designSystem.TextButton, {
@@ -91,7 +91,7 @@ const ErrorSummaryBar = ({
91
91
  __self: void 0,
92
92
  __source: {
93
93
  fileName: _jsxFileName,
94
- lineNumber: 72,
94
+ lineNumber: 77,
95
95
  columnNumber: 7
96
96
  }
97
97
  }, t('cairo.table.summaryBar.loadError.cta')));
@@ -109,7 +109,7 @@ const SummaryBarContent = ({
109
109
  __self: void 0,
110
110
  __source: {
111
111
  fileName: _jsxFileName,
112
- lineNumber: 89,
112
+ lineNumber: 94,
113
113
  columnNumber: 5
114
114
  }
115
115
  }, data.map(({
@@ -120,14 +120,14 @@ const SummaryBarContent = ({
120
120
  __self: void 0,
121
121
  __source: {
122
122
  fileName: _jsxFileName,
123
- lineNumber: 91,
123
+ lineNumber: 96,
124
124
  columnNumber: 9
125
125
  }
126
126
  }, /*#__PURE__*/_react.default.createElement(_designSystem.TableToolbar.Item, {
127
127
  __self: void 0,
128
128
  __source: {
129
129
  fileName: _jsxFileName,
130
- lineNumber: 92,
130
+ lineNumber: 97,
131
131
  columnNumber: 11
132
132
  }
133
133
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
@@ -135,14 +135,14 @@ const SummaryBarContent = ({
135
135
  __self: void 0,
136
136
  __source: {
137
137
  fileName: _jsxFileName,
138
- lineNumber: 93,
138
+ lineNumber: 98,
139
139
  columnNumber: 13
140
140
  }
141
141
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
142
142
  __self: void 0,
143
143
  __source: {
144
144
  fileName: _jsxFileName,
145
- lineNumber: 94,
145
+ lineNumber: 99,
146
146
  columnNumber: 15
147
147
  }
148
148
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
@@ -154,7 +154,7 @@ const SummaryBarContent = ({
154
154
  __self: void 0,
155
155
  __source: {
156
156
  fileName: _jsxFileName,
157
- lineNumber: 95,
157
+ lineNumber: 100,
158
158
  columnNumber: 17
159
159
  }
160
160
  }, /*#__PURE__*/_react.default.createElement(_Trans.Trans, {
@@ -171,7 +171,7 @@ const SummaryBarContent = ({
171
171
  __self: void 0,
172
172
  __source: {
173
173
  fileName: _jsxFileName,
174
- lineNumber: 110,
174
+ lineNumber: 115,
175
175
  columnNumber: 25
176
176
  }
177
177
  })
@@ -179,14 +179,14 @@ const SummaryBarContent = ({
179
179
  __self: void 0,
180
180
  __source: {
181
181
  fileName: _jsxFileName,
182
- lineNumber: 102,
182
+ lineNumber: 107,
183
183
  columnNumber: 19
184
184
  }
185
185
  }))))), /*#__PURE__*/_react.default.createElement(_designSystem.TableToolbar.Item, {
186
186
  __self: void 0,
187
187
  __source: {
188
188
  fileName: _jsxFileName,
189
- lineNumber: 118,
189
+ lineNumber: 123,
190
190
  columnNumber: 11
191
191
  }
192
192
  }, index !== data.length - 1 && /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
@@ -194,7 +194,7 @@ const SummaryBarContent = ({
194
194
  __self: void 0,
195
195
  __source: {
196
196
  fileName: _jsxFileName,
197
- lineNumber: 120,
197
+ lineNumber: 125,
198
198
  columnNumber: 15
199
199
  }
200
200
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Divider, {
@@ -203,7 +203,7 @@ const SummaryBarContent = ({
203
203
  __self: void 0,
204
204
  __source: {
205
205
  fileName: _jsxFileName,
206
- lineNumber: 121,
206
+ lineNumber: 126,
207
207
  columnNumber: 17
208
208
  }
209
209
  }))))));
@@ -219,7 +219,7 @@ const _SummaryBar = props => {
219
219
  __self: void 0,
220
220
  __source: {
221
221
  fileName: _jsxFileName,
222
- lineNumber: 134,
222
+ lineNumber: 139,
223
223
  columnNumber: 14
224
224
  }
225
225
  }),
@@ -228,7 +228,7 @@ const _SummaryBar = props => {
228
228
  __self: void 0,
229
229
  __source: {
230
230
  fileName: _jsxFileName,
231
- lineNumber: 135,
231
+ lineNumber: 140,
232
232
  columnNumber: 12
233
233
  }
234
234
  }),
@@ -237,7 +237,7 @@ const _SummaryBar = props => {
237
237
  __self: void 0,
238
238
  __source: {
239
239
  fileName: _jsxFileName,
240
- lineNumber: 136,
240
+ lineNumber: 141,
241
241
  columnNumber: 14
242
242
  }
243
243
  })
@@ -247,7 +247,7 @@ const _SummaryBar = props => {
247
247
  __self: void 0,
248
248
  __source: {
249
249
  fileName: _jsxFileName,
250
- lineNumber: 140,
250
+ lineNumber: 145,
251
251
  columnNumber: 5
252
252
  }
253
253
  }, contentByStatus[status]);
@@ -1 +1 @@
1
- {"version":3,"names":["_designSystem","require","_react","_interopRequireWildcard","_react2","_mobxReactLite","_useSelector","_Trans","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SkeletonSummaryBar","createElement","SkeletonGroup","dataHook","__self","__source","fileName","lineNumber","columnNumber","Box","gap","height","verticalAlign","SkeletonLine","width","ErrorSummaryBar","onRetry","translate","container","useWixPatternsContainer","useSelector","initTask","status","Text","weight","size","skin","secondary","TextButton","onClick","SummaryBarContent","data","TableToolbar","ItemGroup","map","title","value","index","Fragment","key","Item","Trans","i18nKey","values","components","length","Divider","direction","_SummaryBar","props","contentByStatus","loading","error","success","Table","SubToolbar","SummaryBar","exports","observer"],"sources":["../../../../src/components/SummaryBar/SummaryBar.tsx"],"sourcesContent":["import {\n Box,\n Divider,\n SkeletonGroup,\n SkeletonLine,\n Table,\n TableToolbar,\n Text,\n TextButton,\n} from '@wix/design-system';\nimport React, { Fragment } from 'react';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { observer } from 'mobx-react-lite';\nimport { useSelector } from '../../useSelector';\nimport { Trans } from '../Trans';\n\nexport interface SummaryItem {\n title: string;\n value: string;\n}\nexport type SummaryBarStatus = 'loading' | 'error' | 'success';\nexport type SummaryData = SummaryItem[];\n\nexport interface SummaryBarProps {\n /**\n * Summary data to show\n * @external\n */\n data: SummaryData;\n /**\n * The status of component's state. Can be loading, error, or success.\n * @external\n * @default success\n */\n status: SummaryBarStatus;\n /**\n * Function, which will be executed on `Reload` click.\n * @external\n */\n onRetry: () => void | Promise<void>;\n}\n\nconst SkeletonSummaryBar = () => (\n <SkeletonGroup dataHook=\"skeleton-summary-bar\">\n <Box gap=\"SP4\" height=\"18px\" verticalAlign=\"middle\">\n <SkeletonLine width=\"112px\" />\n <SkeletonLine width=\"112px\" />\n <SkeletonLine width=\"112px\" />\n </Box>\n </SkeletonGroup>\n);\n\nconst ErrorSummaryBar = ({\n onRetry,\n}: {\n onRetry: SummaryBarProps['onRetry'];\n}) => {\n const { translate: t, ...container } = useWixPatternsContainer();\n useSelector(() => container.initTask.status);\n\n return (\n <Box gap=\"3px\" dataHook=\"error-summary-bar\">\n <Text\n weight=\"thin\"\n size=\"small\"\n skin=\"standard\"\n secondary\n dataHook=\"summary-bar-error-text\"\n >\n {t('cairo.table.summaryBar.loadError')}\n </Text>\n <TextButton\n size=\"small\"\n weight=\"thin\"\n dataHook=\"summary-bar-retry-button\"\n onClick={onRetry}\n >\n {t('cairo.table.summaryBar.loadError.cta')}\n </TextButton>\n </Box>\n );\n};\n\nconst SummaryBarContent = ({ data }: { data: SummaryBarProps['data'] }) => {\n const { translate: t, ...container } = useWixPatternsContainer();\n useSelector(() => container.initTask.status);\n\n return (\n <TableToolbar.ItemGroup dataHook=\"summary-bar-content\">\n {data.map(({ title, value }, index) => (\n <Fragment key={index}>\n <TableToolbar.Item>\n <Box gap=\"3px\">\n <Box>\n <Text\n weight=\"thin\"\n size=\"small\"\n skin=\"standard\"\n secondary\n dataHook=\"summary-bar-item\"\n >\n <Trans\n i18nKey=\"cairo.table.summaryBar.list.item\"\n values={{\n title,\n value,\n }}\n components={{\n value: (\n <Text weight=\"normal\" size=\"small\" skin=\"standard\" />\n ),\n }}\n />\n </Text>\n </Box>\n </Box>\n </TableToolbar.Item>\n <TableToolbar.Item>\n {index !== data.length - 1 && (\n <Box height=\"18px\">\n <Divider direction=\"vertical\" dataHook=\"summary-bar-divider\" />\n </Box>\n )}\n </TableToolbar.Item>\n </Fragment>\n ))}\n </TableToolbar.ItemGroup>\n );\n};\n\nconst _SummaryBar = (props: SummaryBarProps) => {\n const { data, status, onRetry } = props;\n const contentByStatus = {\n loading: <SkeletonSummaryBar />,\n error: <ErrorSummaryBar onRetry={onRetry} />,\n success: <SummaryBarContent data={data} />,\n };\n\n return (\n <Table.SubToolbar dataHook=\"summary-bar\">\n {contentByStatus[status]}\n </Table.SubToolbar>\n );\n};\n\nexport const SummaryBar = observer(_SummaryBar);\n"],"mappings":";;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAUA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAA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AC9C,MAAM;IAAElB,IAAI;IAAET,MAAM;IAAEN;EAAQ,CAAC,GAAGiC,KAAK;EACvC,MAAMC,eAAe,GAAG;IACtBC,OAAO,eAAE9E,MAAA,CAAAa,OAAA,CAAAe,aAAA,CAACD,kBAAkB;MAAAI,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAA3B,YAAA;QAAA4B,UAAA;QAAAC,YAAA;MAAA;IAAA,CAAE,CAAC;IAC/B4C,KAAK,eAAE/E,MAAA,CAAAa,OAAA,CAAAe,aAAA,CAACc,eAAe;MAACC,OAAO,EAAEA,OAAQ;MAAAZ,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAA3B,YAAA;QAAA4B,UAAA;QAAAC,YAAA;MAAA;IAAA,CAAE,CAAC;IAC5C6C,OAAO,eAAEhF,MAAA,CAAAa,OAAA,CAAAe,aAAA,CAAC6B,iBAAiB;MAACC,IAAI,EAAEA,IAAK;MAAA3B,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAA3B,YAAA;QAAA4B,UAAA;QAAAC,YAAA;MAAA;IAAA,CAAE;EAC3C,CAAC;EAED,oBACEnC,MAAA,CAAAa,OAAA,CAAAe,aAAA,CAAC9B,aAAA,CAAAmF,KAAK,CAACC,UAAU;IAACpD,QAAQ,EAAC,aAAa;IAAAC,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA3B,YAAA;MAAA4B,UAAA;MAAAC,YAAA;IAAA;EAAA,GACrC0C,eAAe,CAAC5B,MAAM,CACP,CAAC;AAEvB,CAAC;AAEM,MAAMkC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,IAAAE,uBAAQ,EAACV,WAAW,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_designSystem","require","_react","_interopRequireWildcard","_react2","_mobxReactLite","_useSelector","_Trans","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SkeletonSummaryBar","createElement","SkeletonGroup","dataHook","__self","__source","fileName","lineNumber","columnNumber","Box","gap","height","verticalAlign","SkeletonLine","width","ErrorSummaryBar","onRetry","translate","container","useWixPatternsContainer","useSelector","initTask","status","Text","weight","size","skin","secondary","TextButton","onClick","SummaryBarContent","data","TableToolbar","ItemGroup","map","title","value","index","Fragment","key","Item","Trans","i18nKey","values","components","length","Divider","direction","_SummaryBar","props","contentByStatus","loading","error","success","Table","SubToolbar","SummaryBar","exports","observer"],"sources":["../../../../src/components/SummaryBar/SummaryBar.tsx"],"sourcesContent":["import {\n Box,\n Divider,\n SkeletonGroup,\n SkeletonLine,\n Table,\n TableToolbar,\n Text,\n TextButton,\n} from '@wix/design-system';\nimport React, { Fragment } from 'react';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { observer } from 'mobx-react-lite';\nimport { useSelector } from '../../useSelector';\nimport { Trans } from '../Trans';\n\nexport interface SummaryItem {\n title: string;\n value: string;\n}\nexport type SummaryBarStatus = 'loading' | 'error' | 'success';\nexport type SummaryData = SummaryItem[];\n\nexport interface SummaryBarProps {\n /**\n * Data to display in the summary bar.\n * @external\n */\n data: SummaryData;\n /**\n * Summary bar status.\n * <br><br>\n * Supported values:<br>\n * - `\"success\"`<br>\n * - `\"loading\"`<br>\n * - `\"error\"`\n * @external\n * @default success\n */\n status: SummaryBarStatus;\n /**\n * Function that is called every time **Reload** is clicked.\n * @external\n */\n onRetry: () => void | Promise<void>;\n}\n\nconst SkeletonSummaryBar = () => (\n <SkeletonGroup dataHook=\"skeleton-summary-bar\">\n <Box gap=\"SP4\" height=\"18px\" verticalAlign=\"middle\">\n <SkeletonLine width=\"112px\" />\n <SkeletonLine width=\"112px\" />\n <SkeletonLine width=\"112px\" />\n </Box>\n </SkeletonGroup>\n);\n\nconst ErrorSummaryBar = ({\n onRetry,\n}: {\n onRetry: SummaryBarProps['onRetry'];\n}) => {\n const { translate: t, ...container } = useWixPatternsContainer();\n useSelector(() => container.initTask.status);\n\n return (\n <Box gap=\"3px\" dataHook=\"error-summary-bar\">\n <Text\n weight=\"thin\"\n size=\"small\"\n skin=\"standard\"\n secondary\n dataHook=\"summary-bar-error-text\"\n >\n {t('cairo.table.summaryBar.loadError')}\n </Text>\n <TextButton\n size=\"small\"\n weight=\"thin\"\n dataHook=\"summary-bar-retry-button\"\n onClick={onRetry}\n >\n {t('cairo.table.summaryBar.loadError.cta')}\n </TextButton>\n </Box>\n );\n};\n\nconst SummaryBarContent = ({ data }: { data: SummaryBarProps['data'] }) => {\n const { translate: t, ...container } = useWixPatternsContainer();\n useSelector(() => container.initTask.status);\n\n return (\n <TableToolbar.ItemGroup dataHook=\"summary-bar-content\">\n {data.map(({ title, value }, index) => (\n <Fragment key={index}>\n <TableToolbar.Item>\n <Box gap=\"3px\">\n <Box>\n <Text\n weight=\"thin\"\n size=\"small\"\n skin=\"standard\"\n secondary\n dataHook=\"summary-bar-item\"\n >\n <Trans\n i18nKey=\"cairo.table.summaryBar.list.item\"\n values={{\n title,\n value,\n }}\n components={{\n value: (\n <Text weight=\"normal\" size=\"small\" skin=\"standard\" />\n ),\n }}\n />\n </Text>\n </Box>\n </Box>\n </TableToolbar.Item>\n <TableToolbar.Item>\n {index !== data.length - 1 && (\n <Box height=\"18px\">\n <Divider direction=\"vertical\" dataHook=\"summary-bar-divider\" />\n </Box>\n )}\n </TableToolbar.Item>\n </Fragment>\n ))}\n </TableToolbar.ItemGroup>\n );\n};\n\nconst _SummaryBar = (props: SummaryBarProps) => {\n const { data, status, onRetry } = props;\n const contentByStatus = {\n loading: <SkeletonSummaryBar />,\n error: <ErrorSummaryBar onRetry={onRetry} />,\n success: <SummaryBarContent data={data} />,\n };\n\n return (\n <Table.SubToolbar dataHook=\"summary-bar\">\n {contentByStatus[status]}\n </Table.SubToolbar>\n );\n};\n\nexport const SummaryBar = observer(_SummaryBar);\n"],"mappings":";;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAUA,IAAAC,MAAA,GAAAC,uBAAA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CACX,CACX,CACqB,CAAC;AAE7B,CAAC;AAED,MAAMwC,WAAW,GAAIC,KAAsB,IAAK;EAC9C,MAAM;IAAElB,IAAI;IAAET,MAAM;IAAEN;EAAQ,CAAC,GAAGiC,KAAK;EACvC,MAAMC,eAAe,GAAG;IACtBC,OAAO,eAAE9E,MAAA,CAAAa,OAAA,CAAAe,aAAA,CAACD,kBAAkB;MAAAI,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAA3B,YAAA;QAAA4B,UAAA;QAAAC,YAAA;MAAA;IAAA,CAAE,CAAC;IAC/B4C,KAAK,eAAE/E,MAAA,CAAAa,OAAA,CAAAe,aAAA,CAACc,eAAe;MAACC,OAAO,EAAEA,OAAQ;MAAAZ,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAA3B,YAAA;QAAA4B,UAAA;QAAAC,YAAA;MAAA;IAAA,CAAE,CAAC;IAC5C6C,OAAO,eAAEhF,MAAA,CAAAa,OAAA,CAAAe,aAAA,CAAC6B,iBAAiB;MAACC,IAAI,EAAEA,IAAK;MAAA3B,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAA3B,YAAA;QAAA4B,UAAA;QAAAC,YAAA;MAAA;IAAA,CAAE;EAC3C,CAAC;EAED,oBACEnC,MAAA,CAAAa,OAAA,CAAAe,aAAA,CAAC9B,aAAA,CAAAmF,KAAK,CAACC,UAAU;IAACpD,QAAQ,EAAC,aAAa;IAAAC,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA3B,YAAA;MAAA4B,UAAA;MAAAC,YAAA;IAAA;EAAA,GACrC0C,eAAe,CAAC5B,MAAM,CACP,CAAC;AAEvB,CAAC;AAEM,MAAMkC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,IAAAE,uBAAQ,EAACV,WAAW,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_TableVirtual","_react2","_TableCompat","_jsxFileName","Table","props","rowHeight","estimatedRowHeight","isVirtual","tableProps","container","useWixPatternsContainer","internalExperiments","isVirtualExperiment","enabled","rowDetails","default","createElement","TableVirtual","_extends2","__self","__source","fileName","lineNumber","columnNumber","TableCompat"],"sources":["../../../../src/components/Table/Table.tsx"],"sourcesContent":["import React from 'react';\nimport { CollectionState, FiltersMap } from '@wix/bex-core';\nimport { TableVirtual } from './TableVirtual';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { CollectionTableBaseProps } from '../CollectionTable';\nimport { TableState } from '../../state';\nimport { TableCompat } from './TableCompat';\n\nexport interface TableProps<T, F extends FiltersMap>\n extends CollectionTableBaseProps<T, F> {\n rowHeight?: number | ((item: T, index: number) => number);\n estimatedRowHeight?: number;\n /**\n * A collection state instance created with [useCollection](./?path=/story/common-hooks--usecollection)\n * @external\n */\n state: CollectionState<T, F> | TableState<T, F>;\n\n // a flag to opt out from virtualization\n isVirtual?: boolean;\n}\n\nexport function Table<T, F extends FiltersMap = FiltersMap>(\n props: TableProps<T, F>,\n) {\n const { rowHeight, estimatedRowHeight, isVirtual, ...tableProps } = props;\n const container = useWixPatternsContainer();\n\n const { internalExperiments } = container;\n\n const isVirtualExperiment = internalExperiments?.enabled(\n 'specs.Cairo.TableVirtualizationAsDefault',\n );\n\n return isVirtualExperiment && isVirtual !== false && !props.rowDetails ? (\n <TableVirtual\n {...tableProps}\n rowHeight={rowHeight}\n estimatedRowHeight={estimatedRowHeight}\n />\n ) : (\n <TableCompat {...tableProps} />\n );\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAH,OAAA;AAA4C,IAAAI,YAAA;AAgBrC,SAASC,KAAKA,CACnBC,KAAuB,EACvB;EACA,MAAM;IAAEC,SAAS;IAAEC,kBAAkB;IAAEC,SAAS;IAAE,GAAGC;EAAW,CAAC,GAAGJ,KAAK;EACzE,MAAMK,SAAS,GAAG,IAAAC,+BAAuB,EAAC,CAAC;EAE3C,MAAM;IAAEC;EAAoB,CAAC,GAAGF,SAAS;EAEzC,MAAMG,mBAAmB,GAAGD,mBAAmB,oBAAnBA,mBAAmB,CAAEE,OAAO,CACtD,0CACF,CAAC;EAED,OAAOD,mBAAmB,IAAIL,SAAS,KAAK,KAAK,IAAI,CAACH,KAAK,CAACU,UAAU,gBACpElB,MAAA,CAAAmB,OAAA,CAAAC,aAAA,CAACjB,aAAA,CAAAkB,YAAY,MAAAC,SAAA,CAAAH,OAAA,MACPP,UAAU;IACdH,SAAS,EAAEA,SAAU;IACrBC,kBAAkB,EAAEA,kBAAmB;IAAAa,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAnB,YAAA;MAAAoB,UAAA;MAAAC,YAAA;IAAA;EAAA,EACxC,CAAC,gBAEF3B,MAAA,CAAAmB,OAAA,CAAAC,aAAA,CAACf,YAAA,CAAAuB,WAAW,MAAAN,SAAA,CAAAH,OAAA,MAAKP,UAAU;IAAAW,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAnB,YAAA;MAAAoB,UAAA;MAAAC,YAAA;IAAA;EAAA,EAAG,CAC/B;AACH","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_TableVirtual","_react2","_TableCompat","_jsxFileName","Table","props","rowHeight","estimatedRowHeight","isVirtual","tableProps","container","useWixPatternsContainer","internalExperiments","isVirtualExperiment","enabled","rowDetails","default","createElement","TableVirtual","_extends2","__self","__source","fileName","lineNumber","columnNumber","TableCompat"],"sources":["../../../../src/components/Table/Table.tsx"],"sourcesContent":["import React from 'react';\nimport { CollectionState, FiltersMap } from '@wix/bex-core';\nimport { TableVirtual } from './TableVirtual';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { CollectionTableBaseProps } from '../CollectionTable';\nimport { TableState } from '../../state';\nimport { TableCompat } from './TableCompat';\n\nexport interface TableProps<T, F extends FiltersMap>\n extends CollectionTableBaseProps<T, F> {\n rowHeight?: number | ((item: T, index: number) => number);\n estimatedRowHeight?: number;\n /**\n * A collection state instance created using the [useCollection](./?path=/story/common-hooks--usecollection) hook, responsible for managing the data displayed in the table.\n * @external\n */\n state: CollectionState<T, F> | TableState<T, F>;\n\n // a flag to opt out from virtualization\n isVirtual?: boolean;\n}\n\nexport function Table<T, F extends FiltersMap = FiltersMap>(\n props: TableProps<T, F>,\n) {\n const { rowHeight, estimatedRowHeight, isVirtual, ...tableProps } = props;\n const container = useWixPatternsContainer();\n\n const { internalExperiments } = container;\n\n const isVirtualExperiment = internalExperiments?.enabled(\n 'specs.Cairo.TableVirtualizationAsDefault',\n );\n\n return isVirtualExperiment && isVirtual !== false && !props.rowDetails ? (\n <TableVirtual\n {...tableProps}\n rowHeight={rowHeight}\n estimatedRowHeight={estimatedRowHeight}\n />\n ) : (\n <TableCompat {...tableProps} />\n );\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAH,OAAA;AAA4C,IAAAI,YAAA;AAgBrC,SAASC,KAAKA,CACnBC,KAAuB,EACvB;EACA,MAAM;IAAEC,SAAS;IAAEC,kBAAkB;IAAEC,SAAS;IAAE,GAAGC;EAAW,CAAC,GAAGJ,KAAK;EACzE,MAAMK,SAAS,GAAG,IAAAC,+BAAuB,EAAC,CAAC;EAE3C,MAAM;IAAEC;EAAoB,CAAC,GAAGF,SAAS;EAEzC,MAAMG,mBAAmB,GAAGD,mBAAmB,oBAAnBA,mBAAmB,CAAEE,OAAO,CACtD,0CACF,CAAC;EAED,OAAOD,mBAAmB,IAAIL,SAAS,KAAK,KAAK,IAAI,CAACH,KAAK,CAACU,UAAU,gBACpElB,MAAA,CAAAmB,OAAA,CAAAC,aAAA,CAACjB,aAAA,CAAAkB,YAAY,MAAAC,SAAA,CAAAH,OAAA,MACPP,UAAU;IACdH,SAAS,EAAEA,SAAU;IACrBC,kBAAkB,EAAEA,kBAAmB;IAAAa,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAnB,YAAA;MAAAoB,UAAA;MAAAC,YAAA;IAAA;EAAA,EACxC,CAAC,gBAEF3B,MAAA,CAAAmB,OAAA,CAAAC,aAAA,CAACf,YAAA,CAAAuB,WAAW,MAAAN,SAAA,CAAAH,OAAA,MAAKP,UAAU;IAAAW,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAnB,YAAA;MAAAoB,UAAA;MAAAC,YAAA;IAAA;EAAA,EAAG,CAC/B;AACH","ignoreList":[]}
@@ -5,15 +5,15 @@ 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_ = "TableVirtual3837879508";
8
+ var _namespace_ = "TableVirtual2897528826";
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": "TableVirtual3837879508__root",
16
- "thead": "TableVirtual3837879508__thead"
15
+ "root": "TableVirtual2897528826__root",
16
+ "thead": "TableVirtual2897528826__thead"
17
17
  };
18
18
  var keyframes = exports.keyframes = {};
19
19
  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/components/Table/TableVirtual.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"TableVirtual3837879508\";\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\":\"TableVirtual3837879508__root\",\"thead\":\"TableVirtual3837879508__thead\"};\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,wBAAwB;AAC1C,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,8BAA8B;EAAC,OAAO,EAAC;AAA+B,CAAC;AAC7F,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/components/Table/TableVirtual.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"TableVirtual2897528826\";\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\":\"TableVirtual2897528826__root\",\"thead\":\"TableVirtual2897528826__thead\"};\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,wBAAwB;AAC1C,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,8BAA8B;EAAC,OAAO,EAAC;AAA+B,CAAC;AAC7F,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":[]}