@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
|
@@ -80,28 +80,28 @@
|
|
|
80
80
|
return null;
|
|
81
81
|
}
|
|
82
82
|
var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
83
|
-
function error(
|
|
83
|
+
function error(format) {
|
|
84
84
|
{
|
|
85
85
|
{
|
|
86
86
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
87
87
|
args[_key2 - 1] = arguments[_key2];
|
|
88
88
|
}
|
|
89
|
-
printWarning("error",
|
|
89
|
+
printWarning("error", format, args);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
function printWarning(level,
|
|
93
|
+
function printWarning(level, format, args) {
|
|
94
94
|
{
|
|
95
95
|
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
96
96
|
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
97
97
|
if (stack !== "") {
|
|
98
|
-
|
|
98
|
+
format += "%s";
|
|
99
99
|
args = args.concat([stack]);
|
|
100
100
|
}
|
|
101
101
|
var argsWithFormat = args.map(function(item) {
|
|
102
102
|
return String(item);
|
|
103
103
|
});
|
|
104
|
-
argsWithFormat.unshift("Warning: " +
|
|
104
|
+
argsWithFormat.unshift("Warning: " + format);
|
|
105
105
|
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -1859,7 +1859,7 @@
|
|
|
1859
1859
|
baseMerge(object, source, srcIndex);
|
|
1860
1860
|
});
|
|
1861
1861
|
const merge$1 = merge;
|
|
1862
|
-
function _define_property
|
|
1862
|
+
function _define_property$$(obj, key, value) {
|
|
1863
1863
|
if (key in obj) {
|
|
1864
1864
|
Object.defineProperty(obj, key, {
|
|
1865
1865
|
value,
|
|
@@ -1872,7 +1872,7 @@
|
|
|
1872
1872
|
}
|
|
1873
1873
|
return obj;
|
|
1874
1874
|
}
|
|
1875
|
-
function _object_spread$
|
|
1875
|
+
function _object_spread$_(target) {
|
|
1876
1876
|
for (var i = 1; i < arguments.length; i++) {
|
|
1877
1877
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1878
1878
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1882,12 +1882,12 @@
|
|
|
1882
1882
|
}));
|
|
1883
1883
|
}
|
|
1884
1884
|
ownKeys2.forEach(function(key) {
|
|
1885
|
-
_define_property
|
|
1885
|
+
_define_property$$(target, key, source[key]);
|
|
1886
1886
|
});
|
|
1887
1887
|
}
|
|
1888
1888
|
return target;
|
|
1889
1889
|
}
|
|
1890
|
-
function ownKeys$
|
|
1890
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
1891
1891
|
var keys2 = Object.keys(object);
|
|
1892
1892
|
if (Object.getOwnPropertySymbols) {
|
|
1893
1893
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1900,12 +1900,12 @@
|
|
|
1900
1900
|
}
|
|
1901
1901
|
return keys2;
|
|
1902
1902
|
}
|
|
1903
|
-
function _object_spread_props$
|
|
1903
|
+
function _object_spread_props$P(target, source) {
|
|
1904
1904
|
source = source != null ? source : {};
|
|
1905
1905
|
if (Object.getOwnPropertyDescriptors) {
|
|
1906
1906
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1907
1907
|
} else {
|
|
1908
|
-
ownKeys$
|
|
1908
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
1909
1909
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1910
1910
|
});
|
|
1911
1911
|
}
|
|
@@ -1960,7 +1960,7 @@
|
|
|
1960
1960
|
return trueReactPlatformHelpers.mergeStyles(styles, trueReactPlatformHelpers.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);
|
|
1961
1961
|
});
|
|
1962
1962
|
return function(data) {
|
|
1963
|
-
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$
|
|
1963
|
+
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$P(_object_spread$_({}, data), {
|
|
1964
1964
|
theme: cleanStyles(data.theme)
|
|
1965
1965
|
}) : data);
|
|
1966
1966
|
};
|
|
@@ -4656,8 +4656,8 @@
|
|
|
4656
4656
|
return v.startsWith(checkValue);
|
|
4657
4657
|
});
|
|
4658
4658
|
};
|
|
4659
|
-
var _phone_dialCode, _phone_phoneNumber;
|
|
4660
4659
|
var getFullPhone = function(phone) {
|
|
4660
|
+
var _phone_dialCode, _phone_phoneNumber;
|
|
4661
4661
|
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 : "");
|
|
4662
4662
|
};
|
|
4663
4663
|
var getCountryCodeFromPhone = function(phoneWithCode) {
|
|
@@ -4669,10 +4669,10 @@
|
|
|
4669
4669
|
})) === null || _phoneInfo_find === void 0 ? void 0 : _phoneInfo_find.countryCode;
|
|
4670
4670
|
if (trueReactPlatformHelpers.isEmpty(countryCode) && trueReactPlatformHelpers.isNotEmpty(phoneWithCode)) {
|
|
4671
4671
|
var _phoneInfo_filter_sort_;
|
|
4672
|
-
var _infoA_dialCodePriority, _infoB_dialCodePriority;
|
|
4673
4672
|
countryCode = (_phoneInfo_filter_sort_ = phoneInfo.filter(function(info) {
|
|
4674
4673
|
return phoneWithCode.startsWith(info.dialCode);
|
|
4675
4674
|
}).sort(function(infoA, infoB) {
|
|
4675
|
+
var _infoA_dialCodePriority, _infoB_dialCodePriority;
|
|
4676
4676
|
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);
|
|
4677
4677
|
})[0]) === null || _phoneInfo_filter_sort_ === void 0 ? void 0 : _phoneInfo_filter_sort_.countryCode;
|
|
4678
4678
|
}
|
|
@@ -4783,8 +4783,8 @@
|
|
|
4783
4783
|
}
|
|
4784
4784
|
return hasExactParent(parentNode, parent);
|
|
4785
4785
|
};
|
|
4786
|
-
var _element_parentNode;
|
|
4787
4786
|
var getParentNode$1 = function(element) {
|
|
4787
|
+
var _element_parentNode;
|
|
4788
4788
|
return element.nodeName === "HTML" || element === document ? element : (_element_parentNode = element.parentNode) !== null && _element_parentNode !== void 0 ? _element_parentNode : element.host;
|
|
4789
4789
|
};
|
|
4790
4790
|
var getStyleComputedProperty = function(element) {
|
|
@@ -4980,21 +4980,19 @@
|
|
|
4980
4980
|
return target;
|
|
4981
4981
|
}
|
|
4982
4982
|
function useMounted() {
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
});
|
|
4987
|
-
React.useEffect(function() {
|
|
4983
|
+
const mounted = React.useRef(true);
|
|
4984
|
+
const isMounted = React.useRef(() => mounted.current);
|
|
4985
|
+
React.useEffect(() => {
|
|
4988
4986
|
mounted.current = true;
|
|
4989
|
-
return
|
|
4987
|
+
return () => {
|
|
4990
4988
|
mounted.current = false;
|
|
4991
4989
|
};
|
|
4992
4990
|
}, []);
|
|
4993
4991
|
return isMounted.current;
|
|
4994
4992
|
}
|
|
4995
4993
|
function useSafeState(state) {
|
|
4996
|
-
|
|
4997
|
-
return [state[0], React.useCallback(
|
|
4994
|
+
const isMounted = useMounted();
|
|
4995
|
+
return [state[0], React.useCallback((nextState) => {
|
|
4998
4996
|
if (!isMounted())
|
|
4999
4997
|
return;
|
|
5000
4998
|
return state[1](nextState);
|
|
@@ -5278,15 +5276,7 @@
|
|
|
5278
5276
|
return;
|
|
5279
5277
|
}
|
|
5280
5278
|
}
|
|
5281
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5282
|
-
if (!isHTMLElement(arrowElement)) {
|
|
5283
|
-
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(" "));
|
|
5284
|
-
}
|
|
5285
|
-
}
|
|
5286
5279
|
if (!contains(state.elements.popper, arrowElement)) {
|
|
5287
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5288
|
-
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
|
|
5289
|
-
}
|
|
5290
5280
|
return;
|
|
5291
5281
|
}
|
|
5292
5282
|
state.elements.arrow = arrowElement;
|
|
@@ -5387,14 +5377,6 @@
|
|
|
5387
5377
|
function computeStyles(_ref5) {
|
|
5388
5378
|
var state = _ref5.state, options = _ref5.options;
|
|
5389
5379
|
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;
|
|
5390
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5391
|
-
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || "";
|
|
5392
|
-
if (adaptive && ["transform", "top", "right", "bottom", "left"].some(function(property) {
|
|
5393
|
-
return transitionProperty.indexOf(property) >= 0;
|
|
5394
|
-
})) {
|
|
5395
|
-
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(" "));
|
|
5396
|
-
}
|
|
5397
|
-
}
|
|
5398
5380
|
var commonStyles = {
|
|
5399
5381
|
placement: getBasePlacement(state.placement),
|
|
5400
5382
|
variation: getVariation(state.placement),
|
|
@@ -5723,9 +5705,6 @@
|
|
|
5723
5705
|
});
|
|
5724
5706
|
if (allowedPlacements.length === 0) {
|
|
5725
5707
|
allowedPlacements = placements$1;
|
|
5726
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5727
|
-
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(" "));
|
|
5728
|
-
}
|
|
5729
5708
|
}
|
|
5730
5709
|
var overflows = allowedPlacements.reduce(function(acc, placement2) {
|
|
5731
5710
|
acc[placement2] = detectOverflow(state, {
|
|
@@ -6147,86 +6126,6 @@
|
|
|
6147
6126
|
return pending;
|
|
6148
6127
|
};
|
|
6149
6128
|
}
|
|
6150
|
-
function format(str) {
|
|
6151
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
6152
|
-
args[_key - 1] = arguments[_key];
|
|
6153
|
-
}
|
|
6154
|
-
return [].concat(args).reduce(function(p, c) {
|
|
6155
|
-
return p.replace(/%s/, c);
|
|
6156
|
-
}, str);
|
|
6157
|
-
}
|
|
6158
|
-
var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
|
|
6159
|
-
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
|
|
6160
|
-
var VALID_PROPERTIES = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
6161
|
-
function validateModifiers(modifiers) {
|
|
6162
|
-
modifiers.forEach(function(modifier) {
|
|
6163
|
-
[].concat(Object.keys(modifier), VALID_PROPERTIES).filter(function(value, index, self2) {
|
|
6164
|
-
return self2.indexOf(value) === index;
|
|
6165
|
-
}).forEach(function(key) {
|
|
6166
|
-
switch (key) {
|
|
6167
|
-
case "name":
|
|
6168
|
-
if (typeof modifier.name !== "string") {
|
|
6169
|
-
console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', '"' + String(modifier.name) + '"'));
|
|
6170
|
-
}
|
|
6171
|
-
break;
|
|
6172
|
-
case "enabled":
|
|
6173
|
-
if (typeof modifier.enabled !== "boolean") {
|
|
6174
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', '"' + String(modifier.enabled) + '"'));
|
|
6175
|
-
}
|
|
6176
|
-
break;
|
|
6177
|
-
case "phase":
|
|
6178
|
-
if (modifierPhases.indexOf(modifier.phase) < 0) {
|
|
6179
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(", "), '"' + String(modifier.phase) + '"'));
|
|
6180
|
-
}
|
|
6181
|
-
break;
|
|
6182
|
-
case "fn":
|
|
6183
|
-
if (typeof modifier.fn !== "function") {
|
|
6184
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', '"' + String(modifier.fn) + '"'));
|
|
6185
|
-
}
|
|
6186
|
-
break;
|
|
6187
|
-
case "effect":
|
|
6188
|
-
if (modifier.effect != null && typeof modifier.effect !== "function") {
|
|
6189
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', '"' + String(modifier.fn) + '"'));
|
|
6190
|
-
}
|
|
6191
|
-
break;
|
|
6192
|
-
case "requires":
|
|
6193
|
-
if (modifier.requires != null && !Array.isArray(modifier.requires)) {
|
|
6194
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', '"' + String(modifier.requires) + '"'));
|
|
6195
|
-
}
|
|
6196
|
-
break;
|
|
6197
|
-
case "requiresIfExists":
|
|
6198
|
-
if (!Array.isArray(modifier.requiresIfExists)) {
|
|
6199
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', '"' + String(modifier.requiresIfExists) + '"'));
|
|
6200
|
-
}
|
|
6201
|
-
break;
|
|
6202
|
-
case "options":
|
|
6203
|
-
case "data":
|
|
6204
|
-
break;
|
|
6205
|
-
default:
|
|
6206
|
-
console.error('PopperJS: an invalid property has been provided to the "' + modifier.name + '" modifier, valid properties are ' + VALID_PROPERTIES.map(function(s) {
|
|
6207
|
-
return '"' + s + '"';
|
|
6208
|
-
}).join(", ") + '; but "' + key + '" was provided.');
|
|
6209
|
-
}
|
|
6210
|
-
modifier.requires && modifier.requires.forEach(function(requirement) {
|
|
6211
|
-
if (modifiers.find(function(mod) {
|
|
6212
|
-
return mod.name === requirement;
|
|
6213
|
-
}) == null) {
|
|
6214
|
-
console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
|
|
6215
|
-
}
|
|
6216
|
-
});
|
|
6217
|
-
});
|
|
6218
|
-
});
|
|
6219
|
-
}
|
|
6220
|
-
function uniqueBy(arr, fn) {
|
|
6221
|
-
var identifiers = /* @__PURE__ */ new Set();
|
|
6222
|
-
return arr.filter(function(item) {
|
|
6223
|
-
var identifier = fn(item);
|
|
6224
|
-
if (!identifiers.has(identifier)) {
|
|
6225
|
-
identifiers.add(identifier);
|
|
6226
|
-
return true;
|
|
6227
|
-
}
|
|
6228
|
-
});
|
|
6229
|
-
}
|
|
6230
6129
|
function mergeByName(modifiers) {
|
|
6231
6130
|
var merged = modifiers.reduce(function(merged2, current) {
|
|
6232
6131
|
var existing = merged2[current.name];
|
|
@@ -6240,8 +6139,6 @@
|
|
|
6240
6139
|
return merged[key];
|
|
6241
6140
|
});
|
|
6242
6141
|
}
|
|
6243
|
-
var INVALID_ELEMENT_ERROR = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.";
|
|
6244
|
-
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.";
|
|
6245
6142
|
var DEFAULT_OPTIONS = {
|
|
6246
6143
|
placement: "bottom",
|
|
6247
6144
|
modifiers: [],
|
|
@@ -6292,28 +6189,6 @@
|
|
|
6292
6189
|
state.orderedModifiers = orderedModifiers.filter(function(m) {
|
|
6293
6190
|
return m.enabled;
|
|
6294
6191
|
});
|
|
6295
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6296
|
-
var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function(_ref) {
|
|
6297
|
-
var name = _ref.name;
|
|
6298
|
-
return name;
|
|
6299
|
-
});
|
|
6300
|
-
validateModifiers(modifiers);
|
|
6301
|
-
if (getBasePlacement(state.options.placement) === auto) {
|
|
6302
|
-
var flipModifier = state.orderedModifiers.find(function(_ref2) {
|
|
6303
|
-
var name = _ref2.name;
|
|
6304
|
-
return name === "flip";
|
|
6305
|
-
});
|
|
6306
|
-
if (!flipModifier) {
|
|
6307
|
-
console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
|
|
6308
|
-
}
|
|
6309
|
-
}
|
|
6310
|
-
var _getComputedStyle = getComputedStyle$1(popper2), marginTop = _getComputedStyle.marginTop, marginRight = _getComputedStyle.marginRight, marginBottom = _getComputedStyle.marginBottom, marginLeft = _getComputedStyle.marginLeft;
|
|
6311
|
-
if ([marginTop, marginRight, marginBottom, marginLeft].some(function(margin) {
|
|
6312
|
-
return parseFloat(margin);
|
|
6313
|
-
})) {
|
|
6314
|
-
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(" "));
|
|
6315
|
-
}
|
|
6316
|
-
}
|
|
6317
6192
|
runModifierEffects();
|
|
6318
6193
|
return instance.update();
|
|
6319
6194
|
},
|
|
@@ -6328,9 +6203,6 @@
|
|
|
6328
6203
|
}
|
|
6329
6204
|
var _state$elements = state.elements, reference3 = _state$elements.reference, popper3 = _state$elements.popper;
|
|
6330
6205
|
if (!areValidElements(reference3, popper3)) {
|
|
6331
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6332
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
6333
|
-
}
|
|
6334
6206
|
return;
|
|
6335
6207
|
}
|
|
6336
6208
|
state.rects = {
|
|
@@ -6342,15 +6214,7 @@
|
|
|
6342
6214
|
state.orderedModifiers.forEach(function(modifier) {
|
|
6343
6215
|
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
6344
6216
|
});
|
|
6345
|
-
var __debug_loops__ = 0;
|
|
6346
6217
|
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
6347
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6348
|
-
__debug_loops__ += 1;
|
|
6349
|
-
if (__debug_loops__ > 100) {
|
|
6350
|
-
console.error(INFINITE_LOOP_ERROR);
|
|
6351
|
-
break;
|
|
6352
|
-
}
|
|
6353
|
-
}
|
|
6354
6218
|
if (state.reset === true) {
|
|
6355
6219
|
state.reset = false;
|
|
6356
6220
|
index = -1;
|
|
@@ -6381,9 +6245,6 @@
|
|
|
6381
6245
|
}
|
|
6382
6246
|
};
|
|
6383
6247
|
if (!areValidElements(reference2, popper2)) {
|
|
6384
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6385
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
6386
|
-
}
|
|
6387
6248
|
return instance;
|
|
6388
6249
|
}
|
|
6389
6250
|
instance.setOptions(options).then(function(state2) {
|
|
@@ -6392,8 +6253,8 @@
|
|
|
6392
6253
|
}
|
|
6393
6254
|
});
|
|
6394
6255
|
function runModifierEffects() {
|
|
6395
|
-
state.orderedModifiers.forEach(function(
|
|
6396
|
-
var name =
|
|
6256
|
+
state.orderedModifiers.forEach(function(_ref) {
|
|
6257
|
+
var name = _ref.name, _ref$options = _ref.options, options2 = _ref$options === void 0 ? {} : _ref$options, effect2 = _ref.effect;
|
|
6397
6258
|
if (typeof effect2 === "function") {
|
|
6398
6259
|
var cleanupFn = effect2({
|
|
6399
6260
|
state,
|
|
@@ -6558,7 +6419,7 @@
|
|
|
6558
6419
|
if (Array.isArray(arr))
|
|
6559
6420
|
return _array_like_to_array$q(arr);
|
|
6560
6421
|
}
|
|
6561
|
-
function _define_property$
|
|
6422
|
+
function _define_property$_(obj, key, value) {
|
|
6562
6423
|
if (key in obj) {
|
|
6563
6424
|
Object.defineProperty(obj, key, {
|
|
6564
6425
|
value,
|
|
@@ -6578,7 +6439,7 @@
|
|
|
6578
6439
|
function _non_iterable_spread$7() {
|
|
6579
6440
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6580
6441
|
}
|
|
6581
|
-
function _object_spread$
|
|
6442
|
+
function _object_spread$Z(target) {
|
|
6582
6443
|
for (var i = 1; i < arguments.length; i++) {
|
|
6583
6444
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6584
6445
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6588,7 +6449,7 @@
|
|
|
6588
6449
|
}));
|
|
6589
6450
|
}
|
|
6590
6451
|
ownKeys2.forEach(function(key) {
|
|
6591
|
-
_define_property$
|
|
6452
|
+
_define_property$_(target, key, source[key]);
|
|
6592
6453
|
});
|
|
6593
6454
|
}
|
|
6594
6455
|
return target;
|
|
@@ -6644,7 +6505,7 @@
|
|
|
6644
6505
|
},
|
|
6645
6506
|
{
|
|
6646
6507
|
name: "flip",
|
|
6647
|
-
options: _object_spread$
|
|
6508
|
+
options: _object_spread$Z({
|
|
6648
6509
|
fallbackPlacements: canBeFlipped ? [
|
|
6649
6510
|
"bottom-start",
|
|
6650
6511
|
"top-start"
|
|
@@ -6666,7 +6527,7 @@
|
|
|
6666
6527
|
var useTweakStyles = function(param) {
|
|
6667
6528
|
var innerStyles = param.innerStyles, currentComponentTweakStyles = param.tweakStyles, className = param.className, currentComponentName = param.currentComponentName;
|
|
6668
6529
|
return React.useMemo(function() {
|
|
6669
|
-
var
|
|
6530
|
+
var _theme_components_currentComponentName, _theme_components;
|
|
6670
6531
|
var theme = getTheme();
|
|
6671
6532
|
var themeStyles = trueReactPlatformHelpers.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;
|
|
6672
6533
|
var tweakStyles = currentComponentTweakStyles === null || currentComponentTweakStyles === void 0 ? void 0 : currentComponentTweakStyles[className];
|
|
@@ -6718,68 +6579,68 @@
|
|
|
6718
6579
|
return trueReactPlatformHelpers.mergeRefs(refs);
|
|
6719
6580
|
}, refs);
|
|
6720
6581
|
};
|
|
6721
|
-
const avatarGreen = ` <svg
|
|
6722
|
-
width="100%"
|
|
6723
|
-
height="100%"
|
|
6724
|
-
viewBox="0 0 32 32"
|
|
6725
|
-
fill="none"
|
|
6726
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6727
|
-
|
|
6728
|
-
<circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED"
|
|
6729
|
-
<mask
|
|
6730
|
-
id="mask0_0_12744"
|
|
6731
|
-
style="mask-type: 'alpha';"
|
|
6732
|
-
maskUnits="userSpaceOnUse"
|
|
6733
|
-
x="0"
|
|
6734
|
-
y="0"
|
|
6735
|
-
width="32"
|
|
6736
|
-
height="32"
|
|
6737
|
-
|
|
6738
|
-
<circle cx="16" cy="16" r="16" fill="white"
|
|
6739
|
-
</mask
|
|
6740
|
-
<g mask="url(#mask0_0_12744)"
|
|
6741
|
-
<circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)"
|
|
6742
|
-
<mask
|
|
6743
|
-
id="mask1_0_12744"
|
|
6744
|
-
style="mask-type: 'alpha';"
|
|
6745
|
-
maskUnits="userSpaceOnUse"
|
|
6746
|
-
x="3"
|
|
6747
|
-
y="16"
|
|
6748
|
-
width="26"
|
|
6749
|
-
height="26"
|
|
6750
|
-
|
|
6751
|
-
<circle cx="16" cy="29" r="13" fill="white"
|
|
6752
|
-
</mask
|
|
6753
|
-
<g mask="url(#mask1_0_12744)"
|
|
6754
|
-
<ellipse
|
|
6755
|
-
cx="16"
|
|
6756
|
-
cy="17.5"
|
|
6757
|
-
rx="6"
|
|
6758
|
-
ry="7.5"
|
|
6759
|
-
fill="#505F79"
|
|
6760
|
-
fill-opacity="0.204983"
|
|
6761
|
-
|
|
6762
|
-
</g
|
|
6763
|
-
</g
|
|
6764
|
-
<ellipse cx="16" cy="13" rx="6" ry="7" fill="white"
|
|
6765
|
-
<defs
|
|
6766
|
-
<linearGradient
|
|
6767
|
-
id="paint0_linear_0_12744"
|
|
6768
|
-
x1="13.347"
|
|
6769
|
-
y1="46.279"
|
|
6770
|
-
x2="33.5318"
|
|
6771
|
-
y2="30.8088"
|
|
6772
|
-
gradientUnits="userSpaceOnUse"
|
|
6773
|
-
|
|
6774
|
-
<stop stop-color="#ABD229"
|
|
6775
|
-
<stop offset="1" stop-color="#9CD03F"
|
|
6776
|
-
</linearGradient
|
|
6777
|
-
</defs
|
|
6582
|
+
const avatarGreen = ` <svg
|
|
6583
|
+
width="100%"
|
|
6584
|
+
height="100%"
|
|
6585
|
+
viewBox="0 0 32 32"
|
|
6586
|
+
fill="none"
|
|
6587
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6588
|
+
>
|
|
6589
|
+
<circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />
|
|
6590
|
+
<mask
|
|
6591
|
+
id="mask0_0_12744"
|
|
6592
|
+
style="mask-type: 'alpha';"
|
|
6593
|
+
maskUnits="userSpaceOnUse"
|
|
6594
|
+
x="0"
|
|
6595
|
+
y="0"
|
|
6596
|
+
width="32"
|
|
6597
|
+
height="32"
|
|
6598
|
+
>
|
|
6599
|
+
<circle cx="16" cy="16" r="16" fill="white" />
|
|
6600
|
+
</mask>
|
|
6601
|
+
<g mask="url(#mask0_0_12744)">
|
|
6602
|
+
<circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />
|
|
6603
|
+
<mask
|
|
6604
|
+
id="mask1_0_12744"
|
|
6605
|
+
style="mask-type: 'alpha';"
|
|
6606
|
+
maskUnits="userSpaceOnUse"
|
|
6607
|
+
x="3"
|
|
6608
|
+
y="16"
|
|
6609
|
+
width="26"
|
|
6610
|
+
height="26"
|
|
6611
|
+
>
|
|
6612
|
+
<circle cx="16" cy="29" r="13" fill="white" />
|
|
6613
|
+
</mask>
|
|
6614
|
+
<g mask="url(#mask1_0_12744)">
|
|
6615
|
+
<ellipse
|
|
6616
|
+
cx="16"
|
|
6617
|
+
cy="17.5"
|
|
6618
|
+
rx="6"
|
|
6619
|
+
ry="7.5"
|
|
6620
|
+
fill="#505F79"
|
|
6621
|
+
fill-opacity="0.204983"
|
|
6622
|
+
/>
|
|
6623
|
+
</g>
|
|
6624
|
+
</g>
|
|
6625
|
+
<ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />
|
|
6626
|
+
<defs>
|
|
6627
|
+
<linearGradient
|
|
6628
|
+
id="paint0_linear_0_12744"
|
|
6629
|
+
x1="13.347"
|
|
6630
|
+
y1="46.279"
|
|
6631
|
+
x2="33.5318"
|
|
6632
|
+
y2="30.8088"
|
|
6633
|
+
gradientUnits="userSpaceOnUse"
|
|
6634
|
+
>
|
|
6635
|
+
<stop stop-color="#ABD229" />
|
|
6636
|
+
<stop offset="1" stop-color="#9CD03F" />
|
|
6637
|
+
</linearGradient>
|
|
6638
|
+
</defs>
|
|
6778
6639
|
</svg>`;
|
|
6779
6640
|
var complexIcons = {
|
|
6780
6641
|
avatar: avatarGreen
|
|
6781
6642
|
};
|
|
6782
|
-
function _define_property$
|
|
6643
|
+
function _define_property$Z(obj, key, value) {
|
|
6783
6644
|
if (key in obj) {
|
|
6784
6645
|
Object.defineProperty(obj, key, {
|
|
6785
6646
|
value,
|
|
@@ -6792,7 +6653,7 @@
|
|
|
6792
6653
|
}
|
|
6793
6654
|
return obj;
|
|
6794
6655
|
}
|
|
6795
|
-
function _object_spread$
|
|
6656
|
+
function _object_spread$Y(target) {
|
|
6796
6657
|
for (var i = 1; i < arguments.length; i++) {
|
|
6797
6658
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6798
6659
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6802,7 +6663,7 @@
|
|
|
6802
6663
|
}));
|
|
6803
6664
|
}
|
|
6804
6665
|
ownKeys2.forEach(function(key) {
|
|
6805
|
-
_define_property$
|
|
6666
|
+
_define_property$Z(target, key, source[key]);
|
|
6806
6667
|
});
|
|
6807
6668
|
}
|
|
6808
6669
|
return target;
|
|
@@ -6811,7 +6672,7 @@
|
|
|
6811
6672
|
var type = param.type;
|
|
6812
6673
|
var theme = React.useContext(ThemeContext).theme;
|
|
6813
6674
|
var icons = React.useMemo(function() {
|
|
6814
|
-
return _object_spread$
|
|
6675
|
+
return _object_spread$Y({}, complexIcons, theme.complexIcons);
|
|
6815
6676
|
}, []);
|
|
6816
6677
|
var ComplexIcon = icons[type];
|
|
6817
6678
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -7683,7 +7544,7 @@
|
|
|
7683
7544
|
]
|
|
7684
7545
|
}
|
|
7685
7546
|
});
|
|
7686
|
-
function _define_property$
|
|
7547
|
+
function _define_property$Y(obj, key, value) {
|
|
7687
7548
|
if (key in obj) {
|
|
7688
7549
|
Object.defineProperty(obj, key, {
|
|
7689
7550
|
value,
|
|
@@ -7696,7 +7557,7 @@
|
|
|
7696
7557
|
}
|
|
7697
7558
|
return obj;
|
|
7698
7559
|
}
|
|
7699
|
-
function _object_spread$
|
|
7560
|
+
function _object_spread$X(target) {
|
|
7700
7561
|
for (var i = 1; i < arguments.length; i++) {
|
|
7701
7562
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7702
7563
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7706,12 +7567,12 @@
|
|
|
7706
7567
|
}));
|
|
7707
7568
|
}
|
|
7708
7569
|
ownKeys2.forEach(function(key) {
|
|
7709
|
-
_define_property$
|
|
7570
|
+
_define_property$Y(target, key, source[key]);
|
|
7710
7571
|
});
|
|
7711
7572
|
}
|
|
7712
7573
|
return target;
|
|
7713
7574
|
}
|
|
7714
|
-
function ownKeys$
|
|
7575
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
7715
7576
|
var keys2 = Object.keys(object);
|
|
7716
7577
|
if (Object.getOwnPropertySymbols) {
|
|
7717
7578
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7724,12 +7585,12 @@
|
|
|
7724
7585
|
}
|
|
7725
7586
|
return keys2;
|
|
7726
7587
|
}
|
|
7727
|
-
function _object_spread_props$
|
|
7588
|
+
function _object_spread_props$O(target, source) {
|
|
7728
7589
|
source = source != null ? source : {};
|
|
7729
7590
|
if (Object.getOwnPropertyDescriptors) {
|
|
7730
7591
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7731
7592
|
} else {
|
|
7732
|
-
ownKeys$
|
|
7593
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
7733
7594
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7734
7595
|
});
|
|
7735
7596
|
}
|
|
@@ -7740,10 +7601,10 @@
|
|
|
7740
7601
|
var _icon_paths, _icon_rects, _icon_circles;
|
|
7741
7602
|
var theme = React.useContext(ThemeContext).theme;
|
|
7742
7603
|
var icons = React.useMemo(function() {
|
|
7743
|
-
return _object_spread$
|
|
7604
|
+
return _object_spread$X({}, iconsList, theme.icons);
|
|
7744
7605
|
}, []);
|
|
7745
7606
|
var icon = icons[type];
|
|
7746
|
-
var _icon_viewBox
|
|
7607
|
+
var _icon_viewBox;
|
|
7747
7608
|
return /* @__PURE__ */ jsxs("svg", {
|
|
7748
7609
|
width: "100%",
|
|
7749
7610
|
height: "100%",
|
|
@@ -7752,7 +7613,8 @@
|
|
|
7752
7613
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7753
7614
|
children: [
|
|
7754
7615
|
(_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) {
|
|
7755
|
-
|
|
7616
|
+
var _path_fill, _path_stroke;
|
|
7617
|
+
return jsx("path", _object_spread$X({
|
|
7756
7618
|
fillRule: "evenodd",
|
|
7757
7619
|
clipRule: "evenodd",
|
|
7758
7620
|
fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor",
|
|
@@ -7760,25 +7622,25 @@
|
|
|
7760
7622
|
}, path), index);
|
|
7761
7623
|
}),
|
|
7762
7624
|
(_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
|
|
7763
|
-
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$
|
|
7625
|
+
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$O(_object_spread$X({}, rect), {
|
|
7764
7626
|
key: index
|
|
7765
7627
|
}));
|
|
7766
7628
|
}),
|
|
7767
7629
|
(_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
|
|
7768
|
-
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$
|
|
7630
|
+
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$O(_object_spread$X({}, circle), {
|
|
7769
7631
|
key: index
|
|
7770
7632
|
}));
|
|
7771
7633
|
})
|
|
7772
7634
|
]
|
|
7773
7635
|
});
|
|
7774
7636
|
};
|
|
7775
|
-
var useStyles$
|
|
7637
|
+
var useStyles$T = createThemedStyles("Icon", {
|
|
7776
7638
|
root: {
|
|
7777
7639
|
display: "flex",
|
|
7778
7640
|
alignItems: "center"
|
|
7779
7641
|
}
|
|
7780
7642
|
});
|
|
7781
|
-
function _define_property$
|
|
7643
|
+
function _define_property$X(obj, key, value) {
|
|
7782
7644
|
if (key in obj) {
|
|
7783
7645
|
Object.defineProperty(obj, key, {
|
|
7784
7646
|
value,
|
|
@@ -7791,7 +7653,7 @@
|
|
|
7791
7653
|
}
|
|
7792
7654
|
return obj;
|
|
7793
7655
|
}
|
|
7794
|
-
function _object_spread$
|
|
7656
|
+
function _object_spread$W(target) {
|
|
7795
7657
|
for (var i = 1; i < arguments.length; i++) {
|
|
7796
7658
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7797
7659
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7801,12 +7663,12 @@
|
|
|
7801
7663
|
}));
|
|
7802
7664
|
}
|
|
7803
7665
|
ownKeys2.forEach(function(key) {
|
|
7804
|
-
_define_property$
|
|
7666
|
+
_define_property$X(target, key, source[key]);
|
|
7805
7667
|
});
|
|
7806
7668
|
}
|
|
7807
7669
|
return target;
|
|
7808
7670
|
}
|
|
7809
|
-
function ownKeys$
|
|
7671
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
7810
7672
|
var keys2 = Object.keys(object);
|
|
7811
7673
|
if (Object.getOwnPropertySymbols) {
|
|
7812
7674
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7819,12 +7681,12 @@
|
|
|
7819
7681
|
}
|
|
7820
7682
|
return keys2;
|
|
7821
7683
|
}
|
|
7822
|
-
function _object_spread_props$
|
|
7684
|
+
function _object_spread_props$N(target, source) {
|
|
7823
7685
|
source = source != null ? source : {};
|
|
7824
7686
|
if (Object.getOwnPropertyDescriptors) {
|
|
7825
7687
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7826
7688
|
} else {
|
|
7827
|
-
ownKeys$
|
|
7689
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
7828
7690
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7829
7691
|
});
|
|
7830
7692
|
}
|
|
@@ -7832,10 +7694,10 @@
|
|
|
7832
7694
|
}
|
|
7833
7695
|
var Icon = function(param) {
|
|
7834
7696
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7835
|
-
var classes = useStyles$
|
|
7697
|
+
var classes = useStyles$T({
|
|
7836
7698
|
theme: tweakStyles
|
|
7837
7699
|
});
|
|
7838
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7700
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$N(_object_spread$W({
|
|
7839
7701
|
className: classes.root
|
|
7840
7702
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
7841
7703
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -7851,9 +7713,9 @@
|
|
|
7851
7713
|
}) : icon;
|
|
7852
7714
|
};
|
|
7853
7715
|
var ITEM_HORIZONTAL_PADDING$1 = 16;
|
|
7854
|
-
var ICON_SIZE$
|
|
7716
|
+
var ICON_SIZE$2 = 20;
|
|
7855
7717
|
var ICON_GAP$1 = 12;
|
|
7856
|
-
var useStyles$
|
|
7718
|
+
var useStyles$S = createThemedStyles("ListItem", {
|
|
7857
7719
|
root: {
|
|
7858
7720
|
display: "flex",
|
|
7859
7721
|
alignItems: "center",
|
|
@@ -7878,17 +7740,17 @@
|
|
|
7878
7740
|
backgroundColor: colors.BORDER_LIGHT
|
|
7879
7741
|
},
|
|
7880
7742
|
withIconGap: {
|
|
7881
|
-
paddingLeft: ITEM_HORIZONTAL_PADDING$1 + ICON_SIZE$
|
|
7743
|
+
paddingLeft: ITEM_HORIZONTAL_PADDING$1 + ICON_SIZE$2 + ICON_GAP$1
|
|
7882
7744
|
},
|
|
7883
7745
|
icon: {
|
|
7884
|
-
width: ICON_SIZE$
|
|
7885
|
-
height: ICON_SIZE$
|
|
7746
|
+
width: ICON_SIZE$2,
|
|
7747
|
+
height: ICON_SIZE$2,
|
|
7886
7748
|
marginRight: ICON_GAP$1,
|
|
7887
7749
|
flexShrink: 0
|
|
7888
7750
|
},
|
|
7889
7751
|
content: {}
|
|
7890
7752
|
});
|
|
7891
|
-
function _define_property$
|
|
7753
|
+
function _define_property$W(obj, key, value) {
|
|
7892
7754
|
if (key in obj) {
|
|
7893
7755
|
Object.defineProperty(obj, key, {
|
|
7894
7756
|
value,
|
|
@@ -7901,7 +7763,7 @@
|
|
|
7901
7763
|
}
|
|
7902
7764
|
return obj;
|
|
7903
7765
|
}
|
|
7904
|
-
function _object_spread$
|
|
7766
|
+
function _object_spread$V(target) {
|
|
7905
7767
|
for (var i = 1; i < arguments.length; i++) {
|
|
7906
7768
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7907
7769
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7911,12 +7773,12 @@
|
|
|
7911
7773
|
}));
|
|
7912
7774
|
}
|
|
7913
7775
|
ownKeys2.forEach(function(key) {
|
|
7914
|
-
_define_property$
|
|
7776
|
+
_define_property$W(target, key, source[key]);
|
|
7915
7777
|
});
|
|
7916
7778
|
}
|
|
7917
7779
|
return target;
|
|
7918
7780
|
}
|
|
7919
|
-
function ownKeys$
|
|
7781
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
7920
7782
|
var keys2 = Object.keys(object);
|
|
7921
7783
|
if (Object.getOwnPropertySymbols) {
|
|
7922
7784
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7929,12 +7791,12 @@
|
|
|
7929
7791
|
}
|
|
7930
7792
|
return keys2;
|
|
7931
7793
|
}
|
|
7932
|
-
function _object_spread_props$
|
|
7794
|
+
function _object_spread_props$M(target, source) {
|
|
7933
7795
|
source = source != null ? source : {};
|
|
7934
7796
|
if (Object.getOwnPropertyDescriptors) {
|
|
7935
7797
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7936
7798
|
} else {
|
|
7937
|
-
ownKeys$
|
|
7799
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
7938
7800
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7939
7801
|
});
|
|
7940
7802
|
}
|
|
@@ -7942,7 +7804,7 @@
|
|
|
7942
7804
|
}
|
|
7943
7805
|
var ListItem = function(param) {
|
|
7944
7806
|
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;
|
|
7945
|
-
var classes = useStyles$
|
|
7807
|
+
var classes = useStyles$S({
|
|
7946
7808
|
theme: tweakStyles
|
|
7947
7809
|
});
|
|
7948
7810
|
var _obj;
|
|
@@ -7951,9 +7813,9 @@
|
|
|
7951
7813
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
7952
7814
|
className: classes.spacer
|
|
7953
7815
|
}),
|
|
7954
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
7955
|
-
className: clsx(classes.root, classes[view], (_obj = {}, _define_property$
|
|
7956
|
-
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
7816
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$M(_object_spread$V({
|
|
7817
|
+
className: clsx(classes.root, classes[view], (_obj = {}, _define_property$W(_obj, classes.disabledItem, isDisabled), _define_property$W(_obj, classes.withIconGap, withIconGap), _obj))
|
|
7818
|
+
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$M(_object_spread$V({}, data), {
|
|
7957
7819
|
disabled: isDisabled ? true : void 0
|
|
7958
7820
|
}))), {
|
|
7959
7821
|
children: [
|
|
@@ -7974,9 +7836,9 @@
|
|
|
7974
7836
|
});
|
|
7975
7837
|
};
|
|
7976
7838
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
7977
|
-
var ICON_SIZE = 20;
|
|
7839
|
+
var ICON_SIZE$1 = 20;
|
|
7978
7840
|
var ICON_GAP = 12;
|
|
7979
|
-
var useStyles$
|
|
7841
|
+
var useStyles$R = createThemedStyles("List", {
|
|
7980
7842
|
root: {
|
|
7981
7843
|
minWidth: 180,
|
|
7982
7844
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -8009,17 +7871,17 @@
|
|
|
8009
7871
|
backgroundColor: colors.BORDER_LIGHT
|
|
8010
7872
|
},
|
|
8011
7873
|
withIconGap: {
|
|
8012
|
-
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE + ICON_GAP
|
|
7874
|
+
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE$1 + ICON_GAP
|
|
8013
7875
|
},
|
|
8014
7876
|
icon: {
|
|
8015
|
-
width: ICON_SIZE,
|
|
8016
|
-
height: ICON_SIZE,
|
|
7877
|
+
width: ICON_SIZE$1,
|
|
7878
|
+
height: ICON_SIZE$1,
|
|
8017
7879
|
marginRight: ICON_GAP,
|
|
8018
7880
|
flexShrink: 0
|
|
8019
7881
|
},
|
|
8020
7882
|
content: {}
|
|
8021
7883
|
});
|
|
8022
|
-
function _define_property$
|
|
7884
|
+
function _define_property$V(obj, key, value) {
|
|
8023
7885
|
if (key in obj) {
|
|
8024
7886
|
Object.defineProperty(obj, key, {
|
|
8025
7887
|
value,
|
|
@@ -8032,7 +7894,7 @@
|
|
|
8032
7894
|
}
|
|
8033
7895
|
return obj;
|
|
8034
7896
|
}
|
|
8035
|
-
function _object_spread$
|
|
7897
|
+
function _object_spread$U(target) {
|
|
8036
7898
|
for (var i = 1; i < arguments.length; i++) {
|
|
8037
7899
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8038
7900
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8042,12 +7904,12 @@
|
|
|
8042
7904
|
}));
|
|
8043
7905
|
}
|
|
8044
7906
|
ownKeys2.forEach(function(key) {
|
|
8045
|
-
_define_property$
|
|
7907
|
+
_define_property$V(target, key, source[key]);
|
|
8046
7908
|
});
|
|
8047
7909
|
}
|
|
8048
7910
|
return target;
|
|
8049
7911
|
}
|
|
8050
|
-
function ownKeys$
|
|
7912
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
8051
7913
|
var keys2 = Object.keys(object);
|
|
8052
7914
|
if (Object.getOwnPropertySymbols) {
|
|
8053
7915
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8060,12 +7922,12 @@
|
|
|
8060
7922
|
}
|
|
8061
7923
|
return keys2;
|
|
8062
7924
|
}
|
|
8063
|
-
function _object_spread_props$
|
|
7925
|
+
function _object_spread_props$L(target, source) {
|
|
8064
7926
|
source = source != null ? source : {};
|
|
8065
7927
|
if (Object.getOwnPropertyDescriptors) {
|
|
8066
7928
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8067
7929
|
} else {
|
|
8068
|
-
ownKeys$
|
|
7930
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
8069
7931
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8070
7932
|
});
|
|
8071
7933
|
}
|
|
@@ -8073,18 +7935,18 @@
|
|
|
8073
7935
|
}
|
|
8074
7936
|
var List = function(param) {
|
|
8075
7937
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
8076
|
-
var classes = useStyles$
|
|
7938
|
+
var classes = useStyles$R({
|
|
8077
7939
|
theme: tweakStyles
|
|
8078
7940
|
});
|
|
8079
7941
|
var handleItemClick = function(event, item) {
|
|
8080
7942
|
item.onClick(event);
|
|
8081
7943
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
8082
7944
|
};
|
|
8083
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7945
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$U({
|
|
8084
7946
|
className: classes.root
|
|
8085
7947
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8086
7948
|
children: items.map(function(item, i) {
|
|
8087
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
7949
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$L(_object_spread$U({
|
|
8088
7950
|
testId: trueReactPlatformHelpers.getTestId(testId, "item-".concat(i))
|
|
8089
7951
|
}, item), {
|
|
8090
7952
|
onClick: function(event) {
|
|
@@ -8095,7 +7957,7 @@
|
|
|
8095
7957
|
}));
|
|
8096
7958
|
};
|
|
8097
7959
|
var ANIMATION_TIMEOUT = 150;
|
|
8098
|
-
function _define_property$
|
|
7960
|
+
function _define_property$U(obj, key, value) {
|
|
8099
7961
|
if (key in obj) {
|
|
8100
7962
|
Object.defineProperty(obj, key, {
|
|
8101
7963
|
value,
|
|
@@ -8108,7 +7970,7 @@
|
|
|
8108
7970
|
}
|
|
8109
7971
|
return obj;
|
|
8110
7972
|
}
|
|
8111
|
-
function _object_spread$
|
|
7973
|
+
function _object_spread$T(target) {
|
|
8112
7974
|
for (var i = 1; i < arguments.length; i++) {
|
|
8113
7975
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8114
7976
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8118,12 +7980,12 @@
|
|
|
8118
7980
|
}));
|
|
8119
7981
|
}
|
|
8120
7982
|
ownKeys2.forEach(function(key) {
|
|
8121
|
-
_define_property$
|
|
7983
|
+
_define_property$U(target, key, source[key]);
|
|
8122
7984
|
});
|
|
8123
7985
|
}
|
|
8124
7986
|
return target;
|
|
8125
7987
|
}
|
|
8126
|
-
var useStyles$
|
|
7988
|
+
var useStyles$Q = createThemedStyles("AccountInfo", _object_spread$T({
|
|
8127
7989
|
root: {
|
|
8128
7990
|
display: "flex"
|
|
8129
7991
|
},
|
|
@@ -8176,7 +8038,7 @@
|
|
|
8176
8038
|
if (Array.isArray(arr))
|
|
8177
8039
|
return arr;
|
|
8178
8040
|
}
|
|
8179
|
-
function _define_property$
|
|
8041
|
+
function _define_property$T(obj, key, value) {
|
|
8180
8042
|
if (key in obj) {
|
|
8181
8043
|
Object.defineProperty(obj, key, {
|
|
8182
8044
|
value,
|
|
@@ -8220,7 +8082,7 @@
|
|
|
8220
8082
|
function _non_iterable_rest$p() {
|
|
8221
8083
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8222
8084
|
}
|
|
8223
|
-
function _object_spread$
|
|
8085
|
+
function _object_spread$S(target) {
|
|
8224
8086
|
for (var i = 1; i < arguments.length; i++) {
|
|
8225
8087
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8226
8088
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8230,12 +8092,12 @@
|
|
|
8230
8092
|
}));
|
|
8231
8093
|
}
|
|
8232
8094
|
ownKeys2.forEach(function(key) {
|
|
8233
|
-
_define_property$
|
|
8095
|
+
_define_property$T(target, key, source[key]);
|
|
8234
8096
|
});
|
|
8235
8097
|
}
|
|
8236
8098
|
return target;
|
|
8237
8099
|
}
|
|
8238
|
-
function ownKeys$
|
|
8100
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
8239
8101
|
var keys2 = Object.keys(object);
|
|
8240
8102
|
if (Object.getOwnPropertySymbols) {
|
|
8241
8103
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8248,12 +8110,12 @@
|
|
|
8248
8110
|
}
|
|
8249
8111
|
return keys2;
|
|
8250
8112
|
}
|
|
8251
|
-
function _object_spread_props$
|
|
8113
|
+
function _object_spread_props$K(target, source) {
|
|
8252
8114
|
source = source != null ? source : {};
|
|
8253
8115
|
if (Object.getOwnPropertyDescriptors) {
|
|
8254
8116
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8255
8117
|
} else {
|
|
8256
|
-
ownKeys$
|
|
8118
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
8257
8119
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8258
8120
|
});
|
|
8259
8121
|
}
|
|
@@ -8277,7 +8139,7 @@
|
|
|
8277
8139
|
}
|
|
8278
8140
|
var AccountInfo = function(param) {
|
|
8279
8141
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
8280
|
-
var classes = useStyles$
|
|
8142
|
+
var classes = useStyles$Q({
|
|
8281
8143
|
theme: tweakStyles
|
|
8282
8144
|
});
|
|
8283
8145
|
var tweakListStyles = useTweakStyles({
|
|
@@ -8297,7 +8159,7 @@
|
|
|
8297
8159
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8298
8160
|
return setIsMenuOpen(false);
|
|
8299
8161
|
}, nameRef);
|
|
8300
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8162
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$S({
|
|
8301
8163
|
className: classes.root
|
|
8302
8164
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8303
8165
|
children: [
|
|
@@ -8347,7 +8209,7 @@
|
|
|
8347
8209
|
]
|
|
8348
8210
|
}));
|
|
8349
8211
|
};
|
|
8350
|
-
var useStyles$
|
|
8212
|
+
var useStyles$P = createThemedStyles("AddButton", {
|
|
8351
8213
|
root: {
|
|
8352
8214
|
display: "flex",
|
|
8353
8215
|
alignItems: "center",
|
|
@@ -8373,7 +8235,7 @@
|
|
|
8373
8235
|
width: "100%"
|
|
8374
8236
|
}
|
|
8375
8237
|
});
|
|
8376
|
-
function _define_property$
|
|
8238
|
+
function _define_property$S(obj, key, value) {
|
|
8377
8239
|
if (key in obj) {
|
|
8378
8240
|
Object.defineProperty(obj, key, {
|
|
8379
8241
|
value,
|
|
@@ -8386,7 +8248,7 @@
|
|
|
8386
8248
|
}
|
|
8387
8249
|
return obj;
|
|
8388
8250
|
}
|
|
8389
|
-
function _object_spread$
|
|
8251
|
+
function _object_spread$R(target) {
|
|
8390
8252
|
for (var i = 1; i < arguments.length; i++) {
|
|
8391
8253
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8392
8254
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8396,12 +8258,12 @@
|
|
|
8396
8258
|
}));
|
|
8397
8259
|
}
|
|
8398
8260
|
ownKeys2.forEach(function(key) {
|
|
8399
|
-
_define_property$
|
|
8261
|
+
_define_property$S(target, key, source[key]);
|
|
8400
8262
|
});
|
|
8401
8263
|
}
|
|
8402
8264
|
return target;
|
|
8403
8265
|
}
|
|
8404
|
-
function ownKeys$
|
|
8266
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
8405
8267
|
var keys2 = Object.keys(object);
|
|
8406
8268
|
if (Object.getOwnPropertySymbols) {
|
|
8407
8269
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8414,12 +8276,12 @@
|
|
|
8414
8276
|
}
|
|
8415
8277
|
return keys2;
|
|
8416
8278
|
}
|
|
8417
|
-
function _object_spread_props$
|
|
8279
|
+
function _object_spread_props$J(target, source) {
|
|
8418
8280
|
source = source != null ? source : {};
|
|
8419
8281
|
if (Object.getOwnPropertyDescriptors) {
|
|
8420
8282
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8421
8283
|
} else {
|
|
8422
|
-
ownKeys$
|
|
8284
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
8423
8285
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8424
8286
|
});
|
|
8425
8287
|
}
|
|
@@ -8427,10 +8289,10 @@
|
|
|
8427
8289
|
}
|
|
8428
8290
|
var AddButton = function(param) {
|
|
8429
8291
|
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;
|
|
8430
|
-
var classes = useStyles$
|
|
8292
|
+
var classes = useStyles$P({
|
|
8431
8293
|
theme: tweakStyles
|
|
8432
8294
|
});
|
|
8433
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8295
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$J(_object_spread$R({
|
|
8434
8296
|
type,
|
|
8435
8297
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8436
8298
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8449,7 +8311,7 @@
|
|
|
8449
8311
|
]
|
|
8450
8312
|
}));
|
|
8451
8313
|
};
|
|
8452
|
-
var useStyles$
|
|
8314
|
+
var useStyles$O = createThemedStyles("DotsPreloader", {
|
|
8453
8315
|
root: {
|
|
8454
8316
|
display: "flex",
|
|
8455
8317
|
gap: 4,
|
|
@@ -8494,7 +8356,7 @@
|
|
|
8494
8356
|
});
|
|
8495
8357
|
var DotsPreloader = function(param) {
|
|
8496
8358
|
var tweakStyles = param.tweakStyles;
|
|
8497
|
-
var classes = useStyles$
|
|
8359
|
+
var classes = useStyles$O({
|
|
8498
8360
|
theme: tweakStyles
|
|
8499
8361
|
});
|
|
8500
8362
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8560,7 +8422,7 @@
|
|
|
8560
8422
|
]
|
|
8561
8423
|
});
|
|
8562
8424
|
};
|
|
8563
|
-
var useStyles$
|
|
8425
|
+
var useStyles$N = createThemedStyles("SvgPreloader", {
|
|
8564
8426
|
root: {
|
|
8565
8427
|
display: "flex",
|
|
8566
8428
|
width: "100%",
|
|
@@ -8570,7 +8432,7 @@
|
|
|
8570
8432
|
var SvgPreloader = function(param) {
|
|
8571
8433
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8572
8434
|
var _theme_preloaders;
|
|
8573
|
-
var classes = useStyles$
|
|
8435
|
+
var classes = useStyles$N({
|
|
8574
8436
|
theme: tweakStyles
|
|
8575
8437
|
});
|
|
8576
8438
|
var theme = React.useContext(ThemeContext).theme;
|
|
@@ -8584,7 +8446,7 @@
|
|
|
8584
8446
|
}
|
|
8585
8447
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8586
8448
|
};
|
|
8587
|
-
var useStyles$
|
|
8449
|
+
var useStyles$M = createThemedStyles("ThemedPreloader", {
|
|
8588
8450
|
root: {
|
|
8589
8451
|
display: "flex"
|
|
8590
8452
|
},
|
|
@@ -8595,7 +8457,7 @@
|
|
|
8595
8457
|
color: "currentColor"
|
|
8596
8458
|
}
|
|
8597
8459
|
});
|
|
8598
|
-
function _define_property$
|
|
8460
|
+
function _define_property$R(obj, key, value) {
|
|
8599
8461
|
if (key in obj) {
|
|
8600
8462
|
Object.defineProperty(obj, key, {
|
|
8601
8463
|
value,
|
|
@@ -8608,7 +8470,7 @@
|
|
|
8608
8470
|
}
|
|
8609
8471
|
return obj;
|
|
8610
8472
|
}
|
|
8611
|
-
function _object_spread$
|
|
8473
|
+
function _object_spread$Q(target) {
|
|
8612
8474
|
for (var i = 1; i < arguments.length; i++) {
|
|
8613
8475
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8614
8476
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8618,12 +8480,12 @@
|
|
|
8618
8480
|
}));
|
|
8619
8481
|
}
|
|
8620
8482
|
ownKeys2.forEach(function(key) {
|
|
8621
|
-
_define_property$
|
|
8483
|
+
_define_property$R(target, key, source[key]);
|
|
8622
8484
|
});
|
|
8623
8485
|
}
|
|
8624
8486
|
return target;
|
|
8625
8487
|
}
|
|
8626
|
-
function ownKeys$
|
|
8488
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
8627
8489
|
var keys2 = Object.keys(object);
|
|
8628
8490
|
if (Object.getOwnPropertySymbols) {
|
|
8629
8491
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8636,12 +8498,12 @@
|
|
|
8636
8498
|
}
|
|
8637
8499
|
return keys2;
|
|
8638
8500
|
}
|
|
8639
|
-
function _object_spread_props$
|
|
8501
|
+
function _object_spread_props$I(target, source) {
|
|
8640
8502
|
source = source != null ? source : {};
|
|
8641
8503
|
if (Object.getOwnPropertyDescriptors) {
|
|
8642
8504
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8643
8505
|
} else {
|
|
8644
|
-
ownKeys$
|
|
8506
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
8645
8507
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8646
8508
|
});
|
|
8647
8509
|
}
|
|
@@ -8649,7 +8511,7 @@
|
|
|
8649
8511
|
}
|
|
8650
8512
|
var ThemedPreloader = function(param) {
|
|
8651
8513
|
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;
|
|
8652
|
-
var classes = useStyles$
|
|
8514
|
+
var classes = useStyles$M({
|
|
8653
8515
|
theme: tweakStyles
|
|
8654
8516
|
});
|
|
8655
8517
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -8662,8 +8524,8 @@
|
|
|
8662
8524
|
className: "tweakSvgPreloader",
|
|
8663
8525
|
currentComponentName: "ThemedPreloader"
|
|
8664
8526
|
});
|
|
8665
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8666
|
-
className: clsx(classes.root, classes[type], _define_property$
|
|
8527
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$I(_object_spread$Q({
|
|
8528
|
+
className: clsx(classes.root, classes[type], _define_property$R({}, classes.currentColor, useCurrentColor))
|
|
8667
8529
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8668
8530
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
8669
8531
|
tweakStyles: tweakDotsPreloaderStyles
|
|
@@ -8673,7 +8535,7 @@
|
|
|
8673
8535
|
})
|
|
8674
8536
|
}));
|
|
8675
8537
|
};
|
|
8676
|
-
var useStyles$
|
|
8538
|
+
var useStyles$L = createThemedStyles("Button", {
|
|
8677
8539
|
root: {
|
|
8678
8540
|
display: "flex",
|
|
8679
8541
|
justifyContent: "center",
|
|
@@ -8844,7 +8706,7 @@
|
|
|
8844
8706
|
var getPreloaderStyles = function(size) {
|
|
8845
8707
|
return size === "s" || size === "m" ? dotsPreloaderStyles : void 0;
|
|
8846
8708
|
};
|
|
8847
|
-
function _define_property$
|
|
8709
|
+
function _define_property$Q(obj, key, value) {
|
|
8848
8710
|
if (key in obj) {
|
|
8849
8711
|
Object.defineProperty(obj, key, {
|
|
8850
8712
|
value,
|
|
@@ -8857,7 +8719,7 @@
|
|
|
8857
8719
|
}
|
|
8858
8720
|
return obj;
|
|
8859
8721
|
}
|
|
8860
|
-
function _object_spread$
|
|
8722
|
+
function _object_spread$P(target) {
|
|
8861
8723
|
for (var i = 1; i < arguments.length; i++) {
|
|
8862
8724
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8863
8725
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8867,12 +8729,12 @@
|
|
|
8867
8729
|
}));
|
|
8868
8730
|
}
|
|
8869
8731
|
ownKeys2.forEach(function(key) {
|
|
8870
|
-
_define_property$
|
|
8732
|
+
_define_property$Q(target, key, source[key]);
|
|
8871
8733
|
});
|
|
8872
8734
|
}
|
|
8873
8735
|
return target;
|
|
8874
8736
|
}
|
|
8875
|
-
function ownKeys$
|
|
8737
|
+
function ownKeys$H(object, enumerableOnly) {
|
|
8876
8738
|
var keys2 = Object.keys(object);
|
|
8877
8739
|
if (Object.getOwnPropertySymbols) {
|
|
8878
8740
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8885,12 +8747,12 @@
|
|
|
8885
8747
|
}
|
|
8886
8748
|
return keys2;
|
|
8887
8749
|
}
|
|
8888
|
-
function _object_spread_props$
|
|
8750
|
+
function _object_spread_props$H(target, source) {
|
|
8889
8751
|
source = source != null ? source : {};
|
|
8890
8752
|
if (Object.getOwnPropertyDescriptors) {
|
|
8891
8753
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8892
8754
|
} else {
|
|
8893
|
-
ownKeys$
|
|
8755
|
+
ownKeys$H(Object(source)).forEach(function(key) {
|
|
8894
8756
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8895
8757
|
});
|
|
8896
8758
|
}
|
|
@@ -8898,7 +8760,7 @@
|
|
|
8898
8760
|
}
|
|
8899
8761
|
var Button = /* @__PURE__ */ React.forwardRef(function(param, ref) {
|
|
8900
8762
|
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;
|
|
8901
|
-
var classes = useStyles$
|
|
8763
|
+
var classes = useStyles$L({
|
|
8902
8764
|
theme: tweakStyles
|
|
8903
8765
|
});
|
|
8904
8766
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -8911,10 +8773,10 @@
|
|
|
8911
8773
|
var hasChildren = trueReactPlatformHelpers.isReactNodeNotEmpty(children);
|
|
8912
8774
|
var hasNoAction = isDisabled || isLoading;
|
|
8913
8775
|
var _obj, _obj1;
|
|
8914
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8776
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$H(_object_spread$P({
|
|
8915
8777
|
ref,
|
|
8916
8778
|
type,
|
|
8917
|
-
className: clsx(classes.root, classes[size], classes[view], (_obj = {}, _define_property$
|
|
8779
|
+
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)),
|
|
8918
8780
|
tabIndex: shouldSkipTabNavigation ? -1 : void 0,
|
|
8919
8781
|
disabled: hasNoAction,
|
|
8920
8782
|
onClick: !hasNoAction ? onClick : void 0,
|
|
@@ -8922,7 +8784,7 @@
|
|
|
8922
8784
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8923
8785
|
children: [
|
|
8924
8786
|
/* @__PURE__ */ jsxs("span", {
|
|
8925
|
-
className: clsx(classes.content, (_obj1 = {}, _define_property$
|
|
8787
|
+
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)),
|
|
8926
8788
|
children: [
|
|
8927
8789
|
hasIcon && /* @__PURE__ */ jsx("span", {
|
|
8928
8790
|
className: classes.icon,
|
|
@@ -8945,7 +8807,7 @@
|
|
|
8945
8807
|
]
|
|
8946
8808
|
}));
|
|
8947
8809
|
});
|
|
8948
|
-
var useStyles$
|
|
8810
|
+
var useStyles$K = createThemedStyles("Checkbox", {
|
|
8949
8811
|
root: {
|
|
8950
8812
|
cursor: "pointer",
|
|
8951
8813
|
display: "flex",
|
|
@@ -8993,7 +8855,7 @@
|
|
|
8993
8855
|
if (Array.isArray(arr))
|
|
8994
8856
|
return arr;
|
|
8995
8857
|
}
|
|
8996
|
-
function _define_property$
|
|
8858
|
+
function _define_property$P(obj, key, value) {
|
|
8997
8859
|
if (key in obj) {
|
|
8998
8860
|
Object.defineProperty(obj, key, {
|
|
8999
8861
|
value,
|
|
@@ -9037,7 +8899,7 @@
|
|
|
9037
8899
|
function _non_iterable_rest$o() {
|
|
9038
8900
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9039
8901
|
}
|
|
9040
|
-
function _object_spread$
|
|
8902
|
+
function _object_spread$O(target) {
|
|
9041
8903
|
for (var i = 1; i < arguments.length; i++) {
|
|
9042
8904
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9043
8905
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9047,12 +8909,12 @@
|
|
|
9047
8909
|
}));
|
|
9048
8910
|
}
|
|
9049
8911
|
ownKeys2.forEach(function(key) {
|
|
9050
|
-
_define_property$
|
|
8912
|
+
_define_property$P(target, key, source[key]);
|
|
9051
8913
|
});
|
|
9052
8914
|
}
|
|
9053
8915
|
return target;
|
|
9054
8916
|
}
|
|
9055
|
-
function ownKeys$
|
|
8917
|
+
function ownKeys$G(object, enumerableOnly) {
|
|
9056
8918
|
var keys2 = Object.keys(object);
|
|
9057
8919
|
if (Object.getOwnPropertySymbols) {
|
|
9058
8920
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9065,12 +8927,12 @@
|
|
|
9065
8927
|
}
|
|
9066
8928
|
return keys2;
|
|
9067
8929
|
}
|
|
9068
|
-
function _object_spread_props$
|
|
8930
|
+
function _object_spread_props$G(target, source) {
|
|
9069
8931
|
source = source != null ? source : {};
|
|
9070
8932
|
if (Object.getOwnPropertyDescriptors) {
|
|
9071
8933
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9072
8934
|
} else {
|
|
9073
|
-
ownKeys$
|
|
8935
|
+
ownKeys$G(Object(source)).forEach(function(key) {
|
|
9074
8936
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9075
8937
|
});
|
|
9076
8938
|
}
|
|
@@ -9094,7 +8956,7 @@
|
|
|
9094
8956
|
}
|
|
9095
8957
|
function Checkbox(param) {
|
|
9096
8958
|
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;
|
|
9097
|
-
var classes = useStyles$
|
|
8959
|
+
var classes = useStyles$K({
|
|
9098
8960
|
theme: tweakStyles
|
|
9099
8961
|
});
|
|
9100
8962
|
var _useState = _sliced_to_array$o(React.useState(false), 2), isSelected = _useState[0], setIsSelected = _useState[1];
|
|
@@ -9113,11 +8975,11 @@
|
|
|
9113
8975
|
isChecked
|
|
9114
8976
|
]);
|
|
9115
8977
|
var _obj;
|
|
9116
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
9117
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
8978
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$G(_object_spread$O({
|
|
8979
|
+
className: clsx(classes.root, (_obj = {}, _define_property$P(_obj, classes.disabled, isDisabled), _define_property$P(_obj, classes.labelPositionLeft, labelPosition === "left"), _obj))
|
|
9118
8980
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9119
8981
|
children: [
|
|
9120
|
-
/* @__PURE__ */ jsx("input", _object_spread$
|
|
8982
|
+
/* @__PURE__ */ jsx("input", _object_spread$O({
|
|
9121
8983
|
type: "checkbox",
|
|
9122
8984
|
className: classes.input,
|
|
9123
8985
|
checked: isSelected,
|
|
@@ -9140,7 +9002,7 @@
|
|
|
9140
9002
|
]
|
|
9141
9003
|
}));
|
|
9142
9004
|
}
|
|
9143
|
-
var useStyles$
|
|
9005
|
+
var useStyles$J = createThemedStyles("CloseButton", {
|
|
9144
9006
|
root: {
|
|
9145
9007
|
width: 40,
|
|
9146
9008
|
height: 40,
|
|
@@ -9165,7 +9027,7 @@
|
|
|
9165
9027
|
}
|
|
9166
9028
|
}
|
|
9167
9029
|
});
|
|
9168
|
-
function _define_property$
|
|
9030
|
+
function _define_property$O(obj, key, value) {
|
|
9169
9031
|
if (key in obj) {
|
|
9170
9032
|
Object.defineProperty(obj, key, {
|
|
9171
9033
|
value,
|
|
@@ -9178,7 +9040,7 @@
|
|
|
9178
9040
|
}
|
|
9179
9041
|
return obj;
|
|
9180
9042
|
}
|
|
9181
|
-
function _object_spread$
|
|
9043
|
+
function _object_spread$N(target) {
|
|
9182
9044
|
for (var i = 1; i < arguments.length; i++) {
|
|
9183
9045
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9184
9046
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9188,12 +9050,12 @@
|
|
|
9188
9050
|
}));
|
|
9189
9051
|
}
|
|
9190
9052
|
ownKeys2.forEach(function(key) {
|
|
9191
|
-
_define_property$
|
|
9053
|
+
_define_property$O(target, key, source[key]);
|
|
9192
9054
|
});
|
|
9193
9055
|
}
|
|
9194
9056
|
return target;
|
|
9195
9057
|
}
|
|
9196
|
-
function ownKeys$
|
|
9058
|
+
function ownKeys$F(object, enumerableOnly) {
|
|
9197
9059
|
var keys2 = Object.keys(object);
|
|
9198
9060
|
if (Object.getOwnPropertySymbols) {
|
|
9199
9061
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9206,12 +9068,12 @@
|
|
|
9206
9068
|
}
|
|
9207
9069
|
return keys2;
|
|
9208
9070
|
}
|
|
9209
|
-
function _object_spread_props$
|
|
9071
|
+
function _object_spread_props$F(target, source) {
|
|
9210
9072
|
source = source != null ? source : {};
|
|
9211
9073
|
if (Object.getOwnPropertyDescriptors) {
|
|
9212
9074
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9213
9075
|
} else {
|
|
9214
|
-
ownKeys$
|
|
9076
|
+
ownKeys$F(Object(source)).forEach(function(key) {
|
|
9215
9077
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9216
9078
|
});
|
|
9217
9079
|
}
|
|
@@ -9219,10 +9081,10 @@
|
|
|
9219
9081
|
}
|
|
9220
9082
|
var CloseButton = function(param) {
|
|
9221
9083
|
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;
|
|
9222
|
-
var classes = useStyles$
|
|
9084
|
+
var classes = useStyles$J({
|
|
9223
9085
|
theme: tweakStyles
|
|
9224
9086
|
});
|
|
9225
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
9087
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$F(_object_spread$N({
|
|
9226
9088
|
type: "button",
|
|
9227
9089
|
className: classes.root,
|
|
9228
9090
|
onClick: onClose
|
|
@@ -9232,7 +9094,7 @@
|
|
|
9232
9094
|
})
|
|
9233
9095
|
}));
|
|
9234
9096
|
};
|
|
9235
|
-
var useStyles$
|
|
9097
|
+
var useStyles$I = createThemedStyles({
|
|
9236
9098
|
root: {
|
|
9237
9099
|
display: "flex",
|
|
9238
9100
|
flexWrap: "wrap"
|
|
@@ -9325,7 +9187,7 @@
|
|
|
9325
9187
|
return _array_like_to_array$n(o, minLen);
|
|
9326
9188
|
}
|
|
9327
9189
|
var Colors = function() {
|
|
9328
|
-
var classes = useStyles$
|
|
9190
|
+
var classes = useStyles$I();
|
|
9329
9191
|
var theme = React.useContext(ThemeContext).theme;
|
|
9330
9192
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
9331
9193
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -9355,7 +9217,7 @@
|
|
|
9355
9217
|
})
|
|
9356
9218
|
});
|
|
9357
9219
|
};
|
|
9358
|
-
var useStyles$
|
|
9220
|
+
var useStyles$H = createThemedStyles("CssBaseline", {
|
|
9359
9221
|
"@global html, body": {
|
|
9360
9222
|
fontFamily: "Arial, sans-serif",
|
|
9361
9223
|
color: colors.FONT_MAIN,
|
|
@@ -9364,7 +9226,7 @@
|
|
|
9364
9226
|
},
|
|
9365
9227
|
root: {}
|
|
9366
9228
|
});
|
|
9367
|
-
function _define_property$
|
|
9229
|
+
function _define_property$N(obj, key, value) {
|
|
9368
9230
|
if (key in obj) {
|
|
9369
9231
|
Object.defineProperty(obj, key, {
|
|
9370
9232
|
value,
|
|
@@ -9377,7 +9239,7 @@
|
|
|
9377
9239
|
}
|
|
9378
9240
|
return obj;
|
|
9379
9241
|
}
|
|
9380
|
-
function _object_spread$
|
|
9242
|
+
function _object_spread$M(target) {
|
|
9381
9243
|
for (var i = 1; i < arguments.length; i++) {
|
|
9382
9244
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9383
9245
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9387,24 +9249,24 @@
|
|
|
9387
9249
|
}));
|
|
9388
9250
|
}
|
|
9389
9251
|
ownKeys2.forEach(function(key) {
|
|
9390
|
-
_define_property$
|
|
9252
|
+
_define_property$N(target, key, source[key]);
|
|
9391
9253
|
});
|
|
9392
9254
|
}
|
|
9393
9255
|
return target;
|
|
9394
9256
|
}
|
|
9395
9257
|
var CssBaseline = function(param) {
|
|
9396
9258
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
9397
|
-
var classes = useStyles$
|
|
9259
|
+
var classes = useStyles$H({
|
|
9398
9260
|
theme: tweakStyles
|
|
9399
9261
|
});
|
|
9400
|
-
return /* @__PURE__ */ jsx("div", _object_spread$
|
|
9262
|
+
return /* @__PURE__ */ jsx("div", _object_spread$M({
|
|
9401
9263
|
className: classes.root
|
|
9402
9264
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)));
|
|
9403
9265
|
};
|
|
9404
9266
|
var DEFAULT_SIZE = 6;
|
|
9405
9267
|
var PADDING_X$1 = 12;
|
|
9406
9268
|
var AUTOSIZE_MAX_WIDTH = 480;
|
|
9407
|
-
var useStyles$
|
|
9269
|
+
var useStyles$G = createThemedStyles("Input", {
|
|
9408
9270
|
root: {
|
|
9409
9271
|
width: "100%",
|
|
9410
9272
|
boxSizing: "border-box",
|
|
@@ -9717,7 +9579,7 @@
|
|
|
9717
9579
|
});
|
|
9718
9580
|
};
|
|
9719
9581
|
}
|
|
9720
|
-
function _define_property$
|
|
9582
|
+
function _define_property$M(obj, key, value) {
|
|
9721
9583
|
if (key in obj) {
|
|
9722
9584
|
Object.defineProperty(obj, key, {
|
|
9723
9585
|
value,
|
|
@@ -9761,7 +9623,7 @@
|
|
|
9761
9623
|
function _non_iterable_rest$m() {
|
|
9762
9624
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9763
9625
|
}
|
|
9764
|
-
function _object_spread$
|
|
9626
|
+
function _object_spread$L(target) {
|
|
9765
9627
|
for (var i = 1; i < arguments.length; i++) {
|
|
9766
9628
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9767
9629
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9771,12 +9633,12 @@
|
|
|
9771
9633
|
}));
|
|
9772
9634
|
}
|
|
9773
9635
|
ownKeys2.forEach(function(key) {
|
|
9774
|
-
_define_property$
|
|
9636
|
+
_define_property$M(target, key, source[key]);
|
|
9775
9637
|
});
|
|
9776
9638
|
}
|
|
9777
9639
|
return target;
|
|
9778
9640
|
}
|
|
9779
|
-
function ownKeys$
|
|
9641
|
+
function ownKeys$E(object, enumerableOnly) {
|
|
9780
9642
|
var keys2 = Object.keys(object);
|
|
9781
9643
|
if (Object.getOwnPropertySymbols) {
|
|
9782
9644
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9789,21 +9651,21 @@
|
|
|
9789
9651
|
}
|
|
9790
9652
|
return keys2;
|
|
9791
9653
|
}
|
|
9792
|
-
function _object_spread_props$
|
|
9654
|
+
function _object_spread_props$E(target, source) {
|
|
9793
9655
|
source = source != null ? source : {};
|
|
9794
9656
|
if (Object.getOwnPropertyDescriptors) {
|
|
9795
9657
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9796
9658
|
} else {
|
|
9797
|
-
ownKeys$
|
|
9659
|
+
ownKeys$E(Object(source)).forEach(function(key) {
|
|
9798
9660
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9799
9661
|
});
|
|
9800
9662
|
}
|
|
9801
9663
|
return target;
|
|
9802
9664
|
}
|
|
9803
|
-
function _object_without_properties$
|
|
9665
|
+
function _object_without_properties$e(source, excluded) {
|
|
9804
9666
|
if (source == null)
|
|
9805
9667
|
return {};
|
|
9806
|
-
var target = _object_without_properties_loose$
|
|
9668
|
+
var target = _object_without_properties_loose$e(source, excluded);
|
|
9807
9669
|
var key, i;
|
|
9808
9670
|
if (Object.getOwnPropertySymbols) {
|
|
9809
9671
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9818,7 +9680,7 @@
|
|
|
9818
9680
|
}
|
|
9819
9681
|
return target;
|
|
9820
9682
|
}
|
|
9821
|
-
function _object_without_properties_loose$
|
|
9683
|
+
function _object_without_properties_loose$e(source, excluded) {
|
|
9822
9684
|
if (source == null)
|
|
9823
9685
|
return {};
|
|
9824
9686
|
var target = {};
|
|
@@ -9848,7 +9710,7 @@
|
|
|
9848
9710
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
9849
9711
|
return _array_like_to_array$m(o, minLen);
|
|
9850
9712
|
}
|
|
9851
|
-
|
|
9713
|
+
function _ts_generator$5(thisArg, body) {
|
|
9852
9714
|
var f, y, t, g, _ = {
|
|
9853
9715
|
label: 0,
|
|
9854
9716
|
sent: function() {
|
|
@@ -9949,9 +9811,9 @@
|
|
|
9949
9811
|
done: true
|
|
9950
9812
|
};
|
|
9951
9813
|
}
|
|
9952
|
-
}
|
|
9814
|
+
}
|
|
9953
9815
|
var Input = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
9954
|
-
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$
|
|
9816
|
+
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, [
|
|
9955
9817
|
"value",
|
|
9956
9818
|
"label",
|
|
9957
9819
|
"placeholder",
|
|
@@ -9988,7 +9850,7 @@
|
|
|
9988
9850
|
"shouldAlwaysShowPlaceholder",
|
|
9989
9851
|
"beforeMaskedStateChange"
|
|
9990
9852
|
]);
|
|
9991
|
-
var classes = useStyles$
|
|
9853
|
+
var classes = useStyles$G({
|
|
9992
9854
|
theme: tweakStyles
|
|
9993
9855
|
});
|
|
9994
9856
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -10012,7 +9874,7 @@
|
|
|
10012
9874
|
var handleOnInputClear = function() {
|
|
10013
9875
|
var _ref = _async_to_generator$5(function(event) {
|
|
10014
9876
|
var _input_current, input;
|
|
10015
|
-
return
|
|
9877
|
+
return _ts_generator$5(this, function(_state) {
|
|
10016
9878
|
switch (_state.label) {
|
|
10017
9879
|
case 0:
|
|
10018
9880
|
return [
|
|
@@ -10042,8 +9904,8 @@
|
|
|
10042
9904
|
var hasPlaceholder = (!hasLabel || hasFocus && !isReadonly || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
|
|
10043
9905
|
var shouldShowUnits = (hasValue || isFocused && !hasPlaceholder) && hasUnits;
|
|
10044
9906
|
var _obj;
|
|
10045
|
-
var props = _object_spread_props$
|
|
10046
|
-
className: clsx(classes.input, (_obj = {}, _define_property$
|
|
9907
|
+
var props = _object_spread_props$E(_object_spread$L({}, inputProps, trueReactPlatformHelpers.addDataTestId(testId)), {
|
|
9908
|
+
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)),
|
|
10047
9909
|
onFocus: handleFocus,
|
|
10048
9910
|
onBlur: handleBlur,
|
|
10049
9911
|
onChange: handleChange,
|
|
@@ -10059,14 +9921,14 @@
|
|
|
10059
9921
|
return /* @__PURE__ */ jsxs("div", {
|
|
10060
9922
|
className: classes.root,
|
|
10061
9923
|
children: [
|
|
10062
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
10063
|
-
className: clsx(classes.inputWrapper, (_obj1 = {}, _define_property$
|
|
9924
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$E(_object_spread$L({
|
|
9925
|
+
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)]),
|
|
10064
9926
|
"data-value": isAutoSizeable ? value : void 0
|
|
10065
9927
|
}, addDataAttributes(data)), {
|
|
10066
9928
|
children: [
|
|
10067
|
-
mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$
|
|
9929
|
+
mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$L({
|
|
10068
9930
|
ref: ref !== null && ref !== void 0 ? ref : inputRef
|
|
10069
|
-
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$
|
|
9931
|
+
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$L({
|
|
10070
9932
|
ref: ref !== null && ref !== void 0 ? ref : inputRef,
|
|
10071
9933
|
mask,
|
|
10072
9934
|
maskPlaceholder,
|
|
@@ -10074,12 +9936,12 @@
|
|
|
10074
9936
|
beforeMaskedStateChange
|
|
10075
9937
|
}, props)),
|
|
10076
9938
|
hasLabel && /* @__PURE__ */ jsx("span", {
|
|
10077
|
-
className: clsx(classes.label, (_obj2 = {}, _define_property$
|
|
10078
|
-
_define_property$
|
|
9939
|
+
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), // Обсуждаемо, сделал так, потому что не хочется создавать новую пропсу, на каждый чих в стилях
|
|
9940
|
+
_define_property$M(_obj2, classes.floatingWithoutPadding, hasFloatingLabel && border === "bottom"), _obj2)),
|
|
10079
9941
|
children: label
|
|
10080
9942
|
}),
|
|
10081
9943
|
shouldShowUnits && /* @__PURE__ */ jsxs("div", {
|
|
10082
|
-
className: clsx(classes.unitsWrapper, _define_property$
|
|
9944
|
+
className: clsx(classes.unitsWrapper, _define_property$M({}, classes.withFloatingLabel, hasFloatingLabel && hasLabel)),
|
|
10083
9945
|
children: [
|
|
10084
9946
|
/* @__PURE__ */ jsx("span", {
|
|
10085
9947
|
className: classes.fakeValue,
|
|
@@ -10111,7 +9973,7 @@
|
|
|
10111
9973
|
})
|
|
10112
9974
|
}),
|
|
10113
9975
|
trueReactPlatformHelpers.isReactNodeNotEmpty(iconType) && /* @__PURE__ */ jsx("div", {
|
|
10114
|
-
className: clsx(classes.inputIcon, _define_property$
|
|
9976
|
+
className: clsx(classes.inputIcon, _define_property$M({}, classes.activeIcon, !isDisabled && onIconClick !== void 0)),
|
|
10115
9977
|
onClick: !isDisabled ? onIconClick : void 0,
|
|
10116
9978
|
children: renderIcon(iconType)
|
|
10117
9979
|
})
|
|
@@ -10132,7 +9994,7 @@
|
|
|
10132
9994
|
});
|
|
10133
9995
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
10134
9996
|
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
10135
|
-
var useStyles$
|
|
9997
|
+
var useStyles$F = createThemedStyles("DateInput", {
|
|
10136
9998
|
root: {
|
|
10137
9999
|
width: "100%",
|
|
10138
10000
|
height: "100%",
|
|
@@ -10140,7 +10002,7 @@
|
|
|
10140
10002
|
position: "relative"
|
|
10141
10003
|
}
|
|
10142
10004
|
});
|
|
10143
|
-
function _define_property$
|
|
10005
|
+
function _define_property$L(obj, key, value) {
|
|
10144
10006
|
if (key in obj) {
|
|
10145
10007
|
Object.defineProperty(obj, key, {
|
|
10146
10008
|
value,
|
|
@@ -10153,7 +10015,7 @@
|
|
|
10153
10015
|
}
|
|
10154
10016
|
return obj;
|
|
10155
10017
|
}
|
|
10156
|
-
function _object_spread$
|
|
10018
|
+
function _object_spread$K(target) {
|
|
10157
10019
|
for (var i = 1; i < arguments.length; i++) {
|
|
10158
10020
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10159
10021
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10163,12 +10025,12 @@
|
|
|
10163
10025
|
}));
|
|
10164
10026
|
}
|
|
10165
10027
|
ownKeys2.forEach(function(key) {
|
|
10166
|
-
_define_property$
|
|
10028
|
+
_define_property$L(target, key, source[key]);
|
|
10167
10029
|
});
|
|
10168
10030
|
}
|
|
10169
10031
|
return target;
|
|
10170
10032
|
}
|
|
10171
|
-
function ownKeys$
|
|
10033
|
+
function ownKeys$D(object, enumerableOnly) {
|
|
10172
10034
|
var keys2 = Object.keys(object);
|
|
10173
10035
|
if (Object.getOwnPropertySymbols) {
|
|
10174
10036
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10181,21 +10043,21 @@
|
|
|
10181
10043
|
}
|
|
10182
10044
|
return keys2;
|
|
10183
10045
|
}
|
|
10184
|
-
function _object_spread_props$
|
|
10046
|
+
function _object_spread_props$D(target, source) {
|
|
10185
10047
|
source = source != null ? source : {};
|
|
10186
10048
|
if (Object.getOwnPropertyDescriptors) {
|
|
10187
10049
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10188
10050
|
} else {
|
|
10189
|
-
ownKeys$
|
|
10051
|
+
ownKeys$D(Object(source)).forEach(function(key) {
|
|
10190
10052
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10191
10053
|
});
|
|
10192
10054
|
}
|
|
10193
10055
|
return target;
|
|
10194
10056
|
}
|
|
10195
|
-
function _object_without_properties$
|
|
10057
|
+
function _object_without_properties$d(source, excluded) {
|
|
10196
10058
|
if (source == null)
|
|
10197
10059
|
return {};
|
|
10198
|
-
var target = _object_without_properties_loose$
|
|
10060
|
+
var target = _object_without_properties_loose$d(source, excluded);
|
|
10199
10061
|
var key, i;
|
|
10200
10062
|
if (Object.getOwnPropertySymbols) {
|
|
10201
10063
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10210,7 +10072,7 @@
|
|
|
10210
10072
|
}
|
|
10211
10073
|
return target;
|
|
10212
10074
|
}
|
|
10213
|
-
function _object_without_properties_loose$
|
|
10075
|
+
function _object_without_properties_loose$d(source, excluded) {
|
|
10214
10076
|
if (source == null)
|
|
10215
10077
|
return {};
|
|
10216
10078
|
var target = {};
|
|
@@ -10225,7 +10087,7 @@
|
|
|
10225
10087
|
return target;
|
|
10226
10088
|
}
|
|
10227
10089
|
var DateInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
10228
|
-
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$
|
|
10090
|
+
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, [
|
|
10229
10091
|
"date",
|
|
10230
10092
|
"startDate",
|
|
10231
10093
|
"endDate",
|
|
@@ -10238,7 +10100,7 @@
|
|
|
10238
10100
|
"onClick",
|
|
10239
10101
|
"onChange"
|
|
10240
10102
|
]);
|
|
10241
|
-
var classes = useStyles$
|
|
10103
|
+
var classes = useStyles$F({
|
|
10242
10104
|
theme: tweakStyles
|
|
10243
10105
|
});
|
|
10244
10106
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10265,11 +10127,11 @@
|
|
|
10265
10127
|
}
|
|
10266
10128
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
10267
10129
|
};
|
|
10268
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10130
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$D(_object_spread$K({
|
|
10269
10131
|
className: clsx(classes.root, className),
|
|
10270
10132
|
onClick
|
|
10271
10133
|
}, addDataAttributes(data)), {
|
|
10272
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$
|
|
10134
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$D(_object_spread$K({}, inputProps), {
|
|
10273
10135
|
ref,
|
|
10274
10136
|
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
10275
10137
|
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
@@ -10282,7 +10144,7 @@
|
|
|
10282
10144
|
});
|
|
10283
10145
|
const reactDatepicker = "";
|
|
10284
10146
|
var LEFT_PADDING = 44;
|
|
10285
|
-
var useStyles$
|
|
10147
|
+
var useStyles$E = createThemedStyles("SearchInput", {
|
|
10286
10148
|
root: {
|
|
10287
10149
|
position: "relative"
|
|
10288
10150
|
},
|
|
@@ -10319,7 +10181,7 @@
|
|
|
10319
10181
|
fontSize: 14
|
|
10320
10182
|
}
|
|
10321
10183
|
};
|
|
10322
|
-
function _define_property$
|
|
10184
|
+
function _define_property$K(obj, key, value) {
|
|
10323
10185
|
if (key in obj) {
|
|
10324
10186
|
Object.defineProperty(obj, key, {
|
|
10325
10187
|
value,
|
|
@@ -10332,7 +10194,7 @@
|
|
|
10332
10194
|
}
|
|
10333
10195
|
return obj;
|
|
10334
10196
|
}
|
|
10335
|
-
function _object_spread$
|
|
10197
|
+
function _object_spread$J(target) {
|
|
10336
10198
|
for (var i = 1; i < arguments.length; i++) {
|
|
10337
10199
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10338
10200
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10342,12 +10204,12 @@
|
|
|
10342
10204
|
}));
|
|
10343
10205
|
}
|
|
10344
10206
|
ownKeys2.forEach(function(key) {
|
|
10345
|
-
_define_property$
|
|
10207
|
+
_define_property$K(target, key, source[key]);
|
|
10346
10208
|
});
|
|
10347
10209
|
}
|
|
10348
10210
|
return target;
|
|
10349
10211
|
}
|
|
10350
|
-
function ownKeys$
|
|
10212
|
+
function ownKeys$C(object, enumerableOnly) {
|
|
10351
10213
|
var keys2 = Object.keys(object);
|
|
10352
10214
|
if (Object.getOwnPropertySymbols) {
|
|
10353
10215
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10360,21 +10222,21 @@
|
|
|
10360
10222
|
}
|
|
10361
10223
|
return keys2;
|
|
10362
10224
|
}
|
|
10363
|
-
function _object_spread_props$
|
|
10225
|
+
function _object_spread_props$C(target, source) {
|
|
10364
10226
|
source = source != null ? source : {};
|
|
10365
10227
|
if (Object.getOwnPropertyDescriptors) {
|
|
10366
10228
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10367
10229
|
} else {
|
|
10368
|
-
ownKeys$
|
|
10230
|
+
ownKeys$C(Object(source)).forEach(function(key) {
|
|
10369
10231
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10370
10232
|
});
|
|
10371
10233
|
}
|
|
10372
10234
|
return target;
|
|
10373
10235
|
}
|
|
10374
|
-
function _object_without_properties$
|
|
10236
|
+
function _object_without_properties$c(source, excluded) {
|
|
10375
10237
|
if (source == null)
|
|
10376
10238
|
return {};
|
|
10377
|
-
var target = _object_without_properties_loose$
|
|
10239
|
+
var target = _object_without_properties_loose$c(source, excluded);
|
|
10378
10240
|
var key, i;
|
|
10379
10241
|
if (Object.getOwnPropertySymbols) {
|
|
10380
10242
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10389,7 +10251,7 @@
|
|
|
10389
10251
|
}
|
|
10390
10252
|
return target;
|
|
10391
10253
|
}
|
|
10392
|
-
function _object_without_properties_loose$
|
|
10254
|
+
function _object_without_properties_loose$c(source, excluded) {
|
|
10393
10255
|
if (source == null)
|
|
10394
10256
|
return {};
|
|
10395
10257
|
var target = {};
|
|
@@ -10404,13 +10266,13 @@
|
|
|
10404
10266
|
return target;
|
|
10405
10267
|
}
|
|
10406
10268
|
var SearchInput = function(_param) {
|
|
10407
|
-
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$
|
|
10269
|
+
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, [
|
|
10408
10270
|
"isClearable",
|
|
10409
10271
|
"tweakStyles",
|
|
10410
10272
|
"testId",
|
|
10411
10273
|
"data"
|
|
10412
10274
|
]);
|
|
10413
|
-
var classes = useStyles$
|
|
10275
|
+
var classes = useStyles$E({
|
|
10414
10276
|
theme: tweakStyles
|
|
10415
10277
|
});
|
|
10416
10278
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10419,7 +10281,7 @@
|
|
|
10419
10281
|
className: "tweakInput",
|
|
10420
10282
|
currentComponentName: "SearchInput"
|
|
10421
10283
|
});
|
|
10422
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
10284
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$C(_object_spread$J({
|
|
10423
10285
|
className: classes.root
|
|
10424
10286
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
10425
10287
|
children: [
|
|
@@ -10429,7 +10291,7 @@
|
|
|
10429
10291
|
type: "search"
|
|
10430
10292
|
})
|
|
10431
10293
|
}),
|
|
10432
|
-
/* @__PURE__ */ jsx(Input, _object_spread$
|
|
10294
|
+
/* @__PURE__ */ jsx(Input, _object_spread$J({
|
|
10433
10295
|
isClearable,
|
|
10434
10296
|
isActive: props.value !== "" && props.value !== void 0,
|
|
10435
10297
|
testId: trueReactPlatformHelpers.getTestId(testId, "input"),
|
|
@@ -10477,7 +10339,7 @@
|
|
|
10477
10339
|
_defineProperties(Constructor, staticProps);
|
|
10478
10340
|
return Constructor;
|
|
10479
10341
|
}
|
|
10480
|
-
function _define_property$
|
|
10342
|
+
function _define_property$J(obj, key, value) {
|
|
10481
10343
|
if (key in obj) {
|
|
10482
10344
|
Object.defineProperty(obj, key, {
|
|
10483
10345
|
value,
|
|
@@ -10510,7 +10372,7 @@
|
|
|
10510
10372
|
if (superClass)
|
|
10511
10373
|
_set_prototype_of(subClass, superClass);
|
|
10512
10374
|
}
|
|
10513
|
-
function _object_spread$
|
|
10375
|
+
function _object_spread$I(target) {
|
|
10514
10376
|
for (var i = 1; i < arguments.length; i++) {
|
|
10515
10377
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10516
10378
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10520,15 +10382,15 @@
|
|
|
10520
10382
|
}));
|
|
10521
10383
|
}
|
|
10522
10384
|
ownKeys2.forEach(function(key) {
|
|
10523
|
-
_define_property$
|
|
10385
|
+
_define_property$J(target, key, source[key]);
|
|
10524
10386
|
});
|
|
10525
10387
|
}
|
|
10526
10388
|
return target;
|
|
10527
10389
|
}
|
|
10528
|
-
function _object_without_properties$
|
|
10390
|
+
function _object_without_properties$b(source, excluded) {
|
|
10529
10391
|
if (source == null)
|
|
10530
10392
|
return {};
|
|
10531
|
-
var target = _object_without_properties_loose$
|
|
10393
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
10532
10394
|
var key, i;
|
|
10533
10395
|
if (Object.getOwnPropertySymbols) {
|
|
10534
10396
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10543,7 +10405,7 @@
|
|
|
10543
10405
|
}
|
|
10544
10406
|
return target;
|
|
10545
10407
|
}
|
|
10546
|
-
function _object_without_properties_loose$
|
|
10408
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
10547
10409
|
if (source == null)
|
|
10548
10410
|
return {};
|
|
10549
10411
|
var target = {};
|
|
@@ -10609,8 +10471,8 @@
|
|
|
10609
10471
|
_class_call_check(this, ScrollIntoViewIfNeeded2);
|
|
10610
10472
|
var _this;
|
|
10611
10473
|
_this = _super.apply(this, arguments);
|
|
10612
|
-
_define_property$
|
|
10613
|
-
_define_property$
|
|
10474
|
+
_define_property$J(_assert_this_initialized(_this), "node", React.createRef());
|
|
10475
|
+
_define_property$J(_assert_this_initialized(_this), "handleScrollIntoViewIfNeeded", function() {
|
|
10614
10476
|
var options = _this.props.options;
|
|
10615
10477
|
var _this_node = _this.node, node = _this_node.current;
|
|
10616
10478
|
if (node) {
|
|
@@ -10646,13 +10508,13 @@
|
|
|
10646
10508
|
_this_props.active;
|
|
10647
10509
|
var elementType = _this_props.elementType, children = _this_props.children;
|
|
10648
10510
|
_this_props.options;
|
|
10649
|
-
var wrapperProps = _object_without_properties$
|
|
10511
|
+
var wrapperProps = _object_without_properties$b(_this_props, [
|
|
10650
10512
|
"active",
|
|
10651
10513
|
"elementType",
|
|
10652
10514
|
"children",
|
|
10653
10515
|
"options"
|
|
10654
10516
|
]);
|
|
10655
|
-
return React.createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$
|
|
10517
|
+
return React.createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$I({
|
|
10656
10518
|
ref: this.node
|
|
10657
10519
|
}, wrapperProps), children);
|
|
10658
10520
|
}
|
|
@@ -10660,10 +10522,10 @@
|
|
|
10660
10522
|
]);
|
|
10661
10523
|
return ScrollIntoViewIfNeeded2;
|
|
10662
10524
|
}(React.PureComponent);
|
|
10663
|
-
_define_property$
|
|
10525
|
+
_define_property$J(ScrollIntoViewIfNeeded, "defaultProps", ScrollIntoViewIfNeededDefaultProps);
|
|
10664
10526
|
var DEFAULT_OPTION_INDEX = -2;
|
|
10665
10527
|
var ALL_OPTION_INDEX = -1;
|
|
10666
|
-
function _define_property$
|
|
10528
|
+
function _define_property$I(obj, key, value) {
|
|
10667
10529
|
if (key in obj) {
|
|
10668
10530
|
Object.defineProperty(obj, key, {
|
|
10669
10531
|
value,
|
|
@@ -10676,7 +10538,7 @@
|
|
|
10676
10538
|
}
|
|
10677
10539
|
return obj;
|
|
10678
10540
|
}
|
|
10679
|
-
function _object_spread$
|
|
10541
|
+
function _object_spread$H(target) {
|
|
10680
10542
|
for (var i = 1; i < arguments.length; i++) {
|
|
10681
10543
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10682
10544
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10686,7 +10548,7 @@
|
|
|
10686
10548
|
}));
|
|
10687
10549
|
}
|
|
10688
10550
|
ownKeys2.forEach(function(key) {
|
|
10689
|
-
_define_property$
|
|
10551
|
+
_define_property$I(target, key, source[key]);
|
|
10690
10552
|
});
|
|
10691
10553
|
}
|
|
10692
10554
|
return target;
|
|
@@ -10697,7 +10559,7 @@
|
|
|
10697
10559
|
10,
|
|
10698
10560
|
20
|
|
10699
10561
|
];
|
|
10700
|
-
var useStyles$
|
|
10562
|
+
var useStyles$D = createThemedStyles("SelectList", {
|
|
10701
10563
|
root: {
|
|
10702
10564
|
borderRadius: dimensions.BORDER_RADIUS_SMALL,
|
|
10703
10565
|
boxShadow: "0 13px 74px -27px rgba(0, 0, 0, 0.11)",
|
|
@@ -10721,7 +10583,7 @@
|
|
|
10721
10583
|
]
|
|
10722
10584
|
}
|
|
10723
10585
|
},
|
|
10724
|
-
list: _object_spread$
|
|
10586
|
+
list: _object_spread$H({
|
|
10725
10587
|
height: "100%",
|
|
10726
10588
|
maxHeight: ROW_HEIGHT$1 * 6,
|
|
10727
10589
|
cursor: "pointer",
|
|
@@ -10764,7 +10626,7 @@
|
|
|
10764
10626
|
display: "none"
|
|
10765
10627
|
}
|
|
10766
10628
|
};
|
|
10767
|
-
function _define_property$
|
|
10629
|
+
function _define_property$H(obj, key, value) {
|
|
10768
10630
|
if (key in obj) {
|
|
10769
10631
|
Object.defineProperty(obj, key, {
|
|
10770
10632
|
value,
|
|
@@ -10777,7 +10639,7 @@
|
|
|
10777
10639
|
}
|
|
10778
10640
|
return obj;
|
|
10779
10641
|
}
|
|
10780
|
-
function _object_spread$
|
|
10642
|
+
function _object_spread$G(target) {
|
|
10781
10643
|
for (var i = 1; i < arguments.length; i++) {
|
|
10782
10644
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10783
10645
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10787,12 +10649,12 @@
|
|
|
10787
10649
|
}));
|
|
10788
10650
|
}
|
|
10789
10651
|
ownKeys2.forEach(function(key) {
|
|
10790
|
-
_define_property$
|
|
10652
|
+
_define_property$H(target, key, source[key]);
|
|
10791
10653
|
});
|
|
10792
10654
|
}
|
|
10793
10655
|
return target;
|
|
10794
10656
|
}
|
|
10795
|
-
function ownKeys$
|
|
10657
|
+
function ownKeys$B(object, enumerableOnly) {
|
|
10796
10658
|
var keys2 = Object.keys(object);
|
|
10797
10659
|
if (Object.getOwnPropertySymbols) {
|
|
10798
10660
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10805,12 +10667,12 @@
|
|
|
10805
10667
|
}
|
|
10806
10668
|
return keys2;
|
|
10807
10669
|
}
|
|
10808
|
-
function _object_spread_props$
|
|
10670
|
+
function _object_spread_props$B(target, source) {
|
|
10809
10671
|
source = source != null ? source : {};
|
|
10810
10672
|
if (Object.getOwnPropertyDescriptors) {
|
|
10811
10673
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10812
10674
|
} else {
|
|
10813
|
-
ownKeys$
|
|
10675
|
+
ownKeys$B(Object(source)).forEach(function(key) {
|
|
10814
10676
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10815
10677
|
});
|
|
10816
10678
|
}
|
|
@@ -10820,12 +10682,12 @@
|
|
|
10820
10682
|
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;
|
|
10821
10683
|
var isMultiSelect = trueReactPlatformHelpers.isNotEmpty(onToggleCheckbox);
|
|
10822
10684
|
var _obj;
|
|
10823
|
-
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$
|
|
10685
|
+
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$B(_object_spread$G({
|
|
10824
10686
|
active: isFocused,
|
|
10825
10687
|
options: {
|
|
10826
10688
|
block: "nearest"
|
|
10827
10689
|
},
|
|
10828
|
-
className: clsx(classes.cell, (_obj = {}, _define_property$
|
|
10690
|
+
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))
|
|
10829
10691
|
}, addDataAttributes({
|
|
10830
10692
|
disabled: isDisabled,
|
|
10831
10693
|
active: isActive,
|
|
@@ -10847,7 +10709,7 @@
|
|
|
10847
10709
|
}) : children
|
|
10848
10710
|
}));
|
|
10849
10711
|
};
|
|
10850
|
-
function _define_property$
|
|
10712
|
+
function _define_property$G(obj, key, value) {
|
|
10851
10713
|
if (key in obj) {
|
|
10852
10714
|
Object.defineProperty(obj, key, {
|
|
10853
10715
|
value,
|
|
@@ -10860,7 +10722,7 @@
|
|
|
10860
10722
|
}
|
|
10861
10723
|
return obj;
|
|
10862
10724
|
}
|
|
10863
|
-
function _object_spread$
|
|
10725
|
+
function _object_spread$F(target) {
|
|
10864
10726
|
for (var i = 1; i < arguments.length; i++) {
|
|
10865
10727
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10866
10728
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10870,12 +10732,12 @@
|
|
|
10870
10732
|
}));
|
|
10871
10733
|
}
|
|
10872
10734
|
ownKeys2.forEach(function(key) {
|
|
10873
|
-
_define_property$
|
|
10735
|
+
_define_property$G(target, key, source[key]);
|
|
10874
10736
|
});
|
|
10875
10737
|
}
|
|
10876
10738
|
return target;
|
|
10877
10739
|
}
|
|
10878
|
-
function ownKeys$
|
|
10740
|
+
function ownKeys$A(object, enumerableOnly) {
|
|
10879
10741
|
var keys2 = Object.keys(object);
|
|
10880
10742
|
if (Object.getOwnPropertySymbols) {
|
|
10881
10743
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10888,12 +10750,12 @@
|
|
|
10888
10750
|
}
|
|
10889
10751
|
return keys2;
|
|
10890
10752
|
}
|
|
10891
|
-
function _object_spread_props$
|
|
10753
|
+
function _object_spread_props$A(target, source) {
|
|
10892
10754
|
source = source != null ? source : {};
|
|
10893
10755
|
if (Object.getOwnPropertyDescriptors) {
|
|
10894
10756
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10895
10757
|
} else {
|
|
10896
|
-
ownKeys$
|
|
10758
|
+
ownKeys$A(Object(source)).forEach(function(key) {
|
|
10897
10759
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10898
10760
|
});
|
|
10899
10761
|
}
|
|
@@ -10901,15 +10763,15 @@
|
|
|
10901
10763
|
}
|
|
10902
10764
|
function SelectList(param) {
|
|
10903
10765
|
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;
|
|
10904
|
-
var classes = useStyles$
|
|
10766
|
+
var classes = useStyles$D({
|
|
10905
10767
|
theme: tweakStyles
|
|
10906
10768
|
});
|
|
10907
10769
|
var isMultiSelect = trueReactPlatformHelpers.isNotEmpty(onToggleCheckbox);
|
|
10908
10770
|
var multiSelectValue = activeValue;
|
|
10909
10771
|
var _multiSelectValue_length;
|
|
10910
10772
|
var selectedOptionsCount = (_multiSelectValue_length = multiSelectValue === null || multiSelectValue === void 0 ? void 0 : multiSelectValue.length) !== null && _multiSelectValue_length !== void 0 ? _multiSelectValue_length : 0;
|
|
10911
|
-
var _multiSelectValue_map;
|
|
10912
10773
|
var activeOptionsIdMap = React.useMemo(function() {
|
|
10774
|
+
var _multiSelectValue_map;
|
|
10913
10775
|
return isMultiSelect ? (_multiSelectValue_map = multiSelectValue === null || multiSelectValue === void 0 ? void 0 : multiSelectValue.map(convertValueToId)) !== null && _multiSelectValue_map !== void 0 ? _multiSelectValue_map : [] : [];
|
|
10914
10776
|
}, [
|
|
10915
10777
|
isMultiSelect,
|
|
@@ -10938,13 +10800,13 @@
|
|
|
10938
10800
|
};
|
|
10939
10801
|
return /* @__PURE__ */ jsxs(ScrollIntoViewIfNeeded, {
|
|
10940
10802
|
active: shouldScrollToList && !isMultiSelect,
|
|
10941
|
-
className: clsx(classes.root, _define_property$
|
|
10803
|
+
className: clsx(classes.root, _define_property$G({}, classes.withListHeader, trueReactPlatformHelpers.isReactNodeNotEmpty(customListHeader))),
|
|
10942
10804
|
children: [
|
|
10943
10805
|
trueReactPlatformHelpers.isReactNodeNotEmpty(customListHeader) && /* @__PURE__ */ jsx("div", {
|
|
10944
10806
|
className: classes.listHeader,
|
|
10945
10807
|
children: customListHeader
|
|
10946
10808
|
}),
|
|
10947
|
-
/* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10809
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$A(_object_spread$F({
|
|
10948
10810
|
className: classes.list
|
|
10949
10811
|
}, trueReactPlatformHelpers.addDataTestId(testId)), {
|
|
10950
10812
|
children: isLoading ? /* @__PURE__ */ jsx("div", {
|
|
@@ -10999,8 +10861,8 @@
|
|
|
10999
10861
|
]
|
|
11000
10862
|
});
|
|
11001
10863
|
}
|
|
11002
|
-
var _option_isDisabled;
|
|
11003
10864
|
var defaultIsOptionDisabled = function(option) {
|
|
10865
|
+
var _option_isDisabled;
|
|
11004
10866
|
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);
|
|
11005
10867
|
};
|
|
11006
10868
|
var defaultConvertFunction$2 = function(v) {
|
|
@@ -11017,7 +10879,7 @@
|
|
|
11017
10879
|
var isMultiSelectValue = function(props, _value) {
|
|
11018
10880
|
return props.isMultiSelect === true;
|
|
11019
10881
|
};
|
|
11020
|
-
var useStyles$
|
|
10882
|
+
var useStyles$C = createThemedStyles("Select", {
|
|
11021
10883
|
root: {
|
|
11022
10884
|
width: "100%",
|
|
11023
10885
|
position: "relative",
|
|
@@ -11166,7 +11028,7 @@
|
|
|
11166
11028
|
});
|
|
11167
11029
|
};
|
|
11168
11030
|
}
|
|
11169
|
-
function _define_property$
|
|
11031
|
+
function _define_property$F(obj, key, value) {
|
|
11170
11032
|
if (key in obj) {
|
|
11171
11033
|
Object.defineProperty(obj, key, {
|
|
11172
11034
|
value,
|
|
@@ -11217,7 +11079,7 @@
|
|
|
11217
11079
|
function _non_iterable_spread$6() {
|
|
11218
11080
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11219
11081
|
}
|
|
11220
|
-
function _object_spread$
|
|
11082
|
+
function _object_spread$E(target) {
|
|
11221
11083
|
for (var i = 1; i < arguments.length; i++) {
|
|
11222
11084
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11223
11085
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11227,12 +11089,12 @@
|
|
|
11227
11089
|
}));
|
|
11228
11090
|
}
|
|
11229
11091
|
ownKeys2.forEach(function(key) {
|
|
11230
|
-
_define_property$
|
|
11092
|
+
_define_property$F(target, key, source[key]);
|
|
11231
11093
|
});
|
|
11232
11094
|
}
|
|
11233
11095
|
return target;
|
|
11234
11096
|
}
|
|
11235
|
-
function ownKeys$
|
|
11097
|
+
function ownKeys$z(object, enumerableOnly) {
|
|
11236
11098
|
var keys2 = Object.keys(object);
|
|
11237
11099
|
if (Object.getOwnPropertySymbols) {
|
|
11238
11100
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11245,21 +11107,21 @@
|
|
|
11245
11107
|
}
|
|
11246
11108
|
return keys2;
|
|
11247
11109
|
}
|
|
11248
|
-
function _object_spread_props$
|
|
11110
|
+
function _object_spread_props$z(target, source) {
|
|
11249
11111
|
source = source != null ? source : {};
|
|
11250
11112
|
if (Object.getOwnPropertyDescriptors) {
|
|
11251
11113
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11252
11114
|
} else {
|
|
11253
|
-
ownKeys$
|
|
11115
|
+
ownKeys$z(Object(source)).forEach(function(key) {
|
|
11254
11116
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11255
11117
|
});
|
|
11256
11118
|
}
|
|
11257
11119
|
return target;
|
|
11258
11120
|
}
|
|
11259
|
-
function _object_without_properties$
|
|
11121
|
+
function _object_without_properties$a(source, excluded) {
|
|
11260
11122
|
if (source == null)
|
|
11261
11123
|
return {};
|
|
11262
|
-
var target = _object_without_properties_loose$
|
|
11124
|
+
var target = _object_without_properties_loose$a(source, excluded);
|
|
11263
11125
|
var key, i;
|
|
11264
11126
|
if (Object.getOwnPropertySymbols) {
|
|
11265
11127
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -11274,7 +11136,7 @@
|
|
|
11274
11136
|
}
|
|
11275
11137
|
return target;
|
|
11276
11138
|
}
|
|
11277
|
-
function _object_without_properties_loose$
|
|
11139
|
+
function _object_without_properties_loose$a(source, excluded) {
|
|
11278
11140
|
if (source == null)
|
|
11279
11141
|
return {};
|
|
11280
11142
|
var target = {};
|
|
@@ -11307,7 +11169,7 @@
|
|
|
11307
11169
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
11308
11170
|
return _array_like_to_array$l(o, minLen);
|
|
11309
11171
|
}
|
|
11310
|
-
|
|
11172
|
+
function _ts_generator$4(thisArg, body) {
|
|
11311
11173
|
var f, y, t, g, _ = {
|
|
11312
11174
|
label: 0,
|
|
11313
11175
|
sent: function() {
|
|
@@ -11408,9 +11270,9 @@
|
|
|
11408
11270
|
done: true
|
|
11409
11271
|
};
|
|
11410
11272
|
}
|
|
11411
|
-
}
|
|
11273
|
+
}
|
|
11412
11274
|
function Select(props) {
|
|
11413
|
-
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$
|
|
11275
|
+
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, [
|
|
11414
11276
|
"options",
|
|
11415
11277
|
"value",
|
|
11416
11278
|
"defaultOptionLabel",
|
|
@@ -11441,10 +11303,10 @@
|
|
|
11441
11303
|
"convertValueToReactNode",
|
|
11442
11304
|
"optionsFilter"
|
|
11443
11305
|
]);
|
|
11444
|
-
var classes = useStyles$
|
|
11306
|
+
var classes = useStyles$C({
|
|
11445
11307
|
theme: tweakStyles
|
|
11446
11308
|
});
|
|
11447
|
-
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$
|
|
11309
|
+
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$a(_ref, [
|
|
11448
11310
|
"shouldRenderInList"
|
|
11449
11311
|
]);
|
|
11450
11312
|
var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
|
|
@@ -11486,8 +11348,8 @@
|
|
|
11486
11348
|
if (optionsMode !== "search") {
|
|
11487
11349
|
return options;
|
|
11488
11350
|
}
|
|
11489
|
-
var _convertValueToString;
|
|
11490
11351
|
var filter = optionsFilter !== null && optionsFilter !== void 0 ? optionsFilter : trueReactPlatformHelpers.createFilter(function(option) {
|
|
11352
|
+
var _convertValueToString;
|
|
11491
11353
|
return [
|
|
11492
11354
|
(_convertValueToString = convertValueToString(option)) !== null && _convertValueToString !== void 0 ? _convertValueToString : ""
|
|
11493
11355
|
];
|
|
@@ -11625,7 +11487,7 @@
|
|
|
11625
11487
|
]);
|
|
11626
11488
|
var handleOnType = React.useCallback(function() {
|
|
11627
11489
|
var _ref2 = _async_to_generator$4(function(v) {
|
|
11628
|
-
return
|
|
11490
|
+
return _ts_generator$4(this, function(_state) {
|
|
11629
11491
|
switch (_state.label) {
|
|
11630
11492
|
case 0:
|
|
11631
11493
|
if (onType === void 0) {
|
|
@@ -11779,8 +11641,8 @@
|
|
|
11779
11641
|
isOpen
|
|
11780
11642
|
]);
|
|
11781
11643
|
var _obj;
|
|
11782
|
-
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
11783
|
-
className: clsx(classes.listWrapper, (_obj = {}, _define_property$
|
|
11644
|
+
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$z(_object_spread$E({
|
|
11645
|
+
className: clsx(classes.listWrapper, (_obj = {}, _define_property$F(_obj, classes.withoutPopper, !shouldUsePopper), _define_property$F(_obj, classes.listWrapperInBody, shouldRenderInBody), _obj)),
|
|
11784
11646
|
ref: list,
|
|
11785
11647
|
style: popperData === null || popperData === void 0 ? void 0 : popperData.styles.popper,
|
|
11786
11648
|
onBlur: handleBlur
|
|
@@ -11790,7 +11652,7 @@
|
|
|
11790
11652
|
defaultOptionLabel: hasDefaultOption && shouldShowDefaultOption && defaultOptionLabel,
|
|
11791
11653
|
allOptionsLabel: shouldShowAllOption && allOptionsLabel,
|
|
11792
11654
|
areAllOptionsSelected,
|
|
11793
|
-
customListHeader: hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$
|
|
11655
|
+
customListHeader: hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$E({
|
|
11794
11656
|
value: searchValue,
|
|
11795
11657
|
onChange: handleInputChange,
|
|
11796
11658
|
tweakStyles: tweakSearchInputStyles,
|
|
@@ -11837,7 +11699,7 @@
|
|
|
11837
11699
|
onClick: isDisabled ? void 0 : handleOnClick,
|
|
11838
11700
|
ref: inputWrapper,
|
|
11839
11701
|
children: [
|
|
11840
|
-
/* @__PURE__ */ jsx(Input, _object_spread$
|
|
11702
|
+
/* @__PURE__ */ jsx(Input, _object_spread$E({
|
|
11841
11703
|
value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
|
|
11842
11704
|
onChange: handleInputChange,
|
|
11843
11705
|
isActive: isListOpen,
|
|
@@ -11874,7 +11736,7 @@
|
|
|
11874
11736
|
}
|
|
11875
11737
|
var SELECT_PADDING_LEFT = 12;
|
|
11876
11738
|
var SELECT_PADDING_RIGHT = 24;
|
|
11877
|
-
var useStyles$
|
|
11739
|
+
var useStyles$B = createThemedStyles("DatePickerHeader", {
|
|
11878
11740
|
btn: {
|
|
11879
11741
|
width: 36,
|
|
11880
11742
|
height: 36,
|
|
@@ -11943,7 +11805,7 @@
|
|
|
11943
11805
|
};
|
|
11944
11806
|
var DatePickerHeader = function(param) {
|
|
11945
11807
|
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;
|
|
11946
|
-
var classes = useStyles$
|
|
11808
|
+
var classes = useStyles$B({
|
|
11947
11809
|
theme: tweakStyles
|
|
11948
11810
|
});
|
|
11949
11811
|
var tweakSelectStyles = useTweakStyles({
|
|
@@ -12052,7 +11914,7 @@
|
|
|
12052
11914
|
var areDatesEquals = function(date1, date2) {
|
|
12053
11915
|
return trueReactPlatformHelpers.isEmpty(date1) && trueReactPlatformHelpers.isEmpty(date2) || trueReactPlatformHelpers.isNotEmpty(date1) && trueReactPlatformHelpers.isNotEmpty(date2) && dateFns.isSameDay(date1, date2);
|
|
12054
11916
|
};
|
|
12055
|
-
var useStyles$
|
|
11917
|
+
var useStyles$A = createThemedStyles("DatePicker", {
|
|
12056
11918
|
root: {
|
|
12057
11919
|
width: "100%",
|
|
12058
11920
|
height: "100%"
|
|
@@ -12086,7 +11948,7 @@
|
|
|
12086
11948
|
if (Array.isArray(arr))
|
|
12087
11949
|
return arr;
|
|
12088
11950
|
}
|
|
12089
|
-
function _define_property$
|
|
11951
|
+
function _define_property$E(obj, key, value) {
|
|
12090
11952
|
if (key in obj) {
|
|
12091
11953
|
Object.defineProperty(obj, key, {
|
|
12092
11954
|
value,
|
|
@@ -12130,7 +11992,7 @@
|
|
|
12130
11992
|
function _non_iterable_rest$k() {
|
|
12131
11993
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12132
11994
|
}
|
|
12133
|
-
function _object_spread$
|
|
11995
|
+
function _object_spread$D(target) {
|
|
12134
11996
|
for (var i = 1; i < arguments.length; i++) {
|
|
12135
11997
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12136
11998
|
var ownKeys2 = Object.keys(source);
|
|
@@ -12140,12 +12002,12 @@
|
|
|
12140
12002
|
}));
|
|
12141
12003
|
}
|
|
12142
12004
|
ownKeys2.forEach(function(key) {
|
|
12143
|
-
_define_property$
|
|
12005
|
+
_define_property$E(target, key, source[key]);
|
|
12144
12006
|
});
|
|
12145
12007
|
}
|
|
12146
12008
|
return target;
|
|
12147
12009
|
}
|
|
12148
|
-
function ownKeys$
|
|
12010
|
+
function ownKeys$y(object, enumerableOnly) {
|
|
12149
12011
|
var keys2 = Object.keys(object);
|
|
12150
12012
|
if (Object.getOwnPropertySymbols) {
|
|
12151
12013
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -12158,21 +12020,21 @@
|
|
|
12158
12020
|
}
|
|
12159
12021
|
return keys2;
|
|
12160
12022
|
}
|
|
12161
|
-
function _object_spread_props$
|
|
12023
|
+
function _object_spread_props$y(target, source) {
|
|
12162
12024
|
source = source != null ? source : {};
|
|
12163
12025
|
if (Object.getOwnPropertyDescriptors) {
|
|
12164
12026
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12165
12027
|
} else {
|
|
12166
|
-
ownKeys$
|
|
12028
|
+
ownKeys$y(Object(source)).forEach(function(key) {
|
|
12167
12029
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12168
12030
|
});
|
|
12169
12031
|
}
|
|
12170
12032
|
return target;
|
|
12171
12033
|
}
|
|
12172
|
-
function _object_without_properties$
|
|
12034
|
+
function _object_without_properties$9(source, excluded) {
|
|
12173
12035
|
if (source == null)
|
|
12174
12036
|
return {};
|
|
12175
|
-
var target = _object_without_properties_loose$
|
|
12037
|
+
var target = _object_without_properties_loose$9(source, excluded);
|
|
12176
12038
|
var key, i;
|
|
12177
12039
|
if (Object.getOwnPropertySymbols) {
|
|
12178
12040
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -12187,7 +12049,7 @@
|
|
|
12187
12049
|
}
|
|
12188
12050
|
return target;
|
|
12189
12051
|
}
|
|
12190
|
-
function _object_without_properties_loose$
|
|
12052
|
+
function _object_without_properties_loose$9(source, excluded) {
|
|
12191
12053
|
if (source == null)
|
|
12192
12054
|
return {};
|
|
12193
12055
|
var target = {};
|
|
@@ -12218,7 +12080,7 @@
|
|
|
12218
12080
|
return _array_like_to_array$k(o, minLen);
|
|
12219
12081
|
}
|
|
12220
12082
|
var DatePicker = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
12221
|
-
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$
|
|
12083
|
+
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, [
|
|
12222
12084
|
"data",
|
|
12223
12085
|
"selectedDate",
|
|
12224
12086
|
"minDate",
|
|
@@ -12263,7 +12125,7 @@
|
|
|
12263
12125
|
"onKeyDown",
|
|
12264
12126
|
"tweakStyles"
|
|
12265
12127
|
]);
|
|
12266
|
-
var classes = useStyles$
|
|
12128
|
+
var classes = useStyles$A({
|
|
12267
12129
|
theme: tweakStyles
|
|
12268
12130
|
});
|
|
12269
12131
|
var tweakDateInputStyles = useTweakStyles({
|
|
@@ -12286,7 +12148,7 @@
|
|
|
12286
12148
|
var _useState4 = _sliced_to_array$k(React.useState(endDate), 2), end2 = _useState4[0], setEnd = _useState4[1];
|
|
12287
12149
|
var _useState5 = _sliced_to_array$k(React.useState(formatDate(endDate)), 2), endDateValue = _useState5[0], setEndDateValue = _useState5[1];
|
|
12288
12150
|
var hasDateInputValue = isRange ? trueReactPlatformHelpers.isStringNotEmpty(startDateValue) || trueReactPlatformHelpers.isStringNotEmpty(endDateValue) : trueReactPlatformHelpers.isStringNotEmpty(dateValue);
|
|
12289
|
-
var dateInputProps = _object_spread$
|
|
12151
|
+
var dateInputProps = _object_spread$D(_object_spread_props$y(_object_spread$D({}, inputProps), {
|
|
12290
12152
|
isRange,
|
|
12291
12153
|
isDisabled,
|
|
12292
12154
|
isClearable,
|
|
@@ -12384,10 +12246,10 @@
|
|
|
12384
12246
|
startDate,
|
|
12385
12247
|
endDate
|
|
12386
12248
|
]);
|
|
12387
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
12249
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$y(_object_spread$D({
|
|
12388
12250
|
className: classes.root
|
|
12389
12251
|
}, addDataAttributes(data)), {
|
|
12390
|
-
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$
|
|
12252
|
+
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$D({
|
|
12391
12253
|
ref,
|
|
12392
12254
|
minDate,
|
|
12393
12255
|
maxDate,
|
|
@@ -12416,9 +12278,9 @@
|
|
|
12416
12278
|
preventOpenOnFocus,
|
|
12417
12279
|
shouldCloseOnSelect,
|
|
12418
12280
|
customInputRef,
|
|
12419
|
-
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$
|
|
12281
|
+
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$D({}, dateInputProps)),
|
|
12420
12282
|
renderCustomHeader: renderCustomHeader !== null && renderCustomHeader !== void 0 ? renderCustomHeader : function(baseProps) {
|
|
12421
|
-
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$
|
|
12283
|
+
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$y(_object_spread$D({}, baseProps), {
|
|
12422
12284
|
months
|
|
12423
12285
|
}));
|
|
12424
12286
|
},
|
|
@@ -12455,7 +12317,7 @@
|
|
|
12455
12317
|
}));
|
|
12456
12318
|
});
|
|
12457
12319
|
var LINK_REGEXP = /(http(s?):\/\/(.*))(\s?)/;
|
|
12458
|
-
var useStyles$
|
|
12320
|
+
var useStyles$z = createThemedStyles("Description", {
|
|
12459
12321
|
root: {},
|
|
12460
12322
|
button: {
|
|
12461
12323
|
cursor: "pointer",
|
|
@@ -12496,7 +12358,7 @@
|
|
|
12496
12358
|
if (Array.isArray(arr))
|
|
12497
12359
|
return arr;
|
|
12498
12360
|
}
|
|
12499
|
-
function _define_property$
|
|
12361
|
+
function _define_property$D(obj, key, value) {
|
|
12500
12362
|
if (key in obj) {
|
|
12501
12363
|
Object.defineProperty(obj, key, {
|
|
12502
12364
|
value,
|
|
@@ -12540,7 +12402,7 @@
|
|
|
12540
12402
|
function _non_iterable_rest$j() {
|
|
12541
12403
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12542
12404
|
}
|
|
12543
|
-
function _object_spread$
|
|
12405
|
+
function _object_spread$C(target) {
|
|
12544
12406
|
for (var i = 1; i < arguments.length; i++) {
|
|
12545
12407
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12546
12408
|
var ownKeys2 = Object.keys(source);
|
|
@@ -12550,12 +12412,12 @@
|
|
|
12550
12412
|
}));
|
|
12551
12413
|
}
|
|
12552
12414
|
ownKeys2.forEach(function(key) {
|
|
12553
|
-
_define_property$
|
|
12415
|
+
_define_property$D(target, key, source[key]);
|
|
12554
12416
|
});
|
|
12555
12417
|
}
|
|
12556
12418
|
return target;
|
|
12557
12419
|
}
|
|
12558
|
-
function ownKeys$
|
|
12420
|
+
function ownKeys$x(object, enumerableOnly) {
|
|
12559
12421
|
var keys2 = Object.keys(object);
|
|
12560
12422
|
if (Object.getOwnPropertySymbols) {
|
|
12561
12423
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -12568,12 +12430,12 @@
|
|
|
12568
12430
|
}
|
|
12569
12431
|
return keys2;
|
|
12570
12432
|
}
|
|
12571
|
-
function _object_spread_props$
|
|
12433
|
+
function _object_spread_props$x(target, source) {
|
|
12572
12434
|
source = source != null ? source : {};
|
|
12573
12435
|
if (Object.getOwnPropertyDescriptors) {
|
|
12574
12436
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12575
12437
|
} else {
|
|
12576
|
-
ownKeys$
|
|
12438
|
+
ownKeys$x(Object(source)).forEach(function(key) {
|
|
12577
12439
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12578
12440
|
});
|
|
12579
12441
|
}
|
|
@@ -12597,7 +12459,7 @@
|
|
|
12597
12459
|
}
|
|
12598
12460
|
var Description = function(param) {
|
|
12599
12461
|
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;
|
|
12600
|
-
var classes = useStyles$
|
|
12462
|
+
var classes = useStyles$z({
|
|
12601
12463
|
theme: tweakStyles
|
|
12602
12464
|
});
|
|
12603
12465
|
var isTooShort = text.length < truncateIndex;
|
|
@@ -12606,7 +12468,7 @@
|
|
|
12606
12468
|
var linkText = link && link[0];
|
|
12607
12469
|
var textWithNoLink = text.replace(LINK_REGEXP, "");
|
|
12608
12470
|
var shortText = text.slice(0, text.slice(0, truncateIndex).lastIndexOf(" "));
|
|
12609
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
12471
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$x(_object_spread$C({
|
|
12610
12472
|
className: classes.root
|
|
12611
12473
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
12612
12474
|
children: [
|
|
@@ -12853,7 +12715,7 @@
|
|
|
12853
12715
|
});
|
|
12854
12716
|
};
|
|
12855
12717
|
}
|
|
12856
|
-
function _define_property$
|
|
12718
|
+
function _define_property$C(obj, key, value) {
|
|
12857
12719
|
if (key in obj) {
|
|
12858
12720
|
Object.defineProperty(obj, key, {
|
|
12859
12721
|
value,
|
|
@@ -12897,7 +12759,7 @@
|
|
|
12897
12759
|
function _non_iterable_rest$i() {
|
|
12898
12760
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12899
12761
|
}
|
|
12900
|
-
function _object_spread$
|
|
12762
|
+
function _object_spread$B(target) {
|
|
12901
12763
|
for (var i = 1; i < arguments.length; i++) {
|
|
12902
12764
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12903
12765
|
var ownKeys2 = Object.keys(source);
|
|
@@ -12907,15 +12769,15 @@
|
|
|
12907
12769
|
}));
|
|
12908
12770
|
}
|
|
12909
12771
|
ownKeys2.forEach(function(key) {
|
|
12910
|
-
_define_property$
|
|
12772
|
+
_define_property$C(target, key, source[key]);
|
|
12911
12773
|
});
|
|
12912
12774
|
}
|
|
12913
12775
|
return target;
|
|
12914
12776
|
}
|
|
12915
|
-
function _object_without_properties$
|
|
12777
|
+
function _object_without_properties$8(source, excluded) {
|
|
12916
12778
|
if (source == null)
|
|
12917
12779
|
return {};
|
|
12918
|
-
var target = _object_without_properties_loose$
|
|
12780
|
+
var target = _object_without_properties_loose$8(source, excluded);
|
|
12919
12781
|
var key, i;
|
|
12920
12782
|
if (Object.getOwnPropertySymbols) {
|
|
12921
12783
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -12930,7 +12792,7 @@
|
|
|
12930
12792
|
}
|
|
12931
12793
|
return target;
|
|
12932
12794
|
}
|
|
12933
|
-
function _object_without_properties_loose$
|
|
12795
|
+
function _object_without_properties_loose$8(source, excluded) {
|
|
12934
12796
|
if (source == null)
|
|
12935
12797
|
return {};
|
|
12936
12798
|
var target = {};
|
|
@@ -12960,7 +12822,7 @@
|
|
|
12960
12822
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
12961
12823
|
return _array_like_to_array$i(o, minLen);
|
|
12962
12824
|
}
|
|
12963
|
-
|
|
12825
|
+
function _ts_generator$3(thisArg, body) {
|
|
12964
12826
|
var f, y, t, g, _ = {
|
|
12965
12827
|
label: 0,
|
|
12966
12828
|
sent: function() {
|
|
@@ -13061,9 +12923,9 @@
|
|
|
13061
12923
|
done: true
|
|
13062
12924
|
};
|
|
13063
12925
|
}
|
|
13064
|
-
}
|
|
12926
|
+
}
|
|
13065
12927
|
var NumberInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
13066
|
-
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$
|
|
12928
|
+
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, [
|
|
13067
12929
|
"value",
|
|
13068
12930
|
"canBeFloat",
|
|
13069
12931
|
"canBeNegative",
|
|
@@ -13088,7 +12950,7 @@
|
|
|
13088
12950
|
var handleChange = function() {
|
|
13089
12951
|
var _ref = _async_to_generator$3(function(inputValue, event) {
|
|
13090
12952
|
var oldValue, target, _target_selectionStart, defaultCaretPos, numString, numberRegexp, hasDot, formattedValue, newValue;
|
|
13091
|
-
return
|
|
12953
|
+
return _ts_generator$3(this, function(_state) {
|
|
13092
12954
|
switch (_state.label) {
|
|
13093
12955
|
case 0:
|
|
13094
12956
|
oldValue = showedValue;
|
|
@@ -13166,7 +13028,7 @@
|
|
|
13166
13028
|
}, [
|
|
13167
13029
|
value
|
|
13168
13030
|
]);
|
|
13169
|
-
return /* @__PURE__ */ jsx(Input, _object_spread$
|
|
13031
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$B({
|
|
13170
13032
|
value: showedValue,
|
|
13171
13033
|
onChange: handleChange,
|
|
13172
13034
|
onBlur: handleBlur,
|
|
@@ -13444,7 +13306,7 @@
|
|
|
13444
13306
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
13445
13307
|
}
|
|
13446
13308
|
var FILTER_HEIGHT = 36;
|
|
13447
|
-
var useStyles$
|
|
13309
|
+
var useStyles$y = createThemedStyles("FiltersPane", {
|
|
13448
13310
|
root: {
|
|
13449
13311
|
display: "flex",
|
|
13450
13312
|
flexWrap: "wrap",
|
|
@@ -13509,7 +13371,7 @@
|
|
|
13509
13371
|
}
|
|
13510
13372
|
}
|
|
13511
13373
|
};
|
|
13512
|
-
var useStyles$
|
|
13374
|
+
var useStyles$x = createThemedStyles("FilterInterval", {
|
|
13513
13375
|
root: {
|
|
13514
13376
|
padding: 8,
|
|
13515
13377
|
background: colors.CLASSIC_WHITE
|
|
@@ -13552,7 +13414,7 @@
|
|
|
13552
13414
|
}
|
|
13553
13415
|
};
|
|
13554
13416
|
var clearButtonStyles$3 = cloneDeep(innerTextButtonStyles);
|
|
13555
|
-
function _define_property$
|
|
13417
|
+
function _define_property$B(obj, key, value) {
|
|
13556
13418
|
if (key in obj) {
|
|
13557
13419
|
Object.defineProperty(obj, key, {
|
|
13558
13420
|
value,
|
|
@@ -13565,7 +13427,7 @@
|
|
|
13565
13427
|
}
|
|
13566
13428
|
return obj;
|
|
13567
13429
|
}
|
|
13568
|
-
function _object_spread$
|
|
13430
|
+
function _object_spread$A(target) {
|
|
13569
13431
|
for (var i = 1; i < arguments.length; i++) {
|
|
13570
13432
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13571
13433
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13575,12 +13437,12 @@
|
|
|
13575
13437
|
}));
|
|
13576
13438
|
}
|
|
13577
13439
|
ownKeys2.forEach(function(key) {
|
|
13578
|
-
_define_property$
|
|
13440
|
+
_define_property$B(target, key, source[key]);
|
|
13579
13441
|
});
|
|
13580
13442
|
}
|
|
13581
13443
|
return target;
|
|
13582
13444
|
}
|
|
13583
|
-
function ownKeys$
|
|
13445
|
+
function ownKeys$w(object, enumerableOnly) {
|
|
13584
13446
|
var keys2 = Object.keys(object);
|
|
13585
13447
|
if (Object.getOwnPropertySymbols) {
|
|
13586
13448
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13593,12 +13455,12 @@
|
|
|
13593
13455
|
}
|
|
13594
13456
|
return keys2;
|
|
13595
13457
|
}
|
|
13596
|
-
function _object_spread_props$
|
|
13458
|
+
function _object_spread_props$w(target, source) {
|
|
13597
13459
|
source = source != null ? source : {};
|
|
13598
13460
|
if (Object.getOwnPropertyDescriptors) {
|
|
13599
13461
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13600
13462
|
} else {
|
|
13601
|
-
ownKeys$
|
|
13463
|
+
ownKeys$w(Object(source)).forEach(function(key) {
|
|
13602
13464
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13603
13465
|
});
|
|
13604
13466
|
}
|
|
@@ -13606,7 +13468,7 @@
|
|
|
13606
13468
|
}
|
|
13607
13469
|
var FilterInterval = function(param) {
|
|
13608
13470
|
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;
|
|
13609
|
-
var classes = useStyles$
|
|
13471
|
+
var classes = useStyles$x({
|
|
13610
13472
|
theme: tweakStyles
|
|
13611
13473
|
});
|
|
13612
13474
|
var translates = React.useMemo(function() {
|
|
@@ -13650,7 +13512,7 @@
|
|
|
13650
13512
|
className: "tweakClearButton",
|
|
13651
13513
|
currentComponentName: "FilterInterval"
|
|
13652
13514
|
});
|
|
13653
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
13515
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$w(_object_spread$A({
|
|
13654
13516
|
className: classes.root
|
|
13655
13517
|
}, addDataAttributes(data)), {
|
|
13656
13518
|
children: [
|
|
@@ -13747,7 +13609,7 @@
|
|
|
13747
13609
|
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;
|
|
13748
13610
|
return merge$1({}, MultiSelectLocales[key], custom, custom2);
|
|
13749
13611
|
};
|
|
13750
|
-
function _define_property$
|
|
13612
|
+
function _define_property$A(obj, key, value) {
|
|
13751
13613
|
if (key in obj) {
|
|
13752
13614
|
Object.defineProperty(obj, key, {
|
|
13753
13615
|
value,
|
|
@@ -13760,7 +13622,7 @@
|
|
|
13760
13622
|
}
|
|
13761
13623
|
return obj;
|
|
13762
13624
|
}
|
|
13763
|
-
function _object_spread$
|
|
13625
|
+
function _object_spread$z(target) {
|
|
13764
13626
|
for (var i = 1; i < arguments.length; i++) {
|
|
13765
13627
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13766
13628
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13770,19 +13632,19 @@
|
|
|
13770
13632
|
}));
|
|
13771
13633
|
}
|
|
13772
13634
|
ownKeys2.forEach(function(key) {
|
|
13773
|
-
_define_property$
|
|
13635
|
+
_define_property$A(target, key, source[key]);
|
|
13774
13636
|
});
|
|
13775
13637
|
}
|
|
13776
13638
|
return target;
|
|
13777
13639
|
}
|
|
13778
13640
|
var ITEM_HEIGHT$1 = 40;
|
|
13779
13641
|
var TOP_GAP = 12;
|
|
13780
|
-
var useStyles$
|
|
13642
|
+
var useStyles$w = createThemedStyles("MultiSelectList", {
|
|
13781
13643
|
root: {
|
|
13782
13644
|
width: 220,
|
|
13783
13645
|
background: colors.CLASSIC_WHITE
|
|
13784
13646
|
},
|
|
13785
|
-
list: _object_spread$
|
|
13647
|
+
list: _object_spread$z({
|
|
13786
13648
|
paddingTop: TOP_GAP,
|
|
13787
13649
|
maxHeight: ITEM_HEIGHT$1 * 5 + TOP_GAP,
|
|
13788
13650
|
overscrollBehavior: "contain"
|
|
@@ -13939,7 +13801,7 @@
|
|
|
13939
13801
|
});
|
|
13940
13802
|
};
|
|
13941
13803
|
}
|
|
13942
|
-
function _define_property$
|
|
13804
|
+
function _define_property$z(obj, key, value) {
|
|
13943
13805
|
if (key in obj) {
|
|
13944
13806
|
Object.defineProperty(obj, key, {
|
|
13945
13807
|
value,
|
|
@@ -13990,7 +13852,7 @@
|
|
|
13990
13852
|
function _non_iterable_spread$5() {
|
|
13991
13853
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13992
13854
|
}
|
|
13993
|
-
function _object_spread$
|
|
13855
|
+
function _object_spread$y(target) {
|
|
13994
13856
|
for (var i = 1; i < arguments.length; i++) {
|
|
13995
13857
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13996
13858
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14000,12 +13862,12 @@
|
|
|
14000
13862
|
}));
|
|
14001
13863
|
}
|
|
14002
13864
|
ownKeys2.forEach(function(key) {
|
|
14003
|
-
_define_property$
|
|
13865
|
+
_define_property$z(target, key, source[key]);
|
|
14004
13866
|
});
|
|
14005
13867
|
}
|
|
14006
13868
|
return target;
|
|
14007
13869
|
}
|
|
14008
|
-
function ownKeys$
|
|
13870
|
+
function ownKeys$v(object, enumerableOnly) {
|
|
14009
13871
|
var keys2 = Object.keys(object);
|
|
14010
13872
|
if (Object.getOwnPropertySymbols) {
|
|
14011
13873
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14018,12 +13880,12 @@
|
|
|
14018
13880
|
}
|
|
14019
13881
|
return keys2;
|
|
14020
13882
|
}
|
|
14021
|
-
function _object_spread_props$
|
|
13883
|
+
function _object_spread_props$v(target, source) {
|
|
14022
13884
|
source = source != null ? source : {};
|
|
14023
13885
|
if (Object.getOwnPropertyDescriptors) {
|
|
14024
13886
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14025
13887
|
} else {
|
|
14026
|
-
ownKeys$
|
|
13888
|
+
ownKeys$v(Object(source)).forEach(function(key) {
|
|
14027
13889
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14028
13890
|
});
|
|
14029
13891
|
}
|
|
@@ -14048,7 +13910,7 @@
|
|
|
14048
13910
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
14049
13911
|
return _array_like_to_array$h(o, minLen);
|
|
14050
13912
|
}
|
|
14051
|
-
|
|
13913
|
+
function _ts_generator$2(thisArg, body) {
|
|
14052
13914
|
var f, y, t, g, _ = {
|
|
14053
13915
|
label: 0,
|
|
14054
13916
|
sent: function() {
|
|
@@ -14149,25 +14011,11 @@
|
|
|
14149
14011
|
done: true
|
|
14150
14012
|
};
|
|
14151
14013
|
}
|
|
14152
|
-
}
|
|
14014
|
+
}
|
|
14153
14015
|
function MultiSelectList(param) {
|
|
14154
14016
|
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;
|
|
14155
|
-
var handleOnChange = function handleOnChange2(inputValue) {
|
|
14156
|
-
setSearchValue(inputValue);
|
|
14157
|
-
if (fetchOptions === void 0) {
|
|
14158
|
-
if (options !== void 0) {
|
|
14159
|
-
var lowerSearchValue = inputValue.toLowerCase();
|
|
14160
|
-
setAllOptions(options.filter(function(o) {
|
|
14161
|
-
return getValueString(o).toLowerCase().includes(lowerSearchValue);
|
|
14162
|
-
}));
|
|
14163
|
-
}
|
|
14164
|
-
} else {
|
|
14165
|
-
setIsLoading(true);
|
|
14166
|
-
changeSearchValue(inputValue);
|
|
14167
|
-
}
|
|
14168
|
-
};
|
|
14169
14017
|
var isMounted = useIsMounted();
|
|
14170
|
-
var classes = useStyles$
|
|
14018
|
+
var classes = useStyles$w({
|
|
14171
14019
|
theme: tweakStyles
|
|
14172
14020
|
});
|
|
14173
14021
|
var tweakCheckboxStyles = useTweakStyles({
|
|
@@ -14221,7 +14069,7 @@
|
|
|
14221
14069
|
var handleSearchInputChange = React.useCallback(function() {
|
|
14222
14070
|
var _ref = _async_to_generator$2(function(inputValue) {
|
|
14223
14071
|
var _inputValue_trim, response;
|
|
14224
|
-
return
|
|
14072
|
+
return _ts_generator$2(this, function(_state) {
|
|
14225
14073
|
switch (_state.label) {
|
|
14226
14074
|
case 0:
|
|
14227
14075
|
if (fetchOptions === void 0) {
|
|
@@ -14277,6 +14125,20 @@
|
|
|
14277
14125
|
var changeSearchValue = React.useCallback(tsDebounce.debounce(handleSearchInputChange), [
|
|
14278
14126
|
handleSearchInputChange
|
|
14279
14127
|
]);
|
|
14128
|
+
function handleOnChange(inputValue) {
|
|
14129
|
+
setSearchValue(inputValue);
|
|
14130
|
+
if (fetchOptions === void 0) {
|
|
14131
|
+
if (options !== void 0) {
|
|
14132
|
+
var lowerSearchValue = inputValue.toLowerCase();
|
|
14133
|
+
setAllOptions(options.filter(function(o) {
|
|
14134
|
+
return getValueString(o).toLowerCase().includes(lowerSearchValue);
|
|
14135
|
+
}));
|
|
14136
|
+
}
|
|
14137
|
+
} else {
|
|
14138
|
+
setIsLoading(true);
|
|
14139
|
+
changeSearchValue(inputValue);
|
|
14140
|
+
}
|
|
14141
|
+
}
|
|
14280
14142
|
var handleSelectValue = function(val) {
|
|
14281
14143
|
if (val.length === 0) {
|
|
14282
14144
|
onChange(void 0);
|
|
@@ -14322,13 +14184,13 @@
|
|
|
14322
14184
|
if (value !== void 0) {
|
|
14323
14185
|
if (keyCursorOn < value.include.length) {
|
|
14324
14186
|
var _value_include_filter;
|
|
14325
|
-
onChange(_object_spread_props$
|
|
14187
|
+
onChange(_object_spread_props$v(_object_spread$y({}, value), {
|
|
14326
14188
|
include: (_value_include_filter = value.include.filter(function(val) {
|
|
14327
14189
|
return getValueId(val) !== getValueId(value.include[keyCursorOn]);
|
|
14328
14190
|
})) !== null && _value_include_filter !== void 0 ? _value_include_filter : []
|
|
14329
14191
|
}));
|
|
14330
14192
|
} else {
|
|
14331
|
-
onChange(_object_spread_props$
|
|
14193
|
+
onChange(_object_spread_props$v(_object_spread$y({}, value), {
|
|
14332
14194
|
include: _to_consumable_array$5(value.include).concat([
|
|
14333
14195
|
unchosenOptions[keyCursorOn - value.include.length]
|
|
14334
14196
|
])
|
|
@@ -14351,7 +14213,7 @@
|
|
|
14351
14213
|
var handleLoadItemsOnScroll = React.useCallback(function() {
|
|
14352
14214
|
var _ref = _async_to_generator$2(function(inputValue, page) {
|
|
14353
14215
|
var response;
|
|
14354
|
-
return
|
|
14216
|
+
return _ts_generator$2(this, function(_state) {
|
|
14355
14217
|
switch (_state.label) {
|
|
14356
14218
|
case 0:
|
|
14357
14219
|
if (fetchOptions === void 0) {
|
|
@@ -14418,7 +14280,7 @@
|
|
|
14418
14280
|
}
|
|
14419
14281
|
observer.current = new IntersectionObserver(function() {
|
|
14420
14282
|
var _ref = _async_to_generator$2(function(entries) {
|
|
14421
|
-
return
|
|
14283
|
+
return _ts_generator$2(this, function(_state) {
|
|
14422
14284
|
switch (_state.label) {
|
|
14423
14285
|
case 0:
|
|
14424
14286
|
if (!entries[0].isIntersecting)
|
|
@@ -14467,7 +14329,7 @@
|
|
|
14467
14329
|
var doFetchOptions = function() {
|
|
14468
14330
|
var _ref = _async_to_generator$2(function() {
|
|
14469
14331
|
var response;
|
|
14470
|
-
return
|
|
14332
|
+
return _ts_generator$2(this, function(_state) {
|
|
14471
14333
|
switch (_state.label) {
|
|
14472
14334
|
case 0:
|
|
14473
14335
|
setIsLoading(true);
|
|
@@ -14527,7 +14389,7 @@
|
|
|
14527
14389
|
var shouldShowAllOptionsLabel = isGroupingEnabled && unchosenOptions.length > 0 && chosenValues !== void 0 && chosenValues.length > 0;
|
|
14528
14390
|
var shouldShowPreloader = isLoading || isLoadingOptionsOnScroll;
|
|
14529
14391
|
var shouldShowOptionsList = !isLoading && allOptions.length !== 0;
|
|
14530
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14392
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$v(_object_spread$y({
|
|
14531
14393
|
className: classes.root
|
|
14532
14394
|
}, addDataAttributes(data)), {
|
|
14533
14395
|
children: [
|
|
@@ -14631,7 +14493,7 @@
|
|
|
14631
14493
|
]
|
|
14632
14494
|
}));
|
|
14633
14495
|
}
|
|
14634
|
-
function _define_property$
|
|
14496
|
+
function _define_property$y(obj, key, value) {
|
|
14635
14497
|
if (key in obj) {
|
|
14636
14498
|
Object.defineProperty(obj, key, {
|
|
14637
14499
|
value,
|
|
@@ -14644,7 +14506,7 @@
|
|
|
14644
14506
|
}
|
|
14645
14507
|
return obj;
|
|
14646
14508
|
}
|
|
14647
|
-
function _object_spread$
|
|
14509
|
+
function _object_spread$x(target) {
|
|
14648
14510
|
for (var i = 1; i < arguments.length; i++) {
|
|
14649
14511
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14650
14512
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14654,15 +14516,15 @@
|
|
|
14654
14516
|
}));
|
|
14655
14517
|
}
|
|
14656
14518
|
ownKeys2.forEach(function(key) {
|
|
14657
|
-
_define_property$
|
|
14519
|
+
_define_property$y(target, key, source[key]);
|
|
14658
14520
|
});
|
|
14659
14521
|
}
|
|
14660
14522
|
return target;
|
|
14661
14523
|
}
|
|
14662
14524
|
function FilterMultiSelect(props) {
|
|
14663
|
-
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$
|
|
14525
|
+
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$x({}, props));
|
|
14664
14526
|
}
|
|
14665
|
-
function _define_property$
|
|
14527
|
+
function _define_property$x(obj, key, value) {
|
|
14666
14528
|
if (key in obj) {
|
|
14667
14529
|
Object.defineProperty(obj, key, {
|
|
14668
14530
|
value,
|
|
@@ -14675,7 +14537,7 @@
|
|
|
14675
14537
|
}
|
|
14676
14538
|
return obj;
|
|
14677
14539
|
}
|
|
14678
|
-
function _object_spread$
|
|
14540
|
+
function _object_spread$w(target) {
|
|
14679
14541
|
for (var i = 1; i < arguments.length; i++) {
|
|
14680
14542
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14681
14543
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14685,19 +14547,19 @@
|
|
|
14685
14547
|
}));
|
|
14686
14548
|
}
|
|
14687
14549
|
ownKeys2.forEach(function(key) {
|
|
14688
|
-
_define_property$
|
|
14550
|
+
_define_property$x(target, key, source[key]);
|
|
14689
14551
|
});
|
|
14690
14552
|
}
|
|
14691
14553
|
return target;
|
|
14692
14554
|
}
|
|
14693
14555
|
var ITEM_HEIGHT = 40;
|
|
14694
14556
|
var LIST_GAP = 12;
|
|
14695
|
-
var useStyles$
|
|
14557
|
+
var useStyles$v = createThemedStyles("FilterSelect", {
|
|
14696
14558
|
root: {
|
|
14697
14559
|
width: 220,
|
|
14698
14560
|
background: colors.CLASSIC_WHITE
|
|
14699
14561
|
},
|
|
14700
|
-
list: _object_spread$
|
|
14562
|
+
list: _object_spread$w({
|
|
14701
14563
|
paddingTop: LIST_GAP,
|
|
14702
14564
|
padding: [
|
|
14703
14565
|
LIST_GAP,
|
|
@@ -14869,7 +14731,7 @@
|
|
|
14869
14731
|
});
|
|
14870
14732
|
};
|
|
14871
14733
|
}
|
|
14872
|
-
function _define_property$
|
|
14734
|
+
function _define_property$w(obj, key, value) {
|
|
14873
14735
|
if (key in obj) {
|
|
14874
14736
|
Object.defineProperty(obj, key, {
|
|
14875
14737
|
value,
|
|
@@ -14920,7 +14782,7 @@
|
|
|
14920
14782
|
function _non_iterable_spread$4() {
|
|
14921
14783
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14922
14784
|
}
|
|
14923
|
-
function _object_spread$
|
|
14785
|
+
function _object_spread$v(target) {
|
|
14924
14786
|
for (var i = 1; i < arguments.length; i++) {
|
|
14925
14787
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14926
14788
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14930,12 +14792,12 @@
|
|
|
14930
14792
|
}));
|
|
14931
14793
|
}
|
|
14932
14794
|
ownKeys2.forEach(function(key) {
|
|
14933
|
-
_define_property$
|
|
14795
|
+
_define_property$w(target, key, source[key]);
|
|
14934
14796
|
});
|
|
14935
14797
|
}
|
|
14936
14798
|
return target;
|
|
14937
14799
|
}
|
|
14938
|
-
function ownKeys$
|
|
14800
|
+
function ownKeys$u(object, enumerableOnly) {
|
|
14939
14801
|
var keys2 = Object.keys(object);
|
|
14940
14802
|
if (Object.getOwnPropertySymbols) {
|
|
14941
14803
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14948,12 +14810,12 @@
|
|
|
14948
14810
|
}
|
|
14949
14811
|
return keys2;
|
|
14950
14812
|
}
|
|
14951
|
-
function _object_spread_props$
|
|
14813
|
+
function _object_spread_props$u(target, source) {
|
|
14952
14814
|
source = source != null ? source : {};
|
|
14953
14815
|
if (Object.getOwnPropertyDescriptors) {
|
|
14954
14816
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14955
14817
|
} else {
|
|
14956
|
-
ownKeys$
|
|
14818
|
+
ownKeys$u(Object(source)).forEach(function(key) {
|
|
14957
14819
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14958
14820
|
});
|
|
14959
14821
|
}
|
|
@@ -14978,7 +14840,7 @@
|
|
|
14978
14840
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
14979
14841
|
return _array_like_to_array$g(o, minLen);
|
|
14980
14842
|
}
|
|
14981
|
-
|
|
14843
|
+
function _ts_generator$1(thisArg, body) {
|
|
14982
14844
|
var f, y, t, g, _ = {
|
|
14983
14845
|
label: 0,
|
|
14984
14846
|
sent: function() {
|
|
@@ -15079,10 +14941,10 @@
|
|
|
15079
14941
|
done: true
|
|
15080
14942
|
};
|
|
15081
14943
|
}
|
|
15082
|
-
}
|
|
14944
|
+
}
|
|
15083
14945
|
function FilterSelect(param) {
|
|
15084
14946
|
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;
|
|
15085
|
-
var classes = useStyles$
|
|
14947
|
+
var classes = useStyles$v({
|
|
15086
14948
|
theme: tweakStyles
|
|
15087
14949
|
});
|
|
15088
14950
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -15116,7 +14978,7 @@
|
|
|
15116
14978
|
var handleSearchInputChange = React.useCallback(function() {
|
|
15117
14979
|
var _ref = _async_to_generator$1(function(inputValue) {
|
|
15118
14980
|
var _inputValue_trim, response;
|
|
15119
|
-
return
|
|
14981
|
+
return _ts_generator$1(this, function(_state) {
|
|
15120
14982
|
switch (_state.label) {
|
|
15121
14983
|
case 0:
|
|
15122
14984
|
if (fetchOptions === void 0) {
|
|
@@ -15196,7 +15058,7 @@
|
|
|
15196
15058
|
var handleLoadItemsOnScroll = React.useCallback(function() {
|
|
15197
15059
|
var _ref = _async_to_generator$1(function(inputValue, page) {
|
|
15198
15060
|
var _inputValue_trim, response;
|
|
15199
|
-
return
|
|
15061
|
+
return _ts_generator$1(this, function(_state) {
|
|
15200
15062
|
switch (_state.label) {
|
|
15201
15063
|
case 0:
|
|
15202
15064
|
if (fetchOptions === void 0) {
|
|
@@ -15261,7 +15123,7 @@
|
|
|
15261
15123
|
}
|
|
15262
15124
|
observer.current = new IntersectionObserver(function() {
|
|
15263
15125
|
var _ref = _async_to_generator$1(function(entries) {
|
|
15264
|
-
return
|
|
15126
|
+
return _ts_generator$1(this, function(_state) {
|
|
15265
15127
|
switch (_state.label) {
|
|
15266
15128
|
case 0:
|
|
15267
15129
|
if (!entries[0].isIntersecting)
|
|
@@ -15310,7 +15172,7 @@
|
|
|
15310
15172
|
var doFetchOptions = function() {
|
|
15311
15173
|
var _ref = _async_to_generator$1(function() {
|
|
15312
15174
|
var response;
|
|
15313
|
-
return
|
|
15175
|
+
return _ts_generator$1(this, function(_state) {
|
|
15314
15176
|
switch (_state.label) {
|
|
15315
15177
|
case 0:
|
|
15316
15178
|
setIsLoading(true);
|
|
@@ -15353,7 +15215,7 @@
|
|
|
15353
15215
|
}();
|
|
15354
15216
|
doFetchOptions();
|
|
15355
15217
|
}, []);
|
|
15356
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
15218
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$u(_object_spread$v({
|
|
15357
15219
|
className: classes.root
|
|
15358
15220
|
}, addDataAttributes(data)), {
|
|
15359
15221
|
children: [
|
|
@@ -15453,7 +15315,7 @@
|
|
|
15453
15315
|
children: translates.nothingFound
|
|
15454
15316
|
}),
|
|
15455
15317
|
(hasClearButton || hasFooter) && /* @__PURE__ */ jsxs("div", {
|
|
15456
|
-
className: clsx(classes.panel, _define_property$
|
|
15318
|
+
className: clsx(classes.panel, _define_property$w({}, classes.panelWithFooter, hasFooter)),
|
|
15457
15319
|
children: [
|
|
15458
15320
|
hasFooter && /* @__PURE__ */ jsx("div", {
|
|
15459
15321
|
className: classes.footer,
|
|
@@ -15570,8 +15432,8 @@
|
|
|
15570
15432
|
return function() {
|
|
15571
15433
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
15572
15434
|
var width = options.width ? String(options.width) : args.defaultWidth;
|
|
15573
|
-
var
|
|
15574
|
-
return
|
|
15435
|
+
var format = args.formats[width] || args.formats[args.defaultWidth];
|
|
15436
|
+
return format;
|
|
15575
15437
|
};
|
|
15576
15438
|
}
|
|
15577
15439
|
var dateFormats$1 = {
|
|
@@ -16315,11 +16177,11 @@
|
|
|
16315
16177
|
other: "P"
|
|
16316
16178
|
};
|
|
16317
16179
|
var formatRelative = function formatRelative2(token, date, baseDate, options) {
|
|
16318
|
-
var
|
|
16319
|
-
if (typeof
|
|
16320
|
-
return
|
|
16180
|
+
var format = formatRelativeLocale[token];
|
|
16181
|
+
if (typeof format === "function") {
|
|
16182
|
+
return format(date, baseDate, options);
|
|
16321
16183
|
}
|
|
16322
|
-
return
|
|
16184
|
+
return format;
|
|
16323
16185
|
};
|
|
16324
16186
|
const formatRelative$1 = formatRelative;
|
|
16325
16187
|
var eraValues = {
|
|
@@ -16566,7 +16428,7 @@
|
|
|
16566
16428
|
}
|
|
16567
16429
|
};
|
|
16568
16430
|
const ru = locale;
|
|
16569
|
-
var useStyles$
|
|
16431
|
+
var useStyles$u = createThemedStyles("FilterWithDates", {
|
|
16570
16432
|
root: {
|
|
16571
16433
|
background: colors.CLASSIC_WHITE,
|
|
16572
16434
|
position: "relative",
|
|
@@ -16633,7 +16495,7 @@
|
|
|
16633
16495
|
if (Array.isArray(arr))
|
|
16634
16496
|
return arr;
|
|
16635
16497
|
}
|
|
16636
|
-
function _define_property$
|
|
16498
|
+
function _define_property$v(obj, key, value) {
|
|
16637
16499
|
if (key in obj) {
|
|
16638
16500
|
Object.defineProperty(obj, key, {
|
|
16639
16501
|
value,
|
|
@@ -16677,7 +16539,7 @@
|
|
|
16677
16539
|
function _non_iterable_rest$f() {
|
|
16678
16540
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16679
16541
|
}
|
|
16680
|
-
function _object_spread$
|
|
16542
|
+
function _object_spread$u(target) {
|
|
16681
16543
|
for (var i = 1; i < arguments.length; i++) {
|
|
16682
16544
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16683
16545
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16687,12 +16549,12 @@
|
|
|
16687
16549
|
}));
|
|
16688
16550
|
}
|
|
16689
16551
|
ownKeys2.forEach(function(key) {
|
|
16690
|
-
_define_property$
|
|
16552
|
+
_define_property$v(target, key, source[key]);
|
|
16691
16553
|
});
|
|
16692
16554
|
}
|
|
16693
16555
|
return target;
|
|
16694
16556
|
}
|
|
16695
|
-
function ownKeys$
|
|
16557
|
+
function ownKeys$t(object, enumerableOnly) {
|
|
16696
16558
|
var keys2 = Object.keys(object);
|
|
16697
16559
|
if (Object.getOwnPropertySymbols) {
|
|
16698
16560
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -16705,12 +16567,12 @@
|
|
|
16705
16567
|
}
|
|
16706
16568
|
return keys2;
|
|
16707
16569
|
}
|
|
16708
|
-
function _object_spread_props$
|
|
16570
|
+
function _object_spread_props$t(target, source) {
|
|
16709
16571
|
source = source != null ? source : {};
|
|
16710
16572
|
if (Object.getOwnPropertyDescriptors) {
|
|
16711
16573
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
16712
16574
|
} else {
|
|
16713
|
-
ownKeys$
|
|
16575
|
+
ownKeys$t(Object(source)).forEach(function(key) {
|
|
16714
16576
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
16715
16577
|
});
|
|
16716
16578
|
}
|
|
@@ -16734,7 +16596,7 @@
|
|
|
16734
16596
|
}
|
|
16735
16597
|
var FilterWithDates = function(param) {
|
|
16736
16598
|
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;
|
|
16737
|
-
var classes = useStyles$
|
|
16599
|
+
var classes = useStyles$u({
|
|
16738
16600
|
theme: tweakStyles
|
|
16739
16601
|
});
|
|
16740
16602
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -16821,7 +16683,7 @@
|
|
|
16821
16683
|
}
|
|
16822
16684
|
};
|
|
16823
16685
|
var _ref;
|
|
16824
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
16686
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$t(_object_spread$u({
|
|
16825
16687
|
className: classes.root
|
|
16826
16688
|
}, addDataAttributes(data)), {
|
|
16827
16689
|
children: [
|
|
@@ -16830,7 +16692,7 @@
|
|
|
16830
16692
|
children: [
|
|
16831
16693
|
/* @__PURE__ */ jsx("div", {
|
|
16832
16694
|
className: classes.containerItem,
|
|
16833
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
16695
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$u({
|
|
16834
16696
|
selectedDate: value === null || value === void 0 ? void 0 : value.from,
|
|
16835
16697
|
maxDate: value === null || value === void 0 ? void 0 : value.to,
|
|
16836
16698
|
label: translates.from,
|
|
@@ -16845,7 +16707,7 @@
|
|
|
16845
16707
|
}),
|
|
16846
16708
|
/* @__PURE__ */ jsx("div", {
|
|
16847
16709
|
className: classes.containerItem,
|
|
16848
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
16710
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$u({
|
|
16849
16711
|
selectedDate: value === null || value === void 0 ? void 0 : value.to,
|
|
16850
16712
|
label: translates.to,
|
|
16851
16713
|
months: translates.months,
|
|
@@ -16901,7 +16763,7 @@
|
|
|
16901
16763
|
]
|
|
16902
16764
|
}));
|
|
16903
16765
|
};
|
|
16904
|
-
var useStyles$
|
|
16766
|
+
var useStyles$t = createThemedStyles("FilterWithPeriod", {
|
|
16905
16767
|
root: {},
|
|
16906
16768
|
main: {},
|
|
16907
16769
|
picker: {}
|
|
@@ -16926,7 +16788,7 @@
|
|
|
16926
16788
|
if (Array.isArray(arr))
|
|
16927
16789
|
return _array_like_to_array$e(arr);
|
|
16928
16790
|
}
|
|
16929
|
-
function _define_property$
|
|
16791
|
+
function _define_property$u(obj, key, value) {
|
|
16930
16792
|
if (key in obj) {
|
|
16931
16793
|
Object.defineProperty(obj, key, {
|
|
16932
16794
|
value,
|
|
@@ -16977,7 +16839,7 @@
|
|
|
16977
16839
|
function _non_iterable_spread$3() {
|
|
16978
16840
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16979
16841
|
}
|
|
16980
|
-
function _object_spread$
|
|
16842
|
+
function _object_spread$t(target) {
|
|
16981
16843
|
for (var i = 1; i < arguments.length; i++) {
|
|
16982
16844
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16983
16845
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16987,12 +16849,12 @@
|
|
|
16987
16849
|
}));
|
|
16988
16850
|
}
|
|
16989
16851
|
ownKeys2.forEach(function(key) {
|
|
16990
|
-
_define_property$
|
|
16852
|
+
_define_property$u(target, key, source[key]);
|
|
16991
16853
|
});
|
|
16992
16854
|
}
|
|
16993
16855
|
return target;
|
|
16994
16856
|
}
|
|
16995
|
-
function ownKeys$
|
|
16857
|
+
function ownKeys$s(object, enumerableOnly) {
|
|
16996
16858
|
var keys2 = Object.keys(object);
|
|
16997
16859
|
if (Object.getOwnPropertySymbols) {
|
|
16998
16860
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17005,12 +16867,12 @@
|
|
|
17005
16867
|
}
|
|
17006
16868
|
return keys2;
|
|
17007
16869
|
}
|
|
17008
|
-
function _object_spread_props$
|
|
16870
|
+
function _object_spread_props$s(target, source) {
|
|
17009
16871
|
source = source != null ? source : {};
|
|
17010
16872
|
if (Object.getOwnPropertyDescriptors) {
|
|
17011
16873
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17012
16874
|
} else {
|
|
17013
|
-
ownKeys$
|
|
16875
|
+
ownKeys$s(Object(source)).forEach(function(key) {
|
|
17014
16876
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17015
16877
|
});
|
|
17016
16878
|
}
|
|
@@ -17037,7 +16899,7 @@
|
|
|
17037
16899
|
}
|
|
17038
16900
|
var FilterWithPeriod = function(param) {
|
|
17039
16901
|
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;
|
|
17040
|
-
var classes = useStyles$
|
|
16902
|
+
var classes = useStyles$t({
|
|
17041
16903
|
theme: tweakStyles
|
|
17042
16904
|
});
|
|
17043
16905
|
var translates = React.useMemo(function() {
|
|
@@ -17050,7 +16912,7 @@
|
|
|
17050
16912
|
var _useState1 = _sliced_to_array$e(React.useState((value === null || value === void 0 ? void 0 : value.periodType) === "CUSTOM"), 2), isDatePickerShown = _useState1[0], setIsDatePickerShown = _useState1[1];
|
|
17051
16913
|
var _useState2 = _sliced_to_array$e(React.useState(value), 2), period = _useState2[0], setPeriod = _useState2[1];
|
|
17052
16914
|
var periodGetters = React.useMemo(function() {
|
|
17053
|
-
var result = _object_spread$
|
|
16915
|
+
var result = _object_spread$t({}, PERIODS_GETTERS);
|
|
17054
16916
|
periods === null || periods === void 0 ? void 0 : periods.forEach(function(p) {
|
|
17055
16917
|
if (Array.isArray(p)) {
|
|
17056
16918
|
result[p[0]] = p[1];
|
|
@@ -17070,8 +16932,8 @@
|
|
|
17070
16932
|
}, [
|
|
17071
16933
|
periods
|
|
17072
16934
|
]);
|
|
17073
|
-
var _translates_periods_val;
|
|
17074
16935
|
var getPeriodTranslate = React.useCallback(function(val) {
|
|
16936
|
+
var _translates_periods_val;
|
|
17075
16937
|
return (_translates_periods_val = translates.periods[val]) !== null && _translates_periods_val !== void 0 ? _translates_periods_val : val;
|
|
17076
16938
|
}, [
|
|
17077
16939
|
translates.periods
|
|
@@ -17096,7 +16958,7 @@
|
|
|
17096
16958
|
if (onClose !== void 0) {
|
|
17097
16959
|
onClose();
|
|
17098
16960
|
}
|
|
17099
|
-
onChange(_object_spread_props$
|
|
16961
|
+
onChange(_object_spread_props$s(_object_spread$t({}, p), {
|
|
17100
16962
|
label: getPeriodTranslate(periodType)
|
|
17101
16963
|
}));
|
|
17102
16964
|
}
|
|
@@ -17116,7 +16978,7 @@
|
|
|
17116
16978
|
};
|
|
17117
16979
|
var handleCustomDateChange = function(val) {
|
|
17118
16980
|
if (val.from || val.to) {
|
|
17119
|
-
onChange(_object_spread_props$
|
|
16981
|
+
onChange(_object_spread_props$s(_object_spread$t({}, val), {
|
|
17120
16982
|
periodType: "CUSTOM"
|
|
17121
16983
|
}));
|
|
17122
16984
|
} else {
|
|
@@ -17199,7 +17061,7 @@
|
|
|
17199
17061
|
if (Array.isArray(arr))
|
|
17200
17062
|
return arr;
|
|
17201
17063
|
}
|
|
17202
|
-
function _define_property$
|
|
17064
|
+
function _define_property$t(obj, key, value) {
|
|
17203
17065
|
if (key in obj) {
|
|
17204
17066
|
Object.defineProperty(obj, key, {
|
|
17205
17067
|
value,
|
|
@@ -17243,7 +17105,7 @@
|
|
|
17243
17105
|
function _non_iterable_rest$d() {
|
|
17244
17106
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17245
17107
|
}
|
|
17246
|
-
function _object_spread$
|
|
17108
|
+
function _object_spread$s(target) {
|
|
17247
17109
|
for (var i = 1; i < arguments.length; i++) {
|
|
17248
17110
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17249
17111
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17253,12 +17115,12 @@
|
|
|
17253
17115
|
}));
|
|
17254
17116
|
}
|
|
17255
17117
|
ownKeys2.forEach(function(key) {
|
|
17256
|
-
_define_property$
|
|
17118
|
+
_define_property$t(target, key, source[key]);
|
|
17257
17119
|
});
|
|
17258
17120
|
}
|
|
17259
17121
|
return target;
|
|
17260
17122
|
}
|
|
17261
|
-
function ownKeys$
|
|
17123
|
+
function ownKeys$r(object, enumerableOnly) {
|
|
17262
17124
|
var keys2 = Object.keys(object);
|
|
17263
17125
|
if (Object.getOwnPropertySymbols) {
|
|
17264
17126
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17271,12 +17133,12 @@
|
|
|
17271
17133
|
}
|
|
17272
17134
|
return keys2;
|
|
17273
17135
|
}
|
|
17274
|
-
function _object_spread_props$
|
|
17136
|
+
function _object_spread_props$r(target, source) {
|
|
17275
17137
|
source = source != null ? source : {};
|
|
17276
17138
|
if (Object.getOwnPropertyDescriptors) {
|
|
17277
17139
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17278
17140
|
} else {
|
|
17279
|
-
ownKeys$
|
|
17141
|
+
ownKeys$r(Object(source)).forEach(function(key) {
|
|
17280
17142
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17281
17143
|
});
|
|
17282
17144
|
}
|
|
@@ -17334,7 +17196,7 @@
|
|
|
17334
17196
|
]);
|
|
17335
17197
|
var props = {
|
|
17336
17198
|
ref,
|
|
17337
|
-
className: clsx(classes[dropdownPosition], _define_property$
|
|
17199
|
+
className: clsx(classes[dropdownPosition], _define_property$t({}, classes.dropdown, !isInline))
|
|
17338
17200
|
};
|
|
17339
17201
|
var handleOnClose = function() {
|
|
17340
17202
|
if (onClose !== void 0) {
|
|
@@ -17343,8 +17205,8 @@
|
|
|
17343
17205
|
};
|
|
17344
17206
|
if (filter.type === "custom" && filter.component) {
|
|
17345
17207
|
var Component = filter.component;
|
|
17346
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17347
|
-
children: /* @__PURE__ */ jsx(Component, _object_spread$
|
|
17208
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17209
|
+
children: /* @__PURE__ */ jsx(Component, _object_spread$s({}, {
|
|
17348
17210
|
value,
|
|
17349
17211
|
onChange,
|
|
17350
17212
|
onClose,
|
|
@@ -17358,8 +17220,8 @@
|
|
|
17358
17220
|
console.warn("%cДля фильтра типа custom (".concat(filter.name, ") в конфиге обязательно нужно задать component"), "background: red; color: black");
|
|
17359
17221
|
}
|
|
17360
17222
|
if (filter.type === "select") {
|
|
17361
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17362
|
-
children: /* @__PURE__ */ jsx(FilterSelect, _object_spread$
|
|
17223
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17224
|
+
children: /* @__PURE__ */ jsx(FilterSelect, _object_spread$s({
|
|
17363
17225
|
onChange,
|
|
17364
17226
|
value,
|
|
17365
17227
|
localeKey: translatesLocaleKey,
|
|
@@ -17369,12 +17231,12 @@
|
|
|
17369
17231
|
}));
|
|
17370
17232
|
}
|
|
17371
17233
|
if (filter.type === "dateRange") {
|
|
17372
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17373
|
-
children: /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$
|
|
17234
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17235
|
+
children: /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$s({
|
|
17374
17236
|
localeKey: translatesLocaleKey,
|
|
17375
17237
|
locale: translates,
|
|
17376
17238
|
onChange,
|
|
17377
|
-
value: _object_spread$
|
|
17239
|
+
value: _object_spread$s({}, value),
|
|
17378
17240
|
onClose: handleOnClose,
|
|
17379
17241
|
testId: testId !== void 0 ? "".concat(testId, "-period") : void 0
|
|
17380
17242
|
}, filter))
|
|
@@ -17382,17 +17244,17 @@
|
|
|
17382
17244
|
}
|
|
17383
17245
|
if (filter.type === "dateRangeWithoutPeriod") {
|
|
17384
17246
|
var dateRangeValue = value;
|
|
17385
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17247
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17386
17248
|
style: {
|
|
17387
17249
|
width: 320
|
|
17388
17250
|
},
|
|
17389
|
-
children: /* @__PURE__ */ jsx(FilterWithDates, _object_spread$
|
|
17251
|
+
children: /* @__PURE__ */ jsx(FilterWithDates, _object_spread$s({
|
|
17390
17252
|
value: dateRangeValue,
|
|
17391
17253
|
onEndBtnSubmit: function() {
|
|
17392
17254
|
return onChange(void 0);
|
|
17393
17255
|
},
|
|
17394
17256
|
onChange: function(v) {
|
|
17395
|
-
return onChange(_object_spread_props$
|
|
17257
|
+
return onChange(_object_spread_props$r(_object_spread$s({}, v), {
|
|
17396
17258
|
periodType: "CUSTOM"
|
|
17397
17259
|
}));
|
|
17398
17260
|
},
|
|
@@ -17403,8 +17265,8 @@
|
|
|
17403
17265
|
}));
|
|
17404
17266
|
}
|
|
17405
17267
|
if (filter.type === "multiSelect") {
|
|
17406
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17407
|
-
children: /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$
|
|
17268
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17269
|
+
children: /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$s({
|
|
17408
17270
|
onChange,
|
|
17409
17271
|
onClose: handleOnClose,
|
|
17410
17272
|
value,
|
|
@@ -17415,8 +17277,8 @@
|
|
|
17415
17277
|
}));
|
|
17416
17278
|
}
|
|
17417
17279
|
if (filter.type === "interval") {
|
|
17418
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17419
|
-
children: /* @__PURE__ */ jsx(FilterInterval, _object_spread$
|
|
17280
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17281
|
+
children: /* @__PURE__ */ jsx(FilterInterval, _object_spread$s({
|
|
17420
17282
|
value,
|
|
17421
17283
|
labelName: filter.name,
|
|
17422
17284
|
localeKey: translatesLocaleKey,
|
|
@@ -17429,7 +17291,7 @@
|
|
|
17429
17291
|
console.warn("%cДля фильтра ".concat(filter.name, " не задан тип или component"), "background: red; color: black");
|
|
17430
17292
|
return null;
|
|
17431
17293
|
}
|
|
17432
|
-
var useStyles$
|
|
17294
|
+
var useStyles$s = createThemedStyles("FiltersPaneSearch", {
|
|
17433
17295
|
root: {
|
|
17434
17296
|
display: "flex",
|
|
17435
17297
|
position: "relative",
|
|
@@ -17538,7 +17400,7 @@
|
|
|
17538
17400
|
if (Array.isArray(arr))
|
|
17539
17401
|
return arr;
|
|
17540
17402
|
}
|
|
17541
|
-
function _define_property$
|
|
17403
|
+
function _define_property$s(obj, key, value) {
|
|
17542
17404
|
if (key in obj) {
|
|
17543
17405
|
Object.defineProperty(obj, key, {
|
|
17544
17406
|
value,
|
|
@@ -17582,7 +17444,7 @@
|
|
|
17582
17444
|
function _non_iterable_rest$c() {
|
|
17583
17445
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17584
17446
|
}
|
|
17585
|
-
function _object_spread$
|
|
17447
|
+
function _object_spread$r(target) {
|
|
17586
17448
|
for (var i = 1; i < arguments.length; i++) {
|
|
17587
17449
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17588
17450
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17592,12 +17454,12 @@
|
|
|
17592
17454
|
}));
|
|
17593
17455
|
}
|
|
17594
17456
|
ownKeys2.forEach(function(key) {
|
|
17595
|
-
_define_property$
|
|
17457
|
+
_define_property$s(target, key, source[key]);
|
|
17596
17458
|
});
|
|
17597
17459
|
}
|
|
17598
17460
|
return target;
|
|
17599
17461
|
}
|
|
17600
|
-
function ownKeys$
|
|
17462
|
+
function ownKeys$q(object, enumerableOnly) {
|
|
17601
17463
|
var keys2 = Object.keys(object);
|
|
17602
17464
|
if (Object.getOwnPropertySymbols) {
|
|
17603
17465
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17610,12 +17472,12 @@
|
|
|
17610
17472
|
}
|
|
17611
17473
|
return keys2;
|
|
17612
17474
|
}
|
|
17613
|
-
function _object_spread_props$
|
|
17475
|
+
function _object_spread_props$q(target, source) {
|
|
17614
17476
|
source = source != null ? source : {};
|
|
17615
17477
|
if (Object.getOwnPropertyDescriptors) {
|
|
17616
17478
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17617
17479
|
} else {
|
|
17618
|
-
ownKeys$
|
|
17480
|
+
ownKeys$q(Object(source)).forEach(function(key) {
|
|
17619
17481
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17620
17482
|
});
|
|
17621
17483
|
}
|
|
@@ -17639,7 +17501,7 @@
|
|
|
17639
17501
|
}
|
|
17640
17502
|
function FiltersPaneSearch(param) {
|
|
17641
17503
|
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;
|
|
17642
|
-
var classes = useStyles$
|
|
17504
|
+
var classes = useStyles$s({
|
|
17643
17505
|
theme: tweakStyles
|
|
17644
17506
|
});
|
|
17645
17507
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -17685,8 +17547,8 @@
|
|
|
17685
17547
|
field
|
|
17686
17548
|
]);
|
|
17687
17549
|
var _obj;
|
|
17688
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
17689
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
17550
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$q(_object_spread$r({
|
|
17551
|
+
className: clsx(classes.root, (_obj = {}, _define_property$s(_obj, classes.focused, isInputFocused), _define_property$s(_obj, classes.disabled, isDisabled), _obj)),
|
|
17690
17552
|
ref: refRoot,
|
|
17691
17553
|
"data-testid": testId
|
|
17692
17554
|
}, addDataAttributes(data)), {
|
|
@@ -17751,7 +17613,7 @@
|
|
|
17751
17613
|
]
|
|
17752
17614
|
}));
|
|
17753
17615
|
}
|
|
17754
|
-
var useStyles$
|
|
17616
|
+
var useStyles$r = createThemedStyles("FilterValueView", {
|
|
17755
17617
|
text: {
|
|
17756
17618
|
overflow: "hidden",
|
|
17757
17619
|
textOverflow: "ellipsis",
|
|
@@ -17770,7 +17632,7 @@
|
|
|
17770
17632
|
}
|
|
17771
17633
|
function FilterValueView(param) {
|
|
17772
17634
|
var locale2 = param.locale, localeKey = param.localeKey, filter = param.filter, value = param.value, tweakStyles = param.tweakStyles;
|
|
17773
|
-
var classes = useStyles$
|
|
17635
|
+
var classes = useStyles$r({
|
|
17774
17636
|
theme: tweakStyles
|
|
17775
17637
|
});
|
|
17776
17638
|
var _filter_localeKey;
|
|
@@ -17921,7 +17783,7 @@
|
|
|
17921
17783
|
children: displayValue(value)
|
|
17922
17784
|
});
|
|
17923
17785
|
}
|
|
17924
|
-
var useStyles$
|
|
17786
|
+
var useStyles$q = createThemedStyles("FilterWrapper", {
|
|
17925
17787
|
root: {
|
|
17926
17788
|
position: "relative",
|
|
17927
17789
|
transition: "0.25s ease-in-out",
|
|
@@ -18047,7 +17909,7 @@
|
|
|
18047
17909
|
if (Array.isArray(arr))
|
|
18048
17910
|
return arr;
|
|
18049
17911
|
}
|
|
18050
|
-
function _define_property$
|
|
17912
|
+
function _define_property$r(obj, key, value) {
|
|
18051
17913
|
if (key in obj) {
|
|
18052
17914
|
Object.defineProperty(obj, key, {
|
|
18053
17915
|
value,
|
|
@@ -18091,7 +17953,7 @@
|
|
|
18091
17953
|
function _non_iterable_rest$b() {
|
|
18092
17954
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18093
17955
|
}
|
|
18094
|
-
function _object_spread$
|
|
17956
|
+
function _object_spread$q(target) {
|
|
18095
17957
|
for (var i = 1; i < arguments.length; i++) {
|
|
18096
17958
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18097
17959
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18101,12 +17963,12 @@
|
|
|
18101
17963
|
}));
|
|
18102
17964
|
}
|
|
18103
17965
|
ownKeys2.forEach(function(key) {
|
|
18104
|
-
_define_property$
|
|
17966
|
+
_define_property$r(target, key, source[key]);
|
|
18105
17967
|
});
|
|
18106
17968
|
}
|
|
18107
17969
|
return target;
|
|
18108
17970
|
}
|
|
18109
|
-
function ownKeys$
|
|
17971
|
+
function ownKeys$p(object, enumerableOnly) {
|
|
18110
17972
|
var keys2 = Object.keys(object);
|
|
18111
17973
|
if (Object.getOwnPropertySymbols) {
|
|
18112
17974
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18119,12 +17981,12 @@
|
|
|
18119
17981
|
}
|
|
18120
17982
|
return keys2;
|
|
18121
17983
|
}
|
|
18122
|
-
function _object_spread_props$
|
|
17984
|
+
function _object_spread_props$p(target, source) {
|
|
18123
17985
|
source = source != null ? source : {};
|
|
18124
17986
|
if (Object.getOwnPropertyDescriptors) {
|
|
18125
17987
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18126
17988
|
} else {
|
|
18127
|
-
ownKeys$
|
|
17989
|
+
ownKeys$p(Object(source)).forEach(function(key) {
|
|
18128
17990
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18129
17991
|
});
|
|
18130
17992
|
}
|
|
@@ -18148,13 +18010,7 @@
|
|
|
18148
18010
|
}
|
|
18149
18011
|
function FilterWrapper(param) {
|
|
18150
18012
|
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;
|
|
18151
|
-
var
|
|
18152
|
-
if (type === "select") {
|
|
18153
|
-
setIsOpen(false);
|
|
18154
|
-
}
|
|
18155
|
-
onChange(v);
|
|
18156
|
-
};
|
|
18157
|
-
var classes = useStyles$p({
|
|
18013
|
+
var classes = useStyles$q({
|
|
18158
18014
|
theme: tweakStyles
|
|
18159
18015
|
});
|
|
18160
18016
|
var tweakFilterValueViewStyles = useTweakStyles({
|
|
@@ -18175,6 +18031,12 @@
|
|
|
18175
18031
|
} else if (!Array.isArray(value) && typeof value !== "object") {
|
|
18176
18032
|
hasValue = Boolean(value);
|
|
18177
18033
|
}
|
|
18034
|
+
function handleChange(v) {
|
|
18035
|
+
if (type === "select") {
|
|
18036
|
+
setIsOpen(false);
|
|
18037
|
+
}
|
|
18038
|
+
onChange(v);
|
|
18039
|
+
}
|
|
18178
18040
|
var handleLabelClick = function() {
|
|
18179
18041
|
if (!isBoolean && !isDisabled) {
|
|
18180
18042
|
setIsOpen(!isOpen);
|
|
@@ -18188,14 +18050,14 @@
|
|
|
18188
18050
|
};
|
|
18189
18051
|
var isBoolean = filter.type === "boolean";
|
|
18190
18052
|
var _obj;
|
|
18191
|
-
return !filter.isInline ? /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18192
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
18053
|
+
return !filter.isInline ? /* @__PURE__ */ jsxs("div", _object_spread_props$p(_object_spread$q({
|
|
18054
|
+
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))
|
|
18193
18055
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
18194
18056
|
children: [
|
|
18195
18057
|
/* @__PURE__ */ jsxs("div", {
|
|
18196
18058
|
ref: refItem,
|
|
18197
18059
|
onClick: handleLabelClick,
|
|
18198
|
-
className: clsx(classes.item, _define_property$
|
|
18060
|
+
className: clsx(classes.item, _define_property$r({}, classes.booleanItem, isBoolean)),
|
|
18199
18061
|
children: [
|
|
18200
18062
|
/* @__PURE__ */ jsx("div", {
|
|
18201
18063
|
className: classes.name,
|
|
@@ -18257,7 +18119,7 @@
|
|
|
18257
18119
|
classes
|
|
18258
18120
|
});
|
|
18259
18121
|
}
|
|
18260
|
-
function _define_property$
|
|
18122
|
+
function _define_property$q(obj, key, value) {
|
|
18261
18123
|
if (key in obj) {
|
|
18262
18124
|
Object.defineProperty(obj, key, {
|
|
18263
18125
|
value,
|
|
@@ -18270,7 +18132,7 @@
|
|
|
18270
18132
|
}
|
|
18271
18133
|
return obj;
|
|
18272
18134
|
}
|
|
18273
|
-
function _object_spread$
|
|
18135
|
+
function _object_spread$p(target) {
|
|
18274
18136
|
for (var i = 1; i < arguments.length; i++) {
|
|
18275
18137
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18276
18138
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18280,12 +18142,12 @@
|
|
|
18280
18142
|
}));
|
|
18281
18143
|
}
|
|
18282
18144
|
ownKeys2.forEach(function(key) {
|
|
18283
|
-
_define_property$
|
|
18145
|
+
_define_property$q(target, key, source[key]);
|
|
18284
18146
|
});
|
|
18285
18147
|
}
|
|
18286
18148
|
return target;
|
|
18287
18149
|
}
|
|
18288
|
-
function ownKeys$
|
|
18150
|
+
function ownKeys$o(object, enumerableOnly) {
|
|
18289
18151
|
var keys2 = Object.keys(object);
|
|
18290
18152
|
if (Object.getOwnPropertySymbols) {
|
|
18291
18153
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18298,12 +18160,12 @@
|
|
|
18298
18160
|
}
|
|
18299
18161
|
return keys2;
|
|
18300
18162
|
}
|
|
18301
|
-
function _object_spread_props$
|
|
18163
|
+
function _object_spread_props$o(target, source) {
|
|
18302
18164
|
source = source != null ? source : {};
|
|
18303
18165
|
if (Object.getOwnPropertyDescriptors) {
|
|
18304
18166
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18305
18167
|
} else {
|
|
18306
|
-
ownKeys$
|
|
18168
|
+
ownKeys$o(Object(source)).forEach(function(key) {
|
|
18307
18169
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18308
18170
|
});
|
|
18309
18171
|
}
|
|
@@ -18311,7 +18173,7 @@
|
|
|
18311
18173
|
}
|
|
18312
18174
|
function FiltersPane(param) {
|
|
18313
18175
|
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;
|
|
18314
|
-
var classes = useStyles$
|
|
18176
|
+
var classes = useStyles$y({
|
|
18315
18177
|
theme: tweakStyles
|
|
18316
18178
|
});
|
|
18317
18179
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -18354,12 +18216,12 @@
|
|
|
18354
18216
|
})
|
|
18355
18217
|
});
|
|
18356
18218
|
var _search_localeKey, _search_localeKey1, _search_isDisabled;
|
|
18357
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18219
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$o(_object_spread$p({
|
|
18358
18220
|
className: classes.root,
|
|
18359
18221
|
ref
|
|
18360
18222
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
18361
18223
|
children: [
|
|
18362
|
-
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
18224
|
+
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$o(_object_spread$p({
|
|
18363
18225
|
className: classes.settings,
|
|
18364
18226
|
tabIndex: 0
|
|
18365
18227
|
}, trueReactPlatformHelpers.addDataTestId(testId, "settings-button")), {
|
|
@@ -18371,7 +18233,7 @@
|
|
|
18371
18233
|
})
|
|
18372
18234
|
})
|
|
18373
18235
|
})),
|
|
18374
|
-
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$
|
|
18236
|
+
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$o(_object_spread$p({}, search), {
|
|
18375
18237
|
locale: getLocale$1((_search_localeKey = search.localeKey) !== null && _search_localeKey !== void 0 ? _search_localeKey : localeKey, search.locale, locale2),
|
|
18376
18238
|
localeKey: (_search_localeKey1 = search.localeKey) !== null && _search_localeKey1 !== void 0 ? _search_localeKey1 : localeKey,
|
|
18377
18239
|
isDisabled: (_search_isDisabled = search.isDisabled) !== null && _search_isDisabled !== void 0 ? _search_isDisabled : isDisabled,
|
|
@@ -18394,7 +18256,7 @@
|
|
|
18394
18256
|
locale: locale2,
|
|
18395
18257
|
localeKey,
|
|
18396
18258
|
onChange: function(value) {
|
|
18397
|
-
return onChangeFilters(_object_spread_props$
|
|
18259
|
+
return onChangeFilters(_object_spread_props$o(_object_spread$p({}, values), _define_property$q({}, key, value)));
|
|
18398
18260
|
},
|
|
18399
18261
|
value: currentValue,
|
|
18400
18262
|
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) {
|
|
@@ -24524,7 +24386,7 @@
|
|
|
24524
24386
|
ZM,
|
|
24525
24387
|
ZW
|
|
24526
24388
|
};
|
|
24527
|
-
var useStyles$
|
|
24389
|
+
var useStyles$p = createThemedStyles("Flag", {
|
|
24528
24390
|
root: {
|
|
24529
24391
|
// приходится хардкодить в компоненте, тк либа Flags выдает флаги с 2-3 пиксельным отступом снизу
|
|
24530
24392
|
// если будет нужно, то можно вынести border на уровень пропсов
|
|
@@ -24542,7 +24404,7 @@
|
|
|
24542
24404
|
});
|
|
24543
24405
|
var Flag = function(param) {
|
|
24544
24406
|
var _param_countryCode = param.countryCode, countryCode = _param_countryCode === void 0 ? "" : _param_countryCode, tweakStyles = param.tweakStyles;
|
|
24545
|
-
var classes = useStyles$
|
|
24407
|
+
var classes = useStyles$p({
|
|
24546
24408
|
theme: tweakStyles
|
|
24547
24409
|
});
|
|
24548
24410
|
var CC2 = countryCode.toUpperCase();
|
|
@@ -24558,7 +24420,7 @@
|
|
|
24558
24420
|
className: classes.root
|
|
24559
24421
|
});
|
|
24560
24422
|
};
|
|
24561
|
-
var useStyles$
|
|
24423
|
+
var useStyles$o = createThemedStyles("Skeleton", {
|
|
24562
24424
|
root: {
|
|
24563
24425
|
display: "flex",
|
|
24564
24426
|
width: "100%",
|
|
@@ -24594,7 +24456,7 @@
|
|
|
24594
24456
|
});
|
|
24595
24457
|
var Skeleton = function(param) {
|
|
24596
24458
|
var height = param.height, tweakStyles = param.tweakStyles;
|
|
24597
|
-
var classes = useStyles$
|
|
24459
|
+
var classes = useStyles$o({
|
|
24598
24460
|
theme: tweakStyles
|
|
24599
24461
|
});
|
|
24600
24462
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -24615,12 +24477,12 @@
|
|
|
24615
24477
|
var hasHorizontalScrollBar = function(el) {
|
|
24616
24478
|
return trueReactPlatformHelpers.isNotEmpty(el) && el.scrollWidth !== el.clientWidth;
|
|
24617
24479
|
};
|
|
24618
|
-
var _config_dateFormat;
|
|
24619
24480
|
var formatCellContent = function(value, config) {
|
|
24481
|
+
var _config_dateFormat;
|
|
24620
24482
|
return _instanceof(value, Date) ? dateFns.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);
|
|
24621
24483
|
};
|
|
24622
24484
|
var STICKY_SHADOW_PADDING = 12;
|
|
24623
|
-
var useStyles$
|
|
24485
|
+
var useStyles$n = createThemedStyles("FlexibleTable", {
|
|
24624
24486
|
root: {
|
|
24625
24487
|
width: "100%",
|
|
24626
24488
|
position: "relative",
|
|
@@ -24710,7 +24572,7 @@
|
|
|
24710
24572
|
nothingFoundRow: {},
|
|
24711
24573
|
nothingFound: {}
|
|
24712
24574
|
});
|
|
24713
|
-
function _define_property$
|
|
24575
|
+
function _define_property$p(obj, key, value) {
|
|
24714
24576
|
if (key in obj) {
|
|
24715
24577
|
Object.defineProperty(obj, key, {
|
|
24716
24578
|
value,
|
|
@@ -24723,7 +24585,7 @@
|
|
|
24723
24585
|
}
|
|
24724
24586
|
return obj;
|
|
24725
24587
|
}
|
|
24726
|
-
function _object_spread$
|
|
24588
|
+
function _object_spread$o(target) {
|
|
24727
24589
|
for (var i = 1; i < arguments.length; i++) {
|
|
24728
24590
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
24729
24591
|
var ownKeys2 = Object.keys(source);
|
|
@@ -24733,12 +24595,12 @@
|
|
|
24733
24595
|
}));
|
|
24734
24596
|
}
|
|
24735
24597
|
ownKeys2.forEach(function(key) {
|
|
24736
|
-
_define_property$
|
|
24598
|
+
_define_property$p(target, key, source[key]);
|
|
24737
24599
|
});
|
|
24738
24600
|
}
|
|
24739
24601
|
return target;
|
|
24740
24602
|
}
|
|
24741
|
-
function ownKeys$
|
|
24603
|
+
function ownKeys$n(object, enumerableOnly) {
|
|
24742
24604
|
var keys2 = Object.keys(object);
|
|
24743
24605
|
if (Object.getOwnPropertySymbols) {
|
|
24744
24606
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -24751,18 +24613,18 @@
|
|
|
24751
24613
|
}
|
|
24752
24614
|
return keys2;
|
|
24753
24615
|
}
|
|
24754
|
-
function _object_spread_props$
|
|
24616
|
+
function _object_spread_props$n(target, source) {
|
|
24755
24617
|
source = source != null ? source : {};
|
|
24756
24618
|
if (Object.getOwnPropertyDescriptors) {
|
|
24757
24619
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
24758
24620
|
} else {
|
|
24759
|
-
ownKeys$
|
|
24621
|
+
ownKeys$n(Object(source)).forEach(function(key) {
|
|
24760
24622
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
24761
24623
|
});
|
|
24762
24624
|
}
|
|
24763
24625
|
return target;
|
|
24764
24626
|
}
|
|
24765
|
-
var useStyles$
|
|
24627
|
+
var useStyles$m = createThemedStyles("FlexibleTableCell", {
|
|
24766
24628
|
root: {
|
|
24767
24629
|
position: "relative",
|
|
24768
24630
|
boxSizing: "content-box",
|
|
@@ -24775,7 +24637,7 @@
|
|
|
24775
24637
|
zIndex: 5,
|
|
24776
24638
|
verticalAlign: "top"
|
|
24777
24639
|
},
|
|
24778
|
-
sticky: _object_spread_props$
|
|
24640
|
+
sticky: _object_spread_props$n(_object_spread$o({
|
|
24779
24641
|
zIndex: 19,
|
|
24780
24642
|
paddingLeft: 24,
|
|
24781
24643
|
paddingRight: 12
|
|
@@ -24794,7 +24656,7 @@
|
|
|
24794
24656
|
height: 21
|
|
24795
24657
|
}
|
|
24796
24658
|
});
|
|
24797
|
-
function _define_property$
|
|
24659
|
+
function _define_property$o(obj, key, value) {
|
|
24798
24660
|
if (key in obj) {
|
|
24799
24661
|
Object.defineProperty(obj, key, {
|
|
24800
24662
|
value,
|
|
@@ -24807,7 +24669,7 @@
|
|
|
24807
24669
|
}
|
|
24808
24670
|
return obj;
|
|
24809
24671
|
}
|
|
24810
|
-
function _object_spread$
|
|
24672
|
+
function _object_spread$n(target) {
|
|
24811
24673
|
for (var i = 1; i < arguments.length; i++) {
|
|
24812
24674
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
24813
24675
|
var ownKeys2 = Object.keys(source);
|
|
@@ -24817,12 +24679,12 @@
|
|
|
24817
24679
|
}));
|
|
24818
24680
|
}
|
|
24819
24681
|
ownKeys2.forEach(function(key) {
|
|
24820
|
-
_define_property$
|
|
24682
|
+
_define_property$o(target, key, source[key]);
|
|
24821
24683
|
});
|
|
24822
24684
|
}
|
|
24823
24685
|
return target;
|
|
24824
24686
|
}
|
|
24825
|
-
function ownKeys$
|
|
24687
|
+
function ownKeys$m(object, enumerableOnly) {
|
|
24826
24688
|
var keys2 = Object.keys(object);
|
|
24827
24689
|
if (Object.getOwnPropertySymbols) {
|
|
24828
24690
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -24835,21 +24697,21 @@
|
|
|
24835
24697
|
}
|
|
24836
24698
|
return keys2;
|
|
24837
24699
|
}
|
|
24838
|
-
function _object_spread_props$
|
|
24700
|
+
function _object_spread_props$m(target, source) {
|
|
24839
24701
|
source = source != null ? source : {};
|
|
24840
24702
|
if (Object.getOwnPropertyDescriptors) {
|
|
24841
24703
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
24842
24704
|
} else {
|
|
24843
|
-
ownKeys$
|
|
24705
|
+
ownKeys$m(Object(source)).forEach(function(key) {
|
|
24844
24706
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
24845
24707
|
});
|
|
24846
24708
|
}
|
|
24847
24709
|
return target;
|
|
24848
24710
|
}
|
|
24849
|
-
function _object_without_properties$
|
|
24711
|
+
function _object_without_properties$7(source, excluded) {
|
|
24850
24712
|
if (source == null)
|
|
24851
24713
|
return {};
|
|
24852
|
-
var target = _object_without_properties_loose$
|
|
24714
|
+
var target = _object_without_properties_loose$7(source, excluded);
|
|
24853
24715
|
var key, i;
|
|
24854
24716
|
if (Object.getOwnPropertySymbols) {
|
|
24855
24717
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -24864,7 +24726,7 @@
|
|
|
24864
24726
|
}
|
|
24865
24727
|
return target;
|
|
24866
24728
|
}
|
|
24867
|
-
function _object_without_properties_loose$
|
|
24729
|
+
function _object_without_properties_loose$7(source, excluded) {
|
|
24868
24730
|
if (source == null)
|
|
24869
24731
|
return {};
|
|
24870
24732
|
var target = {};
|
|
@@ -24879,7 +24741,7 @@
|
|
|
24879
24741
|
return target;
|
|
24880
24742
|
}
|
|
24881
24743
|
function FlexibleTableCell(_param) {
|
|
24882
|
-
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$
|
|
24744
|
+
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, [
|
|
24883
24745
|
"row",
|
|
24884
24746
|
"columnName",
|
|
24885
24747
|
"config",
|
|
@@ -24889,7 +24751,7 @@
|
|
|
24889
24751
|
"isLoading",
|
|
24890
24752
|
"tweakStyles"
|
|
24891
24753
|
]);
|
|
24892
|
-
var classes = useStyles$
|
|
24754
|
+
var classes = useStyles$m({
|
|
24893
24755
|
theme: tweakStyles
|
|
24894
24756
|
});
|
|
24895
24757
|
var _config_columnName;
|
|
@@ -24898,7 +24760,7 @@
|
|
|
24898
24760
|
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
24899
24761
|
var _obj;
|
|
24900
24762
|
return /* @__PURE__ */ jsx(TableCell, {
|
|
24901
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
24763
|
+
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)),
|
|
24902
24764
|
style: {
|
|
24903
24765
|
textAlign: cellAlign,
|
|
24904
24766
|
position: isSticky ? "sticky" : position,
|
|
@@ -24910,14 +24772,14 @@
|
|
|
24910
24772
|
className: classes.skeleton,
|
|
24911
24773
|
children: /* @__PURE__ */ jsx(Skeleton, {})
|
|
24912
24774
|
}) : trueReactPlatformHelpers.isNotEmpty(value) && /* @__PURE__ */ jsx(Fragment, {
|
|
24913
|
-
children: trueReactPlatformHelpers.isNotEmpty(component) ? component(_object_spread_props$
|
|
24775
|
+
children: trueReactPlatformHelpers.isNotEmpty(component) ? component(_object_spread_props$m(_object_spread$n({}, valueComponentProps), {
|
|
24914
24776
|
value,
|
|
24915
24777
|
row
|
|
24916
24778
|
})) : formatCellContent(value, config[columnName])
|
|
24917
24779
|
})
|
|
24918
24780
|
});
|
|
24919
24781
|
}
|
|
24920
|
-
var useStyles$
|
|
24782
|
+
var useStyles$l = createThemedStyles("FlexibleTableRow", {
|
|
24921
24783
|
root: {
|
|
24922
24784
|
position: "relative"
|
|
24923
24785
|
},
|
|
@@ -24941,7 +24803,7 @@
|
|
|
24941
24803
|
if (Array.isArray(arr))
|
|
24942
24804
|
return arr;
|
|
24943
24805
|
}
|
|
24944
|
-
function _define_property$
|
|
24806
|
+
function _define_property$n(obj, key, value) {
|
|
24945
24807
|
if (key in obj) {
|
|
24946
24808
|
Object.defineProperty(obj, key, {
|
|
24947
24809
|
value,
|
|
@@ -24985,7 +24847,7 @@
|
|
|
24985
24847
|
function _non_iterable_rest$a() {
|
|
24986
24848
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24987
24849
|
}
|
|
24988
|
-
function _object_spread$
|
|
24850
|
+
function _object_spread$m(target) {
|
|
24989
24851
|
for (var i = 1; i < arguments.length; i++) {
|
|
24990
24852
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
24991
24853
|
var ownKeys2 = Object.keys(source);
|
|
@@ -24995,12 +24857,12 @@
|
|
|
24995
24857
|
}));
|
|
24996
24858
|
}
|
|
24997
24859
|
ownKeys2.forEach(function(key) {
|
|
24998
|
-
_define_property$
|
|
24860
|
+
_define_property$n(target, key, source[key]);
|
|
24999
24861
|
});
|
|
25000
24862
|
}
|
|
25001
24863
|
return target;
|
|
25002
24864
|
}
|
|
25003
|
-
function ownKeys$
|
|
24865
|
+
function ownKeys$l(object, enumerableOnly) {
|
|
25004
24866
|
var keys2 = Object.keys(object);
|
|
25005
24867
|
if (Object.getOwnPropertySymbols) {
|
|
25006
24868
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -25013,12 +24875,12 @@
|
|
|
25013
24875
|
}
|
|
25014
24876
|
return keys2;
|
|
25015
24877
|
}
|
|
25016
|
-
function _object_spread_props$
|
|
24878
|
+
function _object_spread_props$l(target, source) {
|
|
25017
24879
|
source = source != null ? source : {};
|
|
25018
24880
|
if (Object.getOwnPropertyDescriptors) {
|
|
25019
24881
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25020
24882
|
} else {
|
|
25021
|
-
ownKeys$
|
|
24883
|
+
ownKeys$l(Object(source)).forEach(function(key) {
|
|
25022
24884
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25023
24885
|
});
|
|
25024
24886
|
}
|
|
@@ -25042,7 +24904,7 @@
|
|
|
25042
24904
|
}
|
|
25043
24905
|
function FlexibleTableRowInner(param) {
|
|
25044
24906
|
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;
|
|
25045
|
-
var classes = useStyles$
|
|
24907
|
+
var classes = useStyles$l({
|
|
25046
24908
|
theme: tweakStyles
|
|
25047
24909
|
});
|
|
25048
24910
|
var tweakTableCellStyles = useTweakStyles({
|
|
@@ -25071,7 +24933,7 @@
|
|
|
25071
24933
|
var isClickable = !isLoading && (trueReactPlatformHelpers.isNotEmpty(onRowClick) || trueReactPlatformHelpers.isNotEmpty(expandableRowComponent));
|
|
25072
24934
|
var isNestedComponentExpanded = nestedComponent.isOpen, nestedComponentCellKey = nestedComponent.cellKey;
|
|
25073
24935
|
var rowData = rowAttributes === null || rowAttributes === void 0 ? void 0 : rowAttributes.reduce(function(acc, cur) {
|
|
25074
|
-
return _object_spread_props$
|
|
24936
|
+
return _object_spread_props$l(_object_spread$m({}, acc), _define_property$n({}, cur, item[cur]));
|
|
25075
24937
|
}, {});
|
|
25076
24938
|
var handleMouseEnter = function(event) {
|
|
25077
24939
|
if (trueReactPlatformHelpers.isNotEmpty(uniqueField) && trueReactPlatformHelpers.isNotEmpty(onRowHover)) {
|
|
@@ -25119,13 +24981,13 @@
|
|
|
25119
24981
|
var _obj;
|
|
25120
24982
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
25121
24983
|
children: [
|
|
25122
|
-
/* @__PURE__ */ jsx(TableRow, _object_spread_props$
|
|
25123
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
24984
|
+
/* @__PURE__ */ jsx(TableRow, _object_spread_props$l(_object_spread$m({
|
|
24985
|
+
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))
|
|
25124
24986
|
}, !isLoading && {
|
|
25125
24987
|
onClick: handleRowClick,
|
|
25126
24988
|
onMouseEnter: handleMouseEnter,
|
|
25127
24989
|
onMouseLeave: handleMouseLeave
|
|
25128
|
-
}, addDataAttributes(_object_spread_props$
|
|
24990
|
+
}, addDataAttributes(_object_spread_props$l(_object_spread$m({}, rowData), {
|
|
25129
24991
|
active: isActive ? true : void 0,
|
|
25130
24992
|
editable: isEditable ? true : void 0,
|
|
25131
24993
|
isExpandableComponentActive: isNestedComponentExpanded ? true : void 0
|
|
@@ -25161,7 +25023,7 @@
|
|
|
25161
25023
|
});
|
|
25162
25024
|
}
|
|
25163
25025
|
var FlexibleTableRow = /* @__PURE__ */ React.memo(FlexibleTableRowInner);
|
|
25164
|
-
function _define_property$
|
|
25026
|
+
function _define_property$m(obj, key, value) {
|
|
25165
25027
|
if (key in obj) {
|
|
25166
25028
|
Object.defineProperty(obj, key, {
|
|
25167
25029
|
value,
|
|
@@ -25174,7 +25036,7 @@
|
|
|
25174
25036
|
}
|
|
25175
25037
|
return obj;
|
|
25176
25038
|
}
|
|
25177
|
-
function _object_spread$
|
|
25039
|
+
function _object_spread$l(target) {
|
|
25178
25040
|
for (var i = 1; i < arguments.length; i++) {
|
|
25179
25041
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
25180
25042
|
var ownKeys2 = Object.keys(source);
|
|
@@ -25184,12 +25046,12 @@
|
|
|
25184
25046
|
}));
|
|
25185
25047
|
}
|
|
25186
25048
|
ownKeys2.forEach(function(key) {
|
|
25187
|
-
_define_property$
|
|
25049
|
+
_define_property$m(target, key, source[key]);
|
|
25188
25050
|
});
|
|
25189
25051
|
}
|
|
25190
25052
|
return target;
|
|
25191
25053
|
}
|
|
25192
|
-
function ownKeys$
|
|
25054
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
25193
25055
|
var keys2 = Object.keys(object);
|
|
25194
25056
|
if (Object.getOwnPropertySymbols) {
|
|
25195
25057
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -25202,21 +25064,21 @@
|
|
|
25202
25064
|
}
|
|
25203
25065
|
return keys2;
|
|
25204
25066
|
}
|
|
25205
|
-
function _object_spread_props$
|
|
25067
|
+
function _object_spread_props$k(target, source) {
|
|
25206
25068
|
source = source != null ? source : {};
|
|
25207
25069
|
if (Object.getOwnPropertyDescriptors) {
|
|
25208
25070
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25209
25071
|
} else {
|
|
25210
|
-
ownKeys$
|
|
25072
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
25211
25073
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25212
25074
|
});
|
|
25213
25075
|
}
|
|
25214
25076
|
return target;
|
|
25215
25077
|
}
|
|
25216
|
-
function _object_without_properties$
|
|
25078
|
+
function _object_without_properties$6(source, excluded) {
|
|
25217
25079
|
if (source == null)
|
|
25218
25080
|
return {};
|
|
25219
|
-
var target = _object_without_properties_loose$
|
|
25081
|
+
var target = _object_without_properties_loose$6(source, excluded);
|
|
25220
25082
|
var key, i;
|
|
25221
25083
|
if (Object.getOwnPropertySymbols) {
|
|
25222
25084
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -25231,7 +25093,7 @@
|
|
|
25231
25093
|
}
|
|
25232
25094
|
return target;
|
|
25233
25095
|
}
|
|
25234
|
-
function _object_without_properties_loose$
|
|
25096
|
+
function _object_without_properties_loose$6(source, excluded) {
|
|
25235
25097
|
if (source == null)
|
|
25236
25098
|
return {};
|
|
25237
25099
|
var target = {};
|
|
@@ -25246,7 +25108,7 @@
|
|
|
25246
25108
|
return target;
|
|
25247
25109
|
}
|
|
25248
25110
|
function FlexibleTable(_param) {
|
|
25249
|
-
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$
|
|
25111
|
+
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, [
|
|
25250
25112
|
"content",
|
|
25251
25113
|
"headerContent",
|
|
25252
25114
|
"config",
|
|
@@ -25262,7 +25124,7 @@
|
|
|
25262
25124
|
"tweakStyles",
|
|
25263
25125
|
"onHeadClick"
|
|
25264
25126
|
]);
|
|
25265
|
-
var classes = useStyles$
|
|
25127
|
+
var classes = useStyles$n({
|
|
25266
25128
|
theme: tweakStyles
|
|
25267
25129
|
});
|
|
25268
25130
|
var tweakTableRowStyles = useTweakStyles({
|
|
@@ -25280,7 +25142,7 @@
|
|
|
25280
25142
|
]);
|
|
25281
25143
|
var hasInfiniteScroll = trueReactPlatformHelpers.isNotEmpty(infinityScrollConfig);
|
|
25282
25144
|
var uniqueField = restProps.uniqueField, _restProps_isFirstColumnSticky = restProps.isFirstColumnSticky, isFirstColumnSticky = _restProps_isFirstColumnSticky === void 0 ? false : _restProps_isFirstColumnSticky;
|
|
25283
|
-
var tableRowProps = _object_spread_props$
|
|
25145
|
+
var tableRowProps = _object_spread_props$k(_object_spread$l({}, restProps), {
|
|
25284
25146
|
renderMode,
|
|
25285
25147
|
config,
|
|
25286
25148
|
columns,
|
|
@@ -25369,10 +25231,10 @@
|
|
|
25369
25231
|
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
25370
25232
|
return /* @__PURE__ */ jsx("div", {
|
|
25371
25233
|
ref,
|
|
25372
|
-
className: clsx(_define_property$
|
|
25373
|
-
children: /* @__PURE__ */ jsxs(Table, _object_spread_props$
|
|
25234
|
+
className: clsx(_define_property$m({}, classes.scroll, isHorizontallyScrollable)),
|
|
25235
|
+
children: /* @__PURE__ */ jsxs(Table, _object_spread_props$k(_object_spread$l({
|
|
25374
25236
|
className: classes.root
|
|
25375
|
-
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
25237
|
+
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$k(_object_spread$l({}, data), {
|
|
25376
25238
|
isLoading
|
|
25377
25239
|
}))), {
|
|
25378
25240
|
children: [
|
|
@@ -25386,7 +25248,7 @@
|
|
|
25386
25248
|
var _itemConfig_titleAlign, _itemConfig_title;
|
|
25387
25249
|
var _obj;
|
|
25388
25250
|
return /* @__PURE__ */ jsx(TableHeader, {
|
|
25389
|
-
className: clsx(classes.header, (_obj = {}, _define_property$
|
|
25251
|
+
className: clsx(classes.header, (_obj = {}, _define_property$m(_obj, classes.headerSticky, isFirstColumnSticky && i === 0), _define_property$m(_obj, classes.headerSecond, isFirstColumnSticky && i === 1), _obj)),
|
|
25390
25252
|
style: {
|
|
25391
25253
|
minWidth: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.minWidth,
|
|
25392
25254
|
width: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.width,
|
|
@@ -25406,7 +25268,7 @@
|
|
|
25406
25268
|
/* @__PURE__ */ jsx(TableBody, {
|
|
25407
25269
|
className: classes.body,
|
|
25408
25270
|
children: isLoading ? trueReactPlatformHelpers.indexMap(6, function(i) {
|
|
25409
|
-
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$
|
|
25271
|
+
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$k(_object_spread$l({}, tableRowProps), {
|
|
25410
25272
|
key: i,
|
|
25411
25273
|
item: {},
|
|
25412
25274
|
index: i
|
|
@@ -25422,7 +25284,7 @@
|
|
|
25422
25284
|
})
|
|
25423
25285
|
}),
|
|
25424
25286
|
content.map(function(item, i) {
|
|
25425
|
-
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$
|
|
25287
|
+
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$k(_object_spread$l({}, tableRowProps), {
|
|
25426
25288
|
key: trueReactPlatformHelpers.isNotEmpty(uniqueField) ? item[uniqueField] : i,
|
|
25427
25289
|
item,
|
|
25428
25290
|
index: i
|
|
@@ -25449,6 +25311,196 @@
|
|
|
25449
25311
|
}))
|
|
25450
25312
|
});
|
|
25451
25313
|
}
|
|
25314
|
+
var BUTTON_SIZE_S = 24;
|
|
25315
|
+
var BUTTON_SIZE_M = 32;
|
|
25316
|
+
var ICON_SIZE = 20;
|
|
25317
|
+
var useStyles$k = createThemedStyles("IconButton", {
|
|
25318
|
+
root: {
|
|
25319
|
+
display: "flex",
|
|
25320
|
+
justifyContent: "center",
|
|
25321
|
+
alignItems: "center",
|
|
25322
|
+
cursor: "pointer",
|
|
25323
|
+
outline: "none",
|
|
25324
|
+
boxSizing: "border-box",
|
|
25325
|
+
transition: "0.25s ease-in-out",
|
|
25326
|
+
transitionProperty: "background-color, color, border-color",
|
|
25327
|
+
border: "none",
|
|
25328
|
+
position: "relative",
|
|
25329
|
+
boxShadow: "none",
|
|
25330
|
+
borderRadius: "50%",
|
|
25331
|
+
background: "none",
|
|
25332
|
+
padding: 0,
|
|
25333
|
+
flexShrink: 0,
|
|
25334
|
+
"&:disabled": {
|
|
25335
|
+
extend: "disabled"
|
|
25336
|
+
},
|
|
25337
|
+
"&:active": {
|
|
25338
|
+
extend: "active"
|
|
25339
|
+
}
|
|
25340
|
+
},
|
|
25341
|
+
"cancel-light": {},
|
|
25342
|
+
cancel: {},
|
|
25343
|
+
main: {},
|
|
25344
|
+
custom: {},
|
|
25345
|
+
active: {},
|
|
25346
|
+
disabled: {
|
|
25347
|
+
cursor: "not-allowed",
|
|
25348
|
+
pointerEvents: "none"
|
|
25349
|
+
},
|
|
25350
|
+
loading: {
|
|
25351
|
+
"& $content": {
|
|
25352
|
+
visibility: "hidden"
|
|
25353
|
+
},
|
|
25354
|
+
"& $loader": {
|
|
25355
|
+
display: "block"
|
|
25356
|
+
}
|
|
25357
|
+
},
|
|
25358
|
+
icon: {
|
|
25359
|
+
display: "flex",
|
|
25360
|
+
alignItems: "center",
|
|
25361
|
+
width: ICON_SIZE,
|
|
25362
|
+
height: ICON_SIZE
|
|
25363
|
+
},
|
|
25364
|
+
loader: {
|
|
25365
|
+
display: "none",
|
|
25366
|
+
position: "absolute",
|
|
25367
|
+
left: "50%",
|
|
25368
|
+
top: "50%",
|
|
25369
|
+
transform: "translate(-50%, -50%)",
|
|
25370
|
+
width: ICON_SIZE,
|
|
25371
|
+
height: ICON_SIZE
|
|
25372
|
+
},
|
|
25373
|
+
s: {
|
|
25374
|
+
width: BUTTON_SIZE_S,
|
|
25375
|
+
height: BUTTON_SIZE_S
|
|
25376
|
+
},
|
|
25377
|
+
m: {
|
|
25378
|
+
width: BUTTON_SIZE_M,
|
|
25379
|
+
height: BUTTON_SIZE_M
|
|
25380
|
+
}
|
|
25381
|
+
});
|
|
25382
|
+
function _define_property$l(obj, key, value) {
|
|
25383
|
+
if (key in obj) {
|
|
25384
|
+
Object.defineProperty(obj, key, {
|
|
25385
|
+
value,
|
|
25386
|
+
enumerable: true,
|
|
25387
|
+
configurable: true,
|
|
25388
|
+
writable: true
|
|
25389
|
+
});
|
|
25390
|
+
} else {
|
|
25391
|
+
obj[key] = value;
|
|
25392
|
+
}
|
|
25393
|
+
return obj;
|
|
25394
|
+
}
|
|
25395
|
+
function _object_spread$k(target) {
|
|
25396
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
25397
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
25398
|
+
var ownKeys2 = Object.keys(source);
|
|
25399
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
25400
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
25401
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
25402
|
+
}));
|
|
25403
|
+
}
|
|
25404
|
+
ownKeys2.forEach(function(key) {
|
|
25405
|
+
_define_property$l(target, key, source[key]);
|
|
25406
|
+
});
|
|
25407
|
+
}
|
|
25408
|
+
return target;
|
|
25409
|
+
}
|
|
25410
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
25411
|
+
var keys2 = Object.keys(object);
|
|
25412
|
+
if (Object.getOwnPropertySymbols) {
|
|
25413
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
25414
|
+
if (enumerableOnly) {
|
|
25415
|
+
symbols = symbols.filter(function(sym) {
|
|
25416
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
25417
|
+
});
|
|
25418
|
+
}
|
|
25419
|
+
keys2.push.apply(keys2, symbols);
|
|
25420
|
+
}
|
|
25421
|
+
return keys2;
|
|
25422
|
+
}
|
|
25423
|
+
function _object_spread_props$j(target, source) {
|
|
25424
|
+
source = source != null ? source : {};
|
|
25425
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
25426
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25427
|
+
} else {
|
|
25428
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
25429
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25430
|
+
});
|
|
25431
|
+
}
|
|
25432
|
+
return target;
|
|
25433
|
+
}
|
|
25434
|
+
function _object_without_properties$5(source, excluded) {
|
|
25435
|
+
if (source == null)
|
|
25436
|
+
return {};
|
|
25437
|
+
var target = _object_without_properties_loose$5(source, excluded);
|
|
25438
|
+
var key, i;
|
|
25439
|
+
if (Object.getOwnPropertySymbols) {
|
|
25440
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
25441
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
25442
|
+
key = sourceSymbolKeys[i];
|
|
25443
|
+
if (excluded.indexOf(key) >= 0)
|
|
25444
|
+
continue;
|
|
25445
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
25446
|
+
continue;
|
|
25447
|
+
target[key] = source[key];
|
|
25448
|
+
}
|
|
25449
|
+
}
|
|
25450
|
+
return target;
|
|
25451
|
+
}
|
|
25452
|
+
function _object_without_properties_loose$5(source, excluded) {
|
|
25453
|
+
if (source == null)
|
|
25454
|
+
return {};
|
|
25455
|
+
var target = {};
|
|
25456
|
+
var sourceKeys = Object.keys(source);
|
|
25457
|
+
var key, i;
|
|
25458
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
25459
|
+
key = sourceKeys[i];
|
|
25460
|
+
if (excluded.indexOf(key) >= 0)
|
|
25461
|
+
continue;
|
|
25462
|
+
target[key] = source[key];
|
|
25463
|
+
}
|
|
25464
|
+
return target;
|
|
25465
|
+
}
|
|
25466
|
+
var IconButton = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
25467
|
+
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, [
|
|
25468
|
+
"icon",
|
|
25469
|
+
"size",
|
|
25470
|
+
"view",
|
|
25471
|
+
"isDisabled",
|
|
25472
|
+
"isActive",
|
|
25473
|
+
"isLoading",
|
|
25474
|
+
"type",
|
|
25475
|
+
"testId",
|
|
25476
|
+
"tweakStyles",
|
|
25477
|
+
"data",
|
|
25478
|
+
"onClick"
|
|
25479
|
+
]);
|
|
25480
|
+
var classes = useStyles$k({
|
|
25481
|
+
theme: tweakStyles
|
|
25482
|
+
});
|
|
25483
|
+
var hasNoAction = isDisabled || isLoading;
|
|
25484
|
+
var _obj;
|
|
25485
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$j(_object_spread$k({
|
|
25486
|
+
ref,
|
|
25487
|
+
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)),
|
|
25488
|
+
type,
|
|
25489
|
+
disabled: isDisabled,
|
|
25490
|
+
onClick: hasNoAction ? void 0 : onClick
|
|
25491
|
+
}, restProps, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
25492
|
+
children: isLoading ? /* @__PURE__ */ jsx("span", {
|
|
25493
|
+
className: classes.loader,
|
|
25494
|
+
children: /* @__PURE__ */ jsx(ThemedPreloader, {
|
|
25495
|
+
type: "default",
|
|
25496
|
+
useCurrentColor: true
|
|
25497
|
+
})
|
|
25498
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
25499
|
+
className: classes.icon,
|
|
25500
|
+
children: renderIcon(icon)
|
|
25501
|
+
})
|
|
25502
|
+
}));
|
|
25503
|
+
});
|
|
25452
25504
|
var BUTTONS_WIDTH = 36;
|
|
25453
25505
|
var BUTTONS_GAP = 2;
|
|
25454
25506
|
var useStyles$j = createThemedStyles("IncrementInput", {
|
|
@@ -25682,6 +25734,8 @@
|
|
|
25682
25734
|
var MODAL_HORIZONTAL_PADDING_L = 40;
|
|
25683
25735
|
var MODAL_HORIZONTAL_PADDING_M = 36;
|
|
25684
25736
|
var MODAL_HORIZONTAL_PADDING_S = 26;
|
|
25737
|
+
var MODAL_CLOSE_BUTTON_SIZE = 40;
|
|
25738
|
+
var MODAL_CLOSE_BUTTON_ICON_SIZE = 30;
|
|
25685
25739
|
var useStyles$i = createThemedStyles("Modal", {
|
|
25686
25740
|
root: {},
|
|
25687
25741
|
fixedPosition: {
|
|
@@ -25940,6 +25994,16 @@
|
|
|
25940
25994
|
extend: "animationEnd"
|
|
25941
25995
|
}
|
|
25942
25996
|
});
|
|
25997
|
+
var closeButtonStyles = {
|
|
25998
|
+
m: {
|
|
25999
|
+
width: MODAL_CLOSE_BUTTON_SIZE,
|
|
26000
|
+
height: MODAL_CLOSE_BUTTON_SIZE
|
|
26001
|
+
},
|
|
26002
|
+
icon: {
|
|
26003
|
+
width: MODAL_CLOSE_BUTTON_ICON_SIZE,
|
|
26004
|
+
height: MODAL_CLOSE_BUTTON_ICON_SIZE
|
|
26005
|
+
}
|
|
26006
|
+
};
|
|
25943
26007
|
function _array_like_to_array$9(arr, len) {
|
|
25944
26008
|
if (len == null || len > arr.length)
|
|
25945
26009
|
len = arr.length;
|
|
@@ -26109,6 +26173,7 @@
|
|
|
26109
26173
|
theme: tweakStyles
|
|
26110
26174
|
});
|
|
26111
26175
|
var tweakCloseButtonStyles = useTweakStyles({
|
|
26176
|
+
innerStyles: closeButtonStyles,
|
|
26112
26177
|
tweakStyles,
|
|
26113
26178
|
className: "tweakCloseButton",
|
|
26114
26179
|
currentComponentName: "Modal"
|
|
@@ -26188,10 +26253,12 @@
|
|
|
26188
26253
|
children: [
|
|
26189
26254
|
hasCloseButton && /* @__PURE__ */ jsx("div", {
|
|
26190
26255
|
className: classes.close,
|
|
26191
|
-
children: /* @__PURE__ */ jsx(
|
|
26256
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
26192
26257
|
testId: trueReactPlatformHelpers.getTestId(testId, "close-button"),
|
|
26193
26258
|
tweakStyles: tweakCloseButtonStyles,
|
|
26194
|
-
|
|
26259
|
+
view: "cancel-light",
|
|
26260
|
+
icon: "close",
|
|
26261
|
+
onClick: onClose
|
|
26195
26262
|
})
|
|
26196
26263
|
}),
|
|
26197
26264
|
trueReactPlatformHelpers.isReactNodeNotEmpty(title) && /* @__PURE__ */ jsx("h3", {
|
|
@@ -27458,8 +27525,8 @@
|
|
|
27458
27525
|
var inputWrapper = React.useRef(null);
|
|
27459
27526
|
var inputRef = React.useRef(null);
|
|
27460
27527
|
var phoneWithCode = getFullPhone(value);
|
|
27461
|
-
var _value_countryCode;
|
|
27462
27528
|
var countryCode = React.useMemo(function() {
|
|
27529
|
+
var _value_countryCode;
|
|
27463
27530
|
return (_value_countryCode = value === null || value === void 0 ? void 0 : value.countryCode) !== null && _value_countryCode !== void 0 ? _value_countryCode : getCountryCodeFromPhone(phoneWithCode);
|
|
27464
27531
|
}, [
|
|
27465
27532
|
value.dialCode,
|
|
@@ -27989,8 +28056,8 @@
|
|
|
27989
28056
|
}),
|
|
27990
28057
|
options.map(function(option) {
|
|
27991
28058
|
var optionId = option.value.toString();
|
|
27992
|
-
var
|
|
27993
|
-
var isDisabledOption = (
|
|
28059
|
+
var _option_isDisabled;
|
|
28060
|
+
var isDisabledOption = (_option_isDisabled = option.isDisabled) !== null && _option_isDisabled !== void 0 ? _option_isDisabled : isDisabled;
|
|
27994
28061
|
var isActiveOption = option.value === value;
|
|
27995
28062
|
var _obj2;
|
|
27996
28063
|
return /* @__PURE__ */ jsx("div", _object_spread_props$b(_object_spread$b({
|
|
@@ -29232,7 +29299,7 @@
|
|
|
29232
29299
|
}
|
|
29233
29300
|
return target;
|
|
29234
29301
|
}
|
|
29235
|
-
var TextButton = function(_param) {
|
|
29302
|
+
var TextButton = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
29236
29303
|
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, [
|
|
29237
29304
|
"children",
|
|
29238
29305
|
"icon",
|
|
@@ -29263,10 +29330,11 @@
|
|
|
29263
29330
|
var hasNoAction = isDisabled || isLoading;
|
|
29264
29331
|
var _obj;
|
|
29265
29332
|
return /* @__PURE__ */ jsxs("button", _object_spread_props$6(_object_spread$6({
|
|
29333
|
+
ref,
|
|
29334
|
+
type,
|
|
29266
29335
|
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)),
|
|
29267
|
-
onClick: !hasNoAction ? onClick : void 0,
|
|
29268
29336
|
disabled: hasNoAction,
|
|
29269
|
-
|
|
29337
|
+
onClick: !hasNoAction ? onClick : void 0
|
|
29270
29338
|
}, restProps, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
29271
29339
|
children: [
|
|
29272
29340
|
/* @__PURE__ */ jsxs("span", {
|
|
@@ -29292,7 +29360,7 @@
|
|
|
29292
29360
|
})
|
|
29293
29361
|
]
|
|
29294
29362
|
}));
|
|
29295
|
-
};
|
|
29363
|
+
});
|
|
29296
29364
|
var useStyles$5 = createThemedStyles("Tooltip", {
|
|
29297
29365
|
root: {
|
|
29298
29366
|
display: "inline-block",
|
|
@@ -29889,7 +29957,7 @@
|
|
|
29889
29957
|
}
|
|
29890
29958
|
return target;
|
|
29891
29959
|
}
|
|
29892
|
-
|
|
29960
|
+
function _ts_generator(thisArg, body) {
|
|
29893
29961
|
var f, y, t, g, _ = {
|
|
29894
29962
|
label: 0,
|
|
29895
29963
|
sent: function() {
|
|
@@ -29990,7 +30058,7 @@
|
|
|
29990
30058
|
done: true
|
|
29991
30059
|
};
|
|
29992
30060
|
}
|
|
29993
|
-
}
|
|
30061
|
+
}
|
|
29994
30062
|
var Toaster = function(param) {
|
|
29995
30063
|
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;
|
|
29996
30064
|
var classes = useStyles$2({
|
|
@@ -30008,7 +30076,7 @@
|
|
|
30008
30076
|
}
|
|
30009
30077
|
var disappear = function() {
|
|
30010
30078
|
var _ref = _async_to_generator(function() {
|
|
30011
|
-
return
|
|
30079
|
+
return _ts_generator(this, function(_state) {
|
|
30012
30080
|
switch (_state.label) {
|
|
30013
30081
|
case 0:
|
|
30014
30082
|
return [
|
|
@@ -30067,10 +30135,11 @@
|
|
|
30067
30135
|
}),
|
|
30068
30136
|
hasCloseButton && trueReactPlatformHelpers.isNotEmpty(onClose) && /* @__PURE__ */ jsx("div", {
|
|
30069
30137
|
className: classes.close,
|
|
30070
|
-
children: /* @__PURE__ */ jsx(
|
|
30071
|
-
|
|
30072
|
-
|
|
30073
|
-
tweakStyles: tweakCloseButtonStyles
|
|
30138
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
30139
|
+
view: "cancel-light",
|
|
30140
|
+
icon: "close-window",
|
|
30141
|
+
tweakStyles: tweakCloseButtonStyles,
|
|
30142
|
+
onClick: onClose
|
|
30074
30143
|
})
|
|
30075
30144
|
})
|
|
30076
30145
|
]
|
|
@@ -30443,6 +30512,7 @@
|
|
|
30443
30512
|
exports2.Flag = Flag;
|
|
30444
30513
|
exports2.FlexibleTable = FlexibleTable;
|
|
30445
30514
|
exports2.Icon = Icon;
|
|
30515
|
+
exports2.IconButton = IconButton;
|
|
30446
30516
|
exports2.IncrementInput = IncrementInput;
|
|
30447
30517
|
exports2.Input = Input;
|
|
30448
30518
|
exports2.List = List;
|