@sberbusiness/triplex-next 0.28.0 → 0.30.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/chunks/{AlertProcessSpoiler-vonjWRtY.js → AlertProcessSpoiler-u6M_UUD9.js} +13 -13
- package/chunks/{CalendarViewItem-DysxnR-B.js → CalendarViewItem-0qx9TN09.js} +23 -23
- package/chunks/Card.module-Dk_x12aX.js +18 -0
- package/chunks/CheckboxTreeExtended.module-BYEXhagY.js +15 -0
- package/chunks/Chip-CgSrMLOj.js +77 -0
- package/chunks/Confirm.module-D-Z-baL7.js +15 -0
- package/chunks/{DropdownListItem-DEMHVloq.js → DropdownListItem-DsKl9Gi-.js} +18 -18
- package/chunks/DropdownMobile.module-DBKmP6tH.js +23 -0
- package/chunks/Footer.module-D19luc11.js +9 -0
- package/chunks/{FormFieldInput-Cb-NqZOL.js → FormFieldInput-DM8lK78a.js} +16 -16
- package/chunks/HeaderLayoutSidebar.module-BEWjTVQC.js +9 -0
- package/chunks/HeaderTabs.module-B3OUkcWC.js +9 -0
- package/chunks/{HeaderTitle.module-B2aVG-8s.js → HeaderTitle.module-wm7lWk21.js} +2 -2
- package/chunks/IslandAccordion.module-CkjSe196.js +25 -0
- package/chunks/IslandWidgetFooter.module-DkGCGVtt.js +9 -0
- package/chunks/IslandWidgetHeader.module-D_0Z5Wkx.js +13 -0
- package/chunks/{LightBoxContent-CpxzDBba.js → LightBoxContent-C-Q4JvDf.js} +9 -9
- package/chunks/LightBoxControls.module-D6dJVyd1.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-Pvh5SxlA.js +9 -0
- package/chunks/{ListItemControlsButton-BcWg1BjZ.js → ListItemControlsButton-B52gadtt.js} +10 -10
- package/chunks/ListItemTail.module-96x050E6.js +12 -0
- package/chunks/ListMasterFooter.module-QCC2uvr7.js +10 -0
- package/chunks/ModalWindow.module-D3XZrRCV.js +17 -0
- package/chunks/Notification.module-MWvLXIRM.js +20 -0
- package/chunks/Overlay.module-nAMUorJ1.js +18 -0
- package/chunks/Page.module-BDTFNqSr.js +11 -0
- package/chunks/SMSField.module-Dt8sZq_D.js +16 -0
- package/chunks/SliderExtendedMarks.module-BIprSBVE.js +15 -0
- package/chunks/{SliderExtendedRail-D-T2vfBA.js → SliderExtendedRail-EN9dWr8g.js} +10 -10
- package/chunks/StatusTracker.module-GZp9BaaE.js +24 -0
- package/chunks/{StepperStepArrowBorder-DoCkMkMz.js → StepperStepArrowBorder-B2mxgMOK.js} +4 -4
- package/chunks/{SuggestFieldMobileDropdownHint-DMUtIm6D.js → SuggestFieldMobileDropdownHint-8plGk4NO.js} +4 -4
- package/chunks/TableFooter.module-C1wbovyw.js +14 -0
- package/chunks/TabsExtended.module-DATvYZNn.js +16 -0
- package/chunks/TabsLine.module-O3-2VgYL.js +21 -0
- package/chunks/TooltipDesktop.module-COHJz2TY.js +19 -0
- package/chunks/TreeView.module-Cxj4qOdA.js +9 -0
- package/chunks/{UploadZoneInput-DBUlHhad.js → UploadZoneInput-B-gVlolB.js} +8 -8
- package/chunks/{constants-3hOLYskn.js → constants-CgVlsuXP.js} +14 -14
- package/chunks/{utils-C3N8DE_4.js → utils-B3jUITHO.js} +5 -5
- package/chunks/{utils-BzsnXGYj.js → utils-BygtCSQo.js} +5 -5
- package/chunks/{utils-8R7OR9DQ.js → utils-Dwhaig77.js} +7 -7
- package/chunks/utils-mJogbZdW.js +73 -0
- package/chunks/vendor-z35N2Tap.js +12618 -0
- package/components/AbstractTree/AbstractTreeNode.js +1 -1
- package/components/AccordionBase/protected/AccordionBase.js +1 -1
- package/components/Alert/AlertContext/AlertContext.js +30 -30
- package/components/Alert/AlertProcess/AlertProcess.js +3 -3
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
- package/components/Amount/Amount.js +3 -3
- package/components/AmountField/AmountField.js +1 -1
- package/components/Avatar/Avatar.js +48 -23
- package/components/Badge/Badge.js +6 -6
- package/components/Badge/BadgeDot.js +12 -12
- package/components/Badge/components/BadgeContent.js +17 -17
- package/components/Badge/components/BadgePostfix.js +7 -7
- package/components/Badge/components/BadgePrefix.js +5 -5
- package/components/Body/Body.js +8 -8
- package/components/Button/Button.js +21 -21
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +16 -16
- package/components/Button/ButtonDropdownExtended.js +5 -5
- package/components/Button/ButtonIcon.js +6 -6
- package/components/Calendar/Calendar.js +124 -118
- package/components/Calendar/CalendarContext.js +6 -6
- package/components/Calendar/components/CalendarControls.js +1 -1
- package/components/Calendar/components/CalendarFooter.js +4 -4
- package/components/Calendar/components/CalendarFooterButton.js +19 -21
- package/components/Calendar/components/CalendarViewDays.js +7 -10
- package/components/Calendar/components/CalendarViewItem.js +2 -2
- package/components/Calendar/components/CalendarViewMonths.js +29 -29
- package/components/Calendar/components/CalendarViewYears.js +1 -1
- package/components/Calendar/enums.js +1 -1
- package/components/Card/CardAction.js +13 -13
- 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 +2 -2
- package/components/Checkbox/Checkbox.js +19 -19
- package/components/Checkbox/CheckboxXGroup.js +15 -15
- package/components/Checkbox/CheckboxYGroup.js +7 -7
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +5 -5
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +2 -2
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +10 -10
- package/components/CheckboxTreeExtended/index.js +3 -1
- package/components/Chip/Chip.js +2 -2
- package/components/Chip/ChipClearButton.js +7 -7
- package/components/Chip/ChipDatePicker/ChipDatePicker.js +1 -1
- package/components/Chip/ChipDatePicker/ChipDatePickerTarget.js +1 -1
- package/components/Chip/ChipDropdownArrow.js +2 -2
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipMultiselect.js +2 -2
- package/components/Chip/ChipOptions.js +6 -6
- package/components/Chip/ChipSelect/ChipSelect.js +2 -2
- package/components/Chip/ChipSelect/ChipSelectTarget.js +1 -1
- package/components/Chip/ChipSort.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggest.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +1 -1
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +17 -17
- package/components/Chip/index.js +1 -1
- package/components/ChipGroup/ChipGroup.js +13 -13
- package/components/Col/Col.js +141 -141
- package/components/CollapsibleTree/CollapsibleTree.js +23 -0
- package/components/CollapsibleTree/components/CollapsibleTreeBranchNode.js +37 -0
- package/components/CollapsibleTree/components/CollapsibleTreeLeafContent.js +13 -0
- package/components/CollapsibleTree/components/CollapsibleTreeLeafNode.js +24 -0
- package/components/CollapsibleTree/components/CollapsibleTreeNodeHeader.js +44 -0
- package/components/CollapsibleTree/components/CollapsibleTreeNodeLabel.js +12 -0
- package/components/CollapsibleTree/index.js +11 -0
- package/components/CollapsibleTree/types.js +5 -0
- package/components/CollapsibleTreeExtended/CollapsibleTreeExtended.js +10 -0
- package/components/CollapsibleTreeExtended/components/CollapsibleTreeExtendedNode.js +71 -0
- package/components/CollapsibleTreeExtended/index.js +7 -0
- package/components/Confirm/Confirm.js +2 -2
- package/components/Confirm/components/ConfirmCloseButton.js +2 -2
- package/components/Confirm/components/ConfirmContent.js +2 -2
- package/components/Confirm/components/ConfirmContentTitle.js +2 -2
- package/components/Confirm/components/ConfirmControls.js +2 -2
- package/components/DateField/DateField.js +18 -28
- package/components/DatePickerExtended/DatePickerExtended.js +2 -2
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +2 -2
- package/components/DatePickerExtended/index.js +5 -0
- package/components/DateRange/DateRange.js +25 -25
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/DesignTokensComponents.js +89 -84
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +83 -78
- package/components/DesignTokens/components/Calendar.js +34 -42
- package/components/DesignTokens/components/CollapsibleTree.js +11 -0
- package/components/DesignTokens/components/ListItem.js +7 -4
- package/components/DesignTokens/components/index.js +138 -135
- package/components/Divider/Divider.js +21 -21
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +2 -2
- package/components/Dropdown/desktop/DropdownDesktop.js +19 -19
- package/components/Dropdown/desktop/DropdownList.js +2 -2
- package/components/Dropdown/desktop/DropdownListItem.js +2 -2
- package/components/Dropdown/desktop/index.js +1 -1
- package/components/Dropdown/index.js +1 -1
- package/components/Dropdown/mobile/DropdownMobile.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileBody.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileClose.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileFooter.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileHeader.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInner.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInput.js +4 -4
- package/components/Dropdown/mobile/DropdownMobileList.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileListItem.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileLoader.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileMaskedInput.js +4 -4
- package/components/Ellipsis/Ellipsis.js +5 -5
- package/components/EmptyView/EmptyView.js +15 -15
- package/components/ExpandAnimation/ExpandAnimation.js +14 -14
- package/components/Footer/Footer.js +1 -1
- package/components/Footer/components/FooterDescription.js +2 -2
- package/components/Footer/components/FooterDescriptionContent.js +2 -2
- package/components/Footer/components/FooterDescriptionControls.js +2 -2
- package/components/FormField/FormField.js +15 -15
- package/components/FormField/components/FormFieldClear.js +5 -5
- package/components/FormField/components/FormFieldCounter.js +9 -11
- package/components/FormField/components/FormFieldDescription.js +5 -5
- package/components/FormField/components/FormFieldInput.js +2 -2
- package/components/FormField/components/FormFieldLabel.js +2 -2
- package/components/FormField/components/FormFieldMaskedInput.js +17 -17
- package/components/FormField/components/FormFieldPostfix.js +24 -17
- package/components/FormField/components/FormFieldPrefix.js +24 -17
- package/components/FormField/components/FormFieldTarget.js +9 -9
- package/components/FormField/components/FormFieldTextarea.js +7 -7
- package/components/FormField/components/index.js +1 -1
- package/components/FormField/index.js +1 -1
- package/components/Header/Header.js +1 -1
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +2 -2
- package/components/Header/components/HeaderSubheader/HeaderSubheader.js +6 -6
- package/components/Header/components/HeaderTabs/HeaderTabs.js +2 -2
- 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 +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +2 -2
- package/components/HelpBox/HelpBox.js +17 -17
- package/components/IconWrapper/IconWrapper.js +8 -8
- package/components/Island/Island.js +2 -2
- package/components/Island/components/IslandBody.js +4 -4
- package/components/Island/components/IslandFooter.js +4 -4
- package/components/Island/components/IslandHeader.js +3 -3
- package/components/Island/utils.js +1 -1
- package/components/IslandAccordion/IslandAccordion.js +3 -3
- package/components/IslandAccordion/components/IslandAccordionContent.js +1 -1
- package/components/IslandAccordion/components/IslandAccordionFooter.js +2 -2
- package/components/IslandAccordion/components/IslandAccordionItem.js +3 -3
- package/components/IslandWidget/IslandWidget.js +15 -15
- package/components/IslandWidget/components/IslandWidgetBody.js +4 -4
- package/components/IslandWidget/components/IslandWidgetExtraFooter.js +11 -11
- package/components/IslandWidget/components/IslandWidgetFooter.js +2 -2
- package/components/IslandWidget/components/IslandWidgetFooterContent.js +1 -1
- package/components/IslandWidget/components/IslandWidgetFooterControls.js +1 -1
- package/components/IslandWidget/components/IslandWidgetHeader.js +19 -17
- package/components/IslandWidget/components/IslandWidgetHeaderContent.js +2 -2
- package/components/IslandWidget/components/IslandWidgetHeaderControls.js +18 -0
- package/components/IslandWidget/components/IslandWidgetHeaderDescription.js +21 -6
- package/components/IslandWidget/components/IslandWidgetHeaderTitle.js +18 -0
- package/components/IslandWidget/components/IslandWidgetWrapper.js +7 -7
- package/components/LightBox/LightBox.js +11 -11
- package/components/LightBox/LightBoxContent.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxClose.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxControls.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxNext.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxPrev.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlay.js +20 -20
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +1 -1
- package/components/LightBox/LightBoxSidebars/LightBoxLeftSidebar.js +8 -8
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js +12 -12
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +1 -1
- package/components/Link/Link.js +28 -28
- package/components/List/List.js +7 -7
- package/components/List/ListSortable.js +1 -1
- package/components/List/components/ListEmptyState.js +3 -3
- package/components/List/components/ListItem.js +8 -8
- package/components/List/components/ListItemContent.js +20 -15
- package/components/List/components/ListItemContext.js +5 -2
- package/components/List/components/ListItemControls.js +6 -6
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +2 -2
- package/components/List/components/ListItemLoading.js +5 -5
- package/components/List/components/ListItemSelectable.js +30 -27
- package/components/List/components/ListItemTable.js +14 -13
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +2 -2
- package/components/List/components/ListSortableItemControls.js +8 -8
- package/components/List/components/ListSortableItemTarget.js +4 -4
- package/components/List/index.js +1 -1
- package/components/ListMaster/ListMaster.js +1 -1
- package/components/ListMaster/components/ListMasterBody.js +1 -1
- package/components/ListMaster/components/ListMasterChipGroup.js +6 -6
- package/components/ListMaster/components/ListMasterFooter.js +2 -2
- package/components/ListMaster/components/ListMasterFooterControls.js +2 -2
- package/components/ListMaster/components/ListMasterFooterDescription.js +2 -2
- package/components/ListMaster/components/ListMasterHeader.js +2 -2
- package/components/ListMaster/components/SelectionControls.js +3 -3
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +8 -8
- package/components/Loader/LoaderSmall/LoaderSmall.js +10 -10
- package/components/LoaderScreen/LoaderScreen.js +13 -13
- package/components/Marker/Marker.js +2 -2
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +15 -15
- package/components/ModalWindow/ModalWindow.js +2 -2
- package/components/ModalWindow/components/ModalWindowBody.js +5 -5
- package/components/ModalWindow/components/ModalWindowClose.js +6 -6
- package/components/ModalWindow/components/ModalWindowContent.js +2 -2
- package/components/ModalWindow/components/ModalWindowHeader.js +2 -2
- package/components/ModalWindow/components/ModalWindowViewManager.js +2 -2
- package/components/ModalWindow/index.js +11 -10
- package/components/MonthYearField/MonthYearField.js +19 -19
- package/components/MonthYearRange/MonthYearRange.js +2 -2
- package/components/MultiselectField/MultiselectField.js +19 -14
- package/components/MultiselectField/MultiselectFieldContext.js +5 -4
- package/components/MultiselectField/components/MultiselectFieldDropdown.js +32 -29
- package/components/MultiselectField/components/MultiselectFieldDropdownContent.js +7 -7
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +4 -4
- package/components/MultiselectField/components/MultiselectFieldDropdownHeader.js +4 -4
- package/components/Notification/Notification.js +3 -3
- package/components/Notification/NotificationGrouped.js +1 -1
- package/components/Notification/components/NotificationBody.js +1 -1
- package/components/Notification/components/NotificationBodyList.js +2 -2
- package/components/Notification/components/NotificationClose.js +1 -1
- package/components/Notification/components/NotificationFooter.js +1 -1
- package/components/Notification/components/NotificationGroupedFooter.js +2 -2
- package/components/Notification/components/NotificationHeader.js +1 -1
- package/components/Notification/components/NotificationIcon.js +1 -1
- package/components/Notification/components/NotificationTime.js +1 -1
- package/components/NumberField/NumberFieldInput.js +1 -1
- package/components/OrderedList/OrderedList.js +7 -7
- package/components/OrderedList/OrderedListItem.js +6 -6
- package/components/Overlay/Overlay.js +2 -2
- package/components/Overlay/OverlayMask.js +2 -2
- package/components/Overlay/OverlayPanel.js +2 -2
- package/components/Page/Page.js +2 -2
- package/components/Page/components/BodyPage.js +7 -7
- package/components/Page/components/FooterPage.js +2 -2
- package/components/Page/components/HeaderPage.js +2 -2
- package/components/Page/components/useStickyCornerRadius.js +16 -16
- package/components/Page/index.js +10 -4
- package/components/Pagination/components/PaginationExtended.js +6 -6
- package/components/Pagination/components/PaginationNavigationButton.js +7 -7
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +6 -6
- package/components/Pagination/components/PaginationPageEllipsis.js +6 -6
- package/components/Pagination/components/PaginationSelect.js +18 -18
- package/components/Pagination/utils/paginationUtils.js +1 -1
- package/components/Radio/Radio.js +16 -16
- package/components/Radio/RadioXGroup.js +13 -13
- package/components/Radio/RadioYGroup.js +7 -7
- package/components/Row/Row.js +6 -6
- package/components/SMSField/SMSField.js +3 -3
- package/components/SMSField/components/RefreshIcon.js +2 -2
- package/components/SMSField/components/SMSFieldInput.js +29 -29
- package/components/SMSField/components/SMSFieldRefresh.js +2 -2
- package/components/SMSField/components/SMSFieldSubmit.js +2 -2
- package/components/SMSField/components/SMSFieldTooltip.js +1 -1
- package/components/SMSField/index.js +9 -1
- package/components/SegmentedControl/SegmentedControl.js +4 -4
- package/components/SegmentedControl/SegmentedControlSegment.js +2 -2
- package/components/SelectExtendedField/SelectExtendedField.js +5 -5
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +14 -14
- package/components/SelectField/SelectField.js +2 -2
- package/components/Skeleton/Skeleton.js +11 -11
- package/components/SliderExtended/SliderExtended.js +3 -3
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js +2 -2
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMark.js +2 -2
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarks.js +2 -2
- package/components/SliderExtended/components/SliderExtendedRail.js +2 -2
- package/components/SliderExtended/components/SliderExtendedTooltip/SliderExtendedTooltip.js +4 -4
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +24 -24
- package/components/SmallInput/SmallInput.js +2 -2
- package/components/Spoiler/Spoiler.js +12 -12
- package/components/StatusTracker/StatusTracker.js +16 -12
- package/components/StatusTracker/components/StatusTrackerAlert.js +2 -2
- package/components/StatusTracker/components/StatusTrackerBody.js +2 -2
- package/components/StatusTracker/components/StatusTrackerButton.js +2 -2
- package/components/StatusTracker/components/StatusTrackerDescription.js +2 -2
- package/components/StatusTracker/components/StatusTrackerFooter.js +2 -2
- package/components/StatusTracker/components/StatusTrackerHeader.js +2 -2
- package/components/StatusTracker/components/StatusTrackerMedia.js +2 -2
- package/components/StatusTracker/components/StatusTrackerStatus.js +2 -2
- package/components/StatusTracker/components/StatusTrackerSum.js +2 -2
- package/components/StatusTracker/components/StatusTrackerTitle.js +2 -2
- package/components/StatusTracker/index.js +21 -5
- package/components/Step/Step.js +10 -10
- package/components/Stepper/Stepper.js +33 -33
- package/components/Stepper/StepperExtended.js +8 -8
- package/components/Stepper/StepperStep.js +3 -3
- package/components/Stepper/StepperStepArrowBorder.js +1 -1
- package/components/Suggest/SuggestMobileDropdownContent.js +11 -11
- package/components/Suggest/useSuggest.js +1 -1
- package/components/SuggestField/SuggestField.js +2 -2
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +3 -3
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +1 -1
- package/components/SuggestField/index.js +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobile.js +2 -2
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +2 -2
- package/components/SuggestField/mobile/SuggestFieldMobileDropdownHint.js +1 -1
- package/components/SuggestField/mobile/index.js +1 -1
- package/components/SwipeableArea/SwipeableArea.js +15 -15
- package/components/Table/FilterPanel.js +3 -3
- package/components/Table/MasterTable.js +24 -20
- package/components/Table/NoColumns.js +6 -6
- package/components/Table/PaginationPanel.js +5 -5
- package/components/Table/TableBasic/TableBasic.js +2 -2
- package/components/Table/TableBasic/components/TableBasicBody.js +2 -2
- package/components/Table/TableBasic/components/TableBasicHeader.js +2 -2
- package/components/Table/TableBasic/components/TableBasicRow.js +2 -2
- package/components/Table/TableBasicSettings/TableBasicSettings.js +12 -12
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +5 -5
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +3 -3
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +5 -5
- package/components/Table/TableFooter/TableFooter.js +2 -2
- package/components/Table/TableFooter/components/TableFooterSummary.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummaryAmount.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectAllButton.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +1 -1
- package/components/Table/TabsLinePanel.js +3 -3
- package/components/Table/TabsLinePanelLinks.js +5 -5
- package/components/Table/index.js +25 -17
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +14 -14
- package/components/TabsExtended/TabsExtended.js +3 -3
- package/components/TabsExtended/components/TabsExtendedContent.js +2 -2
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTab.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTabButton.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +2 -2
- package/components/TabsExtended/utils.js +1 -1
- package/components/TabsLine/TabsLine.js +2 -2
- package/components/TabsLine/components/TabsLineDesktop.js +2 -2
- package/components/TabsLine/components/TabsLineDropdown.js +3 -3
- package/components/TabsLine/components/TabsLineItem.js +2 -2
- package/components/TabsLine/components/TabsLineMobile.js +10 -10
- package/components/Tag/Tag.js +23 -23
- package/components/TagColor/TagColor.js +16 -16
- package/components/TagGroup/TagGroup.js +6 -6
- package/components/TextField/TextField.js +1 -1
- package/components/TextField/TextFieldBase.js +22 -17
- package/components/TextareaField/TextareaField.js +1 -1
- package/components/ThemeProvider/ThemeProvider.js +5 -5
- package/components/ThemeProvider/components/ThemeProviderView.js +1 -1
- package/components/Tooltip/components/common/TooltipBody.js +2 -2
- package/components/Tooltip/components/common/TooltipLink.js +10 -10
- package/components/Tooltip/components/common/TooltipXButton.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +2 -2
- package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +2 -2
- package/components/Tooltip/components/mobile/TooltipMobile.js +12 -12
- package/components/TopOverlay/TopOverlay.js +22 -22
- package/components/TreeView/TreeView.js +2 -2
- package/components/TreeView/components/TreeViewGroup.js +1 -1
- package/components/TreeView/components/TreeViewNode.js +2 -2
- package/components/TreeView/index.js +10 -0
- package/components/Triggers/index.js +5 -0
- package/components/Typography/Caption.js +19 -19
- package/components/Typography/CodeText.js +7 -7
- package/components/Typography/Text.js +20 -20
- package/components/Typography/Title.js +22 -22
- package/components/Typography/constants.js +1 -1
- package/components/UnorderedList/UnorderedList.js +3 -3
- package/components/UnorderedList/UnorderedListItem.js +3 -3
- package/components/UploadZone/UploadZone.js +3 -3
- package/components/UploadZone/components/UploadZoneInput.js +2 -2
- package/components/UploadZone/index.js +4 -2
- package/components/WindowResizeListener/WindowResizeListener.js +4 -4
- package/components/WindowResizeListener/index.js +5 -0
- package/components/index.js +643 -575
- package/index.d.ts +514 -99
- package/index.js +666 -598
- package/package.json +25 -1
- package/styles/triplex-next.css +541 -538
- package/types/index.js +2 -0
- package/utils/amountUtils.js +1 -1
- package/chunks/Card.module-DLzMeKEe.js +0 -17
- package/chunks/CheckboxTreeExtended.module-_hckc6T1.js +0 -15
- package/chunks/Chip-C8WEqATD.js +0 -77
- package/chunks/Confirm.module-C9UyoM6r.js +0 -15
- package/chunks/DropdownMobile.module-D_HYruos.js +0 -23
- package/chunks/Footer.module-BijXXNLX.js +0 -9
- package/chunks/HeaderLayoutSidebar.module-BvSSRT60.js +0 -9
- package/chunks/HeaderTabs.module-Yh7VuJr3.js +0 -9
- package/chunks/IslandAccordion.module-DXpQN7Ws.js +0 -25
- package/chunks/IslandWidgetFooter.module-DsHrU6Ao.js +0 -9
- package/chunks/IslandWidgetHeader.module-BntNmew_.js +0 -12
- package/chunks/LightBoxControls.module-BulvfqYp.js +0 -16
- package/chunks/LightBoxSideOverlayClose.module-jdGcrQ0Q.js +0 -9
- package/chunks/ListItemTail.module-lle264d5.js +0 -12
- package/chunks/ListMasterFooter.module-ezPsYAZz.js +0 -10
- package/chunks/ModalWindow.module-CbeisCTo.js +0 -17
- package/chunks/Notification.module-Cdt0qyac.js +0 -20
- package/chunks/Overlay.module-s6l_vTfQ.js +0 -18
- package/chunks/Page.module-DfXEH6KZ.js +0 -11
- package/chunks/SMSField.module-CTGDSJ9H.js +0 -16
- package/chunks/SliderExtendedMarks.module-CEd_dK23.js +0 -15
- package/chunks/StatusTracker.module-DhavZ4lj.js +0 -24
- package/chunks/TableFooter.module-BEbAVyAP.js +0 -14
- package/chunks/TabsExtended.module-DvTlvDRg.js +0 -16
- package/chunks/TabsLine.module-Dc3Qo19q.js +0 -21
- package/chunks/TooltipDesktop.module-CU7dGBwe.js +0 -19
- package/chunks/TreeView.module-BYYaw1fa.js +0 -9
- package/chunks/utils-C0T4qN0O.js +0 -73
- package/chunks/vendor---Om3uMV.js +0 -12477
- package/components/CollapsableTree/CollapsableTree.js +0 -10
- package/components/CollapsableTree/components/CollapsableTreeNode.js +0 -79
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import m from "react";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as p } from "../../chunks/vendor-z35N2Tap.js";
|
|
4
4
|
import { EButtonIconShape as t } from "./enums.js";
|
|
5
|
-
import { IconWrapper as
|
|
6
|
-
const I = "
|
|
5
|
+
import { IconWrapper as a } from "../IconWrapper/IconWrapper.js";
|
|
6
|
+
const I = "buttonIcon__f69896c6", _ = "circle__5dd371d8", f = "squircle__619e765c", o = {
|
|
7
7
|
buttonIcon: I,
|
|
8
8
|
circle: _,
|
|
9
9
|
squircle: f
|
|
@@ -11,9 +11,9 @@ const I = "buttonIcon__da89c806", _ = "circle__894e20f7", f = "squircle__37291e9
|
|
|
11
11
|
[t.SQUIRCLE]: o.squircle,
|
|
12
12
|
[t.CIRCLE]: o.circle
|
|
13
13
|
}, E = m.forwardRef(
|
|
14
|
-
({ className: r, disabled: c, shape:
|
|
15
|
-
const l =
|
|
16
|
-
return /* @__PURE__ */ n(
|
|
14
|
+
({ className: r, disabled: c, shape: s = t.SQUIRCLE, active: e, ...i }, u) => {
|
|
15
|
+
const l = p(o.buttonIcon, C[s], r);
|
|
16
|
+
return /* @__PURE__ */ n(a, { displayContents: !0, disabled: c, active: e, children: /* @__PURE__ */ n("button", { type: "button", className: l, disabled: c, ...i, ref: u }) });
|
|
17
17
|
}
|
|
18
18
|
);
|
|
19
19
|
E.displayName = "ButtonIcon";
|
|
@@ -1,188 +1,194 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsx as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { globalLimitRange as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
1
|
+
var F = Object.defineProperty;
|
|
2
|
+
var E = (h, p, t) => p in h ? F(h, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[p] = t;
|
|
3
|
+
var c = (h, p, t) => E(h, typeof p != "symbol" ? p + "" : p, t);
|
|
4
|
+
import { jsx as f, jsxs as T } from "react/jsx-runtime";
|
|
5
|
+
import H from "react";
|
|
6
|
+
import { u as R, c as _ } from "../../chunks/vendor-z35N2Tap.js";
|
|
7
|
+
import y from "moment";
|
|
8
|
+
import { globalLimitRange as I, dateFormatYYYYMMDD as O } from "../../consts/DateConst.js";
|
|
9
|
+
import { EComponentSize as A } from "../../enums/EComponentSize.js";
|
|
10
|
+
import { ECalendarPickType as v, ECalendarViewMode as l } from "./enums.js";
|
|
11
|
+
import { CalendarContext as B } from "./CalendarContext.js";
|
|
12
|
+
import { CalendarControls as V } from "./components/CalendarControls.js";
|
|
13
|
+
import { CalendarView as z } from "./components/CalendarView.js";
|
|
14
|
+
import { CalendarFooter as N } from "./components/CalendarFooter.js";
|
|
15
|
+
import { CalendarFooterButton as S } from "./components/CalendarFooterButton.js";
|
|
16
|
+
import { parsePickedDate as D, formatDate as w, getHeader as j } from "./utils.js";
|
|
17
|
+
const q = "calendar__a22872dc", L = "extraBottom__f857b687", U = "adaptive__4ed84c3c", C = {
|
|
17
18
|
calendar: q,
|
|
18
|
-
|
|
19
|
+
extraBottom: L,
|
|
20
|
+
adaptive: U
|
|
19
21
|
};
|
|
20
|
-
class k extends
|
|
22
|
+
class k extends H.PureComponent {
|
|
21
23
|
constructor(t) {
|
|
22
24
|
super(t);
|
|
23
25
|
// Уникальный идентификатор для связи периода с таблицей.
|
|
24
|
-
|
|
26
|
+
c(this, "periodId", `calendar-period-${R()}`);
|
|
25
27
|
/** Обработчик выбора даты. */
|
|
26
|
-
|
|
28
|
+
c(this, "handleDateSelect", (t) => {
|
|
27
29
|
this.props.onDateChange(t);
|
|
28
30
|
});
|
|
29
31
|
/** Обработчик смены страницы. */
|
|
30
|
-
|
|
31
|
-
const { onPageChange:
|
|
32
|
+
c(this, "handlePageChange", (t, r) => {
|
|
33
|
+
const { onPageChange: e } = this.props;
|
|
32
34
|
this.setState({
|
|
33
|
-
header:
|
|
35
|
+
header: w(t, r),
|
|
34
36
|
viewDate: t
|
|
35
|
-
}),
|
|
37
|
+
}), e == null || e(t, r);
|
|
36
38
|
});
|
|
37
39
|
/** Обработчик изменения вида отображения. */
|
|
38
|
-
|
|
39
|
-
const { onViewChange:
|
|
40
|
+
c(this, "handleViewChange", (t, r) => {
|
|
41
|
+
const { onViewChange: e } = this.props;
|
|
40
42
|
this.setState({
|
|
41
|
-
header:
|
|
43
|
+
header: w(t, r),
|
|
42
44
|
viewDate: t,
|
|
43
|
-
viewMode:
|
|
44
|
-
}),
|
|
45
|
+
viewMode: r
|
|
46
|
+
}), e == null || e(t, r);
|
|
45
47
|
});
|
|
46
48
|
/** Рендер футера. */
|
|
47
|
-
|
|
48
|
-
const { pickType: t, yesterdayButtonProps:
|
|
49
|
-
let
|
|
50
|
-
t ===
|
|
51
|
-
const
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
c(this, "renderFooter", () => {
|
|
50
|
+
const { pickType: t, adaptiveMode: r, yesterdayButtonProps: e, todayButtonProps: o, tomorrowButtonProps: i } = this.props, { viewDate: a, viewMode: s } = this.state;
|
|
51
|
+
let n, d;
|
|
52
|
+
t === v.DATE ? (n = y().startOf("day"), d = s === l.DAYS && a.isSame(n, "month")) : (n = y().startOf("month"), d = s === l.MONTHS && a.isSame(n, "year"));
|
|
53
|
+
const m = d && s === l.DAYS, u = r ? A.MD : A.SM;
|
|
54
|
+
return /* @__PURE__ */ T(N, { children: [
|
|
55
|
+
m && e && /* @__PURE__ */ f(
|
|
56
|
+
S,
|
|
55
57
|
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
size: u,
|
|
59
|
+
date: n.clone().subtract(1, "day"),
|
|
60
|
+
currentPeriodSelected: d,
|
|
61
|
+
...typeof e == "function" ? e(s) : e
|
|
59
62
|
}
|
|
60
63
|
),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
|
|
64
|
+
/* @__PURE__ */ f(
|
|
65
|
+
S,
|
|
63
66
|
{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
size: u,
|
|
68
|
+
date: n,
|
|
69
|
+
currentPeriodSelected: d,
|
|
70
|
+
...typeof o == "function" ? o({ viewMode: s, currentPeriodSelected: d }) : o
|
|
67
71
|
}
|
|
68
72
|
),
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
m && i && /* @__PURE__ */ f(
|
|
74
|
+
S,
|
|
71
75
|
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
size: u,
|
|
77
|
+
date: n.clone().add(1, "day"),
|
|
78
|
+
currentPeriodSelected: d,
|
|
79
|
+
...typeof i == "function" ? i(s) : i
|
|
75
80
|
}
|
|
76
81
|
)
|
|
77
82
|
] });
|
|
78
83
|
});
|
|
79
|
-
const { format:
|
|
80
|
-
let
|
|
81
|
-
|
|
82
|
-
const
|
|
84
|
+
const { format: r, pickType: e, reversedPick: o } = this.props, i = D(this.props.pickedDate, r), a = this.getInitialViewDate(i);
|
|
85
|
+
let s;
|
|
86
|
+
o ? s = l.YEARS : e == v.MONTH_YEAR ? s = l.MONTHS : s = l.DAYS;
|
|
87
|
+
const n = w(a, s);
|
|
83
88
|
this.state = {
|
|
84
|
-
header:
|
|
85
|
-
pickedDate:
|
|
86
|
-
viewDate:
|
|
87
|
-
viewMode:
|
|
89
|
+
header: n,
|
|
90
|
+
pickedDate: i,
|
|
91
|
+
viewDate: a,
|
|
92
|
+
viewMode: s
|
|
88
93
|
};
|
|
89
94
|
}
|
|
90
95
|
/** Получить изначальную дату для навигации. */
|
|
91
96
|
getInitialViewDate(t) {
|
|
92
|
-
const { defaultViewDate:
|
|
97
|
+
const { defaultViewDate: r, format: e, limitRange: o } = this.props;
|
|
93
98
|
if (t && t.isValid())
|
|
94
99
|
return t.clone();
|
|
95
|
-
if (a) {
|
|
96
|
-
const e = f(a, o);
|
|
97
|
-
if (e && e.isValid())
|
|
98
|
-
return e.clone();
|
|
99
|
-
}
|
|
100
|
-
const n = D().startOf("day");
|
|
101
100
|
if (r) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
const a = D(r, e);
|
|
102
|
+
if (a && a.isValid())
|
|
103
|
+
return a.clone();
|
|
104
|
+
}
|
|
105
|
+
const i = y().startOf("day");
|
|
106
|
+
if (o) {
|
|
107
|
+
if (o.dateFrom && i.isBefore(o.dateFrom))
|
|
108
|
+
return o.dateFrom.clone();
|
|
109
|
+
if (o.dateTo && i.isAfter(o.dateTo))
|
|
110
|
+
return o.dateTo.clone();
|
|
106
111
|
}
|
|
107
|
-
return
|
|
112
|
+
return i;
|
|
108
113
|
}
|
|
109
|
-
componentDidUpdate(t,
|
|
110
|
-
const { format:
|
|
111
|
-
if (!(!
|
|
112
|
-
let
|
|
113
|
-
|
|
114
|
+
componentDidUpdate(t, r) {
|
|
115
|
+
const { format: e } = this.props, { viewDate: o } = this.state, { viewDate: i } = r, a = D(this.props.pickedDate, e), s = a == null ? void 0 : a.isValid(), n = s ? a : i, d = D(t.pickedDate, e);
|
|
116
|
+
if (!(!s || d != null && d.isSame(n, "day"))) {
|
|
117
|
+
let m = {};
|
|
118
|
+
o && !o.isSame(a, "month") && (m = {
|
|
114
119
|
currentTab: l.DAYS,
|
|
115
|
-
header: j(
|
|
116
|
-
viewDate:
|
|
120
|
+
header: j(n),
|
|
121
|
+
viewDate: n.clone()
|
|
117
122
|
}), this.setState({
|
|
118
|
-
...
|
|
119
|
-
pickedDate:
|
|
123
|
+
...m,
|
|
124
|
+
pickedDate: a
|
|
120
125
|
});
|
|
121
126
|
}
|
|
122
127
|
}
|
|
123
128
|
render() {
|
|
124
129
|
const {
|
|
125
130
|
format: t,
|
|
126
|
-
pickType:
|
|
127
|
-
limitRange:
|
|
128
|
-
markedDays:
|
|
129
|
-
disabledDays:
|
|
130
|
-
dayHtmlAttributes:
|
|
131
|
-
monthHtmlAttributes:
|
|
132
|
-
yearHtmlAttributes:
|
|
133
|
-
prevButtonProps:
|
|
134
|
-
nextButtonProps:
|
|
135
|
-
viewButtonProps:
|
|
136
|
-
todayButtonProps:
|
|
137
|
-
} = this.props, { viewMode:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
131
|
+
pickType: r,
|
|
132
|
+
limitRange: e,
|
|
133
|
+
markedDays: o,
|
|
134
|
+
disabledDays: i,
|
|
135
|
+
dayHtmlAttributes: a,
|
|
136
|
+
monthHtmlAttributes: s,
|
|
137
|
+
yearHtmlAttributes: n,
|
|
138
|
+
prevButtonProps: d,
|
|
139
|
+
nextButtonProps: m,
|
|
140
|
+
viewButtonProps: u,
|
|
141
|
+
todayButtonProps: g
|
|
142
|
+
} = this.props, { viewMode: P, viewDate: M, header: Y } = this.state, b = _(
|
|
143
|
+
C.calendar,
|
|
144
|
+
this.props.adaptiveMode ? C.adaptive : (P !== l.DAYS || g) && C.extraBottom
|
|
145
|
+
), x = D(this.props.pickedDate, t);
|
|
146
|
+
return /* @__PURE__ */ f("div", { className: b, "data-tx": "0.30.0", children: /* @__PURE__ */ T(
|
|
147
|
+
B.Provider,
|
|
142
148
|
{
|
|
143
149
|
value: {
|
|
144
150
|
format: t,
|
|
145
|
-
limitRange:
|
|
146
|
-
pickType:
|
|
147
|
-
markedDays:
|
|
148
|
-
disabledDays:
|
|
149
|
-
viewDate:
|
|
150
|
-
viewMode:
|
|
151
|
+
limitRange: e,
|
|
152
|
+
pickType: r,
|
|
153
|
+
markedDays: o,
|
|
154
|
+
disabledDays: i,
|
|
155
|
+
viewDate: M,
|
|
156
|
+
viewMode: P,
|
|
151
157
|
periodId: this.periodId,
|
|
152
158
|
onDateSelect: this.handleDateSelect,
|
|
153
159
|
onPageChange: this.handlePageChange,
|
|
154
160
|
onViewChange: this.handleViewChange
|
|
155
161
|
},
|
|
156
162
|
children: [
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
|
|
163
|
+
/* @__PURE__ */ f(
|
|
164
|
+
V,
|
|
159
165
|
{
|
|
160
|
-
prevButtonProps:
|
|
161
|
-
nextButtonProps:
|
|
162
|
-
viewButtonProps:
|
|
166
|
+
prevButtonProps: d,
|
|
167
|
+
nextButtonProps: m,
|
|
168
|
+
viewButtonProps: u,
|
|
163
169
|
children: Y
|
|
164
170
|
}
|
|
165
171
|
),
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
|
|
172
|
+
/* @__PURE__ */ f(
|
|
173
|
+
z,
|
|
168
174
|
{
|
|
169
|
-
pickedDate:
|
|
170
|
-
dayHtmlAttributes:
|
|
171
|
-
monthHtmlAttributes:
|
|
172
|
-
yearHtmlAttributes:
|
|
175
|
+
pickedDate: x,
|
|
176
|
+
dayHtmlAttributes: a,
|
|
177
|
+
monthHtmlAttributes: s,
|
|
178
|
+
yearHtmlAttributes: n
|
|
173
179
|
}
|
|
174
180
|
),
|
|
175
|
-
|
|
181
|
+
g && this.renderFooter()
|
|
176
182
|
]
|
|
177
183
|
}
|
|
178
184
|
) });
|
|
179
185
|
}
|
|
180
186
|
}
|
|
181
|
-
|
|
182
|
-
format:
|
|
183
|
-
limitRange:
|
|
184
|
-
pickType:
|
|
185
|
-
}),
|
|
187
|
+
c(k, "defaultProps", {
|
|
188
|
+
format: O,
|
|
189
|
+
limitRange: I,
|
|
190
|
+
pickType: v.DATE
|
|
191
|
+
}), c(k, "contextType", B);
|
|
186
192
|
export {
|
|
187
193
|
k as Calendar
|
|
188
194
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import e from "react";
|
|
2
2
|
import t from "moment";
|
|
3
|
-
import { globalLimitRange as
|
|
3
|
+
import { globalLimitRange as o, dateFormatYYYYMMDD as a } from "../../consts/DateConst.js";
|
|
4
4
|
import { ECalendarViewMode as r, ECalendarPickType as i } from "./enums.js";
|
|
5
|
-
const
|
|
6
|
-
format:
|
|
7
|
-
limitRange:
|
|
8
|
-
pickType: i.
|
|
5
|
+
const l = e.createContext({
|
|
6
|
+
format: a,
|
|
7
|
+
limitRange: o,
|
|
8
|
+
pickType: i.DATE,
|
|
9
9
|
viewDate: t().startOf("day"),
|
|
10
10
|
viewMode: r.DAYS,
|
|
11
11
|
periodId: "",
|
|
@@ -17,6 +17,6 @@ const c = e.createContext({
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
l as CalendarContext
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=CalendarContext.js.map
|
|
@@ -8,7 +8,7 @@ import { EButtonIconShape as E, EButtonTheme as L } from "../../Button/enums.js"
|
|
|
8
8
|
import { ECalendarViewMode as e } from "../enums.js";
|
|
9
9
|
import { globalLimitRange as O } from "../../../consts/DateConst.js";
|
|
10
10
|
import { EComponentSize as V } from "../../../enums/EComponentSize.js";
|
|
11
|
-
const U = "
|
|
11
|
+
const U = "calendarControls__498fe629", j = {
|
|
12
12
|
calendarControls: U
|
|
13
13
|
}, X = ({
|
|
14
14
|
children: m,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
const
|
|
3
|
-
calendarFooter:
|
|
4
|
-
}, t = ({ children:
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
const e = "calendarFooter__53b1f6c1", r = {
|
|
3
|
+
calendarFooter: e
|
|
4
|
+
}, t = ({ children: o }) => /* @__PURE__ */ a("div", { className: r.calendarFooter, children: o });
|
|
5
5
|
t.displayName = "CalendarFooter";
|
|
6
6
|
export {
|
|
7
7
|
t as CalendarFooter
|
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { CalendarContext as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { EButtonTheme as
|
|
1
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
+
import A, { useContext as E } from "react";
|
|
3
|
+
import { CalendarContext as O } from "../CalendarContext.js";
|
|
4
|
+
import { Button as g } from "../../Button/Button.js";
|
|
5
|
+
import { EButtonTheme as M } from "../../Button/enums.js";
|
|
6
6
|
import { ECalendarPickType as f, ECalendarViewMode as o } from "../enums.js";
|
|
7
|
-
import { isDateOutOfRange as l, isDayDisabled as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
E,
|
|
7
|
+
import { isDateOutOfRange as l, isDayDisabled as N } from "../utils.js";
|
|
8
|
+
const R = A.forwardRef(
|
|
9
|
+
({ date: e, currentPeriodSelected: p, disabled: t, onClick: r, ...D }, u) => {
|
|
10
|
+
const { format: d, limitRange: i, pickType: n, viewMode: a, disabledDays: C, onPageChange: m, onViewChange: s, onDateSelect: S } = E(O), T = (h) => {
|
|
11
|
+
p ? S(e) : n === f.DATE ? a === o.DAYS ? m(e, o.DAYS) : s(e, o.DAYS) : a === o.MONTHS ? m(e, o.MONTHS) : s(e, o.MONTHS), r == null || r(h);
|
|
12
|
+
}, c = () => t !== void 0 ? t : n === f.DATE ? l(e, i, "day") || N(e.format(d), C) : l(e, i, "month");
|
|
13
|
+
return /* @__PURE__ */ y(
|
|
14
|
+
g,
|
|
16
15
|
{
|
|
17
|
-
theme:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
...d,
|
|
16
|
+
theme: M.SECONDARY,
|
|
17
|
+
...D,
|
|
18
|
+
disabled: c(),
|
|
19
|
+
onClick: T,
|
|
22
20
|
ref: u
|
|
23
21
|
}
|
|
24
22
|
);
|
|
25
23
|
}
|
|
26
24
|
);
|
|
27
|
-
|
|
25
|
+
R.displayName = "CalendarFooterButton";
|
|
28
26
|
export {
|
|
29
|
-
|
|
27
|
+
R as CalendarFooterButton
|
|
30
28
|
};
|
|
31
29
|
//# sourceMappingURL=CalendarFooterButton.js.map
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { jsxs as U, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { useContext as k, useCallback as O, useState as L, useEffect as q } from "react";
|
|
2
|
+
import { useContext as k, useCallback as O, useState as H, useEffect as L } from "react";
|
|
4
3
|
import c from "moment";
|
|
4
|
+
import { c as q } from "../../../chunks/vendor-z35N2Tap.js";
|
|
5
5
|
import { isDateOutOfRange as g, isDayDisabled as z } from "../utils.js";
|
|
6
6
|
import { WEEKDAYS_SET as J } from "../../../consts/DateConst.js";
|
|
7
7
|
import { CalendarViewContext as Q } from "../CalendarViewContext.js";
|
|
8
|
-
import { s as y, C as X } from "../../../chunks/CalendarViewItem-
|
|
8
|
+
import { s as y, C as X } from "../../../chunks/CalendarViewItem-0qx9TN09.js";
|
|
9
9
|
import { isKey as d } from "../../../utils/keyboard.js";
|
|
10
10
|
import { ECalendarDateMarkType as Z, ECalendarViewMode as E } from "../enums.js";
|
|
11
11
|
import { CalendarContext as ee } from "../CalendarContext.js";
|
|
12
|
-
const me = ({
|
|
13
|
-
pickedDate: o,
|
|
14
|
-
dayHtmlAttributes: D = {}
|
|
15
|
-
}) => {
|
|
12
|
+
const me = ({ pickedDate: o, dayHtmlAttributes: D = {} }) => {
|
|
16
13
|
const { format: m, periodId: x, limitRange: h, viewDate: n, markedDays: f, disabledDays: w, onDateSelect: I, onPageChange: C } = k(ee), { viewItemFocusedRef: S } = k(Q), M = n.clone().startOf("month").startOf("week"), b = O(
|
|
17
14
|
(e) => g(e, h, "day") || z(e.format(m), w),
|
|
18
15
|
[h, w, m]
|
|
@@ -25,8 +22,8 @@ const me = ({
|
|
|
25
22
|
if (e.add(a, "day"), !b(e))
|
|
26
23
|
return e;
|
|
27
24
|
}
|
|
28
|
-
}, [o, n, b]), [T, A] =
|
|
29
|
-
|
|
25
|
+
}, [o, n, b]), [T, A] = H(p());
|
|
26
|
+
L(() => {
|
|
30
27
|
S.current || A(p());
|
|
31
28
|
}, [n, S, p]);
|
|
32
29
|
const N = () => {
|
|
@@ -41,7 +38,7 @@ const me = ({
|
|
|
41
38
|
`calendar-table-header-${t}`
|
|
42
39
|
)) }) });
|
|
43
40
|
}, V = () => /* @__PURE__ */ l("tbody", { className: y.calendarViewDaysBody, children: [0, 1, 2, 3, 4, 5].map((e) => /* @__PURE__ */ l("tr", { children: [0, 1, 2, 3, 4, 5, 6].map((a) => W(e, a)) }, `calendar-table-row-${e}`)) }), W = (e, a) => {
|
|
44
|
-
const t = c(M).add(e * 7 + a, "day"), r =
|
|
41
|
+
const t = c(M).add(e * 7 + a, "day"), r = q({ [y.current]: v(t) }), s = B(t), u = b(t), $ = !u && _(t), j = P(t), R = K(t);
|
|
45
42
|
return /* @__PURE__ */ l(
|
|
46
43
|
X,
|
|
47
44
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../../chunks/vendor---Om3uMV.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import "../../../chunks/vendor-z35N2Tap.js";
|
|
4
4
|
import "../enums.js";
|
|
5
5
|
import "../CalendarViewContext.js";
|
|
6
6
|
import "../../../utils/keyboard.js";
|
|
7
|
-
import { C } from "../../../chunks/CalendarViewItem-
|
|
7
|
+
import { C } from "../../../chunks/CalendarViewItem-0qx9TN09.js";
|
|
8
8
|
export {
|
|
9
9
|
C as CalendarViewItem
|
|
10
10
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useContext as
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as O, useCallback as R, useState as H, useEffect as F } from "react";
|
|
3
3
|
import h from "moment";
|
|
4
|
-
import { CalendarContext as
|
|
4
|
+
import { CalendarContext as G } from "../CalendarContext.js";
|
|
5
5
|
import { CalendarViewContext as K } from "../CalendarViewContext.js";
|
|
6
|
-
import { isDateOutOfRange as
|
|
7
|
-
import { s as B, C as U } from "../../../chunks/CalendarViewItem-
|
|
8
|
-
import { isKey as
|
|
6
|
+
import { isDateOutOfRange as S } from "../utils.js";
|
|
7
|
+
import { s as B, C as U } from "../../../chunks/CalendarViewItem-0qx9TN09.js";
|
|
8
|
+
import { isKey as i } from "../../../utils/keyboard.js";
|
|
9
9
|
import { ECalendarPickType as Y, ECalendarViewMode as u } from "../enums.js";
|
|
10
10
|
const Z = ({ pickedDate: r, monthHtmlAttributes: T = {} }) => {
|
|
11
|
-
const { pickType: w, periodId:
|
|
12
|
-
(e) =>
|
|
13
|
-
[
|
|
14
|
-
), d =
|
|
11
|
+
const { pickType: w, periodId: A, limitRange: m, viewDate: o, onDateSelect: g, onPageChange: D, onViewChange: E } = O(G), { viewItemFocusedRef: y } = O(K), _ = h.monthsShort(), b = R(
|
|
12
|
+
(e) => S(e, m, "month"),
|
|
13
|
+
[m]
|
|
14
|
+
), d = R(() => {
|
|
15
15
|
if (r && r.isSame(o, "year"))
|
|
16
16
|
return r;
|
|
17
17
|
{
|
|
@@ -20,43 +20,43 @@ const Z = ({ pickedDate: r, monthHtmlAttributes: T = {} }) => {
|
|
|
20
20
|
if (e.add(t, "month"), !b(e))
|
|
21
21
|
return e;
|
|
22
22
|
}
|
|
23
|
-
}, [r, o, b]), [p, C] =
|
|
24
|
-
|
|
23
|
+
}, [r, o, b]), [p, C] = H(d());
|
|
24
|
+
F(() => {
|
|
25
25
|
y.current || C(d());
|
|
26
26
|
}, [o, y, d]);
|
|
27
|
-
const
|
|
28
|
-
const a = e * 3 + t, n = o.clone().startOf("month").month(a),
|
|
29
|
-
return /* @__PURE__ */
|
|
27
|
+
const x = () => /* @__PURE__ */ f("tbody", { children: [0, 1, 2, 3].map((e) => /* @__PURE__ */ f("tr", { children: [0, 1, 2].map((t) => I(e, t)) }, `calendar-view-months-row-${e}`)) }), I = (e, t) => {
|
|
28
|
+
const a = e * 3 + t, n = o.clone().startOf("month").month(a), l = M(n), c = b(n), v = !c && N(n);
|
|
29
|
+
return /* @__PURE__ */ f(
|
|
30
30
|
U,
|
|
31
31
|
{
|
|
32
32
|
...T,
|
|
33
33
|
date: n,
|
|
34
34
|
unit: "month",
|
|
35
|
-
active:
|
|
35
|
+
active: l,
|
|
36
36
|
disabled: c,
|
|
37
37
|
tabbable: v,
|
|
38
|
-
onKeyDown:
|
|
39
|
-
onDateSelect:
|
|
40
|
-
children:
|
|
38
|
+
onKeyDown: P(n),
|
|
39
|
+
onDateSelect: V,
|
|
40
|
+
children: _[a]
|
|
41
41
|
},
|
|
42
42
|
`calendar-table-data-${t}`
|
|
43
43
|
);
|
|
44
|
-
},
|
|
44
|
+
}, M = (e) => r == null ? !1 : r.isSame(e, "month"), N = (e) => p ? e.isSame(p, "month") : !1, P = (e) => (t) => {
|
|
45
45
|
const a = t.code || t.keyCode;
|
|
46
46
|
let n;
|
|
47
|
-
|
|
47
|
+
i(a, "ARROW_RIGHT") ? (n = s(e, "add", 1, "month"), t.preventDefault()) : i(a, "ARROW_LEFT") ? (n = s(e, "subtract", 1, "month"), t.preventDefault()) : i(a, "ARROW_DOWN") ? (n = s(e, "add", 3, "month"), t.preventDefault()) : i(a, "ARROW_UP") ? (n = s(e, "subtract", 3, "month"), t.preventDefault()) : i(a, "PAGE_DOWN") ? (n = s(e, "add", 1, "year"), t.preventDefault()) : i(a, "PAGE_UP") && (n = s(e, "subtract", 1, "year"), t.preventDefault()), n && W(n);
|
|
48
48
|
}, s = (e, t, a, n) => {
|
|
49
|
-
const
|
|
50
|
-
add: h.fn.add.bind(
|
|
51
|
-
subtract: h.fn.subtract.bind(
|
|
49
|
+
const l = e.clone(), c = {
|
|
50
|
+
add: h.fn.add.bind(l),
|
|
51
|
+
subtract: h.fn.subtract.bind(l)
|
|
52
52
|
}[t];
|
|
53
|
-
return c(a, n),
|
|
54
|
-
},
|
|
55
|
-
w === Y.
|
|
56
|
-
},
|
|
53
|
+
return c(a, n), S(l, m, "month") ? e : l;
|
|
54
|
+
}, V = (e) => {
|
|
55
|
+
w === Y.MONTH_YEAR ? g(e) : E(e, u.DAYS);
|
|
56
|
+
}, W = (e) => {
|
|
57
57
|
C(e), e.isBefore(o, "year") ? (e = o.clone().subtract(1, "year"), D(e, u.MONTHS)) : e.isAfter(o, "year") && (e = o.clone().add(1, "year"), D(e, u.MONTHS));
|
|
58
58
|
};
|
|
59
|
-
return /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ f("table", { className: B.calendarViewMonths, role: "grid", "aria-labelledby": A, children: x() });
|
|
60
60
|
};
|
|
61
61
|
export {
|
|
62
62
|
Z as CalendarViewMonths
|
|
@@ -4,7 +4,7 @@ import w from "moment";
|
|
|
4
4
|
import { CalendarContext as N } from "../CalendarContext.js";
|
|
5
5
|
import { CalendarViewContext as G } from "../CalendarViewContext.js";
|
|
6
6
|
import { isDateOutOfRange as O } from "../utils.js";
|
|
7
|
-
import { s as K, C as H } from "../../../chunks/CalendarViewItem-
|
|
7
|
+
import { s as K, C as H } from "../../../chunks/CalendarViewItem-0qx9TN09.js";
|
|
8
8
|
import { isKey as i } from "../../../utils/keyboard.js";
|
|
9
9
|
import { ECalendarViewMode as y } from "../enums.js";
|
|
10
10
|
const Q = ({ pickedDate: s, yearHtmlAttributes: S = {} }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var I = /* @__PURE__ */ ((A) => (A
|
|
1
|
+
var I = /* @__PURE__ */ ((A) => (A.DATE = "date", A.MONTH_YEAR = "month_year", A))(I || {}), N = /* @__PURE__ */ ((A) => (A.DAYS = "days", A.MONTHS = "months", A.YEARS = "years", A))(N || {}), S = /* @__PURE__ */ ((A) => (A[A.BASIC = 0] = "BASIC", A[A.STANDARD = 1] = "STANDARD", A[A.ATTENTION = 2] = "ATTENTION", A[A.CRITICAL = 3] = "CRITICAL", A))(S || {});
|
|
2
2
|
export {
|
|
3
3
|
S as ECalendarDateMarkType,
|
|
4
4
|
I as ECalendarPickType,
|