@moysklad/uikit 28.1.0 → 31.20.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/README.md +11 -3
- package/dist/colorVariables.css +33 -1
- package/dist/components/AutoComplete/AutoComplete.d.ts +4 -2
- package/dist/components/AutoComplete/AutoComplete.js +47 -33
- package/dist/components/Badge/Badge.js +2 -3
- package/dist/components/Badge/Badge_module.css +2 -3
- package/dist/components/BentoBlock/BentoBlock.d.ts +15 -0
- package/dist/components/BentoBlock/BentoBlock.js +20 -0
- package/dist/components/BentoBlock/BentoBlock.module.js +9 -0
- package/dist/components/BentoBlock/BentoBlock_module.css +50 -0
- package/dist/components/BentoBlock/consts.d.ts +14 -0
- package/dist/components/BentoBlock/consts.js +15 -0
- package/dist/components/BottomSheet/BottomSheet.js +2 -2
- package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +5 -3
- package/dist/components/Breadcrumbs/BreadcrumbItem.js +39 -8
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +4 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +10 -6
- package/dist/components/Button/Button.d.ts +6 -2
- package/dist/components/Button/Button.js +29 -20
- package/dist/components/Button/Button.module.js +1 -0
- package/dist/components/Button/Button_module.css +20 -14
- package/dist/components/Carousel/Carousel.js +5 -4
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Chip/Chip.helpers.js +5 -2
- package/dist/components/Chip/Chip.js +9 -3
- package/dist/components/Chip/Chip.legacy_module.css +2 -2
- package/dist/components/Chip/Chip.types.d.ts +10 -4
- package/dist/components/Chip/Chip_module.css +5 -5
- package/dist/components/Chip/components/ChipLabel.d.ts +3 -1
- package/dist/components/Chip/components/ChipLabel.js +4 -2
- package/dist/components/Chip/components/ChipMainButton.d.ts +3 -4
- package/dist/components/Chip/components/ChipMainButton.js +2 -1
- package/dist/components/Chip/components/ChipRoot.d.ts +3 -2
- package/dist/components/Chip/components/ChipRoot.js +2 -1
- package/dist/components/DateRange/ArrowButton/ArrowButton.module.js +6 -0
- package/dist/components/DateRange/ArrowButton/ArrowButton_module.css +26 -0
- package/dist/components/DateRange/ArrowButton/index.d.ts +8 -0
- package/dist/components/DateRange/ArrowButton/index.js +23 -0
- package/dist/components/DateRange/Calendar/index.d.ts +12 -0
- package/dist/components/DateRange/Calendar/index.js +22 -0
- package/dist/components/DateRange/DateRange.d.ts +6 -0
- package/dist/components/DateRange/DateRange.js +51 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger.d.ts +44 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger.js +128 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger.module.js +19 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger_module.css +170 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger.module.js +12 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger_module.css +43 -0
- package/dist/components/DateRange/DateRangeInput/DateRangeInput.d.ts +4 -0
- package/dist/components/DateRange/DateRangeInput/DateRangeInput.js +69 -0
- package/dist/components/DateRange/Day/Day.module.js +16 -0
- package/dist/components/DateRange/Day/Day_module.css +80 -0
- package/dist/components/DateRange/Day/index.d.ts +12 -0
- package/dist/components/DateRange/Day/index.js +39 -0
- package/dist/components/DateRange/DropdownContent/DropdownContent.module.js +10 -0
- package/dist/components/DateRange/DropdownContent/DropdownContent_module.css +34 -0
- package/dist/components/DateRange/DropdownContent/index.d.ts +24 -0
- package/dist/components/DateRange/DropdownContent/index.js +132 -0
- package/dist/components/DateRange/InputContent/InputContent.module.js +9 -0
- package/dist/components/DateRange/InputContent/InputContent_module.css +31 -0
- package/dist/components/DateRange/InputContent/index.d.ts +12 -0
- package/dist/components/DateRange/InputContent/index.js +59 -0
- package/dist/components/DateRange/Month/Month.module.js +7 -0
- package/dist/components/DateRange/Month/Month_module.css +17 -0
- package/dist/components/DateRange/Month/index.d.ts +15 -0
- package/dist/components/DateRange/Month/index.js +158 -0
- package/dist/components/DateRange/Month/utils.d.ts +2 -0
- package/dist/components/DateRange/Month/utils.js +8 -0
- package/dist/components/DateRange/MonthHeader/MonthHeader.module.js +5 -0
- package/dist/components/DateRange/MonthHeader/MonthHeader_module.css +10 -0
- package/dist/components/DateRange/MonthHeader/index.d.ts +5 -0
- package/dist/components/DateRange/MonthHeader/index.js +26 -0
- package/dist/components/DateRange/MonthList/MonthList.module.js +7 -0
- package/dist/components/DateRange/MonthList/MonthList_module.css +25 -0
- package/dist/components/DateRange/MonthList/index.d.ts +11 -0
- package/dist/components/DateRange/MonthList/index.js +91 -0
- package/dist/components/DateRange/PeriodVariantList/PeriodVariantList.module.js +9 -0
- package/dist/components/DateRange/PeriodVariantList/PeriodVariantList_module.css +18 -0
- package/dist/components/DateRange/PeriodVariantList/index.d.ts +18 -0
- package/dist/components/DateRange/PeriodVariantList/index.js +83 -0
- package/dist/components/DateRange/SideMenu/SideMenu.module.js +6 -0
- package/dist/components/DateRange/SideMenu/SideMenu_module.css +18 -0
- package/dist/components/DateRange/SideMenu/index.d.ts +13 -0
- package/dist/components/DateRange/SideMenu/index.js +73 -0
- package/dist/components/DateRange/TooltipedText/index.d.ts +8 -0
- package/dist/components/DateRange/TooltipedText/index.js +30 -0
- package/dist/components/DateRange/Year/Year.module.js +11 -0
- package/dist/components/DateRange/Year/Year_module.css +60 -0
- package/dist/components/DateRange/Year/index.d.ts +8 -0
- package/dist/components/DateRange/Year/index.js +47 -0
- package/dist/components/DateRange/YearsList/YearsList.module.js +5 -0
- package/dist/components/DateRange/YearsList/YearsList_module.css +15 -0
- package/dist/components/DateRange/YearsList/index.d.ts +12 -0
- package/dist/components/DateRange/YearsList/index.js +47 -0
- package/dist/components/DateRange/consts.d.ts +20 -0
- package/dist/components/DateRange/consts.js +81 -0
- package/dist/components/DateRange/formatDateRangeValue.d.ts +24 -0
- package/dist/components/DateRange/formatDateRangeValue.js +116 -0
- package/dist/components/DateRange/hooks/useCalendar.d.ts +13 -0
- package/dist/components/DateRange/hooks/useCalendar.js +88 -0
- package/dist/components/DateRange/hooks/useDateRange.d.ts +392 -0
- package/dist/components/DateRange/hooks/useDateRange.js +36 -0
- package/dist/components/DateRange/hooks/useDateRangeDropdown.d.ts +47 -0
- package/dist/components/DateRange/hooks/useDateRangeDropdown.js +117 -0
- package/dist/components/DateRange/hooks/useDateRangeValue.d.ts +56 -0
- package/dist/components/DateRange/hooks/useDateRangeValue.js +173 -0
- package/dist/components/DateRange/hooks/useMaskInput.d.ts +18 -0
- package/dist/components/DateRange/hooks/useMaskInput.js +169 -0
- package/dist/components/DateRange/hooks/useMonthList.d.ts +12 -0
- package/dist/components/DateRange/hooks/useMonthList.js +80 -0
- package/dist/components/DateRange/hooks/useSideMenu.d.ts +14 -0
- package/dist/components/DateRange/hooks/useSideMenu.js +113 -0
- package/dist/components/DateRange/index.d.ts +1 -0
- package/dist/components/DateRange/index.js +1 -0
- package/dist/components/DateRange/locale/en-US.d.ts +2 -0
- package/dist/components/DateRange/locale/en-US.js +82 -0
- package/dist/components/DateRange/locale/index.d.ts +4 -0
- package/dist/components/DateRange/locale/index.js +3 -0
- package/dist/components/DateRange/locale/ru-RU.d.ts +2 -0
- package/dist/components/DateRange/locale/ru-RU.js +82 -0
- package/dist/components/DateRange/locale/types.d.ts +9 -0
- package/dist/components/DateRange/locale/types.js +7 -0
- package/dist/components/DateRange/locale/useLocale.d.ts +8 -0
- package/dist/components/DateRange/locale/useLocale.js +31 -0
- package/dist/components/DateRange/props.d.ts +39 -0
- package/dist/components/DateRange/props.js +0 -0
- package/dist/components/DateRange/types.d.ts +126 -0
- package/dist/components/DateRange/types.js +13 -0
- package/dist/components/DateRange/utils.d.ts +33 -0
- package/dist/components/DateRange/utils.js +105 -0
- package/dist/components/Datepicker/Datepicker.d.ts +3 -1
- package/dist/components/Datepicker/Datepicker.js +4 -2
- package/dist/components/Dropdown/Dropdown.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.js +7 -4
- package/dist/components/Dropdown/hooks/usePosition.d.ts +2 -1
- package/dist/components/Dropdown/hooks/usePosition.js +3 -3
- package/dist/components/EditableDate/DropdownContent/DropdownContent.d.ts +9 -0
- package/dist/components/EditableDate/DropdownContent/DropdownContent.js +36 -0
- package/dist/components/EditableDate/EditableDate.d.ts +9 -0
- package/dist/components/EditableDate/EditableDate.js +142 -0
- package/dist/components/EditableDate/EditableDate.module.js +7 -0
- package/dist/components/EditableDate/EditableDate_module.css +32 -0
- package/dist/components/EditableTitle/EditableTitle.d.ts +7 -2
- package/dist/components/EditableTitle/EditableTitle.js +64 -32
- package/dist/components/EditableTitle/EditableTitle.module.js +1 -0
- package/dist/components/EditableTitle/EditableTitle_module.css +6 -0
- package/dist/components/EmptyState/EmptyState.d.ts +1 -1
- package/dist/components/EmptyStateLarge/EmptyStateLarge_module.css +2 -2
- package/dist/components/FileUploader/FileUploader.helpers.d.ts +1 -0
- package/dist/components/FileUploader/FileUploader.helpers.js +4 -1
- package/dist/components/FileUploader/FileUploader.js +3 -1
- package/dist/components/FileUploader/FileUploader.types.d.ts +1 -0
- package/dist/components/FileUploader/components/FileUploaderPreview/FileUploaderPreview.js +4 -4
- package/dist/components/Help/Help.d.ts +12 -5
- package/dist/components/Help/Help.js +22 -7
- package/dist/components/Help/Help.module.js +6 -2
- package/dist/components/Help/Help_module.css +36 -8
- package/dist/components/Hint/Hint.js +4 -5
- package/dist/components/Hint/Hint.module.js +2 -3
- package/dist/components/Hint/Hint_module.css +0 -9
- package/dist/components/Informer/Informer.d.ts +37 -0
- package/dist/components/Informer/Informer.js +36 -0
- package/dist/components/Informer/Informer.module.js +7 -0
- package/dist/components/Informer/Informer_module.css +24 -0
- package/dist/components/Input/Input.d.ts +10 -0
- package/dist/components/Input/Input.js +99 -43
- package/dist/components/Input/Input.module.js +19 -3
- package/dist/components/Input/Input_module.css +156 -19
- package/dist/components/Input/components/InfoBlock.d.ts +14 -0
- package/dist/components/Input/components/InfoBlock.js +32 -0
- package/dist/components/InputUnit/InputUnit.d.ts +3 -0
- package/dist/components/InputUnit/InputUnit.js +45 -35
- package/dist/components/InputUnit/InputUnit.module.js +6 -1
- package/dist/components/InputUnit/InputUnit_module.css +27 -29
- package/dist/components/InputUnit/SelectUnit/SelectUnit.d.ts +1 -1
- package/dist/components/InputUnit/SelectUnit/SelectUnit.js +1 -4
- package/dist/components/InputUnit/SelectUnit/SelectUnit.module.js +1 -0
- package/dist/components/InputUnit/SelectUnit/SelectUnitVisible.d.ts +1 -1
- package/dist/components/InputUnit/SelectUnit/SelectUnitVisible.js +7 -2
- package/dist/components/InputUnit/SelectUnit/SelectUnit_module.css +29 -37
- package/dist/components/InputUnit/SelectUnit/type.d.ts +1 -0
- package/dist/components/InputUnit/Unit/Unit.js +1 -2
- package/dist/components/InputUnit/Unit/Unit_module.css +1 -0
- package/dist/components/Label/Label.d.ts +1 -0
- package/dist/components/LabelValue/LabelValue.d.ts +14 -10
- package/dist/components/LabelValue/LabelValue.js +59 -72
- package/dist/components/LabelValue/LabelValue.module.js +7 -4
- package/dist/components/LabelValue/LabelValue_module.css +36 -19
- package/dist/components/LabelValue/ValueBlock/ValueBlock.d.ts +2 -0
- package/dist/components/LabelValue/ValueBlock/ValueBlock.js +82 -0
- package/dist/components/LabelValue/ValueBlockWrapper.d.ts +5 -0
- package/dist/components/LabelValue/ValueBlockWrapper.js +13 -0
- package/dist/components/LabelValue/ValueIcon.d.ts +4 -0
- package/dist/components/LabelValue/ValueIcon.js +9 -0
- package/dist/components/LabelValue/ValueText.d.ts +10 -0
- package/dist/components/LabelValue/ValueText.js +24 -0
- package/dist/components/LabelValue/ValueTextWithHint.d.ts +12 -0
- package/dist/components/LabelValue/ValueTextWithHint.js +29 -0
- package/dist/components/LabelValue/hooks/useValueBlock.d.ts +29 -0
- package/dist/components/LabelValue/hooks/useValueBlock.js +72 -0
- package/dist/components/LabelValue/{ValueBlock/index.d.ts → types.d.ts} +8 -4
- package/dist/components/LabelValue/types.js +0 -0
- package/dist/components/LabelValueCheckbox/LabelValueCheckbox.d.ts +10 -0
- package/dist/components/LabelValueCheckbox/LabelValueCheckbox.js +22 -0
- package/dist/components/LabelValueCheckbox/LabelValueCheckbox.module.js +5 -0
- package/dist/components/LabelValueCheckbox/LabelValueCheckbox_module.css +5 -0
- package/dist/components/LabelValueDate/LabelValueDate.js +2 -2
- package/dist/components/LabelValueFile/DeleteButton/DeleteButton.d.ts +9 -0
- package/dist/components/LabelValueFile/DeleteButton/DeleteButton.js +17 -0
- package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon.d.ts +7 -0
- package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon.js +15 -0
- package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon.module.js +6 -0
- package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon_module.css +10 -0
- package/dist/components/LabelValueFile/ImagePreview/ImagePreview.d.ts +8 -0
- package/dist/components/LabelValueFile/ImagePreview/ImagePreview.js +53 -0
- package/dist/components/LabelValueFile/ImagePreview/ImagePreview.module.js +6 -0
- package/dist/components/LabelValueFile/ImagePreview/ImagePreview_module.css +13 -0
- package/dist/components/LabelValueFile/LabelValueFile.d.ts +7 -0
- package/dist/components/LabelValueFile/LabelValueFile.js +42 -0
- package/dist/components/LabelValueFile/LabelValueFile.module.js +12 -0
- package/dist/components/LabelValueFile/LabelValueFile_module.css +57 -0
- package/dist/components/LabelValueFile/ValueBlock/ValueBlock.d.ts +15 -0
- package/dist/components/LabelValueFile/ValueBlock/ValueBlock.js +130 -0
- package/dist/components/LabelValueFile/ValueBlock/ValueBlock.module.js +7 -0
- package/dist/components/LabelValueFile/ValueBlock/ValueBlock_module.css +17 -0
- package/dist/components/LabelValueInput/DropdownConnent/DropdownContent.d.ts +2 -0
- package/dist/components/LabelValueInput/DropdownConnent/DropdownContent.js +2 -0
- package/dist/components/LabelValueLink/LabelValueLink.d.ts +2 -0
- package/dist/components/LabelValueLink/LabelValueLink.js +76 -0
- package/dist/components/LabelValueLink/LabelValueLink.module.js +6 -0
- package/dist/components/LabelValueLink/LabelValueLink_module.css +11 -0
- package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock.d.ts +2 -0
- package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock.js +117 -0
- package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock.module.js +6 -0
- package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock_module.css +8 -0
- package/dist/components/LabelValueLink/normalizeLinkValue.d.ts +1 -0
- package/dist/components/LabelValueLink/normalizeLinkValue.js +10 -0
- package/dist/components/LabelValueLink/useLinkDropdownValue.d.ts +15 -0
- package/dist/components/LabelValueLink/useLinkDropdownValue.js +26 -0
- package/dist/components/LabelValueSelect/Input/Input_module.css +1 -3
- package/dist/components/LabelValueSelect/Input/index.js +1 -1
- package/dist/components/LabelValueSelect/LabelValueSelect.d.ts +4 -2
- package/dist/components/Layout/Layout.d.ts +13 -0
- package/dist/components/Layout/Layout.js +41 -0
- package/dist/components/Layout/Layout.module.js +15 -0
- package/dist/components/Layout/Layout_module.css +77 -0
- package/dist/components/Link/Link.d.ts +5 -6
- package/dist/components/Link/Link.js +35 -9
- package/dist/components/Link/Link.module.js +1 -0
- package/dist/components/Link/Link_module.css +9 -0
- package/dist/components/MentionsTextfield/Mentions/style.css +2 -6
- package/dist/components/MentionsTextfield/MentionsTextfield.d.ts +1 -1
- package/dist/components/MentionsTextfield/MentionsTextfield.js +42 -25
- package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip.d.ts +8 -0
- package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip.js +13 -0
- package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip.module.js +5 -0
- package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip_module.css +9 -0
- package/dist/components/Multiselect/DropdownContent/MultiselectDropdownContent.d.ts +12 -1
- package/dist/components/Multiselect/DropdownContent/MultiselectDropdownContent.js +25 -19
- package/dist/components/Multiselect/Input/Input.d.ts +6 -2
- package/dist/components/Multiselect/Input/Input.js +18 -4
- package/dist/components/Multiselect/Input/Input_module.css +1 -3
- package/dist/components/Multiselect/Multiselect.d.ts +8 -2
- package/dist/components/Multiselect/Multiselect.js +14 -2
- package/dist/components/Multiselect/ShortDropdownContent/ShortDropdownContent.js +2 -1
- package/dist/components/Multiselect/TextField/MultiselectTextField.d.ts +5 -1
- package/dist/components/Multiselect/TextField/MultiselectTextField.js +15 -2
- package/dist/components/Multiselect/lib/consts.d.ts +1 -1
- package/dist/components/Multiselect/lib/consts.js +1 -1
- package/dist/components/Multiselect/lib/helpers.d.ts +24 -0
- package/dist/components/Multiselect/lib/helpers.js +15 -0
- package/dist/components/Multiselect/types.d.ts +2 -0
- package/dist/components/Panel/Panel.d.ts +34 -0
- package/dist/components/Panel/Panel.js +39 -0
- package/dist/components/Panel/Panel.module.js +6 -0
- package/dist/components/Panel/Panel_module.css +17 -0
- package/dist/components/Radiobutton/Radiobutton.js +1 -1
- package/dist/components/Radiobutton/Radiobutton_module.css +5 -0
- package/dist/components/SearchInput/SearchInput_module.css +1 -1
- package/dist/components/Select/ArchivedInputValue/ArchivedInputValue.d.ts +3 -4
- package/dist/components/Select/ArchivedInputValue/ArchivedInputValue.js +19 -24
- package/dist/components/Select/ArchivedInputValue/ArchivedInputValue.module.js +1 -2
- package/dist/components/Select/ArchivedInputValue/ArchivedInputValue_module.css +5 -12
- package/dist/components/Select/Combobox/Combobox.d.ts +3 -1
- package/dist/components/Select/Combobox/Combobox.js +19 -8
- package/dist/components/Select/Combobox/Combobox.module.js +4 -3
- package/dist/components/Select/Combobox/Combobox_module.css +17 -15
- package/dist/components/Select/DropDownWithColors/DropDownWithColors.d.ts +1 -0
- package/dist/components/Select/DropDownWithColors/DropDownWithColors.js +2 -1
- package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer.d.ts +3 -0
- package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer.js +17 -0
- package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer.module.js +6 -0
- package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer_module.css +12 -0
- package/dist/components/Select/OptionsList/OptionsList.d.ts +4 -1
- package/dist/components/Select/OptionsList/OptionsList.js +39 -22
- package/dist/components/Select/OptionsList/OptionsList.module.js +2 -0
- package/dist/components/Select/OptionsList/OptionsList_module.css +19 -0
- package/dist/components/Select/Select.d.ts +10 -5
- package/dist/components/Select/Select.js +45 -40
- package/dist/components/Select/Select.module.js +1 -2
- package/dist/components/Select/Select_module.css +7 -14
- package/dist/components/Select/ShortVariant/ShortVariant.d.ts +5 -1
- package/dist/components/Select/ShortVariant/ShortVariant.js +6 -5
- package/dist/components/Select/ShortVariant/ShortVariant.module.js +1 -0
- package/dist/components/Select/ShortVariant/ShortVariant_module.css +5 -1
- package/dist/components/Select/types.d.ts +1 -0
- package/dist/components/Select/useDropdownPadding.d.ts +5 -0
- package/dist/components/Select/useDropdownPadding.js +22 -0
- package/dist/components/StatusBadge/StatusBadge.d.ts +28 -0
- package/dist/components/StatusBadge/StatusBadge.js +167 -0
- package/dist/components/StatusBadge/StatusBadge.module.js +37 -0
- package/dist/components/StatusBadge/StatusBadge_module.css +149 -0
- package/dist/components/StatusBadge/utils/StatusBadgeColor.d.ts +21 -0
- package/dist/components/StatusBadge/utils/StatusBadgeColor.js +20 -0
- package/dist/components/StatusBadge/utils/getStatusBadgeColor.d.ts +2 -0
- package/dist/components/StatusBadge/utils/getStatusBadgeColor.js +8 -0
- package/dist/components/Textfield/Textfield.d.ts +24 -3
- package/dist/components/Textfield/Textfield.js +38 -13
- package/dist/components/Textfield/Textfield.module.js +2 -1
- package/dist/components/Textfield/Textfield_module.css +95 -23
- package/dist/components/Textfield/components/ActionButton/ActionButton.d.ts +9 -0
- package/dist/components/Textfield/components/ActionButton/ActionButton.js +12 -0
- package/dist/components/Textfield/components/ActionButton/ActionButton.module.js +9 -0
- package/dist/components/Textfield/components/ActionButton/ActionButton_module.css +54 -0
- package/dist/components/Textfield/components/ActionButton/index.d.ts +1 -0
- package/dist/components/Textfield/components/ActionButton/index.js +1 -0
- package/dist/components/Textfield/components/Container/Container.d.ts +2 -0
- package/dist/components/Textfield/components/Container/Container.js +21 -7
- package/dist/components/Textfield/components/Container/Container.module.js +2 -1
- package/dist/components/Textfield/components/Container/Container_module.css +4 -0
- package/dist/components/Textfield/components/Counter/Counter.d.ts +3 -1
- package/dist/components/Textfield/components/Counter/Counter.js +5 -3
- package/dist/components/Textfield/components/Info/Info.d.ts +3 -1
- package/dist/components/Textfield/components/Info/Info.js +9 -4
- package/dist/components/Textfield/components/InnerContainer/InnerContainer.d.ts +3 -6
- package/dist/components/Textfield/components/InnerContainer/InnerContainer.js +2 -8
- package/dist/components/Textfield/components/InputContainer/InputContainer.d.ts +14 -3
- package/dist/components/Textfield/components/InputContainer/InputContainer.js +74 -5
- package/dist/components/Textfield/components/InputContainer/InputContainer.module.js +7 -1
- package/dist/components/Textfield/components/InputContainer/InputContainer_module.css +36 -7
- package/dist/components/Textfield/components/ResizeHandle/ResizeHandle.d.ts +10 -0
- package/dist/components/Textfield/components/ResizeHandle/ResizeHandle.js +50 -0
- package/dist/components/Textfield/components/ResizeHandle/ResizeHandle.module.js +7 -0
- package/dist/components/Textfield/components/ResizeHandle/ResizeHandle_module.css +21 -0
- package/dist/components/Textfield/components/ResizeHandle/index.d.ts +1 -0
- package/dist/components/Textfield/components/ResizeHandle/index.js +1 -0
- package/dist/components/Textfield/consts/index.d.ts +2 -0
- package/dist/components/Textfield/consts/index.js +3 -0
- package/dist/components/Textfield/types/index.d.ts +12 -0
- package/dist/components/Textfield/types/index.js +5 -0
- package/dist/components/Textfield/utils/index.d.ts +3 -0
- package/dist/components/Textfield/utils/index.js +8 -0
- package/dist/components/Toggle/Toggle.js +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -1
- package/dist/components/Tooltip/Tooltip.js +9 -9
- package/dist/components/Tooltip/Tooltip.module.js +3 -1
- package/dist/components/Tooltip/Tooltip_module.css +13 -3
- package/dist/components/Tooltip/{consts.d.ts → constants/ArrowAlign.d.ts} +0 -2
- package/dist/components/Tooltip/constants/TooltipBodyColor.d.ts +4 -0
- package/dist/components/Tooltip/constants/TooltipBodyColor.js +5 -0
- package/dist/components/Tooltip/constants/index.d.ts +2 -0
- package/dist/components/Tooltip/constants/index.js +2 -0
- package/dist/components/Tooltip/hooks.d.ts +2 -2
- package/dist/components/Tooltip/hooks.js +1 -1
- package/dist/components/Tooltip/types.d.ts +4 -0
- package/dist/components/Tooltip/types.js +0 -0
- package/dist/components/ViewersStack/ViewersStack.d.ts +13 -0
- package/dist/components/ViewersStack/ViewersStack.js +79 -0
- package/dist/components/ViewersStack/ViewersStack.module.js +7 -0
- package/dist/components/ViewersStack/ViewersStack_module.css +18 -0
- package/dist/components/ViewersStack/components/Avatar/Avatar.d.ts +13 -0
- package/dist/components/ViewersStack/components/Avatar/Avatar.js +35 -0
- package/dist/components/ViewersStack/components/Avatar/Avatar.module.js +13 -0
- package/dist/components/ViewersStack/components/Avatar/Avatar_module.css +45 -0
- package/dist/components/ViewersStack/components/Counter/Counter.d.ts +9 -0
- package/dist/components/ViewersStack/components/Counter/Counter.js +27 -0
- package/dist/components/ViewersStack/components/Counter/Counter.module.js +5 -0
- package/dist/components/ViewersStack/components/Counter/Counter_module.css +20 -0
- package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip.d.ts +15 -0
- package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip.js +41 -0
- package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip.module.js +6 -0
- package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip_module.css +14 -0
- package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem.d.ts +6 -0
- package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem.js +53 -0
- package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem.module.js +7 -0
- package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem_module.css +18 -0
- package/dist/components/ViewersStack/components/common.module.js +7 -0
- package/dist/components/ViewersStack/components/common_module.css +27 -0
- package/dist/components/ViewersStack/types.d.ts +22 -0
- package/dist/components/ViewersStack/types.js +17 -0
- package/dist/components/ViewersStack/utils.d.ts +3 -0
- package/dist/components/ViewersStack/utils.js +17 -0
- package/dist/components/_shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent.d.ts +12 -0
- package/dist/components/{LabelValueDate/DropdownContent/index.js → _shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent.js} +10 -10
- package/dist/components/_shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent.module.js +9 -0
- package/dist/components/{LabelValueDate/DropdownContent/DropdownContent_module.css → _shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent_module.css} +6 -6
- package/dist/components/_shared/FieldLabel/FieldLabel.constants.d.ts +1 -0
- package/dist/components/_shared/FieldLabel/FieldLabel.constants.js +5 -0
- package/dist/components/_shared/FieldLabel/FieldLabel.d.ts +18 -0
- package/dist/components/_shared/FieldLabel/FieldLabel.js +83 -0
- package/dist/components/_shared/FieldLabel/FieldLabel.module.js +11 -0
- package/dist/components/_shared/FieldLabel/FieldLabel_module.css +42 -0
- package/dist/components/_shared/FieldLabel/components/HelpButton.d.ts +8 -0
- package/dist/components/_shared/FieldLabel/components/HelpButton.js +15 -0
- package/dist/components/_shared/FieldLabel/components/HelpButton.module.js +5 -0
- package/dist/components/_shared/FieldLabel/components/HelpButton_module.css +8 -0
- package/dist/components/_shared/FieldLabel/components/index.d.ts +1 -0
- package/dist/components/_shared/FieldLabel/components/index.js +1 -0
- package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow.d.ts +1 -1
- package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow.js +1 -1
- package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow.module.js +3 -3
- package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow_module.css +3 -3
- package/dist/components/{EditableTitle → _shared/HintWithSkip}/HintWithSkip.d.ts +1 -1
- package/dist/components/{EditableTitle → _shared/HintWithSkip}/HintWithSkip.js +1 -1
- package/dist/components/_shared/Info/Info.d.ts +12 -0
- package/dist/components/_shared/Info/Info.js +46 -0
- package/dist/components/_shared/Info/Info.module.js +9 -0
- package/dist/components/_shared/Info/Info_module.css +32 -0
- package/dist/components/_shared/Info/types/index.d.ts +6 -0
- package/dist/components/_shared/Info/types/index.js +5 -0
- package/dist/components/_shared/InputClear/InputClear.d.ts +14 -0
- package/dist/components/_shared/InputClear/InputClear.js +18 -0
- package/dist/components/{InputClear → _shared/InputClear}/InputClear.module.js +3 -1
- package/dist/components/_shared/InputClear/InputClear_module.css +34 -0
- package/dist/components/_shared/utils/polymorphicClickableTypes.d.ts +17 -0
- package/dist/components/_shared/utils/polymorphicClickableTypes.js +7 -0
- package/dist/data-grid/Filters/DateRangeFilter/DropdownContent/index.js +3 -3
- package/dist/data-grid/Filters/DateRangeFilter/InputContent/index.js +29 -26
- package/dist/data-grid/Filters/DateRangeFilter/PeriodVariantList/index.js +5 -3
- package/dist/data-grid/Filters/DateRangeFilter/Year/index.js +3 -3
- package/dist/data-grid/Filters/DateRangeFilter/consts.js +6 -6
- package/dist/data-grid/Filters/DateRangeFilter/hooks/useMaskInput.js +6 -6
- package/dist/data-grid/Filters/DateRangeFilter/hooks/useSideMenu.js +1 -4
- package/dist/data-grid/Filters/DateRangeFilter/types.d.ts +68 -56
- package/dist/data-grid/Filters/FiltersContainer/FiltersContainer.js +2 -1
- package/dist/data-grid/Filters/FiltersContainer/utils/useRenderParams.d.ts +1 -0
- package/dist/data-grid/Filters/FiltersContainer/utils/useRenderParams.js +14 -6
- package/dist/data-grid/Filters/MultiselectFilter/MultiselectFilter.js +2 -2
- package/dist/data-grid/Filters/OutlineInput/OutlineInput.js +2 -2
- package/dist/data-grid/Filters/OutlineInput/OutlineInput_module.css +1 -1
- package/dist/data-grid/Table/Table.d.ts +14 -22
- package/dist/data-grid/Table/Table.js +99 -61
- package/dist/data-grid/Table/Table.module.js +2 -0
- package/dist/data-grid/Table/Table_module.css +23 -1
- package/dist/data-grid/Table/components/Body/Body.d.ts +10 -14
- package/dist/data-grid/Table/components/Body/Body.js +11 -47
- package/dist/data-grid/Table/components/DraggableRow/DraggableRow.js +1 -1
- package/dist/data-grid/Table/components/Footer/Footer.module.js +0 -1
- package/dist/data-grid/Table/components/Footer/FooterContent.d.ts +9 -0
- package/dist/data-grid/Table/components/Footer/{Footer.js → FooterContent.js} +4 -5
- package/dist/data-grid/Table/components/Footer/Footer_module.css +0 -5
- package/dist/data-grid/Table/components/Header/Header.module.js +0 -1
- package/dist/data-grid/Table/components/Header/HeaderCell.js +3 -1
- package/dist/data-grid/Table/components/Header/HeaderContent.d.ts +1 -0
- package/dist/data-grid/Table/components/Header/{Header.js → HeaderContent.js} +8 -6
- package/dist/data-grid/Table/components/Header/Header_module.css +0 -15
- package/dist/data-grid/Table/components/Row/Row.d.ts +13 -0
- package/dist/data-grid/Table/components/Row/Row.js +40 -0
- package/dist/data-grid/Table/components/Row/Row.module.js +14 -0
- package/dist/data-grid/Table/components/{TableRow/TableRow_module.css → Row/Row_module.css} +7 -7
- package/dist/data-grid/Table/components/SubRows/SubRows.d.ts +5 -4
- package/dist/data-grid/Table/components/SubRows/SubRows.js +3 -3
- package/dist/data-grid/Table/components/TableCell/TableCell.js +2 -0
- package/dist/data-grid/Table/components/TableDragOverlay/TableDragOverlay.d.ts +5 -6
- package/dist/data-grid/Table/components/TableDragOverlay/TableDragOverlay.js +2 -2
- package/dist/data-grid/Table/components/TableRow/TableRow.d.ts +6 -14
- package/dist/data-grid/Table/components/TableRow/TableRow.js +34 -25
- package/dist/data-grid/Table/components/VirtualTable/VirtualTable.d.ts +10 -0
- package/dist/data-grid/Table/components/VirtualTable/VirtualTable.js +78 -0
- package/dist/data-grid/Table/components/VirtualTable/VirtualTableRow.d.ts +11 -0
- package/dist/data-grid/Table/components/VirtualTable/VirtualTableRow.js +18 -0
- package/dist/data-grid/Table/components/index.d.ts +3 -3
- package/dist/data-grid/Table/components/index.js +2 -2
- package/dist/data-grid/Table/constants.d.ts +2 -0
- package/dist/data-grid/Table/constants.js +3 -1
- package/dist/data-grid/Table/hooks/index.d.ts +1 -0
- package/dist/data-grid/Table/hooks/index.js +1 -0
- package/dist/data-grid/Table/hooks/useRowContext.d.ts +16 -0
- package/dist/data-grid/Table/hooks/useRowContext.js +44 -0
- package/dist/data-grid/Table/hooks/useTableContext.d.ts +7 -2
- package/dist/data-grid/Table/hooks/useTableContext.js +12 -2
- package/dist/data-grid/Table/index.d.ts +2 -2
- package/dist/data-grid/Table/types.d.ts +8 -1
- package/dist/data-grid/Table/types.js +5 -0
- package/dist/data-grid/Table/utils/compareColumnIds.d.ts +1 -0
- package/dist/data-grid/Table/utils/compareColumnIds.js +6 -0
- package/dist/data-grid/Table/utils/getColumnWidthStyles.d.ts +5 -0
- package/dist/data-grid/Table/utils/getColumnWidthStyles.js +4 -1
- package/dist/data-grid/Table/utils/getTableColumnIds.d.ts +3 -0
- package/dist/data-grid/Table/utils/getTableColumnIds.js +5 -0
- package/dist/data-grid/Table/utils/index.d.ts +2 -0
- package/dist/data-grid/Table/utils/index.js +2 -0
- package/dist/data-grid/Table/utils/withDnD.js +1 -1
- package/dist/data-grid/base/DropdownItem/DropdownItem.d.ts +3 -3
- package/dist/data-grid/base/DropdownItem/DropdownItem.js +3 -2
- package/dist/data-grid/base/OverflowHint/OverflowHint.d.ts +1 -0
- package/dist/data-grid/base/OverflowHint/OverflowHint.js +5 -3
- package/dist/data-grid/base/OverflowHint/utils.d.ts +1 -0
- package/dist/data-grid/base/OverflowHint/utils.js +7 -0
- package/dist/data-grid/cells/AutoCompleteCell/AutoCompleteCell.js +3 -4
- package/dist/data-grid/cells/DecimalCell/DecimalCell_module.css +1 -1
- package/dist/data-grid/cells/FileCell/FileCell_module.css +1 -1
- package/dist/data-grid/cells/ImageCell/ImageCell.d.ts +1 -0
- package/dist/data-grid/cells/ImageCell/ImageCell.js +5 -2
- package/dist/data-grid/cells/ImageCell/ImageMiniature/ImageMiniature_module.css +1 -1
- package/dist/data-grid/cells/IndexCheckboxDndCell/IndexCheckboxDndCell.d.ts +7 -2
- package/dist/data-grid/cells/IndexCheckboxDndCell/IndexCheckboxDndCell.js +6 -4
- package/dist/data-grid/cells/InputCell/InputCell.js +3 -4
- package/dist/data-grid/cells/IntegerCell/IntegerCell_module.css +1 -1
- package/dist/data-grid/cells/LinkCell/LinkCell_module.css +1 -1
- package/dist/data-grid/cells/NameCell/NameCell.js +3 -0
- package/dist/data-grid/cells/NameCell/NameCell_module.css +2 -2
- package/dist/data-grid/cells/NumberInputCell/NumberInputCell.js +19 -17
- package/dist/data-grid/cells/SelectCell/SelectCell.js +3 -4
- package/dist/data-grid/cells/TextCell/TextCell_module.css +1 -1
- package/dist/data-grid/cells/ToggleCell/ToggleCell_module.css +1 -1
- package/dist/data-grid/cells/components/EditableCellWrapper/EditableCellWrapper.d.ts +3 -0
- package/dist/data-grid/cells/components/EditableCellWrapper/EditableCellWrapper.js +9 -0
- package/dist/data-grid/cells/components/EditableCellWrapper/EditableCellWrapper.module.js +5 -0
- package/dist/data-grid/cells/{InputCell/InputCell_module.css → components/EditableCellWrapper/EditableCellWrapper_module.css} +2 -2
- package/dist/data-grid/cells/components/EditableCellWrapper/index.d.ts +1 -0
- package/dist/data-grid/cells/components/EditableCellWrapper/index.js +1 -0
- package/dist/data-grid/cells/components/RowActionsMenu/RowActionsMenu.d.ts +4 -3
- package/dist/data-grid/cells/components/RowActionsMenu/RowActionsMenu.js +13 -13
- package/dist/data-grid/cells/components/TableInput/TableInput.js +19 -3
- package/dist/data-grid/cells/components/TableInput/TableInput_module.css +1 -1
- package/dist/data-grid/cells/components/TableNumberInput/TableNumberInput.d.ts +5 -3
- package/dist/data-grid/cells/components/TableNumberInput/TableNumberInput.js +56 -55
- package/dist/data-grid/cells/components/TableSelect/ActionButton/ActionButton.d.ts +4 -1
- package/dist/data-grid/cells/components/TableSelect/ActionButton/ActionButton.js +4 -3
- package/dist/data-grid/cells/components/TableSelect/TableSelect.d.ts +15 -10
- package/dist/data-grid/cells/components/TableSelect/TableSelect.js +13 -8
- package/dist/data-grid/cells/components/index.d.ts +1 -0
- package/dist/data-grid/cells/components/index.js +1 -0
- package/dist/data-grid/cells/index.d.ts +1 -1
- package/dist/data-grid/cells/index.js +1 -1
- package/dist/data-grid/headers/PlainTextHeader.js +3 -2
- package/dist/data-grid/headers/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/data-grid/headers/components/Dropdown/DropdownArrowBtn/DropdownArrowBtn.js +5 -1
- package/dist/data-grid/headers/components/Dropdown/Option/Option.d.ts +1 -1
- package/dist/data-grid/headers/components/Dropdown/Option/Option.js +2 -2
- package/dist/data-grid/headers/components/Dropdown/Option/Option_module.css +10 -2
- package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.d.ts +13 -3
- package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.js +65 -83
- package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.module.js +2 -1
- package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder_module.css +21 -0
- package/dist/data-grid/headers/components/HeaderSortGroups/components/SortByOption/SortByOption.js +7 -15
- package/dist/data-grid/headers/components/HideColumn/HideColumn.js +8 -13
- package/dist/data-grid/headers/components/ResetFilter/ResetFilter.js +7 -10
- package/dist/data-grid/headers/components/ResetFilter/ResetFilter.module.js +0 -1
- package/dist/data-grid/headers/components/ResetFilter/ResetFilter_module.css +1 -21
- package/dist/data-grid/headers/components/index.d.ts +1 -1
- package/dist/data-grid/headers/index.d.ts +1 -1
- package/dist/data-grid/headers/types/types.d.ts +1 -0
- package/dist/data-grid/index.d.ts +0 -4
- package/dist/data-grid/locale/en-US.js +68 -56
- package/dist/data-grid/locale/ru-RU.js +68 -56
- package/dist/data-grid/locale/useLocale.d.ts +6 -1
- package/dist/data-grid/locale/useLocale.js +14 -5
- package/dist/data-grid/types/index.d.ts +1 -0
- package/dist/data-grid/utils/isOverflowed.js +21 -1
- package/dist/hooks/useDebounceCallback/useDebounceCallback.d.ts +2 -0
- package/dist/hooks/useDebounceCallback/useDebounceCallback.js +21 -0
- package/dist/hooks/useDismissOnFocusOutside/index.d.ts +2 -1
- package/dist/hooks/useDismissOnFocusOutside/index.js +4 -3
- package/dist/hooks/useDismissOnOutsideClick/index.d.ts +2 -1
- package/dist/hooks/useDismissOnOutsideClick/index.js +4 -3
- package/dist/hooks/useIsElementOverflowing/index.d.ts +1 -0
- package/dist/hooks/useIsElementOverflowing/index.js +8 -2
- package/dist/hooks/useOverflowHint/index.d.ts +7 -0
- package/dist/hooks/useOverflowHint/index.js +16 -0
- package/dist/hooks/useTextField/useTextField.d.ts +5 -6
- package/dist/hooks/useTextField/useTextField.js +6 -24
- package/dist/hooks/useUnmount/useUnmount.d.ts +1 -0
- package/dist/hooks/useUnmount/useUnmount.js +9 -0
- package/dist/icon/components/MsLogo12Icon.d.ts +8 -0
- package/dist/icon/components/MsLogo12Icon.js +28 -0
- package/dist/icon/components/MsLogo16Icon.d.ts +8 -0
- package/dist/icon/components/MsLogo16Icon.js +26 -0
- package/dist/icon/components/MsLogo20Icon.d.ts +8 -0
- package/dist/icon/components/MsLogo20Icon.js +28 -0
- package/dist/icon/components/MyApps12Icon.d.ts +8 -0
- package/dist/icon/components/MyApps12Icon.js +18 -0
- package/dist/icon/components/MyApps16Icon.d.ts +8 -0
- package/dist/icon/components/MyApps16Icon.js +17 -0
- package/dist/icon/components/MyApps20Icon.d.ts +8 -0
- package/dist/icon/components/MyApps20Icon.js +18 -0
- package/dist/icon/components/Phone12Icon.d.ts +8 -0
- package/dist/icon/components/Phone12Icon.js +18 -0
- package/dist/icon/components/Phone16Icon.d.ts +8 -0
- package/dist/icon/components/Phone16Icon.js +17 -0
- package/dist/icon/components/Phone20Icon.d.ts +8 -0
- package/dist/icon/components/Phone20Icon.js +18 -0
- package/dist/icon/components/Smile12Icon.d.ts +8 -0
- package/dist/icon/components/Smile12Icon.js +17 -0
- package/dist/icon/components/Smile16Icon.d.ts +8 -0
- package/dist/icon/components/Smile16Icon.js +16 -0
- package/dist/icon/components/Smile20Icon.d.ts +8 -0
- package/dist/icon/components/Smile20Icon.js +17 -0
- package/dist/icon/index.d.ts +12 -0
- package/dist/icon/index.js +12 -0
- package/dist/index.d.ts +13 -5
- package/dist/index.js +11 -1
- package/dist/utils/checkIsArchivedValue.d.ts +2 -0
- package/dist/utils/checkIsArchivedValue.js +5 -0
- package/dist/utils/debounce/debounce.d.ts +10 -0
- package/dist/utils/debounce/debounce.js +73 -0
- package/dist/utils/isRecordEqual/isRecordEqual.d.ts +1 -0
- package/dist/utils/isRecordEqual/isRecordEqual.js +9 -0
- package/dist/utils/utils.d.ts +3 -0
- package/dist/utils/utils.js +3 -0
- package/package.json +88 -12
- package/dist/components/Info/Info.d.ts +0 -13
- package/dist/components/Info/Info.js +0 -20
- package/dist/components/Info/Info.module.js +0 -6
- package/dist/components/Info/Info_module.css +0 -11
- package/dist/components/InputClear/InputClear.d.ts +0 -11
- package/dist/components/InputClear/InputClear.js +0 -12
- package/dist/components/InputClear/InputClear_module.css +0 -21
- package/dist/components/LabelValue/HelpButton/HelpButton.module.js +0 -8
- package/dist/components/LabelValue/HelpButton/HelpButton_module.css +0 -44
- package/dist/components/LabelValue/HelpButton/index.d.ts +0 -8
- package/dist/components/LabelValue/HelpButton/index.js +0 -36
- package/dist/components/LabelValue/ValueBlock/index.js +0 -138
- package/dist/components/LabelValue/hooks/useTooltip.d.ts +0 -8
- package/dist/components/LabelValue/hooks/useTooltip.js +0 -16
- package/dist/components/LabelValueDate/DropdownContent/DropdownContent.module.js +0 -9
- package/dist/components/LabelValueDate/DropdownContent/index.d.ts +0 -12
- package/dist/components/Textfield/components/ClearIcon/ClearIcon.d.ts +0 -6
- package/dist/components/Textfield/components/ClearIcon/ClearIcon.js +0 -13
- package/dist/components/Textfield/components/ClearIcon/ClearIcon.module.js +0 -6
- package/dist/components/Textfield/components/ClearIcon/ClearIcon_module.css +0 -11
- package/dist/components/Textfield/components/Label/Label.d.ts +0 -9
- package/dist/components/Textfield/components/Label/Label.js +0 -32
- package/dist/components/Textfield/components/Label/Label.module.js +0 -7
- package/dist/components/Textfield/components/Label/Label_module.css +0 -17
- package/dist/components/Textfield/components/Label/index.d.ts +0 -1
- package/dist/components/Textfield/components/Label/index.js +0 -1
- package/dist/data-grid/Table/components/Footer/Footer.d.ts +0 -9
- package/dist/data-grid/Table/components/Header/Header.d.ts +0 -8
- package/dist/data-grid/Table/components/TableRow/TableRow.module.js +0 -14
- package/dist/data-grid/cells/AutoCompleteCell/AutoCompleteCell.module.js +0 -5
- package/dist/data-grid/cells/AutoCompleteCell/AutoCompleteCell_module.css +0 -8
- package/dist/data-grid/cells/InputCell/InputCell.module.js +0 -5
- package/dist/data-grid/cells/NumberInputCell/NumberInputCell.module.js +0 -5
- package/dist/data-grid/cells/NumberInputCell/NumberInputCell_module.css +0 -8
- package/dist/data-grid/cells/SelectCell/SelectCell.module.js +0 -8
- package/dist/data-grid/cells/SelectCell/SelectCell_module.css +0 -33
- package/dist/data-grid/headers/components/HeaderSortGroups/components/SortByOption/SortByOption.module.js +0 -7
- package/dist/data-grid/headers/components/HeaderSortGroups/components/SortByOption/SortByOption_module.css +0 -22
- package/dist/data-grid/headers/components/HideColumn/HideColumn.module.js +0 -6
- package/dist/data-grid/headers/components/HideColumn/HideColumn_module.css +0 -20
- /package/dist/components/Tooltip/{consts.js → constants/ArrowAlign.js} +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
.mainWrap-JLBf3u {
|
|
2
|
+
--layout-bg-color: var(--bgd-secondary);
|
|
3
|
+
background-color: var(--layout-bg-color);
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
flex: 1;
|
|
7
|
+
align-items: center;
|
|
8
|
+
width: 100%;
|
|
9
|
+
min-width: 1200px;
|
|
10
|
+
min-height: 100dvh;
|
|
11
|
+
display: flex;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.white-nNMpTy {
|
|
15
|
+
--layout-bg-color: var(--bgd-white);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.header-kLeLQu {
|
|
19
|
+
background-color: var(--layout-bg-color);
|
|
20
|
+
z-index: 3;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.body-PmmRSC {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
flex: 1;
|
|
29
|
+
width: 100%;
|
|
30
|
+
max-width: 1640px;
|
|
31
|
+
padding: 0 20px 32px;
|
|
32
|
+
display: flex;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.bodyFull-mcyirc {
|
|
36
|
+
max-width: 100%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.pBLarge-fg0fvb {
|
|
40
|
+
padding-bottom: 100px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.contentHeader-pB7tPR {
|
|
44
|
+
background-color: var(--layout-bg-color);
|
|
45
|
+
flex-direction: row;
|
|
46
|
+
width: 100%;
|
|
47
|
+
padding: 20px 0;
|
|
48
|
+
display: flex;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.stickyContentHeader-PISsux {
|
|
52
|
+
z-index: 2;
|
|
53
|
+
position: sticky;
|
|
54
|
+
top: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.main-rrgu1Q {
|
|
58
|
+
flex-direction: row;
|
|
59
|
+
flex: 1;
|
|
60
|
+
gap: 20px;
|
|
61
|
+
width: 100%;
|
|
62
|
+
display: flex;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.aside-ztLelP {
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
width: 280px;
|
|
68
|
+
display: flex;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.content-XWW4aN {
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
flex: 1;
|
|
74
|
+
gap: 20px;
|
|
75
|
+
display: flex;
|
|
76
|
+
}
|
|
77
|
+
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export type
|
|
1
|
+
import { ClickableTag, type ClickableTagValue, type PolymorphicClickableProps } from '../_shared/utils/polymorphicClickableTypes';
|
|
2
|
+
import type { TextAtomProps } from '../Text/Text.atom';
|
|
3
|
+
export type LinkOwnProps = TextAtomProps & {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
6
|
+
export type LinkProps<As extends ClickableTagValue = typeof ClickableTag.a> = PolymorphicClickableProps<LinkOwnProps, As>;
|
|
7
|
+
export declare const Link: import("../_shared/utils/polymorphicClickableTypes").ClickableComponent<LinkOwnProps, "a">;
|
|
@@ -1,22 +1,48 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { createElement } from "react";
|
|
3
3
|
import { cn } from "../../common/css/cn.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ClickableTag, polymorphicClickableRef } from "../_shared/utils/polymorphicClickableTypes.js";
|
|
5
|
+
import { TextVariant } from "../Text/Text.js";
|
|
6
|
+
import { getClassByVariant } from "../Text/tokens/variants/textVariant.js";
|
|
6
7
|
import Link_module from "./Link.module.js";
|
|
7
|
-
|
|
8
|
+
import Text_atom_module from "../Text/Text.atom.module.js";
|
|
9
|
+
const ClickableTextAtom = polymorphicClickableRef((props, ref)=>{
|
|
10
|
+
const { as: elementProp = ClickableTag.a, variant = TextVariant.body, preline, testId, className, children, ...restProps } = props;
|
|
11
|
+
const element = elementProp;
|
|
12
|
+
return /*#__PURE__*/ createElement(element, {
|
|
13
|
+
'data-test-id': testId,
|
|
14
|
+
className: cn(Text_atom_module.text, getClassByVariant(variant), preline && Text_atom_module.preLine, className),
|
|
15
|
+
ref,
|
|
16
|
+
...restProps
|
|
17
|
+
}, children);
|
|
18
|
+
});
|
|
19
|
+
ClickableTextAtom.displayName = 'ClickableTextAtom';
|
|
20
|
+
const Link = polymorphicClickableRef((props, ref)=>{
|
|
21
|
+
const { as: elementProp = ClickableTag.a, variant = TextVariant.body, className, children, disabled, onClick, href, ...rest } = props;
|
|
22
|
+
const element = elementProp;
|
|
23
|
+
const isAnchor = element === ClickableTag.a;
|
|
8
24
|
const handleClick = (e)=>{
|
|
9
|
-
if (disabled)
|
|
25
|
+
if (disabled) {
|
|
26
|
+
if (isAnchor) e.preventDefault();
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
10
29
|
if ('function' != typeof onClick) return;
|
|
11
30
|
return onClick(e);
|
|
12
31
|
};
|
|
13
|
-
|
|
14
|
-
...restProps,
|
|
32
|
+
const tagSpecificProps = isAnchor ? {
|
|
15
33
|
href: disabled ? void 0 : href,
|
|
34
|
+
'aria-disabled': disabled || void 0
|
|
35
|
+
} : {
|
|
36
|
+
type: rest.type ?? 'button',
|
|
37
|
+
disabled
|
|
38
|
+
};
|
|
39
|
+
return /*#__PURE__*/ jsx(ClickableTextAtom, {
|
|
40
|
+
...rest,
|
|
41
|
+
...tagSpecificProps,
|
|
16
42
|
ref: ref,
|
|
17
43
|
variant: variant,
|
|
18
|
-
as:
|
|
19
|
-
className: cn(Link_module.link, disabled && Link_module.linkDisabled, className),
|
|
44
|
+
as: element,
|
|
45
|
+
className: cn(Link_module.link, !isAnchor && Link_module.linkButtonReset, disabled && Link_module.linkDisabled, className),
|
|
20
46
|
onClick: handleClick,
|
|
21
47
|
children: children
|
|
22
48
|
});
|
|
@@ -12,6 +12,15 @@
|
|
|
12
12
|
color: var(--product-blue-600);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
.linkButtonReset-Q4HSqs {
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
text-align: inherit;
|
|
18
|
+
background: none;
|
|
19
|
+
border: none;
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
15
24
|
.linkDisabled-TARqlL:hover, .linkDisabled-TARqlL:active, .linkDisabled-TARqlL {
|
|
16
25
|
color: #797979;
|
|
17
26
|
text-decoration: none;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
width: 420px;
|
|
34
34
|
max-height: 428px;
|
|
35
35
|
margin: 0;
|
|
36
|
-
padding:
|
|
36
|
+
padding: 4px;
|
|
37
37
|
list-style: none;
|
|
38
38
|
position: absolute;
|
|
39
39
|
overflow: hidden auto;
|
|
@@ -51,12 +51,8 @@
|
|
|
51
51
|
padding: 0;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.lognex-uikit-mentions-dropdown-menu-item:not(:last-child) {
|
|
55
|
-
margin-bottom: 4px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
54
|
.lognex-uikit-mentions-dropdown-menu-item-active {
|
|
59
|
-
background-color: var(--
|
|
55
|
+
background-color: var(--elements-bg-hover, #f1f4f9);
|
|
60
56
|
border-radius: 8px;
|
|
61
57
|
}
|
|
62
58
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
|
+
import type { TextfieldProps } from '../Textfield/Textfield';
|
|
2
3
|
import { type MentionsProps } from './Mentions/Mentions';
|
|
3
4
|
export type { TMentionOption, TMentionsMap, TMentionValue } from './types';
|
|
4
|
-
import type { TextfieldProps } from '../Textfield/Textfield';
|
|
5
5
|
export interface MentionTextfieldProps<Dto = unknown> extends MentionsProps<Dto>, Omit<TextfieldProps, 'defaultValue' | 'name' | 'onChange' | 'onSelect' | 'prefix' | 'value'> {
|
|
6
6
|
}
|
|
7
7
|
export declare const MentionsTextfield: <T>(props: MentionTextfieldProps<T>) => ReactElement;
|
|
@@ -1,38 +1,35 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef,
|
|
3
|
-
import { cn } from "../../common/css/cn.js";
|
|
2
|
+
import { forwardRef, useRef } from "react";
|
|
4
3
|
import { Container } from "../Textfield/components/Container/Container.js";
|
|
5
4
|
import { InnerContainer } from "../Textfield/components/InnerContainer/InnerContainer.js";
|
|
6
5
|
import { InputContainer } from "../Textfield/components/InputContainer/InputContainer.js";
|
|
6
|
+
import { ResizeHandle } from "../Textfield/components/ResizeHandle/index.js";
|
|
7
|
+
import { TextfieldSize } from "../Textfield/types/index.js";
|
|
8
|
+
import { getMinHeight } from "../Textfield/utils/index.js";
|
|
7
9
|
import { useId } from "../../hooks/useId/index.js";
|
|
8
10
|
import { useTextField } from "../../hooks/useTextField/useTextField.js";
|
|
9
11
|
import { Mentions } from "./Mentions/Mentions.js";
|
|
10
12
|
import Textfield_module from "../Textfield/Textfield.module.js";
|
|
11
|
-
|
|
13
|
+
import { cn } from "../../common/index.js";
|
|
14
|
+
const MentionsTextfield = /*#__PURE__*/ forwardRef(({ testId, tabIndex, className, label, info, required, error, help, disabled, resize, style, value, limit, showCounterLimit, autoVerticalResize = false, resetHeightOnClear = false, minHeight: minHeightProp, maxHeight, rows, size = TextfieldSize.M, onFocus, onBlur, onChange, onMainBtnClick, onEmojiBtnClick, isFileBtnVisible, mainBtnIcon, emojiBtnIcon, fileBtnIcon, fileUploaderProps, resizeTop = false, resizeBottom = false, fitContentHeightOnInit = false, actionsBar, helpProps, ...textfieldProps }, forwardedRef)=>{
|
|
12
15
|
const textfieldId = useId(textfieldProps.id);
|
|
13
16
|
const ref = useRef(null);
|
|
14
17
|
const innerRef = forwardedRef || ref;
|
|
15
18
|
const textValue = value.backend;
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
mentionsMap: {},
|
|
20
|
-
raw: ''
|
|
21
|
-
});
|
|
22
|
-
onClear?.();
|
|
23
|
-
}, [
|
|
24
|
-
onClear,
|
|
25
|
-
onChange
|
|
26
|
-
]);
|
|
27
|
-
const { height, isFocused, isLimitError, setIsFocused } = useTextField({
|
|
19
|
+
const minHeight = getMinHeight(minHeightProp, size);
|
|
20
|
+
const hasResizeHandles = resizeTop || resizeBottom;
|
|
21
|
+
const { height, isFocused, isLimitError, setIsFocused, setHeight } = useTextField({
|
|
28
22
|
minHeight,
|
|
29
23
|
maxHeight,
|
|
30
24
|
ref,
|
|
25
|
+
value: textValue,
|
|
31
26
|
autoVerticalResize,
|
|
27
|
+
limit,
|
|
32
28
|
resetHeightOnClear,
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
fitContentHeightOnInit,
|
|
30
|
+
hasResizeHandles
|
|
35
31
|
});
|
|
32
|
+
const effectiveHeight = autoVerticalResize || fitContentHeightOnInit || resetHeightOnClear || hasResizeHandles ? height || void 0 : void 0;
|
|
36
33
|
return /*#__PURE__*/ jsx(Container, {
|
|
37
34
|
textfieldId: textfieldId,
|
|
38
35
|
label: label,
|
|
@@ -46,20 +43,40 @@ const MentionsTextfield = /*#__PURE__*/ forwardRef(({ testId, tabIndex, classNam
|
|
|
46
43
|
error: error,
|
|
47
44
|
info: info,
|
|
48
45
|
hasHelp: !!help,
|
|
46
|
+
size: size,
|
|
47
|
+
helpProps: helpProps,
|
|
49
48
|
children: /*#__PURE__*/ jsx(InnerContainer, {
|
|
50
|
-
clearable: clearable,
|
|
51
|
-
value: textValue,
|
|
52
|
-
disabled: disabled,
|
|
53
49
|
withHelp: !!help,
|
|
54
|
-
onClear: handleClear,
|
|
55
50
|
popup: help,
|
|
56
51
|
testId: testId,
|
|
57
52
|
children: /*#__PURE__*/ jsx(InputContainer, {
|
|
58
|
-
clearable: clearable,
|
|
59
53
|
disabled: disabled,
|
|
60
54
|
focused: isFocused,
|
|
61
55
|
error: error || isLimitError,
|
|
62
56
|
actionsBar: actionsBar,
|
|
57
|
+
size: size,
|
|
58
|
+
mainBtnIcon: mainBtnIcon,
|
|
59
|
+
emojiBtnIcon: emojiBtnIcon,
|
|
60
|
+
fileBtnIcon: fileBtnIcon,
|
|
61
|
+
onMainBtnClick: onMainBtnClick,
|
|
62
|
+
onEmojiBtnClick: onEmojiBtnClick,
|
|
63
|
+
isFileBtnVisible: isFileBtnVisible,
|
|
64
|
+
testId: testId,
|
|
65
|
+
fileUploaderProps: fileUploaderProps,
|
|
66
|
+
resizeTopSlot: resizeTop ? /*#__PURE__*/ jsx(ResizeHandle, {
|
|
67
|
+
direction: "top",
|
|
68
|
+
onHeightChange: setHeight,
|
|
69
|
+
startHeight: height || minHeight,
|
|
70
|
+
minHeight: minHeight,
|
|
71
|
+
maxHeight: maxHeight
|
|
72
|
+
}) : null,
|
|
73
|
+
resizeBottomSlot: resizeBottom ? /*#__PURE__*/ jsx(ResizeHandle, {
|
|
74
|
+
direction: "bottom",
|
|
75
|
+
onHeightChange: setHeight,
|
|
76
|
+
startHeight: height || minHeight,
|
|
77
|
+
minHeight: minHeight,
|
|
78
|
+
maxHeight: maxHeight
|
|
79
|
+
}) : null,
|
|
63
80
|
children: /*#__PURE__*/ jsx(Mentions, {
|
|
64
81
|
...textfieldProps,
|
|
65
82
|
onChange: onChange,
|
|
@@ -67,14 +84,14 @@ const MentionsTextfield = /*#__PURE__*/ forwardRef(({ testId, tabIndex, classNam
|
|
|
67
84
|
id: textfieldId,
|
|
68
85
|
ref: innerRef,
|
|
69
86
|
testId: testId ? `${testId}-textfield` : void 0,
|
|
70
|
-
className: cn(Textfield_module.input,
|
|
87
|
+
className: cn(Textfield_module.input, Textfield_module[size]),
|
|
71
88
|
disabled: disabled,
|
|
72
89
|
style: {
|
|
73
|
-
resize
|
|
90
|
+
resize: hasResizeHandles ? 'none' : resize
|
|
74
91
|
},
|
|
75
92
|
styles: {
|
|
76
93
|
textarea: {
|
|
77
|
-
height:
|
|
94
|
+
height: effectiveHeight,
|
|
78
95
|
minHeight,
|
|
79
96
|
...style
|
|
80
97
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IHasTestId } from '../../../common/types';
|
|
2
|
+
interface AllSelectedChipProps extends IHasTestId {
|
|
3
|
+
label: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const AllSelectedChip: (props: AllSelectedChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../../common/css/cn.js";
|
|
3
|
+
import { Chip } from "../../Chip/Chip.js";
|
|
4
|
+
import AllSelectedChip_module from "./AllSelectedChip.module.js";
|
|
5
|
+
const AllSelectedChip = (props)=>/*#__PURE__*/ jsx(Chip, {
|
|
6
|
+
selected: true,
|
|
7
|
+
label: props.label,
|
|
8
|
+
disabled: props.disabled,
|
|
9
|
+
tabIndex: -1,
|
|
10
|
+
className: cn(props.className, AllSelectedChip_module.nonInteractive),
|
|
11
|
+
testId: props.testId
|
|
12
|
+
});
|
|
13
|
+
export { AllSelectedChip };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type Key, type KeyboardEventHandler, type ReactNode, type Ref } from 'react';
|
|
2
|
-
import { type DropdownItem, type RenderSelectedItem } from '../types';
|
|
2
|
+
import { type AllSelectedChipTextVariant, type DropdownItem, type GetAllSelectedChipText, type RenderSelectedItem } from '../types';
|
|
3
3
|
export interface RenderContentParams {
|
|
4
4
|
options: ReactNode;
|
|
5
5
|
input: ReactNode;
|
|
@@ -20,6 +20,17 @@ export interface MultiselectDropdownContentProps<T extends Key, DTO = any> {
|
|
|
20
20
|
* @example (count) => `выбрано ${count} элементов`
|
|
21
21
|
*/
|
|
22
22
|
getManyItemsChipText?: (itemsCount: number) => string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* коллбэк для определения текста для невлезающих элементов, отображаемого в строке поиска
|
|
26
|
+
* при выборе большого количества элементов
|
|
27
|
+
*
|
|
28
|
+
* @param itemsCount количество оставшихся элементов которые не влезли
|
|
29
|
+
* @example (count) => `еще ${count}...`
|
|
30
|
+
*/
|
|
31
|
+
getOtherText?: (itemsCount: number) => string;
|
|
32
|
+
allSelectedChipTextVariant?: AllSelectedChipTextVariant;
|
|
33
|
+
getAllSelectedChipText?: GetAllSelectedChipText;
|
|
23
34
|
/**
|
|
24
35
|
*
|
|
25
36
|
* коллбэк для определения текста, отображаемого при остутствии элемента при фильтрации
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment as external_react_Fragment, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
|
-
import lodash_debounce from "lodash.debounce";
|
|
4
3
|
import { cn } from "../../../common/css/cn.js";
|
|
5
4
|
import { Button } from "../../Button/Button.js";
|
|
6
5
|
import { Checkbox } from "../../Checkbox/Checkbox.js";
|
|
@@ -9,9 +8,12 @@ import { SearchInput } from "../../SearchInput/SearchInput.js";
|
|
|
9
8
|
import { EmptyState } from "../../Select/EmptyState/EmptyState.js";
|
|
10
9
|
import { Loading } from "../../Select/Loading/Loading.js";
|
|
11
10
|
import { Text, TextColor } from "../../Text/Text.js";
|
|
11
|
+
import { useDebounceCallback } from "../../../hooks/useDebounceCallback/useDebounceCallback.js";
|
|
12
12
|
import { Add16Icon, RemoveClose12Icon } from "../../../icon/index.js";
|
|
13
|
+
import { AllSelectedChip } from "../AllSelectedChip/AllSelectedChip.js";
|
|
13
14
|
import { useAsyncDropdownContext } from "../AsyncDropdownContext/AsyncDropdownContextProvider.js";
|
|
14
15
|
import { minChipsWidth, selectAllCheckboxDefaultText } from "../lib/consts.js";
|
|
16
|
+
import { canSelectAllItems, getDefaultAllSelectedChipText, isAllItemsSelected } from "../lib/helpers.js";
|
|
15
17
|
import { useChipsKeyDown } from "../lib/useChipsKeyDown.js";
|
|
16
18
|
import { useItemKeyDown } from "../lib/useItemKeyDown.js";
|
|
17
19
|
import { SelectAllCheckbox } from "../SelectAllCheckbox/SelectAllCheckbox.js";
|
|
@@ -19,11 +21,13 @@ import { TooltipedChip } from "../TooltipedChip/TooltipedChip.js";
|
|
|
19
21
|
import { TooltipedOptionText } from "../TooltipedOptionText/TooltipedOptionText.js";
|
|
20
22
|
import MultiselectDropdownContent_module from "./MultiselectDropdownContent.module.js";
|
|
21
23
|
const handleCheck = ()=>{};
|
|
24
|
+
const DEBOUNCE_OPTIONS = {
|
|
25
|
+
leading: true
|
|
26
|
+
};
|
|
22
27
|
const MultiselectDropdownContent = (props)=>{
|
|
23
28
|
const asyncDropdownContext = useAsyncDropdownContext();
|
|
24
29
|
const selectedItems = (asyncDropdownContext?.selectedValues ?? props.items).filter((item)=>props.values.includes(item.value));
|
|
25
30
|
const [filteredItems, setFilteredItems] = useState(asyncDropdownContext?.cachedItems ?? props.items);
|
|
26
|
-
const [filteredSelectedItems, setFilteredSelectedItems] = useState(selectedItems);
|
|
27
31
|
const [searchInputValue, setSearchInputValue] = useState(asyncDropdownContext?.cachedInputValue ?? '');
|
|
28
32
|
const searchInputValueRef = useRef(searchInputValue);
|
|
29
33
|
searchInputValueRef.current = searchInputValue;
|
|
@@ -39,20 +43,16 @@ const MultiselectDropdownContent = (props)=>{
|
|
|
39
43
|
asyncDropdownContext?.changeCachedItems(items ?? []);
|
|
40
44
|
setFilteredItems(items ?? []);
|
|
41
45
|
}, []);
|
|
42
|
-
const handleAsyncSearchDebounced =
|
|
43
|
-
leading: true
|
|
44
|
-
}), []);
|
|
46
|
+
const handleAsyncSearchDebounced = useDebounceCallback(handleAsyncSearch, props.searchDebounce, DEBOUNCE_OPTIONS);
|
|
45
47
|
const handleSearch = (inputValue)=>{
|
|
46
48
|
setSearchInputValue(inputValue);
|
|
47
49
|
if (!inputValue.trim()) {
|
|
48
|
-
setFilteredSelectedItems(selectedItems);
|
|
49
50
|
if (props.onSearch) {
|
|
50
51
|
setFilteredItems([]);
|
|
51
52
|
handleAsyncSearchDebounced(inputValue);
|
|
52
53
|
} else setFilteredItems(props.items);
|
|
53
54
|
return;
|
|
54
55
|
}
|
|
55
|
-
setFilteredSelectedItems(selectedItems.filter((item)=>item.label.toLowerCase().includes(inputValue.trim().toLowerCase())));
|
|
56
56
|
if (props.onSearch) {
|
|
57
57
|
setFilteredItems([]);
|
|
58
58
|
handleAsyncSearchDebounced(inputValue);
|
|
@@ -60,15 +60,13 @@ const MultiselectDropdownContent = (props)=>{
|
|
|
60
60
|
}
|
|
61
61
|
setFilteredItems(props.items.filter((item)=>item.label.toLowerCase().includes(inputValue.trim().toLowerCase())));
|
|
62
62
|
};
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
useEffect(()=>{
|
|
68
|
-
updateFilteredSelectedItems(searchInputValue);
|
|
63
|
+
const filteredSelectedItems = useMemo(()=>{
|
|
64
|
+
const trimmedSearchInputValue = searchInputValue.trim().toLowerCase();
|
|
65
|
+
if (!trimmedSearchInputValue) return selectedItems;
|
|
66
|
+
return selectedItems.filter((item)=>item.label.toLowerCase().includes(trimmedSearchInputValue));
|
|
69
67
|
}, [
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
searchInputValue,
|
|
69
|
+
selectedItems
|
|
72
70
|
]);
|
|
73
71
|
useEffect(()=>{
|
|
74
72
|
if (props.onSearch) return;
|
|
@@ -89,13 +87,16 @@ const MultiselectDropdownContent = (props)=>{
|
|
|
89
87
|
const isManySelected = useMemo(()=>filteredSelectedItems.length > 9, [
|
|
90
88
|
filteredSelectedItems
|
|
91
89
|
]);
|
|
90
|
+
const availableItems = asyncDropdownContext?.cachedItems ?? props.items;
|
|
91
|
+
const isAllSelected = props.showSelectAllCheckbox && isAllItemsSelected(availableItems, props.values);
|
|
92
92
|
const selectAllCheckboxText = useMemo(()=>props.selectAllCheckboxText ?? selectAllCheckboxDefaultText, [
|
|
93
93
|
props.selectAllCheckboxText
|
|
94
94
|
]);
|
|
95
95
|
const isShowSelectAllCheckbox = useMemo(()=>{
|
|
96
96
|
if (!props.showSelectAllCheckbox) return false;
|
|
97
|
-
return selectAllCheckboxText.toLowerCase().includes(searchInputValue.trim().toLowerCase());
|
|
97
|
+
return canSelectAllItems(availableItems) && selectAllCheckboxText.toLowerCase().includes(searchInputValue.trim().toLowerCase());
|
|
98
98
|
}, [
|
|
99
|
+
availableItems,
|
|
99
100
|
props.showSelectAllCheckbox,
|
|
100
101
|
searchInputValue,
|
|
101
102
|
selectAllCheckboxText
|
|
@@ -236,10 +237,15 @@ const MultiselectDropdownContent = (props)=>{
|
|
|
236
237
|
})
|
|
237
238
|
})
|
|
238
239
|
});
|
|
239
|
-
const chips = !!filteredSelectedItems.length && /*#__PURE__*/ jsxs("div", {
|
|
240
|
+
const chips = (isAllSelected || !!filteredSelectedItems.length) && /*#__PURE__*/ jsxs("div", {
|
|
240
241
|
className: cn(MultiselectDropdownContent_module.chipsContainer, props.chipsContainerClassName),
|
|
241
242
|
children: [
|
|
242
|
-
|
|
243
|
+
isAllSelected && /*#__PURE__*/ jsx(AllSelectedChip, {
|
|
244
|
+
label: props.getAllSelectedChipText?.(availableItems.length) ?? getDefaultAllSelectedChipText(availableItems.length, props.allSelectedChipTextVariant),
|
|
245
|
+
className: cn(MultiselectDropdownContent_module.chip, MultiselectDropdownContent_module.moreElementsChip),
|
|
246
|
+
testId: props.testId ? `${props.testId}-all-selected` : void 0
|
|
247
|
+
}),
|
|
248
|
+
!isAllSelected && !isManySelected && filteredSelectedItems.map((item, index)=>/*#__PURE__*/ jsx(TooltipedChip, {
|
|
243
249
|
tooltipDelay: props.tooltipDelay,
|
|
244
250
|
ref: (ref)=>chipRefs.current[index] = ref,
|
|
245
251
|
minWidth: minChipsWidth,
|
|
@@ -252,7 +258,7 @@ const MultiselectDropdownContent = (props)=>{
|
|
|
252
258
|
renderSelectedItem: props.renderSelectedItem,
|
|
253
259
|
item: item
|
|
254
260
|
}, item.value)),
|
|
255
|
-
isManySelected && /*#__PURE__*/ jsx(Chip, {
|
|
261
|
+
!isAllSelected && isManySelected && /*#__PURE__*/ jsx(Chip, {
|
|
256
262
|
isActive: true,
|
|
257
263
|
onClick: ()=>{},
|
|
258
264
|
icon: /*#__PURE__*/ jsx("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AriaAttributes } from 'react';
|
|
2
|
-
import { type InputValue, type RenderSelectedItem } from '../types';
|
|
2
|
+
import { type AllSelectedChipTextVariant, type GetAllSelectedChipText, type InputValue, type RenderSelectedItem } from '../types';
|
|
3
3
|
export interface InputProps {
|
|
4
4
|
id?: HTMLInputElement['id'];
|
|
5
5
|
placeholder?: string;
|
|
@@ -12,7 +12,7 @@ export interface InputProps {
|
|
|
12
12
|
* используется для форматирования строки невлезающих элементов в input
|
|
13
13
|
*
|
|
14
14
|
* @param elementsCount количество оставшихся элементов которые не влезли
|
|
15
|
-
* @example (count) =>
|
|
15
|
+
* @example (count) => `еще ${count}`
|
|
16
16
|
*/
|
|
17
17
|
getOtherText?: (elementsCount: number) => string;
|
|
18
18
|
/**
|
|
@@ -23,6 +23,10 @@ export interface InputProps {
|
|
|
23
23
|
className?: string;
|
|
24
24
|
testId?: string;
|
|
25
25
|
disabled?: boolean;
|
|
26
|
+
canShowAllSelectedChip?: boolean;
|
|
27
|
+
isAllSelected?: boolean;
|
|
28
|
+
allSelectedChipTextVariant?: AllSelectedChipTextVariant;
|
|
29
|
+
getAllSelectedChipText?: GetAllSelectedChipText;
|
|
26
30
|
wrapSelectedItems?: boolean;
|
|
27
31
|
renderSelectedItem?: RenderSelectedItem;
|
|
28
32
|
triggerAriaProps?: Pick<AriaAttributes, 'aria-controls' | 'aria-expanded' | 'aria-haspopup'>;
|
|
@@ -4,8 +4,10 @@ import { cn } from "../../../common/css/cn.js";
|
|
|
4
4
|
import { Chip } from "../../Chip/Chip.js";
|
|
5
5
|
import { Text, TextColor } from "../../Text/Text.js";
|
|
6
6
|
import { Down12Icon } from "../../../icon/index.js";
|
|
7
|
+
import { AllSelectedChip } from "../AllSelectedChip/AllSelectedChip.js";
|
|
7
8
|
import { useAsyncDropdownContext } from "../AsyncDropdownContext/AsyncDropdownContextProvider.js";
|
|
8
9
|
import { chipsContainerGap, minChipsWidth } from "../lib/consts.js";
|
|
10
|
+
import { getAllSelectedChipState, getDefaultAllSelectedChipText } from "../lib/helpers.js";
|
|
9
11
|
import { useChipsKeyDown } from "../lib/useChipsKeyDown.js";
|
|
10
12
|
import { TooltipedChip, chipStyles } from "../TooltipedChip/TooltipedChip.js";
|
|
11
13
|
import Input_module from "./Input.module.js";
|
|
@@ -13,6 +15,12 @@ const Input = /*#__PURE__*/ forwardRef((props, refProp)=>{
|
|
|
13
15
|
const chipsContainerRef = useRef(null);
|
|
14
16
|
const asyncDropdownContext = useAsyncDropdownContext();
|
|
15
17
|
const selectedItems = asyncDropdownContext?.selectedValues ?? props.selectedItems;
|
|
18
|
+
const allSelectedChipState = getAllSelectedChipState({
|
|
19
|
+
asyncItems: asyncDropdownContext?.cachedItems,
|
|
20
|
+
canShowAllSelectedChip: props.canShowAllSelectedChip,
|
|
21
|
+
isAllSelected: props.isAllSelected,
|
|
22
|
+
selectedItems
|
|
23
|
+
});
|
|
16
24
|
const [displayedSelectedItems, setDisplayedSelectedItems] = useState([]);
|
|
17
25
|
const otherChipRef = useRef(null);
|
|
18
26
|
const [otherElementsCount, setOtherElementsCount] = useState(0);
|
|
@@ -48,6 +56,7 @@ const Input = /*#__PURE__*/ forwardRef((props, refProp)=>{
|
|
|
48
56
|
props.onItemDelete?.(item.value);
|
|
49
57
|
if (ifFirstItem) containerRef.current?.focus();
|
|
50
58
|
});
|
|
59
|
+
const hasVisibleValue = allSelectedChipState.isAllSelected || displayedSelectedItems.length;
|
|
51
60
|
return /*#__PURE__*/ jsxs("div", {
|
|
52
61
|
...props.triggerAriaProps,
|
|
53
62
|
id: props.id,
|
|
@@ -77,7 +86,7 @@ const Input = /*#__PURE__*/ forwardRef((props, refProp)=>{
|
|
|
77
86
|
},
|
|
78
87
|
"aria-disabled": props.disabled,
|
|
79
88
|
children: [
|
|
80
|
-
props.placeholder && !
|
|
89
|
+
props.placeholder && !hasVisibleValue && /*#__PURE__*/ jsx(Text.Body, {
|
|
81
90
|
className: Input_module.placeholder,
|
|
82
91
|
colorToken: TextColor.tertiary,
|
|
83
92
|
children: props.placeholder
|
|
@@ -90,7 +99,12 @@ const Input = /*#__PURE__*/ forwardRef((props, refProp)=>{
|
|
|
90
99
|
},
|
|
91
100
|
"data-test-id": props.testId ? `${props.testId}-values` : '',
|
|
92
101
|
children: [
|
|
93
|
-
|
|
102
|
+
allSelectedChipState.isAllSelected ? /*#__PURE__*/ jsx(AllSelectedChip, {
|
|
103
|
+
label: props.getAllSelectedChipText?.(allSelectedChipState.itemsCount) ?? getDefaultAllSelectedChipText(allSelectedChipState.itemsCount, props.allSelectedChipTextVariant),
|
|
104
|
+
disabled: props.disabled,
|
|
105
|
+
className: cn(chipStyles.chip, chipStyles.multiselectChip),
|
|
106
|
+
testId: props.testId ? `${props.testId}-all-selected` : void 0
|
|
107
|
+
}) : displayedSelectedItems.map((item, i)=>/*#__PURE__*/ jsx(TooltipedChip, {
|
|
94
108
|
ref: (ref)=>chipRefs.current[i] = ref,
|
|
95
109
|
text: item.label,
|
|
96
110
|
minWidth: minChipsWidth,
|
|
@@ -106,7 +120,7 @@ const Input = /*#__PURE__*/ forwardRef((props, refProp)=>{
|
|
|
106
120
|
renderSelectedItem: props.renderSelectedItem,
|
|
107
121
|
item: item
|
|
108
122
|
}, item.value)),
|
|
109
|
-
!props.wrapSelectedItems && /*#__PURE__*/ jsx(Chip, {
|
|
123
|
+
!allSelectedChipState.isAllSelected && !props.wrapSelectedItems && /*#__PURE__*/ jsx(Chip, {
|
|
110
124
|
ref: otherChipRef,
|
|
111
125
|
className: cn(chipStyles.chip, chipStyles.multiselectChip),
|
|
112
126
|
isActive: true,
|
|
@@ -117,7 +131,7 @@ const Input = /*#__PURE__*/ forwardRef((props, refProp)=>{
|
|
|
117
131
|
},
|
|
118
132
|
disabled: props.disabled,
|
|
119
133
|
testId: `${props.testId}-is-many-selected`,
|
|
120
|
-
children: props.getOtherText?.(otherElementsCount) ??
|
|
134
|
+
children: props.getOtherText?.(otherElementsCount) ?? `еще ${otherElementsCount}...`
|
|
121
135
|
})
|
|
122
136
|
]
|
|
123
137
|
}),
|
|
@@ -16,9 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.input-Wuu6VO:focus-visible {
|
|
19
|
-
|
|
20
|
-
box-shadow: 0 0 4px 0 var(--input-shadow);
|
|
21
|
-
border: 1px solid var(--border-accent, #036ce5);
|
|
19
|
+
border: 1px solid var(--border-focused, #091739);
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
.input-Wuu6VO {
|