@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
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { memo, useEffect, useState } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { EditableCellWrapper } from "../components/EditableCellWrapper/EditableCellWrapper.js";
|
|
4
4
|
import { TableSelect } from "../components/TableSelect/TableSelect.js";
|
|
5
|
-
import SelectCell_module from "./SelectCell.module.js";
|
|
6
5
|
const SelectCellComponent = ({ context, dropdownStyle = {
|
|
7
6
|
maxHeight: '320px'
|
|
8
7
|
}, options, onChange, onClear, style, cellClassName, value, ...selectProps })=>{
|
|
@@ -23,9 +22,9 @@ const SelectCellComponent = ({ context, dropdownStyle = {
|
|
|
23
22
|
table.options.meta?.updateData?.(row.index, column.id, void 0);
|
|
24
23
|
onClear?.(row.index, column.id);
|
|
25
24
|
};
|
|
26
|
-
return /*#__PURE__*/ jsx(
|
|
25
|
+
return /*#__PURE__*/ jsx(EditableCellWrapper, {
|
|
27
26
|
style: style,
|
|
28
|
-
className:
|
|
27
|
+
className: cellClassName,
|
|
29
28
|
children: /*#__PURE__*/ jsx(TableSelect, {
|
|
30
29
|
value: innerValue,
|
|
31
30
|
options: options,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.wrapper-cEE6lz {
|
|
2
2
|
box-sizing: border-box;
|
|
3
|
-
padding: var(--cell-padding-top, 4px) var(--cell-padding-right,
|
|
3
|
+
padding: var(--cell-padding-top, 4px) var(--cell-padding-right, 8px) var(--cell-padding-bottom, 4px) var(--cell-padding-left, 8px);
|
|
4
4
|
grid-template-columns: auto auto;
|
|
5
5
|
align-items: center;
|
|
6
6
|
gap: 10px;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, PropsWithChildren } from 'react';
|
|
2
|
+
export type EditableCellWrapperProps = PropsWithChildren<Pick<ComponentPropsWithoutRef<'div'>, 'style' | 'className'>>;
|
|
3
|
+
export declare const EditableCellWrapper: (props: EditableCellWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../../../common/index.js";
|
|
3
|
+
import EditableCellWrapper_module from "./EditableCellWrapper.module.js";
|
|
4
|
+
const EditableCellWrapper = (props)=>/*#__PURE__*/ jsx("div", {
|
|
5
|
+
className: cn(props.className, EditableCellWrapper_module.wrapper),
|
|
6
|
+
style: props.style,
|
|
7
|
+
children: props.children
|
|
8
|
+
});
|
|
9
|
+
export { EditableCellWrapper };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.wrapper-
|
|
1
|
+
.wrapper-D0vYd3 {
|
|
2
2
|
box-sizing: border-box;
|
|
3
|
-
padding: var(--cell-padding-top, 4px) var(--cell-padding-right,
|
|
3
|
+
padding: var(--cell-padding-top, 4px) var(--cell-padding-right, 4px) var(--cell-padding-bottom, 4px) var(--cell-padding-left, 4px);
|
|
4
4
|
align-items: center;
|
|
5
5
|
width: 100%;
|
|
6
6
|
display: flex;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EditableCellWrapper, type EditableCellWrapperProps, } from './EditableCellWrapper';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EditableCellWrapper } from "./EditableCellWrapper.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type MutableRefObject, type ReactNode, type RefObject } from 'react';
|
|
1
|
+
import { type HTMLAttributes, type MutableRefObject, type ReactNode, type RefObject } from 'react';
|
|
2
2
|
import { type IHasTestId } from '../../../../common';
|
|
3
3
|
export type RowActionsMenuItem = {
|
|
4
4
|
label: string;
|
|
5
5
|
onClick: () => void;
|
|
6
6
|
disabled?: boolean;
|
|
7
|
-
} & IHasTestId
|
|
7
|
+
} & IHasTestId & HTMLAttributes<HTMLDivElement>;
|
|
8
8
|
type RenderDropdownContentOptions = {
|
|
9
9
|
dropdown: ReactNode;
|
|
10
10
|
triggerRef: MutableRefObject<HTMLElement | null>;
|
|
@@ -17,6 +17,7 @@ export type RowActionsMenuProps = {
|
|
|
17
17
|
buttonIcon?: ReactNode;
|
|
18
18
|
buttonClassName?: string;
|
|
19
19
|
dropdownClassName?: string;
|
|
20
|
+
disabled?: boolean;
|
|
20
21
|
} & IHasTestId;
|
|
21
|
-
export declare const RowActionsMenu: import("react").MemoExoticComponent<({ menuItems, renderDropDownContent, buttonIcon, buttonClassName, dropdownClassName, testId, }: RowActionsMenuProps) => import("react/jsx-runtime").JSX.Element>;
|
|
22
|
+
export declare const RowActionsMenu: import("react").MemoExoticComponent<({ menuItems, renderDropDownContent, buttonIcon, buttonClassName, dropdownClassName, testId, disabled, }: RowActionsMenuProps) => import("react/jsx-runtime").JSX.Element>;
|
|
22
23
|
export {};
|
|
@@ -6,7 +6,7 @@ import { DropdownItem } from "../../../base/DropdownItem/DropdownItem.js";
|
|
|
6
6
|
import { Still20Icon } from "../../../../icon/index.js";
|
|
7
7
|
import { KEY_CODES, KEY_CODES_TO_CLOSE, KEY_CODES_TO_OPEN } from "./consts.js";
|
|
8
8
|
import RowActionsMenu_module from "./RowActionsMenu.module.js";
|
|
9
|
-
const RowActionsMenu = /*#__PURE__*/ memo(({ menuItems, renderDropDownContent, buttonIcon, buttonClassName, dropdownClassName, testId })=>{
|
|
9
|
+
const RowActionsMenu = /*#__PURE__*/ memo(({ menuItems, renderDropDownContent, buttonIcon, buttonClassName, dropdownClassName, testId, disabled })=>{
|
|
10
10
|
const { open, triggerRef, triggerAriaProps, dropdownAriaProps, handleToggle, handleClose: closeDropdown, handleOpen, dropdownRef } = useDropdown();
|
|
11
11
|
const [cursor, setCursor] = useState(null);
|
|
12
12
|
const handleClose = useCallback(()=>{
|
|
@@ -17,17 +17,17 @@ const RowActionsMenu = /*#__PURE__*/ memo(({ menuItems, renderDropDownContent, b
|
|
|
17
17
|
]);
|
|
18
18
|
const menuItemNodes = useMemo(()=>{
|
|
19
19
|
if (0 === menuItems.length) return null;
|
|
20
|
-
return menuItems.map((
|
|
21
|
-
|
|
22
|
-
testId: item.testId ?? `${testId}-row-menu-option`,
|
|
20
|
+
return menuItems.map(({ label, testId: menuItemTestId, onClick, ...restMenuItemProps }, index)=>/*#__PURE__*/ jsx(DropdownItem, {
|
|
21
|
+
testId: menuItemTestId ?? `${testId}-row-menu-option`,
|
|
23
22
|
isFocused: index === cursor,
|
|
24
23
|
onClick: (e)=>{
|
|
25
|
-
|
|
24
|
+
onClick();
|
|
26
25
|
handleClose();
|
|
27
26
|
e.stopPropagation();
|
|
28
27
|
},
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
...restMenuItemProps,
|
|
29
|
+
children: label
|
|
30
|
+
}, label));
|
|
31
31
|
}, [
|
|
32
32
|
menuItems,
|
|
33
33
|
testId,
|
|
@@ -48,7 +48,10 @@ const RowActionsMenu = /*#__PURE__*/ memo(({ menuItems, renderDropDownContent, b
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
if (open) {
|
|
51
|
-
if (KEY_CODES_TO_CLOSE.includes(e.code))
|
|
51
|
+
if (KEY_CODES_TO_CLOSE.includes(e.code)) {
|
|
52
|
+
e.preventDefault();
|
|
53
|
+
handleClose();
|
|
54
|
+
}
|
|
52
55
|
if ((e.code === KEY_CODES.ENTER || e.code === KEY_CODES.SPACE) && null !== cursor) {
|
|
53
56
|
e.preventDefault();
|
|
54
57
|
const { onClick, disabled } = menuItems[cursor];
|
|
@@ -94,11 +97,8 @@ const RowActionsMenu = /*#__PURE__*/ memo(({ menuItems, renderDropDownContent, b
|
|
|
94
97
|
tabIndex: 0,
|
|
95
98
|
"data-test-id": `${testId}-row-menu-button`,
|
|
96
99
|
"data-active": open,
|
|
97
|
-
onKeyDown: handleKeyDown,
|
|
98
|
-
onClick:
|
|
99
|
-
handleToggle();
|
|
100
|
-
e.stopPropagation();
|
|
101
|
-
},
|
|
100
|
+
onKeyDown: disabled ? void 0 : handleKeyDown,
|
|
101
|
+
onClick: disabled ? void 0 : handleToggle,
|
|
102
102
|
ref: (element)=>{
|
|
103
103
|
if (element) triggerRef.current = element;
|
|
104
104
|
},
|
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef, useRef } from "react";
|
|
2
|
+
import { forwardRef, useCallback, useRef, useState } from "react";
|
|
3
3
|
import { cn } from "../../../../common/index.js";
|
|
4
4
|
import { OverflowHint } from "../../../base/OverflowHint/OverflowHint.js";
|
|
5
5
|
import { useId } from "../../../../hooks/index.js";
|
|
6
6
|
import TableInput_module from "./TableInput.module.js";
|
|
7
|
-
const TableInput = /*#__PURE__*/ forwardRef(({ actions, className, disabled, error, inputClassName, inputRef: inputRefProp, tabIndex, testId, value, ...inputProps }, ref)=>{
|
|
7
|
+
const TableInput = /*#__PURE__*/ forwardRef(({ actions, className, disabled, error, inputClassName, inputRef: inputRefProp, tabIndex, testId, value, onFocus, onBlur, ...inputProps }, ref)=>{
|
|
8
8
|
const inputId = useId(inputProps.id);
|
|
9
9
|
const inputRef = useRef(null);
|
|
10
10
|
const wrapperRef = useRef(null);
|
|
11
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
12
|
+
const handleFocus = useCallback((e)=>{
|
|
13
|
+
setIsFocused(true);
|
|
14
|
+
if (onFocus) onFocus(e);
|
|
15
|
+
}, [
|
|
16
|
+
onFocus
|
|
17
|
+
]);
|
|
18
|
+
const handleBlur = useCallback((e)=>{
|
|
19
|
+
setIsFocused(false);
|
|
20
|
+
if (onBlur) onBlur(e);
|
|
21
|
+
}, [
|
|
22
|
+
onBlur
|
|
23
|
+
]);
|
|
11
24
|
return /*#__PURE__*/ jsx("div", {
|
|
12
25
|
className: TableInput_module.wrapper,
|
|
13
26
|
ref: wrapperRef,
|
|
@@ -16,6 +29,7 @@ const TableInput = /*#__PURE__*/ forwardRef(({ actions, className, disabled, err
|
|
|
16
29
|
hintZIndex: 6,
|
|
17
30
|
overflowElement: inputRef,
|
|
18
31
|
parent: wrapperRef,
|
|
32
|
+
forceHideTooltip: isFocused,
|
|
19
33
|
children: /*#__PURE__*/ jsxs("div", {
|
|
20
34
|
"data-disabled": disabled,
|
|
21
35
|
"data-error": error,
|
|
@@ -39,7 +53,9 @@ const TableInput = /*#__PURE__*/ forwardRef(({ actions, className, disabled, err
|
|
|
39
53
|
},
|
|
40
54
|
tabIndex: tabIndex,
|
|
41
55
|
type: "text",
|
|
42
|
-
value: value
|
|
56
|
+
value: value,
|
|
57
|
+
onFocus: handleFocus,
|
|
58
|
+
onBlur: handleBlur
|
|
43
59
|
}),
|
|
44
60
|
actions ? /*#__PURE__*/ jsx("div", {
|
|
45
61
|
className: TableInput_module.actionsContainer,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type TableInputProps } from '../TableInput/TableInput';
|
|
3
3
|
import { type DefaultFormatterOptions } from './utils';
|
|
4
|
-
type OmittedTableInputProps = 'value' | 'onChange';
|
|
4
|
+
type OmittedTableInputProps = 'value' | 'onChange' | 'onBlur' | 'defaultValue';
|
|
5
5
|
export interface TableNumberInputProps extends Omit<TableInputProps, OmittedTableInputProps> {
|
|
6
6
|
value: number | null;
|
|
7
|
-
|
|
7
|
+
onBlur?: (e: React.FocusEvent<HTMLInputElement>, value: number | null) => void;
|
|
8
|
+
onChange?: (value: number | null) => void;
|
|
8
9
|
allowNegative?: boolean;
|
|
9
10
|
allowDecimal?: boolean;
|
|
10
11
|
decimalSeparator?: string;
|
|
@@ -12,6 +13,7 @@ export interface TableNumberInputProps extends Omit<TableInputProps, OmittedTabl
|
|
|
12
13
|
defaultFormatterOptions?: DefaultFormatterOptions;
|
|
13
14
|
formatter?: (value: number | null) => string;
|
|
14
15
|
suffix?: string;
|
|
16
|
+
allowBlurWhenValueNotChange?: boolean;
|
|
15
17
|
}
|
|
16
|
-
export declare const TableNumberInput: React.
|
|
18
|
+
export declare const TableNumberInput: React.MemoExoticComponent<React.ForwardRefExoticComponent<TableNumberInputProps & React.RefAttributes<HTMLDivElement>>>;
|
|
17
19
|
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback, useEffect, useRef
|
|
2
|
+
import { forwardRef, memo, useCallback, useEffect, useRef } from "react";
|
|
3
|
+
import { mergeRefs } from "../../../../common/react/mergeRefs.js";
|
|
3
4
|
import { REGEX_COPY_PASTE_KEYS, RESERVED_CODES, RESERVED_KEYS } from "../../../../utils/index.js";
|
|
4
5
|
import { TableInput } from "../TableInput/TableInput.js";
|
|
5
6
|
import { getRegex, numberFormatter, parser, sanitize } from "./utils.js";
|
|
6
7
|
import TableNumberInput_module from "./TableNumberInput.module.js";
|
|
7
|
-
const TableNumberInput = ({ value, allowNegative = true, allowDecimal = true, decimalSeparator, maximumFractionDigits = 2, defaultFormatterOptions, formatter, suffix, onBlur, onChange,
|
|
8
|
+
const TableNumberInput = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(({ value, allowNegative = true, allowDecimal = true, decimalSeparator, maximumFractionDigits = 2, defaultFormatterOptions, formatter, suffix, onBlur, onChange, onKeyDown, onPaste, onInput, inputRef: inputRefProp, allowBlurWhenValueNotChange = true, ...rest }, ref)=>{
|
|
8
9
|
const inputRef = useRef(null);
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const handleFormat = useCallback((value)=>formatter ? formatter(value) : numberFormatter({
|
|
10
|
+
const timeoutRef = useRef();
|
|
11
|
+
const getFormattedValue = useCallback((value)=>formatter ? formatter(value) : numberFormatter({
|
|
12
12
|
value,
|
|
13
13
|
allowDecimal,
|
|
14
14
|
suffix,
|
|
@@ -19,7 +19,7 @@ const TableNumberInput = ({ value, allowNegative = true, allowDecimal = true, de
|
|
|
19
19
|
formatter,
|
|
20
20
|
suffix
|
|
21
21
|
]);
|
|
22
|
-
const
|
|
22
|
+
const getSanitizedValue = useCallback((input)=>sanitize({
|
|
23
23
|
input,
|
|
24
24
|
allowNegative,
|
|
25
25
|
allowDecimal,
|
|
@@ -29,7 +29,7 @@ const TableNumberInput = ({ value, allowNegative = true, allowDecimal = true, de
|
|
|
29
29
|
allowNegative,
|
|
30
30
|
suffix
|
|
31
31
|
]);
|
|
32
|
-
const
|
|
32
|
+
const getParsedValue = useCallback((input)=>parser({
|
|
33
33
|
input,
|
|
34
34
|
allowNegative,
|
|
35
35
|
allowDecimal,
|
|
@@ -43,48 +43,31 @@ const TableNumberInput = ({ value, allowNegative = true, allowDecimal = true, de
|
|
|
43
43
|
maximumFractionDigits,
|
|
44
44
|
suffix
|
|
45
45
|
]);
|
|
46
|
-
|
|
47
|
-
if (!isFocused) {
|
|
48
|
-
const formatted = handleFormat(value);
|
|
49
|
-
setDisplayValue(formatted);
|
|
50
|
-
}
|
|
51
|
-
}, [
|
|
52
|
-
handleFormat,
|
|
53
|
-
isFocused,
|
|
54
|
-
value
|
|
55
|
-
]);
|
|
56
|
-
const handleFocus = useCallback((e)=>{
|
|
57
|
-
setIsFocused(true);
|
|
58
|
-
onFocus?.(e);
|
|
59
|
-
}, [
|
|
60
|
-
onFocus
|
|
61
|
-
]);
|
|
46
|
+
const formattedValue = getFormattedValue(value);
|
|
62
47
|
const handleBlur = useCallback((e)=>{
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
if (
|
|
68
|
-
|
|
69
|
-
onBlur?.(e);
|
|
48
|
+
const sanitizedValue = getSanitizedValue(e.target.value);
|
|
49
|
+
const parsedValue = getParsedValue(sanitizedValue);
|
|
50
|
+
const formatted = getFormattedValue(parsedValue);
|
|
51
|
+
if (!allowBlurWhenValueNotChange && formattedValue === formatted) return;
|
|
52
|
+
if (inputRef.current) inputRef.current.value = formatted;
|
|
53
|
+
onBlur?.(e, parsedValue);
|
|
70
54
|
}, [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
55
|
+
getSanitizedValue,
|
|
56
|
+
getParsedValue,
|
|
57
|
+
getFormattedValue,
|
|
58
|
+
formattedValue,
|
|
59
|
+
allowBlurWhenValueNotChange,
|
|
60
|
+
onBlur
|
|
77
61
|
]);
|
|
78
62
|
const handleChange = useCallback((e)=>{
|
|
79
63
|
const rawInput = e.target.value;
|
|
80
|
-
const sanitizedValue =
|
|
81
|
-
const parsedValue =
|
|
82
|
-
|
|
83
|
-
onChange(parsedValue);
|
|
64
|
+
const sanitizedValue = getSanitizedValue(rawInput);
|
|
65
|
+
const parsedValue = getParsedValue(sanitizedValue);
|
|
66
|
+
onChange?.(parsedValue);
|
|
84
67
|
}, [
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
68
|
+
getParsedValue,
|
|
69
|
+
getSanitizedValue,
|
|
70
|
+
onChange
|
|
88
71
|
]);
|
|
89
72
|
const handleKeyDown = useCallback((e)=>{
|
|
90
73
|
const { key, ctrlKey, metaKey, code } = e;
|
|
@@ -109,32 +92,50 @@ const TableNumberInput = ({ value, allowNegative = true, allowDecimal = true, de
|
|
|
109
92
|
const end = input.selectionEnd || 0;
|
|
110
93
|
const currentValue = input.value;
|
|
111
94
|
const newValue = currentValue.substring(0, start) + pasteData + currentValue.substring(end);
|
|
112
|
-
const sanitizedValue =
|
|
113
|
-
|
|
114
|
-
setDisplayValue(sanitizedValue);
|
|
115
|
-
onChange(parsedValue);
|
|
95
|
+
const sanitizedValue = getSanitizedValue(newValue);
|
|
96
|
+
input.value = sanitizedValue;
|
|
116
97
|
const newCursorPos = start + sanitizedValue.length;
|
|
117
|
-
|
|
98
|
+
clearTimeout(timeoutRef.current);
|
|
99
|
+
timeoutRef.current = setTimeout(()=>{
|
|
118
100
|
input.setSelectionRange(newCursorPos, newCursorPos);
|
|
119
101
|
}, 0);
|
|
102
|
+
const changeEvent = {
|
|
103
|
+
target: input,
|
|
104
|
+
currentTarget: input
|
|
105
|
+
};
|
|
106
|
+
handleChange(changeEvent);
|
|
107
|
+
onInput?.(changeEvent);
|
|
120
108
|
onPaste?.(e);
|
|
121
109
|
}, [
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
110
|
+
getSanitizedValue,
|
|
111
|
+
handleChange,
|
|
112
|
+
onInput,
|
|
125
113
|
onPaste
|
|
126
114
|
]);
|
|
115
|
+
useEffect(()=>{
|
|
116
|
+
if (inputRef.current) inputRef.current.value = getFormattedValue(value);
|
|
117
|
+
}, [
|
|
118
|
+
getFormattedValue,
|
|
119
|
+
value
|
|
120
|
+
]);
|
|
121
|
+
useEffect(()=>()=>{
|
|
122
|
+
clearTimeout(timeoutRef.current);
|
|
123
|
+
}, []);
|
|
127
124
|
return /*#__PURE__*/ jsx(TableInput, {
|
|
128
|
-
|
|
125
|
+
ref: ref,
|
|
126
|
+
inputRef: mergeRefs([
|
|
127
|
+
inputRefProp ?? null,
|
|
128
|
+
inputRef
|
|
129
|
+
]),
|
|
130
|
+
defaultValue: formattedValue,
|
|
129
131
|
inputClassName: TableNumberInput_module.input,
|
|
130
|
-
value: displayValue,
|
|
131
132
|
onChange: handleChange,
|
|
132
|
-
onFocus: handleFocus,
|
|
133
133
|
onBlur: handleBlur,
|
|
134
134
|
onKeyDown: handleKeyDown,
|
|
135
135
|
onPaste: handlePaste,
|
|
136
|
+
onInput: onInput,
|
|
136
137
|
...rest
|
|
137
138
|
});
|
|
138
|
-
};
|
|
139
|
+
}));
|
|
139
140
|
TableNumberInput.displayName = 'TableNumberInput';
|
|
140
141
|
export { TableNumberInput };
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { type ButtonHTMLAttributes, type FC } from 'react';
|
|
2
|
-
|
|
2
|
+
import { type IHasTestId } from '../../../../../common';
|
|
3
|
+
type Props = ButtonHTMLAttributes<HTMLButtonElement> & IHasTestId;
|
|
4
|
+
export declare const ActionButton: FC<Props>;
|
|
5
|
+
export {};
|
|
@@ -2,9 +2,10 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo } from "react";
|
|
3
3
|
import { cn } from "../../../../../common/index.js";
|
|
4
4
|
import ActionButton_module from "./ActionButton.module.js";
|
|
5
|
-
const ActionButton = /*#__PURE__*/ memo(({ className, ...
|
|
6
|
-
...
|
|
7
|
-
className: cn(ActionButton_module.button, className)
|
|
5
|
+
const ActionButton = /*#__PURE__*/ memo(({ className, testId, ...restProps })=>/*#__PURE__*/ jsx("button", {
|
|
6
|
+
...restProps,
|
|
7
|
+
className: cn(ActionButton_module.button, className),
|
|
8
|
+
"data-test-id": testId
|
|
8
9
|
}));
|
|
9
10
|
ActionButton.displayName = 'ActionButton';
|
|
10
11
|
export { ActionButton };
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
import React, { type ForwardedRef, type ReactNode } from 'react';
|
|
2
|
-
import { type SelectProps } from '../../../../components/Select/Select';
|
|
1
|
+
import React, { type ForwardedRef, type MouseEventHandler, type MutableRefObject, type ReactNode } from 'react';
|
|
2
|
+
import { type SelectProps as BaseSelectProps, type SelectRef } from '../../../../components/Select/Select';
|
|
3
3
|
import { type TableInputProps } from '../TableInput/TableInput';
|
|
4
|
-
type RenderInput<T = unknown> = NonNullable<
|
|
5
|
-
type RenderActionsOptions<T> = Pick<Parameters<RenderInput>[0], 'clearHandler' | 'toggleHandler'> & Pick<
|
|
4
|
+
type RenderInput<T = unknown> = NonNullable<BaseSelectProps<T>['renderInput']>;
|
|
5
|
+
type RenderActionsOptions<T> = Pick<Parameters<RenderInput>[0], 'clearHandler' | 'toggleHandler'> & Pick<BaseSelectProps<T>, 'value'>;
|
|
6
6
|
type OmittedSelectProps = 'children' | 'fullWidth' | 'helpComponent' | 'info' | 'inputProps' | 'label' | 'renderActions' | 'renderInput' | 'required' | 'searchable' | 'variant';
|
|
7
|
-
type
|
|
8
|
-
|
|
7
|
+
type SelectProps<T> = Omit<BaseSelectProps<T>, OmittedSelectProps>;
|
|
8
|
+
type PickedTableInputProps = 'className' | 'inputRef' | 'onBlur' | 'onChange' | 'onClick' | 'onFocus' | 'onKeyDown' | 'onKeyUp';
|
|
9
|
+
type InputProps = Pick<TableInputProps, PickedTableInputProps> & {
|
|
10
|
+
ref?: MutableRefObject<HTMLDivElement | null> | ((element: HTMLDivElement | null) => void);
|
|
11
|
+
};
|
|
12
|
+
export interface TableSelectProps<T = unknown> extends SelectProps<T> {
|
|
9
13
|
name?: string;
|
|
10
|
-
inputProps?:
|
|
14
|
+
inputProps?: InputProps;
|
|
11
15
|
renderActions?: (options: RenderActionsOptions<T>) => ReactNode;
|
|
16
|
+
customOnArrowBtnClick?: MouseEventHandler<HTMLDivElement>;
|
|
12
17
|
}
|
|
13
|
-
declare const TableSelectComponent: <T = unknown>(props: TableSelectProps<T>, ref: ForwardedRef<
|
|
18
|
+
declare const TableSelectComponent: <T = unknown>(props: TableSelectProps<T>, ref: ForwardedRef<SelectRef<T>>) => JSX.Element;
|
|
14
19
|
export declare const TableSelect: (<T>(props: TableSelectProps<T> & {
|
|
15
|
-
ref?: ForwardedRef<
|
|
20
|
+
ref?: ForwardedRef<SelectRef<T>>;
|
|
16
21
|
}) => ReturnType<typeof TableSelectComponent>) & {
|
|
17
|
-
ActionButton: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement
|
|
22
|
+
ActionButton: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement> & import("../../../../common").IHasTestId>;
|
|
18
23
|
displayName: string;
|
|
19
24
|
};
|
|
20
25
|
export {};
|
|
@@ -6,11 +6,11 @@ import { Down12Icon, RemoveClose12Icon } from "../../../../icon/index.js";
|
|
|
6
6
|
import { TableInput } from "../TableInput/TableInput.js";
|
|
7
7
|
import { ActionButton } from "./ActionButton/ActionButton.js";
|
|
8
8
|
import TableSelect_module from "./TableSelect.module.js";
|
|
9
|
-
const TableSelectComponent = ({ inputProps, name, renderActions, ...selectProps }, ref)=>{
|
|
9
|
+
const TableSelectComponent = ({ inputProps, name, renderActions, customOnArrowBtnClick, clearable = true, ...selectProps }, ref)=>{
|
|
10
10
|
const inputRef = useRef(null);
|
|
11
11
|
const actionsRenderer = ({ clearHandler, toggleHandler })=>/*#__PURE__*/ jsxs(Fragment, {
|
|
12
12
|
children: [
|
|
13
|
-
!!selectProps.value && !selectProps.disabled && /*#__PURE__*/ jsxs(Fragment, {
|
|
13
|
+
clearable && !!selectProps.value && !selectProps.disabled && /*#__PURE__*/ jsxs(Fragment, {
|
|
14
14
|
children: [
|
|
15
15
|
/*#__PURE__*/ jsx("button", {
|
|
16
16
|
"data-test-id": selectProps.testId ? `${selectProps.testId}-clear-button` : void 0,
|
|
@@ -37,6 +37,7 @@ const TableSelectComponent = ({ inputProps, name, renderActions, ...selectProps
|
|
|
37
37
|
!selectProps.disabled && /*#__PURE__*/ jsx("div", {
|
|
38
38
|
className: cn(TableSelect_module.actionButton, TableSelect_module.interactiveOnly),
|
|
39
39
|
onClick: (event)=>{
|
|
40
|
+
if (customOnArrowBtnClick) return void customOnArrowBtnClick(event);
|
|
40
41
|
event.stopPropagation();
|
|
41
42
|
inputRef.current?.focus();
|
|
42
43
|
toggleHandler();
|
|
@@ -60,23 +61,25 @@ const TableSelectComponent = ({ inputProps, name, renderActions, ...selectProps
|
|
|
60
61
|
name: name,
|
|
61
62
|
placeholder: selectProps.placeholder,
|
|
62
63
|
onChange: (event)=>{
|
|
63
|
-
inputProps?.onChange?.(event);
|
|
64
64
|
searchHandler(event.target.value);
|
|
65
|
+
inputProps?.onChange?.(event);
|
|
65
66
|
},
|
|
66
67
|
onClick: (event)=>{
|
|
67
|
-
inputProps?.onClick?.(event);
|
|
68
68
|
openHandler();
|
|
69
|
+
inputProps?.onClick?.(event);
|
|
69
70
|
},
|
|
70
71
|
onKeyUp: (event)=>{
|
|
71
|
-
inputProps?.onKeyUp?.(event);
|
|
72
72
|
inputKeyUpHandler(event);
|
|
73
|
+
inputProps?.onKeyUp?.(event);
|
|
73
74
|
},
|
|
74
75
|
onKeyDown: inputProps?.onKeyDown,
|
|
76
|
+
onBlur: inputProps?.onBlur,
|
|
77
|
+
onFocus: inputProps?.onFocus,
|
|
75
78
|
ref: (element)=>{
|
|
76
79
|
triggerRef.current = element;
|
|
77
|
-
if (!ref) return;
|
|
78
|
-
if ('function' == typeof ref) return void ref(element);
|
|
79
|
-
ref.current = element;
|
|
80
|
+
if (!inputProps?.ref) return;
|
|
81
|
+
if ('function' == typeof inputProps.ref) return void inputProps.ref(element);
|
|
82
|
+
inputProps.ref.current = element;
|
|
80
83
|
},
|
|
81
84
|
inputRef: (element)=>{
|
|
82
85
|
inputRef.current = element;
|
|
@@ -91,6 +94,8 @@ const TableSelectComponent = ({ inputProps, name, renderActions, ...selectProps
|
|
|
91
94
|
return /*#__PURE__*/ jsx(Select, {
|
|
92
95
|
searchable: true,
|
|
93
96
|
renderInput: inputRenderer,
|
|
97
|
+
ref: ref,
|
|
98
|
+
clearable: clearable,
|
|
94
99
|
...selectProps
|
|
95
100
|
});
|
|
96
101
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { EditableCellWrapper, type EditableCellWrapperProps, } from './EditableCellWrapper';
|
|
1
2
|
export { RowActionsMenu, type RowActionsMenuItem, type RowActionsMenuProps, } from './RowActionsMenu';
|
|
2
3
|
export { TableInput, type TableInputProps } from './TableInput';
|
|
3
4
|
export { numberFormatter, TableNumberInput, type TableNumberInputProps, } from './TableNumberInput';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AutoCompleteCell, type AutoCompleteCellProps, } from './AutoCompleteCell';
|
|
2
2
|
export { BooleanCell } from './BooleanCell';
|
|
3
3
|
export { CheckboxCell } from './CheckboxCell';
|
|
4
|
-
export { numberFormatter, RowActionsMenu, type RowActionsMenuItem, type RowActionsMenuProps, TableInput, type TableInputProps, TableNumberInput, type TableNumberInputProps, TableSelect, type TableSelectProps, } from './components';
|
|
4
|
+
export { EditableCellWrapper, type EditableCellWrapperProps, numberFormatter, RowActionsMenu, type RowActionsMenuItem, type RowActionsMenuProps, TableInput, type TableInputProps, TableNumberInput, type TableNumberInputProps, TableSelect, type TableSelectProps, } from './components';
|
|
5
5
|
export { DateCell } from './DateCell';
|
|
6
6
|
export { DecimalCell } from './DecimalCell';
|
|
7
7
|
export { ETableFillCellValues, getBackgroundColorByFillState, getFillState, getTranslationPostfixByFillState, isFillStateWithTooltip, } from './DecimalCell/DecimalCell.helpers';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AutoCompleteCell } from "./AutoCompleteCell/index.js";
|
|
2
2
|
export { BooleanCell } from "./BooleanCell/index.js";
|
|
3
3
|
export { CheckboxCell } from "./CheckboxCell/index.js";
|
|
4
|
-
export { RowActionsMenu, TableInput, TableNumberInput, TableSelect, numberFormatter } from "./components/index.js";
|
|
4
|
+
export { EditableCellWrapper, RowActionsMenu, TableInput, TableNumberInput, TableSelect, numberFormatter } from "./components/index.js";
|
|
5
5
|
export { DateCell } from "./DateCell/index.js";
|
|
6
6
|
export { DecimalCell } from "./DecimalCell/index.js";
|
|
7
7
|
export { ETableFillCellValues, getBackgroundColorByFillState, getFillState, getTranslationPostfixByFillState, isFillStateWithTooltip } from "./DecimalCell/DecimalCell.helpers.js";
|
|
@@ -3,7 +3,7 @@ import { memo } from "react";
|
|
|
3
3
|
import { HeaderBuilder } from "./components/index.js";
|
|
4
4
|
import { getColumnDefMeta } from "./utils/index.js";
|
|
5
5
|
const PlainTextHeaderComponent = ({ column })=>{
|
|
6
|
-
const { displayName, customHintText, hintZIndex, forceShowTooltip = false, className, testId, isScrollToDropdownDisabled, btnClassName } = getColumnDefMeta(column);
|
|
6
|
+
const { displayName, customHintText, hintZIndex, forceShowTooltip = false, className, testId, isScrollToDropdownDisabled, btnClassName, displayNamePosition = 'left' } = getColumnDefMeta(column);
|
|
7
7
|
return /*#__PURE__*/ jsx(HeaderBuilder, {
|
|
8
8
|
sortDirection: false,
|
|
9
9
|
displayName: displayName,
|
|
@@ -15,7 +15,8 @@ const PlainTextHeaderComponent = ({ column })=>{
|
|
|
15
15
|
className: className,
|
|
16
16
|
textOnly: true,
|
|
17
17
|
isScrollToDropdownDisabled: isScrollToDropdownDisabled,
|
|
18
|
-
btnClass: btnClassName
|
|
18
|
+
btnClass: btnClassName,
|
|
19
|
+
displayNamePosition: displayNamePosition
|
|
19
20
|
});
|
|
20
21
|
};
|
|
21
22
|
const PlainTextHeader = /*#__PURE__*/ memo(PlainTextHeaderComponent);
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes, type RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use { Dropdown } from @lognex/uikit instead
|
|
4
|
+
*/
|
|
2
5
|
export declare const Dropdown: import("react").ForwardRefExoticComponent<{
|
|
3
6
|
buttonRef: RefObject<HTMLElement>;
|
|
4
7
|
align?: "left" | "right";
|
|
@@ -4,16 +4,20 @@ import { cn } from "../../../../../common/css/cn.js";
|
|
|
4
4
|
import { Down12Icon, Filter12Icon } from "../../../../../icon/index.js";
|
|
5
5
|
import { EllipsisText } from "../../EllipsisText/EllipsisText.js";
|
|
6
6
|
import DropdownArrowBtn_module from "./DropdownArrowBtn.module.js";
|
|
7
|
-
const DropdownArrowBtn = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(({ name, isActive, isFiltered, disabled, onFocus, iconContainerClassName, className, testId, ...rest }, ref)=>{
|
|
7
|
+
const DropdownArrowBtn = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(({ name, isActive, isFiltered, disabled, onFocus, iconContainerClassName, className, testId, onClick, ...rest }, ref)=>{
|
|
8
8
|
const handleFocus = (e)=>{
|
|
9
9
|
if (onFocus) onFocus(e);
|
|
10
10
|
};
|
|
11
|
+
const handOnClick = (e)=>{
|
|
12
|
+
if (onClick && !disabled) onClick(e);
|
|
13
|
+
};
|
|
11
14
|
return /*#__PURE__*/ jsxs("div", {
|
|
12
15
|
ref: ref,
|
|
13
16
|
"aria-disabled": disabled,
|
|
14
17
|
onFocus: handleFocus,
|
|
15
18
|
tabIndex: 0,
|
|
16
19
|
className: cn(DropdownArrowBtn_module.buttonContainer, className),
|
|
20
|
+
onClick: handOnClick,
|
|
17
21
|
...rest,
|
|
18
22
|
children: [
|
|
19
23
|
/*#__PURE__*/ jsx(EllipsisText, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes, type MutableRefObject, type PropsWithChildren, type Ref } from 'react';
|
|
2
2
|
interface Props<V> extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
3
3
|
value?: V;
|
|
4
|
-
onSelect?: (value
|
|
4
|
+
onSelect?: (value?: V) => void;
|
|
5
5
|
}
|
|
6
6
|
export declare const OptionComponent: <V = undefined>({ children, className, value, onSelect, ...rest }: PropsWithChildren<Props<V>>, ref: MutableRefObject<HTMLDivElement> | null) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
type OptionWithRef = <V = undefined>(p: PropsWithChildren<Props<V>> & {
|