@sberbusiness/triplex-next 0.1.8 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/assets/fonts/SBSansDisplay-Bold.woff2 +0 -0
- package/assets/fonts/SBSansDisplay-Medium.woff2 +0 -0
- package/assets/fonts/SBSansDisplay-Regular.woff2 +0 -0
- package/assets/fonts/SBSansDisplay-SemiBold.woff2 +0 -0
- package/assets/fonts/SBSansText-Regular.woff2 +0 -0
- package/assets/fonts/SBSansText-Semibold.woff2 +0 -0
- package/chunks/AlertProcessSpoiler-BthiLiMe.js +39 -0
- package/chunks/CalendarViewItem-CNP7C3l_.js +101 -0
- package/chunks/Card.module-BxAU0ct3.js +17 -0
- package/chunks/CheckboxTreeExtended.module-8H0Dgq8c.js +11 -0
- package/chunks/Chip-DaFItkIp.js +90 -0
- package/chunks/Confirm.module-BaXVkVHJ.js +15 -0
- package/chunks/DropdownListItem-lbLsbKwC.js +63 -0
- package/chunks/DropdownMobile.module-kHpY8q0l.js +23 -0
- package/chunks/Footer.module-BZTAlpWH.js +9 -0
- package/chunks/FormFieldInput-BoG8X8Sc.js +62 -0
- package/chunks/HeaderLayoutSidebar.module-Bbxhh0aE.js +9 -0
- package/chunks/HeaderTabs.module-Bo3HPBP_.js +9 -0
- package/chunks/HeaderTitle.module-r9kVKK-W.js +11 -0
- package/chunks/IslandAccordion.module-r5TKHc-1.js +25 -0
- package/chunks/IslandWidgetFooter.module-DANV-WDZ.js +9 -0
- package/chunks/IslandWidgetHeader.module-D9N9d8U0.js +9 -0
- package/chunks/LightBoxContent-3M4bOnUh.js +56 -0
- package/chunks/LightBoxControls.module-C1sKSbiw.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-H2K8IoVH.js +8 -0
- package/chunks/ListItemControlsButton-rF_5JaM-.js +43 -0
- package/chunks/ListItemTail.module-rBxpoSGQ.js +12 -0
- package/chunks/ListMasterFooter.module-CjjTF28N.js +10 -0
- package/chunks/ModalWindow.module-BJWhs2p-.js +17 -0
- package/chunks/Notification.module-CoXNIHHx.js +21 -0
- package/chunks/Overlay.module-DqeHrg4k.js +18 -0
- package/chunks/Page.module-JyadpNMJ.js +11 -0
- package/chunks/RightBorderArrow-C1vPwzXO.js +146 -0
- package/chunks/SMSField.module-BR0BSWtJ.js +16 -0
- package/chunks/SliderExtendedMarks.module-DyfiF83O.js +15 -0
- package/chunks/SliderExtendedRail-Bw4p-kLW.js +40 -0
- package/chunks/StatusTracker.module-BzdhWkFm.js +24 -0
- package/chunks/SuggestFieldMobileDropdownHint-Ciw5Nm9X.js +15 -0
- package/chunks/TableFooter.module-BRn2cKAx.js +14 -0
- package/chunks/TabsExtended.module-DW52Fxa9.js +16 -0
- package/chunks/TabsLine.module-Do3KfZpp.js +21 -0
- package/chunks/TooltipDesktop.module-B10Gb93w.js +19 -0
- package/chunks/TreeView.module-oFkxX2oe.js +9 -0
- package/chunks/UploadZoneInput-CQ9bTi-y.js +33 -0
- package/chunks/utils-BHK9pmFJ.js +73 -0
- package/chunks/{utils-DF32MMDm.js → utils-CxR_OPBn.js} +8 -8
- package/chunks/utils-DTmo2xHF.js +20 -0
- package/chunks/utils-DbKLiLdh.js +24 -0
- package/chunks/utils-Ql50x949.js +27 -0
- package/chunks/vendor-BlJo2ILB.js +15192 -0
- package/components/AbstractTree/AbstractTreeNode.js +50 -0
- package/components/AccordionBase/protected/AccordionBase.js +83 -0
- package/components/AccordionBase/types.js +2 -0
- package/components/Alert/AlertContext/AlertContext.js +19 -19
- package/components/Alert/AlertProcess/AlertProcess.js +10 -10
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
- package/components/Amount/Amount.js +36 -0
- package/components/Amount/index.js +5 -0
- package/components/AmountField/AmountBaseInputCore.js +46 -0
- package/components/AmountField/AmountBaseInputFormatter.js +57 -0
- package/components/AmountField/AmountBaseInputParser.js +110 -0
- package/components/AmountField/AmountField.js +73 -0
- package/components/AmountField/index.js +5 -0
- package/components/AmountField/utils.js +38 -0
- package/components/Body/Body.js +7 -7
- package/components/Button/Button.js +97 -10
- package/components/Button/ButtonBase.js +5 -5
- package/components/Button/ButtonDropdown.js +169 -23
- package/components/Button/ButtonDropdownExtended.js +50 -6
- package/components/Button/ButtonIcon.js +17 -21
- package/components/Button/enums.js +4 -4
- package/components/Button/index.js +13 -12
- package/components/Calendar/Calendar.js +188 -0
- package/components/Calendar/CalendarContext.js +22 -0
- package/components/Calendar/CalendarViewContext.js +8 -0
- package/components/Calendar/components/CalendarControls.js +97 -0
- package/components/Calendar/components/CalendarFooter.js +9 -0
- package/components/Calendar/components/CalendarFooterButton.js +31 -0
- package/components/Calendar/components/CalendarView.js +30 -0
- package/components/Calendar/components/CalendarViewDays.js +100 -0
- package/components/Calendar/components/CalendarViewItem.js +11 -0
- package/components/Calendar/components/CalendarViewMonths.js +64 -0
- package/components/Calendar/components/CalendarViewYears.js +64 -0
- package/components/Calendar/enums.js +7 -0
- package/components/Calendar/index.js +9 -0
- package/components/Calendar/types.js +2 -0
- package/components/Calendar/utils.js +38 -0
- package/components/Card/CardAction.js +20 -20
- package/components/Card/CardStatic.js +3 -3
- package/components/Card/components/CardContent/CardContent.js +2 -2
- package/components/Card/components/CardContent/components/CardContentBody.js +2 -2
- package/components/Card/components/CardContent/components/CardContentFooter.js +2 -2
- package/components/Card/components/CardContent/components/CardContentHeader.js +2 -2
- package/components/Card/components/CardMedia.js +2 -2
- package/components/Card/utils.js +1 -1
- package/components/CarouselExtended/CarouselExtended.js +48 -0
- package/components/CarouselExtended/index.js +5 -0
- package/components/Checkbox/Checkbox.js +45 -27
- package/components/Checkbox/CheckboxXGroup.js +11 -11
- package/components/Checkbox/CheckboxYGroup.js +4 -4
- package/components/Checkbox/index.js +4 -6
- package/components/CheckboxTree/CheckboxTree.js +39 -0
- package/components/CheckboxTree/index.js +5 -0
- package/components/CheckboxTree/types.js +2 -0
- package/components/CheckboxTree/utils.js +22 -0
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +14 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +53 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +40 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +50 -0
- package/components/CheckboxTreeExtended/index.js +5 -0
- package/components/CheckboxTreeExtended/isStaticCheckboxTreeExtended.js +5 -0
- package/components/Chip/Chip.js +11 -0
- package/components/Chip/ChipClearButton.js +20 -0
- package/components/Chip/ChipDatePicker/ChipDatePicker.js +91 -0
- package/components/Chip/ChipDatePicker/ChipDatePickerTarget.js +34 -0
- package/components/Chip/ChipDatePicker/index.js +7 -0
- package/components/Chip/ChipDropdownArrow.js +18 -0
- package/components/Chip/ChipIcon.js +9 -0
- package/components/Chip/ChipMultiselect.js +48 -0
- package/components/Chip/ChipOptions.js +27 -0
- package/components/Chip/ChipSelect/ChipSelect.js +51 -0
- package/components/Chip/ChipSelect/ChipSelectTarget.js +44 -0
- package/components/Chip/ChipSelect/index.js +7 -0
- package/components/Chip/ChipSort.js +55 -0
- package/components/Chip/ChipSuggest/ChipSuggest.js +21 -0
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +97 -0
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +44 -0
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +81 -0
- package/components/Chip/ChipSuggest/index.js +7 -0
- package/components/Chip/ChipSuggest/types.js +2 -0
- package/components/Chip/index.js +29 -0
- package/components/ChipGroup/ChipGroup.js +32 -0
- package/components/ChipGroup/index.js +5 -0
- package/components/Col/Col.js +141 -141
- package/components/CollapsableTree/CollapsableTree.js +10 -0
- package/components/CollapsableTree/components/CollapsableTreeNode.js +79 -0
- package/components/Confirm/Confirm.js +41 -0
- package/components/Confirm/components/ConfirmClose.js +13 -0
- package/components/Confirm/components/ConfirmCloseButton.js +27 -0
- package/components/Confirm/components/ConfirmContent.js +13 -0
- package/components/Confirm/components/ConfirmContentSubTitle.js +15 -0
- package/components/Confirm/components/ConfirmContentTitle.js +16 -0
- package/components/Confirm/components/ConfirmControls.js +9 -0
- package/components/Confirm/enums.js +5 -0
- package/components/Confirm/index.js +5 -0
- package/components/DateField/DateField.js +135 -0
- package/components/DateField/DateFieldContext.js +12 -0
- package/components/DateField/DateFieldTarget.js +60 -0
- package/components/DateField/constants.js +5 -0
- package/components/DateField/index.js +5 -0
- package/components/DateField/types.js +2 -0
- package/components/DateField/utils.js +23 -0
- package/components/DatePickerExtended/DatePickerExtended.js +136 -0
- package/components/DatePickerExtended/DatePickerExtendedContext.js +11 -0
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +60 -0
- package/components/DateRange/DateRange.js +73 -0
- package/components/DateRange/enums.js +5 -0
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/DesignTokensComponents.js +152 -73
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +154 -75
- package/components/DesignTokens/DesignTokensCore.js +1 -1
- package/components/DesignTokens/components/AmountField.js +11 -0
- package/components/DesignTokens/components/Button.js +27 -0
- package/components/DesignTokens/components/Calendar.js +109 -0
- package/components/DesignTokens/components/Card.js +26 -20
- package/components/DesignTokens/components/Checkbox.js +32 -14
- package/components/DesignTokens/components/Chip.js +59 -0
- package/components/DesignTokens/components/Divider.js +9 -0
- package/components/DesignTokens/components/Dropdown.js +1 -1
- package/components/DesignTokens/components/DropdownList.js +2 -2
- package/components/DesignTokens/components/DropdownMobile.js +4 -4
- package/components/DesignTokens/components/FooterPage.js +3 -3
- package/components/DesignTokens/components/FormField.js +24 -6
- package/components/DesignTokens/components/HeaderPage.js +4 -4
- package/components/DesignTokens/components/Island.js +26 -0
- package/components/DesignTokens/components/IslandAccordion.js +20 -0
- package/components/DesignTokens/components/IslandWidget.js +14 -0
- package/components/DesignTokens/components/LightBox.js +11 -0
- package/components/DesignTokens/components/ListItemControlsButton.js +20 -5
- package/components/DesignTokens/components/Loader.js +13 -7
- package/components/DesignTokens/components/LoaderScreen.js +17 -0
- package/components/DesignTokens/components/Marker.js +20 -0
- package/components/DesignTokens/components/MarkerStatus.js +9 -0
- package/components/DesignTokens/components/ModalWindow.js +11 -0
- package/components/DesignTokens/components/MultiselectField.js +9 -0
- package/components/DesignTokens/components/Notification.js +15 -0
- package/components/DesignTokens/components/Radio.js +22 -13
- package/components/DesignTokens/components/SMSField.js +26 -0
- package/components/DesignTokens/components/Slider.js +59 -0
- package/components/DesignTokens/components/SmallInput.js +15 -0
- package/components/DesignTokens/components/StatusTracker.js +35 -0
- package/components/DesignTokens/components/Step.js +44 -0
- package/components/DesignTokens/components/Stepper.js +71 -0
- package/components/DesignTokens/components/TableBasic.js +41 -0
- package/components/DesignTokens/components/Tabs.js +46 -16
- package/components/DesignTokens/components/TabsLine.js +20 -0
- package/components/DesignTokens/components/Tag.js +9 -0
- package/components/DesignTokens/components/TagColor.js +26 -0
- package/components/DesignTokens/components/TopOverlay.js +9 -0
- package/components/DesignTokens/components/UploadZone.js +1 -1
- package/components/DesignTokens/components/index.js +156 -87
- package/components/Divider/Divider.js +34 -0
- package/components/Divider/index.js +5 -0
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +64 -0
- package/components/DocumentNumberEdit/index.js +5 -0
- package/components/Dropdown/Dropdown.js +22 -7
- package/components/Dropdown/desktop/DropdownDesktop.js +95 -18
- package/components/Dropdown/desktop/DropdownList.js +78 -93
- package/components/Dropdown/desktop/DropdownListItem.js +4 -3
- package/components/Dropdown/desktop/index.js +9 -0
- package/components/Dropdown/index.js +34 -28
- package/components/Dropdown/mobile/DropdownMobile.js +5 -5
- package/components/Dropdown/mobile/DropdownMobileBody.js +8 -8
- package/components/Dropdown/mobile/DropdownMobileClose.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileFooter.js +7 -7
- package/components/Dropdown/mobile/DropdownMobileHeader.js +10 -10
- package/components/Dropdown/mobile/DropdownMobileInner.js +6 -6
- package/components/Dropdown/mobile/DropdownMobileInput.js +8 -7
- package/components/Dropdown/mobile/DropdownMobileList.js +26 -17
- package/components/Dropdown/mobile/DropdownMobileListItem.js +25 -25
- package/components/Dropdown/mobile/DropdownMobileLoader.js +20 -0
- package/components/Dropdown/mobile/DropdownMobileMaskedInput.js +11 -0
- package/components/Dropdown/mobile/index.js +5 -3
- package/components/Ellipsis/Ellipsis.js +27 -0
- package/components/Ellipsis/index.js +5 -0
- package/components/ExpandAnimation/ExpandAnimation.js +72 -0
- package/components/Footer/Footer.js +9 -20
- package/components/Footer/components/FooterDescription.js +4 -4
- package/components/Footer/components/FooterDescriptionContent.js +5 -5
- package/components/Footer/components/FooterDescriptionControls.js +6 -6
- package/components/FormField/FormField.js +50 -48
- package/components/FormField/FormFieldContext.js +9 -8
- package/components/FormField/components/FormFieldClear.js +21 -20
- package/components/FormField/components/FormFieldCounter.js +3 -3
- package/components/FormField/components/FormFieldDescription.js +6 -6
- package/components/FormField/components/FormFieldInput.js +5 -3
- package/components/FormField/components/FormFieldLabel.js +32 -31
- package/components/FormField/components/FormFieldMaskedInput.js +98 -92
- package/components/FormField/components/FormFieldPostfix.js +9 -9
- package/components/FormField/components/FormFieldPrefix.js +11 -11
- package/components/FormField/components/FormFieldTarget.js +50 -0
- package/components/FormField/components/FormFieldTextarea.js +36 -31
- package/components/FormField/enums.js +2 -2
- package/components/FormField/index.js +14 -12
- package/components/FormField/types.js +2 -0
- package/components/Gap/Gap.js +3 -3
- package/components/Header/Header.js +15 -27
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +8 -8
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +4 -4
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +3 -3
- package/components/Header/components/HeaderSubheader/HeaderSubheader.js +11 -11
- package/components/Header/components/HeaderTabs/HeaderTabs.js +7 -7
- package/components/Header/components/HeaderTabs/HeaderTabsContent.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsControls.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitle.js +6 -6
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +16 -8
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +15 -7
- package/components/HelpBox/HelpBox.js +94 -0
- package/components/HelpBox/index.js +5 -0
- package/components/Island/Island.js +33 -0
- package/components/Island/components/IslandBody.js +10 -0
- package/components/Island/components/IslandFooter.js +10 -0
- package/components/Island/components/IslandHeader.js +10 -0
- package/components/Island/components/index.js +9 -0
- package/components/Island/enums.js +5 -0
- package/components/Island/index.js +13 -0
- package/components/Island/utils.js +6 -0
- package/components/IslandAccordion/IslandAccordion.js +31 -0
- package/components/IslandAccordion/IslandAccordionContext.js +16 -0
- package/components/IslandAccordion/components/IslandAccordionContent.js +12 -0
- package/components/IslandAccordion/components/IslandAccordionFooter.js +16 -0
- package/components/IslandAccordion/components/IslandAccordionItem.js +122 -0
- package/components/IslandAccordion/components/IslandAccordionTitle.js +21 -0
- package/components/IslandAccordion/components/index.js +11 -0
- package/components/IslandAccordion/index.js +13 -0
- package/components/IslandWidget/IslandWidget.js +51 -0
- package/components/IslandWidget/IslandWidgetContext.js +10 -0
- package/components/IslandWidget/components/IslandWidgetBody.js +7 -0
- package/components/IslandWidget/components/IslandWidgetExtraFooter.js +23 -0
- package/components/IslandWidget/components/IslandWidgetFooter.js +13 -0
- package/components/IslandWidget/components/IslandWidgetFooterContent.js +11 -0
- package/components/IslandWidget/components/IslandWidgetFooterControls.js +11 -0
- package/components/IslandWidget/components/IslandWidgetHeader.js +13 -0
- package/components/IslandWidget/components/IslandWidgetHeaderContent.js +13 -0
- package/components/IslandWidget/components/IslandWidgetHeaderDescription.js +13 -0
- package/components/IslandWidget/components/IslandWidgetWrapper.js +17 -0
- package/components/IslandWidget/components/index.js +15 -0
- package/components/IslandWidget/index.js +17 -0
- package/components/KeyDownListener/ComposedKeyDownListener.js +13 -0
- package/components/KeyDownListener/KeyDownListener.js +27 -0
- package/components/KeyDownListener/index.js +7 -0
- package/components/LightBox/LightBox.js +112 -0
- package/components/LightBox/LightBoxContent.js +10 -0
- package/components/LightBox/LightBoxControls/LightBoxClose.js +53 -0
- package/components/LightBox/LightBoxControls/LightBoxControls.js +15 -0
- package/components/LightBox/LightBoxControls/LightBoxNext.js +58 -0
- package/components/LightBox/LightBoxControls/LightBoxPrev.js +58 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlay.js +103 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +35 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +27 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +21 -0
- package/components/LightBox/LightBoxSideOverlay/enums.js +5 -0
- package/components/LightBox/LightBoxSideOverlay/index.js +7 -0
- package/components/LightBox/LightBoxSidebars/LightBoxLeftSidebar.js +15 -0
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js +15 -0
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +63 -0
- package/components/LightBox/LightBoxViewManager/LightBoxViewManagerConsts.js +28 -0
- package/components/LightBox/index.js +11 -0
- package/components/Link/Link.js +25 -25
- package/components/List/List.js +12 -20
- package/components/List/ListSortable.js +3 -3
- package/components/List/components/ListEmptyState.js +7 -7
- package/components/List/components/ListItem.js +6 -15
- package/components/List/components/ListItemContent.js +9 -9
- package/components/List/components/ListItemControls.js +6 -6
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +103 -15
- package/components/List/components/ListItemLoading.js +9 -7
- package/components/List/components/ListItemSelectable.js +9 -9
- package/components/List/components/ListItemTable.js +29 -19
- package/components/List/components/ListItemTailLeft.js +6 -6
- package/components/List/components/ListItemTailRight.js +5 -5
- package/components/List/components/ListSortableItem.js +37 -18
- package/components/List/components/ListSortableItemControls.js +2 -2
- package/components/List/components/ListSortableItemTarget.js +8 -8
- package/components/List/index.js +22 -20
- package/components/ListMaster/ListMaster.js +1 -1
- package/components/ListMaster/components/ListMasterBody.js +10 -10
- package/components/ListMaster/components/ListMasterChipGroup.js +6 -6
- package/components/ListMaster/components/ListMasterFooter.js +6 -6
- package/components/ListMaster/components/ListMasterFooterControls.js +3 -3
- package/components/ListMaster/components/ListMasterFooterDescription.js +3 -3
- package/components/ListMaster/components/ListMasterHeader.js +8 -8
- package/components/ListMaster/components/SelectionControls.js +10 -10
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +19 -18
- package/components/Loader/LoaderSmall/LoaderSmall.js +25 -36
- package/components/LoaderScreen/LoaderScreen.js +28 -0
- package/components/LoaderScreen/index.js +5 -0
- package/components/Marker/Marker.js +20 -0
- package/components/Marker/enums.js +5 -0
- package/components/Marker/index.js +7 -0
- package/components/Marker/utils.js +6 -0
- package/components/MarkerStatus/MarkerStatus.js +40 -0
- package/components/MarkerStatus/index.js +5 -0
- package/components/ModalWindow/ModalWindow.js +99 -0
- package/components/ModalWindow/components/ModalWindowBody.js +21 -0
- package/components/ModalWindow/components/ModalWindowClose.js +29 -0
- package/components/ModalWindow/components/ModalWindowContent.js +19 -0
- package/components/ModalWindow/components/ModalWindowFooter.js +10 -0
- package/components/ModalWindow/components/ModalWindowHeader.js +13 -0
- package/components/ModalWindow/components/ModalWindowViewManager.js +45 -0
- package/components/ModalWindow/index.js +17 -0
- package/components/MonthYearField/MonthYearField.js +66 -0
- package/components/MonthYearField/MonthYearFieldContext.js +9 -0
- package/components/MonthYearField/MonthYearFieldTarget.js +59 -0
- package/components/MonthYearField/constants.js +5 -0
- package/components/MonthYearField/index.js +5 -0
- package/components/MonthYearField/types.js +2 -0
- package/components/MonthYearField/utils.js +22 -0
- package/components/MultiselectField/MultiselectField.js +22 -0
- package/components/MultiselectField/MultiselectFieldContext.js +10 -0
- package/components/MultiselectField/components/MultiselectFieldDropdown.js +65 -0
- package/components/MultiselectField/components/MultiselectFieldDropdownContent.js +23 -0
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +13 -0
- package/components/MultiselectField/components/MultiselectFieldDropdownHeader.js +13 -0
- package/components/MultiselectField/components/index.js +11 -0
- package/components/MultiselectField/index.js +5 -0
- package/components/Notification/Notification.js +40 -0
- package/components/Notification/NotificationGrouped.js +12 -0
- package/components/Notification/components/NotificationBody.js +19 -0
- package/components/Notification/components/NotificationBodyContent.js +8 -0
- package/components/Notification/components/NotificationBodyList.js +11 -0
- package/components/Notification/components/NotificationClose.js +14 -0
- package/components/Notification/components/NotificationFooter.js +8 -0
- package/components/Notification/components/NotificationGroupedFooter.js +11 -0
- package/components/Notification/components/NotificationHeader.js +8 -0
- package/components/Notification/components/NotificationIcon.js +8 -0
- package/components/Notification/components/NotificationTime.js +8 -0
- package/components/Notification/index.js +7 -0
- package/components/NotificationIcon/NotificationIcon.js +10 -0
- package/components/NotificationIcon/index.js +5 -0
- package/components/NumberField/NumberField.js +8 -0
- package/components/NumberField/NumberFieldInput.js +38 -0
- package/components/NumberField/index.js +5 -0
- package/components/NumberField/types.js +2 -0
- package/components/OrderedList/OrderedList.js +25 -0
- package/components/OrderedList/OrderedListItem.js +27 -0
- package/components/OrderedList/index.js +7 -0
- package/components/OrderedList/types.js +2 -0
- package/components/Overlay/Overlay.js +2 -2
- package/components/Overlay/OverlayMask.js +7 -7
- package/components/Overlay/OverlayPanel.js +14 -14
- package/components/Page/Page.js +12 -12
- package/components/Page/components/BodyPage.js +22 -8
- package/components/Page/components/FooterPage.js +36 -33
- package/components/Page/components/HeaderPage.js +22 -31
- package/components/Page/components/enums.js +5 -3
- package/components/Page/components/useStickyCornerRadius.js +44 -0
- package/components/Page/index.js +7 -5
- package/components/Pagination/Pagination.js +6 -6
- package/components/Pagination/components/PaginationExtended.js +8 -8
- package/components/Pagination/components/PaginationNavigation.js +14 -14
- package/components/Pagination/components/PaginationNavigationButton.js +6 -6
- package/components/Pagination/components/PaginationNavigationExtended.js +3 -3
- package/components/Pagination/components/PaginationNavigationExtendedItem.js +1 -1
- package/components/Pagination/components/PaginationPageButton.js +3 -2
- package/components/Pagination/components/PaginationPageEllipsis.js +3 -3
- package/components/Pagination/components/PaginationSelect.js +16 -16
- package/components/Pagination/utils/paginationUtils.js +12 -12
- package/components/Radio/Radio.js +32 -22
- package/components/Radio/RadioXGroup.js +10 -10
- package/components/Radio/RadioYGroup.js +9 -9
- package/components/Radio/index.js +4 -6
- package/components/Row/Row.js +7 -7
- package/components/SMSField/SMSField.js +41 -0
- package/components/SMSField/SMSFieldContext.js +23 -0
- package/components/SMSField/components/RefreshIcon.js +35 -0
- package/components/SMSField/components/SMSFieldInput.js +63 -0
- package/components/SMSField/components/SMSFieldRefresh.js +39 -0
- package/components/SMSField/components/SMSFieldSubmit.js +43 -0
- package/components/SMSField/components/SMSFieldTooltip.js +38 -0
- package/components/SMSField/components/SubmitIcon.js +19 -0
- package/components/SMSField/index.js +5 -0
- package/components/SMSField/types.js +2 -0
- package/components/SegmentedControl/SegmentedControl.js +61 -7
- package/components/SegmentedControl/SegmentedControlContext.js +13 -0
- package/components/SegmentedControl/SegmentedControlSegment.js +68 -8
- package/components/SegmentedControl/index.js +6 -6
- package/components/SelectExtendedField/SelectExtendedField.js +63 -0
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +28 -0
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js +84 -0
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +116 -0
- package/components/SelectExtendedField/index.js +9 -0
- package/components/SelectField/SelectField.js +62 -0
- package/components/SelectField/index.js +5 -0
- package/components/Skeleton/Skeleton.js +10 -10
- package/components/Slider/Slider.js +20 -0
- package/components/Slider/index.js +5 -0
- package/components/SliderExtended/SliderExtended.js +102 -0
- package/components/SliderExtended/SliderExtendedContext.js +30 -0
- package/components/SliderExtended/SliderExtendedUtils.js +32 -0
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js +158 -0
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDotActions.js +12 -0
- package/components/SliderExtended/components/SliderExtendedDot/useSliderExtendedDotTabIndex.js +21 -0
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMark.js +48 -0
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarkActions.js +27 -0
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarks.js +9 -0
- package/components/SliderExtended/components/SliderExtendedMoveHandler.js +25 -0
- package/components/SliderExtended/components/SliderExtendedRail.js +10 -0
- package/components/SliderExtended/components/SliderExtendedTooltip/SliderExtendedTooltip.js +39 -0
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +147 -0
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrackActions.js +36 -0
- package/components/SliderExtended/index.js +5 -0
- package/components/SliderRange/SliderRange.js +63 -0
- package/components/SliderRange/index.js +5 -0
- package/components/SmallInput/SmallInput.js +11 -0
- package/components/SmallInput/index.js +5 -0
- package/components/Spoiler/Spoiler.js +75 -0
- package/components/Spoiler/index.js +5 -0
- package/components/StatusTracker/StatusTracker.js +45 -0
- package/components/StatusTracker/components/StatusTrackerAlert.js +18 -0
- package/components/StatusTracker/components/StatusTrackerBody.js +20 -0
- package/components/StatusTracker/components/StatusTrackerButton.js +16 -0
- package/components/StatusTracker/components/StatusTrackerDescription.js +24 -0
- package/components/StatusTracker/components/StatusTrackerFooter.js +28 -0
- package/components/StatusTracker/components/StatusTrackerHeader.js +22 -0
- package/components/StatusTracker/components/StatusTrackerMedia.js +11 -0
- package/components/StatusTracker/components/StatusTrackerStatus.js +12 -0
- package/components/StatusTracker/components/StatusTrackerSum.js +25 -0
- package/components/StatusTracker/components/StatusTrackerTitle.js +24 -0
- package/components/StatusTracker/enums.js +6 -0
- package/components/StatusTracker/index.js +8 -0
- package/components/Step/Step.js +49 -0
- package/components/Step/enums.js +6 -0
- package/components/Step/index.js +9 -0
- package/components/Stepper/RightBorderArrow.js +7 -0
- package/components/Stepper/Stepper.js +103 -0
- package/components/Stepper/StepperExtended.js +26 -0
- package/components/Stepper/StepperExtendedContext.js +12 -0
- package/components/Stepper/StepperStep.js +88 -0
- package/components/Stepper/StepperStepIcon.js +23 -0
- package/components/Stepper/StepperWrapper.js +12 -0
- package/components/Stepper/enums.js +7 -0
- package/components/Stepper/index.js +11 -0
- package/components/Suggest/Suggest.js +100 -0
- package/components/Suggest/SuggestContext.js +29 -0
- package/components/Suggest/SuggestMobileDropdownContent.js +102 -0
- package/components/Suggest/index.js +8 -0
- package/components/Suggest/types.js +2 -0
- package/components/SuggestField/SuggestField.js +63 -0
- package/components/SuggestField/SuggestFieldTarget.js +70 -0
- package/components/SuggestField/SuggestFieldTargetPostfix.js +28 -0
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +197 -0
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +76 -0
- package/components/SuggestField/desktop/index.js +7 -0
- package/components/SuggestField/desktop/types.js +2 -0
- package/components/SuggestField/index.js +17 -0
- package/components/SuggestField/mobile/SuggestFieldMobile.js +80 -0
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +100 -0
- package/components/SuggestField/mobile/SuggestFieldMobileDropdownHint.js +10 -0
- package/components/SuggestField/mobile/SuggestFieldMobileTarget.js +30 -0
- package/components/SuggestField/mobile/index.js +11 -0
- package/components/SuggestField/mobile/types.js +2 -0
- package/components/SuggestField/types.js +2 -0
- package/components/SwipeableArea/SwipeableArea.js +21 -21
- package/components/Table/FilterPanel.js +18 -0
- package/components/Table/MasterTable.js +49 -0
- package/components/Table/MasterTableContext.js +11 -0
- package/components/Table/NoColumns.js +17 -0
- package/components/Table/PaginationPanel.js +18 -0
- package/components/Table/TableBasic/TableBasic.js +52 -0
- package/components/Table/TableBasic/components/TableBasicBody.js +18 -0
- package/components/Table/TableBasic/components/TableBasicHeader.js +84 -0
- package/components/Table/TableBasic/components/TableBasicRow.js +50 -0
- package/components/Table/TableBasic/enums.js +8 -0
- package/components/Table/TableBasic/types.js +2 -0
- package/components/Table/TableBasicSettings/TableBasicSettings.js +56 -0
- package/components/Table/TableBasicSettings/components/ColumnSettings.js +20 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableList.js +24 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItem.js +25 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +29 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticList.js +17 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +14 -0
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +13 -0
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +13 -0
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +26 -0
- package/components/Table/TableFooter/TableFooter.js +17 -0
- package/components/Table/TableFooter/components/TableFooterSummary.js +19 -0
- package/components/Table/TableFooter/components/TableFooterSummaryAmount.js +18 -0
- package/components/Table/TableFooter/components/TableFooterSummarySelectAllButton.js +20 -0
- package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +8 -0
- package/components/Table/TabsLinePanel.js +12 -0
- package/components/Table/TabsLinePanelLinks.js +26 -0
- package/components/Table/index.js +26 -0
- package/components/Table/utils.js +8 -0
- package/components/Tabs/Tabs.js +76 -0
- package/components/Tabs/index.js +5 -0
- package/components/TabsExtended/TabsExtended.js +37 -21
- package/components/TabsExtended/TabsExtendedContext.js +6 -4
- package/components/TabsExtended/components/TabsExtendedContent.js +20 -16
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTab.js +15 -15
- package/components/TabsExtended/components/TabsExtendedTabButton.js +22 -16
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +6 -6
- package/components/TabsExtended/components/index.js +15 -0
- package/components/TabsExtended/enums.js +2 -2
- package/components/TabsExtended/index.js +15 -3
- package/components/TabsExtended/types.js +2 -0
- package/components/TabsExtended/utils.js +9 -0
- package/components/TabsLine/TabsLine.js +49 -0
- package/components/TabsLine/components/TabsLineDesktop.js +81 -0
- package/components/TabsLine/components/TabsLineDropdown.js +173 -0
- package/components/TabsLine/components/TabsLineItem.js +60 -0
- package/components/TabsLine/components/TabsLineMobile.js +21 -0
- package/components/TabsLine/components/index.js +11 -0
- package/components/TabsLine/index.js +13 -0
- package/components/TabsLine/types.js +2 -0
- package/components/TabsLine/utils.js +11 -0
- package/components/Tag/Tag.js +70 -0
- package/components/Tag/index.js +5 -0
- package/components/Tag/types.js +2 -0
- package/components/TagColor/TagColor.js +36 -0
- package/components/TagColor/enums.js +5 -0
- package/components/TagColor/index.js +5 -0
- package/components/TagColor/types.js +2 -0
- package/components/TagGroup/TagGroup.js +25 -0
- package/components/TagGroup/index.js +5 -0
- package/components/TagGroup/types.js +2 -0
- package/components/TextField/MaskedField.js +6 -89
- package/components/TextField/TextField.js +6 -89
- package/components/TextField/TextFieldBase.js +30 -89
- package/components/TextField/index.js +4 -3
- package/components/TextareaField/TextareaField.js +18 -0
- package/components/TextareaField/index.js +5 -0
- package/components/TextareaField/types.js +2 -0
- package/components/ThemeProvider/ThemeProvider.js +10 -10
- package/components/ThemeProvider/ThemeProviderContext.js +2 -2
- package/components/ThemeProvider/components/ThemeProviderView.js +5 -5
- package/components/Tooltip/Tooltip.js +11 -11
- package/components/Tooltip/components/common/TooltipBody.js +9 -9
- package/components/Tooltip/components/common/TooltipLink.js +15 -15
- package/components/Tooltip/components/common/TooltipTarget.js +9 -9
- package/components/Tooltip/components/common/TooltipXButton.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +5 -5
- package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +8 -8
- package/components/Tooltip/components/mobile/TooltipMobile.js +6 -6
- package/components/Tooltip/components/mobile/components/TooltipMobileHeader.js +9 -11
- package/components/TopOverlay/TopOverlay.js +85 -0
- package/components/TopOverlay/index.js +5 -0
- package/components/TreeView/TreeView.js +89 -0
- package/components/TreeView/TreeViewAbstractNode.js +38 -0
- package/components/TreeView/TreeViewAbstractNodeUtils.js +112 -0
- package/components/TreeView/TreeViewContext.js +30 -0
- package/components/TreeView/components/TreeViewGroup.js +7 -0
- package/components/TreeView/components/TreeViewNode.js +82 -0
- package/components/Triggers/TriggerClickOnKeyDownEvent.js +15 -0
- package/components/Typography/Caption.js +16 -16
- package/components/Typography/Text.js +33 -33
- package/components/Typography/Title.js +25 -25
- package/components/Typography/index.js +15 -13
- package/components/Typography/utils.js +1 -1
- package/components/UnorderedList/UnorderedList.js +25 -0
- package/components/UnorderedList/UnorderedListItem.js +27 -0
- package/components/UnorderedList/index.js +7 -0
- package/components/UnorderedList/types.js +2 -0
- package/components/UploadZone/UploadZone.js +110 -7
- package/components/UploadZone/UploadZoneContext.js +11 -0
- package/components/UploadZone/components/UploadZoneInput.js +5 -140
- package/components/UploadZone/index.js +2 -3
- package/components/UploadZone/types.js +2 -0
- package/components/WindowResizeListener/WindowResizeListener.js +19 -0
- package/components/index.js +573 -252
- package/consts/AmountConst.js +10 -0
- package/consts/DataTestId.js +19 -0
- package/consts/DateConst.js +14 -0
- package/consts/index.js +14 -0
- package/enums/EComponentSize.js +5 -0
- package/enums/index.js +7 -0
- package/helpers/less/z-indexes.less +9 -4
- package/index.d.ts +4354 -2780
- package/index.js +597 -250
- package/package.json +214 -9
- package/styles/triplex-next.css +535 -333
- package/types/CoreTypes.js +2 -0
- package/types/DateTypes.js +2 -0
- package/utils/amountUtils.js +34 -0
- package/utils/classNameMaps.js +10 -0
- package/utils/focus/FocusTrapUtils.js +11 -0
- package/utils/html/AriaAttributes.js +11 -0
- package/utils/html/DataAttributes.js +11 -0
- package/utils/index.js +30 -0
- package/utils/inputUtils.js +11 -0
- package/utils/isNullOrUndefined.js +5 -0
- package/utils/scroll/scrollbar.js +14 -0
- package/utils/scroll.js +13 -0
- package/utils/stringUtils.js +13 -0
- package/chunks/AlertProcessSpoiler-COu9EiLo.js +0 -39
- package/chunks/Card.module-C1gfsiyU.js +0 -17
- package/chunks/DropdownListItem-iil7gCyc.js +0 -56
- package/chunks/DropdownMobile.module-DlpnKNwL.js +0 -19
- package/chunks/Footer.module-CqUuM-TN.js +0 -11
- package/chunks/FormFieldInput-Ki1-hI2O.js +0 -62
- package/chunks/HeaderLayoutSidebar.module-BnYpSWmI.js +0 -9
- package/chunks/HeaderTabs.module-IVowc7y2.js +0 -9
- package/chunks/HeaderTitle.module-Cja2peF4.js +0 -9
- package/chunks/ListItemControlsButton-C5HBHV5H.js +0 -43
- package/chunks/ListItemTail.module-DGc45Gzs.js +0 -12
- package/chunks/ListMasterFooter.module-CEzWKTX8.js +0 -10
- package/chunks/Overlay.module-Q2gyaG66.js +0 -18
- package/chunks/Page.module-DxiWg_8o.js +0 -16
- package/chunks/TabsExtended.module-BF_E00U4.js +0 -13
- package/chunks/TabsExtendedUtils-CfV3lgH0.js +0 -23
- package/chunks/TooltipDesktop.module-C9Nuoxhf.js +0 -19
- package/chunks/index-Cn4S9Yzd.js +0 -931
- package/chunks/vendor-CF2m175I.js +0 -5891
- package/components/Checkbox/enum.js +0 -5
- package/components/DesignTokens/components/LoaderWidget.js +0 -17
- package/components/DesignTokens/components/Page.js +0 -9
- package/components/LoaderWidget/LoaderWidget.js +0 -28
- package/components/LoaderWidget/index.js +0 -5
- package/components/Radio/enum.js +0 -5
- package/components/TabsExtended/TabsExtendedUtils.js +0 -8
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { jsx as t, jsxs as c, Fragment as m } from "react/jsx-runtime";
|
|
2
|
+
import y, { useState as H, useRef as p, useEffect as V } from "react";
|
|
3
|
+
import { Dropdown as j } from "../../Dropdown/Dropdown.js";
|
|
4
|
+
import "../../Dropdown/DropdownListContext.js";
|
|
5
|
+
import "../../Dropdown/desktop/DropdownDesktop.js";
|
|
6
|
+
import "../../Dropdown/desktop/DropdownList.js";
|
|
7
|
+
import "../../../chunks/DropdownListItem-lbLsbKwC.js";
|
|
8
|
+
import "../../Dropdown/mobile/DropdownMobile.js";
|
|
9
|
+
import { DropdownMobileBody as k } from "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
10
|
+
import { DropdownMobileClose as N } from "../../Dropdown/mobile/DropdownMobileClose.js";
|
|
11
|
+
import "../../Dropdown/mobile/DropdownMobileFooter.js";
|
|
12
|
+
import { DropdownMobileHeader as O } from "../../Dropdown/mobile/DropdownMobileHeader.js";
|
|
13
|
+
import "../../Dropdown/mobile/DropdownMobileInner.js";
|
|
14
|
+
import { DropdownMobileInput as P } from "../../Dropdown/mobile/DropdownMobileInput.js";
|
|
15
|
+
import { DropdownMobileList as T } from "../../Dropdown/mobile/DropdownMobileList.js";
|
|
16
|
+
import { DropdownMobileListItem as q } from "../../Dropdown/mobile/DropdownMobileListItem.js";
|
|
17
|
+
import { DropdownMobileLoader as z } from "../../Dropdown/mobile/DropdownMobileLoader.js";
|
|
18
|
+
import { s as A, S as E } from "../../../chunks/SuggestFieldMobileDropdownHint-Ciw5Nm9X.js";
|
|
19
|
+
const G = ({
|
|
20
|
+
value: o,
|
|
21
|
+
options: f,
|
|
22
|
+
placeholder: h,
|
|
23
|
+
dropdownHint: l,
|
|
24
|
+
opened: g,
|
|
25
|
+
loading: b,
|
|
26
|
+
dropdownListLoading: a,
|
|
27
|
+
clearInputOnFocus: w,
|
|
28
|
+
setOpened: n,
|
|
29
|
+
onSelect: s,
|
|
30
|
+
onFilter: D,
|
|
31
|
+
onScrollEnd: d
|
|
32
|
+
}, M) => {
|
|
33
|
+
const [F, e] = H((o == null ? void 0 : o.label) || ""), C = p(null), u = p(null);
|
|
34
|
+
V(() => {
|
|
35
|
+
e((o == null ? void 0 : o.label) || "");
|
|
36
|
+
}, [o]);
|
|
37
|
+
const I = () => {
|
|
38
|
+
e(w === !1 && (o == null ? void 0 : o.label) || "");
|
|
39
|
+
}, R = (r) => {
|
|
40
|
+
const { value: i } = r.target;
|
|
41
|
+
e(i), D(i);
|
|
42
|
+
}, S = () => {
|
|
43
|
+
n(!1), s(o);
|
|
44
|
+
}, B = (r) => {
|
|
45
|
+
if (!d)
|
|
46
|
+
return;
|
|
47
|
+
const { clientHeight: i, scrollHeight: L, scrollTop: x } = r.target;
|
|
48
|
+
L - x === i && d();
|
|
49
|
+
};
|
|
50
|
+
return /* @__PURE__ */ t(
|
|
51
|
+
j,
|
|
52
|
+
{
|
|
53
|
+
setOpened: (r) => {
|
|
54
|
+
n(r), r || s(o);
|
|
55
|
+
},
|
|
56
|
+
opened: g,
|
|
57
|
+
targetRef: u,
|
|
58
|
+
ref: M,
|
|
59
|
+
mobileViewProps: {
|
|
60
|
+
children: /* @__PURE__ */ c(m, { children: [
|
|
61
|
+
/* @__PURE__ */ t(
|
|
62
|
+
O,
|
|
63
|
+
{
|
|
64
|
+
controlButtons: /* @__PURE__ */ c(m, { children: [
|
|
65
|
+
b && /* @__PURE__ */ t(z, {}),
|
|
66
|
+
/* @__PURE__ */ t(N, { onClick: S })
|
|
67
|
+
] }),
|
|
68
|
+
children: /* @__PURE__ */ t(
|
|
69
|
+
P,
|
|
70
|
+
{
|
|
71
|
+
value: F,
|
|
72
|
+
placeholder: h,
|
|
73
|
+
autoFocus: !0,
|
|
74
|
+
onFocus: I,
|
|
75
|
+
onChange: R
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ t(k, { className: A.suggestFieldMobileBody, onScroll: B, children: l ? /* @__PURE__ */ t(E, { children: l }) : /* @__PURE__ */ t(T, { loading: a, ref: C, children: f.map((r) => /* @__PURE__ */ t(
|
|
81
|
+
q,
|
|
82
|
+
{
|
|
83
|
+
id: r.id,
|
|
84
|
+
selected: r.id === (o == null ? void 0 : o.id),
|
|
85
|
+
onSelect: () => {
|
|
86
|
+
s(r), n(!1);
|
|
87
|
+
},
|
|
88
|
+
children: r.content || r.label
|
|
89
|
+
},
|
|
90
|
+
r.id
|
|
91
|
+
)) }) })
|
|
92
|
+
] })
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
}, co = y.forwardRef(G);
|
|
97
|
+
export {
|
|
98
|
+
co as SuggestFieldMobileDropdown
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=SuggestFieldMobileDropdown.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "../../Typography/Title.js";
|
|
3
|
+
import "../../Typography/Text.js";
|
|
4
|
+
import "../../Typography/Caption.js";
|
|
5
|
+
import "../../Typography/enums.js";
|
|
6
|
+
import { S as d } from "../../../chunks/SuggestFieldMobileDropdownHint-Ciw5Nm9X.js";
|
|
7
|
+
export {
|
|
8
|
+
d as SuggestFieldMobileDropdownHint
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=SuggestFieldMobileDropdownHint.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as s } from "react";
|
|
3
|
+
import { SuggestFieldTarget as e } from "../SuggestFieldTarget.js";
|
|
4
|
+
const c = ({
|
|
5
|
+
inputValue: o,
|
|
6
|
+
placeholder: l,
|
|
7
|
+
renderInput: t,
|
|
8
|
+
...n
|
|
9
|
+
}) => {
|
|
10
|
+
const u = s(
|
|
11
|
+
(a) => {
|
|
12
|
+
const i = t === void 0 ? e.Input : t;
|
|
13
|
+
return /* @__PURE__ */ r(i, { ...a, readOnly: !0 });
|
|
14
|
+
},
|
|
15
|
+
[t]
|
|
16
|
+
);
|
|
17
|
+
return /* @__PURE__ */ r(
|
|
18
|
+
e,
|
|
19
|
+
{
|
|
20
|
+
inputValue: o,
|
|
21
|
+
placeholder: l,
|
|
22
|
+
renderInput: u,
|
|
23
|
+
...n
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
c as SuggestFieldMobileTarget
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=SuggestFieldMobileTarget.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SuggestFieldMobile as r } from "./SuggestFieldMobile.js";
|
|
2
|
+
import { SuggestFieldMobileDropdown as g } from "./SuggestFieldMobileDropdown.js";
|
|
3
|
+
import { S as l } from "../../../chunks/SuggestFieldMobileDropdownHint-Ciw5Nm9X.js";
|
|
4
|
+
import { SuggestFieldMobileTarget as p } from "./SuggestFieldMobileTarget.js";
|
|
5
|
+
export {
|
|
6
|
+
r as SuggestFieldMobile,
|
|
7
|
+
g as SuggestFieldMobileDropdown,
|
|
8
|
+
l as SuggestFieldMobileDropdownHint,
|
|
9
|
+
p as SuggestFieldMobileTarget
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as j, jsx as
|
|
2
|
-
import z, { useState as
|
|
3
|
-
import { c as g } from "../../chunks/vendor-
|
|
4
|
-
const H = "
|
|
1
|
+
import { jsxs as j, jsx as A } from "react/jsx-runtime";
|
|
2
|
+
import z, { useState as _, useRef as u, useEffect as M, useImperativeHandle as W } from "react";
|
|
3
|
+
import { c as g } from "../../chunks/vendor-BlJo2ILB.js";
|
|
4
|
+
const H = "swipeableArea__f2c21b47", V = "content__7d32a6e2", $ = "disableScroll__e2e4e668", k = "disablePointerEvents__644e93fb", q = "swipeAnimationFinish__5a593f58", G = "leftContent__153cc4fa", J = "rightContent__015adead", s = {
|
|
5
5
|
swipeableArea: H,
|
|
6
6
|
content: V,
|
|
7
7
|
disableScroll: $,
|
|
@@ -9,9 +9,9 @@ const H = "swipeableArea__87d66005", V = "content__b23eb94f", $ = "disableScroll
|
|
|
9
9
|
swipeAnimationFinish: q,
|
|
10
10
|
leftContent: G,
|
|
11
11
|
rightContent: J
|
|
12
|
-
}, p = 24,
|
|
12
|
+
}, p = 24, E = s.swipeAnimationFinish, K = s.disableScroll, Q = s.disablePointerEvents, N = { clientX: 0, clientY: 0 }, U = z.forwardRef(
|
|
13
13
|
({ children: L, className: I, leftSwipeableArea: m, rightSwipeableArea: C, ...y }, B) => {
|
|
14
|
-
const [S, a] =
|
|
14
|
+
const [S, a] = _(!1), [l, d] = _(), [o, e] = _(0), i = u(null), r = u(null), n = u(0), h = u(N), w = u(null), X = () => {
|
|
15
15
|
a(!0);
|
|
16
16
|
const t = n.current - o;
|
|
17
17
|
n.current === 0 ? t > 0 ? e(
|
|
@@ -23,14 +23,14 @@ const H = "swipeableArea__87d66005", V = "content__b23eb94f", $ = "disableScroll
|
|
|
23
23
|
) : n.current < 0 && t < 0 && e(
|
|
24
24
|
Math.abs(t) > p ? 0 : -r.current.getBoundingClientRect().width
|
|
25
25
|
);
|
|
26
|
-
},
|
|
27
|
-
h.current = N, d(void 0), document.removeEventListener("touchend",
|
|
26
|
+
}, R = () => {
|
|
27
|
+
h.current = N, d(void 0), document.removeEventListener("touchend", R);
|
|
28
28
|
};
|
|
29
29
|
M(() => {
|
|
30
30
|
!l && o !== n.current && X();
|
|
31
31
|
}, [l]);
|
|
32
32
|
const x = (t) => {
|
|
33
|
-
h.current = { clientX: t.touches[0].clientX, clientY: t.touches[0].clientY }, n.current = o, document.addEventListener("touchend",
|
|
33
|
+
h.current = { clientX: t.touches[0].clientX, clientY: t.touches[0].clientY }, n.current = o, document.addEventListener("touchend", R);
|
|
34
34
|
}, O = (t) => {
|
|
35
35
|
if (t.touches.length != 1)
|
|
36
36
|
return;
|
|
@@ -56,11 +56,11 @@ const H = "swipeableArea__87d66005", V = "content__b23eb94f", $ = "disableScroll
|
|
|
56
56
|
}, D = () => a(!1), P = () => r.current ? Math.abs(o) / r.current.getBoundingClientRect().width : 1, Y = () => i.current ? Math.abs(o) / i.current.getBoundingClientRect().width : 1;
|
|
57
57
|
M(() => {
|
|
58
58
|
const t = (c) => {
|
|
59
|
-
c.touches.length == 1 &&
|
|
59
|
+
c.touches.length == 1 && w.current && !w.current.contains(c.target) && (a(!0), e(0), d(void 0));
|
|
60
60
|
};
|
|
61
61
|
return document.addEventListener("touchstart", t), () => document.removeEventListener("touchstart", t);
|
|
62
62
|
}, []);
|
|
63
|
-
const
|
|
63
|
+
const b = () => {
|
|
64
64
|
i.current && (a(!0), e(i.current.getBoundingClientRect().width));
|
|
65
65
|
}, T = () => {
|
|
66
66
|
r.current && (a(!0), e(-r.current.getBoundingClientRect().width));
|
|
@@ -77,47 +77,47 @@ const H = "swipeableArea__87d66005", V = "content__b23eb94f", $ = "disableScroll
|
|
|
77
77
|
T();
|
|
78
78
|
},
|
|
79
79
|
swipeRight: () => {
|
|
80
|
-
|
|
80
|
+
b();
|
|
81
81
|
}
|
|
82
82
|
}),
|
|
83
|
-
[v, T,
|
|
83
|
+
[v, T, b]
|
|
84
84
|
), /* @__PURE__ */ j(
|
|
85
85
|
"div",
|
|
86
86
|
{
|
|
87
87
|
className: g(s.swipeableArea, I),
|
|
88
88
|
...y,
|
|
89
|
-
"data-tx": "0.
|
|
90
|
-
ref:
|
|
89
|
+
"data-tx": "0.10.0",
|
|
90
|
+
ref: w,
|
|
91
91
|
children: [
|
|
92
|
-
typeof m < "u" ? /* @__PURE__ */
|
|
92
|
+
typeof m < "u" ? /* @__PURE__ */ A(
|
|
93
93
|
"div",
|
|
94
94
|
{
|
|
95
95
|
className: g(s.leftContent, {
|
|
96
|
-
[
|
|
96
|
+
[E]: S
|
|
97
97
|
}),
|
|
98
98
|
ref: i,
|
|
99
99
|
style: { opacity: Y() },
|
|
100
100
|
children: m
|
|
101
101
|
}
|
|
102
102
|
) : null,
|
|
103
|
-
typeof C < "u" ? /* @__PURE__ */
|
|
103
|
+
typeof C < "u" ? /* @__PURE__ */ A(
|
|
104
104
|
"div",
|
|
105
105
|
{
|
|
106
106
|
className: g(s.rightContent, {
|
|
107
|
-
[
|
|
107
|
+
[E]: S
|
|
108
108
|
}),
|
|
109
109
|
ref: r,
|
|
110
110
|
style: { opacity: P() },
|
|
111
111
|
children: C
|
|
112
112
|
}
|
|
113
113
|
) : null,
|
|
114
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ A(
|
|
115
115
|
"div",
|
|
116
116
|
{
|
|
117
117
|
className: g(s.content, {
|
|
118
118
|
[Q]: o !== 0,
|
|
119
119
|
[K]: l === "horizontal",
|
|
120
|
-
[
|
|
120
|
+
[E]: S
|
|
121
121
|
}),
|
|
122
122
|
onTouchStart: x,
|
|
123
123
|
onTouchMove: O,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { c as r } from "../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
const s = "filterPanel__04502135", i = {
|
|
4
|
+
filterPanel: s
|
|
5
|
+
}, n = ({ children: e, className: l, ...t }) => /* @__PURE__ */ a(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
className: r(i.filterPanel, l),
|
|
9
|
+
...t,
|
|
10
|
+
"data-tx": "0.10.0",
|
|
11
|
+
children: e
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
n.displayName = "FilterPanel";
|
|
15
|
+
export {
|
|
16
|
+
n as FilterPanel
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=FilterPanel.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i } from "react";
|
|
3
|
+
import { MasterTableContext as n } from "./MasterTableContext.js";
|
|
4
|
+
import { c as b } from "../../chunks/vendor-BlJo2ILB.js";
|
|
5
|
+
import { NoColumns as p } from "./NoColumns.js";
|
|
6
|
+
import { FilterPanel as T } from "./FilterPanel.js";
|
|
7
|
+
import { TabsLinePanel as c } from "./TabsLinePanel.js";
|
|
8
|
+
import { TableBasic as f } from "./TableBasic/TableBasic.js";
|
|
9
|
+
import { TableBasicSettings as P } from "./TableBasicSettings/TableBasicSettings.js";
|
|
10
|
+
import { TableFooter as u } from "./TableFooter/TableFooter.js";
|
|
11
|
+
import { PaginationPanel as d } from "./PaginationPanel.js";
|
|
12
|
+
import "./TableBasicSettings/components/ColumnSettings.js";
|
|
13
|
+
import "./TableBasic/enums.js";
|
|
14
|
+
const x = "masterTable__273c057e", g = {
|
|
15
|
+
masterTable: x
|
|
16
|
+
}, e = ({ children: t, className: o, loading: r = !1, ...m }) => {
|
|
17
|
+
const [s, l] = i([]);
|
|
18
|
+
return /* @__PURE__ */ a(
|
|
19
|
+
n.Provider,
|
|
20
|
+
{
|
|
21
|
+
value: {
|
|
22
|
+
columns: s,
|
|
23
|
+
loading: r,
|
|
24
|
+
setColumns: l
|
|
25
|
+
},
|
|
26
|
+
children: /* @__PURE__ */ a(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
className: b(g.masterTable, o),
|
|
30
|
+
...m,
|
|
31
|
+
"data-tx": "0.10.0",
|
|
32
|
+
children: t
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
e.displayName = "MasterTable";
|
|
39
|
+
e.NoColumns = p;
|
|
40
|
+
e.FilterPanel = T;
|
|
41
|
+
e.TabsLinePanel = c;
|
|
42
|
+
e.TableBasic = f;
|
|
43
|
+
e.TableBasicSettings = P;
|
|
44
|
+
e.TableFooter = u;
|
|
45
|
+
e.PaginationPanel = d;
|
|
46
|
+
export {
|
|
47
|
+
e as MasterTable
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=MasterTable.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as e } from "../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
import { Gap as l } from "../Gap/Gap.js";
|
|
4
|
+
import { ServicesetupSysIcon96 as r } from "@sberbusiness/icons-next";
|
|
5
|
+
const a = "noColumns__9791517e", i = "content__818dabfa", s = {
|
|
6
|
+
noColumns: a,
|
|
7
|
+
content: i
|
|
8
|
+
}, p = ({ children: n, className: t, ...m }) => /* @__PURE__ */ c("div", { className: e(s.noColumns, t), ...m, children: [
|
|
9
|
+
/* @__PURE__ */ o(r, {}),
|
|
10
|
+
/* @__PURE__ */ o(l, { size: 8 }),
|
|
11
|
+
/* @__PURE__ */ o("div", { className: s.content, children: n })
|
|
12
|
+
] });
|
|
13
|
+
p.displayName = "NoColumns";
|
|
14
|
+
export {
|
|
15
|
+
p as NoColumns
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=NoColumns.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
const e = "paginationPanel__408b04e5", s = {
|
|
4
|
+
paginationPanel: e
|
|
5
|
+
}, l = ({ children: a, className: n, ...i }) => /* @__PURE__ */ t(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
className: o(s.paginationPanel, n),
|
|
9
|
+
...i,
|
|
10
|
+
"data-tx": "0.10.0",
|
|
11
|
+
children: a
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
l.displayName = "PaginationPanel";
|
|
15
|
+
export {
|
|
16
|
+
l as PaginationPanel
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=PaginationPanel.js.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as B, useEffect as N } from "react";
|
|
3
|
+
import { i as T } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
4
|
+
import { MasterTableContext as L } from "../MasterTableContext.js";
|
|
5
|
+
import { s as a } from "../../../chunks/utils-BHK9pmFJ.js";
|
|
6
|
+
import { TableBasicHeader as g } from "./components/TableBasicHeader.js";
|
|
7
|
+
import { TableBasicBody as C } from "./components/TableBasicBody.js";
|
|
8
|
+
import { LoaderMiddle as E } from "../../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
9
|
+
import { LoaderScreen as j } from "../../LoaderScreen/LoaderScreen.js";
|
|
10
|
+
const D = ({
|
|
11
|
+
columns: t,
|
|
12
|
+
data: i,
|
|
13
|
+
highlightRowOnHover: c,
|
|
14
|
+
onOrderBy: m,
|
|
15
|
+
onClickRow: f,
|
|
16
|
+
renderNoColumns: n,
|
|
17
|
+
renderNoData: p,
|
|
18
|
+
headless: b,
|
|
19
|
+
...v
|
|
20
|
+
}) => {
|
|
21
|
+
const o = B(L), y = i.length === 0;
|
|
22
|
+
N(() => {
|
|
23
|
+
T(t, o.columns) || o.setColumns(t);
|
|
24
|
+
}, [t, o]);
|
|
25
|
+
const u = () => t.every((e) => e.hidden) && n ? n() : /* @__PURE__ */ d("table", { ...v, children: [
|
|
26
|
+
b || /* @__PURE__ */ r(g, { columns: t, onOrderBy: m }),
|
|
27
|
+
/* @__PURE__ */ r(
|
|
28
|
+
C,
|
|
29
|
+
{
|
|
30
|
+
columns: t,
|
|
31
|
+
data: i,
|
|
32
|
+
onClickRow: f,
|
|
33
|
+
highlightRowOnHover: c
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
] }, "table"), h = (e) => {
|
|
37
|
+
const { loading: s } = o;
|
|
38
|
+
return s && e ? l(x()) : !s && e ? l(p()) : s && !e ? /* @__PURE__ */ r("div", { className: a.spinnerWrapper, children: /* @__PURE__ */ r(j, { type: "middle", className: a.tableLoaderScreen }) }) : null;
|
|
39
|
+
}, l = (e) => /* @__PURE__ */ r("div", { className: a.footerEmptyData, children: e }), x = () => [
|
|
40
|
+
/* @__PURE__ */ r("div", { className: a.overlayCover }, "overlay"),
|
|
41
|
+
/* @__PURE__ */ r(E, {}, "spinner")
|
|
42
|
+
];
|
|
43
|
+
return /* @__PURE__ */ d("div", { className: a.tableBasic, children: [
|
|
44
|
+
u(),
|
|
45
|
+
h(y)
|
|
46
|
+
] });
|
|
47
|
+
};
|
|
48
|
+
D.displayName = "TableBasic";
|
|
49
|
+
export {
|
|
50
|
+
D as TableBasic
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=TableBasic.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { TableBasicRow as b } from "./TableBasicRow.js";
|
|
3
|
+
import { c as p } from "../../../../chunks/vendor-BlJo2ILB.js";
|
|
4
|
+
import { s as r } from "../../../../chunks/utils-BHK9pmFJ.js";
|
|
5
|
+
const B = ({ columns: c, data: o, highlightRowOnHover: t, onClickRow: e }) => {
|
|
6
|
+
if (o.length === 0)
|
|
7
|
+
return null;
|
|
8
|
+
const s = !!e, n = s || !!t, i = p({
|
|
9
|
+
[r.clickable]: s,
|
|
10
|
+
[r.hoverable]: n
|
|
11
|
+
}), m = o.map((l) => /* @__PURE__ */ a(b, { columns: c, data: l, onClickRow: e }, l.rowKey));
|
|
12
|
+
return /* @__PURE__ */ a("tbody", { className: i, children: m });
|
|
13
|
+
};
|
|
14
|
+
B.displayName = "TableBasicBody";
|
|
15
|
+
export {
|
|
16
|
+
B as TableBasicBody
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=TableBasicBody.js.map
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsx as r, jsxs as m, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { SortdecreaseStrokeSrvIcon16 as x, SortincreaseStrokeSrvIcon16 as I, SortStrokeSrvIcon16 as D } from "@sberbusiness/icons-next";
|
|
3
|
+
import { isNullOrUndefined as b } from "../../../../utils/isNullOrUndefined.js";
|
|
4
|
+
import { getAriaHTMLAttributes as H } from "../../../../utils/html/AriaAttributes.js";
|
|
5
|
+
import { getDataHTMLAttributes as y } from "../../../../utils/html/DataAttributes.js";
|
|
6
|
+
import { ECellType as T, EHorizontalAlign as s, EOrderDirection as t } from "../enums.js";
|
|
7
|
+
import { c as d } from "../../../../chunks/vendor-BlJo2ILB.js";
|
|
8
|
+
import { s as n, m as z } from "../../../../chunks/utils-BHK9pmFJ.js";
|
|
9
|
+
import { Text as B } from "../../../Typography/Text.js";
|
|
10
|
+
import { ETextSize as v } from "../../../Typography/enums.js";
|
|
11
|
+
const w = ({ columns: u, onOrderBy: l }) => {
|
|
12
|
+
const N = !b(l), f = (e) => {
|
|
13
|
+
let o;
|
|
14
|
+
switch (e.orderDirection) {
|
|
15
|
+
case t.NONE: {
|
|
16
|
+
o = /* @__PURE__ */ r(D, { paletteIndex: 5 });
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
case t.ASC: {
|
|
20
|
+
o = /* @__PURE__ */ r(I, { paletteIndex: 5 });
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
case t.DESC: {
|
|
24
|
+
o = /* @__PURE__ */ r(x, { paletteIndex: 5 });
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const i = d(n.orderButton, {
|
|
29
|
+
[n.alignLeft]: e.horizontalAlign === s.RIGHT,
|
|
30
|
+
[n.alignRight]: e.horizontalAlign !== s.RIGHT,
|
|
31
|
+
[n.sorted]: e.orderDirection !== t.NONE
|
|
32
|
+
});
|
|
33
|
+
return /* @__PURE__ */ r("span", { className: i, children: o });
|
|
34
|
+
}, A = (e, o) => {
|
|
35
|
+
if (e.hidden)
|
|
36
|
+
return null;
|
|
37
|
+
const i = e.width ? { maxWidth: e.width, minWidth: e.width, width: e.width } : void 0, a = o && !b(e.orderDirection), E = a ? () => {
|
|
38
|
+
S(e.fieldKey, e.orderDirection);
|
|
39
|
+
} : void 0, c = a && f(e), C = d(z(e.horizontalAlign), {
|
|
40
|
+
[n.checkboxType]: e.cellType === T.CHECKBOX
|
|
41
|
+
}), O = d(n.thBlock, "hoverable", {
|
|
42
|
+
[n.order]: a
|
|
43
|
+
}), h = [T.TEXT, void 0].includes(e.cellType) ? /* @__PURE__ */ r(B, { size: v.B3, children: e.label }) : e.label, g = e.horizontalAlign === s.RIGHT ? /* @__PURE__ */ m(p, { children: [
|
|
44
|
+
c,
|
|
45
|
+
h
|
|
46
|
+
] }) : /* @__PURE__ */ m(p, { children: [
|
|
47
|
+
h,
|
|
48
|
+
c
|
|
49
|
+
] });
|
|
50
|
+
return /* @__PURE__ */ r("th", { className: C, title: e.title, style: i, children: /* @__PURE__ */ r(
|
|
51
|
+
"span",
|
|
52
|
+
{
|
|
53
|
+
className: O,
|
|
54
|
+
onClick: E,
|
|
55
|
+
...!!e.ariaAttributes && H(e.ariaAttributes),
|
|
56
|
+
...!!e.dataAttributes && y(e.dataAttributes),
|
|
57
|
+
children: g
|
|
58
|
+
}
|
|
59
|
+
) }, e.fieldKey);
|
|
60
|
+
}, S = (e, o) => {
|
|
61
|
+
let i;
|
|
62
|
+
switch (o) {
|
|
63
|
+
case t.NONE: {
|
|
64
|
+
i = t.ASC;
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
case t.ASC: {
|
|
68
|
+
i = t.DESC;
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
case t.DESC: {
|
|
72
|
+
i = t.NONE;
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
l && l({ direction: i, fieldKey: e });
|
|
77
|
+
}, k = u.map((e) => A(e, N));
|
|
78
|
+
return /* @__PURE__ */ r("thead", { children: /* @__PURE__ */ r("tr", { children: k }) });
|
|
79
|
+
};
|
|
80
|
+
w.displayName = "TableBasicHeader";
|
|
81
|
+
export {
|
|
82
|
+
w as TableBasicHeader
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=TableBasicHeader.js.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { getAriaHTMLAttributes as H } from "../../../../utils/html/AriaAttributes.js";
|
|
3
|
+
import { getDataHTMLAttributes as D } from "../../../../utils/html/DataAttributes.js";
|
|
4
|
+
import { DataTestId as L } from "../../../../consts/DataTestId.js";
|
|
5
|
+
import { c as p } from "../../../../chunks/vendor-BlJo2ILB.js";
|
|
6
|
+
import { s as M, a as S, m as X, b as $ } from "../../../../chunks/utils-BHK9pmFJ.js";
|
|
7
|
+
import { ECellType as a, EVerticalAlign as f } from "../enums.js";
|
|
8
|
+
import { ETextSize as A } from "../../../Typography/enums.js";
|
|
9
|
+
import { Text as N } from "../../../Typography/Text.js";
|
|
10
|
+
const j = ({ columns: y, data: C, onClickRow: n }) => {
|
|
11
|
+
const { rowKey: b, rowData: d, rowLayout: l, ariaAttributes: c, dataAttributes: r, selected: T = !1 } = C, h = p({ [M.selected]: T, selected: T }), B = n ? () => n(b) : void 0, E = r ? r["test-id"] : void 0, g = (e, t, O, m) => {
|
|
12
|
+
if (e.hidden)
|
|
13
|
+
return null;
|
|
14
|
+
const o = e.renderCell ? e.renderCell(t) : t, s = e.cellType ?? a.TEXT, w = e.verticalAlign ?? (s === a.TEXT ? f.BASELINE : f.TOP), z = p(
|
|
15
|
+
$(s),
|
|
16
|
+
X(e.horizontalAlign),
|
|
17
|
+
S(w)
|
|
18
|
+
), K = e.width ? { width: e.width } : void 0, v = () => o ? s === a.CHECKBOX || s === a.COMPONENTS ? o : /* @__PURE__ */ i(N, { size: A.B3, children: o }) : /* @__PURE__ */ i(N, { size: A.B3, children: "---" });
|
|
19
|
+
return /* @__PURE__ */ i(
|
|
20
|
+
"td",
|
|
21
|
+
{
|
|
22
|
+
className: z,
|
|
23
|
+
...O,
|
|
24
|
+
"data-test-id": m && `${m}__${e.fieldKey}${L.Table.TableBasic.td}`,
|
|
25
|
+
style: K,
|
|
26
|
+
children: v()
|
|
27
|
+
},
|
|
28
|
+
e.fieldKey
|
|
29
|
+
);
|
|
30
|
+
}, x = y.map((e) => {
|
|
31
|
+
const { fieldKey: t } = e;
|
|
32
|
+
if (Object.keys(d).indexOf(t) !== -1)
|
|
33
|
+
return g(e, d[t], l == null ? void 0 : l[t], E);
|
|
34
|
+
});
|
|
35
|
+
return /* @__PURE__ */ i(
|
|
36
|
+
"tr",
|
|
37
|
+
{
|
|
38
|
+
className: h,
|
|
39
|
+
onClick: B,
|
|
40
|
+
...!!c && H(c),
|
|
41
|
+
...!!r && D(r),
|
|
42
|
+
children: x
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
j.displayName = "TableBasicRow";
|
|
47
|
+
export {
|
|
48
|
+
j as TableBasicRow
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=TableBasicRow.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var t = /* @__PURE__ */ ((T) => (T.NONE = "none", T.ASC = "asc", T.DESC = "desc", T))(t || {}), O = /* @__PURE__ */ ((T) => (T.LEFT = "left", T.RIGHT = "right", T.CENTER = "center", T))(O || {}), s = /* @__PURE__ */ ((T) => (T.BASELINE = "baseline", T.SUB = "sub", T.SUPER = "super", T.TEXT_TOP = "text-top", T.TEXT_BOTTOM = "text-bottom", T.MIDDLE = "middle", T.TOP = "top", T.BOTTOM = "bottom", T))(s || {}), u = /* @__PURE__ */ ((T) => (T.TEXT = "text", T.COMPONENTS = "components", T.CHECKBOX = "checkbox", T))(u || {});
|
|
2
|
+
export {
|
|
3
|
+
u as ECellType,
|
|
4
|
+
O as EHorizontalAlign,
|
|
5
|
+
t as EOrderDirection,
|
|
6
|
+
s as EVerticalAlign
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=enums.js.map
|