@true-engineering/true-react-common-ui-kit 3.9.1 → 3.10.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/LICENSE +201 -201
- package/README.md +19 -1
- package/dist/components/AccountInfo/AccountInfo.d.ts +11 -11
- package/dist/components/AccountInfo/AccountInfo.stories.d.ts +6 -8
- package/dist/components/AccountInfo/AccountInfo.styles.d.ts +6 -6
- package/dist/components/AccountInfo/constants.d.ts +1 -1
- package/dist/components/AccountInfo/index.d.ts +2 -2
- package/dist/components/AddButton/AddButton.d.ts +14 -14
- package/dist/components/AddButton/AddButton.stories.d.ts +6 -8
- package/dist/components/AddButton/AddButton.styles.d.ts +3 -3
- package/dist/components/AddButton/index.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +41 -41
- package/dist/components/Button/Button.stories.d.ts +6 -6
- package/dist/components/Button/Button.styles.d.ts +8 -8
- package/dist/components/Button/constants.d.ts +2 -1
- package/dist/components/Button/index.d.ts +3 -3
- package/dist/components/Button/types.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.d.ts +23 -23
- package/dist/components/Checkbox/Checkbox.stories.d.ts +5 -5
- package/dist/components/Checkbox/Checkbox.styles.d.ts +3 -3
- package/dist/components/Checkbox/index.d.ts +2 -2
- package/dist/components/CloseButton/CloseButton.d.ts +10 -9
- package/dist/components/CloseButton/CloseButton.stories.d.ts +5 -0
- package/dist/components/CloseButton/CloseButton.styles.d.ts +3 -3
- package/dist/components/CloseButton/index.d.ts +2 -2
- package/dist/components/Colors/Colors.d.ts +2 -2
- package/dist/components/Colors/Colors.stories.d.ts +5 -5
- package/dist/components/Colors/Colors.styles.d.ts +1 -1
- package/dist/components/Colors/index.d.ts +1 -1
- package/dist/components/CssBaseline/CssBaseline.d.ts +5 -5
- package/dist/components/CssBaseline/CssBaseline.styles.d.ts +3 -3
- package/dist/components/CssBaseline/index.d.ts +2 -2
- package/dist/components/DateInput/DateInput.d.ts +17 -17
- package/dist/components/DateInput/DateInput.stories.d.ts +7 -8
- package/dist/components/DateInput/DateInput.styles.d.ts +6 -6
- package/dist/components/DateInput/constants.d.ts +2 -2
- package/dist/components/DateInput/index.d.ts +3 -3
- package/dist/components/DatePicker/DatePicker.d.ts +26 -26
- package/dist/components/DatePicker/DatePicker.stories.d.ts +7 -8
- package/dist/components/DatePicker/DatePicker.styles.d.ts +6 -6
- package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.d.ts +8 -8
- package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.d.ts +7 -7
- package/dist/components/DatePicker/components/DatePickerHeader/index.d.ts +2 -2
- package/dist/components/DatePicker/components/PopperContainer/PopperContainer.d.ts +4 -4
- package/dist/components/DatePicker/components/PopperContainer/index.d.ts +1 -1
- package/dist/components/DatePicker/components/index.d.ts +2 -2
- package/dist/components/DatePicker/constants.d.ts +3 -3
- package/dist/components/DatePicker/helpers.d.ts +3 -3
- package/dist/components/DatePicker/index.d.ts +4 -4
- package/dist/components/DatePicker/types.d.ts +4 -4
- package/dist/components/Description/Description.d.ts +13 -13
- package/dist/components/Description/Description.stories.d.ts +16 -18
- package/dist/components/Description/Description.styles.d.ts +3 -3
- package/dist/components/Description/constants.d.ts +1 -1
- package/dist/components/Description/index.d.ts +2 -2
- package/dist/components/FiltersPane/FiltersPane.d.ts +22 -22
- package/dist/components/FiltersPane/FiltersPane.stories.d.ts +31 -33
- package/dist/components/FiltersPane/FiltersPane.styles.d.ts +9 -9
- package/dist/components/FiltersPane/components/Filter/Filter.d.ts +12 -12
- package/dist/components/FiltersPane/components/Filter/index.d.ts +1 -1
- package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.d.ts +24 -24
- package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.styles.d.ts +15 -15
- package/dist/components/FiltersPane/components/FilterInterval/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterMultiSelect/FilterMultiSelect.d.ts +5 -5
- package/dist/components/FiltersPane/components/FilterMultiSelect/index.d.ts +1 -1
- package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.d.ts +29 -29
- package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.styles.d.ts +15 -15
- package/dist/components/FiltersPane/components/FilterSelect/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.d.ts +5 -5
- package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.styles.d.ts +3 -3
- package/dist/components/FiltersPane/components/FilterValueView/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.d.ts +16 -16
- package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.d.ts +26 -26
- package/dist/components/FiltersPane/components/FilterWithDates/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.d.ts +13 -13
- package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.d.ts +7 -7
- package/dist/components/FiltersPane/components/FilterWithPeriod/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.d.ts +14 -14
- package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.d.ts +6 -6
- package/dist/components/FiltersPane/components/FilterWrapper/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.d.ts +21 -21
- package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +10 -10
- package/dist/components/FiltersPane/components/FiltersPaneSearch/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/index.d.ts +9 -9
- package/dist/components/FiltersPane/constants.d.ts +9 -9
- package/dist/components/FiltersPane/helpers.d.ts +5 -5
- package/dist/components/FiltersPane/index.d.ts +4 -4
- package/dist/components/FiltersPane/types.d.ts +107 -107
- package/dist/components/Flag/Flag.d.ts +8 -8
- package/dist/components/Flag/Flag.stories.d.ts +12 -14
- package/dist/components/Flag/Flag.styles.d.ts +3 -3
- package/dist/components/Flag/index.d.ts +2 -2
- package/dist/components/FlexibleTable/FlexibleTable.d.ts +22 -22
- package/dist/components/FlexibleTable/FlexibleTable.stories.d.ts +15 -18
- package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +7 -7
- package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.d.ts +14 -14
- package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.d.ts +3 -3
- package/dist/components/FlexibleTable/components/FlexibleTableCell/index.d.ts +2 -2
- package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.d.ts +28 -28
- package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.d.ts +6 -6
- package/dist/components/FlexibleTable/components/FlexibleTableRow/index.d.ts +2 -2
- package/dist/components/FlexibleTable/components/index.d.ts +2 -2
- package/dist/components/FlexibleTable/constants.d.ts +1 -1
- package/dist/components/FlexibleTable/helpers.d.ts +3 -3
- package/dist/components/FlexibleTable/index.d.ts +4 -4
- package/dist/components/FlexibleTable/types.d.ts +44 -44
- package/dist/components/Icon/Icon.d.ts +8 -8
- package/dist/components/Icon/Icon.stories.d.ts +6 -6
- package/dist/components/Icon/Icon.styles.d.ts +3 -3
- package/dist/components/Icon/complexIcons/icons.d.ts +3 -3
- package/dist/components/Icon/complexIcons/index.d.ts +1 -1
- package/dist/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.d.ts +6 -6
- package/dist/components/Icon/components/ComplexIconBoilerplate/index.d.ts +1 -1
- package/dist/components/Icon/components/IconBolerplate/IconBoilerplate.d.ts +6 -6
- package/dist/components/Icon/components/IconBolerplate/index.d.ts +1 -1
- package/dist/components/Icon/components/index.d.ts +2 -2
- package/dist/components/Icon/helpers.d.ts +6 -6
- package/dist/components/Icon/icons-list.d.ts +1 -1
- package/dist/components/Icon/index.d.ts +5 -5
- package/dist/components/Icon/snippet.d.ts +3 -3
- package/dist/components/Icon/types.d.ts +13 -13
- package/dist/components/IconButton/IconButton.d.ts +19 -0
- package/dist/components/IconButton/IconButton.stories.d.ts +6 -0
- package/dist/components/IconButton/IconButton.styles.d.ts +3 -0
- package/dist/components/IconButton/constants.d.ts +2 -0
- package/dist/components/IconButton/index.d.ts +3 -0
- package/dist/components/IconButton/types.d.ts +5 -0
- package/dist/components/IncrementInput/IncrementInput.d.ts +9 -9
- package/dist/components/IncrementInput/IncrementInput.stories.d.ts +6 -8
- package/dist/components/IncrementInput/IncrementInput.styles.d.ts +9 -9
- package/dist/components/IncrementInput/index.d.ts +2 -2
- package/dist/components/Input/Input.d.ts +52 -52
- package/dist/components/Input/Input.stories.d.ts +34 -35
- package/dist/components/Input/Input.styles.d.ts +7 -7
- package/dist/components/Input/constants.d.ts +1 -1
- package/dist/components/Input/index.d.ts +3 -3
- package/dist/components/Input/types.d.ts +4 -4
- package/dist/components/List/List.d.ts +9 -9
- package/dist/components/List/List.stories.d.ts +5 -6
- package/dist/components/List/List.styles.d.ts +3 -3
- package/dist/components/List/components/ListItem/ListItem.d.ts +15 -15
- package/dist/components/List/components/ListItem/ListItem.styles.d.ts +3 -3
- package/dist/components/List/components/ListItem/index.d.ts +2 -2
- package/dist/components/List/components/index.d.ts +1 -1
- package/dist/components/List/index.d.ts +3 -3
- package/dist/components/Modal/Modal.d.ts +32 -32
- package/dist/components/Modal/Modal.stories.d.ts +29 -30
- package/dist/components/Modal/Modal.styles.d.ts +7 -6
- package/dist/components/Modal/index.d.ts +3 -3
- package/dist/components/Modal/types.d.ts +3 -3
- package/dist/components/MoreMenu/MoreMenu.d.ts +15 -15
- package/dist/components/MoreMenu/MoreMenu.stories.d.ts +6 -8
- package/dist/components/MoreMenu/MoreMenu.styles.d.ts +6 -6
- package/dist/components/MoreMenu/index.d.ts +2 -2
- package/dist/components/MultiSelect/MultiSelect.d.ts +23 -23
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +13 -14
- package/dist/components/MultiSelect/MultiSelect.styles.d.ts +7 -7
- package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.d.ts +12 -12
- package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.d.ts +3 -3
- package/dist/components/MultiSelect/components/MultiSelectInput/index.d.ts +2 -2
- package/dist/components/MultiSelect/components/index.d.ts +1 -1
- package/dist/components/MultiSelect/index.d.ts +4 -4
- package/dist/components/MultiSelect/types.d.ts +1 -1
- package/dist/components/MultiSelectList/MultiSelectList.d.ts +25 -25
- package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +13 -13
- package/dist/components/MultiSelectList/constants.d.ts +3 -3
- package/dist/components/MultiSelectList/helpers.d.ts +3 -3
- package/dist/components/MultiSelectList/index.d.ts +3 -3
- package/dist/components/MultiSelectList/types.d.ts +12 -12
- package/dist/components/NewMoreMenu/NewMoreMenu.d.ts +15 -15
- package/dist/components/NewMoreMenu/NewMoreMenu.stories.d.ts +12 -14
- package/dist/components/NewMoreMenu/NewMoreMenu.styles.d.ts +8 -8
- package/dist/components/NewMoreMenu/index.d.ts +2 -2
- package/dist/components/Notification/Notification.d.ts +15 -15
- package/dist/components/Notification/Notification.stories.d.ts +8 -8
- package/dist/components/Notification/Notification.styles.d.ts +3 -3
- package/dist/components/Notification/index.d.ts +3 -3
- package/dist/components/Notification/types.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +18 -18
- package/dist/components/NumberInput/NumberInput.stories.d.ts +7 -8
- package/dist/components/NumberInput/helpers.d.ts +4 -4
- package/dist/components/NumberInput/index.d.ts +1 -1
- package/dist/components/PhoneInput/PhoneInput.d.ts +17 -17
- package/dist/components/PhoneInput/PhoneInput.stories.d.ts +28 -30
- package/dist/components/PhoneInput/PhoneInput.styles.d.ts +9 -9
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.d.ts +13 -13
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.d.ts +5 -6
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +7 -7
- package/dist/components/PhoneInput/components/PhoneInputCountryList/index.d.ts +2 -2
- package/dist/components/PhoneInput/components/index.d.ts +1 -1
- package/dist/components/PhoneInput/constants.d.ts +2 -2
- package/dist/components/PhoneInput/index.d.ts +4 -4
- package/dist/components/PhoneInput/types.d.ts +15 -15
- package/dist/components/RadioButton/RadioButton.d.ts +15 -15
- package/dist/components/RadioButton/RadioButton.stories.d.ts +7 -8
- package/dist/components/RadioButton/RadioButton.styles.d.ts +3 -3
- package/dist/components/RadioButton/index.d.ts +2 -2
- package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +386 -382
- package/dist/components/ScrollIntoViewIfNeeded/constants.d.ts +3 -3
- package/dist/components/ScrollIntoViewIfNeeded/index.d.ts +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +6 -6
- package/dist/components/SearchInput/SearchInput.stories.d.ts +13 -8
- package/dist/components/SearchInput/SearchInput.styles.d.ts +7 -7
- package/dist/components/SearchInput/index.d.ts +2 -2
- package/dist/components/Select/CustomSelect.stories.d.ts +11 -14
- package/dist/components/Select/MultiSelect.stories.d.ts +15 -18
- package/dist/components/Select/Select.d.ts +47 -47
- package/dist/components/Select/Select.stories.d.ts +15 -18
- package/dist/components/Select/Select.styles.d.ts +33 -33
- package/dist/components/Select/components/SelectList/SelectList.d.ts +22 -22
- package/dist/components/Select/components/SelectList/SelectList.styles.d.ts +6 -6
- package/dist/components/Select/components/SelectList/index.d.ts +2 -2
- package/dist/components/Select/components/SelectListItem/SelectListItem.d.ts +14 -14
- package/dist/components/Select/components/SelectListItem/SelectListItem.styles.d.ts +2 -2
- package/dist/components/Select/components/SelectListItem/index.d.ts +1 -1
- package/dist/components/Select/components/index.d.ts +2 -2
- package/dist/components/Select/constants.d.ts +2 -2
- package/dist/components/Select/helpers.d.ts +7 -7
- package/dist/components/Select/index.d.ts +4 -4
- package/dist/components/Select/types.d.ts +1 -1
- package/dist/components/Selector/Selector.d.ts +22 -22
- package/dist/components/Selector/Selector.stories.d.ts +7 -8
- package/dist/components/Selector/Selector.styles.d.ts +9 -9
- package/dist/components/Selector/index.d.ts +2 -2
- package/dist/components/Selector/types.d.ts +10 -10
- package/dist/components/Skeleton/Skeleton.d.ts +7 -7
- package/dist/components/Skeleton/Skeleton.stories.d.ts +6 -8
- package/dist/components/Skeleton/Skeleton.styles.d.ts +3 -3
- package/dist/components/Skeleton/index.d.ts +2 -2
- package/dist/components/SmartInput/SmartInput.d.ts +12 -12
- package/dist/components/SmartInput/SmartInput.stories.d.ts +18 -19
- package/dist/components/SmartInput/constants.d.ts +18 -18
- package/dist/components/SmartInput/helpers.d.ts +4 -4
- package/dist/components/SmartInput/index.d.ts +2 -2
- package/dist/components/SmartInput/types.d.ts +1 -1
- package/dist/components/Status/Status.d.ts +16 -16
- package/dist/components/Status/Status.stories.d.ts +6 -8
- package/dist/components/Status/Status.styles.d.ts +3 -3
- package/dist/components/Status/constants.d.ts +2 -2
- package/dist/components/Status/index.d.ts +2 -2
- package/dist/components/Status/types.d.ts +3 -3
- package/dist/components/Switch/Switch.d.ts +20 -20
- package/dist/components/Switch/Switch.stories.d.ts +16 -17
- package/dist/components/Switch/Switch.styles.d.ts +3 -3
- package/dist/components/Switch/index.d.ts +3 -3
- package/dist/components/Switch/types.d.ts +4 -4
- package/dist/components/TextArea/TextArea.d.ts +36 -36
- package/dist/components/TextArea/TextArea.stories.d.ts +16 -18
- package/dist/components/TextArea/TextArea.styles.d.ts +3 -3
- package/dist/components/TextArea/index.d.ts +2 -2
- package/dist/components/TextButton/TextButton.d.ts +31 -30
- package/dist/components/TextButton/TextButton.stories.d.ts +6 -6
- package/dist/components/TextButton/TextButton.styles.d.ts +7 -7
- package/dist/components/TextButton/constants.d.ts +2 -0
- package/dist/components/TextButton/index.d.ts +3 -3
- package/dist/components/TextButton/types.d.ts +5 -0
- package/dist/components/TextWithInfo/TextWithInfo.d.ts +15 -15
- package/dist/components/TextWithInfo/TextWithInfo.stories.d.ts +12 -13
- package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +3 -3
- package/dist/components/TextWithInfo/index.d.ts +2 -2
- package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +26 -26
- package/dist/components/TextWithTooltip/TextWithTooltip.stories.d.ts +24 -26
- package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +6 -6
- package/dist/components/TextWithTooltip/index.d.ts +2 -2
- package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +11 -11
- package/dist/components/ThemedPreloader/ThemedPreloader.stories.d.ts +17 -18
- package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +7 -7
- package/dist/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.d.ts +2 -2
- package/dist/components/ThemedPreloader/components/DefaultPreloader/index.d.ts +1 -1
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +5 -5
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +3 -3
- package/dist/components/ThemedPreloader/components/DotsPreloader/index.d.ts +2 -2
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +8 -8
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +3 -3
- package/dist/components/ThemedPreloader/components/SvgPreloader/index.d.ts +2 -2
- package/dist/components/ThemedPreloader/components/index.d.ts +3 -3
- package/dist/components/ThemedPreloader/constants.d.ts +1 -1
- package/dist/components/ThemedPreloader/index.d.ts +4 -4
- package/dist/components/ThemedPreloader/types.d.ts +2 -2
- package/dist/components/Toaster/Toaster.d.ts +23 -23
- package/dist/components/Toaster/Toaster.stories.d.ts +5 -6
- package/dist/components/Toaster/Toaster.styles.d.ts +6 -6
- package/dist/components/Toaster/constants.d.ts +1 -1
- package/dist/components/Toaster/index.d.ts +3 -3
- package/dist/components/Toaster/types.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +11 -11
- package/dist/components/Tooltip/Tooltip.stories.d.ts +5 -6
- package/dist/components/Tooltip/Tooltip.styles.d.ts +3 -3
- package/dist/components/Tooltip/index.d.ts +3 -3
- package/dist/components/Tooltip/types.d.ts +1 -1
- package/dist/components/WithPopup/WithPopup.d.ts +30 -30
- package/dist/components/WithPopup/WithPopup.stories.d.ts +16 -18
- package/dist/components/WithPopup/WithPopup.styles.d.ts +3 -3
- package/dist/components/WithPopup/constants.d.ts +2 -2
- package/dist/components/WithPopup/index.d.ts +2 -2
- package/dist/components/WithPopup/types.d.ts +2 -2
- package/dist/components/index.d.ts +43 -42
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/phone-info.d.ts +2 -2
- package/dist/helpers/index.d.ts +3 -3
- package/dist/helpers/misc.d.ts +19 -19
- package/dist/helpers/phone.d.ts +14 -14
- package/dist/helpers/popper-helpers.d.ts +2 -2
- package/dist/hooks/index.d.ts +7 -7
- package/dist/hooks/use-did-mount-effect.d.ts +2 -2
- package/dist/hooks/use-dropdown.d.ts +11 -11
- package/dist/hooks/use-is-mounted.d.ts +1 -1
- package/dist/hooks/use-merged-refs.d.ts +2 -2
- package/dist/hooks/use-mixed-styles.d.ts +1 -1
- package/dist/hooks/use-on-click-outside.d.ts +5 -5
- package/dist/hooks/use-tweak-styles.d.ts +21 -21
- package/dist/index.d.ts +6 -6
- package/dist/theme/Provider.d.ts +11 -11
- package/dist/theme/common.d.ts +98 -98
- package/dist/theme/helpers.d.ts +10 -10
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/types.d.ts +80 -79
- package/dist/true-react-common-ui-kit.js +794 -724
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +801 -731
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +19 -19
- package/package.json +97 -96
- package/src/components/AccountInfo/AccountInfo.stories.tsx +32 -32
- package/src/components/AccountInfo/AccountInfo.styles.ts +51 -51
- package/src/components/AccountInfo/AccountInfo.tsx +80 -80
- package/src/components/AccountInfo/constants.ts +1 -1
- package/src/components/AccountInfo/index.ts +2 -2
- package/src/components/AddButton/AddButton.stories.tsx +21 -21
- package/src/components/AddButton/AddButton.styles.ts +34 -34
- package/src/components/AddButton/AddButton.tsx +52 -52
- package/src/components/AddButton/index.ts +2 -2
- package/src/components/Button/Button.stories.tsx +54 -56
- package/src/components/Button/Button.styles.ts +200 -200
- package/src/components/Button/Button.tsx +129 -129
- package/src/components/Button/constants.ts +11 -9
- package/src/components/Button/index.ts +3 -3
- package/src/components/Button/types.ts +5 -5
- package/src/components/Checkbox/Checkbox.stories.tsx +28 -28
- package/src/components/Checkbox/Checkbox.styles.ts +47 -47
- package/src/components/Checkbox/Checkbox.tsx +88 -88
- package/src/components/Checkbox/index.ts +2 -2
- package/src/components/CloseButton/CloseButton.stories.tsx +11 -0
- package/src/components/CloseButton/CloseButton.styles.ts +33 -33
- package/src/components/CloseButton/CloseButton.tsx +35 -34
- package/src/components/CloseButton/index.ts +2 -2
- package/src/components/Colors/Colors.stories.tsx +7 -7
- package/src/components/Colors/Colors.styles.ts +36 -36
- package/src/components/Colors/Colors.tsx +26 -26
- package/src/components/Colors/index.ts +1 -1
- package/src/components/CssBaseline/CssBaseline.styles.ts +14 -14
- package/src/components/CssBaseline/CssBaseline.tsx +13 -13
- package/src/components/CssBaseline/index.ts +2 -2
- package/src/components/DateInput/DateInput.stories.tsx +61 -61
- package/src/components/DateInput/DateInput.styles.ts +18 -18
- package/src/components/DateInput/DateInput.tsx +90 -90
- package/src/components/DateInput/constants.ts +2 -2
- package/src/components/DateInput/index.ts +3 -3
- package/src/components/DatePicker/DatePicker.stories.tsx +88 -88
- package/src/components/DatePicker/DatePicker.styles.ts +38 -38
- package/src/components/DatePicker/DatePicker.tsx +308 -308
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.ts +88 -88
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.tsx +89 -89
- package/src/components/DatePicker/components/DatePickerHeader/index.ts +2 -2
- package/src/components/DatePicker/components/PopperContainer/PopperContainer.tsx +6 -6
- package/src/components/DatePicker/components/PopperContainer/index.ts +1 -1
- package/src/components/DatePicker/components/index.ts +2 -2
- package/src/components/DatePicker/constants.ts +6 -6
- package/src/components/DatePicker/helpers.ts +23 -23
- package/src/components/DatePicker/index.ts +4 -4
- package/src/components/DatePicker/types.ts +45 -45
- package/src/components/Description/Description.stories.tsx +27 -27
- package/src/components/Description/Description.styles.ts +30 -30
- package/src/components/Description/Description.tsx +61 -61
- package/src/components/Description/constants.ts +1 -1
- package/src/components/Description/index.ts +2 -2
- package/src/components/FiltersPane/FiltersPane.stories.tsx +287 -287
- package/src/components/FiltersPane/FiltersPane.styles.ts +87 -87
- package/src/components/FiltersPane/FiltersPane.tsx +158 -158
- package/src/components/FiltersPane/components/Filter/Filter.tsx +203 -203
- package/src/components/FiltersPane/components/Filter/index.ts +1 -1
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.styles.ts +61 -61
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +154 -154
- package/src/components/FiltersPane/components/FilterInterval/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterMultiSelect/FilterMultiSelect.tsx +10 -10
- package/src/components/FiltersPane/components/FilterMultiSelect/index.ts +1 -1
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +140 -140
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.tsx +354 -354
- package/src/components/FiltersPane/components/FilterSelect/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterValueView/FilterValueView.styles.tsx +15 -15
- package/src/components/FiltersPane/components/FilterValueView/FilterValueView.tsx +166 -166
- package/src/components/FiltersPane/components/FilterValueView/index.tsx +2 -2
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.ts +68 -68
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +210 -210
- package/src/components/FiltersPane/components/FilterWithDates/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.ts +21 -21
- package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.tsx +177 -177
- package/src/components/FiltersPane/components/FilterWithPeriod/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +115 -115
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +167 -167
- package/src/components/FiltersPane/components/FilterWrapper/index.ts +2 -2
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +117 -117
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +165 -165
- package/src/components/FiltersPane/components/FiltersPaneSearch/index.ts +2 -2
- package/src/components/FiltersPane/components/index.ts +9 -9
- package/src/components/FiltersPane/constants.ts +137 -137
- package/src/components/FiltersPane/helpers.ts +26 -26
- package/src/components/FiltersPane/index.ts +5 -5
- package/src/components/FiltersPane/types.ts +156 -156
- package/src/components/Flag/Flag.stories.tsx +29 -29
- package/src/components/Flag/Flag.styles.ts +17 -17
- package/src/components/Flag/Flag.tsx +26 -26
- package/src/components/Flag/augment.d.ts +1 -1
- package/src/components/Flag/index.ts +2 -2
- package/src/components/FlexibleTable/FlexibleTable.stories.tsx +267 -267
- package/src/components/FlexibleTable/FlexibleTable.styles.ts +110 -110
- package/src/components/FlexibleTable/FlexibleTable.tsx +271 -271
- package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.ts +38 -38
- package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.tsx +83 -83
- package/src/components/FlexibleTable/components/FlexibleTableCell/index.ts +2 -2
- package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.ts +25 -25
- package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.tsx +196 -196
- package/src/components/FlexibleTable/components/FlexibleTableRow/index.ts +2 -2
- package/src/components/FlexibleTable/components/index.ts +2 -2
- package/src/components/FlexibleTable/constants.ts +1 -1
- package/src/components/FlexibleTable/helpers.ts +13 -13
- package/src/components/FlexibleTable/index.ts +4 -4
- package/src/components/FlexibleTable/types.ts +52 -52
- package/src/components/Icon/Icon.stories.tsx +86 -86
- package/src/components/Icon/Icon.styles.ts +10 -10
- package/src/components/Icon/Icon.tsx +26 -26
- package/src/components/Icon/complexIcons/augment.d.ts +1 -1
- package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
- package/src/components/Icon/complexIcons/icons.ts +5 -5
- package/src/components/Icon/complexIcons/index.ts +1 -1
- package/src/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.tsx +16 -16
- package/src/components/Icon/components/ComplexIconBoilerplate/index.ts +1 -1
- package/src/components/Icon/components/IconBolerplate/IconBoilerplate.tsx +43 -43
- package/src/components/Icon/components/IconBolerplate/index.ts +1 -1
- package/src/components/Icon/components/index.ts +2 -2
- package/src/components/Icon/helpers.tsx +9 -9
- package/src/components/Icon/icons-list.ts +856 -856
- package/src/components/Icon/index.ts +5 -5
- package/src/components/Icon/snippet.tsx +6 -6
- package/src/components/Icon/types.ts +18 -18
- package/src/components/IconButton/IconButton.stories.tsx +32 -0
- package/src/components/IconButton/IconButton.styles.ts +88 -0
- package/src/components/IconButton/IconButton.tsx +74 -0
- package/src/components/IconButton/constants.ts +3 -0
- package/src/components/IconButton/index.ts +3 -0
- package/src/components/IconButton/types.ts +11 -0
- package/src/components/IncrementInput/IncrementInput.stories.tsx +31 -31
- package/src/components/IncrementInput/IncrementInput.styles.ts +77 -77
- package/src/components/IncrementInput/IncrementInput.tsx +105 -105
- package/src/components/IncrementInput/index.ts +2 -2
- package/src/components/Input/Input.stories.tsx +86 -86
- package/src/components/Input/Input.styles.ts +307 -307
- package/src/components/Input/Input.tsx +297 -297
- package/src/components/Input/constants.ts +1 -1
- package/src/components/Input/index.ts +3 -3
- package/src/components/Input/types.ts +32 -32
- package/src/components/List/List.stories.tsx +70 -70
- package/src/components/List/List.styles.ts +51 -51
- package/src/components/List/List.tsx +33 -33
- package/src/components/List/components/ListItem/ListItem.styles.ts +47 -47
- package/src/components/List/components/ListItem/ListItem.tsx +57 -57
- package/src/components/List/components/ListItem/index.ts +2 -2
- package/src/components/List/components/index.ts +1 -1
- package/src/components/List/index.ts +3 -3
- package/src/components/Modal/Modal.stories.tsx +105 -105
- package/src/components/Modal/Modal.styles.ts +318 -303
- package/src/components/Modal/Modal.tsx +199 -196
- package/src/components/Modal/index.ts +3 -3
- package/src/components/Modal/types.ts +17 -17
- package/src/components/MoreMenu/MoreMenu.stories.tsx +46 -46
- package/src/components/MoreMenu/MoreMenu.styles.ts +68 -68
- package/src/components/MoreMenu/MoreMenu.tsx +93 -93
- package/src/components/MoreMenu/index.ts +2 -2
- package/src/components/MultiSelect/MultiSelect.stories.tsx +46 -46
- package/src/components/MultiSelect/MultiSelect.styles.ts +59 -59
- package/src/components/MultiSelect/MultiSelect.tsx +106 -106
- package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.ts +73 -73
- package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.tsx +53 -53
- package/src/components/MultiSelect/components/MultiSelectInput/index.ts +2 -2
- package/src/components/MultiSelect/components/index.ts +1 -1
- package/src/components/MultiSelect/index.ts +4 -4
- package/src/components/MultiSelect/types.ts +1 -1
- package/src/components/MultiSelectList/MultiSelectList.styles.ts +136 -136
- package/src/components/MultiSelectList/MultiSelectList.tsx +461 -461
- package/src/components/MultiSelectList/constants.ts +21 -21
- package/src/components/MultiSelectList/helpers.ts +11 -11
- package/src/components/MultiSelectList/index.ts +3 -3
- package/src/components/MultiSelectList/types.ts +15 -15
- package/src/components/NewMoreMenu/NewMoreMenu.stories.tsx +73 -73
- package/src/components/NewMoreMenu/NewMoreMenu.styles.ts +38 -38
- package/src/components/NewMoreMenu/NewMoreMenu.tsx +80 -80
- package/src/components/NewMoreMenu/index.ts +2 -2
- package/src/components/Notification/Notification.stories.tsx +46 -46
- package/src/components/Notification/Notification.styles.ts +55 -55
- package/src/components/Notification/Notification.tsx +69 -69
- package/src/components/Notification/index.ts +3 -3
- package/src/components/Notification/types.ts +1 -1
- package/src/components/NumberInput/NumberInput.stories.tsx +35 -35
- package/src/components/NumberInput/NumberInput.tsx +137 -137
- package/src/components/NumberInput/helpers.ts +86 -86
- package/src/components/NumberInput/index.ts +1 -1
- package/src/components/PhoneInput/PhoneInput.stories.tsx +70 -70
- package/src/components/PhoneInput/PhoneInput.styles.ts +89 -89
- package/src/components/PhoneInput/PhoneInput.tsx +214 -214
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.tsx +21 -21
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.ts +103 -103
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +155 -155
- package/src/components/PhoneInput/components/PhoneInputCountryList/index.ts +2 -2
- package/src/components/PhoneInput/components/index.ts +1 -1
- package/src/components/PhoneInput/constants.ts +3 -3
- package/src/components/PhoneInput/index.ts +4 -4
- package/src/components/PhoneInput/types.ts +16 -16
- package/src/components/RadioButton/RadioButton.stories.tsx +46 -46
- package/src/components/RadioButton/RadioButton.styles.ts +37 -37
- package/src/components/RadioButton/RadioButton.tsx +57 -57
- package/src/components/RadioButton/index.ts +2 -2
- package/src/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.ts +54 -54
- package/src/components/ScrollIntoViewIfNeeded/constants.ts +12 -12
- package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
- package/src/components/SearchInput/SearchInput.stories.tsx +23 -23
- package/src/components/SearchInput/SearchInput.styles.ts +50 -50
- package/src/components/SearchInput/SearchInput.tsx +56 -56
- package/src/components/SearchInput/index.ts +2 -2
- package/src/components/Select/CustomSelect.stories.tsx +217 -217
- package/src/components/Select/MultiSelect.stories.tsx +240 -240
- package/src/components/Select/Select.stories.tsx +235 -235
- package/src/components/Select/Select.styles.ts +146 -146
- package/src/components/Select/Select.tsx +609 -609
- package/src/components/Select/components/SelectList/SelectList.styles.ts +71 -71
- package/src/components/Select/components/SelectList/SelectList.tsx +156 -156
- package/src/components/Select/components/SelectList/index.ts +2 -2
- package/src/components/Select/components/SelectListItem/SelectListItem.styles.ts +14 -14
- package/src/components/Select/components/SelectListItem/SelectListItem.tsx +72 -72
- package/src/components/Select/components/SelectListItem/index.ts +1 -1
- package/src/components/Select/components/index.ts +2 -2
- package/src/components/Select/constants.ts +2 -2
- package/src/components/Select/helpers.ts +27 -27
- package/src/components/Select/index.ts +4 -4
- package/src/components/Select/types.ts +1 -1
- package/src/components/Selector/Selector.stories.tsx +62 -62
- package/src/components/Selector/Selector.styles.ts +164 -164
- package/src/components/Selector/Selector.tsx +115 -115
- package/src/components/Selector/index.ts +2 -2
- package/src/components/Selector/types.ts +12 -12
- package/src/components/Skeleton/Skeleton.stories.tsx +19 -19
- package/src/components/Skeleton/Skeleton.styles.ts +46 -46
- package/src/components/Skeleton/Skeleton.tsx +12 -12
- package/src/components/Skeleton/index.ts +2 -2
- package/src/components/SmartInput/SmartInput.stories.tsx +51 -51
- package/src/components/SmartInput/SmartInput.tsx +134 -134
- package/src/components/SmartInput/constants.ts +84 -84
- package/src/components/SmartInput/helpers.ts +13 -13
- package/src/components/SmartInput/index.ts +2 -2
- package/src/components/SmartInput/types.ts +11 -11
- package/src/components/Status/Status.stories.tsx +73 -73
- package/src/components/Status/Status.styles.ts +143 -143
- package/src/components/Status/Status.tsx +49 -49
- package/src/components/Status/constants.ts +11 -11
- package/src/components/Status/index.ts +3 -3
- package/src/components/Status/types.ts +5 -5
- package/src/components/Switch/Switch.stories.tsx +40 -40
- package/src/components/Switch/Switch.styles.ts +75 -75
- package/src/components/Switch/Switch.tsx +75 -75
- package/src/components/Switch/index.ts +3 -3
- package/src/components/Switch/types.ts +4 -4
- package/src/components/TextArea/TextArea.stories.tsx +35 -35
- package/src/components/TextArea/TextArea.styles.ts +157 -157
- package/src/components/TextArea/TextArea.tsx +180 -180
- package/src/components/TextArea/index.ts +2 -2
- package/src/components/TextButton/TextButton.stories.tsx +47 -46
- package/src/components/TextButton/TextButton.styles.ts +129 -129
- package/src/components/TextButton/TextButton.tsx +110 -103
- package/src/components/TextButton/constants.ts +3 -0
- package/src/components/TextButton/index.ts +3 -4
- package/src/components/TextButton/types.ts +11 -0
- package/src/components/TextWithInfo/TextWithInfo.stories.tsx +53 -53
- package/src/components/TextWithInfo/TextWithInfo.styles.ts +59 -59
- package/src/components/TextWithInfo/TextWithInfo.tsx +62 -62
- package/src/components/TextWithInfo/index.ts +2 -2
- package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
- package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +21 -21
- package/src/components/TextWithTooltip/TextWithTooltip.tsx +156 -156
- package/src/components/TextWithTooltip/index.ts +2 -2
- package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +41 -41
- package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +26 -26
- package/src/components/ThemedPreloader/ThemedPreloader.tsx +54 -54
- package/src/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.tsx +29 -29
- package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +54 -54
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +15 -15
- package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -2
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -11
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +24 -24
- package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -2
- package/src/components/ThemedPreloader/components/index.ts +3 -3
- package/src/components/ThemedPreloader/constants.ts +1 -1
- package/src/components/ThemedPreloader/index.ts +4 -4
- package/src/components/ThemedPreloader/types.ts +3 -3
- package/src/components/Toaster/Toaster.stories.tsx +30 -30
- package/src/components/Toaster/Toaster.styles.ts +60 -60
- package/src/components/Toaster/Toaster.tsx +109 -108
- package/src/components/Toaster/constants.ts +1 -1
- package/src/components/Toaster/index.ts +3 -3
- package/src/components/Toaster/types.ts +1 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +19 -19
- package/src/components/Tooltip/Tooltip.styles.ts +49 -49
- package/src/components/Tooltip/Tooltip.tsx +35 -35
- package/src/components/Tooltip/index.ts +3 -3
- package/src/components/Tooltip/types.ts +1 -1
- package/src/components/WithPopup/WithPopup.stories.tsx +77 -77
- package/src/components/WithPopup/WithPopup.styles.ts +21 -21
- package/src/components/WithPopup/WithPopup.tsx +130 -130
- package/src/components/WithPopup/constants.ts +3 -3
- package/src/components/WithPopup/index.ts +2 -2
- package/src/components/WithPopup/types.ts +3 -3
- package/src/components/index.ts +43 -42
- package/src/constants/index.ts +1 -1
- package/src/constants/phone-info.ts +2147 -2147
- package/src/helpers/index.ts +3 -3
- package/src/helpers/misc.ts +158 -158
- package/src/helpers/phone.ts +91 -91
- package/src/helpers/popper-helpers.ts +17 -17
- package/src/hooks/index.ts +7 -7
- package/src/hooks/use-did-mount-effect.ts +18 -18
- package/src/hooks/use-dropdown.ts +84 -84
- package/src/hooks/use-is-mounted.ts +15 -15
- package/src/hooks/use-merged-refs.ts +4 -4
- package/src/hooks/use-mixed-styles.ts +14 -14
- package/src/hooks/use-on-click-outside.ts +77 -77
- package/src/hooks/use-tweak-styles.ts +57 -57
- package/src/index.ts +6 -6
- package/src/theme/Provider.tsx +21 -21
- package/src/theme/common.ts +161 -161
- package/src/theme/helpers.ts +76 -76
- package/src/theme/index.ts +4 -4
- package/src/theme/types.ts +153 -151
- package/src/types.ts +26 -26
- package/src/vite-env.d.ts +1 -1
|
@@ -5,7 +5,7 @@ import { CSSTransition } from "react-transition-group";
|
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import hexToRgba from "hex-to-rgba";
|
|
7
7
|
import InputMask from "react-input-mask";
|
|
8
|
-
import { getYear, getMonth, format
|
|
8
|
+
import { getYear, getMonth, format, parse, isSameDay, isValid, isAfter, isBefore, startOfMonth, endOfMonth, sub, startOfYear, endOfYear } from "date-fns";
|
|
9
9
|
import { Portal } from "react-overlays";
|
|
10
10
|
import { debounce as debounce$1 } from "ts-debounce";
|
|
11
11
|
import scrollIntoViewIfNeeded from "scroll-into-view-if-needed";
|
|
@@ -1870,7 +1870,7 @@ var merge = createAssigner(function(object, source, srcIndex) {
|
|
|
1870
1870
|
baseMerge(object, source, srcIndex);
|
|
1871
1871
|
});
|
|
1872
1872
|
const merge$1 = merge;
|
|
1873
|
-
function _define_property
|
|
1873
|
+
function _define_property$$(obj, key, value) {
|
|
1874
1874
|
if (key in obj) {
|
|
1875
1875
|
Object.defineProperty(obj, key, {
|
|
1876
1876
|
value,
|
|
@@ -1883,7 +1883,7 @@ function _define_property$_(obj, key, value) {
|
|
|
1883
1883
|
}
|
|
1884
1884
|
return obj;
|
|
1885
1885
|
}
|
|
1886
|
-
function _object_spread$
|
|
1886
|
+
function _object_spread$_(target) {
|
|
1887
1887
|
for (var i = 1; i < arguments.length; i++) {
|
|
1888
1888
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1889
1889
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1893,12 +1893,12 @@ function _object_spread$Z(target) {
|
|
|
1893
1893
|
}));
|
|
1894
1894
|
}
|
|
1895
1895
|
ownKeys2.forEach(function(key) {
|
|
1896
|
-
_define_property
|
|
1896
|
+
_define_property$$(target, key, source[key]);
|
|
1897
1897
|
});
|
|
1898
1898
|
}
|
|
1899
1899
|
return target;
|
|
1900
1900
|
}
|
|
1901
|
-
function ownKeys$
|
|
1901
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
1902
1902
|
var keys2 = Object.keys(object);
|
|
1903
1903
|
if (Object.getOwnPropertySymbols) {
|
|
1904
1904
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1911,12 +1911,12 @@ function ownKeys$O(object, enumerableOnly) {
|
|
|
1911
1911
|
}
|
|
1912
1912
|
return keys2;
|
|
1913
1913
|
}
|
|
1914
|
-
function _object_spread_props$
|
|
1914
|
+
function _object_spread_props$P(target, source) {
|
|
1915
1915
|
source = source != null ? source : {};
|
|
1916
1916
|
if (Object.getOwnPropertyDescriptors) {
|
|
1917
1917
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1918
1918
|
} else {
|
|
1919
|
-
ownKeys$
|
|
1919
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
1920
1920
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1921
1921
|
});
|
|
1922
1922
|
}
|
|
@@ -1971,7 +1971,7 @@ function createThemedStyles() {
|
|
|
1971
1971
|
return mergeStyles(styles, isNotEmpty(componentName) ? theme === null || theme === void 0 ? void 0 : (_theme_components = theme.components) === null || _theme_components === void 0 ? void 0 : _theme_components[componentName] : void 0, tweakStyles);
|
|
1972
1972
|
});
|
|
1973
1973
|
return function(data) {
|
|
1974
|
-
return useStyles2(isNotEmpty(data) ? _object_spread_props$
|
|
1974
|
+
return useStyles2(isNotEmpty(data) ? _object_spread_props$P(_object_spread$_({}, data), {
|
|
1975
1975
|
theme: cleanStyles(data.theme)
|
|
1976
1976
|
}) : data);
|
|
1977
1977
|
};
|
|
@@ -4667,8 +4667,8 @@ var checkSearchStringInCountry = function(country, searchString) {
|
|
|
4667
4667
|
return v.startsWith(checkValue);
|
|
4668
4668
|
});
|
|
4669
4669
|
};
|
|
4670
|
-
var _phone_dialCode, _phone_phoneNumber;
|
|
4671
4670
|
var getFullPhone = function(phone) {
|
|
4671
|
+
var _phone_dialCode, _phone_phoneNumber;
|
|
4672
4672
|
return ((_phone_dialCode = phone === null || phone === void 0 ? void 0 : phone.dialCode) !== null && _phone_dialCode !== void 0 ? _phone_dialCode : "") + ((_phone_phoneNumber = phone === null || phone === void 0 ? void 0 : phone.phoneNumber) !== null && _phone_phoneNumber !== void 0 ? _phone_phoneNumber : "");
|
|
4673
4673
|
};
|
|
4674
4674
|
var getCountryCodeFromPhone = function(phoneWithCode) {
|
|
@@ -4680,10 +4680,10 @@ var getCountryCodeFromPhone = function(phoneWithCode) {
|
|
|
4680
4680
|
})) === null || _phoneInfo_find === void 0 ? void 0 : _phoneInfo_find.countryCode;
|
|
4681
4681
|
if (isEmpty(countryCode) && isNotEmpty(phoneWithCode)) {
|
|
4682
4682
|
var _phoneInfo_filter_sort_;
|
|
4683
|
-
var _infoA_dialCodePriority, _infoB_dialCodePriority;
|
|
4684
4683
|
countryCode = (_phoneInfo_filter_sort_ = phoneInfo.filter(function(info) {
|
|
4685
4684
|
return phoneWithCode.startsWith(info.dialCode);
|
|
4686
4685
|
}).sort(function(infoA, infoB) {
|
|
4686
|
+
var _infoA_dialCodePriority, _infoB_dialCodePriority;
|
|
4687
4687
|
return ((_infoA_dialCodePriority = infoA.dialCodePriority) !== null && _infoA_dialCodePriority !== void 0 ? _infoA_dialCodePriority : 1e3) - ((_infoB_dialCodePriority = infoB.dialCodePriority) !== null && _infoB_dialCodePriority !== void 0 ? _infoB_dialCodePriority : 1e3);
|
|
4688
4688
|
})[0]) === null || _phoneInfo_filter_sort_ === void 0 ? void 0 : _phoneInfo_filter_sort_.countryCode;
|
|
4689
4689
|
}
|
|
@@ -4794,8 +4794,8 @@ var hasExactParent = function(element, parent) {
|
|
|
4794
4794
|
}
|
|
4795
4795
|
return hasExactParent(parentNode, parent);
|
|
4796
4796
|
};
|
|
4797
|
-
var _element_parentNode;
|
|
4798
4797
|
var getParentNode$1 = function(element) {
|
|
4798
|
+
var _element_parentNode;
|
|
4799
4799
|
return element.nodeName === "HTML" || element === document ? element : (_element_parentNode = element.parentNode) !== null && _element_parentNode !== void 0 ? _element_parentNode : element.host;
|
|
4800
4800
|
};
|
|
4801
4801
|
var getStyleComputedProperty = function(element) {
|
|
@@ -4991,21 +4991,19 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
|
4991
4991
|
return target;
|
|
4992
4992
|
}
|
|
4993
4993
|
function useMounted() {
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
});
|
|
4998
|
-
useEffect(function() {
|
|
4994
|
+
const mounted = useRef(true);
|
|
4995
|
+
const isMounted = useRef(() => mounted.current);
|
|
4996
|
+
useEffect(() => {
|
|
4999
4997
|
mounted.current = true;
|
|
5000
|
-
return
|
|
4998
|
+
return () => {
|
|
5001
4999
|
mounted.current = false;
|
|
5002
5000
|
};
|
|
5003
5001
|
}, []);
|
|
5004
5002
|
return isMounted.current;
|
|
5005
5003
|
}
|
|
5006
5004
|
function useSafeState(state) {
|
|
5007
|
-
|
|
5008
|
-
return [state[0], useCallback(
|
|
5005
|
+
const isMounted = useMounted();
|
|
5006
|
+
return [state[0], useCallback((nextState) => {
|
|
5009
5007
|
if (!isMounted())
|
|
5010
5008
|
return;
|
|
5011
5009
|
return state[1](nextState);
|
|
@@ -5289,15 +5287,7 @@ function effect$1(_ref2) {
|
|
|
5289
5287
|
return;
|
|
5290
5288
|
}
|
|
5291
5289
|
}
|
|
5292
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5293
|
-
if (!isHTMLElement(arrowElement)) {
|
|
5294
|
-
console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "));
|
|
5295
|
-
}
|
|
5296
|
-
}
|
|
5297
5290
|
if (!contains(state.elements.popper, arrowElement)) {
|
|
5298
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5299
|
-
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
|
|
5300
|
-
}
|
|
5301
5291
|
return;
|
|
5302
5292
|
}
|
|
5303
5293
|
state.elements.arrow = arrowElement;
|
|
@@ -5398,14 +5388,6 @@ function mapToStyles(_ref2) {
|
|
|
5398
5388
|
function computeStyles(_ref5) {
|
|
5399
5389
|
var state = _ref5.state, options = _ref5.options;
|
|
5400
5390
|
var _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = _options$adaptive === void 0 ? true : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
5401
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5402
|
-
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || "";
|
|
5403
|
-
if (adaptive && ["transform", "top", "right", "bottom", "left"].some(function(property) {
|
|
5404
|
-
return transitionProperty.indexOf(property) >= 0;
|
|
5405
|
-
})) {
|
|
5406
|
-
console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', "\n\n", 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', "for smooth transitions, or remove these properties from the CSS", "transition declaration on the popper element if only transitioning", "opacity or background-color for example.", "\n\n", "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
|
|
5407
|
-
}
|
|
5408
|
-
}
|
|
5409
5391
|
var commonStyles = {
|
|
5410
5392
|
placement: getBasePlacement(state.placement),
|
|
5411
5393
|
variation: getVariation(state.placement),
|
|
@@ -5734,9 +5716,6 @@ function computeAutoPlacement(state, options) {
|
|
|
5734
5716
|
});
|
|
5735
5717
|
if (allowedPlacements.length === 0) {
|
|
5736
5718
|
allowedPlacements = placements$1;
|
|
5737
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5738
|
-
console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" "));
|
|
5739
|
-
}
|
|
5740
5719
|
}
|
|
5741
5720
|
var overflows = allowedPlacements.reduce(function(acc, placement2) {
|
|
5742
5721
|
acc[placement2] = detectOverflow(state, {
|
|
@@ -6158,86 +6137,6 @@ function debounce(fn3) {
|
|
|
6158
6137
|
return pending;
|
|
6159
6138
|
};
|
|
6160
6139
|
}
|
|
6161
|
-
function format(str) {
|
|
6162
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
6163
|
-
args[_key - 1] = arguments[_key];
|
|
6164
|
-
}
|
|
6165
|
-
return [].concat(args).reduce(function(p, c) {
|
|
6166
|
-
return p.replace(/%s/, c);
|
|
6167
|
-
}, str);
|
|
6168
|
-
}
|
|
6169
|
-
var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
|
|
6170
|
-
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
|
|
6171
|
-
var VALID_PROPERTIES = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
6172
|
-
function validateModifiers(modifiers) {
|
|
6173
|
-
modifiers.forEach(function(modifier) {
|
|
6174
|
-
[].concat(Object.keys(modifier), VALID_PROPERTIES).filter(function(value, index, self2) {
|
|
6175
|
-
return self2.indexOf(value) === index;
|
|
6176
|
-
}).forEach(function(key) {
|
|
6177
|
-
switch (key) {
|
|
6178
|
-
case "name":
|
|
6179
|
-
if (typeof modifier.name !== "string") {
|
|
6180
|
-
console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', '"' + String(modifier.name) + '"'));
|
|
6181
|
-
}
|
|
6182
|
-
break;
|
|
6183
|
-
case "enabled":
|
|
6184
|
-
if (typeof modifier.enabled !== "boolean") {
|
|
6185
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', '"' + String(modifier.enabled) + '"'));
|
|
6186
|
-
}
|
|
6187
|
-
break;
|
|
6188
|
-
case "phase":
|
|
6189
|
-
if (modifierPhases.indexOf(modifier.phase) < 0) {
|
|
6190
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(", "), '"' + String(modifier.phase) + '"'));
|
|
6191
|
-
}
|
|
6192
|
-
break;
|
|
6193
|
-
case "fn":
|
|
6194
|
-
if (typeof modifier.fn !== "function") {
|
|
6195
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', '"' + String(modifier.fn) + '"'));
|
|
6196
|
-
}
|
|
6197
|
-
break;
|
|
6198
|
-
case "effect":
|
|
6199
|
-
if (modifier.effect != null && typeof modifier.effect !== "function") {
|
|
6200
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', '"' + String(modifier.fn) + '"'));
|
|
6201
|
-
}
|
|
6202
|
-
break;
|
|
6203
|
-
case "requires":
|
|
6204
|
-
if (modifier.requires != null && !Array.isArray(modifier.requires)) {
|
|
6205
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', '"' + String(modifier.requires) + '"'));
|
|
6206
|
-
}
|
|
6207
|
-
break;
|
|
6208
|
-
case "requiresIfExists":
|
|
6209
|
-
if (!Array.isArray(modifier.requiresIfExists)) {
|
|
6210
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', '"' + String(modifier.requiresIfExists) + '"'));
|
|
6211
|
-
}
|
|
6212
|
-
break;
|
|
6213
|
-
case "options":
|
|
6214
|
-
case "data":
|
|
6215
|
-
break;
|
|
6216
|
-
default:
|
|
6217
|
-
console.error('PopperJS: an invalid property has been provided to the "' + modifier.name + '" modifier, valid properties are ' + VALID_PROPERTIES.map(function(s) {
|
|
6218
|
-
return '"' + s + '"';
|
|
6219
|
-
}).join(", ") + '; but "' + key + '" was provided.');
|
|
6220
|
-
}
|
|
6221
|
-
modifier.requires && modifier.requires.forEach(function(requirement) {
|
|
6222
|
-
if (modifiers.find(function(mod) {
|
|
6223
|
-
return mod.name === requirement;
|
|
6224
|
-
}) == null) {
|
|
6225
|
-
console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
|
|
6226
|
-
}
|
|
6227
|
-
});
|
|
6228
|
-
});
|
|
6229
|
-
});
|
|
6230
|
-
}
|
|
6231
|
-
function uniqueBy(arr, fn3) {
|
|
6232
|
-
var identifiers = /* @__PURE__ */ new Set();
|
|
6233
|
-
return arr.filter(function(item) {
|
|
6234
|
-
var identifier = fn3(item);
|
|
6235
|
-
if (!identifiers.has(identifier)) {
|
|
6236
|
-
identifiers.add(identifier);
|
|
6237
|
-
return true;
|
|
6238
|
-
}
|
|
6239
|
-
});
|
|
6240
|
-
}
|
|
6241
6140
|
function mergeByName(modifiers) {
|
|
6242
6141
|
var merged = modifiers.reduce(function(merged2, current) {
|
|
6243
6142
|
var existing = merged2[current.name];
|
|
@@ -6251,8 +6150,6 @@ function mergeByName(modifiers) {
|
|
|
6251
6150
|
return merged[key];
|
|
6252
6151
|
});
|
|
6253
6152
|
}
|
|
6254
|
-
var INVALID_ELEMENT_ERROR = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.";
|
|
6255
|
-
var INFINITE_LOOP_ERROR = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.";
|
|
6256
6153
|
var DEFAULT_OPTIONS = {
|
|
6257
6154
|
placement: "bottom",
|
|
6258
6155
|
modifiers: [],
|
|
@@ -6303,28 +6200,6 @@ function popperGenerator(generatorOptions) {
|
|
|
6303
6200
|
state.orderedModifiers = orderedModifiers.filter(function(m) {
|
|
6304
6201
|
return m.enabled;
|
|
6305
6202
|
});
|
|
6306
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6307
|
-
var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function(_ref) {
|
|
6308
|
-
var name = _ref.name;
|
|
6309
|
-
return name;
|
|
6310
|
-
});
|
|
6311
|
-
validateModifiers(modifiers);
|
|
6312
|
-
if (getBasePlacement(state.options.placement) === auto) {
|
|
6313
|
-
var flipModifier = state.orderedModifiers.find(function(_ref2) {
|
|
6314
|
-
var name = _ref2.name;
|
|
6315
|
-
return name === "flip";
|
|
6316
|
-
});
|
|
6317
|
-
if (!flipModifier) {
|
|
6318
|
-
console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
|
|
6319
|
-
}
|
|
6320
|
-
}
|
|
6321
|
-
var _getComputedStyle = getComputedStyle$1(popper2), marginTop = _getComputedStyle.marginTop, marginRight = _getComputedStyle.marginRight, marginBottom = _getComputedStyle.marginBottom, marginLeft = _getComputedStyle.marginLeft;
|
|
6322
|
-
if ([marginTop, marginRight, marginBottom, marginLeft].some(function(margin) {
|
|
6323
|
-
return parseFloat(margin);
|
|
6324
|
-
})) {
|
|
6325
|
-
console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
|
|
6326
|
-
}
|
|
6327
|
-
}
|
|
6328
6203
|
runModifierEffects();
|
|
6329
6204
|
return instance.update();
|
|
6330
6205
|
},
|
|
@@ -6339,9 +6214,6 @@ function popperGenerator(generatorOptions) {
|
|
|
6339
6214
|
}
|
|
6340
6215
|
var _state$elements = state.elements, reference3 = _state$elements.reference, popper3 = _state$elements.popper;
|
|
6341
6216
|
if (!areValidElements(reference3, popper3)) {
|
|
6342
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6343
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
6344
|
-
}
|
|
6345
6217
|
return;
|
|
6346
6218
|
}
|
|
6347
6219
|
state.rects = {
|
|
@@ -6353,15 +6225,7 @@ function popperGenerator(generatorOptions) {
|
|
|
6353
6225
|
state.orderedModifiers.forEach(function(modifier) {
|
|
6354
6226
|
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
6355
6227
|
});
|
|
6356
|
-
var __debug_loops__ = 0;
|
|
6357
6228
|
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
6358
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6359
|
-
__debug_loops__ += 1;
|
|
6360
|
-
if (__debug_loops__ > 100) {
|
|
6361
|
-
console.error(INFINITE_LOOP_ERROR);
|
|
6362
|
-
break;
|
|
6363
|
-
}
|
|
6364
|
-
}
|
|
6365
6229
|
if (state.reset === true) {
|
|
6366
6230
|
state.reset = false;
|
|
6367
6231
|
index = -1;
|
|
@@ -6392,9 +6256,6 @@ function popperGenerator(generatorOptions) {
|
|
|
6392
6256
|
}
|
|
6393
6257
|
};
|
|
6394
6258
|
if (!areValidElements(reference2, popper2)) {
|
|
6395
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6396
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
6397
|
-
}
|
|
6398
6259
|
return instance;
|
|
6399
6260
|
}
|
|
6400
6261
|
instance.setOptions(options).then(function(state2) {
|
|
@@ -6403,8 +6264,8 @@ function popperGenerator(generatorOptions) {
|
|
|
6403
6264
|
}
|
|
6404
6265
|
});
|
|
6405
6266
|
function runModifierEffects() {
|
|
6406
|
-
state.orderedModifiers.forEach(function(
|
|
6407
|
-
var name =
|
|
6267
|
+
state.orderedModifiers.forEach(function(_ref) {
|
|
6268
|
+
var name = _ref.name, _ref$options = _ref.options, options2 = _ref$options === void 0 ? {} : _ref$options, effect3 = _ref.effect;
|
|
6408
6269
|
if (typeof effect3 === "function") {
|
|
6409
6270
|
var cleanupFn = effect3({
|
|
6410
6271
|
state,
|
|
@@ -6569,7 +6430,7 @@ function _array_without_holes$7(arr) {
|
|
|
6569
6430
|
if (Array.isArray(arr))
|
|
6570
6431
|
return _array_like_to_array$q(arr);
|
|
6571
6432
|
}
|
|
6572
|
-
function _define_property$
|
|
6433
|
+
function _define_property$_(obj, key, value) {
|
|
6573
6434
|
if (key in obj) {
|
|
6574
6435
|
Object.defineProperty(obj, key, {
|
|
6575
6436
|
value,
|
|
@@ -6589,7 +6450,7 @@ function _iterable_to_array$7(iter) {
|
|
|
6589
6450
|
function _non_iterable_spread$7() {
|
|
6590
6451
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6591
6452
|
}
|
|
6592
|
-
function _object_spread$
|
|
6453
|
+
function _object_spread$Z(target) {
|
|
6593
6454
|
for (var i = 1; i < arguments.length; i++) {
|
|
6594
6455
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6595
6456
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6599,7 +6460,7 @@ function _object_spread$Y(target) {
|
|
|
6599
6460
|
}));
|
|
6600
6461
|
}
|
|
6601
6462
|
ownKeys2.forEach(function(key) {
|
|
6602
|
-
_define_property$
|
|
6463
|
+
_define_property$_(target, key, source[key]);
|
|
6603
6464
|
});
|
|
6604
6465
|
}
|
|
6605
6466
|
return target;
|
|
@@ -6655,7 +6516,7 @@ var useDropdown = function(param) {
|
|
|
6655
6516
|
},
|
|
6656
6517
|
{
|
|
6657
6518
|
name: "flip",
|
|
6658
|
-
options: _object_spread$
|
|
6519
|
+
options: _object_spread$Z({
|
|
6659
6520
|
fallbackPlacements: canBeFlipped ? [
|
|
6660
6521
|
"bottom-start",
|
|
6661
6522
|
"top-start"
|
|
@@ -6677,7 +6538,7 @@ var useDropdown = function(param) {
|
|
|
6677
6538
|
var useTweakStyles = function(param) {
|
|
6678
6539
|
var innerStyles = param.innerStyles, currentComponentTweakStyles = param.tweakStyles, className = param.className, currentComponentName = param.currentComponentName;
|
|
6679
6540
|
return useMemo(function() {
|
|
6680
|
-
var
|
|
6541
|
+
var _theme_components_currentComponentName, _theme_components;
|
|
6681
6542
|
var theme = getTheme();
|
|
6682
6543
|
var themeStyles = isNotEmpty(currentComponentName) ? (_theme_components = theme.components) === null || _theme_components === void 0 ? void 0 : (_theme_components_currentComponentName = _theme_components[currentComponentName]) === null || _theme_components_currentComponentName === void 0 ? void 0 : _theme_components_currentComponentName[className] : void 0;
|
|
6683
6544
|
var tweakStyles = currentComponentTweakStyles === null || currentComponentTweakStyles === void 0 ? void 0 : currentComponentTweakStyles[className];
|
|
@@ -6729,68 +6590,68 @@ var useMergedRefs = function(refs) {
|
|
|
6729
6590
|
return mergeRefs(refs);
|
|
6730
6591
|
}, refs);
|
|
6731
6592
|
};
|
|
6732
|
-
const avatarGreen = ` <svg
|
|
6733
|
-
width="100%"
|
|
6734
|
-
height="100%"
|
|
6735
|
-
viewBox="0 0 32 32"
|
|
6736
|
-
fill="none"
|
|
6737
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6738
|
-
|
|
6739
|
-
<circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED"
|
|
6740
|
-
<mask
|
|
6741
|
-
id="mask0_0_12744"
|
|
6742
|
-
style="mask-type: 'alpha';"
|
|
6743
|
-
maskUnits="userSpaceOnUse"
|
|
6744
|
-
x="0"
|
|
6745
|
-
y="0"
|
|
6746
|
-
width="32"
|
|
6747
|
-
height="32"
|
|
6748
|
-
|
|
6749
|
-
<circle cx="16" cy="16" r="16" fill="white"
|
|
6750
|
-
</mask
|
|
6751
|
-
<g mask="url(#mask0_0_12744)"
|
|
6752
|
-
<circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)"
|
|
6753
|
-
<mask
|
|
6754
|
-
id="mask1_0_12744"
|
|
6755
|
-
style="mask-type: 'alpha';"
|
|
6756
|
-
maskUnits="userSpaceOnUse"
|
|
6757
|
-
x="3"
|
|
6758
|
-
y="16"
|
|
6759
|
-
width="26"
|
|
6760
|
-
height="26"
|
|
6761
|
-
|
|
6762
|
-
<circle cx="16" cy="29" r="13" fill="white"
|
|
6763
|
-
</mask
|
|
6764
|
-
<g mask="url(#mask1_0_12744)"
|
|
6765
|
-
<ellipse
|
|
6766
|
-
cx="16"
|
|
6767
|
-
cy="17.5"
|
|
6768
|
-
rx="6"
|
|
6769
|
-
ry="7.5"
|
|
6770
|
-
fill="#505F79"
|
|
6771
|
-
fill-opacity="0.204983"
|
|
6772
|
-
|
|
6773
|
-
</g
|
|
6774
|
-
</g
|
|
6775
|
-
<ellipse cx="16" cy="13" rx="6" ry="7" fill="white"
|
|
6776
|
-
<defs
|
|
6777
|
-
<linearGradient
|
|
6778
|
-
id="paint0_linear_0_12744"
|
|
6779
|
-
x1="13.347"
|
|
6780
|
-
y1="46.279"
|
|
6781
|
-
x2="33.5318"
|
|
6782
|
-
y2="30.8088"
|
|
6783
|
-
gradientUnits="userSpaceOnUse"
|
|
6784
|
-
|
|
6785
|
-
<stop stop-color="#ABD229"
|
|
6786
|
-
<stop offset="1" stop-color="#9CD03F"
|
|
6787
|
-
</linearGradient
|
|
6788
|
-
</defs
|
|
6593
|
+
const avatarGreen = ` <svg
|
|
6594
|
+
width="100%"
|
|
6595
|
+
height="100%"
|
|
6596
|
+
viewBox="0 0 32 32"
|
|
6597
|
+
fill="none"
|
|
6598
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6599
|
+
>
|
|
6600
|
+
<circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />
|
|
6601
|
+
<mask
|
|
6602
|
+
id="mask0_0_12744"
|
|
6603
|
+
style="mask-type: 'alpha';"
|
|
6604
|
+
maskUnits="userSpaceOnUse"
|
|
6605
|
+
x="0"
|
|
6606
|
+
y="0"
|
|
6607
|
+
width="32"
|
|
6608
|
+
height="32"
|
|
6609
|
+
>
|
|
6610
|
+
<circle cx="16" cy="16" r="16" fill="white" />
|
|
6611
|
+
</mask>
|
|
6612
|
+
<g mask="url(#mask0_0_12744)">
|
|
6613
|
+
<circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />
|
|
6614
|
+
<mask
|
|
6615
|
+
id="mask1_0_12744"
|
|
6616
|
+
style="mask-type: 'alpha';"
|
|
6617
|
+
maskUnits="userSpaceOnUse"
|
|
6618
|
+
x="3"
|
|
6619
|
+
y="16"
|
|
6620
|
+
width="26"
|
|
6621
|
+
height="26"
|
|
6622
|
+
>
|
|
6623
|
+
<circle cx="16" cy="29" r="13" fill="white" />
|
|
6624
|
+
</mask>
|
|
6625
|
+
<g mask="url(#mask1_0_12744)">
|
|
6626
|
+
<ellipse
|
|
6627
|
+
cx="16"
|
|
6628
|
+
cy="17.5"
|
|
6629
|
+
rx="6"
|
|
6630
|
+
ry="7.5"
|
|
6631
|
+
fill="#505F79"
|
|
6632
|
+
fill-opacity="0.204983"
|
|
6633
|
+
/>
|
|
6634
|
+
</g>
|
|
6635
|
+
</g>
|
|
6636
|
+
<ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />
|
|
6637
|
+
<defs>
|
|
6638
|
+
<linearGradient
|
|
6639
|
+
id="paint0_linear_0_12744"
|
|
6640
|
+
x1="13.347"
|
|
6641
|
+
y1="46.279"
|
|
6642
|
+
x2="33.5318"
|
|
6643
|
+
y2="30.8088"
|
|
6644
|
+
gradientUnits="userSpaceOnUse"
|
|
6645
|
+
>
|
|
6646
|
+
<stop stop-color="#ABD229" />
|
|
6647
|
+
<stop offset="1" stop-color="#9CD03F" />
|
|
6648
|
+
</linearGradient>
|
|
6649
|
+
</defs>
|
|
6789
6650
|
</svg>`;
|
|
6790
6651
|
var complexIcons = {
|
|
6791
6652
|
avatar: avatarGreen
|
|
6792
6653
|
};
|
|
6793
|
-
function _define_property$
|
|
6654
|
+
function _define_property$Z(obj, key, value) {
|
|
6794
6655
|
if (key in obj) {
|
|
6795
6656
|
Object.defineProperty(obj, key, {
|
|
6796
6657
|
value,
|
|
@@ -6803,7 +6664,7 @@ function _define_property$Y(obj, key, value) {
|
|
|
6803
6664
|
}
|
|
6804
6665
|
return obj;
|
|
6805
6666
|
}
|
|
6806
|
-
function _object_spread$
|
|
6667
|
+
function _object_spread$Y(target) {
|
|
6807
6668
|
for (var i = 1; i < arguments.length; i++) {
|
|
6808
6669
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6809
6670
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6813,7 +6674,7 @@ function _object_spread$X(target) {
|
|
|
6813
6674
|
}));
|
|
6814
6675
|
}
|
|
6815
6676
|
ownKeys2.forEach(function(key) {
|
|
6816
|
-
_define_property$
|
|
6677
|
+
_define_property$Z(target, key, source[key]);
|
|
6817
6678
|
});
|
|
6818
6679
|
}
|
|
6819
6680
|
return target;
|
|
@@ -6822,7 +6683,7 @@ var ComplexIconBoilerplate = function(param) {
|
|
|
6822
6683
|
var type = param.type;
|
|
6823
6684
|
var theme = useContext(ThemeContext).theme;
|
|
6824
6685
|
var icons = useMemo(function() {
|
|
6825
|
-
return _object_spread$
|
|
6686
|
+
return _object_spread$Y({}, complexIcons, theme.complexIcons);
|
|
6826
6687
|
}, []);
|
|
6827
6688
|
var ComplexIcon = icons[type];
|
|
6828
6689
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -7694,7 +7555,7 @@ var iconsList = checkIcons({
|
|
|
7694
7555
|
]
|
|
7695
7556
|
}
|
|
7696
7557
|
});
|
|
7697
|
-
function _define_property$
|
|
7558
|
+
function _define_property$Y(obj, key, value) {
|
|
7698
7559
|
if (key in obj) {
|
|
7699
7560
|
Object.defineProperty(obj, key, {
|
|
7700
7561
|
value,
|
|
@@ -7707,7 +7568,7 @@ function _define_property$X(obj, key, value) {
|
|
|
7707
7568
|
}
|
|
7708
7569
|
return obj;
|
|
7709
7570
|
}
|
|
7710
|
-
function _object_spread$
|
|
7571
|
+
function _object_spread$X(target) {
|
|
7711
7572
|
for (var i = 1; i < arguments.length; i++) {
|
|
7712
7573
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7713
7574
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7717,12 +7578,12 @@ function _object_spread$W(target) {
|
|
|
7717
7578
|
}));
|
|
7718
7579
|
}
|
|
7719
7580
|
ownKeys2.forEach(function(key) {
|
|
7720
|
-
_define_property$
|
|
7581
|
+
_define_property$Y(target, key, source[key]);
|
|
7721
7582
|
});
|
|
7722
7583
|
}
|
|
7723
7584
|
return target;
|
|
7724
7585
|
}
|
|
7725
|
-
function ownKeys$
|
|
7586
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
7726
7587
|
var keys2 = Object.keys(object);
|
|
7727
7588
|
if (Object.getOwnPropertySymbols) {
|
|
7728
7589
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7735,12 +7596,12 @@ function ownKeys$N(object, enumerableOnly) {
|
|
|
7735
7596
|
}
|
|
7736
7597
|
return keys2;
|
|
7737
7598
|
}
|
|
7738
|
-
function _object_spread_props$
|
|
7599
|
+
function _object_spread_props$O(target, source) {
|
|
7739
7600
|
source = source != null ? source : {};
|
|
7740
7601
|
if (Object.getOwnPropertyDescriptors) {
|
|
7741
7602
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7742
7603
|
} else {
|
|
7743
|
-
ownKeys$
|
|
7604
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
7744
7605
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7745
7606
|
});
|
|
7746
7607
|
}
|
|
@@ -7751,10 +7612,10 @@ var IconBoilerplate = function(param) {
|
|
|
7751
7612
|
var _icon_paths, _icon_rects, _icon_circles;
|
|
7752
7613
|
var theme = useContext(ThemeContext).theme;
|
|
7753
7614
|
var icons = useMemo(function() {
|
|
7754
|
-
return _object_spread$
|
|
7615
|
+
return _object_spread$X({}, iconsList, theme.icons);
|
|
7755
7616
|
}, []);
|
|
7756
7617
|
var icon = icons[type];
|
|
7757
|
-
var _icon_viewBox
|
|
7618
|
+
var _icon_viewBox;
|
|
7758
7619
|
return /* @__PURE__ */ jsxs("svg", {
|
|
7759
7620
|
width: "100%",
|
|
7760
7621
|
height: "100%",
|
|
@@ -7763,7 +7624,8 @@ var IconBoilerplate = function(param) {
|
|
|
7763
7624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7764
7625
|
children: [
|
|
7765
7626
|
(_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) {
|
|
7766
|
-
|
|
7627
|
+
var _path_fill, _path_stroke;
|
|
7628
|
+
return jsx("path", _object_spread$X({
|
|
7767
7629
|
fillRule: "evenodd",
|
|
7768
7630
|
clipRule: "evenodd",
|
|
7769
7631
|
fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor",
|
|
@@ -7771,25 +7633,25 @@ var IconBoilerplate = function(param) {
|
|
|
7771
7633
|
}, path), index);
|
|
7772
7634
|
}),
|
|
7773
7635
|
(_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
|
|
7774
|
-
return /* @__PURE__ */ createElement("rect", _object_spread_props$
|
|
7636
|
+
return /* @__PURE__ */ createElement("rect", _object_spread_props$O(_object_spread$X({}, rect), {
|
|
7775
7637
|
key: index
|
|
7776
7638
|
}));
|
|
7777
7639
|
}),
|
|
7778
7640
|
(_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
|
|
7779
|
-
return /* @__PURE__ */ createElement("circle", _object_spread_props$
|
|
7641
|
+
return /* @__PURE__ */ createElement("circle", _object_spread_props$O(_object_spread$X({}, circle), {
|
|
7780
7642
|
key: index
|
|
7781
7643
|
}));
|
|
7782
7644
|
})
|
|
7783
7645
|
]
|
|
7784
7646
|
});
|
|
7785
7647
|
};
|
|
7786
|
-
var useStyles$
|
|
7648
|
+
var useStyles$T = createThemedStyles("Icon", {
|
|
7787
7649
|
root: {
|
|
7788
7650
|
display: "flex",
|
|
7789
7651
|
alignItems: "center"
|
|
7790
7652
|
}
|
|
7791
7653
|
});
|
|
7792
|
-
function _define_property$
|
|
7654
|
+
function _define_property$X(obj, key, value) {
|
|
7793
7655
|
if (key in obj) {
|
|
7794
7656
|
Object.defineProperty(obj, key, {
|
|
7795
7657
|
value,
|
|
@@ -7802,7 +7664,7 @@ function _define_property$W(obj, key, value) {
|
|
|
7802
7664
|
}
|
|
7803
7665
|
return obj;
|
|
7804
7666
|
}
|
|
7805
|
-
function _object_spread$
|
|
7667
|
+
function _object_spread$W(target) {
|
|
7806
7668
|
for (var i = 1; i < arguments.length; i++) {
|
|
7807
7669
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7808
7670
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7812,12 +7674,12 @@ function _object_spread$V(target) {
|
|
|
7812
7674
|
}));
|
|
7813
7675
|
}
|
|
7814
7676
|
ownKeys2.forEach(function(key) {
|
|
7815
|
-
_define_property$
|
|
7677
|
+
_define_property$X(target, key, source[key]);
|
|
7816
7678
|
});
|
|
7817
7679
|
}
|
|
7818
7680
|
return target;
|
|
7819
7681
|
}
|
|
7820
|
-
function ownKeys$
|
|
7682
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
7821
7683
|
var keys2 = Object.keys(object);
|
|
7822
7684
|
if (Object.getOwnPropertySymbols) {
|
|
7823
7685
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7830,12 +7692,12 @@ function ownKeys$M(object, enumerableOnly) {
|
|
|
7830
7692
|
}
|
|
7831
7693
|
return keys2;
|
|
7832
7694
|
}
|
|
7833
|
-
function _object_spread_props$
|
|
7695
|
+
function _object_spread_props$N(target, source) {
|
|
7834
7696
|
source = source != null ? source : {};
|
|
7835
7697
|
if (Object.getOwnPropertyDescriptors) {
|
|
7836
7698
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7837
7699
|
} else {
|
|
7838
|
-
ownKeys$
|
|
7700
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
7839
7701
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7840
7702
|
});
|
|
7841
7703
|
}
|
|
@@ -7843,10 +7705,10 @@ function _object_spread_props$M(target, source) {
|
|
|
7843
7705
|
}
|
|
7844
7706
|
var Icon = function(param) {
|
|
7845
7707
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7846
|
-
var classes = useStyles$
|
|
7708
|
+
var classes = useStyles$T({
|
|
7847
7709
|
theme: tweakStyles
|
|
7848
7710
|
});
|
|
7849
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7711
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$N(_object_spread$W({
|
|
7850
7712
|
className: classes.root
|
|
7851
7713
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
7852
7714
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -7862,9 +7724,9 @@ var renderIcon = function(icon) {
|
|
|
7862
7724
|
}) : icon;
|
|
7863
7725
|
};
|
|
7864
7726
|
var ITEM_HORIZONTAL_PADDING$1 = 16;
|
|
7865
|
-
var ICON_SIZE$
|
|
7727
|
+
var ICON_SIZE$2 = 20;
|
|
7866
7728
|
var ICON_GAP$1 = 12;
|
|
7867
|
-
var useStyles$
|
|
7729
|
+
var useStyles$S = createThemedStyles("ListItem", {
|
|
7868
7730
|
root: {
|
|
7869
7731
|
display: "flex",
|
|
7870
7732
|
alignItems: "center",
|
|
@@ -7889,17 +7751,17 @@ var useStyles$R = createThemedStyles("ListItem", {
|
|
|
7889
7751
|
backgroundColor: colors.BORDER_LIGHT
|
|
7890
7752
|
},
|
|
7891
7753
|
withIconGap: {
|
|
7892
|
-
paddingLeft: ITEM_HORIZONTAL_PADDING$1 + ICON_SIZE$
|
|
7754
|
+
paddingLeft: ITEM_HORIZONTAL_PADDING$1 + ICON_SIZE$2 + ICON_GAP$1
|
|
7893
7755
|
},
|
|
7894
7756
|
icon: {
|
|
7895
|
-
width: ICON_SIZE$
|
|
7896
|
-
height: ICON_SIZE$
|
|
7757
|
+
width: ICON_SIZE$2,
|
|
7758
|
+
height: ICON_SIZE$2,
|
|
7897
7759
|
marginRight: ICON_GAP$1,
|
|
7898
7760
|
flexShrink: 0
|
|
7899
7761
|
},
|
|
7900
7762
|
content: {}
|
|
7901
7763
|
});
|
|
7902
|
-
function _define_property$
|
|
7764
|
+
function _define_property$W(obj, key, value) {
|
|
7903
7765
|
if (key in obj) {
|
|
7904
7766
|
Object.defineProperty(obj, key, {
|
|
7905
7767
|
value,
|
|
@@ -7912,7 +7774,7 @@ function _define_property$V(obj, key, value) {
|
|
|
7912
7774
|
}
|
|
7913
7775
|
return obj;
|
|
7914
7776
|
}
|
|
7915
|
-
function _object_spread$
|
|
7777
|
+
function _object_spread$V(target) {
|
|
7916
7778
|
for (var i = 1; i < arguments.length; i++) {
|
|
7917
7779
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7918
7780
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7922,12 +7784,12 @@ function _object_spread$U(target) {
|
|
|
7922
7784
|
}));
|
|
7923
7785
|
}
|
|
7924
7786
|
ownKeys2.forEach(function(key) {
|
|
7925
|
-
_define_property$
|
|
7787
|
+
_define_property$W(target, key, source[key]);
|
|
7926
7788
|
});
|
|
7927
7789
|
}
|
|
7928
7790
|
return target;
|
|
7929
7791
|
}
|
|
7930
|
-
function ownKeys$
|
|
7792
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
7931
7793
|
var keys2 = Object.keys(object);
|
|
7932
7794
|
if (Object.getOwnPropertySymbols) {
|
|
7933
7795
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7940,12 +7802,12 @@ function ownKeys$L(object, enumerableOnly) {
|
|
|
7940
7802
|
}
|
|
7941
7803
|
return keys2;
|
|
7942
7804
|
}
|
|
7943
|
-
function _object_spread_props$
|
|
7805
|
+
function _object_spread_props$M(target, source) {
|
|
7944
7806
|
source = source != null ? source : {};
|
|
7945
7807
|
if (Object.getOwnPropertyDescriptors) {
|
|
7946
7808
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7947
7809
|
} else {
|
|
7948
|
-
ownKeys$
|
|
7810
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
7949
7811
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7950
7812
|
});
|
|
7951
7813
|
}
|
|
@@ -7953,7 +7815,7 @@ function _object_spread_props$L(target, source) {
|
|
|
7953
7815
|
}
|
|
7954
7816
|
var ListItem = function(param) {
|
|
7955
7817
|
var isDisabled = param.disabled, icon = param.icon, item = param.item, shouldDrawSpacerAbove = param.shouldDrawSpacerAbove, shouldDrawSpacerBelow = param.shouldDrawSpacerBelow, testId = param.testId, tweakStyles = param.tweakStyles, _param_view = param.view, view = _param_view === void 0 ? "default" : _param_view, withIconGap = param.withIconGap, data = param.data, onClick = param.onClick;
|
|
7956
|
-
var classes = useStyles$
|
|
7818
|
+
var classes = useStyles$S({
|
|
7957
7819
|
theme: tweakStyles
|
|
7958
7820
|
});
|
|
7959
7821
|
var _obj;
|
|
@@ -7962,9 +7824,9 @@ var ListItem = function(param) {
|
|
|
7962
7824
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
7963
7825
|
className: classes.spacer
|
|
7964
7826
|
}),
|
|
7965
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
7966
|
-
className: clsx(classes.root, classes[view], (_obj = {}, _define_property$
|
|
7967
|
-
}, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
7827
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$M(_object_spread$V({
|
|
7828
|
+
className: clsx(classes.root, classes[view], (_obj = {}, _define_property$W(_obj, classes.disabledItem, isDisabled), _define_property$W(_obj, classes.withIconGap, withIconGap), _obj))
|
|
7829
|
+
}, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$M(_object_spread$V({}, data), {
|
|
7968
7830
|
disabled: isDisabled ? true : void 0
|
|
7969
7831
|
}))), {
|
|
7970
7832
|
children: [
|
|
@@ -7985,9 +7847,9 @@ var ListItem = function(param) {
|
|
|
7985
7847
|
});
|
|
7986
7848
|
};
|
|
7987
7849
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
7988
|
-
var ICON_SIZE = 20;
|
|
7850
|
+
var ICON_SIZE$1 = 20;
|
|
7989
7851
|
var ICON_GAP = 12;
|
|
7990
|
-
var useStyles$
|
|
7852
|
+
var useStyles$R = createThemedStyles("List", {
|
|
7991
7853
|
root: {
|
|
7992
7854
|
minWidth: 180,
|
|
7993
7855
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -8020,17 +7882,17 @@ var useStyles$Q = createThemedStyles("List", {
|
|
|
8020
7882
|
backgroundColor: colors.BORDER_LIGHT
|
|
8021
7883
|
},
|
|
8022
7884
|
withIconGap: {
|
|
8023
|
-
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE + ICON_GAP
|
|
7885
|
+
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE$1 + ICON_GAP
|
|
8024
7886
|
},
|
|
8025
7887
|
icon: {
|
|
8026
|
-
width: ICON_SIZE,
|
|
8027
|
-
height: ICON_SIZE,
|
|
7888
|
+
width: ICON_SIZE$1,
|
|
7889
|
+
height: ICON_SIZE$1,
|
|
8028
7890
|
marginRight: ICON_GAP,
|
|
8029
7891
|
flexShrink: 0
|
|
8030
7892
|
},
|
|
8031
7893
|
content: {}
|
|
8032
7894
|
});
|
|
8033
|
-
function _define_property$
|
|
7895
|
+
function _define_property$V(obj, key, value) {
|
|
8034
7896
|
if (key in obj) {
|
|
8035
7897
|
Object.defineProperty(obj, key, {
|
|
8036
7898
|
value,
|
|
@@ -8043,7 +7905,7 @@ function _define_property$U(obj, key, value) {
|
|
|
8043
7905
|
}
|
|
8044
7906
|
return obj;
|
|
8045
7907
|
}
|
|
8046
|
-
function _object_spread$
|
|
7908
|
+
function _object_spread$U(target) {
|
|
8047
7909
|
for (var i = 1; i < arguments.length; i++) {
|
|
8048
7910
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8049
7911
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8053,12 +7915,12 @@ function _object_spread$T(target) {
|
|
|
8053
7915
|
}));
|
|
8054
7916
|
}
|
|
8055
7917
|
ownKeys2.forEach(function(key) {
|
|
8056
|
-
_define_property$
|
|
7918
|
+
_define_property$V(target, key, source[key]);
|
|
8057
7919
|
});
|
|
8058
7920
|
}
|
|
8059
7921
|
return target;
|
|
8060
7922
|
}
|
|
8061
|
-
function ownKeys$
|
|
7923
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
8062
7924
|
var keys2 = Object.keys(object);
|
|
8063
7925
|
if (Object.getOwnPropertySymbols) {
|
|
8064
7926
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8071,12 +7933,12 @@ function ownKeys$K(object, enumerableOnly) {
|
|
|
8071
7933
|
}
|
|
8072
7934
|
return keys2;
|
|
8073
7935
|
}
|
|
8074
|
-
function _object_spread_props$
|
|
7936
|
+
function _object_spread_props$L(target, source) {
|
|
8075
7937
|
source = source != null ? source : {};
|
|
8076
7938
|
if (Object.getOwnPropertyDescriptors) {
|
|
8077
7939
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8078
7940
|
} else {
|
|
8079
|
-
ownKeys$
|
|
7941
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
8080
7942
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8081
7943
|
});
|
|
8082
7944
|
}
|
|
@@ -8084,18 +7946,18 @@ function _object_spread_props$K(target, source) {
|
|
|
8084
7946
|
}
|
|
8085
7947
|
var List = function(param) {
|
|
8086
7948
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
8087
|
-
var classes = useStyles$
|
|
7949
|
+
var classes = useStyles$R({
|
|
8088
7950
|
theme: tweakStyles
|
|
8089
7951
|
});
|
|
8090
7952
|
var handleItemClick = function(event, item) {
|
|
8091
7953
|
item.onClick(event);
|
|
8092
7954
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
8093
7955
|
};
|
|
8094
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7956
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$U({
|
|
8095
7957
|
className: classes.root
|
|
8096
7958
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8097
7959
|
children: items.map(function(item, i) {
|
|
8098
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
7960
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$L(_object_spread$U({
|
|
8099
7961
|
testId: getTestId(testId, "item-".concat(i))
|
|
8100
7962
|
}, item), {
|
|
8101
7963
|
onClick: function(event) {
|
|
@@ -8106,7 +7968,7 @@ var List = function(param) {
|
|
|
8106
7968
|
}));
|
|
8107
7969
|
};
|
|
8108
7970
|
var ANIMATION_TIMEOUT = 150;
|
|
8109
|
-
function _define_property$
|
|
7971
|
+
function _define_property$U(obj, key, value) {
|
|
8110
7972
|
if (key in obj) {
|
|
8111
7973
|
Object.defineProperty(obj, key, {
|
|
8112
7974
|
value,
|
|
@@ -8119,7 +7981,7 @@ function _define_property$T(obj, key, value) {
|
|
|
8119
7981
|
}
|
|
8120
7982
|
return obj;
|
|
8121
7983
|
}
|
|
8122
|
-
function _object_spread$
|
|
7984
|
+
function _object_spread$T(target) {
|
|
8123
7985
|
for (var i = 1; i < arguments.length; i++) {
|
|
8124
7986
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8125
7987
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8129,12 +7991,12 @@ function _object_spread$S(target) {
|
|
|
8129
7991
|
}));
|
|
8130
7992
|
}
|
|
8131
7993
|
ownKeys2.forEach(function(key) {
|
|
8132
|
-
_define_property$
|
|
7994
|
+
_define_property$U(target, key, source[key]);
|
|
8133
7995
|
});
|
|
8134
7996
|
}
|
|
8135
7997
|
return target;
|
|
8136
7998
|
}
|
|
8137
|
-
var useStyles$
|
|
7999
|
+
var useStyles$Q = createThemedStyles("AccountInfo", _object_spread$T({
|
|
8138
8000
|
root: {
|
|
8139
8001
|
display: "flex"
|
|
8140
8002
|
},
|
|
@@ -8187,7 +8049,7 @@ function _array_with_holes$p(arr) {
|
|
|
8187
8049
|
if (Array.isArray(arr))
|
|
8188
8050
|
return arr;
|
|
8189
8051
|
}
|
|
8190
|
-
function _define_property$
|
|
8052
|
+
function _define_property$T(obj, key, value) {
|
|
8191
8053
|
if (key in obj) {
|
|
8192
8054
|
Object.defineProperty(obj, key, {
|
|
8193
8055
|
value,
|
|
@@ -8231,7 +8093,7 @@ function _iterable_to_array_limit$p(arr, i) {
|
|
|
8231
8093
|
function _non_iterable_rest$p() {
|
|
8232
8094
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8233
8095
|
}
|
|
8234
|
-
function _object_spread$
|
|
8096
|
+
function _object_spread$S(target) {
|
|
8235
8097
|
for (var i = 1; i < arguments.length; i++) {
|
|
8236
8098
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8237
8099
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8241,12 +8103,12 @@ function _object_spread$R(target) {
|
|
|
8241
8103
|
}));
|
|
8242
8104
|
}
|
|
8243
8105
|
ownKeys2.forEach(function(key) {
|
|
8244
|
-
_define_property$
|
|
8106
|
+
_define_property$T(target, key, source[key]);
|
|
8245
8107
|
});
|
|
8246
8108
|
}
|
|
8247
8109
|
return target;
|
|
8248
8110
|
}
|
|
8249
|
-
function ownKeys$
|
|
8111
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
8250
8112
|
var keys2 = Object.keys(object);
|
|
8251
8113
|
if (Object.getOwnPropertySymbols) {
|
|
8252
8114
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8259,12 +8121,12 @@ function ownKeys$J(object, enumerableOnly) {
|
|
|
8259
8121
|
}
|
|
8260
8122
|
return keys2;
|
|
8261
8123
|
}
|
|
8262
|
-
function _object_spread_props$
|
|
8124
|
+
function _object_spread_props$K(target, source) {
|
|
8263
8125
|
source = source != null ? source : {};
|
|
8264
8126
|
if (Object.getOwnPropertyDescriptors) {
|
|
8265
8127
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8266
8128
|
} else {
|
|
8267
|
-
ownKeys$
|
|
8129
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
8268
8130
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8269
8131
|
});
|
|
8270
8132
|
}
|
|
@@ -8288,7 +8150,7 @@ function _unsupported_iterable_to_array$p(o, minLen) {
|
|
|
8288
8150
|
}
|
|
8289
8151
|
var AccountInfo = function(param) {
|
|
8290
8152
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
8291
|
-
var classes = useStyles$
|
|
8153
|
+
var classes = useStyles$Q({
|
|
8292
8154
|
theme: tweakStyles
|
|
8293
8155
|
});
|
|
8294
8156
|
var tweakListStyles = useTweakStyles({
|
|
@@ -8308,7 +8170,7 @@ var AccountInfo = function(param) {
|
|
|
8308
8170
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8309
8171
|
return setIsMenuOpen(false);
|
|
8310
8172
|
}, nameRef);
|
|
8311
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8173
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$S({
|
|
8312
8174
|
className: classes.root
|
|
8313
8175
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8314
8176
|
children: [
|
|
@@ -8358,7 +8220,7 @@ var AccountInfo = function(param) {
|
|
|
8358
8220
|
]
|
|
8359
8221
|
}));
|
|
8360
8222
|
};
|
|
8361
|
-
var useStyles$
|
|
8223
|
+
var useStyles$P = createThemedStyles("AddButton", {
|
|
8362
8224
|
root: {
|
|
8363
8225
|
display: "flex",
|
|
8364
8226
|
alignItems: "center",
|
|
@@ -8384,7 +8246,7 @@ var useStyles$O = createThemedStyles("AddButton", {
|
|
|
8384
8246
|
width: "100%"
|
|
8385
8247
|
}
|
|
8386
8248
|
});
|
|
8387
|
-
function _define_property$
|
|
8249
|
+
function _define_property$S(obj, key, value) {
|
|
8388
8250
|
if (key in obj) {
|
|
8389
8251
|
Object.defineProperty(obj, key, {
|
|
8390
8252
|
value,
|
|
@@ -8397,7 +8259,7 @@ function _define_property$R(obj, key, value) {
|
|
|
8397
8259
|
}
|
|
8398
8260
|
return obj;
|
|
8399
8261
|
}
|
|
8400
|
-
function _object_spread$
|
|
8262
|
+
function _object_spread$R(target) {
|
|
8401
8263
|
for (var i = 1; i < arguments.length; i++) {
|
|
8402
8264
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8403
8265
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8407,12 +8269,12 @@ function _object_spread$Q(target) {
|
|
|
8407
8269
|
}));
|
|
8408
8270
|
}
|
|
8409
8271
|
ownKeys2.forEach(function(key) {
|
|
8410
|
-
_define_property$
|
|
8272
|
+
_define_property$S(target, key, source[key]);
|
|
8411
8273
|
});
|
|
8412
8274
|
}
|
|
8413
8275
|
return target;
|
|
8414
8276
|
}
|
|
8415
|
-
function ownKeys$
|
|
8277
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
8416
8278
|
var keys2 = Object.keys(object);
|
|
8417
8279
|
if (Object.getOwnPropertySymbols) {
|
|
8418
8280
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8425,12 +8287,12 @@ function ownKeys$I(object, enumerableOnly) {
|
|
|
8425
8287
|
}
|
|
8426
8288
|
return keys2;
|
|
8427
8289
|
}
|
|
8428
|
-
function _object_spread_props$
|
|
8290
|
+
function _object_spread_props$J(target, source) {
|
|
8429
8291
|
source = source != null ? source : {};
|
|
8430
8292
|
if (Object.getOwnPropertyDescriptors) {
|
|
8431
8293
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8432
8294
|
} else {
|
|
8433
|
-
ownKeys$
|
|
8295
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
8434
8296
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8435
8297
|
});
|
|
8436
8298
|
}
|
|
@@ -8438,10 +8300,10 @@ function _object_spread_props$I(target, source) {
|
|
|
8438
8300
|
}
|
|
8439
8301
|
var AddButton = function(param) {
|
|
8440
8302
|
var text = param.text, _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, onClick = param.onClick, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
8441
|
-
var classes = useStyles$
|
|
8303
|
+
var classes = useStyles$P({
|
|
8442
8304
|
theme: tweakStyles
|
|
8443
8305
|
});
|
|
8444
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8306
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$J(_object_spread$R({
|
|
8445
8307
|
type,
|
|
8446
8308
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8447
8309
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8460,7 +8322,7 @@ var AddButton = function(param) {
|
|
|
8460
8322
|
]
|
|
8461
8323
|
}));
|
|
8462
8324
|
};
|
|
8463
|
-
var useStyles$
|
|
8325
|
+
var useStyles$O = createThemedStyles("DotsPreloader", {
|
|
8464
8326
|
root: {
|
|
8465
8327
|
display: "flex",
|
|
8466
8328
|
gap: 4,
|
|
@@ -8505,7 +8367,7 @@ var useStyles$N = createThemedStyles("DotsPreloader", {
|
|
|
8505
8367
|
});
|
|
8506
8368
|
var DotsPreloader = function(param) {
|
|
8507
8369
|
var tweakStyles = param.tweakStyles;
|
|
8508
|
-
var classes = useStyles$
|
|
8370
|
+
var classes = useStyles$O({
|
|
8509
8371
|
theme: tweakStyles
|
|
8510
8372
|
});
|
|
8511
8373
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8571,7 +8433,7 @@ var DefaultPreloader = function() {
|
|
|
8571
8433
|
]
|
|
8572
8434
|
});
|
|
8573
8435
|
};
|
|
8574
|
-
var useStyles$
|
|
8436
|
+
var useStyles$N = createThemedStyles("SvgPreloader", {
|
|
8575
8437
|
root: {
|
|
8576
8438
|
display: "flex",
|
|
8577
8439
|
width: "100%",
|
|
@@ -8581,7 +8443,7 @@ var useStyles$M = createThemedStyles("SvgPreloader", {
|
|
|
8581
8443
|
var SvgPreloader = function(param) {
|
|
8582
8444
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8583
8445
|
var _theme_preloaders;
|
|
8584
|
-
var classes = useStyles$
|
|
8446
|
+
var classes = useStyles$N({
|
|
8585
8447
|
theme: tweakStyles
|
|
8586
8448
|
});
|
|
8587
8449
|
var theme = useContext(ThemeContext).theme;
|
|
@@ -8595,7 +8457,7 @@ var SvgPreloader = function(param) {
|
|
|
8595
8457
|
}
|
|
8596
8458
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8597
8459
|
};
|
|
8598
|
-
var useStyles$
|
|
8460
|
+
var useStyles$M = createThemedStyles("ThemedPreloader", {
|
|
8599
8461
|
root: {
|
|
8600
8462
|
display: "flex"
|
|
8601
8463
|
},
|
|
@@ -8606,7 +8468,7 @@ var useStyles$L = createThemedStyles("ThemedPreloader", {
|
|
|
8606
8468
|
color: "currentColor"
|
|
8607
8469
|
}
|
|
8608
8470
|
});
|
|
8609
|
-
function _define_property$
|
|
8471
|
+
function _define_property$R(obj, key, value) {
|
|
8610
8472
|
if (key in obj) {
|
|
8611
8473
|
Object.defineProperty(obj, key, {
|
|
8612
8474
|
value,
|
|
@@ -8619,7 +8481,7 @@ function _define_property$Q(obj, key, value) {
|
|
|
8619
8481
|
}
|
|
8620
8482
|
return obj;
|
|
8621
8483
|
}
|
|
8622
|
-
function _object_spread$
|
|
8484
|
+
function _object_spread$Q(target) {
|
|
8623
8485
|
for (var i = 1; i < arguments.length; i++) {
|
|
8624
8486
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8625
8487
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8629,12 +8491,12 @@ function _object_spread$P(target) {
|
|
|
8629
8491
|
}));
|
|
8630
8492
|
}
|
|
8631
8493
|
ownKeys2.forEach(function(key) {
|
|
8632
|
-
_define_property$
|
|
8494
|
+
_define_property$R(target, key, source[key]);
|
|
8633
8495
|
});
|
|
8634
8496
|
}
|
|
8635
8497
|
return target;
|
|
8636
8498
|
}
|
|
8637
|
-
function ownKeys$
|
|
8499
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
8638
8500
|
var keys2 = Object.keys(object);
|
|
8639
8501
|
if (Object.getOwnPropertySymbols) {
|
|
8640
8502
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8647,12 +8509,12 @@ function ownKeys$H(object, enumerableOnly) {
|
|
|
8647
8509
|
}
|
|
8648
8510
|
return keys2;
|
|
8649
8511
|
}
|
|
8650
|
-
function _object_spread_props$
|
|
8512
|
+
function _object_spread_props$I(target, source) {
|
|
8651
8513
|
source = source != null ? source : {};
|
|
8652
8514
|
if (Object.getOwnPropertyDescriptors) {
|
|
8653
8515
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8654
8516
|
} else {
|
|
8655
|
-
ownKeys$
|
|
8517
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
8656
8518
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8657
8519
|
});
|
|
8658
8520
|
}
|
|
@@ -8660,7 +8522,7 @@ function _object_spread_props$H(target, source) {
|
|
|
8660
8522
|
}
|
|
8661
8523
|
var ThemedPreloader = function(param) {
|
|
8662
8524
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, _param_useCurrentColor = param.useCurrentColor, useCurrentColor = _param_useCurrentColor === void 0 ? false : _param_useCurrentColor, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
8663
|
-
var classes = useStyles$
|
|
8525
|
+
var classes = useStyles$M({
|
|
8664
8526
|
theme: tweakStyles
|
|
8665
8527
|
});
|
|
8666
8528
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -8673,8 +8535,8 @@ var ThemedPreloader = function(param) {
|
|
|
8673
8535
|
className: "tweakSvgPreloader",
|
|
8674
8536
|
currentComponentName: "ThemedPreloader"
|
|
8675
8537
|
});
|
|
8676
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8677
|
-
className: clsx(classes.root, classes[type], _define_property$
|
|
8538
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$I(_object_spread$Q({
|
|
8539
|
+
className: clsx(classes.root, classes[type], _define_property$R({}, classes.currentColor, useCurrentColor))
|
|
8678
8540
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8679
8541
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
8680
8542
|
tweakStyles: tweakDotsPreloaderStyles
|
|
@@ -8684,7 +8546,7 @@ var ThemedPreloader = function(param) {
|
|
|
8684
8546
|
})
|
|
8685
8547
|
}));
|
|
8686
8548
|
};
|
|
8687
|
-
var useStyles$
|
|
8549
|
+
var useStyles$L = createThemedStyles("Button", {
|
|
8688
8550
|
root: {
|
|
8689
8551
|
display: "flex",
|
|
8690
8552
|
justifyContent: "center",
|
|
@@ -8855,7 +8717,7 @@ var dotsPreloaderStyles = {
|
|
|
8855
8717
|
var getPreloaderStyles = function(size) {
|
|
8856
8718
|
return size === "s" || size === "m" ? dotsPreloaderStyles : void 0;
|
|
8857
8719
|
};
|
|
8858
|
-
function _define_property$
|
|
8720
|
+
function _define_property$Q(obj, key, value) {
|
|
8859
8721
|
if (key in obj) {
|
|
8860
8722
|
Object.defineProperty(obj, key, {
|
|
8861
8723
|
value,
|
|
@@ -8868,7 +8730,7 @@ function _define_property$P(obj, key, value) {
|
|
|
8868
8730
|
}
|
|
8869
8731
|
return obj;
|
|
8870
8732
|
}
|
|
8871
|
-
function _object_spread$
|
|
8733
|
+
function _object_spread$P(target) {
|
|
8872
8734
|
for (var i = 1; i < arguments.length; i++) {
|
|
8873
8735
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8874
8736
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8878,12 +8740,12 @@ function _object_spread$O(target) {
|
|
|
8878
8740
|
}));
|
|
8879
8741
|
}
|
|
8880
8742
|
ownKeys2.forEach(function(key) {
|
|
8881
|
-
_define_property$
|
|
8743
|
+
_define_property$Q(target, key, source[key]);
|
|
8882
8744
|
});
|
|
8883
8745
|
}
|
|
8884
8746
|
return target;
|
|
8885
8747
|
}
|
|
8886
|
-
function ownKeys$
|
|
8748
|
+
function ownKeys$H(object, enumerableOnly) {
|
|
8887
8749
|
var keys2 = Object.keys(object);
|
|
8888
8750
|
if (Object.getOwnPropertySymbols) {
|
|
8889
8751
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8896,12 +8758,12 @@ function ownKeys$G(object, enumerableOnly) {
|
|
|
8896
8758
|
}
|
|
8897
8759
|
return keys2;
|
|
8898
8760
|
}
|
|
8899
|
-
function _object_spread_props$
|
|
8761
|
+
function _object_spread_props$H(target, source) {
|
|
8900
8762
|
source = source != null ? source : {};
|
|
8901
8763
|
if (Object.getOwnPropertyDescriptors) {
|
|
8902
8764
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8903
8765
|
} else {
|
|
8904
|
-
ownKeys$
|
|
8766
|
+
ownKeys$H(Object(source)).forEach(function(key) {
|
|
8905
8767
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8906
8768
|
});
|
|
8907
8769
|
}
|
|
@@ -8909,7 +8771,7 @@ function _object_spread_props$G(target, source) {
|
|
|
8909
8771
|
}
|
|
8910
8772
|
var Button = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
8911
8773
|
var _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, children = param.children, _param_size = param.size, size = _param_size === void 0 ? "l" : _param_size, _param_view = param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, icon = param.icon, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, onClick = param.onClick, onMouseDown = param.onMouseDown;
|
|
8912
|
-
var classes = useStyles$
|
|
8774
|
+
var classes = useStyles$L({
|
|
8913
8775
|
theme: tweakStyles
|
|
8914
8776
|
});
|
|
8915
8777
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -8922,10 +8784,10 @@ var Button = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
8922
8784
|
var hasChildren = isReactNodeNotEmpty(children);
|
|
8923
8785
|
var hasNoAction = isDisabled || isLoading;
|
|
8924
8786
|
var _obj, _obj1;
|
|
8925
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8787
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$H(_object_spread$P({
|
|
8926
8788
|
ref,
|
|
8927
8789
|
type,
|
|
8928
|
-
className: clsx(classes.root, classes[size], classes[view], (_obj = {}, _define_property$
|
|
8790
|
+
className: clsx(classes.root, classes[size], classes[view], (_obj = {}, _define_property$Q(_obj, classes.disabled, isDisabled), _define_property$Q(_obj, classes.fullWidth, isFullWidth), _define_property$Q(_obj, classes.inline, isInline), _define_property$Q(_obj, classes.active, isActive), _define_property$Q(_obj, classes.loading, isLoading), _define_property$Q(_obj, classes.onlyIcon, hasIcon && !hasChildren), _obj)),
|
|
8929
8791
|
tabIndex: shouldSkipTabNavigation ? -1 : void 0,
|
|
8930
8792
|
disabled: hasNoAction,
|
|
8931
8793
|
onClick: !hasNoAction ? onClick : void 0,
|
|
@@ -8933,7 +8795,7 @@ var Button = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
8933
8795
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8934
8796
|
children: [
|
|
8935
8797
|
/* @__PURE__ */ jsxs("span", {
|
|
8936
|
-
className: clsx(classes.content, (_obj1 = {}, _define_property$
|
|
8798
|
+
className: clsx(classes.content, (_obj1 = {}, _define_property$Q(_obj1, classes.iconFromRight, hasChildren && hasIcon && iconPosition === "right"), _define_property$Q(_obj1, classes.iconFromLeft, hasChildren && hasIcon && iconPosition === "left"), _obj1)),
|
|
8937
8799
|
children: [
|
|
8938
8800
|
hasIcon && /* @__PURE__ */ jsx("span", {
|
|
8939
8801
|
className: classes.icon,
|
|
@@ -8956,7 +8818,7 @@ var Button = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
8956
8818
|
]
|
|
8957
8819
|
}));
|
|
8958
8820
|
});
|
|
8959
|
-
var useStyles$
|
|
8821
|
+
var useStyles$K = createThemedStyles("Checkbox", {
|
|
8960
8822
|
root: {
|
|
8961
8823
|
cursor: "pointer",
|
|
8962
8824
|
display: "flex",
|
|
@@ -9004,7 +8866,7 @@ function _array_with_holes$o(arr) {
|
|
|
9004
8866
|
if (Array.isArray(arr))
|
|
9005
8867
|
return arr;
|
|
9006
8868
|
}
|
|
9007
|
-
function _define_property$
|
|
8869
|
+
function _define_property$P(obj, key, value) {
|
|
9008
8870
|
if (key in obj) {
|
|
9009
8871
|
Object.defineProperty(obj, key, {
|
|
9010
8872
|
value,
|
|
@@ -9048,7 +8910,7 @@ function _iterable_to_array_limit$o(arr, i) {
|
|
|
9048
8910
|
function _non_iterable_rest$o() {
|
|
9049
8911
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9050
8912
|
}
|
|
9051
|
-
function _object_spread$
|
|
8913
|
+
function _object_spread$O(target) {
|
|
9052
8914
|
for (var i = 1; i < arguments.length; i++) {
|
|
9053
8915
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9054
8916
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9058,12 +8920,12 @@ function _object_spread$N(target) {
|
|
|
9058
8920
|
}));
|
|
9059
8921
|
}
|
|
9060
8922
|
ownKeys2.forEach(function(key) {
|
|
9061
|
-
_define_property$
|
|
8923
|
+
_define_property$P(target, key, source[key]);
|
|
9062
8924
|
});
|
|
9063
8925
|
}
|
|
9064
8926
|
return target;
|
|
9065
8927
|
}
|
|
9066
|
-
function ownKeys$
|
|
8928
|
+
function ownKeys$G(object, enumerableOnly) {
|
|
9067
8929
|
var keys2 = Object.keys(object);
|
|
9068
8930
|
if (Object.getOwnPropertySymbols) {
|
|
9069
8931
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9076,12 +8938,12 @@ function ownKeys$F(object, enumerableOnly) {
|
|
|
9076
8938
|
}
|
|
9077
8939
|
return keys2;
|
|
9078
8940
|
}
|
|
9079
|
-
function _object_spread_props$
|
|
8941
|
+
function _object_spread_props$G(target, source) {
|
|
9080
8942
|
source = source != null ? source : {};
|
|
9081
8943
|
if (Object.getOwnPropertyDescriptors) {
|
|
9082
8944
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9083
8945
|
} else {
|
|
9084
|
-
ownKeys$
|
|
8946
|
+
ownKeys$G(Object(source)).forEach(function(key) {
|
|
9085
8947
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9086
8948
|
});
|
|
9087
8949
|
}
|
|
@@ -9105,7 +8967,7 @@ function _unsupported_iterable_to_array$o(o, minLen) {
|
|
|
9105
8967
|
}
|
|
9106
8968
|
function Checkbox(param) {
|
|
9107
8969
|
var children = param.children, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isReadonly = param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, value = param.value, data = param.data, testId = param.testId, _param_isSemiChecked = param.isSemiChecked, isSemiChecked = _param_isSemiChecked === void 0 ? false : _param_isSemiChecked, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, tweakStyles = param.tweakStyles, onSelect = param.onSelect;
|
|
9108
|
-
var classes = useStyles$
|
|
8970
|
+
var classes = useStyles$K({
|
|
9109
8971
|
theme: tweakStyles
|
|
9110
8972
|
});
|
|
9111
8973
|
var _useState = _sliced_to_array$o(useState(false), 2), isSelected = _useState[0], setIsSelected = _useState[1];
|
|
@@ -9124,11 +8986,11 @@ function Checkbox(param) {
|
|
|
9124
8986
|
isChecked
|
|
9125
8987
|
]);
|
|
9126
8988
|
var _obj;
|
|
9127
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
9128
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
8989
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$G(_object_spread$O({
|
|
8990
|
+
className: clsx(classes.root, (_obj = {}, _define_property$P(_obj, classes.disabled, isDisabled), _define_property$P(_obj, classes.labelPositionLeft, labelPosition === "left"), _obj))
|
|
9129
8991
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
9130
8992
|
children: [
|
|
9131
|
-
/* @__PURE__ */ jsx("input", _object_spread$
|
|
8993
|
+
/* @__PURE__ */ jsx("input", _object_spread$O({
|
|
9132
8994
|
type: "checkbox",
|
|
9133
8995
|
className: classes.input,
|
|
9134
8996
|
checked: isSelected,
|
|
@@ -9151,7 +9013,7 @@ function Checkbox(param) {
|
|
|
9151
9013
|
]
|
|
9152
9014
|
}));
|
|
9153
9015
|
}
|
|
9154
|
-
var useStyles$
|
|
9016
|
+
var useStyles$J = createThemedStyles("CloseButton", {
|
|
9155
9017
|
root: {
|
|
9156
9018
|
width: 40,
|
|
9157
9019
|
height: 40,
|
|
@@ -9176,7 +9038,7 @@ var useStyles$I = createThemedStyles("CloseButton", {
|
|
|
9176
9038
|
}
|
|
9177
9039
|
}
|
|
9178
9040
|
});
|
|
9179
|
-
function _define_property$
|
|
9041
|
+
function _define_property$O(obj, key, value) {
|
|
9180
9042
|
if (key in obj) {
|
|
9181
9043
|
Object.defineProperty(obj, key, {
|
|
9182
9044
|
value,
|
|
@@ -9189,7 +9051,7 @@ function _define_property$N(obj, key, value) {
|
|
|
9189
9051
|
}
|
|
9190
9052
|
return obj;
|
|
9191
9053
|
}
|
|
9192
|
-
function _object_spread$
|
|
9054
|
+
function _object_spread$N(target) {
|
|
9193
9055
|
for (var i = 1; i < arguments.length; i++) {
|
|
9194
9056
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9195
9057
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9199,12 +9061,12 @@ function _object_spread$M(target) {
|
|
|
9199
9061
|
}));
|
|
9200
9062
|
}
|
|
9201
9063
|
ownKeys2.forEach(function(key) {
|
|
9202
|
-
_define_property$
|
|
9064
|
+
_define_property$O(target, key, source[key]);
|
|
9203
9065
|
});
|
|
9204
9066
|
}
|
|
9205
9067
|
return target;
|
|
9206
9068
|
}
|
|
9207
|
-
function ownKeys$
|
|
9069
|
+
function ownKeys$F(object, enumerableOnly) {
|
|
9208
9070
|
var keys2 = Object.keys(object);
|
|
9209
9071
|
if (Object.getOwnPropertySymbols) {
|
|
9210
9072
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9217,12 +9079,12 @@ function ownKeys$E(object, enumerableOnly) {
|
|
|
9217
9079
|
}
|
|
9218
9080
|
return keys2;
|
|
9219
9081
|
}
|
|
9220
|
-
function _object_spread_props$
|
|
9082
|
+
function _object_spread_props$F(target, source) {
|
|
9221
9083
|
source = source != null ? source : {};
|
|
9222
9084
|
if (Object.getOwnPropertyDescriptors) {
|
|
9223
9085
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9224
9086
|
} else {
|
|
9225
|
-
ownKeys$
|
|
9087
|
+
ownKeys$F(Object(source)).forEach(function(key) {
|
|
9226
9088
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9227
9089
|
});
|
|
9228
9090
|
}
|
|
@@ -9230,10 +9092,10 @@ function _object_spread_props$E(target, source) {
|
|
|
9230
9092
|
}
|
|
9231
9093
|
var CloseButton = function(param) {
|
|
9232
9094
|
var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data, _param_iconType = param.iconType, iconType = _param_iconType === void 0 ? "close" : _param_iconType, onClose = param.onClose;
|
|
9233
|
-
var classes = useStyles$
|
|
9095
|
+
var classes = useStyles$J({
|
|
9234
9096
|
theme: tweakStyles
|
|
9235
9097
|
});
|
|
9236
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
9098
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$F(_object_spread$N({
|
|
9237
9099
|
type: "button",
|
|
9238
9100
|
className: classes.root,
|
|
9239
9101
|
onClick: onClose
|
|
@@ -9243,7 +9105,7 @@ var CloseButton = function(param) {
|
|
|
9243
9105
|
})
|
|
9244
9106
|
}));
|
|
9245
9107
|
};
|
|
9246
|
-
var useStyles$
|
|
9108
|
+
var useStyles$I = createThemedStyles({
|
|
9247
9109
|
root: {
|
|
9248
9110
|
display: "flex",
|
|
9249
9111
|
flexWrap: "wrap"
|
|
@@ -9336,7 +9198,7 @@ function _unsupported_iterable_to_array$n(o, minLen) {
|
|
|
9336
9198
|
return _array_like_to_array$n(o, minLen);
|
|
9337
9199
|
}
|
|
9338
9200
|
var Colors = function() {
|
|
9339
|
-
var classes = useStyles$
|
|
9201
|
+
var classes = useStyles$I();
|
|
9340
9202
|
var theme = useContext(ThemeContext).theme;
|
|
9341
9203
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
9342
9204
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -9366,7 +9228,7 @@ var Colors = function() {
|
|
|
9366
9228
|
})
|
|
9367
9229
|
});
|
|
9368
9230
|
};
|
|
9369
|
-
var useStyles$
|
|
9231
|
+
var useStyles$H = createThemedStyles("CssBaseline", {
|
|
9370
9232
|
"@global html, body": {
|
|
9371
9233
|
fontFamily: "Arial, sans-serif",
|
|
9372
9234
|
color: colors.FONT_MAIN,
|
|
@@ -9375,7 +9237,7 @@ var useStyles$G = createThemedStyles("CssBaseline", {
|
|
|
9375
9237
|
},
|
|
9376
9238
|
root: {}
|
|
9377
9239
|
});
|
|
9378
|
-
function _define_property$
|
|
9240
|
+
function _define_property$N(obj, key, value) {
|
|
9379
9241
|
if (key in obj) {
|
|
9380
9242
|
Object.defineProperty(obj, key, {
|
|
9381
9243
|
value,
|
|
@@ -9388,7 +9250,7 @@ function _define_property$M(obj, key, value) {
|
|
|
9388
9250
|
}
|
|
9389
9251
|
return obj;
|
|
9390
9252
|
}
|
|
9391
|
-
function _object_spread$
|
|
9253
|
+
function _object_spread$M(target) {
|
|
9392
9254
|
for (var i = 1; i < arguments.length; i++) {
|
|
9393
9255
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9394
9256
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9398,24 +9260,24 @@ function _object_spread$L(target) {
|
|
|
9398
9260
|
}));
|
|
9399
9261
|
}
|
|
9400
9262
|
ownKeys2.forEach(function(key) {
|
|
9401
|
-
_define_property$
|
|
9263
|
+
_define_property$N(target, key, source[key]);
|
|
9402
9264
|
});
|
|
9403
9265
|
}
|
|
9404
9266
|
return target;
|
|
9405
9267
|
}
|
|
9406
9268
|
var CssBaseline = function(param) {
|
|
9407
9269
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
9408
|
-
var classes = useStyles$
|
|
9270
|
+
var classes = useStyles$H({
|
|
9409
9271
|
theme: tweakStyles
|
|
9410
9272
|
});
|
|
9411
|
-
return /* @__PURE__ */ jsx("div", _object_spread$
|
|
9273
|
+
return /* @__PURE__ */ jsx("div", _object_spread$M({
|
|
9412
9274
|
className: classes.root
|
|
9413
9275
|
}, addDataTestId(testId), addDataAttributes(data)));
|
|
9414
9276
|
};
|
|
9415
9277
|
var DEFAULT_SIZE = 6;
|
|
9416
9278
|
var PADDING_X$1 = 12;
|
|
9417
9279
|
var AUTOSIZE_MAX_WIDTH = 480;
|
|
9418
|
-
var useStyles$
|
|
9280
|
+
var useStyles$G = createThemedStyles("Input", {
|
|
9419
9281
|
root: {
|
|
9420
9282
|
width: "100%",
|
|
9421
9283
|
boxSizing: "border-box",
|
|
@@ -9728,7 +9590,7 @@ function _async_to_generator$5(fn3) {
|
|
|
9728
9590
|
});
|
|
9729
9591
|
};
|
|
9730
9592
|
}
|
|
9731
|
-
function _define_property$
|
|
9593
|
+
function _define_property$M(obj, key, value) {
|
|
9732
9594
|
if (key in obj) {
|
|
9733
9595
|
Object.defineProperty(obj, key, {
|
|
9734
9596
|
value,
|
|
@@ -9772,7 +9634,7 @@ function _iterable_to_array_limit$m(arr, i) {
|
|
|
9772
9634
|
function _non_iterable_rest$m() {
|
|
9773
9635
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9774
9636
|
}
|
|
9775
|
-
function _object_spread$
|
|
9637
|
+
function _object_spread$L(target) {
|
|
9776
9638
|
for (var i = 1; i < arguments.length; i++) {
|
|
9777
9639
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9778
9640
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9782,12 +9644,12 @@ function _object_spread$K(target) {
|
|
|
9782
9644
|
}));
|
|
9783
9645
|
}
|
|
9784
9646
|
ownKeys2.forEach(function(key) {
|
|
9785
|
-
_define_property$
|
|
9647
|
+
_define_property$M(target, key, source[key]);
|
|
9786
9648
|
});
|
|
9787
9649
|
}
|
|
9788
9650
|
return target;
|
|
9789
9651
|
}
|
|
9790
|
-
function ownKeys$
|
|
9652
|
+
function ownKeys$E(object, enumerableOnly) {
|
|
9791
9653
|
var keys2 = Object.keys(object);
|
|
9792
9654
|
if (Object.getOwnPropertySymbols) {
|
|
9793
9655
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9800,21 +9662,21 @@ function ownKeys$D(object, enumerableOnly) {
|
|
|
9800
9662
|
}
|
|
9801
9663
|
return keys2;
|
|
9802
9664
|
}
|
|
9803
|
-
function _object_spread_props$
|
|
9665
|
+
function _object_spread_props$E(target, source) {
|
|
9804
9666
|
source = source != null ? source : {};
|
|
9805
9667
|
if (Object.getOwnPropertyDescriptors) {
|
|
9806
9668
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9807
9669
|
} else {
|
|
9808
|
-
ownKeys$
|
|
9670
|
+
ownKeys$E(Object(source)).forEach(function(key) {
|
|
9809
9671
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9810
9672
|
});
|
|
9811
9673
|
}
|
|
9812
9674
|
return target;
|
|
9813
9675
|
}
|
|
9814
|
-
function _object_without_properties$
|
|
9676
|
+
function _object_without_properties$e(source, excluded) {
|
|
9815
9677
|
if (source == null)
|
|
9816
9678
|
return {};
|
|
9817
|
-
var target = _object_without_properties_loose$
|
|
9679
|
+
var target = _object_without_properties_loose$e(source, excluded);
|
|
9818
9680
|
var key, i;
|
|
9819
9681
|
if (Object.getOwnPropertySymbols) {
|
|
9820
9682
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9829,7 +9691,7 @@ function _object_without_properties$d(source, excluded) {
|
|
|
9829
9691
|
}
|
|
9830
9692
|
return target;
|
|
9831
9693
|
}
|
|
9832
|
-
function _object_without_properties_loose$
|
|
9694
|
+
function _object_without_properties_loose$e(source, excluded) {
|
|
9833
9695
|
if (source == null)
|
|
9834
9696
|
return {};
|
|
9835
9697
|
var target = {};
|
|
@@ -9859,7 +9721,7 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
9859
9721
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
9860
9722
|
return _array_like_to_array$m(o, minLen);
|
|
9861
9723
|
}
|
|
9862
|
-
|
|
9724
|
+
function _ts_generator$5(thisArg, body) {
|
|
9863
9725
|
var f, y, t, g, _ = {
|
|
9864
9726
|
label: 0,
|
|
9865
9727
|
sent: function() {
|
|
@@ -9960,9 +9822,9 @@ var __generator$5 = globalThis && globalThis.__generator || function(thisArg, bo
|
|
|
9960
9822
|
done: true
|
|
9961
9823
|
};
|
|
9962
9824
|
}
|
|
9963
|
-
}
|
|
9825
|
+
}
|
|
9964
9826
|
var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
9965
|
-
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, label = _param.label, placeholder = _param.placeholder, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, _param_isReadonly = _param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_hasFloatingLabel = _param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = _param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, _param_errorPosition = _param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = _param.inlineStyle, border = _param.border, _param_isRequired = _param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isAutoSizeable = _param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? false : _param_isAutoSizeable, _param_defaultSize = _param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = _param.iconType, hasRequiredLabel = _param.hasRequiredLabel, data = _param.data, tweakStyles = _param.tweakStyles, _param_shouldFocusOnMount = _param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, units = _param.units, testId = _param.testId, onChange = _param.onChange, onFocus = _param.onFocus, onBlur = _param.onBlur, onIconClick = _param.onIconClick, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, _param_shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, inputProps = _object_without_properties$
|
|
9827
|
+
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, label = _param.label, placeholder = _param.placeholder, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, _param_isReadonly = _param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_hasFloatingLabel = _param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = _param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, _param_errorPosition = _param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = _param.inlineStyle, border = _param.border, _param_isRequired = _param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isAutoSizeable = _param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? false : _param_isAutoSizeable, _param_defaultSize = _param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = _param.iconType, hasRequiredLabel = _param.hasRequiredLabel, data = _param.data, tweakStyles = _param.tweakStyles, _param_shouldFocusOnMount = _param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, units = _param.units, testId = _param.testId, onChange = _param.onChange, onFocus = _param.onFocus, onBlur = _param.onBlur, onIconClick = _param.onIconClick, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, _param_shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, inputProps = _object_without_properties$e(_param, [
|
|
9966
9828
|
"value",
|
|
9967
9829
|
"label",
|
|
9968
9830
|
"placeholder",
|
|
@@ -9999,7 +9861,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9999
9861
|
"shouldAlwaysShowPlaceholder",
|
|
10000
9862
|
"beforeMaskedStateChange"
|
|
10001
9863
|
]);
|
|
10002
|
-
var classes = useStyles$
|
|
9864
|
+
var classes = useStyles$G({
|
|
10003
9865
|
theme: tweakStyles
|
|
10004
9866
|
});
|
|
10005
9867
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -10023,7 +9885,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10023
9885
|
var handleOnInputClear = function() {
|
|
10024
9886
|
var _ref = _async_to_generator$5(function(event) {
|
|
10025
9887
|
var _input_current, input;
|
|
10026
|
-
return
|
|
9888
|
+
return _ts_generator$5(this, function(_state) {
|
|
10027
9889
|
switch (_state.label) {
|
|
10028
9890
|
case 0:
|
|
10029
9891
|
return [
|
|
@@ -10053,8 +9915,8 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10053
9915
|
var hasPlaceholder = (!hasLabel || hasFocus && !isReadonly || shouldAlwaysShowPlaceholder) && isStringNotEmpty(placeholder);
|
|
10054
9916
|
var shouldShowUnits = (hasValue || isFocused && !hasPlaceholder) && hasUnits;
|
|
10055
9917
|
var _obj;
|
|
10056
|
-
var props = _object_spread_props$
|
|
10057
|
-
className: clsx(classes.input, (_obj = {}, _define_property$
|
|
9918
|
+
var props = _object_spread_props$E(_object_spread$L({}, inputProps, addDataTestId(testId)), {
|
|
9919
|
+
className: clsx(classes.input, (_obj = {}, _define_property$M(_obj, classes.withFloatingLabel, hasFloatingLabel && hasLabel), _define_property$M(_obj, classes.withIcons, hasControls), _define_property$M(_obj, classes.withControls, hasControls), _define_property$M(_obj, classes.withUnits, shouldShowUnits), _define_property$M(_obj, classes.floatingLabelWithoutPadding, hasFloatingLabel && hasLabel && border === "bottom"), _obj)),
|
|
10058
9920
|
onFocus: handleFocus,
|
|
10059
9921
|
onBlur: handleBlur,
|
|
10060
9922
|
onChange: handleChange,
|
|
@@ -10070,14 +9932,14 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10070
9932
|
return /* @__PURE__ */ jsxs("div", {
|
|
10071
9933
|
className: classes.root,
|
|
10072
9934
|
children: [
|
|
10073
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
10074
|
-
className: clsx(classes.inputWrapper, (_obj1 = {}, _define_property$
|
|
9935
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$E(_object_spread$L({
|
|
9936
|
+
className: clsx(classes.inputWrapper, (_obj1 = {}, _define_property$M(_obj1, classes.required, isRequired && !hasRequiredLabel), _define_property$M(_obj1, classes.invalid, isInvalid), _define_property$M(_obj1, classes.focused, hasFocus), _define_property$M(_obj1, classes.disabled, isDisabled), _define_property$M(_obj1, classes.autosize, isAutoSizeable), _obj1), inlineStyle !== void 0 && classes[inlineStyle], border !== void 0 && classes["border-".concat(border)]),
|
|
10075
9937
|
"data-value": isAutoSizeable ? value : void 0
|
|
10076
9938
|
}, addDataAttributes(data)), {
|
|
10077
9939
|
children: [
|
|
10078
|
-
mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$
|
|
9940
|
+
mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$L({
|
|
10079
9941
|
ref: ref !== null && ref !== void 0 ? ref : inputRef
|
|
10080
|
-
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$
|
|
9942
|
+
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$L({
|
|
10081
9943
|
ref: ref !== null && ref !== void 0 ? ref : inputRef,
|
|
10082
9944
|
mask,
|
|
10083
9945
|
maskPlaceholder,
|
|
@@ -10085,12 +9947,12 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10085
9947
|
beforeMaskedStateChange
|
|
10086
9948
|
}, props)),
|
|
10087
9949
|
hasLabel && /* @__PURE__ */ jsx("span", {
|
|
10088
|
-
className: clsx(classes.label, (_obj2 = {}, _define_property$
|
|
10089
|
-
_define_property$
|
|
9950
|
+
className: clsx(classes.label, (_obj2 = {}, _define_property$M(_obj2, classes.invalidLabel, isInvalid), _define_property$M(_obj2, classes.requiredLabel, hasRequiredLabel && !isRequired), _define_property$M(_obj2, classes.activeLabel, hasFocus && !isReadonly || hasValue), _define_property$M(_obj2, classes.floating, hasFloatingLabel), // Обсуждаемо, сделал так, потому что не хочется создавать новую пропсу, на каждый чих в стилях
|
|
9951
|
+
_define_property$M(_obj2, classes.floatingWithoutPadding, hasFloatingLabel && border === "bottom"), _obj2)),
|
|
10090
9952
|
children: label
|
|
10091
9953
|
}),
|
|
10092
9954
|
shouldShowUnits && /* @__PURE__ */ jsxs("div", {
|
|
10093
|
-
className: clsx(classes.unitsWrapper, _define_property$
|
|
9955
|
+
className: clsx(classes.unitsWrapper, _define_property$M({}, classes.withFloatingLabel, hasFloatingLabel && hasLabel)),
|
|
10094
9956
|
children: [
|
|
10095
9957
|
/* @__PURE__ */ jsx("span", {
|
|
10096
9958
|
className: classes.fakeValue,
|
|
@@ -10122,7 +9984,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10122
9984
|
})
|
|
10123
9985
|
}),
|
|
10124
9986
|
isReactNodeNotEmpty(iconType) && /* @__PURE__ */ jsx("div", {
|
|
10125
|
-
className: clsx(classes.inputIcon, _define_property$
|
|
9987
|
+
className: clsx(classes.inputIcon, _define_property$M({}, classes.activeIcon, !isDisabled && onIconClick !== void 0)),
|
|
10126
9988
|
onClick: !isDisabled ? onIconClick : void 0,
|
|
10127
9989
|
children: renderIcon(iconType)
|
|
10128
9990
|
})
|
|
@@ -10143,7 +10005,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10143
10005
|
});
|
|
10144
10006
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
10145
10007
|
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
10146
|
-
var useStyles$
|
|
10008
|
+
var useStyles$F = createThemedStyles("DateInput", {
|
|
10147
10009
|
root: {
|
|
10148
10010
|
width: "100%",
|
|
10149
10011
|
height: "100%",
|
|
@@ -10151,7 +10013,7 @@ var useStyles$E = createThemedStyles("DateInput", {
|
|
|
10151
10013
|
position: "relative"
|
|
10152
10014
|
}
|
|
10153
10015
|
});
|
|
10154
|
-
function _define_property$
|
|
10016
|
+
function _define_property$L(obj, key, value) {
|
|
10155
10017
|
if (key in obj) {
|
|
10156
10018
|
Object.defineProperty(obj, key, {
|
|
10157
10019
|
value,
|
|
@@ -10164,7 +10026,7 @@ function _define_property$K(obj, key, value) {
|
|
|
10164
10026
|
}
|
|
10165
10027
|
return obj;
|
|
10166
10028
|
}
|
|
10167
|
-
function _object_spread$
|
|
10029
|
+
function _object_spread$K(target) {
|
|
10168
10030
|
for (var i = 1; i < arguments.length; i++) {
|
|
10169
10031
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10170
10032
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10174,12 +10036,12 @@ function _object_spread$J(target) {
|
|
|
10174
10036
|
}));
|
|
10175
10037
|
}
|
|
10176
10038
|
ownKeys2.forEach(function(key) {
|
|
10177
|
-
_define_property$
|
|
10039
|
+
_define_property$L(target, key, source[key]);
|
|
10178
10040
|
});
|
|
10179
10041
|
}
|
|
10180
10042
|
return target;
|
|
10181
10043
|
}
|
|
10182
|
-
function ownKeys$
|
|
10044
|
+
function ownKeys$D(object, enumerableOnly) {
|
|
10183
10045
|
var keys2 = Object.keys(object);
|
|
10184
10046
|
if (Object.getOwnPropertySymbols) {
|
|
10185
10047
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10192,21 +10054,21 @@ function ownKeys$C(object, enumerableOnly) {
|
|
|
10192
10054
|
}
|
|
10193
10055
|
return keys2;
|
|
10194
10056
|
}
|
|
10195
|
-
function _object_spread_props$
|
|
10057
|
+
function _object_spread_props$D(target, source) {
|
|
10196
10058
|
source = source != null ? source : {};
|
|
10197
10059
|
if (Object.getOwnPropertyDescriptors) {
|
|
10198
10060
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10199
10061
|
} else {
|
|
10200
|
-
ownKeys$
|
|
10062
|
+
ownKeys$D(Object(source)).forEach(function(key) {
|
|
10201
10063
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10202
10064
|
});
|
|
10203
10065
|
}
|
|
10204
10066
|
return target;
|
|
10205
10067
|
}
|
|
10206
|
-
function _object_without_properties$
|
|
10068
|
+
function _object_without_properties$d(source, excluded) {
|
|
10207
10069
|
if (source == null)
|
|
10208
10070
|
return {};
|
|
10209
|
-
var target = _object_without_properties_loose$
|
|
10071
|
+
var target = _object_without_properties_loose$d(source, excluded);
|
|
10210
10072
|
var key, i;
|
|
10211
10073
|
if (Object.getOwnPropertySymbols) {
|
|
10212
10074
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10221,7 +10083,7 @@ function _object_without_properties$c(source, excluded) {
|
|
|
10221
10083
|
}
|
|
10222
10084
|
return target;
|
|
10223
10085
|
}
|
|
10224
|
-
function _object_without_properties_loose$
|
|
10086
|
+
function _object_without_properties_loose$d(source, excluded) {
|
|
10225
10087
|
if (source == null)
|
|
10226
10088
|
return {};
|
|
10227
10089
|
var target = {};
|
|
@@ -10236,7 +10098,7 @@ function _object_without_properties_loose$c(source, excluded) {
|
|
|
10236
10098
|
return target;
|
|
10237
10099
|
}
|
|
10238
10100
|
var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
10239
|
-
var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$
|
|
10101
|
+
var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$d(_param, [
|
|
10240
10102
|
"date",
|
|
10241
10103
|
"startDate",
|
|
10242
10104
|
"endDate",
|
|
@@ -10249,7 +10111,7 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10249
10111
|
"onClick",
|
|
10250
10112
|
"onChange"
|
|
10251
10113
|
]);
|
|
10252
|
-
var classes = useStyles$
|
|
10114
|
+
var classes = useStyles$F({
|
|
10253
10115
|
theme: tweakStyles
|
|
10254
10116
|
});
|
|
10255
10117
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10276,11 +10138,11 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10276
10138
|
}
|
|
10277
10139
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
10278
10140
|
};
|
|
10279
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10141
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$D(_object_spread$K({
|
|
10280
10142
|
className: clsx(classes.root, className),
|
|
10281
10143
|
onClick
|
|
10282
10144
|
}, addDataAttributes(data)), {
|
|
10283
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$
|
|
10145
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$D(_object_spread$K({}, inputProps), {
|
|
10284
10146
|
ref,
|
|
10285
10147
|
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
10286
10148
|
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
@@ -10293,7 +10155,7 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10293
10155
|
});
|
|
10294
10156
|
const reactDatepicker = "";
|
|
10295
10157
|
var LEFT_PADDING = 44;
|
|
10296
|
-
var useStyles$
|
|
10158
|
+
var useStyles$E = createThemedStyles("SearchInput", {
|
|
10297
10159
|
root: {
|
|
10298
10160
|
position: "relative"
|
|
10299
10161
|
},
|
|
@@ -10330,7 +10192,7 @@ var inputStyles$4 = {
|
|
|
10330
10192
|
fontSize: 14
|
|
10331
10193
|
}
|
|
10332
10194
|
};
|
|
10333
|
-
function _define_property$
|
|
10195
|
+
function _define_property$K(obj, key, value) {
|
|
10334
10196
|
if (key in obj) {
|
|
10335
10197
|
Object.defineProperty(obj, key, {
|
|
10336
10198
|
value,
|
|
@@ -10343,7 +10205,7 @@ function _define_property$J(obj, key, value) {
|
|
|
10343
10205
|
}
|
|
10344
10206
|
return obj;
|
|
10345
10207
|
}
|
|
10346
|
-
function _object_spread$
|
|
10208
|
+
function _object_spread$J(target) {
|
|
10347
10209
|
for (var i = 1; i < arguments.length; i++) {
|
|
10348
10210
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10349
10211
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10353,12 +10215,12 @@ function _object_spread$I(target) {
|
|
|
10353
10215
|
}));
|
|
10354
10216
|
}
|
|
10355
10217
|
ownKeys2.forEach(function(key) {
|
|
10356
|
-
_define_property$
|
|
10218
|
+
_define_property$K(target, key, source[key]);
|
|
10357
10219
|
});
|
|
10358
10220
|
}
|
|
10359
10221
|
return target;
|
|
10360
10222
|
}
|
|
10361
|
-
function ownKeys$
|
|
10223
|
+
function ownKeys$C(object, enumerableOnly) {
|
|
10362
10224
|
var keys2 = Object.keys(object);
|
|
10363
10225
|
if (Object.getOwnPropertySymbols) {
|
|
10364
10226
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10371,21 +10233,21 @@ function ownKeys$B(object, enumerableOnly) {
|
|
|
10371
10233
|
}
|
|
10372
10234
|
return keys2;
|
|
10373
10235
|
}
|
|
10374
|
-
function _object_spread_props$
|
|
10236
|
+
function _object_spread_props$C(target, source) {
|
|
10375
10237
|
source = source != null ? source : {};
|
|
10376
10238
|
if (Object.getOwnPropertyDescriptors) {
|
|
10377
10239
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10378
10240
|
} else {
|
|
10379
|
-
ownKeys$
|
|
10241
|
+
ownKeys$C(Object(source)).forEach(function(key) {
|
|
10380
10242
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10381
10243
|
});
|
|
10382
10244
|
}
|
|
10383
10245
|
return target;
|
|
10384
10246
|
}
|
|
10385
|
-
function _object_without_properties$
|
|
10247
|
+
function _object_without_properties$c(source, excluded) {
|
|
10386
10248
|
if (source == null)
|
|
10387
10249
|
return {};
|
|
10388
|
-
var target = _object_without_properties_loose$
|
|
10250
|
+
var target = _object_without_properties_loose$c(source, excluded);
|
|
10389
10251
|
var key, i;
|
|
10390
10252
|
if (Object.getOwnPropertySymbols) {
|
|
10391
10253
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10400,7 +10262,7 @@ function _object_without_properties$b(source, excluded) {
|
|
|
10400
10262
|
}
|
|
10401
10263
|
return target;
|
|
10402
10264
|
}
|
|
10403
|
-
function _object_without_properties_loose$
|
|
10265
|
+
function _object_without_properties_loose$c(source, excluded) {
|
|
10404
10266
|
if (source == null)
|
|
10405
10267
|
return {};
|
|
10406
10268
|
var target = {};
|
|
@@ -10415,13 +10277,13 @@ function _object_without_properties_loose$b(source, excluded) {
|
|
|
10415
10277
|
return target;
|
|
10416
10278
|
}
|
|
10417
10279
|
var SearchInput = function(_param) {
|
|
10418
|
-
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, testId = _param.testId, data = _param.data, props = _object_without_properties$
|
|
10280
|
+
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, testId = _param.testId, data = _param.data, props = _object_without_properties$c(_param, [
|
|
10419
10281
|
"isClearable",
|
|
10420
10282
|
"tweakStyles",
|
|
10421
10283
|
"testId",
|
|
10422
10284
|
"data"
|
|
10423
10285
|
]);
|
|
10424
|
-
var classes = useStyles$
|
|
10286
|
+
var classes = useStyles$E({
|
|
10425
10287
|
theme: tweakStyles
|
|
10426
10288
|
});
|
|
10427
10289
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10430,7 +10292,7 @@ var SearchInput = function(_param) {
|
|
|
10430
10292
|
className: "tweakInput",
|
|
10431
10293
|
currentComponentName: "SearchInput"
|
|
10432
10294
|
});
|
|
10433
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
10295
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$C(_object_spread$J({
|
|
10434
10296
|
className: classes.root
|
|
10435
10297
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
10436
10298
|
children: [
|
|
@@ -10440,7 +10302,7 @@ var SearchInput = function(_param) {
|
|
|
10440
10302
|
type: "search"
|
|
10441
10303
|
})
|
|
10442
10304
|
}),
|
|
10443
|
-
/* @__PURE__ */ jsx(Input, _object_spread$
|
|
10305
|
+
/* @__PURE__ */ jsx(Input, _object_spread$J({
|
|
10444
10306
|
isClearable,
|
|
10445
10307
|
isActive: props.value !== "" && props.value !== void 0,
|
|
10446
10308
|
testId: getTestId(testId, "input"),
|
|
@@ -10488,7 +10350,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
10488
10350
|
_defineProperties(Constructor, staticProps);
|
|
10489
10351
|
return Constructor;
|
|
10490
10352
|
}
|
|
10491
|
-
function _define_property$
|
|
10353
|
+
function _define_property$J(obj, key, value) {
|
|
10492
10354
|
if (key in obj) {
|
|
10493
10355
|
Object.defineProperty(obj, key, {
|
|
10494
10356
|
value,
|
|
@@ -10521,7 +10383,7 @@ function _inherits(subClass, superClass) {
|
|
|
10521
10383
|
if (superClass)
|
|
10522
10384
|
_set_prototype_of(subClass, superClass);
|
|
10523
10385
|
}
|
|
10524
|
-
function _object_spread$
|
|
10386
|
+
function _object_spread$I(target) {
|
|
10525
10387
|
for (var i = 1; i < arguments.length; i++) {
|
|
10526
10388
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10527
10389
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10531,15 +10393,15 @@ function _object_spread$H(target) {
|
|
|
10531
10393
|
}));
|
|
10532
10394
|
}
|
|
10533
10395
|
ownKeys2.forEach(function(key) {
|
|
10534
|
-
_define_property$
|
|
10396
|
+
_define_property$J(target, key, source[key]);
|
|
10535
10397
|
});
|
|
10536
10398
|
}
|
|
10537
10399
|
return target;
|
|
10538
10400
|
}
|
|
10539
|
-
function _object_without_properties$
|
|
10401
|
+
function _object_without_properties$b(source, excluded) {
|
|
10540
10402
|
if (source == null)
|
|
10541
10403
|
return {};
|
|
10542
|
-
var target = _object_without_properties_loose$
|
|
10404
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
10543
10405
|
var key, i;
|
|
10544
10406
|
if (Object.getOwnPropertySymbols) {
|
|
10545
10407
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10554,7 +10416,7 @@ function _object_without_properties$a(source, excluded) {
|
|
|
10554
10416
|
}
|
|
10555
10417
|
return target;
|
|
10556
10418
|
}
|
|
10557
|
-
function _object_without_properties_loose$
|
|
10419
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
10558
10420
|
if (source == null)
|
|
10559
10421
|
return {};
|
|
10560
10422
|
var target = {};
|
|
@@ -10620,8 +10482,8 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
10620
10482
|
_class_call_check(this, ScrollIntoViewIfNeeded2);
|
|
10621
10483
|
var _this;
|
|
10622
10484
|
_this = _super.apply(this, arguments);
|
|
10623
|
-
_define_property$
|
|
10624
|
-
_define_property$
|
|
10485
|
+
_define_property$J(_assert_this_initialized(_this), "node", createRef());
|
|
10486
|
+
_define_property$J(_assert_this_initialized(_this), "handleScrollIntoViewIfNeeded", function() {
|
|
10625
10487
|
var options = _this.props.options;
|
|
10626
10488
|
var _this_node = _this.node, node = _this_node.current;
|
|
10627
10489
|
if (node) {
|
|
@@ -10657,13 +10519,13 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
10657
10519
|
_this_props.active;
|
|
10658
10520
|
var elementType = _this_props.elementType, children = _this_props.children;
|
|
10659
10521
|
_this_props.options;
|
|
10660
|
-
var wrapperProps = _object_without_properties$
|
|
10522
|
+
var wrapperProps = _object_without_properties$b(_this_props, [
|
|
10661
10523
|
"active",
|
|
10662
10524
|
"elementType",
|
|
10663
10525
|
"children",
|
|
10664
10526
|
"options"
|
|
10665
10527
|
]);
|
|
10666
|
-
return createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$
|
|
10528
|
+
return createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$I({
|
|
10667
10529
|
ref: this.node
|
|
10668
10530
|
}, wrapperProps), children);
|
|
10669
10531
|
}
|
|
@@ -10671,10 +10533,10 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
10671
10533
|
]);
|
|
10672
10534
|
return ScrollIntoViewIfNeeded2;
|
|
10673
10535
|
}(PureComponent);
|
|
10674
|
-
_define_property$
|
|
10536
|
+
_define_property$J(ScrollIntoViewIfNeeded, "defaultProps", ScrollIntoViewIfNeededDefaultProps);
|
|
10675
10537
|
var DEFAULT_OPTION_INDEX = -2;
|
|
10676
10538
|
var ALL_OPTION_INDEX = -1;
|
|
10677
|
-
function _define_property$
|
|
10539
|
+
function _define_property$I(obj, key, value) {
|
|
10678
10540
|
if (key in obj) {
|
|
10679
10541
|
Object.defineProperty(obj, key, {
|
|
10680
10542
|
value,
|
|
@@ -10687,7 +10549,7 @@ function _define_property$H(obj, key, value) {
|
|
|
10687
10549
|
}
|
|
10688
10550
|
return obj;
|
|
10689
10551
|
}
|
|
10690
|
-
function _object_spread$
|
|
10552
|
+
function _object_spread$H(target) {
|
|
10691
10553
|
for (var i = 1; i < arguments.length; i++) {
|
|
10692
10554
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10693
10555
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10697,7 +10559,7 @@ function _object_spread$G(target) {
|
|
|
10697
10559
|
}));
|
|
10698
10560
|
}
|
|
10699
10561
|
ownKeys2.forEach(function(key) {
|
|
10700
|
-
_define_property$
|
|
10562
|
+
_define_property$I(target, key, source[key]);
|
|
10701
10563
|
});
|
|
10702
10564
|
}
|
|
10703
10565
|
return target;
|
|
@@ -10708,7 +10570,7 @@ var CELL_PADDING = [
|
|
|
10708
10570
|
10,
|
|
10709
10571
|
20
|
|
10710
10572
|
];
|
|
10711
|
-
var useStyles$
|
|
10573
|
+
var useStyles$D = createThemedStyles("SelectList", {
|
|
10712
10574
|
root: {
|
|
10713
10575
|
borderRadius: dimensions.BORDER_RADIUS_SMALL,
|
|
10714
10576
|
boxShadow: "0 13px 74px -27px rgba(0, 0, 0, 0.11)",
|
|
@@ -10732,7 +10594,7 @@ var useStyles$C = createThemedStyles("SelectList", {
|
|
|
10732
10594
|
]
|
|
10733
10595
|
}
|
|
10734
10596
|
},
|
|
10735
|
-
list: _object_spread$
|
|
10597
|
+
list: _object_spread$H({
|
|
10736
10598
|
height: "100%",
|
|
10737
10599
|
maxHeight: ROW_HEIGHT$1 * 6,
|
|
10738
10600
|
cursor: "pointer",
|
|
@@ -10775,7 +10637,7 @@ var checkboxStyles$1 = {
|
|
|
10775
10637
|
display: "none"
|
|
10776
10638
|
}
|
|
10777
10639
|
};
|
|
10778
|
-
function _define_property$
|
|
10640
|
+
function _define_property$H(obj, key, value) {
|
|
10779
10641
|
if (key in obj) {
|
|
10780
10642
|
Object.defineProperty(obj, key, {
|
|
10781
10643
|
value,
|
|
@@ -10788,7 +10650,7 @@ function _define_property$G(obj, key, value) {
|
|
|
10788
10650
|
}
|
|
10789
10651
|
return obj;
|
|
10790
10652
|
}
|
|
10791
|
-
function _object_spread$
|
|
10653
|
+
function _object_spread$G(target) {
|
|
10792
10654
|
for (var i = 1; i < arguments.length; i++) {
|
|
10793
10655
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10794
10656
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10798,12 +10660,12 @@ function _object_spread$F(target) {
|
|
|
10798
10660
|
}));
|
|
10799
10661
|
}
|
|
10800
10662
|
ownKeys2.forEach(function(key) {
|
|
10801
|
-
_define_property$
|
|
10663
|
+
_define_property$H(target, key, source[key]);
|
|
10802
10664
|
});
|
|
10803
10665
|
}
|
|
10804
10666
|
return target;
|
|
10805
10667
|
}
|
|
10806
|
-
function ownKeys$
|
|
10668
|
+
function ownKeys$B(object, enumerableOnly) {
|
|
10807
10669
|
var keys2 = Object.keys(object);
|
|
10808
10670
|
if (Object.getOwnPropertySymbols) {
|
|
10809
10671
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10816,12 +10678,12 @@ function ownKeys$A(object, enumerableOnly) {
|
|
|
10816
10678
|
}
|
|
10817
10679
|
return keys2;
|
|
10818
10680
|
}
|
|
10819
|
-
function _object_spread_props$
|
|
10681
|
+
function _object_spread_props$B(target, source) {
|
|
10820
10682
|
source = source != null ? source : {};
|
|
10821
10683
|
if (Object.getOwnPropertyDescriptors) {
|
|
10822
10684
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10823
10685
|
} else {
|
|
10824
|
-
ownKeys$
|
|
10686
|
+
ownKeys$B(Object(source)).forEach(function(key) {
|
|
10825
10687
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10826
10688
|
});
|
|
10827
10689
|
}
|
|
@@ -10831,12 +10693,12 @@ var SelectListItem = function(param) {
|
|
|
10831
10693
|
var classes = param.classes, index = param.index, isSemiChecked = param.isSemiChecked, isDisabled = param.isDisabled, isActive = param.isActive, children = param.children, isFocused = param.isFocused, onOptionSelect = param.onOptionSelect, onToggleCheckbox = param.onToggleCheckbox;
|
|
10832
10694
|
var isMultiSelect = isNotEmpty(onToggleCheckbox);
|
|
10833
10695
|
var _obj;
|
|
10834
|
-
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$
|
|
10696
|
+
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$B(_object_spread$G({
|
|
10835
10697
|
active: isFocused,
|
|
10836
10698
|
options: {
|
|
10837
10699
|
block: "nearest"
|
|
10838
10700
|
},
|
|
10839
|
-
className: clsx(classes.cell, (_obj = {}, _define_property$
|
|
10701
|
+
className: clsx(classes.cell, (_obj = {}, _define_property$H(_obj, classes.cellWithCheckbox, isMultiSelect), _define_property$H(_obj, classes.focused, isFocused), _define_property$H(_obj, classes.active, isActive && !isMultiSelect), _define_property$H(_obj, classes.disabled, isDisabled), _obj))
|
|
10840
10702
|
}, addDataAttributes({
|
|
10841
10703
|
disabled: isDisabled,
|
|
10842
10704
|
active: isActive,
|
|
@@ -10858,7 +10720,7 @@ var SelectListItem = function(param) {
|
|
|
10858
10720
|
}) : children
|
|
10859
10721
|
}));
|
|
10860
10722
|
};
|
|
10861
|
-
function _define_property$
|
|
10723
|
+
function _define_property$G(obj, key, value) {
|
|
10862
10724
|
if (key in obj) {
|
|
10863
10725
|
Object.defineProperty(obj, key, {
|
|
10864
10726
|
value,
|
|
@@ -10871,7 +10733,7 @@ function _define_property$F(obj, key, value) {
|
|
|
10871
10733
|
}
|
|
10872
10734
|
return obj;
|
|
10873
10735
|
}
|
|
10874
|
-
function _object_spread$
|
|
10736
|
+
function _object_spread$F(target) {
|
|
10875
10737
|
for (var i = 1; i < arguments.length; i++) {
|
|
10876
10738
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10877
10739
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10881,12 +10743,12 @@ function _object_spread$E(target) {
|
|
|
10881
10743
|
}));
|
|
10882
10744
|
}
|
|
10883
10745
|
ownKeys2.forEach(function(key) {
|
|
10884
|
-
_define_property$
|
|
10746
|
+
_define_property$G(target, key, source[key]);
|
|
10885
10747
|
});
|
|
10886
10748
|
}
|
|
10887
10749
|
return target;
|
|
10888
10750
|
}
|
|
10889
|
-
function ownKeys$
|
|
10751
|
+
function ownKeys$A(object, enumerableOnly) {
|
|
10890
10752
|
var keys2 = Object.keys(object);
|
|
10891
10753
|
if (Object.getOwnPropertySymbols) {
|
|
10892
10754
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10899,12 +10761,12 @@ function ownKeys$z(object, enumerableOnly) {
|
|
|
10899
10761
|
}
|
|
10900
10762
|
return keys2;
|
|
10901
10763
|
}
|
|
10902
|
-
function _object_spread_props$
|
|
10764
|
+
function _object_spread_props$A(target, source) {
|
|
10903
10765
|
source = source != null ? source : {};
|
|
10904
10766
|
if (Object.getOwnPropertyDescriptors) {
|
|
10905
10767
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10906
10768
|
} else {
|
|
10907
|
-
ownKeys$
|
|
10769
|
+
ownKeys$A(Object(source)).forEach(function(key) {
|
|
10908
10770
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10909
10771
|
});
|
|
10910
10772
|
}
|
|
@@ -10912,15 +10774,15 @@ function _object_spread_props$z(target, source) {
|
|
|
10912
10774
|
}
|
|
10913
10775
|
function SelectList(param) {
|
|
10914
10776
|
var options = param.options, focusedIndex = param.focusedIndex, activeValue = param.activeValue, defaultOptionLabel = param.defaultOptionLabel, _param_noMatchesLabel = param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Совпадений не найдено" : _param_noMatchesLabel, isLoading = param.isLoading, _param_loadingLabel = param.loadingLabel, loadingLabel = _param_loadingLabel === void 0 ? "Загрузка..." : _param_loadingLabel, tweakStyles = param.tweakStyles, testId = param.testId, _param_shouldScrollToList = param.shouldScrollToList, shouldScrollToList = _param_shouldScrollToList === void 0 ? true : _param_shouldScrollToList, areAllOptionsSelected = param.areAllOptionsSelected, customListHeader = param.customListHeader, isOptionDisabled = param.isOptionDisabled, allOptionsLabel = param.allOptionsLabel, onOptionSelect = param.onOptionSelect, onToggleCheckbox = param.onToggleCheckbox, convertValueToString = param.convertValueToString, _param_convertValueToReactNode = param.convertValueToReactNode, convertValueToReactNode = _param_convertValueToReactNode === void 0 ? convertValueToString : _param_convertValueToReactNode, convertValueToId = param.convertValueToId;
|
|
10915
|
-
var classes = useStyles$
|
|
10777
|
+
var classes = useStyles$D({
|
|
10916
10778
|
theme: tweakStyles
|
|
10917
10779
|
});
|
|
10918
10780
|
var isMultiSelect = isNotEmpty(onToggleCheckbox);
|
|
10919
10781
|
var multiSelectValue = activeValue;
|
|
10920
10782
|
var _multiSelectValue_length;
|
|
10921
10783
|
var selectedOptionsCount = (_multiSelectValue_length = multiSelectValue === null || multiSelectValue === void 0 ? void 0 : multiSelectValue.length) !== null && _multiSelectValue_length !== void 0 ? _multiSelectValue_length : 0;
|
|
10922
|
-
var _multiSelectValue_map;
|
|
10923
10784
|
var activeOptionsIdMap = useMemo(function() {
|
|
10785
|
+
var _multiSelectValue_map;
|
|
10924
10786
|
return isMultiSelect ? (_multiSelectValue_map = multiSelectValue === null || multiSelectValue === void 0 ? void 0 : multiSelectValue.map(convertValueToId)) !== null && _multiSelectValue_map !== void 0 ? _multiSelectValue_map : [] : [];
|
|
10925
10787
|
}, [
|
|
10926
10788
|
isMultiSelect,
|
|
@@ -10949,13 +10811,13 @@ function SelectList(param) {
|
|
|
10949
10811
|
};
|
|
10950
10812
|
return /* @__PURE__ */ jsxs(ScrollIntoViewIfNeeded, {
|
|
10951
10813
|
active: shouldScrollToList && !isMultiSelect,
|
|
10952
|
-
className: clsx(classes.root, _define_property$
|
|
10814
|
+
className: clsx(classes.root, _define_property$G({}, classes.withListHeader, isReactNodeNotEmpty(customListHeader))),
|
|
10953
10815
|
children: [
|
|
10954
10816
|
isReactNodeNotEmpty(customListHeader) && /* @__PURE__ */ jsx("div", {
|
|
10955
10817
|
className: classes.listHeader,
|
|
10956
10818
|
children: customListHeader
|
|
10957
10819
|
}),
|
|
10958
|
-
/* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10820
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$A(_object_spread$F({
|
|
10959
10821
|
className: classes.list
|
|
10960
10822
|
}, addDataTestId(testId)), {
|
|
10961
10823
|
children: isLoading ? /* @__PURE__ */ jsx("div", {
|
|
@@ -11010,8 +10872,8 @@ function SelectList(param) {
|
|
|
11010
10872
|
]
|
|
11011
10873
|
});
|
|
11012
10874
|
}
|
|
11013
|
-
var _option_isDisabled;
|
|
11014
10875
|
var defaultIsOptionDisabled = function(option) {
|
|
10876
|
+
var _option_isDisabled;
|
|
11015
10877
|
return typeof option === "object" && option !== null && ((_option_isDisabled = option === null || option === void 0 ? void 0 : option.isDisabled) !== null && _option_isDisabled !== void 0 ? _option_isDisabled : false);
|
|
11016
10878
|
};
|
|
11017
10879
|
var defaultConvertFunction$2 = function(v) {
|
|
@@ -11028,7 +10890,7 @@ var getDefaultConvertToIdFunction = function(convertValueToString) {
|
|
|
11028
10890
|
var isMultiSelectValue = function(props, _value) {
|
|
11029
10891
|
return props.isMultiSelect === true;
|
|
11030
10892
|
};
|
|
11031
|
-
var useStyles$
|
|
10893
|
+
var useStyles$C = createThemedStyles("Select", {
|
|
11032
10894
|
root: {
|
|
11033
10895
|
width: "100%",
|
|
11034
10896
|
position: "relative",
|
|
@@ -11177,7 +11039,7 @@ function _async_to_generator$4(fn3) {
|
|
|
11177
11039
|
});
|
|
11178
11040
|
};
|
|
11179
11041
|
}
|
|
11180
|
-
function _define_property$
|
|
11042
|
+
function _define_property$F(obj, key, value) {
|
|
11181
11043
|
if (key in obj) {
|
|
11182
11044
|
Object.defineProperty(obj, key, {
|
|
11183
11045
|
value,
|
|
@@ -11228,7 +11090,7 @@ function _non_iterable_rest$l() {
|
|
|
11228
11090
|
function _non_iterable_spread$6() {
|
|
11229
11091
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11230
11092
|
}
|
|
11231
|
-
function _object_spread$
|
|
11093
|
+
function _object_spread$E(target) {
|
|
11232
11094
|
for (var i = 1; i < arguments.length; i++) {
|
|
11233
11095
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11234
11096
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11238,12 +11100,12 @@ function _object_spread$D(target) {
|
|
|
11238
11100
|
}));
|
|
11239
11101
|
}
|
|
11240
11102
|
ownKeys2.forEach(function(key) {
|
|
11241
|
-
_define_property$
|
|
11103
|
+
_define_property$F(target, key, source[key]);
|
|
11242
11104
|
});
|
|
11243
11105
|
}
|
|
11244
11106
|
return target;
|
|
11245
11107
|
}
|
|
11246
|
-
function ownKeys$
|
|
11108
|
+
function ownKeys$z(object, enumerableOnly) {
|
|
11247
11109
|
var keys2 = Object.keys(object);
|
|
11248
11110
|
if (Object.getOwnPropertySymbols) {
|
|
11249
11111
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11256,21 +11118,21 @@ function ownKeys$y(object, enumerableOnly) {
|
|
|
11256
11118
|
}
|
|
11257
11119
|
return keys2;
|
|
11258
11120
|
}
|
|
11259
|
-
function _object_spread_props$
|
|
11121
|
+
function _object_spread_props$z(target, source) {
|
|
11260
11122
|
source = source != null ? source : {};
|
|
11261
11123
|
if (Object.getOwnPropertyDescriptors) {
|
|
11262
11124
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11263
11125
|
} else {
|
|
11264
|
-
ownKeys$
|
|
11126
|
+
ownKeys$z(Object(source)).forEach(function(key) {
|
|
11265
11127
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11266
11128
|
});
|
|
11267
11129
|
}
|
|
11268
11130
|
return target;
|
|
11269
11131
|
}
|
|
11270
|
-
function _object_without_properties$
|
|
11132
|
+
function _object_without_properties$a(source, excluded) {
|
|
11271
11133
|
if (source == null)
|
|
11272
11134
|
return {};
|
|
11273
|
-
var target = _object_without_properties_loose$
|
|
11135
|
+
var target = _object_without_properties_loose$a(source, excluded);
|
|
11274
11136
|
var key, i;
|
|
11275
11137
|
if (Object.getOwnPropertySymbols) {
|
|
11276
11138
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -11285,7 +11147,7 @@ function _object_without_properties$9(source, excluded) {
|
|
|
11285
11147
|
}
|
|
11286
11148
|
return target;
|
|
11287
11149
|
}
|
|
11288
|
-
function _object_without_properties_loose$
|
|
11150
|
+
function _object_without_properties_loose$a(source, excluded) {
|
|
11289
11151
|
if (source == null)
|
|
11290
11152
|
return {};
|
|
11291
11153
|
var target = {};
|
|
@@ -11318,7 +11180,7 @@ function _unsupported_iterable_to_array$l(o, minLen) {
|
|
|
11318
11180
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
11319
11181
|
return _array_like_to_array$l(o, minLen);
|
|
11320
11182
|
}
|
|
11321
|
-
|
|
11183
|
+
function _ts_generator$4(thisArg, body) {
|
|
11322
11184
|
var f, y, t, g, _ = {
|
|
11323
11185
|
label: 0,
|
|
11324
11186
|
sent: function() {
|
|
@@ -11419,9 +11281,9 @@ var __generator$4 = globalThis && globalThis.__generator || function(thisArg, bo
|
|
|
11419
11281
|
done: true
|
|
11420
11282
|
};
|
|
11421
11283
|
}
|
|
11422
|
-
}
|
|
11284
|
+
}
|
|
11423
11285
|
function Select(props) {
|
|
11424
|
-
var options = props.options, value = props.value, defaultOptionLabel = props.defaultOptionLabel, allOptionsLabel = props.allOptionsLabel, _props_debounceTime = props.debounceTime, debounceTime = _props_debounceTime === void 0 ? 400 : _props_debounceTime, _props_optionsMode = props.optionsMode, optionsMode = _props_optionsMode === void 0 ? "normal" : _props_optionsMode, noMatchesLabel = props.noMatchesLabel, loadingLabel = props.loadingLabel, tweakStyles = props.tweakStyles, testId = props.testId, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput, iconType = props.iconType, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, inputProps = _object_without_properties$
|
|
11286
|
+
var options = props.options, value = props.value, defaultOptionLabel = props.defaultOptionLabel, allOptionsLabel = props.allOptionsLabel, _props_debounceTime = props.debounceTime, debounceTime = _props_debounceTime === void 0 ? 400 : _props_debounceTime, _props_optionsMode = props.optionsMode, optionsMode = _props_optionsMode === void 0 ? "normal" : _props_optionsMode, noMatchesLabel = props.noMatchesLabel, loadingLabel = props.loadingLabel, tweakStyles = props.tweakStyles, testId = props.testId, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput, iconType = props.iconType, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, inputProps = _object_without_properties$a(props, [
|
|
11425
11287
|
"options",
|
|
11426
11288
|
"value",
|
|
11427
11289
|
"defaultOptionLabel",
|
|
@@ -11452,10 +11314,10 @@ function Select(props) {
|
|
|
11452
11314
|
"convertValueToReactNode",
|
|
11453
11315
|
"optionsFilter"
|
|
11454
11316
|
]);
|
|
11455
|
-
var classes = useStyles$
|
|
11317
|
+
var classes = useStyles$C({
|
|
11456
11318
|
theme: tweakStyles
|
|
11457
11319
|
});
|
|
11458
|
-
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$
|
|
11320
|
+
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$a(_ref, [
|
|
11459
11321
|
"shouldRenderInList"
|
|
11460
11322
|
]);
|
|
11461
11323
|
var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
|
|
@@ -11497,8 +11359,8 @@ function Select(props) {
|
|
|
11497
11359
|
if (optionsMode !== "search") {
|
|
11498
11360
|
return options;
|
|
11499
11361
|
}
|
|
11500
|
-
var _convertValueToString;
|
|
11501
11362
|
var filter = optionsFilter !== null && optionsFilter !== void 0 ? optionsFilter : createFilter(function(option) {
|
|
11363
|
+
var _convertValueToString;
|
|
11502
11364
|
return [
|
|
11503
11365
|
(_convertValueToString = convertValueToString(option)) !== null && _convertValueToString !== void 0 ? _convertValueToString : ""
|
|
11504
11366
|
];
|
|
@@ -11636,7 +11498,7 @@ function Select(props) {
|
|
|
11636
11498
|
]);
|
|
11637
11499
|
var handleOnType = useCallback(function() {
|
|
11638
11500
|
var _ref2 = _async_to_generator$4(function(v) {
|
|
11639
|
-
return
|
|
11501
|
+
return _ts_generator$4(this, function(_state) {
|
|
11640
11502
|
switch (_state.label) {
|
|
11641
11503
|
case 0:
|
|
11642
11504
|
if (onType === void 0) {
|
|
@@ -11790,8 +11652,8 @@ function Select(props) {
|
|
|
11790
11652
|
isOpen
|
|
11791
11653
|
]);
|
|
11792
11654
|
var _obj;
|
|
11793
|
-
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
11794
|
-
className: clsx(classes.listWrapper, (_obj = {}, _define_property$
|
|
11655
|
+
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$z(_object_spread$E({
|
|
11656
|
+
className: clsx(classes.listWrapper, (_obj = {}, _define_property$F(_obj, classes.withoutPopper, !shouldUsePopper), _define_property$F(_obj, classes.listWrapperInBody, shouldRenderInBody), _obj)),
|
|
11795
11657
|
ref: list,
|
|
11796
11658
|
style: popperData === null || popperData === void 0 ? void 0 : popperData.styles.popper,
|
|
11797
11659
|
onBlur: handleBlur
|
|
@@ -11801,7 +11663,7 @@ function Select(props) {
|
|
|
11801
11663
|
defaultOptionLabel: hasDefaultOption && shouldShowDefaultOption && defaultOptionLabel,
|
|
11802
11664
|
allOptionsLabel: shouldShowAllOption && allOptionsLabel,
|
|
11803
11665
|
areAllOptionsSelected,
|
|
11804
|
-
customListHeader: hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$
|
|
11666
|
+
customListHeader: hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$E({
|
|
11805
11667
|
value: searchValue,
|
|
11806
11668
|
onChange: handleInputChange,
|
|
11807
11669
|
tweakStyles: tweakSearchInputStyles,
|
|
@@ -11848,7 +11710,7 @@ function Select(props) {
|
|
|
11848
11710
|
onClick: isDisabled ? void 0 : handleOnClick,
|
|
11849
11711
|
ref: inputWrapper,
|
|
11850
11712
|
children: [
|
|
11851
|
-
/* @__PURE__ */ jsx(Input, _object_spread$
|
|
11713
|
+
/* @__PURE__ */ jsx(Input, _object_spread$E({
|
|
11852
11714
|
value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
|
|
11853
11715
|
onChange: handleInputChange,
|
|
11854
11716
|
isActive: isListOpen,
|
|
@@ -11885,7 +11747,7 @@ function Select(props) {
|
|
|
11885
11747
|
}
|
|
11886
11748
|
var SELECT_PADDING_LEFT = 12;
|
|
11887
11749
|
var SELECT_PADDING_RIGHT = 24;
|
|
11888
|
-
var useStyles$
|
|
11750
|
+
var useStyles$B = createThemedStyles("DatePickerHeader", {
|
|
11889
11751
|
btn: {
|
|
11890
11752
|
width: 36,
|
|
11891
11753
|
height: 36,
|
|
@@ -11954,7 +11816,7 @@ var selectStyles$1 = {
|
|
|
11954
11816
|
};
|
|
11955
11817
|
var DatePickerHeader = function(param) {
|
|
11956
11818
|
var date = param.date, _param_months = param.months, months = _param_months === void 0 ? [] : _param_months, tweakStyles = param.tweakStyles, prevMonthButtonDisabled = param.prevMonthButtonDisabled, nextMonthButtonDisabled = param.nextMonthButtonDisabled, changeYear = param.changeYear, changeMonth = param.changeMonth, decreaseMonth = param.decreaseMonth, increaseMonth = param.increaseMonth;
|
|
11957
|
-
var classes = useStyles$
|
|
11819
|
+
var classes = useStyles$B({
|
|
11958
11820
|
theme: tweakStyles
|
|
11959
11821
|
});
|
|
11960
11822
|
var tweakSelectStyles = useTweakStyles({
|
|
@@ -12051,7 +11913,7 @@ var _ReactDatePicker_default;
|
|
|
12051
11913
|
var DatePickerComponent = (_ReactDatePicker_default = ReactDatePicker.default) !== null && _ReactDatePicker_default !== void 0 ? _ReactDatePicker_default : ReactDatePicker;
|
|
12052
11914
|
var getDateFormatter = function(dateFormat) {
|
|
12053
11915
|
return function(date) {
|
|
12054
|
-
return isNotEmpty(date) ? format
|
|
11916
|
+
return isNotEmpty(date) ? format(date, dateFormat) : "";
|
|
12055
11917
|
};
|
|
12056
11918
|
};
|
|
12057
11919
|
var getDateValueParser = function(dateFormat) {
|
|
@@ -12063,7 +11925,7 @@ var getDateValueParser = function(dateFormat) {
|
|
|
12063
11925
|
var areDatesEquals = function(date1, date2) {
|
|
12064
11926
|
return isEmpty(date1) && isEmpty(date2) || isNotEmpty(date1) && isNotEmpty(date2) && isSameDay(date1, date2);
|
|
12065
11927
|
};
|
|
12066
|
-
var useStyles$
|
|
11928
|
+
var useStyles$A = createThemedStyles("DatePicker", {
|
|
12067
11929
|
root: {
|
|
12068
11930
|
width: "100%",
|
|
12069
11931
|
height: "100%"
|
|
@@ -12097,7 +11959,7 @@ function _array_with_holes$k(arr) {
|
|
|
12097
11959
|
if (Array.isArray(arr))
|
|
12098
11960
|
return arr;
|
|
12099
11961
|
}
|
|
12100
|
-
function _define_property$
|
|
11962
|
+
function _define_property$E(obj, key, value) {
|
|
12101
11963
|
if (key in obj) {
|
|
12102
11964
|
Object.defineProperty(obj, key, {
|
|
12103
11965
|
value,
|
|
@@ -12141,7 +12003,7 @@ function _iterable_to_array_limit$k(arr, i) {
|
|
|
12141
12003
|
function _non_iterable_rest$k() {
|
|
12142
12004
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12143
12005
|
}
|
|
12144
|
-
function _object_spread$
|
|
12006
|
+
function _object_spread$D(target) {
|
|
12145
12007
|
for (var i = 1; i < arguments.length; i++) {
|
|
12146
12008
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12147
12009
|
var ownKeys2 = Object.keys(source);
|
|
@@ -12151,12 +12013,12 @@ function _object_spread$C(target) {
|
|
|
12151
12013
|
}));
|
|
12152
12014
|
}
|
|
12153
12015
|
ownKeys2.forEach(function(key) {
|
|
12154
|
-
_define_property$
|
|
12016
|
+
_define_property$E(target, key, source[key]);
|
|
12155
12017
|
});
|
|
12156
12018
|
}
|
|
12157
12019
|
return target;
|
|
12158
12020
|
}
|
|
12159
|
-
function ownKeys$
|
|
12021
|
+
function ownKeys$y(object, enumerableOnly) {
|
|
12160
12022
|
var keys2 = Object.keys(object);
|
|
12161
12023
|
if (Object.getOwnPropertySymbols) {
|
|
12162
12024
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -12169,21 +12031,21 @@ function ownKeys$x(object, enumerableOnly) {
|
|
|
12169
12031
|
}
|
|
12170
12032
|
return keys2;
|
|
12171
12033
|
}
|
|
12172
|
-
function _object_spread_props$
|
|
12034
|
+
function _object_spread_props$y(target, source) {
|
|
12173
12035
|
source = source != null ? source : {};
|
|
12174
12036
|
if (Object.getOwnPropertyDescriptors) {
|
|
12175
12037
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12176
12038
|
} else {
|
|
12177
|
-
ownKeys$
|
|
12039
|
+
ownKeys$y(Object(source)).forEach(function(key) {
|
|
12178
12040
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12179
12041
|
});
|
|
12180
12042
|
}
|
|
12181
12043
|
return target;
|
|
12182
12044
|
}
|
|
12183
|
-
function _object_without_properties$
|
|
12045
|
+
function _object_without_properties$9(source, excluded) {
|
|
12184
12046
|
if (source == null)
|
|
12185
12047
|
return {};
|
|
12186
|
-
var target = _object_without_properties_loose$
|
|
12048
|
+
var target = _object_without_properties_loose$9(source, excluded);
|
|
12187
12049
|
var key, i;
|
|
12188
12050
|
if (Object.getOwnPropertySymbols) {
|
|
12189
12051
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -12198,7 +12060,7 @@ function _object_without_properties$8(source, excluded) {
|
|
|
12198
12060
|
}
|
|
12199
12061
|
return target;
|
|
12200
12062
|
}
|
|
12201
|
-
function _object_without_properties_loose$
|
|
12063
|
+
function _object_without_properties_loose$9(source, excluded) {
|
|
12202
12064
|
if (source == null)
|
|
12203
12065
|
return {};
|
|
12204
12066
|
var target = {};
|
|
@@ -12229,7 +12091,7 @@ function _unsupported_iterable_to_array$k(o, minLen) {
|
|
|
12229
12091
|
return _array_like_to_array$k(o, minLen);
|
|
12230
12092
|
}
|
|
12231
12093
|
var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
12232
|
-
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _param_shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$
|
|
12094
|
+
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _param_shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$9(_param, [
|
|
12233
12095
|
"data",
|
|
12234
12096
|
"selectedDate",
|
|
12235
12097
|
"minDate",
|
|
@@ -12274,7 +12136,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12274
12136
|
"onKeyDown",
|
|
12275
12137
|
"tweakStyles"
|
|
12276
12138
|
]);
|
|
12277
|
-
var classes = useStyles$
|
|
12139
|
+
var classes = useStyles$A({
|
|
12278
12140
|
theme: tweakStyles
|
|
12279
12141
|
});
|
|
12280
12142
|
var tweakDateInputStyles = useTweakStyles({
|
|
@@ -12297,7 +12159,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12297
12159
|
var _useState4 = _sliced_to_array$k(useState(endDate), 2), end2 = _useState4[0], setEnd = _useState4[1];
|
|
12298
12160
|
var _useState5 = _sliced_to_array$k(useState(formatDate(endDate)), 2), endDateValue = _useState5[0], setEndDateValue = _useState5[1];
|
|
12299
12161
|
var hasDateInputValue = isRange ? isStringNotEmpty(startDateValue) || isStringNotEmpty(endDateValue) : isStringNotEmpty(dateValue);
|
|
12300
|
-
var dateInputProps = _object_spread$
|
|
12162
|
+
var dateInputProps = _object_spread$D(_object_spread_props$y(_object_spread$D({}, inputProps), {
|
|
12301
12163
|
isRange,
|
|
12302
12164
|
isDisabled,
|
|
12303
12165
|
isClearable,
|
|
@@ -12395,10 +12257,10 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12395
12257
|
startDate,
|
|
12396
12258
|
endDate
|
|
12397
12259
|
]);
|
|
12398
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
12260
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$y(_object_spread$D({
|
|
12399
12261
|
className: classes.root
|
|
12400
12262
|
}, addDataAttributes(data)), {
|
|
12401
|
-
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$
|
|
12263
|
+
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$D({
|
|
12402
12264
|
ref,
|
|
12403
12265
|
minDate,
|
|
12404
12266
|
maxDate,
|
|
@@ -12427,9 +12289,9 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12427
12289
|
preventOpenOnFocus,
|
|
12428
12290
|
shouldCloseOnSelect,
|
|
12429
12291
|
customInputRef,
|
|
12430
|
-
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$
|
|
12292
|
+
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$D({}, dateInputProps)),
|
|
12431
12293
|
renderCustomHeader: renderCustomHeader !== null && renderCustomHeader !== void 0 ? renderCustomHeader : function(baseProps) {
|
|
12432
|
-
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$
|
|
12294
|
+
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$y(_object_spread$D({}, baseProps), {
|
|
12433
12295
|
months
|
|
12434
12296
|
}));
|
|
12435
12297
|
},
|
|
@@ -12466,7 +12328,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12466
12328
|
}));
|
|
12467
12329
|
});
|
|
12468
12330
|
var LINK_REGEXP = /(http(s?):\/\/(.*))(\s?)/;
|
|
12469
|
-
var useStyles$
|
|
12331
|
+
var useStyles$z = createThemedStyles("Description", {
|
|
12470
12332
|
root: {},
|
|
12471
12333
|
button: {
|
|
12472
12334
|
cursor: "pointer",
|
|
@@ -12507,7 +12369,7 @@ function _array_with_holes$j(arr) {
|
|
|
12507
12369
|
if (Array.isArray(arr))
|
|
12508
12370
|
return arr;
|
|
12509
12371
|
}
|
|
12510
|
-
function _define_property$
|
|
12372
|
+
function _define_property$D(obj, key, value) {
|
|
12511
12373
|
if (key in obj) {
|
|
12512
12374
|
Object.defineProperty(obj, key, {
|
|
12513
12375
|
value,
|
|
@@ -12551,7 +12413,7 @@ function _iterable_to_array_limit$j(arr, i) {
|
|
|
12551
12413
|
function _non_iterable_rest$j() {
|
|
12552
12414
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12553
12415
|
}
|
|
12554
|
-
function _object_spread$
|
|
12416
|
+
function _object_spread$C(target) {
|
|
12555
12417
|
for (var i = 1; i < arguments.length; i++) {
|
|
12556
12418
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12557
12419
|
var ownKeys2 = Object.keys(source);
|
|
@@ -12561,12 +12423,12 @@ function _object_spread$B(target) {
|
|
|
12561
12423
|
}));
|
|
12562
12424
|
}
|
|
12563
12425
|
ownKeys2.forEach(function(key) {
|
|
12564
|
-
_define_property$
|
|
12426
|
+
_define_property$D(target, key, source[key]);
|
|
12565
12427
|
});
|
|
12566
12428
|
}
|
|
12567
12429
|
return target;
|
|
12568
12430
|
}
|
|
12569
|
-
function ownKeys$
|
|
12431
|
+
function ownKeys$x(object, enumerableOnly) {
|
|
12570
12432
|
var keys2 = Object.keys(object);
|
|
12571
12433
|
if (Object.getOwnPropertySymbols) {
|
|
12572
12434
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -12579,12 +12441,12 @@ function ownKeys$w(object, enumerableOnly) {
|
|
|
12579
12441
|
}
|
|
12580
12442
|
return keys2;
|
|
12581
12443
|
}
|
|
12582
|
-
function _object_spread_props$
|
|
12444
|
+
function _object_spread_props$x(target, source) {
|
|
12583
12445
|
source = source != null ? source : {};
|
|
12584
12446
|
if (Object.getOwnPropertyDescriptors) {
|
|
12585
12447
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12586
12448
|
} else {
|
|
12587
|
-
ownKeys$
|
|
12449
|
+
ownKeys$x(Object(source)).forEach(function(key) {
|
|
12588
12450
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12589
12451
|
});
|
|
12590
12452
|
}
|
|
@@ -12608,7 +12470,7 @@ function _unsupported_iterable_to_array$j(o, minLen) {
|
|
|
12608
12470
|
}
|
|
12609
12471
|
var Description = function(param) {
|
|
12610
12472
|
var text = param.text, moreTitle = param.moreTitle, lessTitle = param.lessTitle, _param_truncateIndex = param.truncateIndex, truncateIndex = _param_truncateIndex === void 0 ? 150 : _param_truncateIndex, _param_isAlwaysOpen = param.isAlwaysOpen, isAlwaysOpen = _param_isAlwaysOpen === void 0 ? true : _param_isAlwaysOpen, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles;
|
|
12611
|
-
var classes = useStyles$
|
|
12473
|
+
var classes = useStyles$z({
|
|
12612
12474
|
theme: tweakStyles
|
|
12613
12475
|
});
|
|
12614
12476
|
var isTooShort = text.length < truncateIndex;
|
|
@@ -12617,7 +12479,7 @@ var Description = function(param) {
|
|
|
12617
12479
|
var linkText = link && link[0];
|
|
12618
12480
|
var textWithNoLink = text.replace(LINK_REGEXP, "");
|
|
12619
12481
|
var shortText = text.slice(0, text.slice(0, truncateIndex).lastIndexOf(" "));
|
|
12620
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
12482
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$x(_object_spread$C({
|
|
12621
12483
|
className: classes.root
|
|
12622
12484
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
12623
12485
|
children: [
|
|
@@ -12864,7 +12726,7 @@ function _async_to_generator$3(fn3) {
|
|
|
12864
12726
|
});
|
|
12865
12727
|
};
|
|
12866
12728
|
}
|
|
12867
|
-
function _define_property$
|
|
12729
|
+
function _define_property$C(obj, key, value) {
|
|
12868
12730
|
if (key in obj) {
|
|
12869
12731
|
Object.defineProperty(obj, key, {
|
|
12870
12732
|
value,
|
|
@@ -12908,7 +12770,7 @@ function _iterable_to_array_limit$i(arr, i) {
|
|
|
12908
12770
|
function _non_iterable_rest$i() {
|
|
12909
12771
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12910
12772
|
}
|
|
12911
|
-
function _object_spread$
|
|
12773
|
+
function _object_spread$B(target) {
|
|
12912
12774
|
for (var i = 1; i < arguments.length; i++) {
|
|
12913
12775
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12914
12776
|
var ownKeys2 = Object.keys(source);
|
|
@@ -12918,15 +12780,15 @@ function _object_spread$A(target) {
|
|
|
12918
12780
|
}));
|
|
12919
12781
|
}
|
|
12920
12782
|
ownKeys2.forEach(function(key) {
|
|
12921
|
-
_define_property$
|
|
12783
|
+
_define_property$C(target, key, source[key]);
|
|
12922
12784
|
});
|
|
12923
12785
|
}
|
|
12924
12786
|
return target;
|
|
12925
12787
|
}
|
|
12926
|
-
function _object_without_properties$
|
|
12788
|
+
function _object_without_properties$8(source, excluded) {
|
|
12927
12789
|
if (source == null)
|
|
12928
12790
|
return {};
|
|
12929
|
-
var target = _object_without_properties_loose$
|
|
12791
|
+
var target = _object_without_properties_loose$8(source, excluded);
|
|
12930
12792
|
var key, i;
|
|
12931
12793
|
if (Object.getOwnPropertySymbols) {
|
|
12932
12794
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -12941,7 +12803,7 @@ function _object_without_properties$7(source, excluded) {
|
|
|
12941
12803
|
}
|
|
12942
12804
|
return target;
|
|
12943
12805
|
}
|
|
12944
|
-
function _object_without_properties_loose$
|
|
12806
|
+
function _object_without_properties_loose$8(source, excluded) {
|
|
12945
12807
|
if (source == null)
|
|
12946
12808
|
return {};
|
|
12947
12809
|
var target = {};
|
|
@@ -12971,7 +12833,7 @@ function _unsupported_iterable_to_array$i(o, minLen) {
|
|
|
12971
12833
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
12972
12834
|
return _array_like_to_array$i(o, minLen);
|
|
12973
12835
|
}
|
|
12974
|
-
|
|
12836
|
+
function _ts_generator$3(thisArg, body) {
|
|
12975
12837
|
var f, y, t, g, _ = {
|
|
12976
12838
|
label: 0,
|
|
12977
12839
|
sent: function() {
|
|
@@ -13072,9 +12934,9 @@ var __generator$3 = globalThis && globalThis.__generator || function(thisArg, bo
|
|
|
13072
12934
|
done: true
|
|
13073
12935
|
};
|
|
13074
12936
|
}
|
|
13075
|
-
}
|
|
12937
|
+
}
|
|
13076
12938
|
var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
13077
|
-
var value = _param.value, _param_canBeFloat = _param.canBeFloat, canBeFloat = _param_canBeFloat === void 0 ? false : _param_canBeFloat, _param_canBeNegative = _param.canBeNegative, canBeNegative = _param_canBeNegative === void 0 ? false : _param_canBeNegative, defaultValue = _param.defaultValue, _param_precision = _param.precision, precision = _param_precision === void 0 ? 3 : _param_precision, _param_intPartPrecision = _param.intPartPrecision, intPartPrecision = _param_intPartPrecision === void 0 ? 7 : _param_intPartPrecision, onChange = _param.onChange, onBlur = _param.onBlur, min2 = _param.min, max2 = _param.max, props = _object_without_properties$
|
|
12939
|
+
var value = _param.value, _param_canBeFloat = _param.canBeFloat, canBeFloat = _param_canBeFloat === void 0 ? false : _param_canBeFloat, _param_canBeNegative = _param.canBeNegative, canBeNegative = _param_canBeNegative === void 0 ? false : _param_canBeNegative, defaultValue = _param.defaultValue, _param_precision = _param.precision, precision = _param_precision === void 0 ? 3 : _param_precision, _param_intPartPrecision = _param.intPartPrecision, intPartPrecision = _param_intPartPrecision === void 0 ? 7 : _param_intPartPrecision, onChange = _param.onChange, onBlur = _param.onBlur, min2 = _param.min, max2 = _param.max, props = _object_without_properties$8(_param, [
|
|
13078
12940
|
"value",
|
|
13079
12941
|
"canBeFloat",
|
|
13080
12942
|
"canBeNegative",
|
|
@@ -13099,7 +12961,7 @@ var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13099
12961
|
var handleChange = function() {
|
|
13100
12962
|
var _ref = _async_to_generator$3(function(inputValue, event) {
|
|
13101
12963
|
var oldValue, target, _target_selectionStart, defaultCaretPos, numString, numberRegexp, hasDot, formattedValue, newValue;
|
|
13102
|
-
return
|
|
12964
|
+
return _ts_generator$3(this, function(_state) {
|
|
13103
12965
|
switch (_state.label) {
|
|
13104
12966
|
case 0:
|
|
13105
12967
|
oldValue = showedValue;
|
|
@@ -13177,7 +13039,7 @@ var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13177
13039
|
}, [
|
|
13178
13040
|
value
|
|
13179
13041
|
]);
|
|
13180
|
-
return /* @__PURE__ */ jsx(Input, _object_spread$
|
|
13042
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$B({
|
|
13181
13043
|
value: showedValue,
|
|
13182
13044
|
onChange: handleChange,
|
|
13183
13045
|
onBlur: handleBlur,
|
|
@@ -13455,7 +13317,7 @@ function cloneDeep(value) {
|
|
|
13455
13317
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
13456
13318
|
}
|
|
13457
13319
|
var FILTER_HEIGHT = 36;
|
|
13458
|
-
var useStyles$
|
|
13320
|
+
var useStyles$y = createThemedStyles("FiltersPane", {
|
|
13459
13321
|
root: {
|
|
13460
13322
|
display: "flex",
|
|
13461
13323
|
flexWrap: "wrap",
|
|
@@ -13520,7 +13382,7 @@ var innerTextButtonStyles = {
|
|
|
13520
13382
|
}
|
|
13521
13383
|
}
|
|
13522
13384
|
};
|
|
13523
|
-
var useStyles$
|
|
13385
|
+
var useStyles$x = createThemedStyles("FilterInterval", {
|
|
13524
13386
|
root: {
|
|
13525
13387
|
padding: 8,
|
|
13526
13388
|
background: colors.CLASSIC_WHITE
|
|
@@ -13563,7 +13425,7 @@ var inputStyles$3 = {
|
|
|
13563
13425
|
}
|
|
13564
13426
|
};
|
|
13565
13427
|
var clearButtonStyles$3 = cloneDeep(innerTextButtonStyles);
|
|
13566
|
-
function _define_property$
|
|
13428
|
+
function _define_property$B(obj, key, value) {
|
|
13567
13429
|
if (key in obj) {
|
|
13568
13430
|
Object.defineProperty(obj, key, {
|
|
13569
13431
|
value,
|
|
@@ -13576,7 +13438,7 @@ function _define_property$A(obj, key, value) {
|
|
|
13576
13438
|
}
|
|
13577
13439
|
return obj;
|
|
13578
13440
|
}
|
|
13579
|
-
function _object_spread$
|
|
13441
|
+
function _object_spread$A(target) {
|
|
13580
13442
|
for (var i = 1; i < arguments.length; i++) {
|
|
13581
13443
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13582
13444
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13586,12 +13448,12 @@ function _object_spread$z(target) {
|
|
|
13586
13448
|
}));
|
|
13587
13449
|
}
|
|
13588
13450
|
ownKeys2.forEach(function(key) {
|
|
13589
|
-
_define_property$
|
|
13451
|
+
_define_property$B(target, key, source[key]);
|
|
13590
13452
|
});
|
|
13591
13453
|
}
|
|
13592
13454
|
return target;
|
|
13593
13455
|
}
|
|
13594
|
-
function ownKeys$
|
|
13456
|
+
function ownKeys$w(object, enumerableOnly) {
|
|
13595
13457
|
var keys2 = Object.keys(object);
|
|
13596
13458
|
if (Object.getOwnPropertySymbols) {
|
|
13597
13459
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13604,12 +13466,12 @@ function ownKeys$v(object, enumerableOnly) {
|
|
|
13604
13466
|
}
|
|
13605
13467
|
return keys2;
|
|
13606
13468
|
}
|
|
13607
|
-
function _object_spread_props$
|
|
13469
|
+
function _object_spread_props$w(target, source) {
|
|
13608
13470
|
source = source != null ? source : {};
|
|
13609
13471
|
if (Object.getOwnPropertyDescriptors) {
|
|
13610
13472
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13611
13473
|
} else {
|
|
13612
|
-
ownKeys$
|
|
13474
|
+
ownKeys$w(Object(source)).forEach(function(key) {
|
|
13613
13475
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13614
13476
|
});
|
|
13615
13477
|
}
|
|
@@ -13617,7 +13479,7 @@ function _object_spread_props$v(target, source) {
|
|
|
13617
13479
|
}
|
|
13618
13480
|
var FilterInterval = function(param) {
|
|
13619
13481
|
var data = param.data, tweakStyles = param.tweakStyles, value = param.value, labelName = param.labelName, withFieldNameInLabel = param.withFieldNameInLabel, localeKey = param.localeKey, locale2 = param.locale, canBeFloat = param.canBeFloat, onChange = param.onChange, fromInput = param.fromInput, toInput = param.toInput, testId = param.testId;
|
|
13620
|
-
var classes = useStyles$
|
|
13482
|
+
var classes = useStyles$x({
|
|
13621
13483
|
theme: tweakStyles
|
|
13622
13484
|
});
|
|
13623
13485
|
var translates = useMemo(function() {
|
|
@@ -13661,7 +13523,7 @@ var FilterInterval = function(param) {
|
|
|
13661
13523
|
className: "tweakClearButton",
|
|
13662
13524
|
currentComponentName: "FilterInterval"
|
|
13663
13525
|
});
|
|
13664
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
13526
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$w(_object_spread$A({
|
|
13665
13527
|
className: classes.root
|
|
13666
13528
|
}, addDataAttributes(data)), {
|
|
13667
13529
|
children: [
|
|
@@ -13758,7 +13620,7 @@ var getLocale = function() {
|
|
|
13758
13620
|
var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_LOCALE, custom = arguments.length > 1 ? arguments[1] : void 0, custom2 = arguments.length > 2 ? arguments[2] : void 0;
|
|
13759
13621
|
return merge$1({}, MultiSelectLocales[key], custom, custom2);
|
|
13760
13622
|
};
|
|
13761
|
-
function _define_property$
|
|
13623
|
+
function _define_property$A(obj, key, value) {
|
|
13762
13624
|
if (key in obj) {
|
|
13763
13625
|
Object.defineProperty(obj, key, {
|
|
13764
13626
|
value,
|
|
@@ -13771,7 +13633,7 @@ function _define_property$z(obj, key, value) {
|
|
|
13771
13633
|
}
|
|
13772
13634
|
return obj;
|
|
13773
13635
|
}
|
|
13774
|
-
function _object_spread$
|
|
13636
|
+
function _object_spread$z(target) {
|
|
13775
13637
|
for (var i = 1; i < arguments.length; i++) {
|
|
13776
13638
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13777
13639
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13781,19 +13643,19 @@ function _object_spread$y(target) {
|
|
|
13781
13643
|
}));
|
|
13782
13644
|
}
|
|
13783
13645
|
ownKeys2.forEach(function(key) {
|
|
13784
|
-
_define_property$
|
|
13646
|
+
_define_property$A(target, key, source[key]);
|
|
13785
13647
|
});
|
|
13786
13648
|
}
|
|
13787
13649
|
return target;
|
|
13788
13650
|
}
|
|
13789
13651
|
var ITEM_HEIGHT$1 = 40;
|
|
13790
13652
|
var TOP_GAP = 12;
|
|
13791
|
-
var useStyles$
|
|
13653
|
+
var useStyles$w = createThemedStyles("MultiSelectList", {
|
|
13792
13654
|
root: {
|
|
13793
13655
|
width: 220,
|
|
13794
13656
|
background: colors.CLASSIC_WHITE
|
|
13795
13657
|
},
|
|
13796
|
-
list: _object_spread$
|
|
13658
|
+
list: _object_spread$z({
|
|
13797
13659
|
paddingTop: TOP_GAP,
|
|
13798
13660
|
maxHeight: ITEM_HEIGHT$1 * 5 + TOP_GAP,
|
|
13799
13661
|
overscrollBehavior: "contain"
|
|
@@ -13950,7 +13812,7 @@ function _async_to_generator$2(fn3) {
|
|
|
13950
13812
|
});
|
|
13951
13813
|
};
|
|
13952
13814
|
}
|
|
13953
|
-
function _define_property$
|
|
13815
|
+
function _define_property$z(obj, key, value) {
|
|
13954
13816
|
if (key in obj) {
|
|
13955
13817
|
Object.defineProperty(obj, key, {
|
|
13956
13818
|
value,
|
|
@@ -14001,7 +13863,7 @@ function _non_iterable_rest$h() {
|
|
|
14001
13863
|
function _non_iterable_spread$5() {
|
|
14002
13864
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14003
13865
|
}
|
|
14004
|
-
function _object_spread$
|
|
13866
|
+
function _object_spread$y(target) {
|
|
14005
13867
|
for (var i = 1; i < arguments.length; i++) {
|
|
14006
13868
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14007
13869
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14011,12 +13873,12 @@ function _object_spread$x(target) {
|
|
|
14011
13873
|
}));
|
|
14012
13874
|
}
|
|
14013
13875
|
ownKeys2.forEach(function(key) {
|
|
14014
|
-
_define_property$
|
|
13876
|
+
_define_property$z(target, key, source[key]);
|
|
14015
13877
|
});
|
|
14016
13878
|
}
|
|
14017
13879
|
return target;
|
|
14018
13880
|
}
|
|
14019
|
-
function ownKeys$
|
|
13881
|
+
function ownKeys$v(object, enumerableOnly) {
|
|
14020
13882
|
var keys2 = Object.keys(object);
|
|
14021
13883
|
if (Object.getOwnPropertySymbols) {
|
|
14022
13884
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14029,12 +13891,12 @@ function ownKeys$u(object, enumerableOnly) {
|
|
|
14029
13891
|
}
|
|
14030
13892
|
return keys2;
|
|
14031
13893
|
}
|
|
14032
|
-
function _object_spread_props$
|
|
13894
|
+
function _object_spread_props$v(target, source) {
|
|
14033
13895
|
source = source != null ? source : {};
|
|
14034
13896
|
if (Object.getOwnPropertyDescriptors) {
|
|
14035
13897
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14036
13898
|
} else {
|
|
14037
|
-
ownKeys$
|
|
13899
|
+
ownKeys$v(Object(source)).forEach(function(key) {
|
|
14038
13900
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14039
13901
|
});
|
|
14040
13902
|
}
|
|
@@ -14059,7 +13921,7 @@ function _unsupported_iterable_to_array$h(o, minLen) {
|
|
|
14059
13921
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
14060
13922
|
return _array_like_to_array$h(o, minLen);
|
|
14061
13923
|
}
|
|
14062
|
-
|
|
13924
|
+
function _ts_generator$2(thisArg, body) {
|
|
14063
13925
|
var f, y, t, g, _ = {
|
|
14064
13926
|
label: 0,
|
|
14065
13927
|
sent: function() {
|
|
@@ -14160,25 +14022,11 @@ var __generator$2 = globalThis && globalThis.__generator || function(thisArg, bo
|
|
|
14160
14022
|
done: true
|
|
14161
14023
|
};
|
|
14162
14024
|
}
|
|
14163
|
-
}
|
|
14025
|
+
}
|
|
14164
14026
|
function MultiSelectList(param) {
|
|
14165
14027
|
var value = param.value, tweakStyles = param.tweakStyles, data = param.data, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_localeKey = param.localeKey, localeKey = _param_localeKey === void 0 ? DEFAULT_LOCALE : _param_localeKey, _param_locale = param.locale, locale2 = _param_locale === void 0 ? MultiSelectLocales[localeKey] : _param_locale, onChange = param.onChange, onClose = param.onClose, options = param.options, fetchOptions = param.fetchOptions, _param_isGroupingEnabled = param.isGroupingEnabled, isGroupingEnabled = _param_isGroupingEnabled === void 0 ? isSearchEnabled : _param_isGroupingEnabled, _param_getValueView = param.getValueView, getValueView = _param_getValueView === void 0 ? defaultConvertFunction : _param_getValueView, _param_getValueId = param.getValueId, getValueId = _param_getValueId === void 0 ? defaultConvertFunction : _param_getValueId, _param_getValueString = param.getValueString, getValueString = _param_getValueString === void 0 ? defaultConvertFunction : _param_getValueString, _param_checkboxPosition = param.checkboxPosition, checkboxPosition = _param_checkboxPosition === void 0 ? "left" : _param_checkboxPosition, pageSize = param.pageSize, searchMaxLength = param.searchMaxLength, testId = param.testId;
|
|
14166
|
-
var handleOnChange = function handleOnChange2(inputValue) {
|
|
14167
|
-
setSearchValue(inputValue);
|
|
14168
|
-
if (fetchOptions === void 0) {
|
|
14169
|
-
if (options !== void 0) {
|
|
14170
|
-
var lowerSearchValue = inputValue.toLowerCase();
|
|
14171
|
-
setAllOptions(options.filter(function(o) {
|
|
14172
|
-
return getValueString(o).toLowerCase().includes(lowerSearchValue);
|
|
14173
|
-
}));
|
|
14174
|
-
}
|
|
14175
|
-
} else {
|
|
14176
|
-
setIsLoading(true);
|
|
14177
|
-
changeSearchValue(inputValue);
|
|
14178
|
-
}
|
|
14179
|
-
};
|
|
14180
14028
|
var isMounted = useIsMounted();
|
|
14181
|
-
var classes = useStyles$
|
|
14029
|
+
var classes = useStyles$w({
|
|
14182
14030
|
theme: tweakStyles
|
|
14183
14031
|
});
|
|
14184
14032
|
var tweakCheckboxStyles = useTweakStyles({
|
|
@@ -14232,7 +14080,7 @@ function MultiSelectList(param) {
|
|
|
14232
14080
|
var handleSearchInputChange = useCallback(function() {
|
|
14233
14081
|
var _ref = _async_to_generator$2(function(inputValue) {
|
|
14234
14082
|
var _inputValue_trim, response;
|
|
14235
|
-
return
|
|
14083
|
+
return _ts_generator$2(this, function(_state) {
|
|
14236
14084
|
switch (_state.label) {
|
|
14237
14085
|
case 0:
|
|
14238
14086
|
if (fetchOptions === void 0) {
|
|
@@ -14288,6 +14136,20 @@ function MultiSelectList(param) {
|
|
|
14288
14136
|
var changeSearchValue = useCallback(debounce$1(handleSearchInputChange), [
|
|
14289
14137
|
handleSearchInputChange
|
|
14290
14138
|
]);
|
|
14139
|
+
function handleOnChange(inputValue) {
|
|
14140
|
+
setSearchValue(inputValue);
|
|
14141
|
+
if (fetchOptions === void 0) {
|
|
14142
|
+
if (options !== void 0) {
|
|
14143
|
+
var lowerSearchValue = inputValue.toLowerCase();
|
|
14144
|
+
setAllOptions(options.filter(function(o) {
|
|
14145
|
+
return getValueString(o).toLowerCase().includes(lowerSearchValue);
|
|
14146
|
+
}));
|
|
14147
|
+
}
|
|
14148
|
+
} else {
|
|
14149
|
+
setIsLoading(true);
|
|
14150
|
+
changeSearchValue(inputValue);
|
|
14151
|
+
}
|
|
14152
|
+
}
|
|
14291
14153
|
var handleSelectValue = function(val) {
|
|
14292
14154
|
if (val.length === 0) {
|
|
14293
14155
|
onChange(void 0);
|
|
@@ -14333,13 +14195,13 @@ function MultiSelectList(param) {
|
|
|
14333
14195
|
if (value !== void 0) {
|
|
14334
14196
|
if (keyCursorOn < value.include.length) {
|
|
14335
14197
|
var _value_include_filter;
|
|
14336
|
-
onChange(_object_spread_props$
|
|
14198
|
+
onChange(_object_spread_props$v(_object_spread$y({}, value), {
|
|
14337
14199
|
include: (_value_include_filter = value.include.filter(function(val) {
|
|
14338
14200
|
return getValueId(val) !== getValueId(value.include[keyCursorOn]);
|
|
14339
14201
|
})) !== null && _value_include_filter !== void 0 ? _value_include_filter : []
|
|
14340
14202
|
}));
|
|
14341
14203
|
} else {
|
|
14342
|
-
onChange(_object_spread_props$
|
|
14204
|
+
onChange(_object_spread_props$v(_object_spread$y({}, value), {
|
|
14343
14205
|
include: _to_consumable_array$5(value.include).concat([
|
|
14344
14206
|
unchosenOptions[keyCursorOn - value.include.length]
|
|
14345
14207
|
])
|
|
@@ -14362,7 +14224,7 @@ function MultiSelectList(param) {
|
|
|
14362
14224
|
var handleLoadItemsOnScroll = useCallback(function() {
|
|
14363
14225
|
var _ref = _async_to_generator$2(function(inputValue, page) {
|
|
14364
14226
|
var response;
|
|
14365
|
-
return
|
|
14227
|
+
return _ts_generator$2(this, function(_state) {
|
|
14366
14228
|
switch (_state.label) {
|
|
14367
14229
|
case 0:
|
|
14368
14230
|
if (fetchOptions === void 0) {
|
|
@@ -14429,7 +14291,7 @@ function MultiSelectList(param) {
|
|
|
14429
14291
|
}
|
|
14430
14292
|
observer.current = new IntersectionObserver(function() {
|
|
14431
14293
|
var _ref = _async_to_generator$2(function(entries) {
|
|
14432
|
-
return
|
|
14294
|
+
return _ts_generator$2(this, function(_state) {
|
|
14433
14295
|
switch (_state.label) {
|
|
14434
14296
|
case 0:
|
|
14435
14297
|
if (!entries[0].isIntersecting)
|
|
@@ -14478,7 +14340,7 @@ function MultiSelectList(param) {
|
|
|
14478
14340
|
var doFetchOptions = function() {
|
|
14479
14341
|
var _ref = _async_to_generator$2(function() {
|
|
14480
14342
|
var response;
|
|
14481
|
-
return
|
|
14343
|
+
return _ts_generator$2(this, function(_state) {
|
|
14482
14344
|
switch (_state.label) {
|
|
14483
14345
|
case 0:
|
|
14484
14346
|
setIsLoading(true);
|
|
@@ -14538,7 +14400,7 @@ function MultiSelectList(param) {
|
|
|
14538
14400
|
var shouldShowAllOptionsLabel = isGroupingEnabled && unchosenOptions.length > 0 && chosenValues !== void 0 && chosenValues.length > 0;
|
|
14539
14401
|
var shouldShowPreloader = isLoading || isLoadingOptionsOnScroll;
|
|
14540
14402
|
var shouldShowOptionsList = !isLoading && allOptions.length !== 0;
|
|
14541
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14403
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$v(_object_spread$y({
|
|
14542
14404
|
className: classes.root
|
|
14543
14405
|
}, addDataAttributes(data)), {
|
|
14544
14406
|
children: [
|
|
@@ -14642,7 +14504,7 @@ function MultiSelectList(param) {
|
|
|
14642
14504
|
]
|
|
14643
14505
|
}));
|
|
14644
14506
|
}
|
|
14645
|
-
function _define_property$
|
|
14507
|
+
function _define_property$y(obj, key, value) {
|
|
14646
14508
|
if (key in obj) {
|
|
14647
14509
|
Object.defineProperty(obj, key, {
|
|
14648
14510
|
value,
|
|
@@ -14655,7 +14517,7 @@ function _define_property$x(obj, key, value) {
|
|
|
14655
14517
|
}
|
|
14656
14518
|
return obj;
|
|
14657
14519
|
}
|
|
14658
|
-
function _object_spread$
|
|
14520
|
+
function _object_spread$x(target) {
|
|
14659
14521
|
for (var i = 1; i < arguments.length; i++) {
|
|
14660
14522
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14661
14523
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14665,15 +14527,15 @@ function _object_spread$w(target) {
|
|
|
14665
14527
|
}));
|
|
14666
14528
|
}
|
|
14667
14529
|
ownKeys2.forEach(function(key) {
|
|
14668
|
-
_define_property$
|
|
14530
|
+
_define_property$y(target, key, source[key]);
|
|
14669
14531
|
});
|
|
14670
14532
|
}
|
|
14671
14533
|
return target;
|
|
14672
14534
|
}
|
|
14673
14535
|
function FilterMultiSelect(props) {
|
|
14674
|
-
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$
|
|
14536
|
+
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$x({}, props));
|
|
14675
14537
|
}
|
|
14676
|
-
function _define_property$
|
|
14538
|
+
function _define_property$x(obj, key, value) {
|
|
14677
14539
|
if (key in obj) {
|
|
14678
14540
|
Object.defineProperty(obj, key, {
|
|
14679
14541
|
value,
|
|
@@ -14686,7 +14548,7 @@ function _define_property$w(obj, key, value) {
|
|
|
14686
14548
|
}
|
|
14687
14549
|
return obj;
|
|
14688
14550
|
}
|
|
14689
|
-
function _object_spread$
|
|
14551
|
+
function _object_spread$w(target) {
|
|
14690
14552
|
for (var i = 1; i < arguments.length; i++) {
|
|
14691
14553
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14692
14554
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14696,19 +14558,19 @@ function _object_spread$v(target) {
|
|
|
14696
14558
|
}));
|
|
14697
14559
|
}
|
|
14698
14560
|
ownKeys2.forEach(function(key) {
|
|
14699
|
-
_define_property$
|
|
14561
|
+
_define_property$x(target, key, source[key]);
|
|
14700
14562
|
});
|
|
14701
14563
|
}
|
|
14702
14564
|
return target;
|
|
14703
14565
|
}
|
|
14704
14566
|
var ITEM_HEIGHT = 40;
|
|
14705
14567
|
var LIST_GAP = 12;
|
|
14706
|
-
var useStyles$
|
|
14568
|
+
var useStyles$v = createThemedStyles("FilterSelect", {
|
|
14707
14569
|
root: {
|
|
14708
14570
|
width: 220,
|
|
14709
14571
|
background: colors.CLASSIC_WHITE
|
|
14710
14572
|
},
|
|
14711
|
-
list: _object_spread$
|
|
14573
|
+
list: _object_spread$w({
|
|
14712
14574
|
paddingTop: LIST_GAP,
|
|
14713
14575
|
padding: [
|
|
14714
14576
|
LIST_GAP,
|
|
@@ -14880,7 +14742,7 @@ function _async_to_generator$1(fn3) {
|
|
|
14880
14742
|
});
|
|
14881
14743
|
};
|
|
14882
14744
|
}
|
|
14883
|
-
function _define_property$
|
|
14745
|
+
function _define_property$w(obj, key, value) {
|
|
14884
14746
|
if (key in obj) {
|
|
14885
14747
|
Object.defineProperty(obj, key, {
|
|
14886
14748
|
value,
|
|
@@ -14931,7 +14793,7 @@ function _non_iterable_rest$g() {
|
|
|
14931
14793
|
function _non_iterable_spread$4() {
|
|
14932
14794
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14933
14795
|
}
|
|
14934
|
-
function _object_spread$
|
|
14796
|
+
function _object_spread$v(target) {
|
|
14935
14797
|
for (var i = 1; i < arguments.length; i++) {
|
|
14936
14798
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14937
14799
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14941,12 +14803,12 @@ function _object_spread$u(target) {
|
|
|
14941
14803
|
}));
|
|
14942
14804
|
}
|
|
14943
14805
|
ownKeys2.forEach(function(key) {
|
|
14944
|
-
_define_property$
|
|
14806
|
+
_define_property$w(target, key, source[key]);
|
|
14945
14807
|
});
|
|
14946
14808
|
}
|
|
14947
14809
|
return target;
|
|
14948
14810
|
}
|
|
14949
|
-
function ownKeys$
|
|
14811
|
+
function ownKeys$u(object, enumerableOnly) {
|
|
14950
14812
|
var keys2 = Object.keys(object);
|
|
14951
14813
|
if (Object.getOwnPropertySymbols) {
|
|
14952
14814
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14959,12 +14821,12 @@ function ownKeys$t(object, enumerableOnly) {
|
|
|
14959
14821
|
}
|
|
14960
14822
|
return keys2;
|
|
14961
14823
|
}
|
|
14962
|
-
function _object_spread_props$
|
|
14824
|
+
function _object_spread_props$u(target, source) {
|
|
14963
14825
|
source = source != null ? source : {};
|
|
14964
14826
|
if (Object.getOwnPropertyDescriptors) {
|
|
14965
14827
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14966
14828
|
} else {
|
|
14967
|
-
ownKeys$
|
|
14829
|
+
ownKeys$u(Object(source)).forEach(function(key) {
|
|
14968
14830
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14969
14831
|
});
|
|
14970
14832
|
}
|
|
@@ -14989,7 +14851,7 @@ function _unsupported_iterable_to_array$g(o, minLen) {
|
|
|
14989
14851
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
14990
14852
|
return _array_like_to_array$g(o, minLen);
|
|
14991
14853
|
}
|
|
14992
|
-
|
|
14854
|
+
function _ts_generator$1(thisArg, body) {
|
|
14993
14855
|
var f, y, t, g, _ = {
|
|
14994
14856
|
label: 0,
|
|
14995
14857
|
sent: function() {
|
|
@@ -15090,10 +14952,10 @@ var __generator$1 = globalThis && globalThis.__generator || function(thisArg, bo
|
|
|
15090
14952
|
done: true
|
|
15091
14953
|
};
|
|
15092
14954
|
}
|
|
15093
|
-
}
|
|
14955
|
+
}
|
|
15094
14956
|
function FilterSelect(param) {
|
|
15095
14957
|
var data = param.data, tweakStyles = param.tweakStyles, value = param.value, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_isGroupingEnabled = param.isGroupingEnabled, isGroupingEnabled = _param_isGroupingEnabled === void 0 ? false : _param_isGroupingEnabled, localeKey = param.localeKey, locale2 = param.locale, onChange = param.onChange, options = param.options, fetchOptions = param.fetchOptions, footer = param.footer, _param_getValueView = param.getValueView, getValueView = _param_getValueView === void 0 ? defaultConvertFunction$1 : _param_getValueView, _param_getValueId = param.getValueId, getValueId = _param_getValueId === void 0 ? defaultConvertFunction$1 : _param_getValueId, _param_getValueString = param.getValueString, getValueString = _param_getValueString === void 0 ? defaultConvertFunction$1 : _param_getValueString, _param_hasClearButton = param.hasClearButton, hasClearButton = _param_hasClearButton === void 0 ? true : _param_hasClearButton, testId = param.testId;
|
|
15096
|
-
var classes = useStyles$
|
|
14958
|
+
var classes = useStyles$v({
|
|
15097
14959
|
theme: tweakStyles
|
|
15098
14960
|
});
|
|
15099
14961
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -15127,7 +14989,7 @@ function FilterSelect(param) {
|
|
|
15127
14989
|
var handleSearchInputChange = useCallback(function() {
|
|
15128
14990
|
var _ref = _async_to_generator$1(function(inputValue) {
|
|
15129
14991
|
var _inputValue_trim, response;
|
|
15130
|
-
return
|
|
14992
|
+
return _ts_generator$1(this, function(_state) {
|
|
15131
14993
|
switch (_state.label) {
|
|
15132
14994
|
case 0:
|
|
15133
14995
|
if (fetchOptions === void 0) {
|
|
@@ -15207,7 +15069,7 @@ function FilterSelect(param) {
|
|
|
15207
15069
|
var handleLoadItemsOnScroll = useCallback(function() {
|
|
15208
15070
|
var _ref = _async_to_generator$1(function(inputValue, page) {
|
|
15209
15071
|
var _inputValue_trim, response;
|
|
15210
|
-
return
|
|
15072
|
+
return _ts_generator$1(this, function(_state) {
|
|
15211
15073
|
switch (_state.label) {
|
|
15212
15074
|
case 0:
|
|
15213
15075
|
if (fetchOptions === void 0) {
|
|
@@ -15272,7 +15134,7 @@ function FilterSelect(param) {
|
|
|
15272
15134
|
}
|
|
15273
15135
|
observer.current = new IntersectionObserver(function() {
|
|
15274
15136
|
var _ref = _async_to_generator$1(function(entries) {
|
|
15275
|
-
return
|
|
15137
|
+
return _ts_generator$1(this, function(_state) {
|
|
15276
15138
|
switch (_state.label) {
|
|
15277
15139
|
case 0:
|
|
15278
15140
|
if (!entries[0].isIntersecting)
|
|
@@ -15321,7 +15183,7 @@ function FilterSelect(param) {
|
|
|
15321
15183
|
var doFetchOptions = function() {
|
|
15322
15184
|
var _ref = _async_to_generator$1(function() {
|
|
15323
15185
|
var response;
|
|
15324
|
-
return
|
|
15186
|
+
return _ts_generator$1(this, function(_state) {
|
|
15325
15187
|
switch (_state.label) {
|
|
15326
15188
|
case 0:
|
|
15327
15189
|
setIsLoading(true);
|
|
@@ -15364,7 +15226,7 @@ function FilterSelect(param) {
|
|
|
15364
15226
|
}();
|
|
15365
15227
|
doFetchOptions();
|
|
15366
15228
|
}, []);
|
|
15367
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
15229
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$u(_object_spread$v({
|
|
15368
15230
|
className: classes.root
|
|
15369
15231
|
}, addDataAttributes(data)), {
|
|
15370
15232
|
children: [
|
|
@@ -15464,7 +15326,7 @@ function FilterSelect(param) {
|
|
|
15464
15326
|
children: translates.nothingFound
|
|
15465
15327
|
}),
|
|
15466
15328
|
(hasClearButton || hasFooter) && /* @__PURE__ */ jsxs("div", {
|
|
15467
|
-
className: clsx(classes.panel, _define_property$
|
|
15329
|
+
className: clsx(classes.panel, _define_property$w({}, classes.panelWithFooter, hasFooter)),
|
|
15468
15330
|
children: [
|
|
15469
15331
|
hasFooter && /* @__PURE__ */ jsx("div", {
|
|
15470
15332
|
className: classes.footer,
|
|
@@ -16577,7 +16439,7 @@ var locale = {
|
|
|
16577
16439
|
}
|
|
16578
16440
|
};
|
|
16579
16441
|
const ru = locale;
|
|
16580
|
-
var useStyles$
|
|
16442
|
+
var useStyles$u = createThemedStyles("FilterWithDates", {
|
|
16581
16443
|
root: {
|
|
16582
16444
|
background: colors.CLASSIC_WHITE,
|
|
16583
16445
|
position: "relative",
|
|
@@ -16644,7 +16506,7 @@ function _array_with_holes$f(arr) {
|
|
|
16644
16506
|
if (Array.isArray(arr))
|
|
16645
16507
|
return arr;
|
|
16646
16508
|
}
|
|
16647
|
-
function _define_property$
|
|
16509
|
+
function _define_property$v(obj, key, value) {
|
|
16648
16510
|
if (key in obj) {
|
|
16649
16511
|
Object.defineProperty(obj, key, {
|
|
16650
16512
|
value,
|
|
@@ -16688,7 +16550,7 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
16688
16550
|
function _non_iterable_rest$f() {
|
|
16689
16551
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16690
16552
|
}
|
|
16691
|
-
function _object_spread$
|
|
16553
|
+
function _object_spread$u(target) {
|
|
16692
16554
|
for (var i = 1; i < arguments.length; i++) {
|
|
16693
16555
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16694
16556
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16698,12 +16560,12 @@ function _object_spread$t(target) {
|
|
|
16698
16560
|
}));
|
|
16699
16561
|
}
|
|
16700
16562
|
ownKeys2.forEach(function(key) {
|
|
16701
|
-
_define_property$
|
|
16563
|
+
_define_property$v(target, key, source[key]);
|
|
16702
16564
|
});
|
|
16703
16565
|
}
|
|
16704
16566
|
return target;
|
|
16705
16567
|
}
|
|
16706
|
-
function ownKeys$
|
|
16568
|
+
function ownKeys$t(object, enumerableOnly) {
|
|
16707
16569
|
var keys2 = Object.keys(object);
|
|
16708
16570
|
if (Object.getOwnPropertySymbols) {
|
|
16709
16571
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -16716,12 +16578,12 @@ function ownKeys$s(object, enumerableOnly) {
|
|
|
16716
16578
|
}
|
|
16717
16579
|
return keys2;
|
|
16718
16580
|
}
|
|
16719
|
-
function _object_spread_props$
|
|
16581
|
+
function _object_spread_props$t(target, source) {
|
|
16720
16582
|
source = source != null ? source : {};
|
|
16721
16583
|
if (Object.getOwnPropertyDescriptors) {
|
|
16722
16584
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
16723
16585
|
} else {
|
|
16724
|
-
ownKeys$
|
|
16586
|
+
ownKeys$t(Object(source)).forEach(function(key) {
|
|
16725
16587
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
16726
16588
|
});
|
|
16727
16589
|
}
|
|
@@ -16745,7 +16607,7 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
16745
16607
|
}
|
|
16746
16608
|
var FilterWithDates = function(param) {
|
|
16747
16609
|
var value = param.value, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, onStartBtnSubmit = param.onStartBtnSubmit, onEndBtnSubmit = param.onEndBtnSubmit, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId, _param_startPickerProps = param.startPickerProps, startPickerProps = _param_startPickerProps === void 0 ? DEFAULT_PICKER_PROPS : _param_startPickerProps, _param_endPickerProps = param.endPickerProps, endPickerProps = _param_endPickerProps === void 0 ? DEFAULT_PICKER_PROPS : _param_endPickerProps, _param_isClearable = param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable;
|
|
16748
|
-
var classes = useStyles$
|
|
16610
|
+
var classes = useStyles$u({
|
|
16749
16611
|
theme: tweakStyles
|
|
16750
16612
|
});
|
|
16751
16613
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -16832,7 +16694,7 @@ var FilterWithDates = function(param) {
|
|
|
16832
16694
|
}
|
|
16833
16695
|
};
|
|
16834
16696
|
var _ref;
|
|
16835
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
16697
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$t(_object_spread$u({
|
|
16836
16698
|
className: classes.root
|
|
16837
16699
|
}, addDataAttributes(data)), {
|
|
16838
16700
|
children: [
|
|
@@ -16841,7 +16703,7 @@ var FilterWithDates = function(param) {
|
|
|
16841
16703
|
children: [
|
|
16842
16704
|
/* @__PURE__ */ jsx("div", {
|
|
16843
16705
|
className: classes.containerItem,
|
|
16844
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
16706
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$u({
|
|
16845
16707
|
selectedDate: value === null || value === void 0 ? void 0 : value.from,
|
|
16846
16708
|
maxDate: value === null || value === void 0 ? void 0 : value.to,
|
|
16847
16709
|
label: translates.from,
|
|
@@ -16856,7 +16718,7 @@ var FilterWithDates = function(param) {
|
|
|
16856
16718
|
}),
|
|
16857
16719
|
/* @__PURE__ */ jsx("div", {
|
|
16858
16720
|
className: classes.containerItem,
|
|
16859
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
16721
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$u({
|
|
16860
16722
|
selectedDate: value === null || value === void 0 ? void 0 : value.to,
|
|
16861
16723
|
label: translates.to,
|
|
16862
16724
|
months: translates.months,
|
|
@@ -16912,7 +16774,7 @@ var FilterWithDates = function(param) {
|
|
|
16912
16774
|
]
|
|
16913
16775
|
}));
|
|
16914
16776
|
};
|
|
16915
|
-
var useStyles$
|
|
16777
|
+
var useStyles$t = createThemedStyles("FilterWithPeriod", {
|
|
16916
16778
|
root: {},
|
|
16917
16779
|
main: {},
|
|
16918
16780
|
picker: {}
|
|
@@ -16937,7 +16799,7 @@ function _array_without_holes$3(arr) {
|
|
|
16937
16799
|
if (Array.isArray(arr))
|
|
16938
16800
|
return _array_like_to_array$e(arr);
|
|
16939
16801
|
}
|
|
16940
|
-
function _define_property$
|
|
16802
|
+
function _define_property$u(obj, key, value) {
|
|
16941
16803
|
if (key in obj) {
|
|
16942
16804
|
Object.defineProperty(obj, key, {
|
|
16943
16805
|
value,
|
|
@@ -16988,7 +16850,7 @@ function _non_iterable_rest$e() {
|
|
|
16988
16850
|
function _non_iterable_spread$3() {
|
|
16989
16851
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16990
16852
|
}
|
|
16991
|
-
function _object_spread$
|
|
16853
|
+
function _object_spread$t(target) {
|
|
16992
16854
|
for (var i = 1; i < arguments.length; i++) {
|
|
16993
16855
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16994
16856
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16998,12 +16860,12 @@ function _object_spread$s(target) {
|
|
|
16998
16860
|
}));
|
|
16999
16861
|
}
|
|
17000
16862
|
ownKeys2.forEach(function(key) {
|
|
17001
|
-
_define_property$
|
|
16863
|
+
_define_property$u(target, key, source[key]);
|
|
17002
16864
|
});
|
|
17003
16865
|
}
|
|
17004
16866
|
return target;
|
|
17005
16867
|
}
|
|
17006
|
-
function ownKeys$
|
|
16868
|
+
function ownKeys$s(object, enumerableOnly) {
|
|
17007
16869
|
var keys2 = Object.keys(object);
|
|
17008
16870
|
if (Object.getOwnPropertySymbols) {
|
|
17009
16871
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17016,12 +16878,12 @@ function ownKeys$r(object, enumerableOnly) {
|
|
|
17016
16878
|
}
|
|
17017
16879
|
return keys2;
|
|
17018
16880
|
}
|
|
17019
|
-
function _object_spread_props$
|
|
16881
|
+
function _object_spread_props$s(target, source) {
|
|
17020
16882
|
source = source != null ? source : {};
|
|
17021
16883
|
if (Object.getOwnPropertyDescriptors) {
|
|
17022
16884
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17023
16885
|
} else {
|
|
17024
|
-
ownKeys$
|
|
16886
|
+
ownKeys$s(Object(source)).forEach(function(key) {
|
|
17025
16887
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17026
16888
|
});
|
|
17027
16889
|
}
|
|
@@ -17048,7 +16910,7 @@ function _unsupported_iterable_to_array$e(o, minLen) {
|
|
|
17048
16910
|
}
|
|
17049
16911
|
var FilterWithPeriod = function(param) {
|
|
17050
16912
|
var value = param.value, localeKey = param.localeKey, locale2 = param.locale, onChange = param.onChange, onClose = param.onClose, periods = param.periods, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
17051
|
-
var classes = useStyles$
|
|
16913
|
+
var classes = useStyles$t({
|
|
17052
16914
|
theme: tweakStyles
|
|
17053
16915
|
});
|
|
17054
16916
|
var translates = useMemo(function() {
|
|
@@ -17061,7 +16923,7 @@ var FilterWithPeriod = function(param) {
|
|
|
17061
16923
|
var _useState1 = _sliced_to_array$e(useState((value === null || value === void 0 ? void 0 : value.periodType) === "CUSTOM"), 2), isDatePickerShown = _useState1[0], setIsDatePickerShown = _useState1[1];
|
|
17062
16924
|
var _useState2 = _sliced_to_array$e(useState(value), 2), period = _useState2[0], setPeriod = _useState2[1];
|
|
17063
16925
|
var periodGetters = useMemo(function() {
|
|
17064
|
-
var result = _object_spread$
|
|
16926
|
+
var result = _object_spread$t({}, PERIODS_GETTERS);
|
|
17065
16927
|
periods === null || periods === void 0 ? void 0 : periods.forEach(function(p) {
|
|
17066
16928
|
if (Array.isArray(p)) {
|
|
17067
16929
|
result[p[0]] = p[1];
|
|
@@ -17081,8 +16943,8 @@ var FilterWithPeriod = function(param) {
|
|
|
17081
16943
|
}, [
|
|
17082
16944
|
periods
|
|
17083
16945
|
]);
|
|
17084
|
-
var _translates_periods_val;
|
|
17085
16946
|
var getPeriodTranslate = useCallback(function(val) {
|
|
16947
|
+
var _translates_periods_val;
|
|
17086
16948
|
return (_translates_periods_val = translates.periods[val]) !== null && _translates_periods_val !== void 0 ? _translates_periods_val : val;
|
|
17087
16949
|
}, [
|
|
17088
16950
|
translates.periods
|
|
@@ -17107,7 +16969,7 @@ var FilterWithPeriod = function(param) {
|
|
|
17107
16969
|
if (onClose !== void 0) {
|
|
17108
16970
|
onClose();
|
|
17109
16971
|
}
|
|
17110
|
-
onChange(_object_spread_props$
|
|
16972
|
+
onChange(_object_spread_props$s(_object_spread$t({}, p), {
|
|
17111
16973
|
label: getPeriodTranslate(periodType)
|
|
17112
16974
|
}));
|
|
17113
16975
|
}
|
|
@@ -17127,7 +16989,7 @@ var FilterWithPeriod = function(param) {
|
|
|
17127
16989
|
};
|
|
17128
16990
|
var handleCustomDateChange = function(val) {
|
|
17129
16991
|
if (val.from || val.to) {
|
|
17130
|
-
onChange(_object_spread_props$
|
|
16992
|
+
onChange(_object_spread_props$s(_object_spread$t({}, val), {
|
|
17131
16993
|
periodType: "CUSTOM"
|
|
17132
16994
|
}));
|
|
17133
16995
|
} else {
|
|
@@ -17210,7 +17072,7 @@ function _array_with_holes$d(arr) {
|
|
|
17210
17072
|
if (Array.isArray(arr))
|
|
17211
17073
|
return arr;
|
|
17212
17074
|
}
|
|
17213
|
-
function _define_property$
|
|
17075
|
+
function _define_property$t(obj, key, value) {
|
|
17214
17076
|
if (key in obj) {
|
|
17215
17077
|
Object.defineProperty(obj, key, {
|
|
17216
17078
|
value,
|
|
@@ -17254,7 +17116,7 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
17254
17116
|
function _non_iterable_rest$d() {
|
|
17255
17117
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17256
17118
|
}
|
|
17257
|
-
function _object_spread$
|
|
17119
|
+
function _object_spread$s(target) {
|
|
17258
17120
|
for (var i = 1; i < arguments.length; i++) {
|
|
17259
17121
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17260
17122
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17264,12 +17126,12 @@ function _object_spread$r(target) {
|
|
|
17264
17126
|
}));
|
|
17265
17127
|
}
|
|
17266
17128
|
ownKeys2.forEach(function(key) {
|
|
17267
|
-
_define_property$
|
|
17129
|
+
_define_property$t(target, key, source[key]);
|
|
17268
17130
|
});
|
|
17269
17131
|
}
|
|
17270
17132
|
return target;
|
|
17271
17133
|
}
|
|
17272
|
-
function ownKeys$
|
|
17134
|
+
function ownKeys$r(object, enumerableOnly) {
|
|
17273
17135
|
var keys2 = Object.keys(object);
|
|
17274
17136
|
if (Object.getOwnPropertySymbols) {
|
|
17275
17137
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17282,12 +17144,12 @@ function ownKeys$q(object, enumerableOnly) {
|
|
|
17282
17144
|
}
|
|
17283
17145
|
return keys2;
|
|
17284
17146
|
}
|
|
17285
|
-
function _object_spread_props$
|
|
17147
|
+
function _object_spread_props$r(target, source) {
|
|
17286
17148
|
source = source != null ? source : {};
|
|
17287
17149
|
if (Object.getOwnPropertyDescriptors) {
|
|
17288
17150
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17289
17151
|
} else {
|
|
17290
|
-
ownKeys$
|
|
17152
|
+
ownKeys$r(Object(source)).forEach(function(key) {
|
|
17291
17153
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17292
17154
|
});
|
|
17293
17155
|
}
|
|
@@ -17345,7 +17207,7 @@ function Filter(param) {
|
|
|
17345
17207
|
]);
|
|
17346
17208
|
var props = {
|
|
17347
17209
|
ref,
|
|
17348
|
-
className: clsx(classes[dropdownPosition], _define_property$
|
|
17210
|
+
className: clsx(classes[dropdownPosition], _define_property$t({}, classes.dropdown, !isInline))
|
|
17349
17211
|
};
|
|
17350
17212
|
var handleOnClose = function() {
|
|
17351
17213
|
if (onClose !== void 0) {
|
|
@@ -17354,8 +17216,8 @@ function Filter(param) {
|
|
|
17354
17216
|
};
|
|
17355
17217
|
if (filter.type === "custom" && filter.component) {
|
|
17356
17218
|
var Component = filter.component;
|
|
17357
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17358
|
-
children: /* @__PURE__ */ jsx(Component, _object_spread$
|
|
17219
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17220
|
+
children: /* @__PURE__ */ jsx(Component, _object_spread$s({}, {
|
|
17359
17221
|
value,
|
|
17360
17222
|
onChange,
|
|
17361
17223
|
onClose,
|
|
@@ -17369,8 +17231,8 @@ function Filter(param) {
|
|
|
17369
17231
|
console.warn("%cДля фильтра типа custom (".concat(filter.name, ") в конфиге обязательно нужно задать component"), "background: red; color: black");
|
|
17370
17232
|
}
|
|
17371
17233
|
if (filter.type === "select") {
|
|
17372
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17373
|
-
children: /* @__PURE__ */ jsx(FilterSelect, _object_spread$
|
|
17234
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17235
|
+
children: /* @__PURE__ */ jsx(FilterSelect, _object_spread$s({
|
|
17374
17236
|
onChange,
|
|
17375
17237
|
value,
|
|
17376
17238
|
localeKey: translatesLocaleKey,
|
|
@@ -17380,12 +17242,12 @@ function Filter(param) {
|
|
|
17380
17242
|
}));
|
|
17381
17243
|
}
|
|
17382
17244
|
if (filter.type === "dateRange") {
|
|
17383
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17384
|
-
children: /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$
|
|
17245
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17246
|
+
children: /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$s({
|
|
17385
17247
|
localeKey: translatesLocaleKey,
|
|
17386
17248
|
locale: translates,
|
|
17387
17249
|
onChange,
|
|
17388
|
-
value: _object_spread$
|
|
17250
|
+
value: _object_spread$s({}, value),
|
|
17389
17251
|
onClose: handleOnClose,
|
|
17390
17252
|
testId: testId !== void 0 ? "".concat(testId, "-period") : void 0
|
|
17391
17253
|
}, filter))
|
|
@@ -17393,17 +17255,17 @@ function Filter(param) {
|
|
|
17393
17255
|
}
|
|
17394
17256
|
if (filter.type === "dateRangeWithoutPeriod") {
|
|
17395
17257
|
var dateRangeValue = value;
|
|
17396
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17258
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17397
17259
|
style: {
|
|
17398
17260
|
width: 320
|
|
17399
17261
|
},
|
|
17400
|
-
children: /* @__PURE__ */ jsx(FilterWithDates, _object_spread$
|
|
17262
|
+
children: /* @__PURE__ */ jsx(FilterWithDates, _object_spread$s({
|
|
17401
17263
|
value: dateRangeValue,
|
|
17402
17264
|
onEndBtnSubmit: function() {
|
|
17403
17265
|
return onChange(void 0);
|
|
17404
17266
|
},
|
|
17405
17267
|
onChange: function(v) {
|
|
17406
|
-
return onChange(_object_spread_props$
|
|
17268
|
+
return onChange(_object_spread_props$r(_object_spread$s({}, v), {
|
|
17407
17269
|
periodType: "CUSTOM"
|
|
17408
17270
|
}));
|
|
17409
17271
|
},
|
|
@@ -17414,8 +17276,8 @@ function Filter(param) {
|
|
|
17414
17276
|
}));
|
|
17415
17277
|
}
|
|
17416
17278
|
if (filter.type === "multiSelect") {
|
|
17417
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17418
|
-
children: /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$
|
|
17279
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17280
|
+
children: /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$s({
|
|
17419
17281
|
onChange,
|
|
17420
17282
|
onClose: handleOnClose,
|
|
17421
17283
|
value,
|
|
@@ -17426,8 +17288,8 @@ function Filter(param) {
|
|
|
17426
17288
|
}));
|
|
17427
17289
|
}
|
|
17428
17290
|
if (filter.type === "interval") {
|
|
17429
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17430
|
-
children: /* @__PURE__ */ jsx(FilterInterval, _object_spread$
|
|
17291
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17292
|
+
children: /* @__PURE__ */ jsx(FilterInterval, _object_spread$s({
|
|
17431
17293
|
value,
|
|
17432
17294
|
labelName: filter.name,
|
|
17433
17295
|
localeKey: translatesLocaleKey,
|
|
@@ -17440,7 +17302,7 @@ function Filter(param) {
|
|
|
17440
17302
|
console.warn("%cДля фильтра ".concat(filter.name, " не задан тип или component"), "background: red; color: black");
|
|
17441
17303
|
return null;
|
|
17442
17304
|
}
|
|
17443
|
-
var useStyles$
|
|
17305
|
+
var useStyles$s = createThemedStyles("FiltersPaneSearch", {
|
|
17444
17306
|
root: {
|
|
17445
17307
|
display: "flex",
|
|
17446
17308
|
position: "relative",
|
|
@@ -17549,7 +17411,7 @@ function _array_with_holes$c(arr) {
|
|
|
17549
17411
|
if (Array.isArray(arr))
|
|
17550
17412
|
return arr;
|
|
17551
17413
|
}
|
|
17552
|
-
function _define_property$
|
|
17414
|
+
function _define_property$s(obj, key, value) {
|
|
17553
17415
|
if (key in obj) {
|
|
17554
17416
|
Object.defineProperty(obj, key, {
|
|
17555
17417
|
value,
|
|
@@ -17593,7 +17455,7 @@ function _iterable_to_array_limit$c(arr, i) {
|
|
|
17593
17455
|
function _non_iterable_rest$c() {
|
|
17594
17456
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17595
17457
|
}
|
|
17596
|
-
function _object_spread$
|
|
17458
|
+
function _object_spread$r(target) {
|
|
17597
17459
|
for (var i = 1; i < arguments.length; i++) {
|
|
17598
17460
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17599
17461
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17603,12 +17465,12 @@ function _object_spread$q(target) {
|
|
|
17603
17465
|
}));
|
|
17604
17466
|
}
|
|
17605
17467
|
ownKeys2.forEach(function(key) {
|
|
17606
|
-
_define_property$
|
|
17468
|
+
_define_property$s(target, key, source[key]);
|
|
17607
17469
|
});
|
|
17608
17470
|
}
|
|
17609
17471
|
return target;
|
|
17610
17472
|
}
|
|
17611
|
-
function ownKeys$
|
|
17473
|
+
function ownKeys$q(object, enumerableOnly) {
|
|
17612
17474
|
var keys2 = Object.keys(object);
|
|
17613
17475
|
if (Object.getOwnPropertySymbols) {
|
|
17614
17476
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17621,12 +17483,12 @@ function ownKeys$p(object, enumerableOnly) {
|
|
|
17621
17483
|
}
|
|
17622
17484
|
return keys2;
|
|
17623
17485
|
}
|
|
17624
|
-
function _object_spread_props$
|
|
17486
|
+
function _object_spread_props$q(target, source) {
|
|
17625
17487
|
source = source != null ? source : {};
|
|
17626
17488
|
if (Object.getOwnPropertyDescriptors) {
|
|
17627
17489
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17628
17490
|
} else {
|
|
17629
|
-
ownKeys$
|
|
17491
|
+
ownKeys$q(Object(source)).forEach(function(key) {
|
|
17630
17492
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17631
17493
|
});
|
|
17632
17494
|
}
|
|
@@ -17650,7 +17512,7 @@ function _unsupported_iterable_to_array$c(o, minLen) {
|
|
|
17650
17512
|
}
|
|
17651
17513
|
function FiltersPaneSearch(param) {
|
|
17652
17514
|
var value = param.value, _param_fields = param.fields, fields = _param_fields === void 0 ? [] : _param_fields, field = param.field, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, getValueId = param.getValueId, getValueView = param.getValueView, getValueString = param.getValueString, hasClearSelectButton = param.hasClearSelectButton, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isSelectSearchEnabled = param.isSelectSearchEnabled, isSelectSearchEnabled = _param_isSelectSearchEnabled === void 0 ? true : _param_isSelectSearchEnabled, _param_isAutoSizeable = param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? true : _param_isAutoSizeable, maxLength = param.maxLength, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
17653
|
-
var classes = useStyles$
|
|
17515
|
+
var classes = useStyles$s({
|
|
17654
17516
|
theme: tweakStyles
|
|
17655
17517
|
});
|
|
17656
17518
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -17696,8 +17558,8 @@ function FiltersPaneSearch(param) {
|
|
|
17696
17558
|
field
|
|
17697
17559
|
]);
|
|
17698
17560
|
var _obj;
|
|
17699
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
17700
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
17561
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$q(_object_spread$r({
|
|
17562
|
+
className: clsx(classes.root, (_obj = {}, _define_property$s(_obj, classes.focused, isInputFocused), _define_property$s(_obj, classes.disabled, isDisabled), _obj)),
|
|
17701
17563
|
ref: refRoot,
|
|
17702
17564
|
"data-testid": testId
|
|
17703
17565
|
}, addDataAttributes(data)), {
|
|
@@ -17762,7 +17624,7 @@ function FiltersPaneSearch(param) {
|
|
|
17762
17624
|
]
|
|
17763
17625
|
}));
|
|
17764
17626
|
}
|
|
17765
|
-
var useStyles$
|
|
17627
|
+
var useStyles$r = createThemedStyles("FilterValueView", {
|
|
17766
17628
|
text: {
|
|
17767
17629
|
overflow: "hidden",
|
|
17768
17630
|
textOverflow: "ellipsis",
|
|
@@ -17781,7 +17643,7 @@ function _instanceof$1(left2, right2) {
|
|
|
17781
17643
|
}
|
|
17782
17644
|
function FilterValueView(param) {
|
|
17783
17645
|
var locale2 = param.locale, localeKey = param.localeKey, filter = param.filter, value = param.value, tweakStyles = param.tweakStyles;
|
|
17784
|
-
var classes = useStyles$
|
|
17646
|
+
var classes = useStyles$r({
|
|
17785
17647
|
theme: tweakStyles
|
|
17786
17648
|
});
|
|
17787
17649
|
var _filter_localeKey;
|
|
@@ -17810,7 +17672,7 @@ function FilterValueView(param) {
|
|
|
17810
17672
|
return "";
|
|
17811
17673
|
}
|
|
17812
17674
|
if (_instanceof$1(v, Date)) {
|
|
17813
|
-
return format
|
|
17675
|
+
return format(v, filter.dateFormat || DEFAULT_DATE_FORMAT$1);
|
|
17814
17676
|
}
|
|
17815
17677
|
if (typeof v === "object" && "value" in v && isNotEmpty(v.value)) {
|
|
17816
17678
|
return String(v.value);
|
|
@@ -17932,7 +17794,7 @@ function FilterValueView(param) {
|
|
|
17932
17794
|
children: displayValue(value)
|
|
17933
17795
|
});
|
|
17934
17796
|
}
|
|
17935
|
-
var useStyles$
|
|
17797
|
+
var useStyles$q = createThemedStyles("FilterWrapper", {
|
|
17936
17798
|
root: {
|
|
17937
17799
|
position: "relative",
|
|
17938
17800
|
transition: "0.25s ease-in-out",
|
|
@@ -18058,7 +17920,7 @@ function _array_with_holes$b(arr) {
|
|
|
18058
17920
|
if (Array.isArray(arr))
|
|
18059
17921
|
return arr;
|
|
18060
17922
|
}
|
|
18061
|
-
function _define_property$
|
|
17923
|
+
function _define_property$r(obj, key, value) {
|
|
18062
17924
|
if (key in obj) {
|
|
18063
17925
|
Object.defineProperty(obj, key, {
|
|
18064
17926
|
value,
|
|
@@ -18102,7 +17964,7 @@ function _iterable_to_array_limit$b(arr, i) {
|
|
|
18102
17964
|
function _non_iterable_rest$b() {
|
|
18103
17965
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18104
17966
|
}
|
|
18105
|
-
function _object_spread$
|
|
17967
|
+
function _object_spread$q(target) {
|
|
18106
17968
|
for (var i = 1; i < arguments.length; i++) {
|
|
18107
17969
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18108
17970
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18112,12 +17974,12 @@ function _object_spread$p(target) {
|
|
|
18112
17974
|
}));
|
|
18113
17975
|
}
|
|
18114
17976
|
ownKeys2.forEach(function(key) {
|
|
18115
|
-
_define_property$
|
|
17977
|
+
_define_property$r(target, key, source[key]);
|
|
18116
17978
|
});
|
|
18117
17979
|
}
|
|
18118
17980
|
return target;
|
|
18119
17981
|
}
|
|
18120
|
-
function ownKeys$
|
|
17982
|
+
function ownKeys$p(object, enumerableOnly) {
|
|
18121
17983
|
var keys2 = Object.keys(object);
|
|
18122
17984
|
if (Object.getOwnPropertySymbols) {
|
|
18123
17985
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18130,12 +17992,12 @@ function ownKeys$o(object, enumerableOnly) {
|
|
|
18130
17992
|
}
|
|
18131
17993
|
return keys2;
|
|
18132
17994
|
}
|
|
18133
|
-
function _object_spread_props$
|
|
17995
|
+
function _object_spread_props$p(target, source) {
|
|
18134
17996
|
source = source != null ? source : {};
|
|
18135
17997
|
if (Object.getOwnPropertyDescriptors) {
|
|
18136
17998
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18137
17999
|
} else {
|
|
18138
|
-
ownKeys$
|
|
18000
|
+
ownKeys$p(Object(source)).forEach(function(key) {
|
|
18139
18001
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18140
18002
|
});
|
|
18141
18003
|
}
|
|
@@ -18159,13 +18021,7 @@ function _unsupported_iterable_to_array$b(o, minLen) {
|
|
|
18159
18021
|
}
|
|
18160
18022
|
function FilterWrapper(param) {
|
|
18161
18023
|
var filter = param.filter, value = param.value, isDisabled = param.isDisabled, locale2 = param.locale, localeKey = param.localeKey, data = param.data, testId = param.testId, filtersPaneRef = param.filtersPaneRef, tweakStyles = param.tweakStyles, onChange = param.onChange;
|
|
18162
|
-
var
|
|
18163
|
-
if (type === "select") {
|
|
18164
|
-
setIsOpen(false);
|
|
18165
|
-
}
|
|
18166
|
-
onChange(v);
|
|
18167
|
-
};
|
|
18168
|
-
var classes = useStyles$p({
|
|
18024
|
+
var classes = useStyles$q({
|
|
18169
18025
|
theme: tweakStyles
|
|
18170
18026
|
});
|
|
18171
18027
|
var tweakFilterValueViewStyles = useTweakStyles({
|
|
@@ -18186,6 +18042,12 @@ function FilterWrapper(param) {
|
|
|
18186
18042
|
} else if (!Array.isArray(value) && typeof value !== "object") {
|
|
18187
18043
|
hasValue = Boolean(value);
|
|
18188
18044
|
}
|
|
18045
|
+
function handleChange(v) {
|
|
18046
|
+
if (type === "select") {
|
|
18047
|
+
setIsOpen(false);
|
|
18048
|
+
}
|
|
18049
|
+
onChange(v);
|
|
18050
|
+
}
|
|
18189
18051
|
var handleLabelClick = function() {
|
|
18190
18052
|
if (!isBoolean && !isDisabled) {
|
|
18191
18053
|
setIsOpen(!isOpen);
|
|
@@ -18199,14 +18061,14 @@ function FilterWrapper(param) {
|
|
|
18199
18061
|
};
|
|
18200
18062
|
var isBoolean = filter.type === "boolean";
|
|
18201
18063
|
var _obj;
|
|
18202
|
-
return !filter.isInline ? /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18203
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
18064
|
+
return !filter.isInline ? /* @__PURE__ */ jsxs("div", _object_spread_props$p(_object_spread$q({
|
|
18065
|
+
className: clsx(classes.root, (_obj = {}, _define_property$r(_obj, classes.noValue, !hasValue), _define_property$r(_obj, classes.openNoValue, isOpen && !hasValue), _define_property$r(_obj, classes.withValue, !isOpen && hasValue), _define_property$r(_obj, classes.openWithValue, isOpen && hasValue), _define_property$r(_obj, classes.boolean, isBoolean), _define_property$r(_obj, classes.disabled, isDisabled), _obj))
|
|
18204
18066
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
18205
18067
|
children: [
|
|
18206
18068
|
/* @__PURE__ */ jsxs("div", {
|
|
18207
18069
|
ref: refItem,
|
|
18208
18070
|
onClick: handleLabelClick,
|
|
18209
|
-
className: clsx(classes.item, _define_property$
|
|
18071
|
+
className: clsx(classes.item, _define_property$r({}, classes.booleanItem, isBoolean)),
|
|
18210
18072
|
children: [
|
|
18211
18073
|
/* @__PURE__ */ jsx("div", {
|
|
18212
18074
|
className: classes.name,
|
|
@@ -18268,7 +18130,7 @@ function FilterWrapper(param) {
|
|
|
18268
18130
|
classes
|
|
18269
18131
|
});
|
|
18270
18132
|
}
|
|
18271
|
-
function _define_property$
|
|
18133
|
+
function _define_property$q(obj, key, value) {
|
|
18272
18134
|
if (key in obj) {
|
|
18273
18135
|
Object.defineProperty(obj, key, {
|
|
18274
18136
|
value,
|
|
@@ -18281,7 +18143,7 @@ function _define_property$p(obj, key, value) {
|
|
|
18281
18143
|
}
|
|
18282
18144
|
return obj;
|
|
18283
18145
|
}
|
|
18284
|
-
function _object_spread$
|
|
18146
|
+
function _object_spread$p(target) {
|
|
18285
18147
|
for (var i = 1; i < arguments.length; i++) {
|
|
18286
18148
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18287
18149
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18291,12 +18153,12 @@ function _object_spread$o(target) {
|
|
|
18291
18153
|
}));
|
|
18292
18154
|
}
|
|
18293
18155
|
ownKeys2.forEach(function(key) {
|
|
18294
|
-
_define_property$
|
|
18156
|
+
_define_property$q(target, key, source[key]);
|
|
18295
18157
|
});
|
|
18296
18158
|
}
|
|
18297
18159
|
return target;
|
|
18298
18160
|
}
|
|
18299
|
-
function ownKeys$
|
|
18161
|
+
function ownKeys$o(object, enumerableOnly) {
|
|
18300
18162
|
var keys2 = Object.keys(object);
|
|
18301
18163
|
if (Object.getOwnPropertySymbols) {
|
|
18302
18164
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18309,12 +18171,12 @@ function ownKeys$n(object, enumerableOnly) {
|
|
|
18309
18171
|
}
|
|
18310
18172
|
return keys2;
|
|
18311
18173
|
}
|
|
18312
|
-
function _object_spread_props$
|
|
18174
|
+
function _object_spread_props$o(target, source) {
|
|
18313
18175
|
source = source != null ? source : {};
|
|
18314
18176
|
if (Object.getOwnPropertyDescriptors) {
|
|
18315
18177
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18316
18178
|
} else {
|
|
18317
|
-
ownKeys$
|
|
18179
|
+
ownKeys$o(Object(source)).forEach(function(key) {
|
|
18318
18180
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18319
18181
|
});
|
|
18320
18182
|
}
|
|
@@ -18322,7 +18184,7 @@ function _object_spread_props$n(target, source) {
|
|
|
18322
18184
|
}
|
|
18323
18185
|
function FiltersPane(param) {
|
|
18324
18186
|
var data = param.data, tweakStyles = param.tweakStyles, filtersConfig = param.filtersConfig, enabledFilters = param.enabledFilters, _param_values = param.values, values = _param_values === void 0 ? {} : _param_values, localeKey = param.localeKey, locale2 = param.locale, search = param.search, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_hasClearButton = param.hasClearButton, hasClearButton = _param_hasClearButton === void 0 ? true : _param_hasClearButton, testId = param.testId, onChangeFilters = param.onChangeFilters, onSettingsButtonClick = param.onSettingsButtonClick, onClear = param.onClear;
|
|
18325
|
-
var classes = useStyles$
|
|
18187
|
+
var classes = useStyles$y({
|
|
18326
18188
|
theme: tweakStyles
|
|
18327
18189
|
});
|
|
18328
18190
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -18365,12 +18227,12 @@ function FiltersPane(param) {
|
|
|
18365
18227
|
})
|
|
18366
18228
|
});
|
|
18367
18229
|
var _search_localeKey, _search_localeKey1, _search_isDisabled;
|
|
18368
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18230
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$o(_object_spread$p({
|
|
18369
18231
|
className: classes.root,
|
|
18370
18232
|
ref
|
|
18371
18233
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
18372
18234
|
children: [
|
|
18373
|
-
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
18235
|
+
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$o(_object_spread$p({
|
|
18374
18236
|
className: classes.settings,
|
|
18375
18237
|
tabIndex: 0
|
|
18376
18238
|
}, addDataTestId(testId, "settings-button")), {
|
|
@@ -18382,7 +18244,7 @@ function FiltersPane(param) {
|
|
|
18382
18244
|
})
|
|
18383
18245
|
})
|
|
18384
18246
|
})),
|
|
18385
|
-
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$
|
|
18247
|
+
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$o(_object_spread$p({}, search), {
|
|
18386
18248
|
locale: getLocale$1((_search_localeKey = search.localeKey) !== null && _search_localeKey !== void 0 ? _search_localeKey : localeKey, search.locale, locale2),
|
|
18387
18249
|
localeKey: (_search_localeKey1 = search.localeKey) !== null && _search_localeKey1 !== void 0 ? _search_localeKey1 : localeKey,
|
|
18388
18250
|
isDisabled: (_search_isDisabled = search.isDisabled) !== null && _search_isDisabled !== void 0 ? _search_isDisabled : isDisabled,
|
|
@@ -18405,7 +18267,7 @@ function FiltersPane(param) {
|
|
|
18405
18267
|
locale: locale2,
|
|
18406
18268
|
localeKey,
|
|
18407
18269
|
onChange: function(value) {
|
|
18408
|
-
return onChangeFilters(_object_spread_props$
|
|
18270
|
+
return onChangeFilters(_object_spread_props$o(_object_spread$p({}, values), _define_property$q({}, key, value)));
|
|
18409
18271
|
},
|
|
18410
18272
|
value: currentValue,
|
|
18411
18273
|
isDisabled: isDisabled || (filter === null || filter === void 0 ? void 0 : (_filter_requiredFilledFilters = filter.requiredFilledFilters) === null || _filter_requiredFilledFilters === void 0 ? void 0 : _filter_requiredFilledFilters.some(function(item) {
|
|
@@ -24535,7 +24397,7 @@ const Flags = {
|
|
|
24535
24397
|
ZM,
|
|
24536
24398
|
ZW
|
|
24537
24399
|
};
|
|
24538
|
-
var useStyles$
|
|
24400
|
+
var useStyles$p = createThemedStyles("Flag", {
|
|
24539
24401
|
root: {
|
|
24540
24402
|
// приходится хардкодить в компоненте, тк либа Flags выдает флаги с 2-3 пиксельным отступом снизу
|
|
24541
24403
|
// если будет нужно, то можно вынести border на уровень пропсов
|
|
@@ -24553,7 +24415,7 @@ var useStyles$o = createThemedStyles("Flag", {
|
|
|
24553
24415
|
});
|
|
24554
24416
|
var Flag = function(param) {
|
|
24555
24417
|
var _param_countryCode = param.countryCode, countryCode = _param_countryCode === void 0 ? "" : _param_countryCode, tweakStyles = param.tweakStyles;
|
|
24556
|
-
var classes = useStyles$
|
|
24418
|
+
var classes = useStyles$p({
|
|
24557
24419
|
theme: tweakStyles
|
|
24558
24420
|
});
|
|
24559
24421
|
var CC3 = countryCode.toUpperCase();
|
|
@@ -24569,7 +24431,7 @@ var Flag = function(param) {
|
|
|
24569
24431
|
className: classes.root
|
|
24570
24432
|
});
|
|
24571
24433
|
};
|
|
24572
|
-
var useStyles$
|
|
24434
|
+
var useStyles$o = createThemedStyles("Skeleton", {
|
|
24573
24435
|
root: {
|
|
24574
24436
|
display: "flex",
|
|
24575
24437
|
width: "100%",
|
|
@@ -24605,7 +24467,7 @@ var useStyles$n = createThemedStyles("Skeleton", {
|
|
|
24605
24467
|
});
|
|
24606
24468
|
var Skeleton = function(param) {
|
|
24607
24469
|
var height = param.height, tweakStyles = param.tweakStyles;
|
|
24608
|
-
var classes = useStyles$
|
|
24470
|
+
var classes = useStyles$o({
|
|
24609
24471
|
theme: tweakStyles
|
|
24610
24472
|
});
|
|
24611
24473
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -24626,12 +24488,12 @@ function _instanceof(left2, right2) {
|
|
|
24626
24488
|
var hasHorizontalScrollBar = function(el) {
|
|
24627
24489
|
return isNotEmpty(el) && el.scrollWidth !== el.clientWidth;
|
|
24628
24490
|
};
|
|
24629
|
-
var _config_dateFormat;
|
|
24630
24491
|
var formatCellContent = function(value, config) {
|
|
24631
|
-
|
|
24492
|
+
var _config_dateFormat;
|
|
24493
|
+
return _instanceof(value, Date) ? format(value, (_config_dateFormat = config === null || config === void 0 ? void 0 : config.dateFormat) !== null && _config_dateFormat !== void 0 ? _config_dateFormat : DEFAULT_DATE_FORMAT) : String(value);
|
|
24632
24494
|
};
|
|
24633
24495
|
var STICKY_SHADOW_PADDING = 12;
|
|
24634
|
-
var useStyles$
|
|
24496
|
+
var useStyles$n = createThemedStyles("FlexibleTable", {
|
|
24635
24497
|
root: {
|
|
24636
24498
|
width: "100%",
|
|
24637
24499
|
position: "relative",
|
|
@@ -24721,7 +24583,7 @@ var useStyles$m = createThemedStyles("FlexibleTable", {
|
|
|
24721
24583
|
nothingFoundRow: {},
|
|
24722
24584
|
nothingFound: {}
|
|
24723
24585
|
});
|
|
24724
|
-
function _define_property$
|
|
24586
|
+
function _define_property$p(obj, key, value) {
|
|
24725
24587
|
if (key in obj) {
|
|
24726
24588
|
Object.defineProperty(obj, key, {
|
|
24727
24589
|
value,
|
|
@@ -24734,7 +24596,7 @@ function _define_property$o(obj, key, value) {
|
|
|
24734
24596
|
}
|
|
24735
24597
|
return obj;
|
|
24736
24598
|
}
|
|
24737
|
-
function _object_spread$
|
|
24599
|
+
function _object_spread$o(target) {
|
|
24738
24600
|
for (var i = 1; i < arguments.length; i++) {
|
|
24739
24601
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
24740
24602
|
var ownKeys2 = Object.keys(source);
|
|
@@ -24744,12 +24606,12 @@ function _object_spread$n(target) {
|
|
|
24744
24606
|
}));
|
|
24745
24607
|
}
|
|
24746
24608
|
ownKeys2.forEach(function(key) {
|
|
24747
|
-
_define_property$
|
|
24609
|
+
_define_property$p(target, key, source[key]);
|
|
24748
24610
|
});
|
|
24749
24611
|
}
|
|
24750
24612
|
return target;
|
|
24751
24613
|
}
|
|
24752
|
-
function ownKeys$
|
|
24614
|
+
function ownKeys$n(object, enumerableOnly) {
|
|
24753
24615
|
var keys2 = Object.keys(object);
|
|
24754
24616
|
if (Object.getOwnPropertySymbols) {
|
|
24755
24617
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -24762,18 +24624,18 @@ function ownKeys$m(object, enumerableOnly) {
|
|
|
24762
24624
|
}
|
|
24763
24625
|
return keys2;
|
|
24764
24626
|
}
|
|
24765
|
-
function _object_spread_props$
|
|
24627
|
+
function _object_spread_props$n(target, source) {
|
|
24766
24628
|
source = source != null ? source : {};
|
|
24767
24629
|
if (Object.getOwnPropertyDescriptors) {
|
|
24768
24630
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
24769
24631
|
} else {
|
|
24770
|
-
ownKeys$
|
|
24632
|
+
ownKeys$n(Object(source)).forEach(function(key) {
|
|
24771
24633
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
24772
24634
|
});
|
|
24773
24635
|
}
|
|
24774
24636
|
return target;
|
|
24775
24637
|
}
|
|
24776
|
-
var useStyles$
|
|
24638
|
+
var useStyles$m = createThemedStyles("FlexibleTableCell", {
|
|
24777
24639
|
root: {
|
|
24778
24640
|
position: "relative",
|
|
24779
24641
|
boxSizing: "content-box",
|
|
@@ -24786,7 +24648,7 @@ var useStyles$l = createThemedStyles("FlexibleTableCell", {
|
|
|
24786
24648
|
zIndex: 5,
|
|
24787
24649
|
verticalAlign: "top"
|
|
24788
24650
|
},
|
|
24789
|
-
sticky: _object_spread_props$
|
|
24651
|
+
sticky: _object_spread_props$n(_object_spread$o({
|
|
24790
24652
|
zIndex: 19,
|
|
24791
24653
|
paddingLeft: 24,
|
|
24792
24654
|
paddingRight: 12
|
|
@@ -24805,7 +24667,7 @@ var useStyles$l = createThemedStyles("FlexibleTableCell", {
|
|
|
24805
24667
|
height: 21
|
|
24806
24668
|
}
|
|
24807
24669
|
});
|
|
24808
|
-
function _define_property$
|
|
24670
|
+
function _define_property$o(obj, key, value) {
|
|
24809
24671
|
if (key in obj) {
|
|
24810
24672
|
Object.defineProperty(obj, key, {
|
|
24811
24673
|
value,
|
|
@@ -24818,7 +24680,7 @@ function _define_property$n(obj, key, value) {
|
|
|
24818
24680
|
}
|
|
24819
24681
|
return obj;
|
|
24820
24682
|
}
|
|
24821
|
-
function _object_spread$
|
|
24683
|
+
function _object_spread$n(target) {
|
|
24822
24684
|
for (var i = 1; i < arguments.length; i++) {
|
|
24823
24685
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
24824
24686
|
var ownKeys2 = Object.keys(source);
|
|
@@ -24828,12 +24690,12 @@ function _object_spread$m(target) {
|
|
|
24828
24690
|
}));
|
|
24829
24691
|
}
|
|
24830
24692
|
ownKeys2.forEach(function(key) {
|
|
24831
|
-
_define_property$
|
|
24693
|
+
_define_property$o(target, key, source[key]);
|
|
24832
24694
|
});
|
|
24833
24695
|
}
|
|
24834
24696
|
return target;
|
|
24835
24697
|
}
|
|
24836
|
-
function ownKeys$
|
|
24698
|
+
function ownKeys$m(object, enumerableOnly) {
|
|
24837
24699
|
var keys2 = Object.keys(object);
|
|
24838
24700
|
if (Object.getOwnPropertySymbols) {
|
|
24839
24701
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -24846,21 +24708,21 @@ function ownKeys$l(object, enumerableOnly) {
|
|
|
24846
24708
|
}
|
|
24847
24709
|
return keys2;
|
|
24848
24710
|
}
|
|
24849
|
-
function _object_spread_props$
|
|
24711
|
+
function _object_spread_props$m(target, source) {
|
|
24850
24712
|
source = source != null ? source : {};
|
|
24851
24713
|
if (Object.getOwnPropertyDescriptors) {
|
|
24852
24714
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
24853
24715
|
} else {
|
|
24854
|
-
ownKeys$
|
|
24716
|
+
ownKeys$m(Object(source)).forEach(function(key) {
|
|
24855
24717
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
24856
24718
|
});
|
|
24857
24719
|
}
|
|
24858
24720
|
return target;
|
|
24859
24721
|
}
|
|
24860
|
-
function _object_without_properties$
|
|
24722
|
+
function _object_without_properties$7(source, excluded) {
|
|
24861
24723
|
if (source == null)
|
|
24862
24724
|
return {};
|
|
24863
|
-
var target = _object_without_properties_loose$
|
|
24725
|
+
var target = _object_without_properties_loose$7(source, excluded);
|
|
24864
24726
|
var key, i;
|
|
24865
24727
|
if (Object.getOwnPropertySymbols) {
|
|
24866
24728
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -24875,7 +24737,7 @@ function _object_without_properties$6(source, excluded) {
|
|
|
24875
24737
|
}
|
|
24876
24738
|
return target;
|
|
24877
24739
|
}
|
|
24878
|
-
function _object_without_properties_loose$
|
|
24740
|
+
function _object_without_properties_loose$7(source, excluded) {
|
|
24879
24741
|
if (source == null)
|
|
24880
24742
|
return {};
|
|
24881
24743
|
var target = {};
|
|
@@ -24890,7 +24752,7 @@ function _object_without_properties_loose$6(source, excluded) {
|
|
|
24890
24752
|
return target;
|
|
24891
24753
|
}
|
|
24892
24754
|
function FlexibleTableCell(_param) {
|
|
24893
|
-
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$
|
|
24755
|
+
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$7(_param, [
|
|
24894
24756
|
"row",
|
|
24895
24757
|
"columnName",
|
|
24896
24758
|
"config",
|
|
@@ -24900,7 +24762,7 @@ function FlexibleTableCell(_param) {
|
|
|
24900
24762
|
"isLoading",
|
|
24901
24763
|
"tweakStyles"
|
|
24902
24764
|
]);
|
|
24903
|
-
var classes = useStyles$
|
|
24765
|
+
var classes = useStyles$m({
|
|
24904
24766
|
theme: tweakStyles
|
|
24905
24767
|
});
|
|
24906
24768
|
var _config_columnName;
|
|
@@ -24909,7 +24771,7 @@ function FlexibleTableCell(_param) {
|
|
|
24909
24771
|
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
24910
24772
|
var _obj;
|
|
24911
24773
|
return /* @__PURE__ */ jsx(TableCell, {
|
|
24912
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
24774
|
+
className: clsx(classes.root, (_obj = {}, _define_property$o(_obj, classes.sticky, isSticky), _define_property$o(_obj, classes.second, isSecond), _define_property$o(_obj, classes.loading, isLoading), _obj)),
|
|
24913
24775
|
style: {
|
|
24914
24776
|
textAlign: cellAlign,
|
|
24915
24777
|
position: isSticky ? "sticky" : position,
|
|
@@ -24921,14 +24783,14 @@ function FlexibleTableCell(_param) {
|
|
|
24921
24783
|
className: classes.skeleton,
|
|
24922
24784
|
children: /* @__PURE__ */ jsx(Skeleton, {})
|
|
24923
24785
|
}) : isNotEmpty(value) && /* @__PURE__ */ jsx(Fragment, {
|
|
24924
|
-
children: isNotEmpty(component) ? component(_object_spread_props$
|
|
24786
|
+
children: isNotEmpty(component) ? component(_object_spread_props$m(_object_spread$n({}, valueComponentProps), {
|
|
24925
24787
|
value,
|
|
24926
24788
|
row
|
|
24927
24789
|
})) : formatCellContent(value, config[columnName])
|
|
24928
24790
|
})
|
|
24929
24791
|
});
|
|
24930
24792
|
}
|
|
24931
|
-
var useStyles$
|
|
24793
|
+
var useStyles$l = createThemedStyles("FlexibleTableRow", {
|
|
24932
24794
|
root: {
|
|
24933
24795
|
position: "relative"
|
|
24934
24796
|
},
|
|
@@ -24952,7 +24814,7 @@ function _array_with_holes$a(arr) {
|
|
|
24952
24814
|
if (Array.isArray(arr))
|
|
24953
24815
|
return arr;
|
|
24954
24816
|
}
|
|
24955
|
-
function _define_property$
|
|
24817
|
+
function _define_property$n(obj, key, value) {
|
|
24956
24818
|
if (key in obj) {
|
|
24957
24819
|
Object.defineProperty(obj, key, {
|
|
24958
24820
|
value,
|
|
@@ -24996,7 +24858,7 @@ function _iterable_to_array_limit$a(arr, i) {
|
|
|
24996
24858
|
function _non_iterable_rest$a() {
|
|
24997
24859
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24998
24860
|
}
|
|
24999
|
-
function _object_spread$
|
|
24861
|
+
function _object_spread$m(target) {
|
|
25000
24862
|
for (var i = 1; i < arguments.length; i++) {
|
|
25001
24863
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
25002
24864
|
var ownKeys2 = Object.keys(source);
|
|
@@ -25006,12 +24868,12 @@ function _object_spread$l(target) {
|
|
|
25006
24868
|
}));
|
|
25007
24869
|
}
|
|
25008
24870
|
ownKeys2.forEach(function(key) {
|
|
25009
|
-
_define_property$
|
|
24871
|
+
_define_property$n(target, key, source[key]);
|
|
25010
24872
|
});
|
|
25011
24873
|
}
|
|
25012
24874
|
return target;
|
|
25013
24875
|
}
|
|
25014
|
-
function ownKeys$
|
|
24876
|
+
function ownKeys$l(object, enumerableOnly) {
|
|
25015
24877
|
var keys2 = Object.keys(object);
|
|
25016
24878
|
if (Object.getOwnPropertySymbols) {
|
|
25017
24879
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -25024,12 +24886,12 @@ function ownKeys$k(object, enumerableOnly) {
|
|
|
25024
24886
|
}
|
|
25025
24887
|
return keys2;
|
|
25026
24888
|
}
|
|
25027
|
-
function _object_spread_props$
|
|
24889
|
+
function _object_spread_props$l(target, source) {
|
|
25028
24890
|
source = source != null ? source : {};
|
|
25029
24891
|
if (Object.getOwnPropertyDescriptors) {
|
|
25030
24892
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25031
24893
|
} else {
|
|
25032
|
-
ownKeys$
|
|
24894
|
+
ownKeys$l(Object(source)).forEach(function(key) {
|
|
25033
24895
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25034
24896
|
});
|
|
25035
24897
|
}
|
|
@@ -25053,7 +24915,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
25053
24915
|
}
|
|
25054
24916
|
function FlexibleTableRowInner(param) {
|
|
25055
24917
|
var item = param.item, index = param.index, config = param.config, columns = param.columns, uniqueField = param.uniqueField, renderMode = param.renderMode, activeRows = param.activeRows, isFirstColumnSticky = param.isFirstColumnSticky, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, rowAttributes = param.rowAttributes, _param_isExpandableRowComponentInitiallyOpen = param.isExpandableRowComponentInitiallyOpen, isExpandableRowComponentInitiallyOpen = _param_isExpandableRowComponentInitiallyOpen === void 0 ? false : _param_isExpandableRowComponentInitiallyOpen, tweakStyles = param.tweakStyles, expandableRowComponent = param.expandableRowComponent, onRowHover = param.onRowHover, onRowClick = param.onRowClick;
|
|
25056
|
-
var classes = useStyles$
|
|
24918
|
+
var classes = useStyles$l({
|
|
25057
24919
|
theme: tweakStyles
|
|
25058
24920
|
});
|
|
25059
24921
|
var tweakTableCellStyles = useTweakStyles({
|
|
@@ -25082,7 +24944,7 @@ function FlexibleTableRowInner(param) {
|
|
|
25082
24944
|
var isClickable = !isLoading && (isNotEmpty(onRowClick) || isNotEmpty(expandableRowComponent));
|
|
25083
24945
|
var isNestedComponentExpanded = nestedComponent.isOpen, nestedComponentCellKey = nestedComponent.cellKey;
|
|
25084
24946
|
var rowData = rowAttributes === null || rowAttributes === void 0 ? void 0 : rowAttributes.reduce(function(acc, cur) {
|
|
25085
|
-
return _object_spread_props$
|
|
24947
|
+
return _object_spread_props$l(_object_spread$m({}, acc), _define_property$n({}, cur, item[cur]));
|
|
25086
24948
|
}, {});
|
|
25087
24949
|
var handleMouseEnter = function(event) {
|
|
25088
24950
|
if (isNotEmpty(uniqueField) && isNotEmpty(onRowHover)) {
|
|
@@ -25130,13 +24992,13 @@ function FlexibleTableRowInner(param) {
|
|
|
25130
24992
|
var _obj;
|
|
25131
24993
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
25132
24994
|
children: [
|
|
25133
|
-
/* @__PURE__ */ jsx(TableRow, _object_spread_props$
|
|
25134
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
24995
|
+
/* @__PURE__ */ jsx(TableRow, _object_spread_props$l(_object_spread$m({
|
|
24996
|
+
className: clsx(classes.root, (_obj = {}, _define_property$n(_obj, classes.active, isActive), _define_property$n(_obj, classes.editable, isEditable), _define_property$n(_obj, classes.clickable, isClickable), _obj))
|
|
25135
24997
|
}, !isLoading && {
|
|
25136
24998
|
onClick: handleRowClick,
|
|
25137
24999
|
onMouseEnter: handleMouseEnter,
|
|
25138
25000
|
onMouseLeave: handleMouseLeave
|
|
25139
|
-
}, addDataAttributes(_object_spread_props$
|
|
25001
|
+
}, addDataAttributes(_object_spread_props$l(_object_spread$m({}, rowData), {
|
|
25140
25002
|
active: isActive ? true : void 0,
|
|
25141
25003
|
editable: isEditable ? true : void 0,
|
|
25142
25004
|
isExpandableComponentActive: isNestedComponentExpanded ? true : void 0
|
|
@@ -25172,7 +25034,7 @@ function FlexibleTableRowInner(param) {
|
|
|
25172
25034
|
});
|
|
25173
25035
|
}
|
|
25174
25036
|
var FlexibleTableRow = /* @__PURE__ */ memo(FlexibleTableRowInner);
|
|
25175
|
-
function _define_property$
|
|
25037
|
+
function _define_property$m(obj, key, value) {
|
|
25176
25038
|
if (key in obj) {
|
|
25177
25039
|
Object.defineProperty(obj, key, {
|
|
25178
25040
|
value,
|
|
@@ -25185,7 +25047,7 @@ function _define_property$l(obj, key, value) {
|
|
|
25185
25047
|
}
|
|
25186
25048
|
return obj;
|
|
25187
25049
|
}
|
|
25188
|
-
function _object_spread$
|
|
25050
|
+
function _object_spread$l(target) {
|
|
25189
25051
|
for (var i = 1; i < arguments.length; i++) {
|
|
25190
25052
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
25191
25053
|
var ownKeys2 = Object.keys(source);
|
|
@@ -25195,12 +25057,12 @@ function _object_spread$k(target) {
|
|
|
25195
25057
|
}));
|
|
25196
25058
|
}
|
|
25197
25059
|
ownKeys2.forEach(function(key) {
|
|
25198
|
-
_define_property$
|
|
25060
|
+
_define_property$m(target, key, source[key]);
|
|
25199
25061
|
});
|
|
25200
25062
|
}
|
|
25201
25063
|
return target;
|
|
25202
25064
|
}
|
|
25203
|
-
function ownKeys$
|
|
25065
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
25204
25066
|
var keys2 = Object.keys(object);
|
|
25205
25067
|
if (Object.getOwnPropertySymbols) {
|
|
25206
25068
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -25213,21 +25075,21 @@ function ownKeys$j(object, enumerableOnly) {
|
|
|
25213
25075
|
}
|
|
25214
25076
|
return keys2;
|
|
25215
25077
|
}
|
|
25216
|
-
function _object_spread_props$
|
|
25078
|
+
function _object_spread_props$k(target, source) {
|
|
25217
25079
|
source = source != null ? source : {};
|
|
25218
25080
|
if (Object.getOwnPropertyDescriptors) {
|
|
25219
25081
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25220
25082
|
} else {
|
|
25221
|
-
ownKeys$
|
|
25083
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
25222
25084
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25223
25085
|
});
|
|
25224
25086
|
}
|
|
25225
25087
|
return target;
|
|
25226
25088
|
}
|
|
25227
|
-
function _object_without_properties$
|
|
25089
|
+
function _object_without_properties$6(source, excluded) {
|
|
25228
25090
|
if (source == null)
|
|
25229
25091
|
return {};
|
|
25230
|
-
var target = _object_without_properties_loose$
|
|
25092
|
+
var target = _object_without_properties_loose$6(source, excluded);
|
|
25231
25093
|
var key, i;
|
|
25232
25094
|
if (Object.getOwnPropertySymbols) {
|
|
25233
25095
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -25242,7 +25104,7 @@ function _object_without_properties$5(source, excluded) {
|
|
|
25242
25104
|
}
|
|
25243
25105
|
return target;
|
|
25244
25106
|
}
|
|
25245
|
-
function _object_without_properties_loose$
|
|
25107
|
+
function _object_without_properties_loose$6(source, excluded) {
|
|
25246
25108
|
if (source == null)
|
|
25247
25109
|
return {};
|
|
25248
25110
|
var target = {};
|
|
@@ -25257,7 +25119,7 @@ function _object_without_properties_loose$5(source, excluded) {
|
|
|
25257
25119
|
return target;
|
|
25258
25120
|
}
|
|
25259
25121
|
function FlexibleTable(_param) {
|
|
25260
|
-
var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, infinityScrollConfig = _param.infinityScrollConfig, _param_renderMode = _param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, refForScroll = _param.refForScroll, nothingFoundContent = _param.nothingFoundContent, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, onHeadClick = _param.onHeadClick, restProps = _object_without_properties$
|
|
25122
|
+
var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, infinityScrollConfig = _param.infinityScrollConfig, _param_renderMode = _param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, refForScroll = _param.refForScroll, nothingFoundContent = _param.nothingFoundContent, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, onHeadClick = _param.onHeadClick, restProps = _object_without_properties$6(_param, [
|
|
25261
25123
|
"content",
|
|
25262
25124
|
"headerContent",
|
|
25263
25125
|
"config",
|
|
@@ -25273,7 +25135,7 @@ function FlexibleTable(_param) {
|
|
|
25273
25135
|
"tweakStyles",
|
|
25274
25136
|
"onHeadClick"
|
|
25275
25137
|
]);
|
|
25276
|
-
var classes = useStyles$
|
|
25138
|
+
var classes = useStyles$n({
|
|
25277
25139
|
theme: tweakStyles
|
|
25278
25140
|
});
|
|
25279
25141
|
var tweakTableRowStyles = useTweakStyles({
|
|
@@ -25291,7 +25153,7 @@ function FlexibleTable(_param) {
|
|
|
25291
25153
|
]);
|
|
25292
25154
|
var hasInfiniteScroll = isNotEmpty(infinityScrollConfig);
|
|
25293
25155
|
var uniqueField = restProps.uniqueField, _restProps_isFirstColumnSticky = restProps.isFirstColumnSticky, isFirstColumnSticky = _restProps_isFirstColumnSticky === void 0 ? false : _restProps_isFirstColumnSticky;
|
|
25294
|
-
var tableRowProps = _object_spread_props$
|
|
25156
|
+
var tableRowProps = _object_spread_props$k(_object_spread$l({}, restProps), {
|
|
25295
25157
|
renderMode,
|
|
25296
25158
|
config,
|
|
25297
25159
|
columns,
|
|
@@ -25380,10 +25242,10 @@ function FlexibleTable(_param) {
|
|
|
25380
25242
|
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
25381
25243
|
return /* @__PURE__ */ jsx("div", {
|
|
25382
25244
|
ref,
|
|
25383
|
-
className: clsx(_define_property$
|
|
25384
|
-
children: /* @__PURE__ */ jsxs(Table, _object_spread_props$
|
|
25245
|
+
className: clsx(_define_property$m({}, classes.scroll, isHorizontallyScrollable)),
|
|
25246
|
+
children: /* @__PURE__ */ jsxs(Table, _object_spread_props$k(_object_spread$l({
|
|
25385
25247
|
className: classes.root
|
|
25386
|
-
}, addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
25248
|
+
}, addDataTestId(testId), addDataAttributes(_object_spread_props$k(_object_spread$l({}, data), {
|
|
25387
25249
|
isLoading
|
|
25388
25250
|
}))), {
|
|
25389
25251
|
children: [
|
|
@@ -25397,7 +25259,7 @@ function FlexibleTable(_param) {
|
|
|
25397
25259
|
var _itemConfig_titleAlign, _itemConfig_title;
|
|
25398
25260
|
var _obj;
|
|
25399
25261
|
return /* @__PURE__ */ jsx(TableHeader, {
|
|
25400
|
-
className: clsx(classes.header, (_obj = {}, _define_property$
|
|
25262
|
+
className: clsx(classes.header, (_obj = {}, _define_property$m(_obj, classes.headerSticky, isFirstColumnSticky && i === 0), _define_property$m(_obj, classes.headerSecond, isFirstColumnSticky && i === 1), _obj)),
|
|
25401
25263
|
style: {
|
|
25402
25264
|
minWidth: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.minWidth,
|
|
25403
25265
|
width: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.width,
|
|
@@ -25417,7 +25279,7 @@ function FlexibleTable(_param) {
|
|
|
25417
25279
|
/* @__PURE__ */ jsx(TableBody, {
|
|
25418
25280
|
className: classes.body,
|
|
25419
25281
|
children: isLoading ? indexMap(6, function(i) {
|
|
25420
|
-
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$
|
|
25282
|
+
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$k(_object_spread$l({}, tableRowProps), {
|
|
25421
25283
|
key: i,
|
|
25422
25284
|
item: {},
|
|
25423
25285
|
index: i
|
|
@@ -25433,7 +25295,7 @@ function FlexibleTable(_param) {
|
|
|
25433
25295
|
})
|
|
25434
25296
|
}),
|
|
25435
25297
|
content.map(function(item, i) {
|
|
25436
|
-
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$
|
|
25298
|
+
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$k(_object_spread$l({}, tableRowProps), {
|
|
25437
25299
|
key: isNotEmpty(uniqueField) ? item[uniqueField] : i,
|
|
25438
25300
|
item,
|
|
25439
25301
|
index: i
|
|
@@ -25460,6 +25322,196 @@ function FlexibleTable(_param) {
|
|
|
25460
25322
|
}))
|
|
25461
25323
|
});
|
|
25462
25324
|
}
|
|
25325
|
+
var BUTTON_SIZE_S = 24;
|
|
25326
|
+
var BUTTON_SIZE_M = 32;
|
|
25327
|
+
var ICON_SIZE = 20;
|
|
25328
|
+
var useStyles$k = createThemedStyles("IconButton", {
|
|
25329
|
+
root: {
|
|
25330
|
+
display: "flex",
|
|
25331
|
+
justifyContent: "center",
|
|
25332
|
+
alignItems: "center",
|
|
25333
|
+
cursor: "pointer",
|
|
25334
|
+
outline: "none",
|
|
25335
|
+
boxSizing: "border-box",
|
|
25336
|
+
transition: "0.25s ease-in-out",
|
|
25337
|
+
transitionProperty: "background-color, color, border-color",
|
|
25338
|
+
border: "none",
|
|
25339
|
+
position: "relative",
|
|
25340
|
+
boxShadow: "none",
|
|
25341
|
+
borderRadius: "50%",
|
|
25342
|
+
background: "none",
|
|
25343
|
+
padding: 0,
|
|
25344
|
+
flexShrink: 0,
|
|
25345
|
+
"&:disabled": {
|
|
25346
|
+
extend: "disabled"
|
|
25347
|
+
},
|
|
25348
|
+
"&:active": {
|
|
25349
|
+
extend: "active"
|
|
25350
|
+
}
|
|
25351
|
+
},
|
|
25352
|
+
"cancel-light": {},
|
|
25353
|
+
cancel: {},
|
|
25354
|
+
main: {},
|
|
25355
|
+
custom: {},
|
|
25356
|
+
active: {},
|
|
25357
|
+
disabled: {
|
|
25358
|
+
cursor: "not-allowed",
|
|
25359
|
+
pointerEvents: "none"
|
|
25360
|
+
},
|
|
25361
|
+
loading: {
|
|
25362
|
+
"& $content": {
|
|
25363
|
+
visibility: "hidden"
|
|
25364
|
+
},
|
|
25365
|
+
"& $loader": {
|
|
25366
|
+
display: "block"
|
|
25367
|
+
}
|
|
25368
|
+
},
|
|
25369
|
+
icon: {
|
|
25370
|
+
display: "flex",
|
|
25371
|
+
alignItems: "center",
|
|
25372
|
+
width: ICON_SIZE,
|
|
25373
|
+
height: ICON_SIZE
|
|
25374
|
+
},
|
|
25375
|
+
loader: {
|
|
25376
|
+
display: "none",
|
|
25377
|
+
position: "absolute",
|
|
25378
|
+
left: "50%",
|
|
25379
|
+
top: "50%",
|
|
25380
|
+
transform: "translate(-50%, -50%)",
|
|
25381
|
+
width: ICON_SIZE,
|
|
25382
|
+
height: ICON_SIZE
|
|
25383
|
+
},
|
|
25384
|
+
s: {
|
|
25385
|
+
width: BUTTON_SIZE_S,
|
|
25386
|
+
height: BUTTON_SIZE_S
|
|
25387
|
+
},
|
|
25388
|
+
m: {
|
|
25389
|
+
width: BUTTON_SIZE_M,
|
|
25390
|
+
height: BUTTON_SIZE_M
|
|
25391
|
+
}
|
|
25392
|
+
});
|
|
25393
|
+
function _define_property$l(obj, key, value) {
|
|
25394
|
+
if (key in obj) {
|
|
25395
|
+
Object.defineProperty(obj, key, {
|
|
25396
|
+
value,
|
|
25397
|
+
enumerable: true,
|
|
25398
|
+
configurable: true,
|
|
25399
|
+
writable: true
|
|
25400
|
+
});
|
|
25401
|
+
} else {
|
|
25402
|
+
obj[key] = value;
|
|
25403
|
+
}
|
|
25404
|
+
return obj;
|
|
25405
|
+
}
|
|
25406
|
+
function _object_spread$k(target) {
|
|
25407
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
25408
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
25409
|
+
var ownKeys2 = Object.keys(source);
|
|
25410
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
25411
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
25412
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
25413
|
+
}));
|
|
25414
|
+
}
|
|
25415
|
+
ownKeys2.forEach(function(key) {
|
|
25416
|
+
_define_property$l(target, key, source[key]);
|
|
25417
|
+
});
|
|
25418
|
+
}
|
|
25419
|
+
return target;
|
|
25420
|
+
}
|
|
25421
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
25422
|
+
var keys2 = Object.keys(object);
|
|
25423
|
+
if (Object.getOwnPropertySymbols) {
|
|
25424
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
25425
|
+
if (enumerableOnly) {
|
|
25426
|
+
symbols = symbols.filter(function(sym) {
|
|
25427
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
25428
|
+
});
|
|
25429
|
+
}
|
|
25430
|
+
keys2.push.apply(keys2, symbols);
|
|
25431
|
+
}
|
|
25432
|
+
return keys2;
|
|
25433
|
+
}
|
|
25434
|
+
function _object_spread_props$j(target, source) {
|
|
25435
|
+
source = source != null ? source : {};
|
|
25436
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
25437
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25438
|
+
} else {
|
|
25439
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
25440
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25441
|
+
});
|
|
25442
|
+
}
|
|
25443
|
+
return target;
|
|
25444
|
+
}
|
|
25445
|
+
function _object_without_properties$5(source, excluded) {
|
|
25446
|
+
if (source == null)
|
|
25447
|
+
return {};
|
|
25448
|
+
var target = _object_without_properties_loose$5(source, excluded);
|
|
25449
|
+
var key, i;
|
|
25450
|
+
if (Object.getOwnPropertySymbols) {
|
|
25451
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
25452
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
25453
|
+
key = sourceSymbolKeys[i];
|
|
25454
|
+
if (excluded.indexOf(key) >= 0)
|
|
25455
|
+
continue;
|
|
25456
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
25457
|
+
continue;
|
|
25458
|
+
target[key] = source[key];
|
|
25459
|
+
}
|
|
25460
|
+
}
|
|
25461
|
+
return target;
|
|
25462
|
+
}
|
|
25463
|
+
function _object_without_properties_loose$5(source, excluded) {
|
|
25464
|
+
if (source == null)
|
|
25465
|
+
return {};
|
|
25466
|
+
var target = {};
|
|
25467
|
+
var sourceKeys = Object.keys(source);
|
|
25468
|
+
var key, i;
|
|
25469
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
25470
|
+
key = sourceKeys[i];
|
|
25471
|
+
if (excluded.indexOf(key) >= 0)
|
|
25472
|
+
continue;
|
|
25473
|
+
target[key] = source[key];
|
|
25474
|
+
}
|
|
25475
|
+
return target;
|
|
25476
|
+
}
|
|
25477
|
+
var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
25478
|
+
var icon = _param.icon, _param_size = _param.size, size = _param_size === void 0 ? "m" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "cancel-light" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$5(_param, [
|
|
25479
|
+
"icon",
|
|
25480
|
+
"size",
|
|
25481
|
+
"view",
|
|
25482
|
+
"isDisabled",
|
|
25483
|
+
"isActive",
|
|
25484
|
+
"isLoading",
|
|
25485
|
+
"type",
|
|
25486
|
+
"testId",
|
|
25487
|
+
"tweakStyles",
|
|
25488
|
+
"data",
|
|
25489
|
+
"onClick"
|
|
25490
|
+
]);
|
|
25491
|
+
var classes = useStyles$k({
|
|
25492
|
+
theme: tweakStyles
|
|
25493
|
+
});
|
|
25494
|
+
var hasNoAction = isDisabled || isLoading;
|
|
25495
|
+
var _obj;
|
|
25496
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$j(_object_spread$k({
|
|
25497
|
+
ref,
|
|
25498
|
+
className: clsx(classes.root, classes[view], classes[size], (_obj = {}, _define_property$l(_obj, classes.disabled, isDisabled), _define_property$l(_obj, classes.active, isActive), _define_property$l(_obj, classes.loading, isLoading), _obj)),
|
|
25499
|
+
type,
|
|
25500
|
+
disabled: isDisabled,
|
|
25501
|
+
onClick: hasNoAction ? void 0 : onClick
|
|
25502
|
+
}, restProps, addDataTestId(testId), addDataAttributes(data)), {
|
|
25503
|
+
children: isLoading ? /* @__PURE__ */ jsx("span", {
|
|
25504
|
+
className: classes.loader,
|
|
25505
|
+
children: /* @__PURE__ */ jsx(ThemedPreloader, {
|
|
25506
|
+
type: "default",
|
|
25507
|
+
useCurrentColor: true
|
|
25508
|
+
})
|
|
25509
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
25510
|
+
className: classes.icon,
|
|
25511
|
+
children: renderIcon(icon)
|
|
25512
|
+
})
|
|
25513
|
+
}));
|
|
25514
|
+
});
|
|
25463
25515
|
var BUTTONS_WIDTH = 36;
|
|
25464
25516
|
var BUTTONS_GAP = 2;
|
|
25465
25517
|
var useStyles$j = createThemedStyles("IncrementInput", {
|
|
@@ -25693,6 +25745,8 @@ var VERTICAL_OVERLAY_PADDING = 50;
|
|
|
25693
25745
|
var MODAL_HORIZONTAL_PADDING_L = 40;
|
|
25694
25746
|
var MODAL_HORIZONTAL_PADDING_M = 36;
|
|
25695
25747
|
var MODAL_HORIZONTAL_PADDING_S = 26;
|
|
25748
|
+
var MODAL_CLOSE_BUTTON_SIZE = 40;
|
|
25749
|
+
var MODAL_CLOSE_BUTTON_ICON_SIZE = 30;
|
|
25696
25750
|
var useStyles$i = createThemedStyles("Modal", {
|
|
25697
25751
|
root: {},
|
|
25698
25752
|
fixedPosition: {
|
|
@@ -25951,6 +26005,16 @@ var useStyles$i = createThemedStyles("Modal", {
|
|
|
25951
26005
|
extend: "animationEnd"
|
|
25952
26006
|
}
|
|
25953
26007
|
});
|
|
26008
|
+
var closeButtonStyles = {
|
|
26009
|
+
m: {
|
|
26010
|
+
width: MODAL_CLOSE_BUTTON_SIZE,
|
|
26011
|
+
height: MODAL_CLOSE_BUTTON_SIZE
|
|
26012
|
+
},
|
|
26013
|
+
icon: {
|
|
26014
|
+
width: MODAL_CLOSE_BUTTON_ICON_SIZE,
|
|
26015
|
+
height: MODAL_CLOSE_BUTTON_ICON_SIZE
|
|
26016
|
+
}
|
|
26017
|
+
};
|
|
25954
26018
|
function _array_like_to_array$9(arr, len) {
|
|
25955
26019
|
if (len == null || len > arr.length)
|
|
25956
26020
|
len = arr.length;
|
|
@@ -26120,6 +26184,7 @@ var Modal = function(_param) {
|
|
|
26120
26184
|
theme: tweakStyles
|
|
26121
26185
|
});
|
|
26122
26186
|
var tweakCloseButtonStyles = useTweakStyles({
|
|
26187
|
+
innerStyles: closeButtonStyles,
|
|
26123
26188
|
tweakStyles,
|
|
26124
26189
|
className: "tweakCloseButton",
|
|
26125
26190
|
currentComponentName: "Modal"
|
|
@@ -26199,10 +26264,12 @@ var Modal = function(_param) {
|
|
|
26199
26264
|
children: [
|
|
26200
26265
|
hasCloseButton && /* @__PURE__ */ jsx("div", {
|
|
26201
26266
|
className: classes.close,
|
|
26202
|
-
children: /* @__PURE__ */ jsx(
|
|
26267
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
26203
26268
|
testId: getTestId(testId, "close-button"),
|
|
26204
26269
|
tweakStyles: tweakCloseButtonStyles,
|
|
26205
|
-
|
|
26270
|
+
view: "cancel-light",
|
|
26271
|
+
icon: "close",
|
|
26272
|
+
onClick: onClose
|
|
26206
26273
|
})
|
|
26207
26274
|
}),
|
|
26208
26275
|
isReactNodeNotEmpty(title) && /* @__PURE__ */ jsx("h3", {
|
|
@@ -27469,8 +27536,8 @@ var PhoneInput = function(_param) {
|
|
|
27469
27536
|
var inputWrapper = useRef(null);
|
|
27470
27537
|
var inputRef = useRef(null);
|
|
27471
27538
|
var phoneWithCode = getFullPhone(value);
|
|
27472
|
-
var _value_countryCode;
|
|
27473
27539
|
var countryCode = useMemo(function() {
|
|
27540
|
+
var _value_countryCode;
|
|
27474
27541
|
return (_value_countryCode = value === null || value === void 0 ? void 0 : value.countryCode) !== null && _value_countryCode !== void 0 ? _value_countryCode : getCountryCodeFromPhone(phoneWithCode);
|
|
27475
27542
|
}, [
|
|
27476
27543
|
value.dialCode,
|
|
@@ -28000,8 +28067,8 @@ function Selector(param) {
|
|
|
28000
28067
|
}),
|
|
28001
28068
|
options.map(function(option) {
|
|
28002
28069
|
var optionId = option.value.toString();
|
|
28003
|
-
var
|
|
28004
|
-
var isDisabledOption = (
|
|
28070
|
+
var _option_isDisabled;
|
|
28071
|
+
var isDisabledOption = (_option_isDisabled = option.isDisabled) !== null && _option_isDisabled !== void 0 ? _option_isDisabled : isDisabled;
|
|
28005
28072
|
var isActiveOption = option.value === value;
|
|
28006
28073
|
var _obj2;
|
|
28007
28074
|
return /* @__PURE__ */ jsx("div", _object_spread_props$b(_object_spread$b({
|
|
@@ -29243,7 +29310,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
29243
29310
|
}
|
|
29244
29311
|
return target;
|
|
29245
29312
|
}
|
|
29246
|
-
var TextButton = function(_param) {
|
|
29313
|
+
var TextButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
29247
29314
|
var children = _param.children, icon = _param.icon, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isBold = _param.isBold, isBold = _param_isBold === void 0 ? false : _param_isBold, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_hasCircleUnderIcon = _param.hasCircleUnderIcon, hasCircleUnderIcon = _param_hasCircleUnderIcon === void 0 ? false : _param_hasCircleUnderIcon, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties(_param, [
|
|
29248
29315
|
"children",
|
|
29249
29316
|
"icon",
|
|
@@ -29274,10 +29341,11 @@ var TextButton = function(_param) {
|
|
|
29274
29341
|
var hasNoAction = isDisabled || isLoading;
|
|
29275
29342
|
var _obj;
|
|
29276
29343
|
return /* @__PURE__ */ jsxs("button", _object_spread_props$6(_object_spread$6({
|
|
29344
|
+
ref,
|
|
29345
|
+
type,
|
|
29277
29346
|
className: clsx(classes.root, classes[size], classes[view], (_obj = {}, _define_property$6(_obj, classes.bold, isBold), _define_property$6(_obj, classes.loading, isLoading), _define_property$6(_obj, classes.active, isActive), _define_property$6(_obj, classes.disabled, isDisabled), _obj)),
|
|
29278
|
-
onClick: !hasNoAction ? onClick : void 0,
|
|
29279
29347
|
disabled: hasNoAction,
|
|
29280
|
-
|
|
29348
|
+
onClick: !hasNoAction ? onClick : void 0
|
|
29281
29349
|
}, restProps, addDataTestId(testId), addDataAttributes(data)), {
|
|
29282
29350
|
children: [
|
|
29283
29351
|
/* @__PURE__ */ jsxs("span", {
|
|
@@ -29303,7 +29371,7 @@ var TextButton = function(_param) {
|
|
|
29303
29371
|
})
|
|
29304
29372
|
]
|
|
29305
29373
|
}));
|
|
29306
|
-
};
|
|
29374
|
+
});
|
|
29307
29375
|
var useStyles$5 = createThemedStyles("Tooltip", {
|
|
29308
29376
|
root: {
|
|
29309
29377
|
display: "inline-block",
|
|
@@ -29900,7 +29968,7 @@ function _object_spread_props$2(target, source) {
|
|
|
29900
29968
|
}
|
|
29901
29969
|
return target;
|
|
29902
29970
|
}
|
|
29903
|
-
|
|
29971
|
+
function _ts_generator(thisArg, body) {
|
|
29904
29972
|
var f, y, t, g, _ = {
|
|
29905
29973
|
label: 0,
|
|
29906
29974
|
sent: function() {
|
|
@@ -30001,7 +30069,7 @@ var __generator = globalThis && globalThis.__generator || function(thisArg, body
|
|
|
30001
30069
|
done: true
|
|
30002
30070
|
};
|
|
30003
30071
|
}
|
|
30004
|
-
}
|
|
30072
|
+
}
|
|
30005
30073
|
var Toaster = function(param) {
|
|
30006
30074
|
var title = param.title, _param_type = param.type, type = _param_type === void 0 ? "error" : _param_type, text = param.text, _param_timeout = param.timeout, timeout = _param_timeout === void 0 ? DEFAULT_TIMEOUT : _param_timeout, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, _param_hasCloseButton = param.hasCloseButton, hasCloseButton = _param_hasCloseButton === void 0 ? false : _param_hasCloseButton, _param_shouldCloseOnClick = param.shouldCloseOnClick, shouldCloseOnClick = _param_shouldCloseOnClick === void 0 ? false : _param_shouldCloseOnClick, children = param.children, onClose = param.onClose, onTimeEnd = param.onTimeEnd;
|
|
30007
30075
|
var classes = useStyles$2({
|
|
@@ -30019,7 +30087,7 @@ var Toaster = function(param) {
|
|
|
30019
30087
|
}
|
|
30020
30088
|
var disappear = function() {
|
|
30021
30089
|
var _ref = _async_to_generator(function() {
|
|
30022
|
-
return
|
|
30090
|
+
return _ts_generator(this, function(_state) {
|
|
30023
30091
|
switch (_state.label) {
|
|
30024
30092
|
case 0:
|
|
30025
30093
|
return [
|
|
@@ -30078,10 +30146,11 @@ var Toaster = function(param) {
|
|
|
30078
30146
|
}),
|
|
30079
30147
|
hasCloseButton && isNotEmpty(onClose) && /* @__PURE__ */ jsx("div", {
|
|
30080
30148
|
className: classes.close,
|
|
30081
|
-
children: /* @__PURE__ */ jsx(
|
|
30082
|
-
|
|
30083
|
-
|
|
30084
|
-
tweakStyles: tweakCloseButtonStyles
|
|
30149
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
30150
|
+
view: "cancel-light",
|
|
30151
|
+
icon: "close-window",
|
|
30152
|
+
tweakStyles: tweakCloseButtonStyles,
|
|
30153
|
+
onClick: onClose
|
|
30085
30154
|
})
|
|
30086
30155
|
})
|
|
30087
30156
|
]
|
|
@@ -30455,6 +30524,7 @@ export {
|
|
|
30455
30524
|
Flag,
|
|
30456
30525
|
FlexibleTable,
|
|
30457
30526
|
Icon,
|
|
30527
|
+
IconButton,
|
|
30458
30528
|
IncrementInput,
|
|
30459
30529
|
Input,
|
|
30460
30530
|
List,
|