@onewelcome/react-lib-components 13.3.0-alpha.2 → 13.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +2 -2
  2. package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.es.js +5 -5
  3. package/dist/components/Button/BaseButton.module.scss.cjs.js +2 -2
  4. package/dist/components/Button/BaseButton.module.scss.es.js +4 -4
  5. package/dist/components/Button/Button.module.scss.cjs.js +2 -2
  6. package/dist/components/Button/Button.module.scss.es.js +17 -17
  7. package/dist/components/Button/IconButton.module.scss.cjs.js +2 -2
  8. package/dist/components/Button/IconButton.module.scss.es.js +18 -18
  9. package/dist/components/ContextMenu/ContextMenu.module.scss.cjs.js +2 -2
  10. package/dist/components/ContextMenu/ContextMenu.module.scss.es.js +6 -6
  11. package/dist/components/ContextMenu/ContextMenuDivider.module.scss.cjs.js +2 -2
  12. package/dist/components/ContextMenu/ContextMenuDivider.module.scss.es.js +2 -2
  13. package/dist/components/ContextMenu/ContextMenuItem.module.scss.cjs.js +2 -2
  14. package/dist/components/ContextMenu/ContextMenuItem.module.scss.es.js +3 -3
  15. package/dist/components/DataGrid/DataGrid.module.scss.cjs.js +2 -2
  16. package/dist/components/DataGrid/DataGrid.module.scss.es.js +8 -8
  17. package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +2 -2
  18. package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.es.js +6 -6
  19. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +2 -2
  20. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.es.js +7 -7
  21. package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +2 -2
  22. package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.es.js +2 -2
  23. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +2 -2
  24. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.es.js +5 -5
  25. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +2 -2
  26. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.es.js +4 -4
  27. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +2 -2
  28. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.es.js +5 -5
  29. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +2 -2
  30. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.es.js +24 -24
  31. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js +1 -1
  32. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js.map +1 -1
  33. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.es.js +1 -1
  34. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.es.js.map +1 -1
  35. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +2 -2
  36. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.es.js +9 -9
  37. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js +1 -1
  38. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js.map +1 -1
  39. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.es.js +25 -44
  40. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.es.js.map +1 -1
  41. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js +1 -1
  42. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js.map +1 -1
  43. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.es.js +4 -15
  44. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.es.js.map +1 -1
  45. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js +1 -1
  46. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js.map +1 -1
  47. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.es.js +6 -56
  48. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.es.js.map +1 -1
  49. package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.cjs.js.map +1 -1
  50. package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.es.js.map +1 -1
  51. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +2 -2
  52. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.es.js +10 -10
  53. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +2 -2
  54. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.es.js +17 -17
  55. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +2 -2
  56. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.es.js +4 -4
  57. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +2 -2
  58. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.es.js +11 -11
  59. package/dist/components/DatePicker/DatePicker.module.scss.cjs.js +2 -2
  60. package/dist/components/DatePicker/DatePicker.module.scss.es.js +31 -31
  61. package/dist/components/Form/Checkbox/Checkbox.module.scss.cjs.js +2 -2
  62. package/dist/components/Form/Checkbox/Checkbox.module.scss.es.js +13 -13
  63. package/dist/components/Form/Fieldset/Fieldset.module.scss.cjs.js +2 -2
  64. package/dist/components/Form/Fieldset/Fieldset.module.scss.es.js +6 -6
  65. package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +2 -2
  66. package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.es.js +18 -18
  67. package/dist/components/Form/FileUpload/FileUpload.module.scss.cjs.js +2 -2
  68. package/dist/components/Form/FileUpload/FileUpload.module.scss.es.js +16 -16
  69. package/dist/components/Form/Form.module.scss.cjs.js +2 -2
  70. package/dist/components/Form/Form.module.scss.es.js +2 -2
  71. package/dist/components/Form/FormControl/FormControl.module.scss.cjs.js +2 -2
  72. package/dist/components/Form/FormControl/FormControl.module.scss.es.js +13 -13
  73. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.cjs.js +2 -2
  74. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.es.js +6 -6
  75. package/dist/components/Form/FormGroup/FormGroup.module.scss.cjs.js +2 -2
  76. package/dist/components/Form/FormGroup/FormGroup.module.scss.es.js +3 -3
  77. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.cjs.js +2 -2
  78. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.es.js +4 -4
  79. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +2 -2
  80. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.es.js +6 -6
  81. package/dist/components/Form/Input/Input.cjs.js +1 -1
  82. package/dist/components/Form/Input/Input.cjs.js.map +1 -1
  83. package/dist/components/Form/Input/Input.es.js +46 -4
  84. package/dist/components/Form/Input/Input.es.js.map +1 -1
  85. package/dist/components/Form/Input/Input.module.scss.cjs.js +2 -2
  86. package/dist/components/Form/Input/Input.module.scss.es.js +8 -8
  87. package/dist/components/Form/Label/Label.module.scss.cjs.js +2 -2
  88. package/dist/components/Form/Label/Label.module.scss.es.js +2 -2
  89. package/dist/components/Form/Radio/Radio.module.scss.cjs.js +2 -2
  90. package/dist/components/Form/Radio/Radio.module.scss.es.js +11 -11
  91. package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js +1 -1
  92. package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js.map +1 -1
  93. package/dist/components/Form/Select/MultiSelect/MultiOption.es.js +2 -3
  94. package/dist/components/Form/Select/MultiSelect/MultiOption.es.js.map +1 -1
  95. package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js +1 -1
  96. package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js.map +1 -1
  97. package/dist/components/Form/Select/MultiSelect/MultiSelect.es.js +6 -135
  98. package/dist/components/Form/Select/MultiSelect/MultiSelect.es.js.map +1 -1
  99. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +2 -2
  100. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js +15 -18
  101. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js.map +1 -1
  102. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +2 -2
  103. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.es.js +2 -2
  104. package/dist/components/Form/Select/MultiSelect/SelectedOptions.cjs.js.map +1 -1
  105. package/dist/components/Form/Select/MultiSelect/SelectedOptions.es.js.map +1 -1
  106. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +2 -2
  107. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.es.js +4 -4
  108. package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js +1 -1
  109. package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js.map +1 -1
  110. package/dist/components/Form/Select/MultiSelect/useSearch.es.js +2 -35
  111. package/dist/components/Form/Select/MultiSelect/useSearch.es.js.map +1 -1
  112. package/dist/components/Form/Select/Select.interfaces.cjs.js.map +1 -1
  113. package/dist/components/Form/Select/Select.interfaces.es.js.map +1 -1
  114. package/dist/components/Form/Select/SingleSelect/Option.cjs.js +1 -1
  115. package/dist/components/Form/Select/SingleSelect/Option.cjs.js.map +1 -1
  116. package/dist/components/Form/Select/SingleSelect/Option.es.js +2 -3
  117. package/dist/components/Form/Select/SingleSelect/Option.es.js.map +1 -1
  118. package/dist/components/Form/Select/SingleSelect/Select.cjs.js +1 -1
  119. package/dist/components/Form/Select/SingleSelect/Select.cjs.js.map +1 -1
  120. package/dist/components/Form/Select/SingleSelect/Select.es.js +4 -122
  121. package/dist/components/Form/Select/SingleSelect/Select.es.js.map +1 -1
  122. package/dist/components/Form/Select/SingleSelect/Select.module.scss.cjs.js +2 -2
  123. package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js +17 -20
  124. package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js.map +1 -1
  125. package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js +1 -1
  126. package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js.map +1 -1
  127. package/dist/components/Form/Select/SingleSelect/useSearch.es.js +2 -32
  128. package/dist/components/Form/Select/SingleSelect/useSearch.es.js.map +1 -1
  129. package/dist/components/Form/Select/useAddNewBtn.module.scss.cjs.js +2 -2
  130. package/dist/components/Form/Select/useAddNewBtn.module.scss.es.js +4 -4
  131. package/dist/components/Form/Textarea/Textarea.module.scss.cjs.js +2 -2
  132. package/dist/components/Form/Textarea/Textarea.module.scss.es.js +6 -6
  133. package/dist/components/Form/Toggle/Toggle.module.scss.cjs.js +2 -2
  134. package/dist/components/Form/Toggle/Toggle.module.scss.es.js +18 -18
  135. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +2 -2
  136. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.es.js +5 -5
  137. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +2 -2
  138. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.es.js +5 -5
  139. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +2 -2
  140. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.es.js +3 -3
  141. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +2 -2
  142. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.es.js +5 -5
  143. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +2 -2
  144. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.es.js +3 -3
  145. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +2 -2
  146. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.es.js +8 -8
  147. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +2 -2
  148. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.es.js +6 -6
  149. package/dist/components/Icon/Icon.module.scss.cjs.js +2 -2
  150. package/dist/components/Icon/Icon.module.scss.es.js +108 -108
  151. package/dist/components/Layout/ActionBar/ActionBar.module.scss.cjs.js +2 -2
  152. package/dist/components/Layout/ActionBar/ActionBar.module.scss.es.js +10 -10
  153. package/dist/components/Layout/Card/Card.module.scss.cjs.js +2 -2
  154. package/dist/components/Layout/Card/Card.module.scss.es.js +12 -12
  155. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +2 -2
  156. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.es.js +19 -19
  157. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +2 -2
  158. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.es.js +4 -4
  159. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +2 -2
  160. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.es.js +2 -2
  161. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +2 -2
  162. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.es.js +3 -3
  163. package/dist/components/Link/Link.module.scss.cjs.js +2 -2
  164. package/dist/components/Link/Link.module.scss.es.js +17 -17
  165. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +2 -2
  166. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.es.js +11 -11
  167. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +2 -2
  168. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.es.js +22 -22
  169. package/dist/components/Notifications/Banner/Banner.module.scss.cjs.js +2 -2
  170. package/dist/components/Notifications/Banner/Banner.module.scss.es.js +9 -9
  171. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.cjs.js +2 -2
  172. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.es.js +5 -5
  173. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +2 -2
  174. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.es.js +4 -4
  175. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +2 -2
  176. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.es.js +2 -2
  177. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +2 -2
  178. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.es.js +6 -6
  179. package/dist/components/Notifications/Dialog/Dialog.module.scss.cjs.js +2 -2
  180. package/dist/components/Notifications/Dialog/Dialog.module.scss.es.js +4 -4
  181. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +2 -2
  182. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.es.js +3 -3
  183. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +2 -2
  184. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.es.js +10 -10
  185. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.cjs.js +2 -2
  186. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.es.js +13 -13
  187. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +2 -2
  188. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.es.js +2 -2
  189. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +2 -2
  190. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.es.js +2 -2
  191. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +2 -2
  192. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.es.js +10 -10
  193. package/dist/components/Pagination/Pagination.module.scss.cjs.js +2 -2
  194. package/dist/components/Pagination/Pagination.module.scss.es.js +15 -15
  195. package/dist/components/Popover/Popover.module.scss.cjs.js +2 -2
  196. package/dist/components/Popover/Popover.module.scss.es.js +3 -3
  197. package/dist/components/ProgressBar/ProgressBar.module.scss.cjs.js +2 -2
  198. package/dist/components/ProgressBar/ProgressBar.module.scss.es.js +9 -9
  199. package/dist/components/Skeleton/Skeleton.module.scss.cjs.js +2 -2
  200. package/dist/components/Skeleton/Skeleton.module.scss.es.js +5 -5
  201. package/dist/components/Spinner/Spinner.module.scss.cjs.js +2 -2
  202. package/dist/components/Spinner/Spinner.module.scss.es.js +3 -3
  203. package/dist/components/Stepper/Step.module.scss.cjs.js +2 -2
  204. package/dist/components/Stepper/Step.module.scss.es.js +22 -22
  205. package/dist/components/Stepper/Stepper.module.scss.cjs.js +2 -2
  206. package/dist/components/Stepper/Stepper.module.scss.es.js +4 -4
  207. package/dist/components/Tabs/Tab.module.scss.cjs.js +2 -2
  208. package/dist/components/Tabs/Tab.module.scss.es.js +3 -3
  209. package/dist/components/Tabs/TabButton.module.scss.cjs.js +2 -2
  210. package/dist/components/Tabs/TabButton.module.scss.es.js +12 -12
  211. package/dist/components/Tabs/Tabs.module.scss.cjs.js +2 -2
  212. package/dist/components/Tabs/Tabs.module.scss.es.js +10 -10
  213. package/dist/components/Tag/RemoveButton.module.scss.cjs.js +2 -2
  214. package/dist/components/Tag/RemoveButton.module.scss.es.js +3 -3
  215. package/dist/components/Tag/Tag.cjs.js +1 -1
  216. package/dist/components/Tag/Tag.cjs.js.map +1 -1
  217. package/dist/components/Tag/Tag.es.js +1 -1
  218. package/dist/components/Tag/Tag.es.js.map +1 -1
  219. package/dist/components/Tag/Tag.module.scss.cjs.js +2 -2
  220. package/dist/components/Tag/Tag.module.scss.es.js +6 -6
  221. package/dist/components/TextEllipsis/TextEllipsis.module.scss.cjs.js +2 -2
  222. package/dist/components/TextEllipsis/TextEllipsis.module.scss.es.js +3 -3
  223. package/dist/components/Tiles/Tile.module.scss.cjs.js +2 -2
  224. package/dist/components/Tiles/Tile.module.scss.es.js +8 -8
  225. package/dist/components/Tiles/Tiles.module.scss.cjs.js +2 -2
  226. package/dist/components/Tiles/Tiles.module.scss.es.js +2 -2
  227. package/dist/components/Tooltip/Tooltip.module.scss.cjs.js +2 -2
  228. package/dist/components/Tooltip/Tooltip.module.scss.es.js +28 -28
  229. package/dist/components/Typography/Typography.module.scss.cjs.js +2 -2
  230. package/dist/components/Typography/Typography.module.scss.es.js +13 -13
  231. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +2 -2
  232. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.es.js +5 -5
  233. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +2 -2
  234. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.es.js +14 -14
  235. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +2 -2
  236. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.es.js +3 -3
  237. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js +2 -2
  238. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js +7 -7
  239. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js +2 -2
  240. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js +13 -13
  241. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.cjs.js +2 -2
  242. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.es.js +3 -3
  243. package/dist/index.d.ts +2 -62
  244. package/dist/readyclasses.module.scss.cjs.js +2 -2
  245. package/dist/readyclasses.module.scss.es.js +5 -5
  246. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridFilterTag.es.js","sources":["../../../../src/components/DataGrid/DataGridFilters/DataGridFilterTag.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentPropsWithRef, ForwardRefRenderFunction, Fragment, useMemo } from \"react\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport { RemoveButton } from \"../../Tag/RemoveButton\";\nimport { Typography } from \"../../Typography/Typography\";\nimport classes from \"./DataGridFilter.module.scss\";\nimport {\n Filter,\n FilterEditorMode,\n TagTranslations,\n DataGridColumnMetadata\n} from \"./DataGridFilters.interfaces\";\n\nexport interface DataGridFilterTagProps extends ComponentPropsWithRef<\"div\"> {\n customEditTagContent?: React.ReactElement;\n triggerRef: React.Ref<HTMLButtonElement>;\n filter?: Filter;\n mode: FilterEditorMode;\n onFilterRemove?: () => void;\n onFilterOpen: () => void;\n translations?: TagTranslations;\n dateTagCaption?: string;\n columnsMetadata?: DataGridColumnMetadata[];\n}\n\nconst EditTagContent = ({\n filter,\n or,\n other,\n columnsMetadata\n}: {\n filter: Filter;\n or: string;\n other: string;\n columnsMetadata?: DataGridColumnMetadata[];\n}) => {\n const { column, operator, value } = filter;\n const columnMetadata = columnsMetadata?.find(meta => meta.name === column);\n const columnHeadlineWithFallback = columnMetadata?.headline || column;\n const primaryValue = value[0];\n\n // Resolve a display label for the primary shown value when it isn't part of the column's\n // known `defaultValues` (e.g. a value picked from an async column's search results, whose page\n // may no longer be loaded) — mirrors DataGridFilterValueSelect's own label resolution.\n const resolvedPrimaryLabel = useMemo(() => {\n if (!primaryValue || !columnMetadata?.resolveValueLabels) {\n return undefined;\n }\n if (columnMetadata.defaultValues?.includes(primaryValue)) {\n return undefined;\n }\n return columnMetadata.resolveValueLabels([primaryValue])[0]?.label;\n }, [primaryValue, columnMetadata]);\n\n return (\n <Fragment>\n {columnHeadlineWithFallback} {operator?.name}{\" \"}\n {value.length > 0 && <b>{resolvedPrimaryLabel ?? primaryValue}</b>}\n {value.length >= 2 && (\n <>\n {\" \"}\n {or}{\" \"}\n <b>\n {value.length - 1} {other}\n </b>\n </>\n )}\n </Fragment>\n );\n};\n\nexport const DataGridFilterTagComponent: ForwardRefRenderFunction<\n HTMLDivElement,\n DataGridFilterTagProps\n> = (\n {\n triggerRef,\n filter,\n mode,\n onFilterRemove,\n onFilterOpen,\n translations,\n dateTagCaption,\n customEditTagContent,\n columnsMetadata,\n ...rest\n }: DataGridFilterTagProps,\n ref\n) => {\n const {\n addButtonCaption = \"Add filter\",\n or = \"or\",\n other = \"other\",\n dateIs = \"Date is\"\n } = translations || {};\n const shouldRenderAddTag = mode === \"ADD\";\n const shouldRenderEditTag = mode === \"EDIT\" && filter;\n const shouldRenderAddDateTag = mode === \"ADD_DATE\";\n\n return (\n <div {...rest} ref={ref} className={classes[\"filter-wrapper\"]}>\n <button\n ref={triggerRef}\n type=\"button\"\n className={classes[\"filter-button\"]}\n onClick={e => {\n e.preventDefault();\n onFilterOpen();\n }}\n >\n {shouldRenderAddTag && (\n <Fragment>\n <Icon icon={Icons.AddCircle} />\n <Typography variant=\"body\" className={classes[\"caption\"]}>\n {addButtonCaption}\n </Typography>\n </Fragment>\n )}\n {shouldRenderEditTag && (\n <Typography variant=\"body\" className={classes[\"caption\"]}>\n {customEditTagContent ? (\n React.cloneElement(customEditTagContent, { filter })\n ) : (\n <EditTagContent\n filter={filter}\n or={or}\n other={other}\n columnsMetadata={columnsMetadata}\n />\n )}\n </Typography>\n )}\n {shouldRenderAddDateTag && (\n <Fragment>\n <Icon icon={Icons.Calendar} />\n <Typography variant=\"body\" className={classes[\"caption\"]}>\n {dateIs} <b>{dateTagCaption}</b>\n </Typography>\n </Fragment>\n )}\n </button>\n {shouldRenderEditTag && (\n <RemoveButton className={classes[\"remove-button\"]} onRemove={onFilterRemove} />\n )}\n </div>\n );\n};\n\nexport const DataGridFilterTag = React.forwardRef(DataGridFilterTagComponent);\n"],"names":[],"mappings":";;;;;AAwCA,MAAM,iBAAiB,CAAC;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAKM;AACJ,QAAM,EAAE,QAAQ,UAAU,MAAA,IAAU;AACpC,QAAM,iBAAiB,mDAAiB,KAAK,CAAA,SAAQ,KAAK,SAAS;AACnE,QAAM,8BAA6B,iDAAgB,aAAY;AAC/D,QAAM,eAAe,MAAM,CAAC;AAK5B,QAAM,uBAAuB,QAAQ,MAAM;;AACzC,QAAI,CAAC,gBAAgB,EAAC,iDAAgB,qBAAoB;AACxD,aAAO;AAAA,IACT;AACA,SAAI,oBAAe,kBAAf,mBAA8B,SAAS,eAAe;AACxD,aAAO;AAAA,IACT;AACA,YAAO,oBAAe,mBAAmB,CAAC,YAAY,CAAC,EAAE,CAAC,MAAnD,mBAAsD;AAAA,EAC/D,GAAG,CAAC,cAAc,cAAc,CAAC;AAEjC,SACE,sBAAA,cAAC,UAAA,MACE,4BAA2B,KAAE,qCAAU,MAAM,KAC7C,MAAM,SAAS,KAAK,sBAAA,cAAC,KAAA,MAAG,wBAAwB,YAAa,GAC7D,MAAM,UAAU,KACf,sBAAA,cAAA,MAAA,UAAA,MACG,KACA,IAAI,KACL,sBAAA,cAAC,KAAA,MACE,MAAM,SAAS,GAAE,KAAE,KACtB,CACF,CAEJ;AAEJ;AAEO,MAAM,6BAGT,CACF;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACA,QACG;AACH,QAAM;AAAA,IACJ,mBAAmB;AAAA,IACnB,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,SAAS;AAAA,EAAA,IACP,gBAAgB,CAAA;AACpB,QAAM,qBAAqB,SAAS;AACpC,QAAM,sBAAsB,SAAS,UAAU;AAC/C,QAAM,yBAAyB,SAAS;AAExC,SACE,sBAAA,cAAC,SAAK,GAAG,MAAM,KAAU,WAAW,QAAQ,gBAAgB,EAAA,GAC1D,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAK;AAAA,MACL,MAAK;AAAA,MACL,WAAW,QAAQ,eAAe;AAAA,MAClC,SAAS,CAAA,MAAK;AACZ,UAAE,eAAA;AACF,qBAAA;AAAA,MACF;AAAA,IAAA;AAAA,IAEC,sBACC,sBAAA,cAAC,UAAA,0CACE,MAAA,EAAK,MAAM,MAAM,UAAA,CAAW,GAC7B,sBAAA,cAAC,YAAA,EAAW,SAAQ,QAAO,WAAW,QAAQ,SAAS,EAAA,GACpD,gBACH,CACF;AAAA,IAED,uBACC,sBAAA,cAAC,YAAA,EAAW,SAAQ,QAAO,WAAW,QAAQ,SAAS,EAAA,GACpD,uBACC,MAAM,aAAa,sBAAsB,EAAE,OAAA,CAAQ,IAEnD,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,IAAA,CAGN;AAAA,IAED,8DACE,UAAA,MACC,sBAAA,cAAC,QAAK,MAAM,MAAM,SAAA,CAAU,GAC5B,sBAAA,cAAC,YAAA,EAAW,SAAQ,QAAO,WAAW,QAAQ,SAAS,EAAA,GACpD,QAAO,KAAC,sBAAA,cAAC,KAAA,MAAG,cAAe,CAC9B,CACF;AAAA,EAAA,GAGH,uBACC,sBAAA,cAAC,cAAA,EAAa,WAAW,QAAQ,eAAe,GAAG,UAAU,eAAA,CAAgB,CAEjF;AAEJ;AAEO,MAAM,oBAAoB,MAAM,WAAW,0BAA0B;"}
