@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.
- package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.es.js +5 -5
- package/dist/components/Button/BaseButton.module.scss.cjs.js +2 -2
- package/dist/components/Button/BaseButton.module.scss.es.js +4 -4
- package/dist/components/Button/Button.module.scss.cjs.js +2 -2
- package/dist/components/Button/Button.module.scss.es.js +17 -17
- package/dist/components/Button/IconButton.module.scss.cjs.js +2 -2
- package/dist/components/Button/IconButton.module.scss.es.js +18 -18
- package/dist/components/ContextMenu/ContextMenu.module.scss.cjs.js +2 -2
- package/dist/components/ContextMenu/ContextMenu.module.scss.es.js +6 -6
- package/dist/components/ContextMenu/ContextMenuDivider.module.scss.cjs.js +2 -2
- package/dist/components/ContextMenu/ContextMenuDivider.module.scss.es.js +2 -2
- package/dist/components/ContextMenu/ContextMenuItem.module.scss.cjs.js +2 -2
- package/dist/components/ContextMenu/ContextMenuItem.module.scss.es.js +3 -3
- package/dist/components/DataGrid/DataGrid.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGrid.module.scss.es.js +8 -8
- package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.es.js +6 -6
- package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.es.js +7 -7
- package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.es.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.es.js +5 -5
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.es.js +4 -4
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.es.js +5 -5
- package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.es.js +24 -24
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.es.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.es.js +9 -9
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.es.js +25 -44
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.es.js +4 -15
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.es.js +6 -56
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.es.js +10 -10
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.es.js +17 -17
- package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.es.js +4 -4
- package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.es.js +11 -11
- package/dist/components/DatePicker/DatePicker.module.scss.cjs.js +2 -2
- package/dist/components/DatePicker/DatePicker.module.scss.es.js +31 -31
- package/dist/components/Form/Checkbox/Checkbox.module.scss.cjs.js +2 -2
- package/dist/components/Form/Checkbox/Checkbox.module.scss.es.js +13 -13
- package/dist/components/Form/Fieldset/Fieldset.module.scss.cjs.js +2 -2
- package/dist/components/Form/Fieldset/Fieldset.module.scss.es.js +6 -6
- package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +2 -2
- package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.es.js +18 -18
- package/dist/components/Form/FileUpload/FileUpload.module.scss.cjs.js +2 -2
- package/dist/components/Form/FileUpload/FileUpload.module.scss.es.js +16 -16
- package/dist/components/Form/Form.module.scss.cjs.js +2 -2
- package/dist/components/Form/Form.module.scss.es.js +2 -2
- package/dist/components/Form/FormControl/FormControl.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormControl/FormControl.module.scss.es.js +13 -13
- package/dist/components/Form/FormErrorText/FormErrorText.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormErrorText/FormErrorText.module.scss.es.js +6 -6
- package/dist/components/Form/FormGroup/FormGroup.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormGroup/FormGroup.module.scss.es.js +3 -3
- package/dist/components/Form/FormHelperText/FormHelperText.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormHelperText/FormHelperText.module.scss.es.js +4 -4
- package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.es.js +6 -6
- package/dist/components/Form/Input/Input.cjs.js +1 -1
- package/dist/components/Form/Input/Input.cjs.js.map +1 -1
- package/dist/components/Form/Input/Input.es.js +46 -4
- package/dist/components/Form/Input/Input.es.js.map +1 -1
- package/dist/components/Form/Input/Input.module.scss.cjs.js +2 -2
- package/dist/components/Form/Input/Input.module.scss.es.js +8 -8
- package/dist/components/Form/Label/Label.module.scss.cjs.js +2 -2
- package/dist/components/Form/Label/Label.module.scss.es.js +2 -2
- package/dist/components/Form/Radio/Radio.module.scss.cjs.js +2 -2
- package/dist/components/Form/Radio/Radio.module.scss.es.js +11 -11
- package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiOption.es.js +2 -3
- package/dist/components/Form/Select/MultiSelect/MultiOption.es.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiSelect.es.js +6 -135
- package/dist/components/Form/Select/MultiSelect/MultiSelect.es.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +2 -2
- package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js +15 -18
- package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +2 -2
- package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.es.js +2 -2
- package/dist/components/Form/Select/MultiSelect/SelectedOptions.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/SelectedOptions.es.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +2 -2
- package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.es.js +4 -4
- package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js +1 -1
- package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/useSearch.es.js +2 -35
- package/dist/components/Form/Select/MultiSelect/useSearch.es.js.map +1 -1
- package/dist/components/Form/Select/Select.interfaces.cjs.js.map +1 -1
- package/dist/components/Form/Select/Select.interfaces.es.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/Option.cjs.js +1 -1
- package/dist/components/Form/Select/SingleSelect/Option.cjs.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/Option.es.js +2 -3
- package/dist/components/Form/Select/SingleSelect/Option.es.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/Select.cjs.js +1 -1
- package/dist/components/Form/Select/SingleSelect/Select.cjs.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/Select.es.js +4 -122
- package/dist/components/Form/Select/SingleSelect/Select.es.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/Select.module.scss.cjs.js +2 -2
- package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js +17 -20
- package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js +1 -1
- package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/useSearch.es.js +2 -32
- package/dist/components/Form/Select/SingleSelect/useSearch.es.js.map +1 -1
- package/dist/components/Form/Select/useAddNewBtn.module.scss.cjs.js +2 -2
- package/dist/components/Form/Select/useAddNewBtn.module.scss.es.js +4 -4
- package/dist/components/Form/Textarea/Textarea.module.scss.cjs.js +2 -2
- package/dist/components/Form/Textarea/Textarea.module.scss.es.js +6 -6
- package/dist/components/Form/Toggle/Toggle.module.scss.cjs.js +2 -2
- package/dist/components/Form/Toggle/Toggle.module.scss.es.js +18 -18
- package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.es.js +5 -5
- package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.es.js +5 -5
- package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.es.js +3 -3
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.es.js +5 -5
- package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.es.js +3 -3
- package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.es.js +8 -8
- package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.es.js +6 -6
- package/dist/components/Icon/Icon.module.scss.cjs.js +2 -2
- package/dist/components/Icon/Icon.module.scss.es.js +108 -108
- package/dist/components/Layout/ActionBar/ActionBar.module.scss.cjs.js +2 -2
- package/dist/components/Layout/ActionBar/ActionBar.module.scss.es.js +10 -10
- package/dist/components/Layout/Card/Card.module.scss.cjs.js +2 -2
- package/dist/components/Layout/Card/Card.module.scss.es.js +12 -12
- package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +2 -2
- package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.es.js +19 -19
- package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +2 -2
- package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.es.js +4 -4
- package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +2 -2
- package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.es.js +2 -2
- package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +2 -2
- package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.es.js +3 -3
- package/dist/components/Link/Link.module.scss.cjs.js +2 -2
- package/dist/components/Link/Link.module.scss.es.js +17 -17
- package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.es.js +11 -11
- package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.es.js +22 -22
- package/dist/components/Notifications/Banner/Banner.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Banner/Banner.module.scss.es.js +9 -9
- package/dist/components/Notifications/BaseModal/BaseModal.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/BaseModal/BaseModal.module.scss.es.js +5 -5
- package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.es.js +4 -4
- package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.es.js +2 -2
- package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.es.js +6 -6
- package/dist/components/Notifications/Dialog/Dialog.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Dialog/Dialog.module.scss.es.js +4 -4
- package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.es.js +3 -3
- package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.es.js +10 -10
- package/dist/components/Notifications/SideSheet/SideSheet.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/SideSheet/SideSheet.module.scss.es.js +13 -13
- package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.es.js +2 -2
- package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.es.js +2 -2
- package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.es.js +10 -10
- package/dist/components/Pagination/Pagination.module.scss.cjs.js +2 -2
- package/dist/components/Pagination/Pagination.module.scss.es.js +15 -15
- package/dist/components/Popover/Popover.module.scss.cjs.js +2 -2
- package/dist/components/Popover/Popover.module.scss.es.js +3 -3
- package/dist/components/ProgressBar/ProgressBar.module.scss.cjs.js +2 -2
- package/dist/components/ProgressBar/ProgressBar.module.scss.es.js +9 -9
- package/dist/components/Skeleton/Skeleton.module.scss.cjs.js +2 -2
- package/dist/components/Skeleton/Skeleton.module.scss.es.js +5 -5
- package/dist/components/Spinner/Spinner.module.scss.cjs.js +2 -2
- package/dist/components/Spinner/Spinner.module.scss.es.js +3 -3
- package/dist/components/Stepper/Step.module.scss.cjs.js +2 -2
- package/dist/components/Stepper/Step.module.scss.es.js +22 -22
- package/dist/components/Stepper/Stepper.module.scss.cjs.js +2 -2
- package/dist/components/Stepper/Stepper.module.scss.es.js +4 -4
- package/dist/components/Tabs/Tab.module.scss.cjs.js +2 -2
- package/dist/components/Tabs/Tab.module.scss.es.js +3 -3
- package/dist/components/Tabs/TabButton.module.scss.cjs.js +2 -2
- package/dist/components/Tabs/TabButton.module.scss.es.js +12 -12
- package/dist/components/Tabs/Tabs.module.scss.cjs.js +2 -2
- package/dist/components/Tabs/Tabs.module.scss.es.js +10 -10
- package/dist/components/Tag/RemoveButton.module.scss.cjs.js +2 -2
- package/dist/components/Tag/RemoveButton.module.scss.es.js +3 -3
- package/dist/components/Tag/Tag.cjs.js +1 -1
- package/dist/components/Tag/Tag.cjs.js.map +1 -1
- package/dist/components/Tag/Tag.es.js +1 -1
- package/dist/components/Tag/Tag.es.js.map +1 -1
- package/dist/components/Tag/Tag.module.scss.cjs.js +2 -2
- package/dist/components/Tag/Tag.module.scss.es.js +6 -6
- package/dist/components/TextEllipsis/TextEllipsis.module.scss.cjs.js +2 -2
- package/dist/components/TextEllipsis/TextEllipsis.module.scss.es.js +3 -3
- package/dist/components/Tiles/Tile.module.scss.cjs.js +2 -2
- package/dist/components/Tiles/Tile.module.scss.es.js +8 -8
- package/dist/components/Tiles/Tiles.module.scss.cjs.js +2 -2
- package/dist/components/Tiles/Tiles.module.scss.es.js +2 -2
- package/dist/components/Tooltip/Tooltip.module.scss.cjs.js +2 -2
- package/dist/components/Tooltip/Tooltip.module.scss.es.js +28 -28
- package/dist/components/Typography/Typography.module.scss.cjs.js +2 -2
- package/dist/components/Typography/Typography.module.scss.es.js +13 -13
- package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +2 -2
- package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.es.js +5 -5
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +2 -2
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.es.js +14 -14
- package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +2 -2
- package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.es.js +3 -3
- package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js +2 -2
- package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js +7 -7
- package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js +2 -2
- package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js +13 -13
- package/dist/components/miscellaneous/IdentityProviderButton.module.scss.cjs.js +2 -2
- package/dist/components/miscellaneous/IdentityProviderButton.module.scss.es.js +3 -3
- package/dist/index.d.ts +2 -62
- package/dist/readyclasses.module.scss.cjs.js +2 -2
- package/dist/readyclasses.module.scss.es.js +5 -5
- 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
|
|
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,M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AQ,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"),
|
|
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,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OA,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","Sel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AAAA,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,
|
|
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
|
|
47
|
+
addNew: disableAddNew ? void 0 : {
|
|
74
48
|
label: addNewValueLabel,
|
|
75
49
|
onAddNew: (value) => {
|
|
76
50
|
if (value) {
|
|
77
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;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,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,QAA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,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
|
|
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
|
|
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-
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const 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-
|
|
2
|
-
const wrapper = "
|
|
3
|
-
const searchbar = "
|
|
4
|
-
const caption = "
|
|
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-
|
|
7
|
+
"filter-section": "DataGridToolbar_filter-section_FHLkT",
|
|
8
8
|
searchbar,
|
|
9
|
-
"field-search-wrapper": "DataGridToolbar_field-search-
|
|
10
|
-
"field-select": "DataGridToolbar_field-
|
|
11
|
-
"actions-wrapper": "DataGridToolbar_actions-
|
|
12
|
-
"clear-button": "DataGridToolbar_clear-
|
|
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-
|
|
14
|
+
"button-section": "DataGridToolbar_button-section_FHLkT"
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
17
|
caption,
|
package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js
CHANGED
|
@@ -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 */.
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const 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
|
package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.es.js
CHANGED
|
@@ -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 */.
|
|
2
|
-
const popover = "
|
|
3
|
-
const aside = "
|
|
4
|
-
const controls = "
|
|
5
|
-
const actions = "
|
|
6
|
-
const input = "
|
|
7
|
-
const nav = "
|
|
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-
|
|
10
|
+
"content-wrapper": "DateTimePicker_content-wrapper_FHLkT",
|
|
11
11
|
aside,
|
|
12
|
-
"aside-menu": "DateTimePicker_aside-
|
|
13
|
-
"aside-menu-item": "DateTimePicker_aside-menu-
|
|
12
|
+
"aside-menu": "DateTimePicker_aside-menu_FHLkT",
|
|
13
|
+
"aside-menu-item": "DateTimePicker_aside-menu-item_FHLkT",
|
|
14
14
|
controls,
|
|
15
|
-
"has-error": "DateTimePicker_has-
|
|
16
|
-
"controls-panel": "DateTimePicker_controls-
|
|
17
|
-
"set-height": "DateTimePicker_set-
|
|
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-
|
|
22
|
-
"prev-button": "DateTimePicker_prev-
|
|
23
|
-
"month-caption": "DateTimePicker_month-
|
|
24
|
-
"error-message": "DateTimePicker_error-
|
|
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 */.
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const 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 */.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 */.
|
|
2
|
-
const row = "
|
|
3
|
-
const sticky = "
|
|
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-
|
|
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-
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const 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 */.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-
|
|
2
|
-
const headline = "
|
|
3
|
-
const indicator = "
|
|
4
|
-
const ascending = "
|
|
5
|
-
const descending = "
|
|
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-
|
|
8
|
-
"dropdown-trigger": "DataGridHeaderCell_dropdown-
|
|
9
|
-
"header-cell-wrapper": "DataGridHeaderCell_header-cell-
|
|
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-
|
|
11
|
+
"sorting-indicator-container": "DataGridHeaderCell_sorting-indicator-container_FHLkT",
|
|
12
12
|
indicator,
|
|
13
13
|
ascending,
|
|
14
14
|
descending,
|
|
15
|
-
"sorting-image": "DataGridHeaderCell_sorting-
|
|
16
|
-
"selected-item": "DataGridHeaderCell_selected-
|
|
15
|
+
"sorting-image": "DataGridHeaderCell_sorting-image_FHLkT",
|
|
16
|
+
"selected-item": "DataGridHeaderCell_selected-item_FHLkT"
|
|
17
17
|
};
|
|
18
18
|
export {
|
|
19
19
|
ascending,
|