@sberbusiness/triplex-next 0.1.9 → 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/chunks/{AlertProcessSpoiler-BPbAJJFo.js → AlertProcessSpoiler-BthiLiMe.js} +14 -14
- 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-BtMEMrGK.js → ListItemControlsButton-rF_5JaM-.js} +12 -12
- 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-CxR_OPBn.js +36 -0
- 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 +16 -16
- 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 +4 -4
- 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 +26 -26
- 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 +15 -15
- 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 +51 -49
- package/components/FormField/FormFieldContext.js +9 -8
- package/components/FormField/components/FormFieldClear.js +19 -18
- package/components/FormField/components/FormFieldCounter.js +4 -4
- package/components/FormField/components/FormFieldDescription.js +4 -4
- 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 +13 -13
- package/components/FormField/components/FormFieldPrefix.js +9 -9
- 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 +15 -15
- package/components/List/List.js +12 -20
- package/components/List/ListSortable.js +3 -3
- package/components/List/components/ListEmptyState.js +6 -6
- package/components/List/components/ListItem.js +6 -15
- package/components/List/components/ListItemContent.js +9 -9
- package/components/List/components/ListItemControls.js +7 -7
- 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 +5 -5
- 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 +7 -7
- package/components/ListMaster/components/SelectionControls.js +7 -7
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +18 -17
- 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 +7 -7
- package/components/Pagination/components/PaginationNavigationExtended.js +3 -3
- package/components/Pagination/components/PaginationNavigationExtendedItem.js +1 -1
- package/components/Pagination/components/PaginationPageButton.js +7 -6
- package/components/Pagination/components/PaginationPageEllipsis.js +3 -3
- package/components/Pagination/components/PaginationSelect.js +12 -12
- 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 +10 -10
- 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 +8 -8
- 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 +5 -5
- 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 +14 -14
- package/components/Typography/Text.js +24 -24
- package/components/Typography/Title.js +22 -22
- 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 +213 -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/Card.module-Oqawy8hF.js +0 -17
- package/chunks/DropdownListItem-CW2MmFpw.js +0 -56
- package/chunks/DropdownMobile.module-DyunEp10.js +0 -19
- package/chunks/Footer.module-o57OEPdy.js +0 -11
- package/chunks/FormFieldInput-C2qWOLr3.js +0 -62
- package/chunks/HeaderLayoutSidebar.module-CzpXvDdH.js +0 -9
- package/chunks/HeaderTabs.module-CC0WAcoC.js +0 -9
- package/chunks/HeaderTitle.module-CH7eRK8R.js +0 -9
- package/chunks/ListItemTail.module-BBV_gvLd.js +0 -12
- package/chunks/ListMasterFooter.module-Cw1r4pz-.js +0 -10
- package/chunks/Overlay.module-08zZh8Y9.js +0 -18
- package/chunks/Page.module-Ccvf_vDR.js +0 -16
- package/chunks/TabsExtended.module-yT8L2ZYS.js +0 -13
- package/chunks/TabsExtendedUtils-BOHZcNx8.js +0 -23
- package/chunks/TooltipDesktop.module-CvcpQSlC.js +0 -19
- package/chunks/index-CAZEh1iw.js +0 -931
- package/chunks/utils-9a4dp5-W.js +0 -36
- 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,22 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { j as a } from "../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
import { globalLimitRange as o, dateFormatYYYYMMDD as t } from "../../consts/DateConst.js";
|
|
4
|
+
import { ECalendarViewMode as r, ECalendarPickType as i } from "./enums.js";
|
|
5
|
+
const c = e.createContext({
|
|
6
|
+
format: t,
|
|
7
|
+
limitRange: o,
|
|
8
|
+
pickType: i.datePick,
|
|
9
|
+
viewDate: a().startOf("day"),
|
|
10
|
+
viewMode: r.DAYS,
|
|
11
|
+
periodId: "",
|
|
12
|
+
onDateSelect: () => {
|
|
13
|
+
},
|
|
14
|
+
onPageChange: () => {
|
|
15
|
+
},
|
|
16
|
+
onViewChange: () => {
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
c as CalendarContext
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=CalendarContext.js.map
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsxs as T, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as D } from "react";
|
|
3
|
+
import { CaretleftStrokeSrvIcon24 as B, CaretrightStrokeSrvIcon24 as v } from "@sberbusiness/icons-next";
|
|
4
|
+
import { CalendarContext as w } from "../CalendarContext.js";
|
|
5
|
+
import { Button as H } from "../../Button/Button.js";
|
|
6
|
+
import { ButtonIcon as A } from "../../Button/ButtonIcon.js";
|
|
7
|
+
import { EButtonIconShape as b, EButtonTheme as L } from "../../Button/enums.js";
|
|
8
|
+
import { ECalendarViewMode as e } from "../enums.js";
|
|
9
|
+
import { globalLimitRange as E } from "../../../consts/DateConst.js";
|
|
10
|
+
import { EComponentSize as V } from "../../../enums/EComponentSize.js";
|
|
11
|
+
const U = "calendarControls__b19a1ac3", j = {
|
|
12
|
+
calendarControls: U
|
|
13
|
+
}, X = ({
|
|
14
|
+
children: m,
|
|
15
|
+
prevButtonProps: i = {},
|
|
16
|
+
nextButtonProps: d = {},
|
|
17
|
+
viewButtonProps: c = {}
|
|
18
|
+
}) => {
|
|
19
|
+
const { viewDate: a, viewMode: n, limitRange: u, periodId: S, onPageChange: h, onViewChange: p } = D(w), O = () => {
|
|
20
|
+
const { disabled: t, onClick: o, ...r } = typeof i == "function" ? i(n) : i;
|
|
21
|
+
return /* @__PURE__ */ s(
|
|
22
|
+
A,
|
|
23
|
+
{
|
|
24
|
+
shape: b.CIRCLE,
|
|
25
|
+
disabled: t || N(),
|
|
26
|
+
onClick: R(o),
|
|
27
|
+
...r,
|
|
28
|
+
children: /* @__PURE__ */ s(B, { paletteIndex: 5 })
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}, g = () => {
|
|
32
|
+
const { disabled: t, onClick: o, ...r } = typeof d == "function" ? d(n) : d;
|
|
33
|
+
return /* @__PURE__ */ s(
|
|
34
|
+
A,
|
|
35
|
+
{
|
|
36
|
+
shape: b.CIRCLE,
|
|
37
|
+
disabled: t || Y(),
|
|
38
|
+
onClick: x(o),
|
|
39
|
+
...r,
|
|
40
|
+
children: /* @__PURE__ */ s(v, { paletteIndex: 5 })
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}, I = () => {
|
|
44
|
+
const { onClick: t, ...o } = typeof c == "function" ? c(n) : c;
|
|
45
|
+
return /* @__PURE__ */ s(
|
|
46
|
+
H,
|
|
47
|
+
{
|
|
48
|
+
id: S,
|
|
49
|
+
"aria-live": "polite",
|
|
50
|
+
theme: L.LINK,
|
|
51
|
+
size: V.SM,
|
|
52
|
+
onClick: M(t),
|
|
53
|
+
...o,
|
|
54
|
+
children: m
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}, N = () => {
|
|
58
|
+
const t = a.clone();
|
|
59
|
+
return n === e.DAYS ? t.startOf("month") : n === e.MONTHS ? t.startOf("year") : n === e.YEARS && t.startOf("year").subtract(5, "years"), t.subtract(1, "day").isBefore(u.dateFrom || E.dateFrom, "day");
|
|
60
|
+
}, Y = () => {
|
|
61
|
+
const t = a.clone();
|
|
62
|
+
return n === e.DAYS ? t.endOf("month") : n === e.MONTHS ? t.endOf("year") : n === e.YEARS && t.endOf("year").add(6, "years"), t.add(1, "day").isAfter(u.dateTo || E.dateTo, "day");
|
|
63
|
+
}, R = (t) => (o) => {
|
|
64
|
+
const r = C(), l = y(), f = a.clone().subtract(l, r);
|
|
65
|
+
h(f, n), t == null || t(o);
|
|
66
|
+
}, x = (t) => (o) => {
|
|
67
|
+
const r = C(), l = y(), f = a.clone().add(l, r);
|
|
68
|
+
h(f, n), t == null || t(o);
|
|
69
|
+
}, M = (t) => (o) => {
|
|
70
|
+
n === e.DAYS ? p(a, e.MONTHS) : n === e.MONTHS && p(a, e.YEARS), t == null || t(o);
|
|
71
|
+
}, C = () => {
|
|
72
|
+
switch (n) {
|
|
73
|
+
case e.DAYS:
|
|
74
|
+
return "month";
|
|
75
|
+
case e.MONTHS:
|
|
76
|
+
case e.YEARS:
|
|
77
|
+
return "year";
|
|
78
|
+
}
|
|
79
|
+
}, y = () => {
|
|
80
|
+
switch (n) {
|
|
81
|
+
case e.DAYS:
|
|
82
|
+
case e.MONTHS:
|
|
83
|
+
return 1;
|
|
84
|
+
case e.YEARS:
|
|
85
|
+
return 12;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
return /* @__PURE__ */ T("div", { className: j.calendarControls, children: [
|
|
89
|
+
O(),
|
|
90
|
+
n === e.YEARS ? /* @__PURE__ */ s("span", { id: S, tabIndex: -1, "aria-live": "polite", children: m }) : I(),
|
|
91
|
+
g()
|
|
92
|
+
] });
|
|
93
|
+
};
|
|
94
|
+
export {
|
|
95
|
+
X as CalendarControls
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=CalendarControls.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
const e = "calendarFooter__5b36db54", r = {
|
|
3
|
+
calendarFooter: e
|
|
4
|
+
}, t = ({ children: o }) => /* @__PURE__ */ a("div", { className: r.calendarFooter, children: o });
|
|
5
|
+
t.displayName = "CalendarFooter";
|
|
6
|
+
export {
|
|
7
|
+
t as CalendarFooter
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=CalendarFooter.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as M } from "react/jsx-runtime";
|
|
2
|
+
import O, { useContext as T } from "react";
|
|
3
|
+
import { CalendarContext as g } from "../CalendarContext.js";
|
|
4
|
+
import { Button as E } from "../../Button/Button.js";
|
|
5
|
+
import { EButtonTheme as N } from "../../Button/enums.js";
|
|
6
|
+
import { ECalendarPickType as f, ECalendarViewMode as o } from "../enums.js";
|
|
7
|
+
import { isDateOutOfRange as l, isDayDisabled as R } from "../utils.js";
|
|
8
|
+
import { EComponentSize as w } from "../../../enums/EComponentSize.js";
|
|
9
|
+
const x = O.forwardRef(
|
|
10
|
+
({ date: e, currentPeriodSelected: p, disabled: r, onClick: t, ...d }, u) => {
|
|
11
|
+
const { format: D, limitRange: i, pickType: n, viewMode: a, disabledDays: S, onPageChange: m, onViewChange: s, onDateSelect: C } = T(g), c = (y) => {
|
|
12
|
+
p ? C(e) : n === f.datePick ? a === o.DAYS ? m(e, o.DAYS) : s(e, o.DAYS) : a === o.MONTHS ? m(e, o.MONTHS) : s(e, o.MONTHS), t == null || t(y);
|
|
13
|
+
}, h = () => r !== void 0 ? r : n === f.datePick ? l(e, i, "day") || R(e.format(D), S) : l(e, i, "month");
|
|
14
|
+
return /* @__PURE__ */ M(
|
|
15
|
+
E,
|
|
16
|
+
{
|
|
17
|
+
theme: N.SECONDARY,
|
|
18
|
+
size: w.SM,
|
|
19
|
+
onClick: c,
|
|
20
|
+
disabled: h(),
|
|
21
|
+
...d,
|
|
22
|
+
ref: u
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
x.displayName = "CalendarFooterButton";
|
|
28
|
+
export {
|
|
29
|
+
x as CalendarFooterButton
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=CalendarFooterButton.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as d, useRef as f } from "react";
|
|
3
|
+
import { CalendarContext as C } from "../CalendarContext.js";
|
|
4
|
+
import { CalendarViewContext as c } from "../CalendarViewContext.js";
|
|
5
|
+
import { ECalendarViewMode as o } from "../enums.js";
|
|
6
|
+
import { CalendarViewDays as l } from "./CalendarViewDays.js";
|
|
7
|
+
import { CalendarViewMonths as w } from "./CalendarViewMonths.js";
|
|
8
|
+
import { CalendarViewYears as p } from "./CalendarViewYears.js";
|
|
9
|
+
const Y = ({
|
|
10
|
+
dayHtmlAttributes: t,
|
|
11
|
+
monthHtmlAttributes: n,
|
|
12
|
+
yearHtmlAttributes: a,
|
|
13
|
+
...r
|
|
14
|
+
}) => {
|
|
15
|
+
const { viewMode: i } = d(C), m = f(!1), s = () => {
|
|
16
|
+
switch (i) {
|
|
17
|
+
case o.DAYS:
|
|
18
|
+
return /* @__PURE__ */ e(l, { dayHtmlAttributes: t, ...r });
|
|
19
|
+
case o.MONTHS:
|
|
20
|
+
return /* @__PURE__ */ e(w, { monthHtmlAttributes: n, ...r });
|
|
21
|
+
case o.YEARS:
|
|
22
|
+
return /* @__PURE__ */ e(p, { yearHtmlAttributes: a, ...r });
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ e(c.Provider, { value: { viewItemFocusedRef: m }, children: s() });
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
Y as CalendarView
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=CalendarView.js.map
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { jsxs as U, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { j as c, c as H } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
import { useContext as R, useCallback as O, useState as L, useEffect as q } from "react";
|
|
4
|
+
import { isDateOutOfRange as g, isDayDisabled as z } from "../utils.js";
|
|
5
|
+
import { WEEKDAYS_SET as J } from "../../../consts/DateConst.js";
|
|
6
|
+
import { CalendarViewContext as Q } from "../CalendarViewContext.js";
|
|
7
|
+
import { s as y, C as X } from "../../../chunks/CalendarViewItem-CNP7C3l_.js";
|
|
8
|
+
import { isKey as d } from "../../../utils/keyboard.js";
|
|
9
|
+
import { ECalendarDateMarkType as Z, ECalendarViewMode as E } from "../enums.js";
|
|
10
|
+
import { CalendarContext as ee } from "../CalendarContext.js";
|
|
11
|
+
const fe = ({
|
|
12
|
+
pickedDate: o,
|
|
13
|
+
dayHtmlAttributes: D = {}
|
|
14
|
+
}) => {
|
|
15
|
+
const { format: m, periodId: x, limitRange: h, viewDate: n, markedDays: f, disabledDays: w, onDateSelect: I, onPageChange: C } = R(ee), { viewItemFocusedRef: S } = R(Q), M = n.clone().startOf("month").startOf("week"), b = O(
|
|
16
|
+
(e) => g(e, h, "day") || z(e.format(m), w),
|
|
17
|
+
[h, w, m]
|
|
18
|
+
), p = O(() => {
|
|
19
|
+
if (o && o.isSame(n, "month"))
|
|
20
|
+
return o;
|
|
21
|
+
{
|
|
22
|
+
const e = n.clone().startOf("month");
|
|
23
|
+
for (let a = 0; a < e.daysInMonth(); a++)
|
|
24
|
+
if (e.add(a, "day"), !b(e))
|
|
25
|
+
return e;
|
|
26
|
+
}
|
|
27
|
+
}, [o, n, b]), [T, k] = L(p());
|
|
28
|
+
q(() => {
|
|
29
|
+
S.current || k(p());
|
|
30
|
+
}, [n, S, p]);
|
|
31
|
+
const N = () => {
|
|
32
|
+
const e = c.weekdays(!0), a = c.weekdaysMin(!0);
|
|
33
|
+
return /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: J.map((t) => /* @__PURE__ */ l(
|
|
34
|
+
"th",
|
|
35
|
+
{
|
|
36
|
+
className: y.calendarViewDaysHeader,
|
|
37
|
+
abbr: e[t],
|
|
38
|
+
children: a[t]
|
|
39
|
+
},
|
|
40
|
+
`calendar-table-header-${t}`
|
|
41
|
+
)) }) });
|
|
42
|
+
}, 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) => {
|
|
43
|
+
const t = c(M).add(e * 7 + a, "day"), r = H({ [y.current]: v(t) }), s = B(t), u = b(t), Y = !u && _(t), $ = P(t), A = K(t);
|
|
44
|
+
return /* @__PURE__ */ l(
|
|
45
|
+
X,
|
|
46
|
+
{
|
|
47
|
+
className: r,
|
|
48
|
+
...typeof D == "function" ? D({ marked: A !== void 0 }) : D,
|
|
49
|
+
date: t,
|
|
50
|
+
unit: "day",
|
|
51
|
+
active: s,
|
|
52
|
+
disabled: u,
|
|
53
|
+
tabbable: Y,
|
|
54
|
+
muted: $,
|
|
55
|
+
markType: A,
|
|
56
|
+
onKeyDown: j(t),
|
|
57
|
+
onDateSelect: F,
|
|
58
|
+
children: t.date()
|
|
59
|
+
},
|
|
60
|
+
`calendar-table-data-${a}`
|
|
61
|
+
);
|
|
62
|
+
}, _ = (e) => T ? e.isSame(T, "day") : !1, P = (e) => !e.isSame(n, "month"), v = (e) => e.isSame(c(), "day"), B = (e) => !!o && e.isSame(o, "day"), K = (e) => {
|
|
63
|
+
if (f) {
|
|
64
|
+
const a = e.format(m);
|
|
65
|
+
if (Array.isArray(f)) {
|
|
66
|
+
if (f.includes(a))
|
|
67
|
+
return Z.BASIC;
|
|
68
|
+
} else if (a in f)
|
|
69
|
+
return f[e.format(m)];
|
|
70
|
+
}
|
|
71
|
+
}, i = (e, a, t, r) => {
|
|
72
|
+
const s = e.clone(), u = {
|
|
73
|
+
add: c.fn.add.bind(s),
|
|
74
|
+
subtract: c.fn.subtract.bind(s)
|
|
75
|
+
}[a];
|
|
76
|
+
for (; u(t, r); ) {
|
|
77
|
+
if (g(s, h, "day"))
|
|
78
|
+
return e;
|
|
79
|
+
if (!b(s))
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
return s;
|
|
83
|
+
}, j = (e) => (a) => {
|
|
84
|
+
const t = a.code || a.keyCode;
|
|
85
|
+
let r;
|
|
86
|
+
d(t, "ARROW_RIGHT") ? (r = i(e, "add", 1, "day"), a.preventDefault()) : d(t, "ARROW_LEFT") ? (r = i(e, "subtract", 1, "day"), a.preventDefault()) : d(t, "ARROW_DOWN") ? (r = i(e, "add", 1, "week"), a.preventDefault()) : d(t, "ARROW_UP") ? (r = i(e, "subtract", 1, "week"), a.preventDefault()) : d(t, "PAGE_DOWN") ? (r = i(e, "add", 1, "month"), a.preventDefault()) : d(t, "PAGE_UP") && (r = i(e, "subtract", 1, "month"), a.preventDefault()), r && G(r);
|
|
87
|
+
}, F = (e) => {
|
|
88
|
+
I(e);
|
|
89
|
+
}, G = (e) => {
|
|
90
|
+
k(e), e.isBefore(n, "month") ? (e = n.clone().subtract(1, "month"), C(e, E.DAYS)) : e.isAfter(n, "month") && (e = n.clone().add(1, "month"), C(e, E.DAYS));
|
|
91
|
+
};
|
|
92
|
+
return /* @__PURE__ */ U("table", { className: y.calendarViewDays, role: "grid", "aria-labelledby": x, children: [
|
|
93
|
+
N(),
|
|
94
|
+
V()
|
|
95
|
+
] });
|
|
96
|
+
};
|
|
97
|
+
export {
|
|
98
|
+
fe as CalendarViewDays
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=CalendarViewDays.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "../../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../enums.js";
|
|
5
|
+
import "../CalendarViewContext.js";
|
|
6
|
+
import "../../../utils/keyboard.js";
|
|
7
|
+
import { C } from "../../../chunks/CalendarViewItem-CNP7C3l_.js";
|
|
8
|
+
export {
|
|
9
|
+
C as CalendarViewItem
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=CalendarViewItem.js.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as S, useCallback as O, useState as F, useEffect as G } from "react";
|
|
3
|
+
import { j as h } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
4
|
+
import { CalendarContext as H } from "../CalendarContext.js";
|
|
5
|
+
import { CalendarViewContext as K } from "../CalendarViewContext.js";
|
|
6
|
+
import { isDateOutOfRange as R } from "../utils.js";
|
|
7
|
+
import { s as j, C as k } from "../../../chunks/CalendarViewItem-CNP7C3l_.js";
|
|
8
|
+
import { isKey as l } from "../../../utils/keyboard.js";
|
|
9
|
+
import { ECalendarPickType as B, ECalendarViewMode as u } from "../enums.js";
|
|
10
|
+
const Z = ({ pickedDate: r, monthHtmlAttributes: T = {} }) => {
|
|
11
|
+
const { pickType: w, periodId: g, limitRange: m, viewDate: o, onDateSelect: A, onPageChange: D, onViewChange: P } = S(H), { viewItemFocusedRef: y } = S(K), x = h.monthsShort(), b = O(
|
|
12
|
+
(e) => R(e, m, "month"),
|
|
13
|
+
[m]
|
|
14
|
+
), d = O(() => {
|
|
15
|
+
if (r && r.isSame(o, "year"))
|
|
16
|
+
return r;
|
|
17
|
+
{
|
|
18
|
+
const e = o.clone().startOf("year");
|
|
19
|
+
for (let t = 0; t < 12; t++)
|
|
20
|
+
if (e.add(t, "month"), !b(e))
|
|
21
|
+
return e;
|
|
22
|
+
}
|
|
23
|
+
}, [r, o, b]), [p, C] = F(d());
|
|
24
|
+
G(() => {
|
|
25
|
+
y.current || C(d());
|
|
26
|
+
}, [o, y, d]);
|
|
27
|
+
const E = () => /* @__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 n = e * 3 + t, a = o.clone().startOf("month").month(n), i = V(a), c = b(a), v = !c && W(a);
|
|
29
|
+
return /* @__PURE__ */ f(
|
|
30
|
+
k,
|
|
31
|
+
{
|
|
32
|
+
...T,
|
|
33
|
+
date: a,
|
|
34
|
+
unit: "month",
|
|
35
|
+
active: i,
|
|
36
|
+
disabled: c,
|
|
37
|
+
tabbable: v,
|
|
38
|
+
onKeyDown: _(a),
|
|
39
|
+
onDateSelect: M,
|
|
40
|
+
children: x[n]
|
|
41
|
+
},
|
|
42
|
+
`calendar-table-data-${t}`
|
|
43
|
+
);
|
|
44
|
+
}, V = (e) => r == null ? !1 : r.isSame(e, "month"), W = (e) => p ? e.isSame(p, "month") : !1, _ = (e) => (t) => {
|
|
45
|
+
const n = t.code || t.keyCode;
|
|
46
|
+
let a;
|
|
47
|
+
l(n, "ARROW_RIGHT") ? (a = s(e, "add", 1, "month"), t.preventDefault()) : l(n, "ARROW_LEFT") ? (a = s(e, "subtract", 1, "month"), t.preventDefault()) : l(n, "ARROW_DOWN") ? (a = s(e, "add", 3, "month"), t.preventDefault()) : l(n, "ARROW_UP") ? (a = s(e, "subtract", 3, "month"), t.preventDefault()) : l(n, "PAGE_DOWN") ? (a = s(e, "add", 1, "year"), t.preventDefault()) : l(n, "PAGE_UP") && (a = s(e, "subtract", 1, "year"), t.preventDefault()), a && N(a);
|
|
48
|
+
}, s = (e, t, n, a) => {
|
|
49
|
+
const i = e.clone(), c = {
|
|
50
|
+
add: h.fn.add.bind(i),
|
|
51
|
+
subtract: h.fn.subtract.bind(i)
|
|
52
|
+
}[t];
|
|
53
|
+
return c(n, a), R(i, m, "month") ? e : i;
|
|
54
|
+
}, M = (e) => {
|
|
55
|
+
w === B.monthYearPick ? A(e) : P(e, u.DAYS);
|
|
56
|
+
}, N = (e) => {
|
|
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
|
+
};
|
|
59
|
+
return /* @__PURE__ */ f("table", { className: j.calendarViewMonths, role: "grid", "aria-labelledby": g, children: E() });
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
Z as CalendarViewMonths
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=CalendarViewMonths.js.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as h, useCallback as C, useState as v, useEffect as F } from "react";
|
|
3
|
+
import { j as w } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
4
|
+
import { CalendarContext as N } from "../CalendarContext.js";
|
|
5
|
+
import { CalendarViewContext as G } from "../CalendarViewContext.js";
|
|
6
|
+
import { isDateOutOfRange as O } from "../utils.js";
|
|
7
|
+
import { s as K, C as j } from "../../../chunks/CalendarViewItem-CNP7C3l_.js";
|
|
8
|
+
import { isKey as i } from "../../../utils/keyboard.js";
|
|
9
|
+
import { ECalendarViewMode as y } from "../enums.js";
|
|
10
|
+
const Q = ({ pickedDate: s, yearHtmlAttributes: S = {} }) => {
|
|
11
|
+
const { periodId: g, limitRange: d, viewDate: n, onPageChange: m, onViewChange: A } = h(N), { viewItemFocusedRef: D } = h(G), T = n.year(), b = C(
|
|
12
|
+
(e) => O(e, d, "year"),
|
|
13
|
+
[d]
|
|
14
|
+
), u = C(() => {
|
|
15
|
+
if (s && s.isSame(n, "year"))
|
|
16
|
+
return s;
|
|
17
|
+
{
|
|
18
|
+
const e = n.clone().subtract(5, "year");
|
|
19
|
+
for (let a = 0; a < 12; a++)
|
|
20
|
+
if (e.add(a, "month"), !b(e))
|
|
21
|
+
return e;
|
|
22
|
+
}
|
|
23
|
+
}, [s, n, b]), [p, R] = v(u());
|
|
24
|
+
F(() => {
|
|
25
|
+
D.current || R(u());
|
|
26
|
+
}, [n, D, u]);
|
|
27
|
+
const E = () => /* @__PURE__ */ f("tbody", { children: [0, 1, 2, 3].map((e) => /* @__PURE__ */ f("tr", { children: [0, 1, 2].map((a) => x(e, a)) }, `calendar-view-years-row-${e}`)) }), x = (e, a) => {
|
|
28
|
+
const t = T + e * 3 + a - 5, r = n.clone().startOf("year").year(t), l = I(r), c = b(r), Y = !c && V(r);
|
|
29
|
+
return /* @__PURE__ */ f(
|
|
30
|
+
j,
|
|
31
|
+
{
|
|
32
|
+
...S,
|
|
33
|
+
date: r,
|
|
34
|
+
unit: "year",
|
|
35
|
+
active: l,
|
|
36
|
+
disabled: c,
|
|
37
|
+
tabbable: Y,
|
|
38
|
+
onKeyDown: W(r),
|
|
39
|
+
onDateSelect: _,
|
|
40
|
+
children: t
|
|
41
|
+
},
|
|
42
|
+
`calendar-table-data-${a}`
|
|
43
|
+
);
|
|
44
|
+
}, I = (e) => s == null ? !1 : s.isSame(e, "year"), V = (e) => p ? e.isSame(p, "year") : !1, W = (e) => (a) => {
|
|
45
|
+
const t = a.code || a.keyCode;
|
|
46
|
+
let r;
|
|
47
|
+
i(t, "ARROW_RIGHT") ? (r = o(e, "add", 1, "year"), a.preventDefault()) : i(t, "ARROW_LEFT") ? (r = o(e, "subtract", 1, "year"), a.preventDefault()) : i(t, "ARROW_DOWN") ? (r = o(e, "add", 3, "year"), a.preventDefault()) : i(t, "ARROW_UP") ? (r = o(e, "subtract", 3, "year"), a.preventDefault()) : i(t, "PAGE_DOWN") ? (r = o(e, "add", 12, "year"), a.preventDefault()) : i(t, "PAGE_UP") && (r = o(e, "subtract", 12, "year"), a.preventDefault()), r && P(r);
|
|
48
|
+
}, o = (e, a, t, r) => {
|
|
49
|
+
const l = e.clone(), c = {
|
|
50
|
+
add: w.fn.add.bind(l),
|
|
51
|
+
subtract: w.fn.subtract.bind(l)
|
|
52
|
+
}[a];
|
|
53
|
+
return c(t, r), O(l, d, "year") ? e : l;
|
|
54
|
+
}, _ = (e) => {
|
|
55
|
+
A(e, y.MONTHS);
|
|
56
|
+
}, P = (e) => {
|
|
57
|
+
R(e), e.year() + 5 < n.year() ? (e = n.clone().subtract(12, "years"), m(e, y.YEARS)) : e.year() - 6 > n.year() && (e = n.clone().add(12, "years"), m(e, y.YEARS));
|
|
58
|
+
};
|
|
59
|
+
return /* @__PURE__ */ f("table", { className: K.calendarViewYears, role: "grid", "aria-labelledby": g, children: E() });
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
Q as CalendarViewYears
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=CalendarViewYears.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var I = /* @__PURE__ */ ((A) => (A[A.datePick = 0] = "datePick", A[A.monthYearPick = 1] = "monthYearPick", 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
|
+
export {
|
|
3
|
+
S as ECalendarDateMarkType,
|
|
4
|
+
I as ECalendarPickType,
|
|
5
|
+
N as ECalendarViewMode
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Calendar as r } from "./Calendar.js";
|
|
2
|
+
import { ECalendarDateMarkType as o, ECalendarPickType as l, ECalendarViewMode as n } from "./enums.js";
|
|
3
|
+
export {
|
|
4
|
+
r as Calendar,
|
|
5
|
+
o as ECalendarDateMarkType,
|
|
6
|
+
l as ECalendarPickType,
|
|
7
|
+
n as ECalendarViewMode
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { j as s } from "../../chunks/vendor-BlJo2ILB.js";
|
|
2
|
+
import { globalLimitRange as f, headerDateFormat as i } from "../../consts/DateConst.js";
|
|
3
|
+
import { ECalendarViewMode as a } from "./enums.js";
|
|
4
|
+
function Y(e, r) {
|
|
5
|
+
return e ? typeof e == "string" ? s(e, r) : e : null;
|
|
6
|
+
}
|
|
7
|
+
function c(e, r) {
|
|
8
|
+
let t;
|
|
9
|
+
return r && r.isValid() ? t = r : e && e.isValid() ? t = e : t = s(), t.format(i);
|
|
10
|
+
}
|
|
11
|
+
function l(e, r) {
|
|
12
|
+
const t = e || s();
|
|
13
|
+
switch (r) {
|
|
14
|
+
case a.DAYS:
|
|
15
|
+
return c(t);
|
|
16
|
+
case a.MONTHS:
|
|
17
|
+
return t.clone().format("YYYY");
|
|
18
|
+
case a.YEARS: {
|
|
19
|
+
const o = t.clone().add(-5, "y").format("YYYY"), n = t.clone().add(6, "y").format("YYYY");
|
|
20
|
+
return `${o} - ${n}`;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function y(e, r, t) {
|
|
25
|
+
const o = r.dateFrom || f.dateFrom, n = r.dateTo || f.dateTo;
|
|
26
|
+
return e.isBefore(o, t) || e.isAfter(n, t);
|
|
27
|
+
}
|
|
28
|
+
function D(e, r) {
|
|
29
|
+
return r === void 0 ? !1 : r.includes(e);
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
l as formatDate,
|
|
33
|
+
c as getHeader,
|
|
34
|
+
y as isDateOutOfRange,
|
|
35
|
+
D as isDayDisabled,
|
|
36
|
+
Y as parsePickedDate
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var o = (c, i, e) =>
|
|
4
|
-
import { jsx as
|
|
1
|
+
var b = Object.defineProperty;
|
|
2
|
+
var y = (c, i, e) => i in c ? b(c, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[i] = e;
|
|
3
|
+
var o = (c, i, e) => y(c, typeof i != "symbol" ? i + "" : i, e);
|
|
4
|
+
import { jsx as R } from "react/jsx-runtime";
|
|
5
5
|
import u from "react";
|
|
6
|
-
import { CardContent as
|
|
7
|
-
import { CardMedia as
|
|
8
|
-
import { ECardRoundingSize as
|
|
6
|
+
import { CardContent as T } from "./components/CardContent/CardContent.js";
|
|
7
|
+
import { CardMedia as M } from "./components/CardMedia.js";
|
|
8
|
+
import { ECardRoundingSize as w, ECardTheme as x } from "./enums.js";
|
|
9
9
|
import { EFocusSource as r } from "../../enums/EFocusSource.js";
|
|
10
|
-
import { mapCardRoundingSizeToCssClass as
|
|
10
|
+
import { mapCardRoundingSizeToCssClass as K, mapCardThemeToCssClass as _ } from "./utils.js";
|
|
11
11
|
import { isKey as p } from "../../utils/keyboard.js";
|
|
12
|
-
import { c as k } from "../../chunks/vendor-
|
|
13
|
-
import { c as B } from "../../chunks/Card.module-
|
|
14
|
-
const O = "
|
|
12
|
+
import { c as k } from "../../chunks/vendor-BlJo2ILB.js";
|
|
13
|
+
import { c as B } from "../../chunks/Card.module-BxAU0ct3.js";
|
|
14
|
+
const O = "action__823a5563", F = "selected__981bcb70", V = "focusVisible__91355044", a = {
|
|
15
15
|
action: O,
|
|
16
16
|
selected: F,
|
|
17
17
|
focusVisible: V
|
|
@@ -38,16 +38,16 @@ class l extends u.Component {
|
|
|
38
38
|
s == null || s(e), p(e.keyCode, "SPACE") ? (e.preventDefault(), this.handleToggle()) : p(e.keyCode, "ENTER") && this.handleToggle();
|
|
39
39
|
});
|
|
40
40
|
o(this, "handleFocus", (e) => {
|
|
41
|
-
const { onFocus: s } = this.props, { focusSource: t } = this.state, { current:
|
|
42
|
-
s == null || s(e), !t &&
|
|
41
|
+
const { onFocus: s } = this.props, { focusSource: t } = this.state, { current: n } = this.ref;
|
|
42
|
+
s == null || s(e), !t && n === e.target && this.setState({ focusSource: r.KEYBOARD });
|
|
43
43
|
});
|
|
44
44
|
o(this, "handleBlur", (e) => {
|
|
45
45
|
const { onBlur: s } = this.props, { current: t } = this.ref;
|
|
46
46
|
s == null || s(e), t !== document.activeElement && t === e.target && this.setState({ focusSource: r.NONE });
|
|
47
47
|
});
|
|
48
48
|
o(this, "handleToggle", () => {
|
|
49
|
-
const { toggle: e, selected: s, onToggle: t } = this.props, { isControlled:
|
|
50
|
-
|
|
49
|
+
const { toggle: e, selected: s, onToggle: t } = this.props, { isControlled: n, isSelected: d } = this.state;
|
|
50
|
+
n ? e == null || e(!s) : this.setState(
|
|
51
51
|
(h) => ({ isSelected: !h.isSelected }),
|
|
52
52
|
() => t == null ? void 0 : t(!d)
|
|
53
53
|
);
|
|
@@ -62,28 +62,28 @@ class l extends u.Component {
|
|
|
62
62
|
children: e,
|
|
63
63
|
className: s,
|
|
64
64
|
onClick: t,
|
|
65
|
-
onMouseDown:
|
|
65
|
+
onMouseDown: n,
|
|
66
66
|
onKeyDown: d,
|
|
67
67
|
onFocus: h,
|
|
68
68
|
onBlur: z,
|
|
69
|
-
roundingSize: f =
|
|
69
|
+
roundingSize: f = w.MD,
|
|
70
70
|
onToggle: A,
|
|
71
71
|
selected: m,
|
|
72
72
|
toggle: U,
|
|
73
|
-
theme: S =
|
|
73
|
+
theme: S = x.GENERAL,
|
|
74
74
|
...C
|
|
75
75
|
} = this.props, { isControlled: E, isSelected: g, focusSource: D } = this.state, N = k(
|
|
76
76
|
B.card,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
a.action,
|
|
78
|
+
_[S],
|
|
79
|
+
K[f],
|
|
80
80
|
{
|
|
81
|
-
[
|
|
82
|
-
[
|
|
81
|
+
[a.focusVisible]: D === r.KEYBOARD,
|
|
82
|
+
[a.selected]: E ? !!m : g
|
|
83
83
|
},
|
|
84
84
|
s
|
|
85
85
|
);
|
|
86
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ R(
|
|
87
87
|
"div",
|
|
88
88
|
{
|
|
89
89
|
className: N,
|
|
@@ -96,13 +96,13 @@ class l extends u.Component {
|
|
|
96
96
|
role: "button",
|
|
97
97
|
...C,
|
|
98
98
|
ref: this.ref,
|
|
99
|
-
"data-tx": "0.
|
|
99
|
+
"data-tx": "0.10.0",
|
|
100
100
|
children: e
|
|
101
101
|
}
|
|
102
102
|
);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
o(l, "displayName", "CardAction"), o(l, "Content",
|
|
105
|
+
o(l, "displayName", "CardAction"), o(l, "Content", T), o(l, "Media", M);
|
|
106
106
|
export {
|
|
107
107
|
l as CardAction
|
|
108
108
|
};
|
|
@@ -2,8 +2,8 @@ import { jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { CardContent as s } from "./components/CardContent/CardContent.js";
|
|
3
3
|
import { CardMedia as e } from "./components/CardMedia.js";
|
|
4
4
|
import { mapCardRoundingSizeToCssClass as C, mapCardThemeToCssClass as p } from "./utils.js";
|
|
5
|
-
import { c } from "../../chunks/vendor-
|
|
6
|
-
import { c as n } from "../../chunks/Card.module-
|
|
5
|
+
import { c } from "../../chunks/vendor-BlJo2ILB.js";
|
|
6
|
+
import { c as n } from "../../chunks/Card.module-BxAU0ct3.js";
|
|
7
7
|
import { ECardRoundingSize as f, ECardTheme as l } from "./enums.js";
|
|
8
8
|
const a = ({
|
|
9
9
|
children: r,
|
|
@@ -21,7 +21,7 @@ const a = ({
|
|
|
21
21
|
o
|
|
22
22
|
),
|
|
23
23
|
...d,
|
|
24
|
-
"data-tx": "0.
|
|
24
|
+
"data-tx": "0.10.0",
|
|
25
25
|
children: r
|
|
26
26
|
}
|
|
27
27
|
);
|
|
@@ -3,8 +3,8 @@ import { CardContentBody as C } from "./components/CardContentBody.js";
|
|
|
3
3
|
import { CardContentHeader as i } from "./components/CardContentHeader.js";
|
|
4
4
|
import { CardContentFooter as s } from "./components/CardContentFooter.js";
|
|
5
5
|
import { ECardContentPaddingSize as t } from "../../enums.js";
|
|
6
|
-
import { c as p } from "../../../../chunks/vendor-
|
|
7
|
-
import { c as r } from "../../../../chunks/Card.module-
|
|
6
|
+
import { c as p } from "../../../../chunks/vendor-BlJo2ILB.js";
|
|
7
|
+
import { c as r } from "../../../../chunks/Card.module-BxAU0ct3.js";
|
|
8
8
|
const c = {
|
|
9
9
|
[t.MD]: r.paddingMD,
|
|
10
10
|
[t.SM]: r.paddingSM
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as d } from "../../../../../chunks/vendor-
|
|
3
|
-
import { c as s } from "../../../../../chunks/Card.module-
|
|
2
|
+
import { c as d } from "../../../../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
import { c as s } from "../../../../../chunks/Card.module-BxAU0ct3.js";
|
|
4
4
|
const m = ({ children: o, className: t, ...r }) => /* @__PURE__ */ a("div", { className: d(s.cardContentBody, t), ...r, children: o });
|
|
5
5
|
m.displayName = "CardContentBody";
|
|
6
6
|
export {
|