1
+ {"version":3,"file":"DataGridFilterTag.es.js","sources":["../../../../src/components/DataGrid/DataGridFilters/DataGridFilterTag.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentPropsWithRef, ForwardRefRenderFunction, Fragment } from \"react\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport { RemoveButton } from \"../../Tag/RemoveButton\";\nimport { Typography } from \"../../Typography/Typography\";\nimport classes from \"./DataGridFilter.module.scss\";\nimport {\n Filter,\n FilterEditorMode,\n TagTranslations,\n DataGridColumnMetadata\n} from \"./DataGridFilters.interfaces\";\n\nexport interface DataGridFilterTagProps extends ComponentPropsWithRef<\"div\"> {\n customEditTagContent?: React.ReactElement;\n triggerRef: React.Ref<HTMLButtonElement>;\n filter?: Filter;\n mode: FilterEditorMode;\n onFilterRemove?: () => void;\n onFilterOpen: () => void;\n translations?: TagTranslations;\n dateTagCaption?: string;\n columnsMetadata?: DataGridColumnMetadata[];\n}\n\nconst EditTagContent = ({\n filter,\n or,\n other,\n columnsMetadata\n}: {\n filter: Filter;\n or: string;\n other: string;\n columnsMetadata?: DataGridColumnMetadata[];\n}) => {\n const { column, operator, value } = filter;\n const columnHeadlineWithFallback =\n columnsMetadata?.find(meta => meta.name === column)?.headline || column;\n\n return (\n <Fragment>\n {columnHeadlineWithFallback} {operator?.name} {value.length > 0 && <b>{value[0]}</b>}\n {value.length >= 2 && (\n <>\n {\" \"}\n {or}{\" \"}\n <b>\n {value.length - 1} {other}\n </b>\n </>\n )}\n </Fragment>\n );\n};\n\nexport const DataGridFilterTagComponent: ForwardRefRenderFunction<\n HTMLDivElement,\n DataGridFilterTagProps\n> = (\n {\n triggerRef,\n filter,\n mode,\n onFilterRemove,\n onFilterOpen,\n translations,\n dateTagCaption,\n customEditTagContent,\n columnsMetadata,\n ...rest\n }: DataGridFilterTagProps,\n ref\n) => {\n const {\n addButtonCaption = \"Add filter\",\n or = \"or\",\n other = \"other\",\n dateIs = \"Date is\"\n } = translations || {};\n const shouldRenderAddTag = mode === \"ADD\";\n const shouldRenderEditTag = mode === \"EDIT\" && filter;\n const shouldRenderAddDateTag = mode === \"ADD_DATE\";\n\n return (\n <div {...rest} ref={ref} className={classes[\"filter-wrapper\"]}>\n <button\n ref={triggerRef}\n type=\"button\"\n className={classes[\"filter-button\"]}\n onClick={e => {\n e.preventDefault();\n onFilterOpen();\n }}\n >\n {shouldRenderAddTag && (\n <Fragment>\n <Icon icon={Icons.AddCircle} />\n <Typography variant=\"body\" className={classes[\"caption\"]}>\n {addButtonCaption}\n </Typography>\n </Fragment>\n )}\n {shouldRenderEditTag && (\n <Typography variant=\"body\" className={classes[\"caption\"]}>\n {customEditTagContent ? (\n React.cloneElement(customEditTagContent, { filter })\n ) : (\n <EditTagContent\n filter={filter}\n or={or}\n other={other}\n columnsMetadata={columnsMetadata}\n />\n )}\n </Typography>\n )}\n {shouldRenderAddDateTag && (\n <Fragment>\n <Icon icon={Icons.Calendar} />\n <Typography variant=\"body\" className={classes[\"caption\"]}>\n {dateIs} <b>{dateTagCaption}</b>\n </Typography>\n </Fragment>\n )}\n </button>\n {shouldRenderEditTag && (\n <RemoveButton className={classes[\"remove-button\"]} onRemove={onFilterRemove} />\n )}\n </div>\n );\n};\n\nexport const DataGridFilterTag = React.forwardRef(DataGridFilterTagComponent);\n"],"names":[],"mappings":";;;;;AAwCA,MAAM,iBAAiB,CAAC;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAKM;;AACJ,QAAM,EAAE,QAAQ,UAAU,MAAA,IAAU;AACpC,QAAM,+BACJ,wDAAiB,KAAK,CAAA,SAAQ,KAAK,SAAS,YAA5C,mBAAqD,aAAY;AAEnE,SACE,sBAAA,cAAC,UAAA,MACE,4BAA2B,KAAE,qCAAU,MAAK,KAAE,MAAM,SAAS,KAAK,sBAAA,cAAC,KAAA,MAAG,MAAM,CAAC,CAAE,GAC/E,MAAM,UAAU,KACf,sBAAA,cAAA,MAAA,UAAA,MACG,KACA,IAAI,KACL,sBAAA,cAAC,KAAA,MACE,MAAM,SAAS,GAAE,KAAE,KACtB,CACF,CAEJ;AAEJ;AAEO,MAAM,6BAGT,CACF;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACA,QACG;AACH,QAAM;AAAA,IACJ,mBAAmB;AAAA,IACnB,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,SAAS;AAAA,EAAA,IACP,gBAAgB,CAAA;AACpB,QAAM,qBAAqB,SAAS;AACpC,QAAM,sBAAsB,SAAS,UAAU;AAC/C,QAAM,yBAAyB,SAAS;AAExC,SACE,sBAAA,cAAC,SAAK,GAAG,MAAM,KAAU,WAAW,QAAQ,gBAAgB,EAAA,GAC1D,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAK;AAAA,MACL,MAAK;AAAA,MACL,WAAW,QAAQ,eAAe;AAAA,MAClC,SAAS,CAAA,MAAK;AACZ,UAAE,eAAA;AACF,qBAAA;AAAA,MACF;AAAA,IAAA;AAAA,IAEC,sBACC,sBAAA,cAAC,UAAA,0CACE,MAAA,EAAK,MAAM,MAAM,UAAA,CAAW,GAC7B,sBAAA,cAAC,YAAA,EAAW,SAAQ,QAAO,WAAW,QAAQ,SAAS,EAAA,GACpD,gBACH,CACF;AAAA,IAED,uBACC,sBAAA,cAAC,YAAA,EAAW,SAAQ,QAAO,WAAW,QAAQ,SAAS,EAAA,GACpD,uBACC,MAAM,aAAa,sBAAsB,EAAE,OAAA,CAAQ,IAEnD,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,IAAA,CAGN;AAAA,IAED,8DACE,UAAA,MACC,sBAAA,cAAC,QAAK,MAAM,MAAM,SAAA,CAAU,GAC5B,sBAAA,cAAC,YAAA,EAAW,SAAQ,QAAO,WAAW,QAAQ,SAAS,EAAA,GACpD,QAAO,KAAC,sBAAA,cAAC,KAAA,MAAG,cAAe,CAC9B,CACF;AAAA,EAAA,GAGH,uBACC,sBAAA,cAAC,cAAA,EAAa,WAAW,QAAQ,eAAe,GAAG,UAAU,eAAA,CAAgB,CAEjF;AAEJ;AAEO,MAAM,oBAAoB,MAAM,WAAW,0BAA0B;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),l=require("../../Form/Select/SingleSelect/Option.cjs.js"),a=require("../../Form/Select/MultiSelect/MultiOption.cjs.js"),t=require("../../Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js"),r=require("../../Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js"),n=require("./DataGridFilters.interfaces.cjs.js");exports.DataGridFilterValueSelect=({column:u,columnsMetadata:o,values:s,pickedValues:c,setValues:i,setPickedValues:p,translations:d,operator:S})=>{const[m,v]=e.useState(!1),[b,g]=e.useState(""),{valueSelectLabel:V="Value",addNewValueLabel:h="Create new",addNewValueButtonTitle:y="Add new select value"}=d||{},M=o.find(({name:e})=>e===u),j=null==M?void 0:M.disableAddNew,O=null==M?void 0:M.valueSelectType,{onValueSearch:T,onValueLoadMore:f,hasMoreValues:w,valuesLoading:L,minValueSearchLength:W,resolveValueLabels:k}=M||{},q=Boolean(T),C=q?(null==M?void 0:M.defaultValues)??[]:s,E=e.useMemo(()=>{if(!q||!k)return{};const e=c.filter(e=>!C.includes(e)),l=[...C,...e];return 0===l.length?{}:Object.fromEntries(k(l).map(({value:e,label:l})=>[e,l]))},[q,k,c,C]),F=e.useCallback(e=>E[e]??e,[E]),P=S&&!S.allowEmptyValues,N=Boolean(P&&0===c.length&&m),A={title:y,type:"button"},B=e.useCallback(e=>{const{selectedOptions:l,value:a}=e.target;let t;t=O===n.ValueSelectType.single?a?[a]:[]:Array.from(l,e=>e.value),p(t),v(!0)},[O]),x=q&&(Boolean(L)||C.includes(b.trim())),D={addNew:j||x?void 0:{label:h,onAddNew:e=>{e&&(q||i(l=>[...l,e]),p(l=>[...l,e]))},btnProps:A},search:{enabled:!0,renderThreshold:0,...T&&{searchInputProps:{onChange:e=>g(e.currentTarget.value)},async:{onSearch:T,onLoadMore:f,hasMore:w,loading:L,minSearchLength:W}}},...q&&O===n.ValueSelectType.single&&{selectedOption:c[0]?{value:c[0],label:F(c[0])}:void 0},...q&&O!==n.ValueSelectType.single&&{selectedOptions:c.map(e=>({value:e,label:F(e)}))}};return n.ValueSelectType.single===O?e.createElement(r.SelectWrapper,{label:V,name:"value",value:c[0],onChange:B,selectProps:D,error:N},C.map(a=>e.createElement(l.Option,{key:a,value:a},F(a)))):e.createElement(t.MultiSelectWrapper,{label:V,name:"value",value:c,onChange:B,selectProps:D,error:N},C.map(l=>e.createElement(a.MultiOption,{key:l,value:l},F(l))))};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),l=require("../../Form/Select/SingleSelect/Option.cjs.js"),t=require("../../Form/Select/MultiSelect/MultiOption.cjs.js"),a=require("../../Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js"),r=require("../../Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js"),u=require("./DataGridFilters.interfaces.cjs.js");exports.DataGridFilterValueSelect=({column:s,columnsMetadata:n,values:c,pickedValues:o,setValues:i,setPickedValues:p,translations:d,operator:S})=>{const[m,v]=e.useState(!1),{valueSelectLabel:b="Value",addNewValueLabel:j="Create new",addNewValueButtonTitle:y="Add new select value"}=d||{},V=n.find(({name:e})=>e===s),g=null==V?void 0:V.disableAddNew,w=null==V?void 0:V.valueSelectType,M=S&&!S.allowEmptyValues,W=Boolean(M&&0===o.length&&m),h={title:y,type:"button"},q=e.useCallback(e=>{const{selectedOptions:l,value:t}=e.target;let a;a=w===u.ValueSelectType.single?t?[t]:[]:Array.from(l,e=>e.value),p(a),v(!0)},[w]),F={addNew:g?void 0:{label:j,onAddNew:e=>{e&&(i(l=>[...l,e]),p(l=>[...l,e]))},btnProps:h},search:{enabled:!0,renderThreshold:0}};return u.ValueSelectType.single===w?e.createElement(r.SelectWrapper,{label:b,name:"value",value:o[0],onChange:q,selectProps:F,error:W},c.map(t=>e.createElement(l.Option,{key:t,value:t},t))):e.createElement(a.MultiSelectWrapper,{label:b,name:"value",value:o,onChange:q,selectProps:F,error:W},c.map(l=>e.createElement(t.MultiOption,{key:l,value:l},l)))};
2
2
  //# sourceMappingURL=DataGridFilterValueSelect.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridFilterValueSelect.cjs.js","sources":["../../../../src/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useCallback, useMemo, useState } from \"react\";\nimport { Option } from \"../../Form/Select/SingleSelect/Option\";\nimport { MultiOption } from \"../../Form/Select/MultiSelect/MultiOption\";\nimport { MultiSelectWrapper } from \"../../Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper\";\nimport { SelectWrapper } from \"../../Form/Wrapper/SelectWrapper/SelectWrapper\";\nimport {\n DataGridColumnMetadata,\n PopoverTranslations,\n ValueSelectType\n} from \"./DataGridFilters.interfaces\";\n\nexport type Props = {\n column: string;\n columnsMetadata: DataGridColumnMetadata[];\n values: string[];\n pickedValues: string[];\n setValues: (values: React.SetStateAction<string[]>) => void;\n setPickedValues: (pickedValues: React.SetStateAction<string[]>) => void;\n translations?: PopoverTranslations;\n operator?: { allowEmptyValues: boolean } | null;\n};\n\nexport const DataGridFilterValueSelect = ({\n column,\n columnsMetadata,\n values,\n pickedValues,\n setValues,\n setPickedValues,\n translations,\n operator\n}: Props) => {\n const [touched, setTouched] = useState(false);\n // Raw text currently typed into the value search input. Only needed for the addNew dedupe rule\n // below — it mirrors `search.searchInputProps.onChange`, which the underlying Select fires\n // synchronously on every keystroke, ahead of the debounced backend `onValueSearch` call.\n const [searchQuery, setSearchQuery] = useState(\"\");\n\n const {\n valueSelectLabel = \"Value\",\n addNewValueLabel = \"Create new\",\n addNewValueButtonTitle = \"Add new select value\"\n } = translations || {};\n\n const columnMetadata = columnsMetadata.find(({ name }) => name === column);\n const disableAddNew = columnMetadata?.disableAddNew;\n const valueSelectType = columnMetadata?.valueSelectType;\n const {\n onValueSearch,\n onValueLoadMore,\n hasMoreValues,\n valuesLoading,\n minValueSearchLength,\n resolveValueLabels\n } = columnMetadata || {};\n const isAsync = Boolean(onValueSearch);\n\n // Async columns own the currently loaded page via `defaultValues`, kept fresh by the consumer\n // as the user types/scrolls — `values` (the filter's own snapshot, seeded once when the column\n // was selected) remains the source of truth only for static columns, exactly as before.\n const loadedValues = isAsync ? (columnMetadata?.defaultValues ?? []) : values;\n\n // Resolve display labels both for the currently loaded page (so the dropdown shows meaningful\n // labels, not raw values) and for picked values that aren't part of it (e.g. a value saved from\n // a previous, since-scrolled-away-from, search) — mirrors `mergeCustomValuesWithPredefined` in\n // `DataGridFilterService.ts` for the latter.\n const resolvedLabels = useMemo(() => {\n if (!isAsync || !resolveValueLabels) {\n return {};\n }\n const unresolvedPicked = pickedValues.filter(value => !loadedValues.includes(value));\n const toResolve = [...loadedValues, ...unresolvedPicked];\n if (toResolve.length === 0) {\n return {};\n }\n return Object.fromEntries(\n resolveValueLabels(toResolve).map(({ value, label }) => [value, label])\n );\n }, [isAsync, resolveValueLabels, pickedValues, loadedValues]);\n\n const getLabel = useCallback((value: string) => resolvedLabels[value] ?? value, [resolvedLabels]);\n\n const isValueRequired = operator && !operator.allowEmptyValues;\n const hasValidationError = Boolean(isValueRequired && pickedValues.length === 0 && touched);\n\n const addNewBtnProps: React.ButtonHTMLAttributes<HTMLButtonElement> = {\n title: addNewValueButtonTitle,\n type: \"button\"\n };\n\n const onChangeHandler = useCallback(\n (e: React.ChangeEvent<HTMLSelectElement>) => {\n const { selectedOptions, value } = e.target;\n\n let newValues: string[];\n\n if (valueSelectType === ValueSelectType.single) {\n newValues = value ? [value] : [];\n } else {\n newValues = Array.from(selectedOptions, option => option.value);\n }\n setPickedValues(newValues);\n setTouched(true);\n },\n [valueSelectType]\n );\n\n // Suppress \"Create new\" while a request is in flight (the typed value might already be on its\n // way back from the backend) or once an exact match for the typed query is already loaded —\n // both would otherwise let the user create a duplicate value.\n const isDuplicateAddNew =\n isAsync && (Boolean(valuesLoading) || loadedValues.includes(searchQuery.trim()));\n\n const selectProps = {\n addNew:\n disableAddNew || isDuplicateAddNew\n ? undefined\n : {\n label: addNewValueLabel,\n onAddNew: (value: string) => {\n if (value) {\n if (!isAsync) {\n setValues(prev => [...prev, value]);\n }\n setPickedValues(prev => [...prev, value]);\n }\n },\n btnProps: addNewBtnProps\n },\n search: {\n enabled: true,\n renderThreshold: 0,\n ...(onValueSearch && {\n searchInputProps: {\n onChange: (event: React.ChangeEvent<HTMLInputElement>) =>\n setSearchQuery(event.currentTarget.value)\n },\n async: {\n onSearch: onValueSearch,\n onLoadMore: onValueLoadMore,\n hasMore: hasMoreValues,\n loading: valuesLoading,\n minSearchLength: minValueSearchLength\n }\n })\n },\n // Only the field the underlying Select variant actually reads is passed — SingleSelect\n // destructures `selectedOption`, MultiSelect destructures `selectedOptions`; the other one\n // isn't recognized by either and would otherwise fall through onto the native `<select>` via\n // its own rest-prop spread, producing a \"React does not recognize the `x` prop\" DOM warning.\n ...(isAsync &&\n valueSelectType === ValueSelectType.single && {\n selectedOption: pickedValues[0]\n ? { value: pickedValues[0], label: getLabel(pickedValues[0]) }\n : undefined\n }),\n ...(isAsync &&\n valueSelectType !== ValueSelectType.single && {\n selectedOptions: pickedValues.map(value => ({ value, label: getLabel(value) }))\n })\n };\n\n return ValueSelectType.single === valueSelectType ? (\n <SelectWrapper\n label={valueSelectLabel}\n name={\"value\"}\n value={pickedValues[0]}\n onChange={onChangeHandler}\n selectProps={selectProps}\n error={hasValidationError}\n >\n {loadedValues.map(value => (\n <Option key={value} value={value}>\n {getLabel(value)}\n </Option>\n ))}\n </SelectWrapper>\n ) : (\n <MultiSelectWrapper\n label={valueSelectLabel}\n name={\"value\"}\n value={pickedValues}\n onChange={onChangeHandler}\n selectProps={selectProps}\n error={hasValidationError}\n >\n {loadedValues.map(value => (\n <MultiOption key={value} value={value}>\n {getLabel(value)}\n </MultiOption>\n ))}\n </MultiSelectWrapper>\n );\n};\n"],"names":["column","columnsMetadata","values","pickedValues","setValues","setPickedValues","translations","operator","touched","setTouched","useState","searchQuery","setSearchQuery","valueSelectLabel","addNewValueLabel","addNewValueButtonTitle","columnMetadata","find","name","disableAddNew","valueSelectType","onValueSearch","onValueLoadMore","hasMoreValues","valuesLoading","minValueSearchLength","resolveValueLabels","isAsync","Boolean","loadedValues","defaultValues","resolvedLabels","useMemo","unresolvedPicked","filter","value","includes","toResolve","length","Object","fromEntries","map","label","getLabel","useCallback","isValueRequired","allowEmptyValues","hasValidationError","addNewBtnProps","title","type","onChangeHandler","e","selectedOptions","target","newValues","ValueSelectType","single","Array","from","option","isDuplicateAddNew","trim","selectProps","addNew","onAddNew","prev","btnProps","search","enabled","renderThreshold","searchInputProps","onChange","event","currentTarget","async","onSearch","onLoadMore","hasMore","loading","minSearchLength","selectedOption","React","createElement","SelectWrapper","error","Option","key","MultiSelectWrapper","MultiOption"],"mappings":"ocAsCyC,EACvCA,SACAC,kBACAC,SACAC,eACAC,YACAC,kBACAC,eACAC,eAEA,MAAOC,EAASC,GAAcC,EAAAA,UAAS,IAIhCC,EAAaC,GAAkBF,EAAAA,SAAS,KAEzCG,iBACJA,EAAmB,QAAAC,iBACnBA,EAAmB,aAAAC,uBACnBA,EAAyB,wBACvBT,GAAgB,CAAA,EAEdU,EAAiBf,EAAgBgB,KAAK,EAAGC,UAAWA,IAASlB,GAC7DmB,EAAgB,MAAAH,OAAA,EAAAA,EAAgBG,cAChCC,EAAkB,MAAAJ,OAAA,EAAAA,EAAgBI,iBAClCC,cACJA,EAAAC,gBACAA,EAAAC,cACAA,EAAAC,cACAA,EAAAC,qBACAA,EAAAC,mBACAA,GACEV,GAAkB,CAAA,EAChBW,EAAUC,QAAQP,GAKlBQ,EAAeF,GAAW,MAAAX,OAAA,EAAAA,EAAgBc,gBAAiB,GAAM5B,EAMjE6B,EAAiBC,EAAAA,QAAQ,KAC7B,IAAKL,IAAYD,EACf,MAAO,CAAA,EAET,MAAMO,EAAmB9B,EAAa+B,OAAOC,IAAUN,EAAaO,SAASD,IACvEE,EAAY,IAAIR,KAAiBI,GACvC,OAAyB,IAArBI,EAAUC,OACL,CAAA,EAEFC,OAAOC,YACZd,EAAmBW,GAAWI,IAAI,EAAGN,QAAOO,WAAY,CAACP,EAAOO,MAEjE,CAACf,EAASD,EAAoBvB,EAAc0B,IAEzCc,EAAWC,cAAaT,GAAkBJ,EAAeI,IAAUA,EAAO,CAACJ,IAE3Ec,EAAkBtC,IAAaA,EAASuC,iBACxCC,EAAqBnB,QAAQiB,GAA2C,IAAxB1C,EAAamC,QAAgB9B,GAE7EwC,EAAgE,CACpEC,MAAOlC,EACPmC,KAAM,UAGFC,EAAkBP,EAAAA,YACrBQ,IACC,MAAMC,gBAAEA,EAAAlB,MAAiBA,GAAUiB,EAAEE,OAErC,IAAIC,EAGFA,EADEnC,IAAoBoC,EAAAA,gBAAgBC,OAC1BtB,EAAQ,CAACA,GAAS,GAElBuB,MAAMC,KAAKN,EAAiBO,GAAUA,EAAOzB,OAE3D9B,EAAgBkD,GAChB9C,GAAW,IAEb,CAACW,IAMGyC,EACJlC,IAAYC,QAAQJ,IAAkBK,EAAaO,SAASzB,EAAYmD,SAEpEC,EAAc,CAClBC,OACE7C,GAAiB0C,OACb,EACA,CACEnB,MAAO5B,EACPmD,SAAW9B,IACLA,IACGR,GACHvB,EAAU8D,GAAQ,IAAIA,EAAM/B,IAE9B9B,EAAgB6D,GAAQ,IAAIA,EAAM/B,MAGtCgC,SAAUnB,GAElBoB,OAAQ,CACNC,SAAS,EACTC,gBAAiB,KACbjD,GAAiB,CACnBkD,iBAAkB,CAChBC,SAAWC,GACT7D,EAAe6D,EAAMC,cAAcvC,QAEvCwC,MAAO,CACLC,SAAUvD,EACVwD,WAAYvD,EACZwD,QAASvD,EACTwD,QAASvD,EACTwD,gBAAiBvD,QAQnBE,GACFP,IAAoBoC,EAAAA,gBAAgBC,QAAU,CAC5CwB,eAAgB9E,EAAa,GACzB,CAAEgC,MAAOhC,EAAa,GAAIuC,MAAOC,EAASxC,EAAa,UACvD,MAEJwB,GACFP,IAAoBoC,EAAAA,gBAAgBC,QAAU,CAC5CJ,gBAAiBlD,EAAasC,IAAIN,IAAA,CAAYA,QAAOO,MAAOC,EAASR,QAI3E,OAAOqB,kBAAgBC,SAAWrC,EAChC8D,EAAAC,cAACC,EAAAA,cAAA,CACC1C,MAAO7B,EACPK,KAAM,QACNiB,MAAOhC,EAAa,GACpBqE,SAAUrB,EACVY,cACAsB,MAAOtC,GAENlB,EAAaY,IAAIN,GAChB+C,EAAAC,cAACG,EAAAA,OAAA,CAAOC,IAAKpD,EAAOA,SACjBQ,EAASR,MAKhB+C,EAAAC,cAACK,EAAAA,mBAAA,CACC9C,MAAO7B,EACPK,KAAM,QACNiB,MAAOhC,EACPqE,SAAUrB,EACVY,cACAsB,MAAOtC,GAENlB,EAAaY,IAAIN,GAChB+C,EAAAC,cAACM,EAAAA,YAAA,CAAYF,IAAKpD,EAAOA,SACtBQ,EAASR"}
1
+ {"version":3,"file":"DataGridFilterValueSelect.cjs.js","sources":["../../../../src/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useCallback, useState } from \"react\";\nimport { Option } from \"../../Form/Select/SingleSelect/Option\";\nimport { MultiOption } from \"../../Form/Select/MultiSelect/MultiOption\";\nimport { MultiSelectWrapper } from \"../../Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper\";\nimport { SelectWrapper } from \"../../Form/Wrapper/SelectWrapper/SelectWrapper\";\nimport {\n DataGridColumnMetadata,\n PopoverTranslations,\n ValueSelectType\n} from \"./DataGridFilters.interfaces\";\n\nexport type Props = {\n column: string;\n columnsMetadata: DataGridColumnMetadata[];\n values: string[];\n pickedValues: string[];\n setValues: (values: React.SetStateAction<string[]>) => void;\n setPickedValues: (pickedValues: React.SetStateAction<string[]>) => void;\n translations?: PopoverTranslations;\n operator?: { allowEmptyValues: boolean } | null;\n};\n\nexport const DataGridFilterValueSelect = ({\n column,\n columnsMetadata,\n values,\n pickedValues,\n setValues,\n setPickedValues,\n translations,\n operator\n}: Props) => {\n const [touched, setTouched] = useState(false);\n\n const {\n valueSelectLabel = \"Value\",\n addNewValueLabel = \"Create new\",\n addNewValueButtonTitle = \"Add new select value\"\n } = translations || {};\n\n const columnMetadata = columnsMetadata.find(({ name }) => name === column);\n const disableAddNew = columnMetadata?.disableAddNew;\n const valueSelectType = columnMetadata?.valueSelectType;\n\n const isValueRequired = operator && !operator.allowEmptyValues;\n const hasValidationError = Boolean(isValueRequired && pickedValues.length === 0 && touched);\n\n const addNewBtnProps: React.ButtonHTMLAttributes<HTMLButtonElement> = {\n title: addNewValueButtonTitle,\n type: \"button\"\n };\n\n const onChangeHandler = useCallback(\n (e: React.ChangeEvent<HTMLSelectElement>) => {\n const { selectedOptions, value } = e.target;\n\n let newValues: string[];\n\n if (valueSelectType === ValueSelectType.single) {\n newValues = value ? [value] : [];\n } else {\n newValues = Array.from(selectedOptions, option => option.value);\n }\n setPickedValues(newValues);\n setTouched(true);\n },\n [valueSelectType]\n );\n\n const selectProps = {\n addNew: disableAddNew\n ? undefined\n : {\n label: addNewValueLabel,\n onAddNew: (value: string) => {\n if (value) {\n setValues(prev => [...prev, value]);\n setPickedValues(prev => [...prev, value]);\n }\n },\n btnProps: addNewBtnProps\n },\n search: {\n enabled: true,\n renderThreshold: 0\n }\n };\n\n return ValueSelectType.single === valueSelectType ? (\n <SelectWrapper\n label={valueSelectLabel}\n name={\"value\"}\n value={pickedValues[0]}\n onChange={onChangeHandler}\n selectProps={selectProps}\n error={hasValidationError}\n >\n {values.map(value => (\n <Option key={value} value={value}>\n {value}\n </Option>\n ))}\n </SelectWrapper>\n ) : (\n <MultiSelectWrapper\n label={valueSelectLabel}\n name={\"value\"}\n value={pickedValues}\n onChange={onChangeHandler}\n selectProps={selectProps}\n error={hasValidationError}\n >\n {values.map(value => (\n <MultiOption key={value} value={value}>\n {value}\n </MultiOption>\n ))}\n </MultiSelectWrapper>\n );\n};\n"],"names":["column","columnsMetadata","values","pickedValues","setValues","setPickedValues","translations","operator","touched","setTouched","useState","valueSelectLabel","addNewValueLabel","addNewValueButtonTitle","columnMetadata","find","name","disableAddNew","valueSelectType","isValueRequired","allowEmptyValues","hasValidationError","Boolean","length","addNewBtnProps","title","type","onChangeHandler","useCallback","e","selectedOptions","value","target","newValues","ValueSelectType","single","Array","from","option","selectProps","addNew","label","onAddNew","prev","btnProps","search","enabled","renderThreshold","React","createElement","SelectWrapper","onChange","error","map","Option","key","MultiSelectWrapper","MultiOption"],"mappings":"ocAsCyC,EACvCA,SACAC,kBACAC,SACAC,eACAC,YACAC,kBACAC,eACAC,eAEA,MAAOC,EAASC,GAAcC,EAAAA,UAAS,IAEjCC,iBACJA,EAAmB,QAAAC,iBACnBA,EAAmB,aAAAC,uBACnBA,EAAyB,wBACvBP,GAAgB,CAAA,EAEdQ,EAAiBb,EAAgBc,KAAK,EAAGC,UAAWA,IAAShB,GAC7DiB,EAAgB,MAAAH,OAAA,EAAAA,EAAgBG,cAChCC,EAAkB,MAAAJ,OAAA,EAAAA,EAAgBI,gBAElCC,EAAkBZ,IAAaA,EAASa,iBACxCC,EAAqBC,QAAQH,GAA2C,IAAxBhB,EAAaoB,QAAgBf,GAE7EgB,EAAgE,CACpEC,MAAOZ,EACPa,KAAM,UAGFC,EAAkBC,EAAAA,YACrBC,IACC,MAAMC,gBAAEA,EAAAC,MAAiBA,GAAUF,EAAEG,OAErC,IAAIC,EAGFA,EADEf,IAAoBgB,EAAAA,gBAAgBC,OAC1BJ,EAAQ,CAACA,GAAS,GAElBK,MAAMC,KAAKP,EAAiBQ,GAAUA,EAAOP,OAE3D1B,EAAgB4B,GAChBxB,GAAW,IAEb,CAACS,IAGGqB,EAAc,CAClBC,OAAQvB,OACJ,EACA,CACEwB,MAAO7B,EACP8B,SAAWX,IACLA,IACF3B,EAAUuC,GAAQ,IAAIA,EAAMZ,IAC5B1B,EAAgBsC,GAAQ,IAAIA,EAAMZ,MAGtCa,SAAUpB,GAEhBqB,OAAQ,CACNC,SAAS,EACTC,gBAAiB,IAIrB,OAAOb,kBAAgBC,SAAWjB,EAChC8B,EAAAC,cAACC,EAAAA,cAAA,CACCT,MAAO9B,EACPK,KAAM,QACNe,MAAO5B,EAAa,GACpBgD,SAAUxB,EACVY,cACAa,MAAO/B,GAENnB,EAAOmD,IAAItB,KACVkB,cAACK,UAAOC,IAAKxB,EAAOA,SACjBA,KAKPiB,EAAAC,cAACO,EAAAA,mBAAA,CACCf,MAAO9B,EACPK,KAAM,QACNe,MAAO5B,EACPgD,SAAUxB,EACVY,cACAa,MAAO/B,GAENnB,EAAOmD,IAAItB,KACVkB,cAACQ,eAAYF,IAAKxB,EAAOA,SACtBA"}
@@ -1,4 +1,4 @@
1
- import React, { useState, useMemo, useCallback } from "react";
1
+ import React, { useState, useCallback } from "react";
2
2
  import { Option } from "../../Form/Select/SingleSelect/Option.es.js";
3
3
  import { MultiOption } from "../../Form/Select/MultiSelect/MultiOption.es.js";
4
4
  import { MultiSelectWrapper } from "../../Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.es.js";
@@ -15,7 +15,6 @@ const DataGridFilterValueSelect = ({
15
15
  operator
16
16
  }) => {
17
17
  const [touched, setTouched] = useState(false);
18
- const [searchQuery, setSearchQuery] = useState("");
19
18
  const {
20
19
  valueSelectLabel = "Value",
21
20
  addNewValueLabel = "Create new",
@@ -24,30 +23,6 @@ const DataGridFilterValueSelect = ({
24
23
  const columnMetadata = columnsMetadata.find(({ name }) => name === column);
25
24
  const disableAddNew = columnMetadata == null ? void 0 : columnMetadata.disableAddNew;
26
25
  const valueSelectType = columnMetadata == null ? void 0 : columnMetadata.valueSelectType;
27
- const {
28
- onValueSearch,
29
- onValueLoadMore,
30
- hasMoreValues,
31
- valuesLoading,
32
- minValueSearchLength,
33
- resolveValueLabels
34
- } = columnMetadata || {};
35
- const isAsync = Boolean(onValueSearch);
36
- const loadedValues = isAsync ? (columnMetadata == null ? void 0 : columnMetadata.defaultValues) ?? [] : values;
37
- const resolvedLabels = useMemo(() => {
38
- if (!isAsync || !resolveValueLabels) {
39
- return {};
40
- }
41
- const unresolvedPicked = pickedValues.filter((value) => !loadedValues.includes(value));
42
- const toResolve = [...loadedValues, ...unresolvedPicked];
43
- if (toResolve.length === 0) {
44
- return {};
45
- }
46
- return Object.fromEntries(
47
- resolveValueLabels(toResolve).map(({ value, label }) => [value, label])
48
- );
49
- }, [isAsync, resolveValueLabels, pickedValues, loadedValues]);
50
- const getLabel = useCallback((value) => resolvedLabels[value] ?? value, [resolvedLabels]);
51
26
  const isValueRequired = operator && !operator.allowEmptyValues;
52
27
  const hasValidationError = Boolean(isValueRequired && pickedValues.length === 0 && touched);
53
28
  const addNewBtnProps = {
@@ -68,15 +43,12 @@ const DataGridFilterValueSelect = ({
68
43
  },
69
44
  [valueSelectType]
70
45
  );
71
- const isDuplicateAddNew = isAsync && (Boolean(valuesLoading) || loadedValues.includes(searchQuery.trim()));
72
46
  const selectProps = {
73
- addNew: disableAddNew || isDuplicateAddNew ? void 0 : {
47
+ addNew: disableAddNew ? void 0 : {
74
48
  label: addNewValueLabel,
75
49
  onAddNew: (value) => {
76
50
  if (value) {
77
- if (!isAsync) {
78
- setValues((prev) => [...prev, value]);
79
- }
51
+ setValues((prev) => [...prev, value]);
80
52
  setPickedValues((prev) => [...prev, value]);
81
53
  }
82
54
  },
@@ -84,29 +56,7 @@ const DataGridFilterValueSelect = ({
84
56
  },
85
57
  search: {
86
58
  enabled: true,
87
- renderThreshold: 0,
88
- ...onValueSearch && {
89
- searchInputProps: {
90
- onChange: (event) => setSearchQuery(event.currentTarget.value)
91
- },
92
- async: {
93
- onSearch: onValueSearch,
94
- onLoadMore: onValueLoadMore,
95
- hasMore: hasMoreValues,
96
- loading: valuesLoading,
97
- minSearchLength: minValueSearchLength
98
- }
99
- }
100
- },
101
- // Only the field the underlying Select variant actually reads is passed — SingleSelect
102
- // destructures `selectedOption`, MultiSelect destructures `selectedOptions`; the other one
103
- // isn't recognized by either and would otherwise fall through onto the native `<select>` via
104
- // its own rest-prop spread, producing a "React does not recognize the `x` prop" DOM warning.
105
- ...isAsync && valueSelectType === ValueSelectType.single && {
106
- selectedOption: pickedValues[0] ? { value: pickedValues[0], label: getLabel(pickedValues[0]) } : void 0
107
- },
108
- ...isAsync && valueSelectType !== ValueSelectType.single && {
109
- selectedOptions: pickedValues.map((value) => ({ value, label: getLabel(value) }))
59
+ renderThreshold: 0
110
60
  }
111
61
  };
112
62
  return ValueSelectType.single === valueSelectType ? /* @__PURE__ */ React.createElement(
@@ -119,7 +69,7 @@ const DataGridFilterValueSelect = ({
119
69
  selectProps,
120
70
  error: hasValidationError
121
71
  },
122
- loadedValues.map((value) => /* @__PURE__ */ React.createElement(Option, { key: value, value }, getLabel(value)))
72
+ values.map((value) => /* @__PURE__ */ React.createElement(Option, { key: value, value }, value))
123
73
  ) : /* @__PURE__ */ React.createElement(
124
74
  MultiSelectWrapper,
125
75
  {
@@ -130,7 +80,7 @@ const DataGridFilterValueSelect = ({
130
80
  selectProps,
131
81
  error: hasValidationError
132
82
  },
133
- loadedValues.map((value) => /* @__PURE__ */ React.createElement(MultiOption, { key: value, value }, getLabel(value)))
83
+ values.map((value) => /* @__PURE__ */ React.createElement(MultiOption, { key: value, value }, value))
134
84
  );
135
85
  };
136
86
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridFilterValueSelect.es.js","sources":["../../../../src/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useCallback, useMemo, useState } from \"react\";\nimport { Option } from \"../../Form/Select/SingleSelect/Option\";\nimport { MultiOption } from \"../../Form/Select/MultiSelect/MultiOption\";\nimport { MultiSelectWrapper } from \"../../Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper\";\nimport { SelectWrapper } from \"../../Form/Wrapper/SelectWrapper/SelectWrapper\";\nimport {\n DataGridColumnMetadata,\n PopoverTranslations,\n ValueSelectType\n} from \"./DataGridFilters.interfaces\";\n\nexport type Props = {\n column: string;\n columnsMetadata: DataGridColumnMetadata[];\n values: string[];\n pickedValues: string[];\n setValues: (values: React.SetStateAction<string[]>) => void;\n setPickedValues: (pickedValues: React.SetStateAction<string[]>) => void;\n translations?: PopoverTranslations;\n operator?: { allowEmptyValues: boolean } | null;\n};\n\nexport const DataGridFilterValueSelect = ({\n column,\n columnsMetadata,\n values,\n pickedValues,\n setValues,\n setPickedValues,\n translations,\n operator\n}: Props) => {\n const [touched, setTouched] = useState(false);\n // Raw text currently typed into the value search input. Only needed for the addNew dedupe rule\n // below — it mirrors `search.searchInputProps.onChange`, which the underlying Select fires\n // synchronously on every keystroke, ahead of the debounced backend `onValueSearch` call.\n const [searchQuery, setSearchQuery] = useState(\"\");\n\n const {\n valueSelectLabel = \"Value\",\n addNewValueLabel = \"Create new\",\n addNewValueButtonTitle = \"Add new select value\"\n } = translations || {};\n\n const columnMetadata = columnsMetadata.find(({ name }) => name === column);\n const disableAddNew = columnMetadata?.disableAddNew;\n const valueSelectType = columnMetadata?.valueSelectType;\n const {\n onValueSearch,\n onValueLoadMore,\n hasMoreValues,\n valuesLoading,\n minValueSearchLength,\n resolveValueLabels\n } = columnMetadata || {};\n const isAsync = Boolean(onValueSearch);\n\n // Async columns own the currently loaded page via `defaultValues`, kept fresh by the consumer\n // as the user types/scrolls — `values` (the filter's own snapshot, seeded once when the column\n // was selected) remains the source of truth only for static columns, exactly as before.\n const loadedValues = isAsync ? (columnMetadata?.defaultValues ?? []) : values;\n\n // Resolve display labels both for the currently loaded page (so the dropdown shows meaningful\n // labels, not raw values) and for picked values that aren't part of it (e.g. a value saved from\n // a previous, since-scrolled-away-from, search) — mirrors `mergeCustomValuesWithPredefined` in\n // `DataGridFilterService.ts` for the latter.\n const resolvedLabels = useMemo(() => {\n if (!isAsync || !resolveValueLabels) {\n return {};\n }\n const unresolvedPicked = pickedValues.filter(value => !loadedValues.includes(value));\n const toResolve = [...loadedValues, ...unresolvedPicked];\n if (toResolve.length === 0) {\n return {};\n }\n return Object.fromEntries(\n resolveValueLabels(toResolve).map(({ value, label }) => [value, label])\n );\n }, [isAsync, resolveValueLabels, pickedValues, loadedValues]);\n\n const getLabel = useCallback((value: string) => resolvedLabels[value] ?? value, [resolvedLabels]);\n\n const isValueRequired = operator && !operator.allowEmptyValues;\n const hasValidationError = Boolean(isValueRequired && pickedValues.length === 0 && touched);\n\n const addNewBtnProps: React.ButtonHTMLAttributes<HTMLButtonElement> = {\n title: addNewValueButtonTitle,\n type: \"button\"\n };\n\n const onChangeHandler = useCallback(\n (e: React.ChangeEvent<HTMLSelectElement>) => {\n const { selectedOptions, value } = e.target;\n\n let newValues: string[];\n\n if (valueSelectType === ValueSelectType.single) {\n newValues = value ? [value] : [];\n } else {\n newValues = Array.from(selectedOptions, option => option.value);\n }\n setPickedValues(newValues);\n setTouched(true);\n },\n [valueSelectType]\n );\n\n // Suppress \"Create new\" while a request is in flight (the typed value might already be on its\n // way back from the backend) or once an exact match for the typed query is already loaded —\n // both would otherwise let the user create a duplicate value.\n const isDuplicateAddNew =\n isAsync && (Boolean(valuesLoading) || loadedValues.includes(searchQuery.trim()));\n\n const selectProps = {\n addNew:\n disableAddNew || isDuplicateAddNew\n ? undefined\n : {\n label: addNewValueLabel,\n onAddNew: (value: string) => {\n if (value) {\n if (!isAsync) {\n setValues(prev => [...prev, value]);\n }\n setPickedValues(prev => [...prev, value]);\n }\n },\n btnProps: addNewBtnProps\n },\n search: {\n enabled: true,\n renderThreshold: 0,\n ...(onValueSearch && {\n searchInputProps: {\n onChange: (event: React.ChangeEvent<HTMLInputElement>) =>\n setSearchQuery(event.currentTarget.value)\n },\n async: {\n onSearch: onValueSearch,\n onLoadMore: onValueLoadMore,\n hasMore: hasMoreValues,\n loading: valuesLoading,\n minSearchLength: minValueSearchLength\n }\n })\n },\n // Only the field the underlying Select variant actually reads is passed — SingleSelect\n // destructures `selectedOption`, MultiSelect destructures `selectedOptions`; the other one\n // isn't recognized by either and would otherwise fall through onto the native `<select>` via\n // its own rest-prop spread, producing a \"React does not recognize the `x` prop\" DOM warning.\n ...(isAsync &&\n valueSelectType === ValueSelectType.single && {\n selectedOption: pickedValues[0]\n ? { value: pickedValues[0], label: getLabel(pickedValues[0]) }\n : undefined\n }),\n ...(isAsync &&\n valueSelectType !== ValueSelectType.single && {\n selectedOptions: pickedValues.map(value => ({ value, label: getLabel(value) }))\n })\n };\n\n return ValueSelectType.single === valueSelectType ? (\n <SelectWrapper\n label={valueSelectLabel}\n name={\"value\"}\n value={pickedValues[0]}\n onChange={onChangeHandler}\n selectProps={selectProps}\n error={hasValidationError}\n >\n {loadedValues.map(value => (\n <Option key={value} value={value}>\n {getLabel(value)}\n </Option>\n ))}\n </SelectWrapper>\n ) : (\n <MultiSelectWrapper\n label={valueSelectLabel}\n name={\"value\"}\n value={pickedValues}\n onChange={onChangeHandler}\n selectProps={selectProps}\n error={hasValidationError}\n >\n {loadedValues.map(value => (\n <MultiOption key={value} value={value}>\n {getLabel(value)}\n </MultiOption>\n ))}\n </MultiSelectWrapper>\n );\n};\n"],"names":[],"mappings":";;;;;;AAsCO,MAAM,4BAA4B,CAAC;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAa;AACX,QAAM,CAAC,SAAS,UAAU,IAAI,SAAS,KAAK;AAI5C,QAAM,CAAC,aAAa,cAAc,IAAI,SAAS,EAAE;AAEjD,QAAM;AAAA,IACJ,mBAAmB;AAAA,IACnB,mBAAmB;AAAA,IACnB,yBAAyB;AAAA,EAAA,IACvB,gBAAgB,CAAA;AAEpB,QAAM,iBAAiB,gBAAgB,KAAK,CAAC,EAAE,KAAA,MAAW,SAAS,MAAM;AACzE,QAAM,gBAAgB,iDAAgB;AACtC,QAAM,kBAAkB,iDAAgB;AACxC,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACE,kBAAkB,CAAA;AACtB,QAAM,UAAU,QAAQ,aAAa;AAKrC,QAAM,eAAe,WAAW,iDAAgB,kBAAiB,CAAA,IAAM;AAMvE,QAAM,iBAAiB,QAAQ,MAAM;AACnC,QAAI,CAAC,WAAW,CAAC,oBAAoB;AACnC,aAAO,CAAA;AAAA,IACT;AACA,UAAM,mBAAmB,aAAa,OAAO,CAAA,UAAS,CAAC,aAAa,SAAS,KAAK,CAAC;AACnF,UAAM,YAAY,CAAC,GAAG,cAAc,GAAG,gBAAgB;AACvD,QAAI,UAAU,WAAW,GAAG;AAC1B,aAAO,CAAA;AAAA,IACT;AACA,WAAO,OAAO;AAAA,MACZ,mBAAmB,SAAS,EAAE,IAAI,CAAC,EAAE,OAAO,MAAA,MAAY,CAAC,OAAO,KAAK,CAAC;AAAA,IAAA;AAAA,EAE1E,GAAG,CAAC,SAAS,oBAAoB,cAAc,YAAY,CAAC;AAE5D,QAAM,WAAW,YAAY,CAAC,UAAkB,eAAe,KAAK,KAAK,OAAO,CAAC,cAAc,CAAC;AAEhG,QAAM,kBAAkB,YAAY,CAAC,SAAS;AAC9C,QAAM,qBAAqB,QAAQ,mBAAmB,aAAa,WAAW,KAAK,OAAO;AAE1F,QAAM,iBAAgE;AAAA,IACpE,OAAO;AAAA,IACP,MAAM;AAAA,EAAA;AAGR,QAAM,kBAAkB;AAAA,IACtB,CAAC,MAA4C;AAC3C,YAAM,EAAE,iBAAiB,MAAA,IAAU,EAAE;AAErC,UAAI;AAEJ,UAAI,oBAAoB,gBAAgB,QAAQ;AAC9C,oBAAY,QAAQ,CAAC,KAAK,IAAI,CAAA;AAAA,MAChC,OAAO;AACL,oBAAY,MAAM,KAAK,iBAAiB,CAAA,WAAU,OAAO,KAAK;AAAA,MAChE;AACA,sBAAgB,SAAS;AACzB,iBAAW,IAAI;AAAA,IACjB;AAAA,IACA,CAAC,eAAe;AAAA,EAAA;AAMlB,QAAM,oBACJ,YAAY,QAAQ,aAAa,KAAK,aAAa,SAAS,YAAY,KAAA,CAAM;AAEhF,QAAM,cAAc;AAAA,IAClB,QACE,iBAAiB,oBACb,SACA;AAAA,MACE,OAAO;AAAA,MACP,UAAU,CAAC,UAAkB;AAC3B,YAAI,OAAO;AACT,cAAI,CAAC,SAAS;AACZ,sBAAU,CAAA,SAAQ,CAAC,GAAG,MAAM,KAAK,CAAC;AAAA,UACpC;AACA,0BAAgB,CAAA,SAAQ,CAAC,GAAG,MAAM,KAAK,CAAC;AAAA,QAC1C;AAAA,MACF;AAAA,MACA,UAAU;AAAA,IAAA;AAAA,IAElB,QAAQ;AAAA,MACN,SAAS;AAAA,MACT,iBAAiB;AAAA,MACjB,GAAI,iBAAiB;AAAA,QACnB,kBAAkB;AAAA,UAChB,UAAU,CAAC,UACT,eAAe,MAAM,cAAc,KAAK;AAAA,QAAA;AAAA,QAE5C,OAAO;AAAA,UACL,UAAU;AAAA,UACV,YAAY;AAAA,UACZ,SAAS;AAAA,UACT,SAAS;AAAA,UACT,iBAAiB;AAAA,QAAA;AAAA,MACnB;AAAA,IACF;AAAA;AAAA;AAAA;AAAA;AAAA,IAMF,GAAI,WACF,oBAAoB,gBAAgB,UAAU;AAAA,MAC5C,gBAAgB,aAAa,CAAC,IAC1B,EAAE,OAAO,aAAa,CAAC,GAAG,OAAO,SAAS,aAAa,CAAC,CAAC,MACzD;AAAA,IAAA;AAAA,IAER,GAAI,WACF,oBAAoB,gBAAgB,UAAU;AAAA,MAC5C,iBAAiB,aAAa,IAAI,CAAA,WAAU,EAAE,OAAO,OAAO,SAAS,KAAK,IAAI;AAAA,IAAA;AAAA,EAChF;AAGJ,SAAO,gBAAgB,WAAW,kBAChC,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP,MAAM;AAAA,MACN,OAAO,aAAa,CAAC;AAAA,MACrB,UAAU;AAAA,MACV;AAAA,MACA,OAAO;AAAA,IAAA;AAAA,IAEN,aAAa,IAAI,CAAA,UAChB,sBAAA,cAAC,QAAA,EAAO,KAAK,OAAO,MAAA,GACjB,SAAS,KAAK,CACjB,CACD;AAAA,EAAA,IAGH,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,MACP,UAAU;AAAA,MACV;AAAA,MACA,OAAO;AAAA,IAAA;AAAA,IAEN,aAAa,IAAI,CAAA,UAChB,sBAAA,cAAC,aAAA,EAAY,KAAK,OAAO,MAAA,GACtB,SAAS,KAAK,CACjB,CACD;AAAA,EAAA;AAGP;"}
1
+ {"version":3,"file":"DataGridFilterValueSelect.es.js","sources":["../../../../src/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useCallback, useState } from \"react\";\nimport { Option } from \"../../Form/Select/SingleSelect/Option\";\nimport { MultiOption } from \"../../Form/Select/MultiSelect/MultiOption\";\nimport { MultiSelectWrapper } from \"../../Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper\";\nimport { SelectWrapper } from \"../../Form/Wrapper/SelectWrapper/SelectWrapper\";\nimport {\n DataGridColumnMetadata,\n PopoverTranslations,\n ValueSelectType\n} from \"./DataGridFilters.interfaces\";\n\nexport type Props = {\n column: string;\n columnsMetadata: DataGridColumnMetadata[];\n values: string[];\n pickedValues: string[];\n setValues: (values: React.SetStateAction<string[]>) => void;\n setPickedValues: (pickedValues: React.SetStateAction<string[]>) => void;\n translations?: PopoverTranslations;\n operator?: { allowEmptyValues: boolean } | null;\n};\n\nexport const DataGridFilterValueSelect = ({\n column,\n columnsMetadata,\n values,\n pickedValues,\n setValues,\n setPickedValues,\n translations,\n operator\n}: Props) => {\n const [touched, setTouched] = useState(false);\n\n const {\n valueSelectLabel = \"Value\",\n addNewValueLabel = \"Create new\",\n addNewValueButtonTitle = \"Add new select value\"\n } = translations || {};\n\n const columnMetadata = columnsMetadata.find(({ name }) => name === column);\n const disableAddNew = columnMetadata?.disableAddNew;\n const valueSelectType = columnMetadata?.valueSelectType;\n\n const isValueRequired = operator && !operator.allowEmptyValues;\n const hasValidationError = Boolean(isValueRequired && pickedValues.length === 0 && touched);\n\n const addNewBtnProps: React.ButtonHTMLAttributes<HTMLButtonElement> = {\n title: addNewValueButtonTitle,\n type: \"button\"\n };\n\n const onChangeHandler = useCallback(\n (e: React.ChangeEvent<HTMLSelectElement>) => {\n const { selectedOptions, value } = e.target;\n\n let newValues: string[];\n\n if (valueSelectType === ValueSelectType.single) {\n newValues = value ? [value] : [];\n } else {\n newValues = Array.from(selectedOptions, option => option.value);\n }\n setPickedValues(newValues);\n setTouched(true);\n },\n [valueSelectType]\n );\n\n const selectProps = {\n addNew: disableAddNew\n ? undefined\n : {\n label: addNewValueLabel,\n onAddNew: (value: string) => {\n if (value) {\n setValues(prev => [...prev, value]);\n setPickedValues(prev => [...prev, value]);\n }\n },\n btnProps: addNewBtnProps\n },\n search: {\n enabled: true,\n renderThreshold: 0\n }\n };\n\n return ValueSelectType.single === valueSelectType ? (\n <SelectWrapper\n label={valueSelectLabel}\n name={\"value\"}\n value={pickedValues[0]}\n onChange={onChangeHandler}\n selectProps={selectProps}\n error={hasValidationError}\n >\n {values.map(value => (\n <Option key={value} value={value}>\n {value}\n </Option>\n ))}\n </SelectWrapper>\n ) : (\n <MultiSelectWrapper\n label={valueSelectLabel}\n name={\"value\"}\n value={pickedValues}\n onChange={onChangeHandler}\n selectProps={selectProps}\n error={hasValidationError}\n >\n {values.map(value => (\n <MultiOption key={value} value={value}>\n {value}\n </MultiOption>\n ))}\n </MultiSelectWrapper>\n );\n};\n"],"names":[],"mappings":";;;;;;AAsCO,MAAM,4BAA4B,CAAC;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAa;AACX,QAAM,CAAC,SAAS,UAAU,IAAI,SAAS,KAAK;AAE5C,QAAM;AAAA,IACJ,mBAAmB;AAAA,IACnB,mBAAmB;AAAA,IACnB,yBAAyB;AAAA,EAAA,IACvB,gBAAgB,CAAA;AAEpB,QAAM,iBAAiB,gBAAgB,KAAK,CAAC,EAAE,KAAA,MAAW,SAAS,MAAM;AACzE,QAAM,gBAAgB,iDAAgB;AACtC,QAAM,kBAAkB,iDAAgB;AAExC,QAAM,kBAAkB,YAAY,CAAC,SAAS;AAC9C,QAAM,qBAAqB,QAAQ,mBAAmB,aAAa,WAAW,KAAK,OAAO;AAE1F,QAAM,iBAAgE;AAAA,IACpE,OAAO;AAAA,IACP,MAAM;AAAA,EAAA;AAGR,QAAM,kBAAkB;AAAA,IACtB,CAAC,MAA4C;AAC3C,YAAM,EAAE,iBAAiB,MAAA,IAAU,EAAE;AAErC,UAAI;AAEJ,UAAI,oBAAoB,gBAAgB,QAAQ;AAC9C,oBAAY,QAAQ,CAAC,KAAK,IAAI,CAAA;AAAA,MAChC,OAAO;AACL,oBAAY,MAAM,KAAK,iBAAiB,CAAA,WAAU,OAAO,KAAK;AAAA,MAChE;AACA,sBAAgB,SAAS;AACzB,iBAAW,IAAI;AAAA,IACjB;AAAA,IACA,CAAC,eAAe;AAAA,EAAA;AAGlB,QAAM,cAAc;AAAA,IAClB,QAAQ,gBACJ,SACA;AAAA,MACE,OAAO;AAAA,MACP,UAAU,CAAC,UAAkB;AAC3B,YAAI,OAAO;AACT,oBAAU,CAAA,SAAQ,CAAC,GAAG,MAAM,KAAK,CAAC;AAClC,0BAAgB,CAAA,SAAQ,CAAC,GAAG,MAAM,KAAK,CAAC;AAAA,QAC1C;AAAA,MACF;AAAA,MACA,UAAU;AAAA,IAAA;AAAA,IAEhB,QAAQ;AAAA,MACN,SAAS;AAAA,MACT,iBAAiB;AAAA,IAAA;AAAA,EACnB;AAGF,SAAO,gBAAgB,WAAW,kBAChC,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP,MAAM;AAAA,MACN,OAAO,aAAa,CAAC;AAAA,MACrB,UAAU;AAAA,MACV;AAAA,MACA,OAAO;AAAA,IAAA;AAAA,IAEN,OAAO,IAAI,CAAA,UACV,sBAAA,cAAC,UAAO,KAAK,OAAO,MAAA,GACjB,KACH,CACD;AAAA,EAAA,IAGH,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,MACP,UAAU;AAAA,MACV;AAAA,MACA,OAAO;AAAA,IAAA;AAAA,IAEN,OAAO,IAAI,CAAA,UACV,sBAAA,cAAC,eAAY,KAAK,OAAO,MAAA,GACtB,KACH,CACD;AAAA,EAAA;AAGP;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridFilters.interfaces.cjs.js","sources":["../../../../src/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface FilterOperator {\n name: string;\n allowEmptyValues: boolean;\n}\n\nexport interface Filter {\n id: string;\n column: string;\n operator: FilterOperator | null;\n value: string[];\n}\n\nexport type FiltersAction =\n | {\n type: \"add\";\n payload: Filter;\n }\n | {\n type: \"edit\";\n payload: Filter;\n }\n | {\n type: \"remove\";\n payload: { id: string };\n }\n | {\n type: \"reset\";\n payload: Filter[];\n }\n | {\n type: \"clear\";\n };\n\nexport type FiltersState = {\n filters: Filter[];\n};\n\nexport type FilterEditorMode = \"ADD\" | \"EDIT\" | \"ADD_DATE\";\n\nexport const DefaultOperators: Record<string, FilterOperator> = {\n is: { name: \"is\", allowEmptyValues: false },\n isNot: { name: \"is not\", allowEmptyValues: false },\n contains: { name: \"contains\", allowEmptyValues: false },\n doesNotContain: { name: \"does not contain\", allowEmptyValues: false },\n isEmpty: { name: \"is empty\", allowEmptyValues: true }\n};\n\nexport interface DataGridColumnMetadata {\n name: string;\n headline: string;\n operators?: FilterOperator[];\n defaultValues?: string[];\n disableAddNew?: boolean;\n allowSingleFilterOnly?: boolean;\n valueSelectType?: ValueSelectType;\n /**\n * Enables backend value search for this column. When provided, `defaultValues` is treated as\n * the initial page only (not the complete list) and the value select is expected to drive\n * further fetches as the user types (wiring lands in a follow-up task).\n */\n onValueSearch?: (query: string) => void;\n /** Called to fetch the next page of values once the user reaches the end of the loaded list. */\n onValueLoadMore?: () => void;\n /** Whether another page of values is available after the currently loaded ones. */\n hasMoreValues?: boolean;\n /** Whether a value search/page fetch is currently in flight. */\n valuesLoading?: boolean;\n /** Minimum query length required before `onValueSearch` is invoked. */\n minValueSearchLength?: number;\n /**\n * Resolves display labels for saved values that aren't present in the currently loaded values\n * page (e.g. a value from a previously saved filter). Used in EDIT mode so the filter tag and\n * value select can show a meaningful label instead of falling back to the raw value.\n */\n resolveValueLabels?: (values: string[]) => { value: string; label: string }[];\n}\n\nexport interface PopoverTranslations {\n columnSelectLabel?: string;\n operatorSelectLabel?: string;\n valueSelectLabel?: string;\n addNewValueLabel?: string;\n addNewValueButtonTitle?: string;\n submitButtonTitle?: string;\n cancelButtonTitle?: string;\n}\n\nexport interface TagTranslations {\n addButtonCaption?: string;\n or?: string;\n other?: string;\n dateIs?: string;\n}\n\nexport interface ToolbarTranslations {\n clearButtonCaption?: string;\n}\n\nexport interface FiltersTranslations {\n toolbar?: ToolbarTranslations;\n tag?: TagTranslations;\n popover?: PopoverTranslations;\n}\n\nexport interface KeyValuePair<TKey = string, TValue = string> {\n key: TKey;\n value: TValue;\n}\n\nexport type DateTimeFilterType =\n | \"THIRTY_SECONDS\"\n | \"ONE_MINUTE\"\n | \"FIVE_MINUTES\"\n | \"ONE_HOUR\"\n | \"TWENTY_FOUR_HOURS\"\n | \"CUSTOM\";\n\nexport interface DateTimeFilter {\n fromDate: string;\n toDate: string;\n type: DateTimeFilterType;\n}\n\nexport enum ValueSelectType {\n single = \"single\",\n multi = \"multi\"\n}\n"],"names":["ValueSelectType","is","name","allowEmptyValues","isNot","contains","doesNotContain","isEmpty"],"mappings":"gFA2IO,IAAKA,GAAAA,IACVA,EAAA,OAAS,SACTA,EAAA,MAAQ,QAFEA,IAAAA,GAAA,CAAA,4BApFoD,CAC9DC,GAAI,CAAEC,KAAM,KAAMC,kBAAkB,GACpCC,MAAO,CAAEF,KAAM,SAAUC,kBAAkB,GAC3CE,SAAU,CAAEH,KAAM,WAAYC,kBAAkB,GAChDG,eAAgB,CAAEJ,KAAM,mBAAoBC,kBAAkB,GAC9DI,QAAS,CAAEL,KAAM,WAAYC,kBAAkB"}
1
+ {"version":3,"file":"DataGridFilters.interfaces.cjs.js","sources":["../../../../src/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface FilterOperator {\n name: string;\n allowEmptyValues: boolean;\n}\n\nexport interface Filter {\n id: string;\n column: string;\n operator: FilterOperator | null;\n value: string[];\n}\n\nexport type FiltersAction =\n | {\n type: \"add\";\n payload: Filter;\n }\n | {\n type: \"edit\";\n payload: Filter;\n }\n | {\n type: \"remove\";\n payload: { id: string };\n }\n | {\n type: \"reset\";\n payload: Filter[];\n }\n | {\n type: \"clear\";\n };\n\nexport type FiltersState = {\n filters: Filter[];\n};\n\nexport type FilterEditorMode = \"ADD\" | \"EDIT\" | \"ADD_DATE\";\n\nexport const DefaultOperators: Record<string, FilterOperator> = {\n is: { name: \"is\", allowEmptyValues: false },\n isNot: { name: \"is not\", allowEmptyValues: false },\n contains: { name: \"contains\", allowEmptyValues: false },\n doesNotContain: { name: \"does not contain\", allowEmptyValues: false },\n isEmpty: { name: \"is empty\", allowEmptyValues: true }\n};\n\nexport interface DataGridColumnMetadata {\n name: string;\n headline: string;\n operators?: FilterOperator[];\n defaultValues?: string[];\n disableAddNew?: boolean;\n allowSingleFilterOnly?: boolean;\n valueSelectType?: ValueSelectType;\n}\n\nexport interface PopoverTranslations {\n columnSelectLabel?: string;\n operatorSelectLabel?: string;\n valueSelectLabel?: string;\n addNewValueLabel?: string;\n addNewValueButtonTitle?: string;\n submitButtonTitle?: string;\n cancelButtonTitle?: string;\n}\n\nexport interface TagTranslations {\n addButtonCaption?: string;\n or?: string;\n other?: string;\n dateIs?: string;\n}\n\nexport interface ToolbarTranslations {\n clearButtonCaption?: string;\n}\n\nexport interface FiltersTranslations {\n toolbar?: ToolbarTranslations;\n tag?: TagTranslations;\n popover?: PopoverTranslations;\n}\n\nexport interface KeyValuePair<TKey = string, TValue = string> {\n key: TKey;\n value: TValue;\n}\n\nexport type DateTimeFilterType =\n | \"THIRTY_SECONDS\"\n | \"ONE_MINUTE\"\n | \"FIVE_MINUTES\"\n | \"ONE_HOUR\"\n | \"TWENTY_FOUR_HOURS\"\n | \"CUSTOM\";\n\nexport interface DateTimeFilter {\n fromDate: string;\n toDate: string;\n type: DateTimeFilterType;\n}\n\nexport enum ValueSelectType {\n single = \"single\",\n multi = \"multi\"\n}\n"],"names":["ValueSelectType","is","name","allowEmptyValues","isNot","contains","doesNotContain","isEmpty"],"mappings":"gFAuHO,IAAKA,GAAAA,IACVA,EAAA,OAAS,SACTA,EAAA,MAAQ,QAFEA,IAAAA,GAAA,CAAA,4BAhEoD,CAC9DC,GAAI,CAAEC,KAAM,KAAMC,kBAAkB,GACpCC,MAAO,CAAEF,KAAM,SAAUC,kBAAkB,GAC3CE,SAAU,CAAEH,KAAM,WAAYC,kBAAkB,GAChDG,eAAgB,CAAEJ,KAAM,mBAAoBC,kBAAkB,GAC9DI,QAAS,CAAEL,KAAM,WAAYC,kBAAkB"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridFilters.interfaces.es.js","sources":["../../../../src/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface FilterOperator {\n name: string;\n allowEmptyValues: boolean;\n}\n\nexport interface Filter {\n id: string;\n column: string;\n operator: FilterOperator | null;\n value: string[];\n}\n\nexport type FiltersAction =\n | {\n type: \"add\";\n payload: Filter;\n }\n | {\n type: \"edit\";\n payload: Filter;\n }\n | {\n type: \"remove\";\n payload: { id: string };\n }\n | {\n type: \"reset\";\n payload: Filter[];\n }\n | {\n type: \"clear\";\n };\n\nexport type FiltersState = {\n filters: Filter[];\n};\n\nexport type FilterEditorMode = \"ADD\" | \"EDIT\" | \"ADD_DATE\";\n\nexport const DefaultOperators: Record<string, FilterOperator> = {\n is: { name: \"is\", allowEmptyValues: false },\n isNot: { name: \"is not\", allowEmptyValues: false },\n contains: { name: \"contains\", allowEmptyValues: false },\n doesNotContain: { name: \"does not contain\", allowEmptyValues: false },\n isEmpty: { name: \"is empty\", allowEmptyValues: true }\n};\n\nexport interface DataGridColumnMetadata {\n name: string;\n headline: string;\n operators?: FilterOperator[];\n defaultValues?: string[];\n disableAddNew?: boolean;\n allowSingleFilterOnly?: boolean;\n valueSelectType?: ValueSelectType;\n /**\n * Enables backend value search for this column. When provided, `defaultValues` is treated as\n * the initial page only (not the complete list) and the value select is expected to drive\n * further fetches as the user types (wiring lands in a follow-up task).\n */\n onValueSearch?: (query: string) => void;\n /** Called to fetch the next page of values once the user reaches the end of the loaded list. */\n onValueLoadMore?: () => void;\n /** Whether another page of values is available after the currently loaded ones. */\n hasMoreValues?: boolean;\n /** Whether a value search/page fetch is currently in flight. */\n valuesLoading?: boolean;\n /** Minimum query length required before `onValueSearch` is invoked. */\n minValueSearchLength?: number;\n /**\n * Resolves display labels for saved values that aren't present in the currently loaded values\n * page (e.g. a value from a previously saved filter). Used in EDIT mode so the filter tag and\n * value select can show a meaningful label instead of falling back to the raw value.\n */\n resolveValueLabels?: (values: string[]) => { value: string; label: string }[];\n}\n\nexport interface PopoverTranslations {\n columnSelectLabel?: string;\n operatorSelectLabel?: string;\n valueSelectLabel?: string;\n addNewValueLabel?: string;\n addNewValueButtonTitle?: string;\n submitButtonTitle?: string;\n cancelButtonTitle?: string;\n}\n\nexport interface TagTranslations {\n addButtonCaption?: string;\n or?: string;\n other?: string;\n dateIs?: string;\n}\n\nexport interface ToolbarTranslations {\n clearButtonCaption?: string;\n}\n\nexport interface FiltersTranslations {\n toolbar?: ToolbarTranslations;\n tag?: TagTranslations;\n popover?: PopoverTranslations;\n}\n\nexport interface KeyValuePair<TKey = string, TValue = string> {\n key: TKey;\n value: TValue;\n}\n\nexport type DateTimeFilterType =\n | \"THIRTY_SECONDS\"\n | \"ONE_MINUTE\"\n | \"FIVE_MINUTES\"\n | \"ONE_HOUR\"\n | \"TWENTY_FOUR_HOURS\"\n | \"CUSTOM\";\n\nexport interface DateTimeFilter {\n fromDate: string;\n toDate: string;\n type: DateTimeFilterType;\n}\n\nexport enum ValueSelectType {\n single = \"single\",\n multi = \"multi\"\n}\n"],"names":["ValueSelectType"],"mappings":"AAuDO,MAAM,mBAAmD;AAAA,EAC9D,IAAI,EAAE,MAAM,MAAM,kBAAkB,MAAA;AAAA,EACpC,OAAO,EAAE,MAAM,UAAU,kBAAkB,MAAA;AAAA,EAC3C,UAAU,EAAE,MAAM,YAAY,kBAAkB,MAAA;AAAA,EAChD,gBAAgB,EAAE,MAAM,oBAAoB,kBAAkB,MAAA;AAAA,EAC9D,SAAS,EAAE,MAAM,YAAY,kBAAkB,KAAA;AACjD;AA8EO,IAAK,oCAAAA,qBAAL;AACLA,mBAAA,QAAA,IAAS;AACTA,mBAAA,OAAA,IAAQ;AAFE,SAAAA;AAAA,GAAA,mBAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"DataGridFilters.interfaces.es.js","sources":["../../../../src/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface FilterOperator {\n name: string;\n allowEmptyValues: boolean;\n}\n\nexport interface Filter {\n id: string;\n column: string;\n operator: FilterOperator | null;\n value: string[];\n}\n\nexport type FiltersAction =\n | {\n type: \"add\";\n payload: Filter;\n }\n | {\n type: \"edit\";\n payload: Filter;\n }\n | {\n type: \"remove\";\n payload: { id: string };\n }\n | {\n type: \"reset\";\n payload: Filter[];\n }\n | {\n type: \"clear\";\n };\n\nexport type FiltersState = {\n filters: Filter[];\n};\n\nexport type FilterEditorMode = \"ADD\" | \"EDIT\" | \"ADD_DATE\";\n\nexport const DefaultOperators: Record<string, FilterOperator> = {\n is: { name: \"is\", allowEmptyValues: false },\n isNot: { name: \"is not\", allowEmptyValues: false },\n contains: { name: \"contains\", allowEmptyValues: false },\n doesNotContain: { name: \"does not contain\", allowEmptyValues: false },\n isEmpty: { name: \"is empty\", allowEmptyValues: true }\n};\n\nexport interface DataGridColumnMetadata {\n name: string;\n headline: string;\n operators?: FilterOperator[];\n defaultValues?: string[];\n disableAddNew?: boolean;\n allowSingleFilterOnly?: boolean;\n valueSelectType?: ValueSelectType;\n}\n\nexport interface PopoverTranslations {\n columnSelectLabel?: string;\n operatorSelectLabel?: string;\n valueSelectLabel?: string;\n addNewValueLabel?: string;\n addNewValueButtonTitle?: string;\n submitButtonTitle?: string;\n cancelButtonTitle?: string;\n}\n\nexport interface TagTranslations {\n addButtonCaption?: string;\n or?: string;\n other?: string;\n dateIs?: string;\n}\n\nexport interface ToolbarTranslations {\n clearButtonCaption?: string;\n}\n\nexport interface FiltersTranslations {\n toolbar?: ToolbarTranslations;\n tag?: TagTranslations;\n popover?: PopoverTranslations;\n}\n\nexport interface KeyValuePair<TKey = string, TValue = string> {\n key: TKey;\n value: TValue;\n}\n\nexport type DateTimeFilterType =\n | \"THIRTY_SECONDS\"\n | \"ONE_MINUTE\"\n | \"FIVE_MINUTES\"\n | \"ONE_HOUR\"\n | \"TWENTY_FOUR_HOURS\"\n | \"CUSTOM\";\n\nexport interface DateTimeFilter {\n fromDate: string;\n toDate: string;\n type: DateTimeFilterType;\n}\n\nexport enum ValueSelectType {\n single = \"single\",\n multi = \"multi\"\n}\n"],"names":["ValueSelectType"],"mappings":"AAuDO,MAAM,mBAAmD;AAAA,EAC9D,IAAI,EAAE,MAAM,MAAM,kBAAkB,MAAA;AAAA,EACpC,OAAO,EAAE,MAAM,UAAU,kBAAkB,MAAA;AAAA,EAC3C,UAAU,EAAE,MAAM,YAAY,kBAAkB,MAAA;AAAA,EAChD,gBAAgB,EAAE,MAAM,oBAAoB,kBAAkB,MAAA;AAAA,EAC9D,SAAS,EAAE,MAAM,YAAY,kBAAkB,KAAA;AACjD;AA0DO,IAAK,oCAAAA,qBAAL;AACLA,mBAAA,QAAA,IAAS;AACTA,mBAAA,OAAA,IAAQ;AAFE,SAAAA;AAAA,GAAA,mBAAA,CAAA,CAAA;"}
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.appendChild(document.createTextNode('.DataGridToolbar_sr-only_PX3IM{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.DataGridToolbar_hidden_PX3IM{display:none}.DataGridToolbar_slide-in_PX3IM{animation:DataGridToolbar_slide-in_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.DataGridToolbar_slide-in_PX3IM{animation-duration:.1ms}}.DataGridToolbar_slide-out_PX3IM{animation:DataGridToolbar_slide-out_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.DataGridToolbar_slide-out_PX3IM{animation-duration:.1ms}}@keyframes DataGridToolbar_slide-in_PX3IM{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes DataGridToolbar_slide-out_PX3IM{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DataGridToolbar_wrapper_PX3IM{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;width:100%;padding-bottom:1rem}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:.5rem;width:100%;flex-grow:1}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_searchbar_PX3IM{min-width:7rem;flex-basis:15rem}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_field-search-wrapper_PX3IM{display:flex;align-items:flex-start}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_field-search-wrapper_PX3IM .DataGridToolbar_field-select_PX3IM{--input-border-radius: 2px 0 0 2px;flex-grow:0;flex-shrink:0;flex-basis:12.5rem}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_field-search-wrapper_PX3IM .DataGridToolbar_searchbar_PX3IM{--input-border-radius: 0 2px 2px 0;flex-grow:1;flex-shrink:0;flex-basis:22.5rem;margin-top:0}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_actions-wrapper_PX3IM{display:flex;align-items:center;justify-content:flex-start;gap:.5rem}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_clear-button_PX3IM{background:none;border:none;cursor:pointer}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_clear-button_PX3IM:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_clear-button_PX3IM .DataGridToolbar_caption_PX3IM{margin:0;font-size:var(--font-size-data-grid);line-height:var(--data-grid-line-height);text-decoration:underline;color:var(--color-primary500)}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_button-section_PX3IM{flex-shrink:0;display:flex;justify-content:center;align-items:center;gap:.5rem}')),document.head.appendChild(a)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a="DataGridToolbar_wrapper_PX3IM",r="DataGridToolbar_searchbar_PX3IM",e="DataGridToolbar_caption_PX3IM",t={wrapper:a,"filter-section":"DataGridToolbar_filter-section_PX3IM",searchbar:r,"field-search-wrapper":"DataGridToolbar_field-search-wrapper_PX3IM","field-select":"DataGridToolbar_field-select_PX3IM","actions-wrapper":"DataGridToolbar_actions-wrapper_PX3IM","clear-button":"DataGridToolbar_clear-button_PX3IM",caption:e,"button-section":"DataGridToolbar_button-section_PX3IM"};exports.caption=e,exports.default=t,exports.searchbar=r,exports.wrapper=a;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.appendChild(document.createTextNode('.DataGridToolbar_sr-only_FHLkT{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.DataGridToolbar_hidden_FHLkT{display:none}.DataGridToolbar_slide-in_FHLkT{animation:DataGridToolbar_slide-in_FHLkT .5s forwards}@media(prefers-reduced-motion:reduce){.DataGridToolbar_slide-in_FHLkT{animation-duration:.1ms}}.DataGridToolbar_slide-out_FHLkT{animation:DataGridToolbar_slide-out_FHLkT .5s forwards}@media(prefers-reduced-motion:reduce){.DataGridToolbar_slide-out_FHLkT{animation-duration:.1ms}}@keyframes DataGridToolbar_slide-in_FHLkT{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes DataGridToolbar_slide-out_FHLkT{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DataGridToolbar_wrapper_FHLkT{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;width:100%;padding-bottom:1rem}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:.5rem;width:100%;flex-grow:1}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_searchbar_FHLkT{min-width:7rem;flex-basis:15rem}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_field-search-wrapper_FHLkT{display:flex;align-items:flex-start}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_field-search-wrapper_FHLkT .DataGridToolbar_field-select_FHLkT{--input-border-radius: 2px 0 0 2px;flex-grow:0;flex-shrink:0;flex-basis:12.5rem}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_field-search-wrapper_FHLkT .DataGridToolbar_searchbar_FHLkT{--input-border-radius: 0 2px 2px 0;flex-grow:1;flex-shrink:0;flex-basis:22.5rem;margin-top:0}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_actions-wrapper_FHLkT{display:flex;align-items:center;justify-content:flex-start;gap:.5rem}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_clear-button_FHLkT{background:none;border:none;cursor:pointer}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_clear-button_FHLkT:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_clear-button_FHLkT .DataGridToolbar_caption_FHLkT{margin:0;font-size:var(--font-size-data-grid);line-height:var(--data-grid-line-height);text-decoration:underline;color:var(--color-primary500)}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_button-section_FHLkT{flex-shrink:0;display:flex;justify-content:center;align-items:center;gap:.5rem}')),document.head.appendChild(a)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a="DataGridToolbar_wrapper_FHLkT",r="DataGridToolbar_searchbar_FHLkT",e="DataGridToolbar_caption_FHLkT",t={wrapper:a,"filter-section":"DataGridToolbar_filter-section_FHLkT",searchbar:r,"field-search-wrapper":"DataGridToolbar_field-search-wrapper_FHLkT","field-select":"DataGridToolbar_field-select_FHLkT","actions-wrapper":"DataGridToolbar_actions-wrapper_FHLkT","clear-button":"DataGridToolbar_clear-button_FHLkT",caption:e,"button-section":"DataGridToolbar_button-section_FHLkT"};exports.caption=e,exports.default=t,exports.searchbar=r,exports.wrapper=a;
3
3
  //# sourceMappingURL=DataGridToolbar.module.scss.cjs.js.map
@@ -1,17 +1,17 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.appendChild(document.createTextNode('.DataGridToolbar_sr-only_PX3IM{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.DataGridToolbar_hidden_PX3IM{display:none}.DataGridToolbar_slide-in_PX3IM{animation:DataGridToolbar_slide-in_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.DataGridToolbar_slide-in_PX3IM{animation-duration:.1ms}}.DataGridToolbar_slide-out_PX3IM{animation:DataGridToolbar_slide-out_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.DataGridToolbar_slide-out_PX3IM{animation-duration:.1ms}}@keyframes DataGridToolbar_slide-in_PX3IM{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes DataGridToolbar_slide-out_PX3IM{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DataGridToolbar_wrapper_PX3IM{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;width:100%;padding-bottom:1rem}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:.5rem;width:100%;flex-grow:1}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_searchbar_PX3IM{min-width:7rem;flex-basis:15rem}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_field-search-wrapper_PX3IM{display:flex;align-items:flex-start}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_field-search-wrapper_PX3IM .DataGridToolbar_field-select_PX3IM{--input-border-radius: 2px 0 0 2px;flex-grow:0;flex-shrink:0;flex-basis:12.5rem}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_field-search-wrapper_PX3IM .DataGridToolbar_searchbar_PX3IM{--input-border-radius: 0 2px 2px 0;flex-grow:1;flex-shrink:0;flex-basis:22.5rem;margin-top:0}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_actions-wrapper_PX3IM{display:flex;align-items:center;justify-content:flex-start;gap:.5rem}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_clear-button_PX3IM{background:none;border:none;cursor:pointer}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_clear-button_PX3IM:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_filter-section_PX3IM .DataGridToolbar_clear-button_PX3IM .DataGridToolbar_caption_PX3IM{margin:0;font-size:var(--font-size-data-grid);line-height:var(--data-grid-line-height);text-decoration:underline;color:var(--color-primary500)}.DataGridToolbar_wrapper_PX3IM .DataGridToolbar_button-section_PX3IM{flex-shrink:0;display:flex;justify-content:center;align-items:center;gap:.5rem}')),document.head.appendChild(a)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
- const wrapper = "DataGridToolbar_wrapper_PX3IM";
3
- const searchbar = "DataGridToolbar_searchbar_PX3IM";
4
- const caption = "DataGridToolbar_caption_PX3IM";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.appendChild(document.createTextNode('.DataGridToolbar_sr-only_FHLkT{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.DataGridToolbar_hidden_FHLkT{display:none}.DataGridToolbar_slide-in_FHLkT{animation:DataGridToolbar_slide-in_FHLkT .5s forwards}@media(prefers-reduced-motion:reduce){.DataGridToolbar_slide-in_FHLkT{animation-duration:.1ms}}.DataGridToolbar_slide-out_FHLkT{animation:DataGridToolbar_slide-out_FHLkT .5s forwards}@media(prefers-reduced-motion:reduce){.DataGridToolbar_slide-out_FHLkT{animation-duration:.1ms}}@keyframes DataGridToolbar_slide-in_FHLkT{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes DataGridToolbar_slide-out_FHLkT{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DataGridToolbar_wrapper_FHLkT{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;width:100%;padding-bottom:1rem}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:.5rem;width:100%;flex-grow:1}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_searchbar_FHLkT{min-width:7rem;flex-basis:15rem}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_field-search-wrapper_FHLkT{display:flex;align-items:flex-start}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_field-search-wrapper_FHLkT .DataGridToolbar_field-select_FHLkT{--input-border-radius: 2px 0 0 2px;flex-grow:0;flex-shrink:0;flex-basis:12.5rem}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_field-search-wrapper_FHLkT .DataGridToolbar_searchbar_FHLkT{--input-border-radius: 0 2px 2px 0;flex-grow:1;flex-shrink:0;flex-basis:22.5rem;margin-top:0}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_actions-wrapper_FHLkT{display:flex;align-items:center;justify-content:flex-start;gap:.5rem}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_clear-button_FHLkT{background:none;border:none;cursor:pointer}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_clear-button_FHLkT:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:0;border-radius:var(--focus-border-radius)}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_filter-section_FHLkT .DataGridToolbar_clear-button_FHLkT .DataGridToolbar_caption_FHLkT{margin:0;font-size:var(--font-size-data-grid);line-height:var(--data-grid-line-height);text-decoration:underline;color:var(--color-primary500)}.DataGridToolbar_wrapper_FHLkT .DataGridToolbar_button-section_FHLkT{flex-shrink:0;display:flex;justify-content:center;align-items:center;gap:.5rem}')),document.head.appendChild(a)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
+ const wrapper = "DataGridToolbar_wrapper_FHLkT";
3
+ const searchbar = "DataGridToolbar_searchbar_FHLkT";
4
+ const caption = "DataGridToolbar_caption_FHLkT";
5
5
  const classes = {
6
6
  wrapper,
7
- "filter-section": "DataGridToolbar_filter-section_PX3IM",
7
+ "filter-section": "DataGridToolbar_filter-section_FHLkT",
8
8
  searchbar,
9
- "field-search-wrapper": "DataGridToolbar_field-search-wrapper_PX3IM",
10
- "field-select": "DataGridToolbar_field-select_PX3IM",
11
- "actions-wrapper": "DataGridToolbar_actions-wrapper_PX3IM",
12
- "clear-button": "DataGridToolbar_clear-button_PX3IM",
9
+ "field-search-wrapper": "DataGridToolbar_field-search-wrapper_FHLkT",
10
+ "field-select": "DataGridToolbar_field-select_FHLkT",
11
+ "actions-wrapper": "DataGridToolbar_actions-wrapper_FHLkT",
12
+ "clear-button": "DataGridToolbar_clear-button_FHLkT",
13
13
  caption,
14
- "button-section": "DataGridToolbar_button-section_PX3IM"
14
+ "button-section": "DataGridToolbar_button-section_FHLkT"
15
15
  };
16
16
  export {
17
17
  caption,
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DateTimePicker_popover_PX3IM{display:flex;flex-direction:column;align-items:flex-start;min-width:40rem}.DateTimePicker_popover_PX3IM .DateTimePicker_content-wrapper_PX3IM{display:flex}.DateTimePicker_popover_PX3IM .DateTimePicker_aside_PX3IM{display:flex;flex-direction:column;width:9.25rem;border-right:1px solid var(--color-blue-grey100)}.DateTimePicker_popover_PX3IM .DateTimePicker_aside-menu_PX3IM{margin:.5rem 0;padding:0;white-space:nowrap;list-style:none}.DateTimePicker_popover_PX3IM .DateTimePicker_aside-menu-item_PX3IM{height:2rem}.DateTimePicker_popover_PX3IM .DateTimePicker_aside-menu-item_PX3IM button{padding:.5rem .75rem;font-size:var(--font-size-sub);line-height:1.33;text-align:start}.DateTimePicker_popover_PX3IM .DateTimePicker_controls_PX3IM{display:flex;flex-direction:column;gap:2rem;flex-grow:1;padding:2rem 2rem 0}.DateTimePicker_popover_PX3IM .DateTimePicker_controls_PX3IM.DateTimePicker_has-error_PX3IM{gap:calc(2rem - 15.5681px)}.DateTimePicker_popover_PX3IM .DateTimePicker_controls-panel_PX3IM{display:flex;gap:2rem}.DateTimePicker_popover_PX3IM .DateTimePicker_controls-panel_PX3IM>*{flex-grow:1}.DateTimePicker_popover_PX3IM .DateTimePicker_controls-panel_PX3IM.DateTimePicker_set-height_PX3IM{min-height:17.5rem}.DateTimePicker_popover_PX3IM .DateTimePicker_actions_PX3IM{display:flex;justify-content:space-between;gap:1rem;flex-grow:1;width:calc(100% - 3rem);border-top:1px solid var(--color-blue-grey100);padding:1rem 1.5rem}.DateTimePicker_popover_PX3IM .DateTimePicker_input_PX3IM{margin-top:0;max-width:14rem}.DateTimePicker_popover_PX3IM .DateTimePicker_input_PX3IM label{font-size:var(--font-size-sub)}.DateTimePicker_popover_PX3IM .DateTimePicker_nav_PX3IM{position:absolute}.DateTimePicker_popover_PX3IM .DateTimePicker_next-button_PX3IM{position:absolute;left:27.3125rem;top:0}.DateTimePicker_popover_PX3IM .DateTimePicker_prev-button_PX3IM{position:absolute;top:0}.DateTimePicker_popover_PX3IM .DateTimePicker_month-caption_PX3IM{width:100%;height:calc(2.5 * var(--font-size));margin:0;padding:.75rem 0;font-size:var(--font-size-sub);font-weight:500;line-height:1.33;text-align:center}.DateTimePicker_error-message_PX3IM{font-size:var(--font-size-small)}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="DateTimePicker_popover_PX3IM",t="DateTimePicker_aside_PX3IM",i="DateTimePicker_controls_PX3IM",r="DateTimePicker_actions_PX3IM",o="DateTimePicker_input_PX3IM",a="DateTimePicker_nav_PX3IM",n={popover:e,"content-wrapper":"DateTimePicker_content-wrapper_PX3IM",aside:t,"aside-menu":"DateTimePicker_aside-menu_PX3IM","aside-menu-item":"DateTimePicker_aside-menu-item_PX3IM",controls:i,"has-error":"DateTimePicker_has-error_PX3IM","controls-panel":"DateTimePicker_controls-panel_PX3IM","set-height":"DateTimePicker_set-height_PX3IM",actions:r,input:o,nav:a,"next-button":"DateTimePicker_next-button_PX3IM","prev-button":"DateTimePicker_prev-button_PX3IM","month-caption":"DateTimePicker_month-caption_PX3IM","error-message":"DateTimePicker_error-message_PX3IM"};exports.actions=r,exports.aside=t,exports.controls=i,exports.default=n,exports.input=o,exports.nav=a,exports.popover=e;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DateTimePicker_popover_FHLkT{display:flex;flex-direction:column;align-items:flex-start;min-width:40rem}.DateTimePicker_popover_FHLkT .DateTimePicker_content-wrapper_FHLkT{display:flex}.DateTimePicker_popover_FHLkT .DateTimePicker_aside_FHLkT{display:flex;flex-direction:column;width:9.25rem;border-right:1px solid var(--color-blue-grey100)}.DateTimePicker_popover_FHLkT .DateTimePicker_aside-menu_FHLkT{margin:.5rem 0;padding:0;white-space:nowrap;list-style:none}.DateTimePicker_popover_FHLkT .DateTimePicker_aside-menu-item_FHLkT{height:2rem}.DateTimePicker_popover_FHLkT .DateTimePicker_aside-menu-item_FHLkT button{padding:.5rem .75rem;font-size:var(--font-size-sub);line-height:1.33;text-align:start}.DateTimePicker_popover_FHLkT .DateTimePicker_controls_FHLkT{display:flex;flex-direction:column;gap:2rem;flex-grow:1;padding:2rem 2rem 0}.DateTimePicker_popover_FHLkT .DateTimePicker_controls_FHLkT.DateTimePicker_has-error_FHLkT{gap:calc(2rem - 15.5681px)}.DateTimePicker_popover_FHLkT .DateTimePicker_controls-panel_FHLkT{display:flex;gap:2rem}.DateTimePicker_popover_FHLkT .DateTimePicker_controls-panel_FHLkT>*{flex-grow:1}.DateTimePicker_popover_FHLkT .DateTimePicker_controls-panel_FHLkT.DateTimePicker_set-height_FHLkT{min-height:17.5rem}.DateTimePicker_popover_FHLkT .DateTimePicker_actions_FHLkT{display:flex;justify-content:space-between;gap:1rem;flex-grow:1;width:calc(100% - 3rem);border-top:1px solid var(--color-blue-grey100);padding:1rem 1.5rem}.DateTimePicker_popover_FHLkT .DateTimePicker_input_FHLkT{margin-top:0;max-width:14rem}.DateTimePicker_popover_FHLkT .DateTimePicker_input_FHLkT label{font-size:var(--font-size-sub)}.DateTimePicker_popover_FHLkT .DateTimePicker_nav_FHLkT{position:absolute}.DateTimePicker_popover_FHLkT .DateTimePicker_next-button_FHLkT{position:absolute;left:27.3125rem;top:0}.DateTimePicker_popover_FHLkT .DateTimePicker_prev-button_FHLkT{position:absolute;top:0}.DateTimePicker_popover_FHLkT .DateTimePicker_month-caption_FHLkT{width:100%;height:calc(2.5 * var(--font-size));margin:0;padding:.75rem 0;font-size:var(--font-size-sub);font-weight:500;line-height:1.33;text-align:center}.DateTimePicker_error-message_FHLkT{font-size:var(--font-size-small)}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="DateTimePicker_popover_FHLkT",t="DateTimePicker_aside_FHLkT",i="DateTimePicker_controls_FHLkT",r="DateTimePicker_actions_FHLkT",o="DateTimePicker_input_FHLkT",a="DateTimePicker_nav_FHLkT",n={popover:e,"content-wrapper":"DateTimePicker_content-wrapper_FHLkT",aside:t,"aside-menu":"DateTimePicker_aside-menu_FHLkT","aside-menu-item":"DateTimePicker_aside-menu-item_FHLkT",controls:i,"has-error":"DateTimePicker_has-error_FHLkT","controls-panel":"DateTimePicker_controls-panel_FHLkT","set-height":"DateTimePicker_set-height_FHLkT",actions:r,input:o,nav:a,"next-button":"DateTimePicker_next-button_FHLkT","prev-button":"DateTimePicker_prev-button_FHLkT","month-caption":"DateTimePicker_month-caption_FHLkT","error-message":"DateTimePicker_error-message_FHLkT"};exports.actions=r,exports.aside=t,exports.controls=i,exports.default=n,exports.input=o,exports.nav=a,exports.popover=e;
3
3
  //# sourceMappingURL=DateTimePicker.module.scss.cjs.js.map
@@ -1,27 +1,27 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DateTimePicker_popover_PX3IM{display:flex;flex-direction:column;align-items:flex-start;min-width:40rem}.DateTimePicker_popover_PX3IM .DateTimePicker_content-wrapper_PX3IM{display:flex}.DateTimePicker_popover_PX3IM .DateTimePicker_aside_PX3IM{display:flex;flex-direction:column;width:9.25rem;border-right:1px solid var(--color-blue-grey100)}.DateTimePicker_popover_PX3IM .DateTimePicker_aside-menu_PX3IM{margin:.5rem 0;padding:0;white-space:nowrap;list-style:none}.DateTimePicker_popover_PX3IM .DateTimePicker_aside-menu-item_PX3IM{height:2rem}.DateTimePicker_popover_PX3IM .DateTimePicker_aside-menu-item_PX3IM button{padding:.5rem .75rem;font-size:var(--font-size-sub);line-height:1.33;text-align:start}.DateTimePicker_popover_PX3IM .DateTimePicker_controls_PX3IM{display:flex;flex-direction:column;gap:2rem;flex-grow:1;padding:2rem 2rem 0}.DateTimePicker_popover_PX3IM .DateTimePicker_controls_PX3IM.DateTimePicker_has-error_PX3IM{gap:calc(2rem - 15.5681px)}.DateTimePicker_popover_PX3IM .DateTimePicker_controls-panel_PX3IM{display:flex;gap:2rem}.DateTimePicker_popover_PX3IM .DateTimePicker_controls-panel_PX3IM>*{flex-grow:1}.DateTimePicker_popover_PX3IM .DateTimePicker_controls-panel_PX3IM.DateTimePicker_set-height_PX3IM{min-height:17.5rem}.DateTimePicker_popover_PX3IM .DateTimePicker_actions_PX3IM{display:flex;justify-content:space-between;gap:1rem;flex-grow:1;width:calc(100% - 3rem);border-top:1px solid var(--color-blue-grey100);padding:1rem 1.5rem}.DateTimePicker_popover_PX3IM .DateTimePicker_input_PX3IM{margin-top:0;max-width:14rem}.DateTimePicker_popover_PX3IM .DateTimePicker_input_PX3IM label{font-size:var(--font-size-sub)}.DateTimePicker_popover_PX3IM .DateTimePicker_nav_PX3IM{position:absolute}.DateTimePicker_popover_PX3IM .DateTimePicker_next-button_PX3IM{position:absolute;left:27.3125rem;top:0}.DateTimePicker_popover_PX3IM .DateTimePicker_prev-button_PX3IM{position:absolute;top:0}.DateTimePicker_popover_PX3IM .DateTimePicker_month-caption_PX3IM{width:100%;height:calc(2.5 * var(--font-size));margin:0;padding:.75rem 0;font-size:var(--font-size-sub);font-weight:500;line-height:1.33;text-align:center}.DateTimePicker_error-message_PX3IM{font-size:var(--font-size-small)}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
- const popover = "DateTimePicker_popover_PX3IM";
3
- const aside = "DateTimePicker_aside_PX3IM";
4
- const controls = "DateTimePicker_controls_PX3IM";
5
- const actions = "DateTimePicker_actions_PX3IM";
6
- const input = "DateTimePicker_input_PX3IM";
7
- const nav = "DateTimePicker_nav_PX3IM";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DateTimePicker_popover_FHLkT{display:flex;flex-direction:column;align-items:flex-start;min-width:40rem}.DateTimePicker_popover_FHLkT .DateTimePicker_content-wrapper_FHLkT{display:flex}.DateTimePicker_popover_FHLkT .DateTimePicker_aside_FHLkT{display:flex;flex-direction:column;width:9.25rem;border-right:1px solid var(--color-blue-grey100)}.DateTimePicker_popover_FHLkT .DateTimePicker_aside-menu_FHLkT{margin:.5rem 0;padding:0;white-space:nowrap;list-style:none}.DateTimePicker_popover_FHLkT .DateTimePicker_aside-menu-item_FHLkT{height:2rem}.DateTimePicker_popover_FHLkT .DateTimePicker_aside-menu-item_FHLkT button{padding:.5rem .75rem;font-size:var(--font-size-sub);line-height:1.33;text-align:start}.DateTimePicker_popover_FHLkT .DateTimePicker_controls_FHLkT{display:flex;flex-direction:column;gap:2rem;flex-grow:1;padding:2rem 2rem 0}.DateTimePicker_popover_FHLkT .DateTimePicker_controls_FHLkT.DateTimePicker_has-error_FHLkT{gap:calc(2rem - 15.5681px)}.DateTimePicker_popover_FHLkT .DateTimePicker_controls-panel_FHLkT{display:flex;gap:2rem}.DateTimePicker_popover_FHLkT .DateTimePicker_controls-panel_FHLkT>*{flex-grow:1}.DateTimePicker_popover_FHLkT .DateTimePicker_controls-panel_FHLkT.DateTimePicker_set-height_FHLkT{min-height:17.5rem}.DateTimePicker_popover_FHLkT .DateTimePicker_actions_FHLkT{display:flex;justify-content:space-between;gap:1rem;flex-grow:1;width:calc(100% - 3rem);border-top:1px solid var(--color-blue-grey100);padding:1rem 1.5rem}.DateTimePicker_popover_FHLkT .DateTimePicker_input_FHLkT{margin-top:0;max-width:14rem}.DateTimePicker_popover_FHLkT .DateTimePicker_input_FHLkT label{font-size:var(--font-size-sub)}.DateTimePicker_popover_FHLkT .DateTimePicker_nav_FHLkT{position:absolute}.DateTimePicker_popover_FHLkT .DateTimePicker_next-button_FHLkT{position:absolute;left:27.3125rem;top:0}.DateTimePicker_popover_FHLkT .DateTimePicker_prev-button_FHLkT{position:absolute;top:0}.DateTimePicker_popover_FHLkT .DateTimePicker_month-caption_FHLkT{width:100%;height:calc(2.5 * var(--font-size));margin:0;padding:.75rem 0;font-size:var(--font-size-sub);font-weight:500;line-height:1.33;text-align:center}.DateTimePicker_error-message_FHLkT{font-size:var(--font-size-small)}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
+ const popover = "DateTimePicker_popover_FHLkT";
3
+ const aside = "DateTimePicker_aside_FHLkT";
4
+ const controls = "DateTimePicker_controls_FHLkT";
5
+ const actions = "DateTimePicker_actions_FHLkT";
6
+ const input = "DateTimePicker_input_FHLkT";
7
+ const nav = "DateTimePicker_nav_FHLkT";
8
8
  const classes = {
9
9
  popover,
10
- "content-wrapper": "DateTimePicker_content-wrapper_PX3IM",
10
+ "content-wrapper": "DateTimePicker_content-wrapper_FHLkT",
11
11
  aside,
12
- "aside-menu": "DateTimePicker_aside-menu_PX3IM",
13
- "aside-menu-item": "DateTimePicker_aside-menu-item_PX3IM",
12
+ "aside-menu": "DateTimePicker_aside-menu_FHLkT",
13
+ "aside-menu-item": "DateTimePicker_aside-menu-item_FHLkT",
14
14
  controls,
15
- "has-error": "DateTimePicker_has-error_PX3IM",
16
- "controls-panel": "DateTimePicker_controls-panel_PX3IM",
17
- "set-height": "DateTimePicker_set-height_PX3IM",
15
+ "has-error": "DateTimePicker_has-error_FHLkT",
16
+ "controls-panel": "DateTimePicker_controls-panel_FHLkT",
17
+ "set-height": "DateTimePicker_set-height_FHLkT",
18
18
  actions,
19
19
  input,
20
20
  nav,
21
- "next-button": "DateTimePicker_next-button_PX3IM",
22
- "prev-button": "DateTimePicker_prev-button_PX3IM",
23
- "month-caption": "DateTimePicker_month-caption_PX3IM",
24
- "error-message": "DateTimePicker_error-message_PX3IM"
21
+ "next-button": "DateTimePicker_next-button_FHLkT",
22
+ "prev-button": "DateTimePicker_prev-button_FHLkT",
23
+ "month-caption": "DateTimePicker_month-caption_FHLkT",
24
+ "error-message": "DateTimePicker_error-message_FHLkT"
25
25
  };
26
26
  export {
27
27
  actions,
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DataGridHeader_row_PX3IM{height:3.25rem;background-color:var(--color-blue-grey25);position:relative;border-top:2px solid var(--light-grey-border)}.DataGridHeader_row_PX3IM:after{content:"";position:absolute;width:100%;left:0;bottom:0;border-bottom:2px solid var(--light-grey-border)}.DataGridHeader_context-menu_PX3IM{width:2.5rem;box-sizing:border-box}.DataGridHeader_sticky_PX3IM th,.DataGridHeader_sticky_PX3IM td{position:sticky;top:var(--sticky-stack-offset, -1px);z-index:2;background-color:var(--color-blue-grey25);box-shadow:inset 0 2px 0 var(--light-grey-border),inset 0 -2px 0 var(--light-grey-border)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="DataGridHeader_row_PX3IM",t="DataGridHeader_sticky_PX3IM",r={row:e,"context-menu":"DataGridHeader_context-menu_PX3IM",sticky:t};exports.default=r,exports.row=e,exports.sticky=t;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DataGridHeader_row_FHLkT{height:3.25rem;background-color:var(--color-blue-grey25);position:relative;border-top:2px solid var(--light-grey-border)}.DataGridHeader_row_FHLkT:after{content:"";position:absolute;width:100%;left:0;bottom:0;border-bottom:2px solid var(--light-grey-border)}.DataGridHeader_context-menu_FHLkT{width:2.5rem;box-sizing:border-box}.DataGridHeader_sticky_FHLkT th,.DataGridHeader_sticky_FHLkT td{position:sticky;top:var(--sticky-stack-offset, -1px);z-index:2;background-color:var(--color-blue-grey25);box-shadow:inset 0 2px 0 var(--light-grey-border),inset 0 -2px 0 var(--light-grey-border)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="DataGridHeader_row_FHLkT",t="DataGridHeader_sticky_FHLkT",r={row:e,"context-menu":"DataGridHeader_context-menu_FHLkT",sticky:t};exports.default=r,exports.row=e,exports.sticky=t;
3
3
  //# sourceMappingURL=DataGridHeader.module.scss.cjs.js.map
@@ -1,9 +1,9 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DataGridHeader_row_PX3IM{height:3.25rem;background-color:var(--color-blue-grey25);position:relative;border-top:2px solid var(--light-grey-border)}.DataGridHeader_row_PX3IM:after{content:"";position:absolute;width:100%;left:0;bottom:0;border-bottom:2px solid var(--light-grey-border)}.DataGridHeader_context-menu_PX3IM{width:2.5rem;box-sizing:border-box}.DataGridHeader_sticky_PX3IM th,.DataGridHeader_sticky_PX3IM td{position:sticky;top:var(--sticky-stack-offset, -1px);z-index:2;background-color:var(--color-blue-grey25);box-shadow:inset 0 2px 0 var(--light-grey-border),inset 0 -2px 0 var(--light-grey-border)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
- const row = "DataGridHeader_row_PX3IM";
3
- const sticky = "DataGridHeader_sticky_PX3IM";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DataGridHeader_row_FHLkT{height:3.25rem;background-color:var(--color-blue-grey25);position:relative;border-top:2px solid var(--light-grey-border)}.DataGridHeader_row_FHLkT:after{content:"";position:absolute;width:100%;left:0;bottom:0;border-bottom:2px solid var(--light-grey-border)}.DataGridHeader_context-menu_FHLkT{width:2.5rem;box-sizing:border-box}.DataGridHeader_sticky_FHLkT th,.DataGridHeader_sticky_FHLkT td{position:sticky;top:var(--sticky-stack-offset, -1px);z-index:2;background-color:var(--color-blue-grey25);box-shadow:inset 0 2px 0 var(--light-grey-border),inset 0 -2px 0 var(--light-grey-border)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ const row = "DataGridHeader_row_FHLkT";
3
+ const sticky = "DataGridHeader_sticky_FHLkT";
4
4
  const classes = {
5
5
  row,
6
- "context-menu": "DataGridHeader_context-menu_PX3IM",
6
+ "context-menu": "DataGridHeader_context-menu_FHLkT",
7
7
  sticky
8
8
  };
9
9
  export {
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DataGridHeaderCell_header-cell_PX3IM{font-weight:400;text-align:left;padding:.625rem .75rem}.DataGridHeaderCell_header-cell_PX3IM:first-child{padding-left:1rem}.DataGridHeaderCell_header-cell_PX3IM:last-child{padding-right:1rem}.DataGridHeaderCell_header-cell_PX3IM>*{display:inline-flex}.DataGridHeaderCell_header-cell_PX3IM>button{padding:0;margin:0;border:0;background:none;cursor:pointer;display:inline-flex;align-items:center;font-family:inherit;font-size:inherit;line-height:inherit;color:inherit}.DataGridHeaderCell_header-cell_PX3IM>button:hover{background:none}.DataGridHeaderCell_header-cell_PX3IM>button:focus{outline:none}.DataGridHeaderCell_header-cell_PX3IM .DataGridHeaderCell_dropdown-trigger_PX3IM{cursor:pointer;display:inline-flex;align-items:center}.DataGridHeaderCell_header-cell-wrapper_PX3IM{display:inline-flex;align-items:center;gap:.5rem}.DataGridHeaderCell_header-cell-wrapper_PX3IM>button{padding:0;margin:0;border:0;background:none;cursor:pointer;display:inline-flex;align-items:center}.DataGridHeaderCell_header-cell-wrapper_PX3IM>div{display:inline-flex;align-items:center}.DataGridHeaderCell_headline_PX3IM{font-family:var(--font-family);font-size:var(--font-size-data-grid);line-height:var(--data-grid-line-height);font-weight:700;color:var(--default);display:inline-flex;align-items:center;gap:.25rem}.DataGridHeaderCell_sorting-indicator-container_PX3IM{display:flex;flex-direction:row;padding-left:.5rem;justify-content:center;align-items:center;gap:.25rem}.DataGridHeaderCell_sorting-indicator-container_PX3IM>*{font-size:var(--font-size-small)}.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_indicator_PX3IM{color:var(--greyed-out);transition:transform .2s ease-in-out;transform:rotate(0)}.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_indicator_PX3IM.DataGridHeaderCell_ascending_PX3IM{color:var(--color-primary)}.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_indicator_PX3IM.DataGridHeaderCell_descending_PX3IM{color:var(--color-primary);transform:rotate(180deg)}.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_indicator_PX3IM.DataGridHeaderCell_hidden_PX3IM{visibility:hidden}.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_ascending_PX3IM,.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_descending_PX3IM{color:var(--color-primary)}.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_descending_PX3IM{transform:rotate(180deg)}.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_sorting-image_PX3IM{width:1rem;height:1rem;display:inline-block}.DataGridHeaderCell_selected-item_PX3IM{border-left:4px solid var(--color-primary);font-weight:600}.DataGridHeaderCell_selected-item_PX3IM button{color:var(--color-primary)!important}@media only screen and (min-width:50em){.DataGridHeaderCell_header-cell_PX3IM:first-child{padding-left:1.25rem}.DataGridHeaderCell_header-cell_PX3IM:last-child{padding-right:1.25rem}}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="DataGridHeaderCell_headline_PX3IM",a="DataGridHeaderCell_indicator_PX3IM",r="DataGridHeaderCell_ascending_PX3IM",d="DataGridHeaderCell_descending_PX3IM",i={"header-cell":"DataGridHeaderCell_header-cell_PX3IM","dropdown-trigger":"DataGridHeaderCell_dropdown-trigger_PX3IM","header-cell-wrapper":"DataGridHeaderCell_header-cell-wrapper_PX3IM",headline:e,"sorting-indicator-container":"DataGridHeaderCell_sorting-indicator-container_PX3IM",indicator:a,ascending:r,descending:d,"sorting-image":"DataGridHeaderCell_sorting-image_PX3IM","selected-item":"DataGridHeaderCell_selected-item_PX3IM"};exports.ascending=r,exports.default=i,exports.descending=d,exports.headline=e,exports.indicator=a;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DataGridHeaderCell_header-cell_FHLkT{font-weight:400;text-align:left;padding:.625rem .75rem}.DataGridHeaderCell_header-cell_FHLkT:first-child{padding-left:1rem}.DataGridHeaderCell_header-cell_FHLkT:last-child{padding-right:1rem}.DataGridHeaderCell_header-cell_FHLkT>*{display:inline-flex}.DataGridHeaderCell_header-cell_FHLkT>button{padding:0;margin:0;border:0;background:none;cursor:pointer;display:inline-flex;align-items:center;font-family:inherit;font-size:inherit;line-height:inherit;color:inherit}.DataGridHeaderCell_header-cell_FHLkT>button:hover{background:none}.DataGridHeaderCell_header-cell_FHLkT>button:focus{outline:none}.DataGridHeaderCell_header-cell_FHLkT .DataGridHeaderCell_dropdown-trigger_FHLkT{cursor:pointer;display:inline-flex;align-items:center}.DataGridHeaderCell_header-cell-wrapper_FHLkT{display:inline-flex;align-items:center;gap:.5rem}.DataGridHeaderCell_header-cell-wrapper_FHLkT>button{padding:0;margin:0;border:0;background:none;cursor:pointer;display:inline-flex;align-items:center}.DataGridHeaderCell_header-cell-wrapper_FHLkT>div{display:inline-flex;align-items:center}.DataGridHeaderCell_headline_FHLkT{font-family:var(--font-family);font-size:var(--font-size-data-grid);line-height:var(--data-grid-line-height);font-weight:700;color:var(--default);display:inline-flex;align-items:center;gap:.25rem}.DataGridHeaderCell_sorting-indicator-container_FHLkT{display:flex;flex-direction:row;padding-left:.5rem;justify-content:center;align-items:center;gap:.25rem}.DataGridHeaderCell_sorting-indicator-container_FHLkT>*{font-size:var(--font-size-small)}.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_indicator_FHLkT{color:var(--greyed-out);transition:transform .2s ease-in-out;transform:rotate(0)}.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_indicator_FHLkT.DataGridHeaderCell_ascending_FHLkT{color:var(--color-primary)}.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_indicator_FHLkT.DataGridHeaderCell_descending_FHLkT{color:var(--color-primary);transform:rotate(180deg)}.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_indicator_FHLkT.DataGridHeaderCell_hidden_FHLkT{visibility:hidden}.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_ascending_FHLkT,.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_descending_FHLkT{color:var(--color-primary)}.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_descending_FHLkT{transform:rotate(180deg)}.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_sorting-image_FHLkT{width:1rem;height:1rem;display:inline-block}.DataGridHeaderCell_selected-item_FHLkT{border-left:4px solid var(--color-primary);font-weight:600}.DataGridHeaderCell_selected-item_FHLkT button{color:var(--color-primary)!important}@media only screen and (min-width:50em){.DataGridHeaderCell_header-cell_FHLkT:first-child{padding-left:1.25rem}.DataGridHeaderCell_header-cell_FHLkT:last-child{padding-right:1.25rem}}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="DataGridHeaderCell_headline_FHLkT",a="DataGridHeaderCell_indicator_FHLkT",r="DataGridHeaderCell_ascending_FHLkT",d="DataGridHeaderCell_descending_FHLkT",i={"header-cell":"DataGridHeaderCell_header-cell_FHLkT","dropdown-trigger":"DataGridHeaderCell_dropdown-trigger_FHLkT","header-cell-wrapper":"DataGridHeaderCell_header-cell-wrapper_FHLkT",headline:e,"sorting-indicator-container":"DataGridHeaderCell_sorting-indicator-container_FHLkT",indicator:a,ascending:r,descending:d,"sorting-image":"DataGridHeaderCell_sorting-image_FHLkT","selected-item":"DataGridHeaderCell_selected-item_FHLkT"};exports.ascending=r,exports.default=i,exports.descending=d,exports.headline=e,exports.indicator=a;
3
3
  //# sourceMappingURL=DataGridHeaderCell.module.scss.cjs.js.map
@@ -1,19 +1,19 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DataGridHeaderCell_header-cell_PX3IM{font-weight:400;text-align:left;padding:.625rem .75rem}.DataGridHeaderCell_header-cell_PX3IM:first-child{padding-left:1rem}.DataGridHeaderCell_header-cell_PX3IM:last-child{padding-right:1rem}.DataGridHeaderCell_header-cell_PX3IM>*{display:inline-flex}.DataGridHeaderCell_header-cell_PX3IM>button{padding:0;margin:0;border:0;background:none;cursor:pointer;display:inline-flex;align-items:center;font-family:inherit;font-size:inherit;line-height:inherit;color:inherit}.DataGridHeaderCell_header-cell_PX3IM>button:hover{background:none}.DataGridHeaderCell_header-cell_PX3IM>button:focus{outline:none}.DataGridHeaderCell_header-cell_PX3IM .DataGridHeaderCell_dropdown-trigger_PX3IM{cursor:pointer;display:inline-flex;align-items:center}.DataGridHeaderCell_header-cell-wrapper_PX3IM{display:inline-flex;align-items:center;gap:.5rem}.DataGridHeaderCell_header-cell-wrapper_PX3IM>button{padding:0;margin:0;border:0;background:none;cursor:pointer;display:inline-flex;align-items:center}.DataGridHeaderCell_header-cell-wrapper_PX3IM>div{display:inline-flex;align-items:center}.DataGridHeaderCell_headline_PX3IM{font-family:var(--font-family);font-size:var(--font-size-data-grid);line-height:var(--data-grid-line-height);font-weight:700;color:var(--default);display:inline-flex;align-items:center;gap:.25rem}.DataGridHeaderCell_sorting-indicator-container_PX3IM{display:flex;flex-direction:row;padding-left:.5rem;justify-content:center;align-items:center;gap:.25rem}.DataGridHeaderCell_sorting-indicator-container_PX3IM>*{font-size:var(--font-size-small)}.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_indicator_PX3IM{color:var(--greyed-out);transition:transform .2s ease-in-out;transform:rotate(0)}.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_indicator_PX3IM.DataGridHeaderCell_ascending_PX3IM{color:var(--color-primary)}.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_indicator_PX3IM.DataGridHeaderCell_descending_PX3IM{color:var(--color-primary);transform:rotate(180deg)}.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_indicator_PX3IM.DataGridHeaderCell_hidden_PX3IM{visibility:hidden}.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_ascending_PX3IM,.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_descending_PX3IM{color:var(--color-primary)}.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_descending_PX3IM{transform:rotate(180deg)}.DataGridHeaderCell_sorting-indicator-container_PX3IM .DataGridHeaderCell_sorting-image_PX3IM{width:1rem;height:1rem;display:inline-block}.DataGridHeaderCell_selected-item_PX3IM{border-left:4px solid var(--color-primary);font-weight:600}.DataGridHeaderCell_selected-item_PX3IM button{color:var(--color-primary)!important}@media only screen and (min-width:50em){.DataGridHeaderCell_header-cell_PX3IM:first-child{padding-left:1.25rem}.DataGridHeaderCell_header-cell_PX3IM:last-child{padding-right:1.25rem}}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
- const headline = "DataGridHeaderCell_headline_PX3IM";
3
- const indicator = "DataGridHeaderCell_indicator_PX3IM";
4
- const ascending = "DataGridHeaderCell_ascending_PX3IM";
5
- const descending = "DataGridHeaderCell_descending_PX3IM";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DataGridHeaderCell_header-cell_FHLkT{font-weight:400;text-align:left;padding:.625rem .75rem}.DataGridHeaderCell_header-cell_FHLkT:first-child{padding-left:1rem}.DataGridHeaderCell_header-cell_FHLkT:last-child{padding-right:1rem}.DataGridHeaderCell_header-cell_FHLkT>*{display:inline-flex}.DataGridHeaderCell_header-cell_FHLkT>button{padding:0;margin:0;border:0;background:none;cursor:pointer;display:inline-flex;align-items:center;font-family:inherit;font-size:inherit;line-height:inherit;color:inherit}.DataGridHeaderCell_header-cell_FHLkT>button:hover{background:none}.DataGridHeaderCell_header-cell_FHLkT>button:focus{outline:none}.DataGridHeaderCell_header-cell_FHLkT .DataGridHeaderCell_dropdown-trigger_FHLkT{cursor:pointer;display:inline-flex;align-items:center}.DataGridHeaderCell_header-cell-wrapper_FHLkT{display:inline-flex;align-items:center;gap:.5rem}.DataGridHeaderCell_header-cell-wrapper_FHLkT>button{padding:0;margin:0;border:0;background:none;cursor:pointer;display:inline-flex;align-items:center}.DataGridHeaderCell_header-cell-wrapper_FHLkT>div{display:inline-flex;align-items:center}.DataGridHeaderCell_headline_FHLkT{font-family:var(--font-family);font-size:var(--font-size-data-grid);line-height:var(--data-grid-line-height);font-weight:700;color:var(--default);display:inline-flex;align-items:center;gap:.25rem}.DataGridHeaderCell_sorting-indicator-container_FHLkT{display:flex;flex-direction:row;padding-left:.5rem;justify-content:center;align-items:center;gap:.25rem}.DataGridHeaderCell_sorting-indicator-container_FHLkT>*{font-size:var(--font-size-small)}.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_indicator_FHLkT{color:var(--greyed-out);transition:transform .2s ease-in-out;transform:rotate(0)}.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_indicator_FHLkT.DataGridHeaderCell_ascending_FHLkT{color:var(--color-primary)}.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_indicator_FHLkT.DataGridHeaderCell_descending_FHLkT{color:var(--color-primary);transform:rotate(180deg)}.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_indicator_FHLkT.DataGridHeaderCell_hidden_FHLkT{visibility:hidden}.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_ascending_FHLkT,.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_descending_FHLkT{color:var(--color-primary)}.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_descending_FHLkT{transform:rotate(180deg)}.DataGridHeaderCell_sorting-indicator-container_FHLkT .DataGridHeaderCell_sorting-image_FHLkT{width:1rem;height:1rem;display:inline-block}.DataGridHeaderCell_selected-item_FHLkT{border-left:4px solid var(--color-primary);font-weight:600}.DataGridHeaderCell_selected-item_FHLkT button{color:var(--color-primary)!important}@media only screen and (min-width:50em){.DataGridHeaderCell_header-cell_FHLkT:first-child{padding-left:1.25rem}.DataGridHeaderCell_header-cell_FHLkT:last-child{padding-right:1.25rem}}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
+ const headline = "DataGridHeaderCell_headline_FHLkT";
3
+ const indicator = "DataGridHeaderCell_indicator_FHLkT";
4
+ const ascending = "DataGridHeaderCell_ascending_FHLkT";
5
+ const descending = "DataGridHeaderCell_descending_FHLkT";
6
6
  const classes = {
7
- "header-cell": "DataGridHeaderCell_header-cell_PX3IM",
8
- "dropdown-trigger": "DataGridHeaderCell_dropdown-trigger_PX3IM",
9
- "header-cell-wrapper": "DataGridHeaderCell_header-cell-wrapper_PX3IM",
7
+ "header-cell": "DataGridHeaderCell_header-cell_FHLkT",
8
+ "dropdown-trigger": "DataGridHeaderCell_dropdown-trigger_FHLkT",
9
+ "header-cell-wrapper": "DataGridHeaderCell_header-cell-wrapper_FHLkT",
10
10
  headline,
11
- "sorting-indicator-container": "DataGridHeaderCell_sorting-indicator-container_PX3IM",
11
+ "sorting-indicator-container": "DataGridHeaderCell_sorting-indicator-container_FHLkT",
12
12
  indicator,
13
13
  ascending,
14
14
  descending,
15
- "sorting-image": "DataGridHeaderCell_sorting-image_PX3IM",
16
- "selected-item": "DataGridHeaderCell_selected-item_PX3IM"
15
+ "sorting-image": "DataGridHeaderCell_sorting-image_FHLkT",
16
+ "selected-item": "DataGridHeaderCell_selected-item_FHLkT"
17
17
  };
18
18
  export {
19
19
  ascending,