@dxtmisha/constructor 0.39.5 → 0.52.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/ai-types.txt +4901 -284
- package/dist/ActionsInclude-BzyGXlK7.js +23 -0
- package/dist/AriaStaticInclude-CS1hPGyK.js +89 -0
- package/dist/ArrowInclude-BM_RP5vO.js +14 -0
- package/dist/BadgeInclude-DISlNqBJ.js +17 -0
- package/dist/BarsInclude-rBLacb0J.js +35 -0
- package/dist/BlockDesign-DkbPo-Ey.js +106 -0
- package/dist/ButtonDesign-DTihOCBe.js +87 -0
- package/dist/ButtonInclude-Bq7DNI-R.js +23 -0
- package/dist/CaptionInclude-CunHUsec.js +41 -0
- package/dist/DescriptionInclude-B_Xf_j3l.js +36 -0
- package/dist/EnabledInclude-CkD_lxMY.js +11 -0
- package/dist/EventClickInclude-6I8kuFc9.js +63 -0
- package/dist/FieldCounterInclude-l1o0Bm7V.js +22 -0
- package/dist/FieldEventInclude-DLX__9aJ.js +257 -0
- package/dist/FieldInclude-DCvNorOt.js +87 -0
- package/dist/FieldInputCheckInclude-czZ02ymY.js +170 -0
- package/dist/FieldLabelInclude-BA5H3kib.js +27 -0
- package/dist/FieldMatchInclude-CA716pa4.js +100 -0
- package/dist/FieldMessageInclude-6cxMqgIx.js +27 -0
- package/dist/HorizontalScrollInclude-BN6p9jjq.js +30 -0
- package/dist/IconInclude-BhzGfa3o.js +44 -0
- package/dist/IconTrailingInclude-BwoB_AQn.js +23 -0
- package/dist/ImageInclude-CP-Q4R20.js +18 -0
- package/dist/LabelHighlightInclude-DC9qNAR-.js +30 -0
- package/dist/LabelInclude-DoZ7EUYO.js +56 -0
- package/dist/LabelNumberInclude-VVGMvwYq.js +15 -0
- package/dist/ListGroupOpen-C6J8d4SM.js +12 -0
- package/dist/MaskInclude-DuE6XcDZ.js +48 -0
- package/dist/MenuInclude-BT27rmFW.js +48 -0
- package/dist/ModalDesignAbstract-BaVdtb1N.js +63 -0
- package/dist/ModelInclude-D8LkrhPp.js +32 -0
- package/dist/ModelValueInclude-CQDkIoal.js +20 -0
- package/dist/MotionAxisInclude-DO4t3_lZ.js +18 -0
- package/dist/MotionTransformClassesInclude-BN-T4YKS.js +91 -0
- package/dist/MotionTransformInclude-CFVVig1F.js +52 -0
- package/dist/Plugin-cWn0HZcf.js +205 -0
- package/dist/ProgressInclude-BnPBYwJg.js +15 -0
- package/dist/RippleInclude-BlC1h0Ya.js +10 -0
- package/dist/ScrollToXInclude-yt1sAUrP.js +15 -0
- package/dist/ScrollbarInclude-B4_ZIqkW.js +55 -0
- package/dist/SkeletonInclude-D8on8xmw.js +39 -0
- package/dist/SuffixInclude-VNq8SwAI.js +67 -0
- package/dist/TabIndexInclude-DLSfl7-6.js +88 -0
- package/dist/TabsNavigationInclude-DU9Nb7hG.js +17 -0
- package/dist/TextInclude-OwyVCAbS.js +90 -0
- package/dist/TooltipInclude-3iLdbNcH.js +27 -0
- package/dist/TouchEventInclude-By_ChOIe.js +84 -0
- package/dist/WindowClassesInclude-zm-ITw5d.js +89 -0
- package/dist/WindowEsc-vBFI8pVr.js +28 -0
- package/dist/WindowInclude-GF4aSfrJ.js +66 -0
- package/dist/accordion.js +76 -177
- package/dist/actionSheet.js +61 -139
- package/dist/actions.js +59 -190
- package/dist/anchor.js +134 -357
- package/dist/arrow.js +279 -665
- package/dist/badge.js +47 -135
- package/dist/bars.js +120 -331
- package/dist/block.js +2 -10
- package/dist/button.js +3 -65
- package/dist/cell.js +117 -274
- package/dist/checkbox.js +112 -0
- package/dist/chip.js +24 -81
- package/dist/chipGroup.js +48 -159
- package/dist/classes/AriaStaticInclude.d.ts +28 -0
- package/dist/classes/CaptionInclude.d.ts +64 -1
- package/dist/classes/DescriptionInclude.d.ts +4 -16
- package/dist/classes/EventClickInclude.d.ts +25 -1
- package/dist/classes/Field/FieldAttributesInclude.d.ts +2 -0
- package/dist/classes/Field/FieldEventInclude.d.ts +6 -6
- package/dist/classes/Field/FieldInputModeInclude.d.ts +1 -0
- package/dist/classes/LabelInclude.d.ts +4 -17
- package/dist/classes/Plugin/PluginCode.d.ts +0 -8
- package/dist/classes/PrefixInclude.d.ts +9 -1
- package/dist/classes/ScrollToXInclude.d.ts +35 -0
- package/dist/classes/SuffixInclude.d.ts +9 -1
- package/dist/classes/TabIndexInclude.d.ts +14 -8
- package/dist/classes/TextInclude.d.ts +33 -5
- package/dist/constructors/Accordion/Accordion.d.ts +37 -2
- package/dist/constructors/Accordion/props.d.ts +6 -6
- package/dist/constructors/Accordion/types.d.ts +3 -4
- package/dist/constructors/ActionSheet/ActionSheet.d.ts +19 -2
- package/dist/constructors/ActionSheet/props.d.ts +2 -0
- package/dist/constructors/Actions/Actions.d.ts +5 -1
- package/dist/constructors/Actions/ActionsDesign.d.ts +2 -1
- package/dist/constructors/Actions/basicTypes.d.ts +3 -0
- package/dist/constructors/Actions/props.d.ts +5 -0
- package/dist/constructors/Actions/types.d.ts +2 -0
- package/dist/constructors/Anchor/Anchor.d.ts +17 -15
- package/dist/constructors/Anchor/AnchorIcon.d.ts +3 -3
- package/dist/constructors/Anchor/basicTypes.d.ts +4 -0
- package/dist/constructors/Anchor/index.d.ts +4 -0
- package/dist/constructors/Anchor/props.d.ts +15 -4
- package/dist/constructors/Anchor/types.d.ts +3 -2
- package/dist/constructors/Arrow/Arrow.d.ts +13 -11
- package/dist/constructors/Arrow/basicTypes.d.ts +9 -0
- package/dist/constructors/Arrow/index.d.ts +5 -0
- package/dist/constructors/Arrow/props.d.ts +3 -0
- package/dist/constructors/Arrow/types.d.ts +1 -0
- package/dist/constructors/Badge/Badge.d.ts +9 -1
- package/dist/constructors/Badge/BadgeDesign.d.ts +2 -1
- package/dist/constructors/Badge/basicTypes.d.ts +11 -0
- package/dist/constructors/Badge/index.d.ts +1 -0
- package/dist/constructors/Badge/props.d.ts +1 -0
- package/dist/constructors/Bars/Bars.d.ts +41 -2
- package/dist/constructors/Bars/BarsAction.d.ts +6 -2
- package/dist/constructors/Bars/BarsDesign.d.ts +2 -1
- package/dist/constructors/Bars/BarsInclude.d.ts +7 -2
- package/dist/constructors/Bars/basicTypes.d.ts +4 -0
- package/dist/constructors/Bars/index.d.ts +1 -0
- package/dist/constructors/Bars/props.d.ts +16 -3
- package/dist/constructors/Bars/types.d.ts +7 -3
- package/dist/constructors/Block/Block.d.ts +11 -9
- package/dist/constructors/Block/BlockDesign.d.ts +9 -1
- package/dist/constructors/Block/props.d.ts +3 -0
- package/dist/constructors/Block/types.d.ts +3 -3
- package/dist/constructors/Button/Button.d.ts +31 -1
- package/dist/constructors/Button/ButtonDesign.d.ts +2 -1
- package/dist/constructors/Button/ButtonInclude.d.ts +6 -4
- package/dist/constructors/Button/basicTypes.d.ts +17 -0
- package/dist/constructors/Button/props.d.ts +5 -5
- package/dist/constructors/Button/types.d.ts +4 -4
- package/dist/constructors/Cell/Cell.d.ts +21 -1
- package/dist/constructors/Cell/CellDesign.d.ts +9 -6
- package/dist/constructors/Cell/basicTypes.d.ts +3 -1
- package/dist/constructors/Cell/props.d.ts +4 -0
- package/dist/constructors/Cell/types.d.ts +7 -5
- package/dist/constructors/Checkbox/Checkbox.d.ts +90 -0
- package/dist/constructors/Checkbox/CheckboxDesign.d.ts +73 -0
- package/dist/constructors/Checkbox/CheckboxIcon.d.ts +33 -0
- package/dist/constructors/Checkbox/basicTypes.d.ts +1 -0
- package/dist/constructors/Checkbox/index.d.ts +6 -0
- package/dist/constructors/Checkbox/props.d.ts +44 -0
- package/dist/constructors/Checkbox/types.d.ts +49 -0
- package/dist/constructors/Chip/basicTypes.d.ts +10 -0
- package/dist/constructors/ChipGroup/ChipGroup.d.ts +9 -1
- package/dist/constructors/ChipGroup/ChipGroupDesign.d.ts +2 -1
- package/dist/constructors/ChipGroup/basicTypes.d.ts +3 -0
- package/dist/constructors/ChipGroup/props.d.ts +10 -0
- package/dist/constructors/ChipGroup/types.d.ts +1 -0
- package/dist/constructors/Dialog/Dialog.d.ts +31 -3
- package/dist/constructors/Dialog/props.d.ts +11 -0
- package/dist/constructors/Dialog/types.d.ts +2 -0
- package/dist/constructors/Dummy/Dummy.d.ts +29 -0
- package/dist/constructors/Dummy/DummyDesign.d.ts +43 -0
- package/dist/constructors/Dummy/basicTypes.d.ts +1 -0
- package/dist/constructors/Dummy/index.d.ts +5 -0
- package/dist/constructors/Dummy/props.d.ts +15 -0
- package/dist/constructors/Dummy/types.d.ts +37 -0
- package/dist/constructors/Field/Field.d.ts +48 -6
- package/dist/constructors/Field/FieldDesign.d.ts +2 -1
- package/dist/constructors/Field/FieldIcons.d.ts +4 -1
- package/dist/constructors/Field/FieldInclude.d.ts +8 -0
- package/dist/constructors/Field/FieldSize.d.ts +2 -1
- package/dist/constructors/Field/basicTypes.d.ts +15 -2
- package/dist/constructors/Field/index.d.ts +3 -0
- package/dist/constructors/Field/props.d.ts +14 -1
- package/dist/constructors/Field/types.d.ts +3 -0
- package/dist/constructors/FieldCounter/FieldCounter.d.ts +25 -1
- package/dist/constructors/FieldCounter/FieldCounterDesign.d.ts +9 -2
- package/dist/constructors/FieldCounter/basicTypes.d.ts +8 -1
- package/dist/constructors/FieldCounter/props.d.ts +13 -1
- package/dist/constructors/FieldCounter/types.d.ts +1 -0
- package/dist/constructors/FieldLabel/FieldLabel.d.ts +11 -1
- package/dist/constructors/FieldLabel/FieldLabelDesign.d.ts +2 -1
- package/dist/constructors/FieldLabel/FieldLabelInclude.d.ts +7 -5
- package/dist/constructors/FieldLabel/basicTypes.d.ts +4 -1
- package/dist/constructors/FieldLabel/props.d.ts +5 -0
- package/dist/constructors/FieldLabel/types.d.ts +2 -2
- package/dist/constructors/FieldMessage/FieldMessage.d.ts +21 -1
- package/dist/constructors/FieldMessage/FieldMessageDesign.d.ts +2 -1
- package/dist/constructors/FieldMessage/FieldMessageInclude.d.ts +8 -9
- package/dist/constructors/FieldMessage/basicTypes.d.ts +12 -1
- package/dist/constructors/FieldMessage/index.d.ts +1 -0
- package/dist/constructors/FieldMessage/props.d.ts +9 -0
- package/dist/constructors/Grid/Grid.d.ts +29 -0
- package/dist/constructors/Grid/GridDesign.d.ts +43 -0
- package/dist/constructors/Grid/basicTypes.d.ts +1 -0
- package/dist/constructors/Grid/index.d.ts +5 -0
- package/dist/constructors/Grid/props.d.ts +15 -0
- package/dist/constructors/Grid/types.d.ts +37 -0
- package/dist/constructors/GridItem/GridItem.d.ts +29 -0
- package/dist/constructors/GridItem/GridItemDesign.d.ts +43 -0
- package/dist/constructors/GridItem/basicTypes.d.ts +1 -0
- package/dist/constructors/GridItem/index.d.ts +5 -0
- package/dist/constructors/GridItem/props.d.ts +19 -0
- package/dist/constructors/GridItem/types.d.ts +37 -0
- package/dist/constructors/Group/Group.d.ts +6 -0
- package/dist/constructors/Group/GroupDesign.d.ts +18 -0
- package/dist/constructors/Group/basicTypes.d.ts +1 -0
- package/dist/constructors/Group/index.d.ts +5 -0
- package/dist/constructors/Group/props.d.ts +20 -0
- package/dist/constructors/Group/types.d.ts +44 -0
- package/dist/constructors/HorizontalScroll/HorizontalScroll.d.ts +67 -0
- package/dist/constructors/HorizontalScroll/HorizontalScrollDesign.d.ts +43 -0
- package/dist/constructors/HorizontalScroll/HorizontalScrollInclude.d.ts +67 -0
- package/dist/constructors/HorizontalScroll/basicTypes.d.ts +40 -0
- package/dist/constructors/HorizontalScroll/index.d.ts +6 -0
- package/dist/constructors/HorizontalScroll/props.d.ts +29 -0
- package/dist/constructors/HorizontalScroll/types.d.ts +39 -0
- package/dist/constructors/Icon/Icon.d.ts +12 -3
- package/dist/constructors/Icon/basicTypes.d.ts +33 -0
- package/dist/constructors/Icon/index.d.ts +1 -1
- package/dist/constructors/Icon/props.d.ts +8 -1
- package/dist/constructors/Icon/types.d.ts +7 -4
- package/dist/constructors/Image/Image.d.ts +21 -19
- package/dist/constructors/Image/ImageInclude.d.ts +3 -3
- package/dist/constructors/Image/ImageUint8Array.d.ts +47 -0
- package/dist/constructors/Image/basicTypes.d.ts +56 -7
- package/dist/constructors/Image/index.d.ts +15 -1
- package/dist/constructors/Image/types.d.ts +3 -0
- package/dist/constructors/Input/Input.d.ts +39 -1
- package/dist/constructors/Input/InputDesign.d.ts +2 -1
- package/dist/constructors/Input/InputPassword.d.ts +4 -1
- package/dist/constructors/Input/basicTypes.d.ts +5 -0
- package/dist/constructors/Input/index.d.ts +1 -0
- package/dist/constructors/List/List.d.ts +25 -7
- package/dist/constructors/List/ListControl.d.ts +12 -0
- package/dist/constructors/List/ListDesign.d.ts +2 -1
- package/dist/constructors/List/ListFocus.d.ts +10 -2
- package/dist/constructors/List/ListGo.d.ts +22 -4
- package/dist/constructors/List/basicTypes.d.ts +5 -0
- package/dist/constructors/List/index.d.ts +4 -0
- package/dist/constructors/List/props.d.ts +35 -2
- package/dist/constructors/List/types.d.ts +5 -0
- package/dist/constructors/ListGroup/ListGroup.d.ts +5 -1
- package/dist/constructors/ListGroup/ListGroupDesign.d.ts +2 -1
- package/dist/constructors/ListGroup/basicTypes.d.ts +4 -0
- package/dist/constructors/ListGroup/index.d.ts +1 -0
- package/dist/constructors/ListGroup/props.d.ts +1 -0
- package/dist/constructors/ListGroup/types.d.ts +3 -0
- package/dist/constructors/ListItem/ListItem.d.ts +35 -62
- package/dist/constructors/ListItem/basicTypes.d.ts +5 -0
- package/dist/constructors/ListItem/props.d.ts +15 -3
- package/dist/constructors/ListItem/types.d.ts +5 -2
- package/dist/constructors/ListMenu/ListMenu.d.ts +7 -1
- package/dist/constructors/ListMenu/ListMenuDesign.d.ts +2 -1
- package/dist/constructors/ListMenu/basicTypes.d.ts +5 -0
- package/dist/constructors/ListMenu/props.d.ts +3 -1
- package/dist/constructors/ListMenu/types.d.ts +2 -0
- package/dist/constructors/Mask/Mask.d.ts +49 -1
- package/dist/constructors/Mask/MaskDesign.d.ts +2 -1
- package/dist/constructors/Mask/basicTypes.d.ts +43 -0
- package/dist/constructors/Mask/index.d.ts +24 -0
- package/dist/constructors/Mask/props.d.ts +19 -0
- package/dist/constructors/Mask/types.d.ts +15 -0
- package/dist/constructors/Menu/Menu.d.ts +21 -1
- package/dist/constructors/Menu/MenuDesign.d.ts +2 -1
- package/dist/constructors/Menu/MenuInclude.d.ts +1 -0
- package/dist/constructors/Menu/basicTypes.d.ts +15 -0
- package/dist/constructors/Menu/index.d.ts +5 -0
- package/dist/constructors/Menu/props.d.ts +28 -1
- package/dist/constructors/Menu/types.d.ts +2 -0
- package/dist/constructors/Modal/Modal.d.ts +15 -1
- package/dist/constructors/Modal/ModalAbstract.d.ts +9 -1
- package/dist/constructors/Modal/ModalDesign.d.ts +1 -1
- package/dist/constructors/Modal/ModalDesignAbstract.d.ts +3 -2
- package/dist/constructors/Modal/index.d.ts +2 -0
- package/dist/constructors/Modal/props.d.ts +2 -0
- package/dist/constructors/Modal/types.d.ts +1 -0
- package/dist/constructors/MotionAxis/MotionAxis.d.ts +75 -0
- package/dist/constructors/MotionAxis/MotionAxisDesign.d.ts +49 -0
- package/dist/constructors/MotionAxis/MotionAxisElement.d.ts +132 -0
- package/dist/constructors/MotionAxis/MotionAxisGo.d.ts +103 -0
- package/dist/constructors/MotionAxis/MotionAxisInclude.d.ts +49 -0
- package/dist/constructors/MotionAxis/MotionAxisPrevious.d.ts +42 -0
- package/dist/constructors/MotionAxis/MotionAxisSelected.d.ts +31 -0
- package/dist/constructors/MotionAxis/MotionAxisSlides.d.ts +19 -0
- package/dist/constructors/MotionAxis/MotionAxisStatus.d.ts +88 -0
- package/dist/constructors/MotionAxis/MotionAxisStyles.d.ts +38 -0
- package/dist/constructors/MotionAxis/basicTypes.d.ts +42 -0
- package/dist/constructors/MotionAxis/index.d.ts +13 -0
- package/dist/constructors/MotionAxis/props.d.ts +35 -0
- package/dist/constructors/MotionAxis/types.d.ts +64 -0
- package/dist/constructors/MotionTransform/MotionTransform.d.ts +20 -8
- package/dist/constructors/MotionTransform/MotionTransformDesign.d.ts +16 -5
- package/dist/constructors/MotionTransform/MotionTransformEvent.d.ts +14 -0
- package/dist/constructors/MotionTransform/basicTypes.d.ts +1 -0
- package/dist/constructors/MotionTransform/index.d.ts +6 -1
- package/dist/constructors/MotionTransform/props.d.ts +19 -13
- package/dist/constructors/MotionTransform/types.d.ts +7 -5
- package/dist/constructors/Progress/Progress.d.ts +25 -1
- package/dist/constructors/Progress/ProgressDesign.d.ts +4 -60
- package/dist/constructors/Progress/basicTypes.d.ts +4 -0
- package/dist/constructors/Progress/props.d.ts +14 -3
- package/dist/constructors/Ripple/Ripple.d.ts +5 -1
- package/dist/constructors/Ripple/RippleDesign.d.ts +2 -1
- package/dist/constructors/Ripple/RippleInclude.d.ts +3 -3
- package/dist/constructors/Ripple/basicTypes.d.ts +6 -1
- package/dist/constructors/Ripple/index.d.ts +1 -0
- package/dist/constructors/Ripple/props.d.ts +1 -0
- package/dist/constructors/Scrollbar/Scrollbar.d.ts +7 -1
- package/dist/constructors/Scrollbar/ScrollbarDesign.d.ts +2 -1
- package/dist/constructors/Scrollbar/ScrollbarInclude.d.ts +3 -3
- package/dist/constructors/Scrollbar/basicTypes.d.ts +10 -1
- package/dist/constructors/Scrollbar/index.d.ts +2 -0
- package/dist/constructors/Scrollbar/props.d.ts +2 -0
- package/dist/constructors/Scrollbar/types.d.ts +8 -0
- package/dist/constructors/Select/Select.d.ts +25 -1
- package/dist/constructors/Select/SelectDesign.d.ts +2 -1
- package/dist/constructors/Select/index.d.ts +2 -0
- package/dist/constructors/Select/props.d.ts +9 -0
- package/dist/constructors/SelectValue/SelectValue.d.ts +9 -1
- package/dist/constructors/SelectValue/SelectValueDesign.d.ts +2 -1
- package/dist/constructors/SelectValue/basicTypes.d.ts +3 -0
- package/dist/constructors/SelectValue/props.d.ts +8 -0
- package/dist/constructors/Skeleton/SkeletonDesign.d.ts +2 -1
- package/dist/constructors/Skeleton/basicTypes.d.ts +13 -0
- package/dist/constructors/Skeleton/index.d.ts +2 -1
- package/dist/constructors/Skeleton/types.d.ts +2 -0
- package/dist/constructors/Snackbar/Snackbar.d.ts +47 -0
- package/dist/constructors/Snackbar/SnackbarData.d.ts +104 -0
- package/dist/constructors/Snackbar/SnackbarDesign.d.ts +63 -0
- package/dist/constructors/Snackbar/SnackbarEvent.d.ts +32 -0
- package/dist/constructors/Snackbar/basicTypes.d.ts +17 -0
- package/dist/constructors/Snackbar/index.d.ts +7 -0
- package/dist/constructors/Snackbar/props.d.ts +27 -0
- package/dist/constructors/Snackbar/types.d.ts +54 -0
- package/dist/constructors/SnackbarItem/SnackbarItem.d.ts +72 -0
- package/dist/constructors/SnackbarItem/SnackbarItemDesign.d.ts +67 -0
- package/dist/constructors/SnackbarItem/basicTypes.d.ts +28 -0
- package/dist/constructors/SnackbarItem/index.d.ts +5 -0
- package/dist/constructors/SnackbarItem/props.d.ts +43 -0
- package/dist/constructors/SnackbarItem/types.d.ts +56 -0
- package/dist/constructors/TabItem/TabItem.d.ts +120 -0
- package/dist/constructors/TabItem/TabItemDesign.d.ts +43 -0
- package/dist/constructors/TabItem/basicTypes.d.ts +8 -0
- package/dist/constructors/TabItem/index.d.ts +5 -0
- package/dist/constructors/TabItem/props.d.ts +40 -0
- package/dist/constructors/TabItem/types.d.ts +44 -0
- package/dist/constructors/Tabs/Tabs.d.ts +50 -0
- package/dist/constructors/Tabs/TabsDesign.d.ts +49 -0
- package/dist/constructors/Tabs/TabsSelected.d.ts +39 -0
- package/dist/constructors/Tabs/basicTypes.d.ts +1 -0
- package/dist/constructors/Tabs/index.d.ts +6 -0
- package/dist/constructors/Tabs/props.d.ts +20 -0
- package/dist/constructors/Tabs/types.d.ts +39 -0
- package/dist/constructors/TabsNavigation/TabsNavigation.d.ts +141 -0
- package/dist/constructors/TabsNavigation/TabsNavigationControl.d.ts +85 -0
- package/dist/constructors/TabsNavigation/TabsNavigationDesign.d.ts +60 -0
- package/dist/constructors/TabsNavigation/TabsNavigationFocus.d.ts +61 -0
- package/dist/constructors/TabsNavigation/TabsNavigationIds.d.ts +32 -0
- package/dist/constructors/TabsNavigation/TabsNavigationInclude.d.ts +43 -0
- package/dist/constructors/TabsNavigation/TabsNavigationIndicator.d.ts +55 -0
- package/dist/constructors/TabsNavigation/TabsNavigationSelected.d.ts +39 -0
- package/dist/constructors/TabsNavigation/basicTypes.d.ts +27 -0
- package/dist/constructors/TabsNavigation/index.d.ts +11 -0
- package/dist/constructors/TabsNavigation/props.d.ts +42 -0
- package/dist/constructors/TabsNavigation/types.d.ts +47 -0
- package/dist/constructors/Textarea/Textarea.d.ts +83 -0
- package/dist/constructors/Textarea/TextareaDesign.d.ts +51 -0
- package/dist/constructors/Textarea/basicTypes.d.ts +1 -0
- package/dist/constructors/Textarea/index.d.ts +5 -0
- package/dist/constructors/Textarea/props.d.ts +26 -0
- package/dist/constructors/Textarea/types.d.ts +38 -0
- package/dist/constructors/TextareaAutosize/TextareaAutosize.d.ts +7 -1
- package/dist/constructors/TextareaAutosize/TextareaAutosizeDesign.d.ts +2 -1
- package/dist/constructors/TextareaAutosize/basicTypes.d.ts +20 -1
- package/dist/constructors/TextareaAutosize/index.d.ts +2 -0
- package/dist/constructors/TextareaAutosize/props.d.ts +7 -2
- package/dist/constructors/TextareaAutosize/types.d.ts +2 -0
- package/dist/constructors/Tooltip/Tooltip.d.ts +105 -25
- package/dist/constructors/Tooltip/{TooltipClasses.d.ts → TooltipClassesData.d.ts} +1 -1
- package/dist/constructors/Tooltip/TooltipEvent.d.ts +7 -3
- package/dist/constructors/Tooltip/TooltipOpen.d.ts +6 -0
- package/dist/constructors/Tooltip/TooltipPosition.d.ts +3 -3
- package/dist/constructors/Tooltip/basicTypes.d.ts +15 -0
- package/dist/constructors/Tooltip/index.d.ts +6 -0
- package/dist/constructors/Tooltip/props.d.ts +19 -1
- package/dist/constructors/Tooltip/types.d.ts +4 -0
- package/dist/constructors/Window/Window.d.ts +54 -3
- package/dist/constructors/Window/{WindowClasses.d.ts → WindowClassesData.d.ts} +1 -1
- package/dist/constructors/Window/WindowCoordinates.d.ts +3 -3
- package/dist/constructors/Window/WindowDesign.d.ts +5 -63
- package/dist/constructors/Window/WindowElement.d.ts +3 -3
- package/dist/constructors/Window/WindowEmit.d.ts +3 -3
- package/dist/constructors/Window/WindowEsc.d.ts +2 -2
- package/dist/constructors/Window/WindowEvent.d.ts +20 -3
- package/dist/constructors/Window/WindowFlash.d.ts +3 -3
- package/dist/constructors/Window/WindowHidden.d.ts +10 -4
- package/dist/constructors/Window/WindowInclude.d.ts +5 -1
- package/dist/constructors/Window/WindowPersistent.d.ts +3 -3
- package/dist/constructors/Window/WindowVerification.d.ts +3 -3
- package/dist/constructors/Window/basicTypes.d.ts +15 -1
- package/dist/constructors/Window/index.d.ts +21 -3
- package/dist/constructors/Window/props.d.ts +61 -23
- package/dist/constructors/Window/types.d.ts +7 -7
- package/dist/defineProperty-hmGKPWdq.js +39 -0
- package/dist/dialog.js +89 -210
- package/dist/dummy.js +28 -0
- package/dist/field.js +220 -514
- package/dist/fieldCounter.js +77 -125
- package/dist/fieldLabel.js +63 -171
- package/dist/fieldMessage.js +82 -212
- package/dist/getClassTagAStatic-BPIEWyHY.js +4 -0
- package/dist/grid.js +31 -0
- package/dist/gridItem.js +31 -0
- package/dist/group.js +13 -0
- package/dist/horizontalScroll.js +57 -0
- package/dist/icon.js +82 -211
- package/dist/image.js +648 -1347
- package/dist/input.js +82 -341
- package/dist/library/checkbox.d.ts +1 -0
- package/dist/library/dummy.d.ts +1 -0
- package/dist/library/grid.d.ts +1 -0
- package/dist/library/gridItem.d.ts +1 -0
- package/dist/library/group.d.ts +1 -0
- package/dist/library/horizontalScroll.d.ts +1 -0
- package/dist/library/motionAxis.d.ts +1 -0
- package/dist/library/snackbar.d.ts +1 -0
- package/dist/library/snackbarItem.d.ts +1 -0
- package/dist/library/tabItem.d.ts +1 -0
- package/dist/library/tabs.d.ts +1 -0
- package/dist/library/tabsNavigation.d.ts +1 -0
- package/dist/library/textarea.d.ts +1 -0
- package/dist/library.d.ts +1 -0
- package/dist/library.js +21 -58
- package/dist/list.js +455 -997
- package/dist/listGroup.js +61 -170
- package/dist/listItem.js +113 -302
- package/dist/listMenu.js +51 -117
- package/dist/mask.js +1014 -2463
- package/dist/menu.js +200 -522
- package/dist/modal.js +28 -72
- package/dist/motionAxis.js +319 -0
- package/dist/motionTransform.js +225 -601
- package/dist/page.js +11 -28
- package/dist/plugin.js +2 -4
- package/dist/progress.js +123 -275
- package/dist/ripple.js +55 -134
- package/dist/scrollbar.js +99 -234
- package/dist/section.js +11 -28
- package/dist/select.js +163 -408
- package/dist/selectValue.js +87 -243
- package/dist/skeleton.js +32 -82
- package/dist/snackbar.js +143 -0
- package/dist/snackbarItem.js +119 -0
- package/dist/tabItem.js +64 -0
- package/dist/tabs.js +69 -0
- package/dist/tabsNavigation.js +212 -0
- package/dist/textarea.js +58 -0
- package/dist/textareaAutosize.js +83 -234
- package/dist/tooltip.js +236 -618
- package/dist/types/ariaTypes.d.ts +48 -21
- package/dist/types/captionTypes.d.ts +2 -0
- package/dist/types/descriptionTypes.d.ts +2 -7
- package/dist/types/eventClickTypes.d.ts +2 -0
- package/dist/types/fieldTypes.d.ts +29 -20
- package/dist/types/labelTypes.d.ts +0 -7
- package/dist/types/modelTypes.d.ts +30 -0
- package/dist/types/pluginTypes.d.ts +5 -1
- package/dist/types/prefixTypes.d.ts +2 -0
- package/dist/types/roleTypes.d.ts +1 -0
- package/dist/types/suffixTypes.d.ts +2 -0
- package/dist/types/textTypes.d.ts +60 -2
- package/dist/window.js +769 -1973
- package/package.json +57 -3
- package/src/constructors/Accordion/properties.json +16 -0
- package/src/constructors/ActionSheet/properties.json +14 -0
- package/src/constructors/Actions/properties.json +66 -0
- package/src/constructors/Actions/style.scss +0 -1
- package/src/constructors/Anchor/properties.json +3 -0
- package/src/constructors/Arrow/properties.json +23 -0
- package/src/constructors/Badge/properties.json +36 -0
- package/src/constructors/Bars/properties.json +5 -0
- package/src/constructors/Bars/style.scss +2 -0
- package/src/constructors/Block/properties.json +10 -0
- package/src/constructors/Button/properties.json +84 -0
- package/src/constructors/Cell/properties.json +52 -0
- package/src/constructors/Cell/style.scss +8 -3
- package/src/constructors/Checkbox/properties.json +65 -0
- package/src/constructors/Checkbox/style.scss +99 -0
- package/src/constructors/Chip/properties.json +3 -0
- package/src/constructors/ChipGroup/properties.json +3 -0
- package/src/constructors/Dialog/properties.json +23 -0
- package/src/constructors/Dummy/properties.json +2 -0
- package/src/constructors/Dummy/style.scss +5 -0
- package/src/constructors/Field/properties.json +92 -0
- package/src/constructors/Field/style.scss +2 -0
- package/src/constructors/FieldCounter/properties.json +4 -0
- package/src/constructors/FieldCounter/style.scss +5 -0
- package/src/constructors/FieldLabel/properties.json +4 -0
- package/src/constructors/FieldMessage/properties.json +10 -0
- package/src/constructors/Grid/properties.json +6 -0
- package/src/constructors/Grid/style.scss +8 -0
- package/src/constructors/GridItem/properties.json +40 -0
- package/src/constructors/GridItem/style.scss +5 -0
- package/src/constructors/Group/properties.json +3 -0
- package/src/constructors/Group/style.scss +6 -0
- package/src/constructors/HorizontalScroll/properties.json +26 -0
- package/src/constructors/HorizontalScroll/style.scss +27 -0
- package/src/constructors/Icon/properties.json +25 -0
- package/src/constructors/Image/properties.json +17 -0
- package/src/constructors/Input/properties.json +2 -0
- package/src/constructors/List/properties.json +16 -0
- package/src/constructors/ListGroup/properties.json +15 -0
- package/src/constructors/ListItem/properties.json +52 -0
- package/src/constructors/ListItem/style.scss +2 -0
- package/src/constructors/ListMenu/properties.json +19 -0
- package/src/constructors/Mask/properties.json +30 -0
- package/src/constructors/Mask/style.scss +6 -2
- package/src/constructors/Menu/properties.json +17 -0
- package/src/constructors/Modal/properties.json +17 -0
- package/src/constructors/MotionAxis/properties.json +15 -0
- package/src/constructors/MotionAxis/style.scss +110 -0
- package/src/constructors/MotionTransform/properties.json +35 -0
- package/src/constructors/Page/properties.json +3 -0
- package/src/constructors/Progress/properties.json +47 -0
- package/src/constructors/Progress/style.scss +2 -0
- package/src/constructors/Ripple/properties.json +9 -0
- package/src/constructors/Scrollbar/properties.json +33 -0
- package/src/constructors/Section/properties.json +3 -0
- package/src/constructors/Select/properties.json +3 -0
- package/src/constructors/SelectValue/properties.json +7 -0
- package/src/constructors/Skeleton/properties.json +24 -0
- package/src/constructors/Snackbar/properties.json +95 -0
- package/src/constructors/Snackbar/style.scss +58 -0
- package/src/constructors/SnackbarItem/properties.json +12 -0
- package/src/constructors/SnackbarItem/style.scss +30 -0
- package/src/constructors/TabItem/properties.json +49 -0
- package/src/constructors/TabItem/style.scss +64 -0
- package/src/constructors/Tabs/properties.json +3 -0
- package/src/constructors/Tabs/style.scss +5 -0
- package/src/constructors/TabsNavigation/properties.json +10 -0
- package/src/constructors/TabsNavigation/style.scss +5 -0
- package/src/constructors/Textarea/properties.json +2 -0
- package/src/constructors/Textarea/style.scss +5 -0
- package/src/constructors/TextareaAutosize/properties.json +9 -0
- package/src/constructors/TextareaAutosize/style.scss +9 -6
- package/src/constructors/Tooltip/properties.json +18 -0
- package/src/constructors/Tooltip/style.scss +10 -2
- package/src/constructors/Window/properties.json +240 -0
- package/src/constructors/Window/style.scss +7 -1
- package/src/library/style.scss +13 -0
- package/dist/ActionsInclude-H5ZWeXJj.js +0 -64
- package/dist/AriaStaticInclude-CFGewqpn.js +0 -219
- package/dist/ArrowInclude-CcpT637l.js +0 -47
- package/dist/BarsInclude-IM3Gdslg.js +0 -69
- package/dist/BlockDesign-D67yDT9N.js +0 -233
- package/dist/ButtonDesign-DZ7QCmHk.js +0 -169
- package/dist/CaptionInclude-AFVF4qyd.js +0 -52
- package/dist/DescriptionInclude-DxWNon_J.js +0 -65
- package/dist/EnabledInclude-DGeuJhOr.js +0 -46
- package/dist/EventClickInclude-eDWqxK0d.js +0 -93
- package/dist/FieldCounterInclude-BR6n8WlH.js +0 -59
- package/dist/FieldEventInclude-zg02dtQi.js +0 -715
- package/dist/FieldInclude-c6DSD0-y.js +0 -134
- package/dist/FieldInputCheckInclude-CjNYyGTb.js +0 -79
- package/dist/FieldLabelInclude-B4OGaJ1r.js +0 -64
- package/dist/FieldMatchInclude-Vl2gJUaM.js +0 -302
- package/dist/FieldMessageInclude-CktVHvWW.js +0 -71
- package/dist/IconInclude-CLqwI29Q.js +0 -123
- package/dist/IconTrailingInclude-CdsOcDxv.js +0 -83
- package/dist/LabelHighlightInclude-Dhj3p9NW.js +0 -75
- package/dist/LabelInclude-BtZrrbCf.js +0 -132
- package/dist/LabelNumberInclude-DyifvMnr.js +0 -46
- package/dist/ListGroupOpen-Bl_HIQoV.js +0 -43
- package/dist/MenuInclude-DfGCfr_I.js +0 -94
- package/dist/ModalDesignAbstract-CjDr5JaN.js +0 -179
- package/dist/ModelInclude-BiYm_iCQ.js +0 -73
- package/dist/ModelValueInclude-CJmm5go9.js +0 -48
- package/dist/MotionTransformClassesInclude-B23RIq0Q.js +0 -214
- package/dist/MotionTransformInclude-P_oRs3JZ.js +0 -97
- package/dist/Plugin-DUJ0epm4.js +0 -628
- package/dist/ProgressInclude-UBipdctr.js +0 -56
- package/dist/RippleInclude-Du5yIzX_.js +0 -21
- package/dist/SkeletonInclude-BIUzAO2s.js +0 -105
- package/dist/SuffixInclude-C7JNYCJK.js +0 -97
- package/dist/TabIndexInclude-d7A_R6KD.js +0 -167
- package/dist/TextInclude-i1OBAFTG.js +0 -76
- package/dist/TooltipInclude--QRSE83v.js +0 -76
- package/dist/TouchEventInclude-DctYCjt8.js +0 -186
- package/dist/WindowClassesInclude-B56usxgx.js +0 -213
- package/dist/WindowEsc-Dp9AvJt7.js +0 -72
- package/dist/WindowInclude-Is5RhGxt.js +0 -117
- package/dist/getClassTagAStatic-BnVYlXHI.js +0 -4
package/dist/arrow.js
CHANGED
|
@@ -1,666 +1,280 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
*
|
|
279
|
-
* Получает минимальное значение для позиции стрелки.
|
|
280
|
-
*/
|
|
281
|
-
getMinValue() {
|
|
282
|
-
return this.parent.getBorderRadius() + this.elementItem.getWidth() / 2;
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* Initializes the border between the item and target elements.
|
|
286
|
-
*
|
|
287
|
-
* Инициализирует границу между элементами item и target.
|
|
288
|
-
*/
|
|
289
|
-
initBorder() {
|
|
290
|
-
const t = this.elementItem.getRect(), e = this.elementTarget.getRect();
|
|
291
|
-
if (t && e)
|
|
292
|
-
return {
|
|
293
|
-
top: Math.max(t.top, e.top),
|
|
294
|
-
bottom: Math.min(t.bottom, e.bottom),
|
|
295
|
-
left: Math.max(t.left, e.left),
|
|
296
|
-
right: Math.min(t.right, e.right)
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
* Initializes the direction of the arrow.
|
|
301
|
-
*
|
|
302
|
-
* Инициализирует направление стрелки.
|
|
303
|
-
*/
|
|
304
|
-
initDirection() {
|
|
305
|
-
if (this.props.position !== "auto")
|
|
306
|
-
return this.props.position;
|
|
307
|
-
const t = this.elementItem.getRect(), e = this.elementTarget.getRect();
|
|
308
|
-
if (this.border.value && t && e) {
|
|
309
|
-
if (e.top <= t.top && e.right > t.left && e.left < t.right)
|
|
310
|
-
return o.TOP;
|
|
311
|
-
if (e.bottom >= t.bottom && e.right > t.left && e.left < t.right)
|
|
312
|
-
return o.BOTTOM;
|
|
313
|
-
if (e.left <= t.left && e.bottom > t.top && e.top < t.bottom)
|
|
314
|
-
return o.LEFT;
|
|
315
|
-
if (e.right >= t.right && e.bottom > t.top && e.top < t.bottom)
|
|
316
|
-
return o.RIGHT;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* Initializes the shift of the arrow.
|
|
321
|
-
*
|
|
322
|
-
* Инициализирует смещение стрелки.
|
|
323
|
-
*/
|
|
324
|
-
initShift() {
|
|
325
|
-
const t = this.border.value, e = this.elementItem.getRect();
|
|
326
|
-
if (t && e) {
|
|
327
|
-
const i = this.getMinValue();
|
|
328
|
-
let r;
|
|
329
|
-
return this.isX() ? r = Math.min(e.width - i, t.left - e.left + (t.right - t.left) / 2) : r = Math.min(e.height - i, t.top - e.top + (t.bottom - t.top) / 2), `${Math.max(i, r)}px`;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
* Initializes the clip path for the arrow.
|
|
334
|
-
*
|
|
335
|
-
* Инициализирует область обрезки для стрелки.
|
|
336
|
-
*/
|
|
337
|
-
initClipPath() {
|
|
338
|
-
const t = this.elementItem.getRectBorder(), e = this.elementItem.getRectArrowLine();
|
|
339
|
-
if (t && e) {
|
|
340
|
-
const i = `M0,0 L0,${t.height} L${t.width},${t.height} L${t.width},0 Z`;
|
|
341
|
-
let r, h, a, m;
|
|
342
|
-
switch (this.direction.value) {
|
|
343
|
-
case o.TOP:
|
|
344
|
-
r = e.left - t.left, h = 0, a = r + e.width, m = e.height;
|
|
345
|
-
break;
|
|
346
|
-
case o.BOTTOM:
|
|
347
|
-
r = e.left - t.left, h = t.height - e.height, a = r + e.width, m = t.height;
|
|
348
|
-
break;
|
|
349
|
-
case o.LEFT:
|
|
350
|
-
r = 0, h = e.top - t.top, a = e.width, m = h + e.height;
|
|
351
|
-
break;
|
|
352
|
-
case o.RIGHT:
|
|
353
|
-
r = t.width - e.width, h = e.top - t.top, a = t.width, m = h + e.height;
|
|
354
|
-
break;
|
|
355
|
-
default:
|
|
356
|
-
return;
|
|
357
|
-
}
|
|
358
|
-
const g = `M${r},${h} L${a},${h} L${a},${m} L${r},${m} Z`;
|
|
359
|
-
return `path('${i} ${g}')`;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
class W {
|
|
364
|
-
/**
|
|
365
|
-
* Constructor
|
|
366
|
-
* @param props input properties / входные свойства
|
|
367
|
-
* @param refs input properties as refs / входные свойства как ссылки
|
|
368
|
-
* @param element arrow element / элемент стрелки
|
|
369
|
-
* @param elementTarget target element / целевой элемент
|
|
370
|
-
* @param parent parent object / объект родителя
|
|
371
|
-
* @param position position object / объект позиции
|
|
372
|
-
*/
|
|
373
|
-
constructor(t, e, i, r, h, a) {
|
|
374
|
-
s(this, "eventItem");
|
|
375
|
-
s(this, "eventTarget");
|
|
376
|
-
s(this, "eventBody");
|
|
377
|
-
/**
|
|
378
|
-
* Update all reactive elements.
|
|
379
|
-
*
|
|
380
|
-
* Обновить все реактивные элементы.
|
|
381
|
-
*/
|
|
382
|
-
s(this, "update", () => {
|
|
383
|
-
requestAnimationFrame(() => {
|
|
384
|
-
this.props.position === "auto" && this.elementTarget.update(), this.position.update();
|
|
385
|
-
});
|
|
386
|
-
});
|
|
387
|
-
/**
|
|
388
|
-
* Create events.
|
|
389
|
-
*
|
|
390
|
-
* Создать события.
|
|
391
|
-
*/
|
|
392
|
-
s(this, "makeEvents", () => {
|
|
393
|
-
this.elementTarget.is() ? this.initEvents().startEvents() : this.stopEvents();
|
|
394
|
-
});
|
|
395
|
-
this.props = t, this.refs = e, this.element = i, this.elementTarget = r, this.parent = h, this.position = a, p() && (S(async () => {
|
|
396
|
-
await R(), c(this.elementTarget.element, this.makeEvents), c([...Object.values(this.refs)], this.update, { immediate: !0 });
|
|
397
|
-
}), N(() => {
|
|
398
|
-
this.stopEvents();
|
|
399
|
-
}));
|
|
400
|
-
}
|
|
401
|
-
/**
|
|
402
|
-
* Start events.
|
|
403
|
-
*
|
|
404
|
-
* Запустить события.
|
|
405
|
-
*/
|
|
406
|
-
startEvents() {
|
|
407
|
-
var t, e, i;
|
|
408
|
-
return (t = this.eventItem) == null || t.start(), (e = this.eventTarget) == null || e.start(), (i = this.eventBody) == null || i.start(), this;
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* Stop events.
|
|
412
|
-
*
|
|
413
|
-
* Остановить события.
|
|
414
|
-
*/
|
|
415
|
-
stopEvents() {
|
|
416
|
-
var t, e, i;
|
|
417
|
-
return (t = this.eventItem) == null || t.stop(), (e = this.eventTarget) == null || e.stop(), (i = this.eventBody) == null || i.stop(), this;
|
|
418
|
-
}
|
|
419
|
-
/**
|
|
420
|
-
* Initialize events.
|
|
421
|
-
*
|
|
422
|
-
* Инициализировать события.
|
|
423
|
-
*/
|
|
424
|
-
initEvents() {
|
|
425
|
-
return this.eventItem || (this.eventItem = new y(this.element, void 0, "resize", this.update)), this.eventTarget || (this.eventTarget = new y(this.elementTarget.element, void 0, "resize", this.update)), this.eventBody || (this.eventBody = new C(window, ["scroll", "resize"], this.update)), this;
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
class x {
|
|
429
|
-
/**
|
|
430
|
-
* Constructor
|
|
431
|
-
* @param props input data/ входные данные
|
|
432
|
-
* @param refs input data in the form of reactive elements/ входные данные в виде реактивных элементов
|
|
433
|
-
* @param element input element/ элемент ввода
|
|
434
|
-
* @param classDesign design name/ название дизайна
|
|
435
|
-
* @param className class name/ название класса
|
|
436
|
-
* @param components object for working with components/ объект для работы с компонентами
|
|
437
|
-
* @param slots object for working with slots/ объект для работы со слотами
|
|
438
|
-
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
439
|
-
* @param ArrowElementConstructor class for working with the arrow element/ класс для работы с элементом стрелки
|
|
440
|
-
* @param ArrowElementTargetConstructor class for working with the target element of the arrow/ класс для работы с целевым элементом стрелки
|
|
441
|
-
* @param ArrowParentConstructor class for working with the parent element of the arrow/ класс для работы с родительским элементом стрелки
|
|
442
|
-
* @param ArrowPositionConstructor class for working with the position of the arrow/ класс для работы с позицией стрелки
|
|
443
|
-
* @param ArrowEventConstructor class for working with arrow events/ класс для работы с событиями стрелки
|
|
444
|
-
*/
|
|
445
|
-
constructor(t, e, i, r, h, a, m, g, v = H, f = L, w = M, b = O, T = W) {
|
|
446
|
-
s(this, "elementItem");
|
|
447
|
-
s(this, "elementTarget");
|
|
448
|
-
s(this, "parent");
|
|
449
|
-
s(this, "position");
|
|
450
|
-
s(this, "event");
|
|
451
|
-
/** Direction of the arrow/ Направление стрелки */
|
|
452
|
-
s(this, "direction", l(() => {
|
|
453
|
-
if (I(this.props.position)) {
|
|
454
|
-
const t = this.position.direction.value;
|
|
455
|
-
if (t)
|
|
456
|
-
return t;
|
|
457
|
-
}
|
|
458
|
-
return o.HIDE;
|
|
459
|
-
}));
|
|
460
|
-
/** Classes for the component/ Классы для компонента */
|
|
461
|
-
s(this, "classes", l(() => ({
|
|
462
|
-
[`${this.className}--direction--${this.direction.value}`]: !!this.direction.value
|
|
463
|
-
})));
|
|
464
|
-
/** Styles for the component/ Стили для компонента */
|
|
465
|
-
s(this, "styles", l(() => {
|
|
466
|
-
const t = {
|
|
467
|
-
[`--${this.className}-sys-background`]: this.parent.background.value,
|
|
468
|
-
[`--${this.className}-sys-borderWidth`]: this.parent.borderWidth.value,
|
|
469
|
-
[`--${this.className}-sys-borderColor`]: this.parent.borderColor.value,
|
|
470
|
-
[`--${this.className}-sys-borderRadius`]: this.parent.borderRadius.value
|
|
471
|
-
};
|
|
472
|
-
return this.parent.isBorder.value && this.position.clipPath.value && (t[`--${this.className}-sys-clipPath`] = this.position.clipPath.value), this.elementTarget.is() && this.position.shift.value && (t[`--${this.className}-sys-shift`] = this.position.shift.value), t;
|
|
473
|
-
}));
|
|
474
|
-
this.props = t, this.refs = e, this.element = i, this.classDesign = r, this.className = h, this.components = a, this.slots = m, this.emits = g, this.ArrowElementConstructor = v, this.ArrowElementTargetConstructor = f, this.ArrowParentConstructor = w, this.ArrowPositionConstructor = b, this.ArrowEventConstructor = T, this.elementItem = new v(
|
|
475
|
-
this.element,
|
|
476
|
-
this.className
|
|
477
|
-
), this.elementTarget = new f(this.props), this.parent = new w(
|
|
478
|
-
this.element,
|
|
479
|
-
this.className,
|
|
480
|
-
this.elementItem
|
|
481
|
-
), this.position = new b(
|
|
482
|
-
this.props,
|
|
483
|
-
this.elementItem,
|
|
484
|
-
this.elementTarget,
|
|
485
|
-
this.parent
|
|
486
|
-
), this.event = new T(
|
|
487
|
-
this.props,
|
|
488
|
-
this.refs,
|
|
489
|
-
this.element,
|
|
490
|
-
this.elementTarget,
|
|
491
|
-
this.parent,
|
|
492
|
-
this.position
|
|
493
|
-
);
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
const D = {
|
|
497
|
-
// :default [!] System label / Системная метка
|
|
498
|
-
position: "auto"
|
|
499
|
-
};
|
|
500
|
-
class G extends k {
|
|
501
|
-
/**
|
|
502
|
-
* Constructor
|
|
503
|
-
* @param name class name/ название класса
|
|
504
|
-
* @param props properties/ свойства
|
|
505
|
-
* @param options list of additional parameters/ список дополнительных параметров
|
|
506
|
-
* @param ItemConstructor arrow item class/ класс элемента стрелки
|
|
507
|
-
*/
|
|
508
|
-
constructor(e, i, r, h = x) {
|
|
509
|
-
super(
|
|
510
|
-
e,
|
|
511
|
-
i,
|
|
512
|
-
r
|
|
513
|
-
);
|
|
514
|
-
s(this, "item");
|
|
515
|
-
s(this, "points", u(""));
|
|
516
|
-
/**
|
|
517
|
-
* Gets the points for the arrow.
|
|
518
|
-
*
|
|
519
|
-
* Получает точки для стрелки.
|
|
520
|
-
*/
|
|
521
|
-
s(this, "getRePoints", () => {
|
|
522
|
-
const e = this.item.elementItem.getWidth(), i = this.item.elementItem.getHeight();
|
|
523
|
-
switch (this.item.direction.value) {
|
|
524
|
-
case o.BOTTOM:
|
|
525
|
-
return `0, 0 ${e / 2}, ${i} ${e}, 0`;
|
|
526
|
-
case o.LEFT:
|
|
527
|
-
return `${e}, 0 0, ${i / 2} ${e}, ${i}`;
|
|
528
|
-
case o.RIGHT:
|
|
529
|
-
return `0, 0 ${e}, ${i / 2} 0, ${i}`;
|
|
530
|
-
default:
|
|
531
|
-
return `0, ${i} ${e / 2}, 0 ${e}, ${i}`;
|
|
532
|
-
}
|
|
533
|
-
});
|
|
534
|
-
this.item = new h(
|
|
535
|
-
this.props,
|
|
536
|
-
this.refs,
|
|
537
|
-
this.element,
|
|
538
|
-
this.getDesign(),
|
|
539
|
-
this.getName(),
|
|
540
|
-
this.components,
|
|
541
|
-
this.slots,
|
|
542
|
-
this.emits
|
|
543
|
-
), this.init(), c([this.classes], () => {
|
|
544
|
-
R().then(
|
|
545
|
-
() => requestAnimationFrame(() => {
|
|
546
|
-
this.points.value = this.getRePoints();
|
|
547
|
-
})
|
|
548
|
-
);
|
|
549
|
-
}, { immediate: !0 });
|
|
550
|
-
}
|
|
551
|
-
/**
|
|
552
|
-
* Initialization of all the necessary properties for work
|
|
553
|
-
*
|
|
554
|
-
* Инициализация всех необходимых свойств для работы.
|
|
555
|
-
*/
|
|
556
|
-
initExpose() {
|
|
557
|
-
return {
|
|
558
|
-
update: this.item.position.update
|
|
559
|
-
};
|
|
560
|
-
}
|
|
561
|
-
/**
|
|
562
|
-
* Improvement of the obtained list of classes.
|
|
563
|
-
*
|
|
564
|
-
* Доработка полученного списка классов.
|
|
565
|
-
*/
|
|
566
|
-
initClasses() {
|
|
567
|
-
return {
|
|
568
|
-
main: this.item.classes.value,
|
|
569
|
-
// :classes [!] System label / Системная метка
|
|
570
|
-
mask: this.getSubClass("mask"),
|
|
571
|
-
arrow: this.getSubClass("arrow"),
|
|
572
|
-
arrowLine: this.getSubClass("arrowLine"),
|
|
573
|
-
arrowArea: this.getSubClass("arrowArea"),
|
|
574
|
-
border: this.getSubClass("border"),
|
|
575
|
-
borderHidden: this.getSubClass("borderHidden")
|
|
576
|
-
};
|
|
577
|
-
}
|
|
578
|
-
/**
|
|
579
|
-
* Refinement of the received list of styles.
|
|
580
|
-
*
|
|
581
|
-
* Доработка полученного списка стилей.
|
|
582
|
-
*/
|
|
583
|
-
initStyles() {
|
|
584
|
-
return {
|
|
585
|
-
...this.item.styles.value
|
|
586
|
-
};
|
|
587
|
-
}
|
|
588
|
-
/**
|
|
589
|
-
* A method for rendering.
|
|
590
|
-
*
|
|
591
|
-
* Метод для рендеринга.
|
|
592
|
-
*/
|
|
593
|
-
initRender() {
|
|
594
|
-
var i, r;
|
|
595
|
-
if (!p())
|
|
596
|
-
return;
|
|
597
|
-
const e = [
|
|
598
|
-
...this.renderArrow()
|
|
599
|
-
];
|
|
600
|
-
return this.item.parent.isBorder.value && e.push(
|
|
601
|
-
...this.renderBorder()
|
|
602
|
-
), d("div", {
|
|
603
|
-
ref: this.element,
|
|
604
|
-
class: (i = this.classes) == null ? void 0 : i.value.main,
|
|
605
|
-
style: (r = this.styles) == null ? void 0 : r.value,
|
|
606
|
-
...$.hidden()
|
|
607
|
-
}, e);
|
|
608
|
-
}
|
|
609
|
-
/**
|
|
610
|
-
* Method for rendering an arrow.
|
|
611
|
-
*
|
|
612
|
-
* Метод для рендеринга стрелки.
|
|
613
|
-
*/
|
|
614
|
-
renderArrow() {
|
|
615
|
-
var e, i, r;
|
|
616
|
-
return [
|
|
617
|
-
d(
|
|
618
|
-
"svg",
|
|
619
|
-
{
|
|
620
|
-
key: "svg-arrow",
|
|
621
|
-
class: (e = this.classes) == null ? void 0 : e.value.arrowArea
|
|
622
|
-
},
|
|
623
|
-
[
|
|
624
|
-
d(
|
|
625
|
-
"polygon",
|
|
626
|
-
{
|
|
627
|
-
key: "arrow",
|
|
628
|
-
class: (i = this.classes) == null ? void 0 : i.value.arrow,
|
|
629
|
-
points: this.points.value
|
|
630
|
-
}
|
|
631
|
-
),
|
|
632
|
-
d(
|
|
633
|
-
"polyline",
|
|
634
|
-
{
|
|
635
|
-
key: "arrow-line",
|
|
636
|
-
class: (r = this.classes) == null ? void 0 : r.value.arrowLine,
|
|
637
|
-
points: this.points.value
|
|
638
|
-
}
|
|
639
|
-
)
|
|
640
|
-
]
|
|
641
|
-
)
|
|
642
|
-
];
|
|
643
|
-
}
|
|
644
|
-
/**
|
|
645
|
-
* Method for rendering a border.
|
|
646
|
-
*
|
|
647
|
-
* Метод для рендеринга границы.
|
|
648
|
-
*/
|
|
649
|
-
renderBorder() {
|
|
650
|
-
var e;
|
|
651
|
-
return [
|
|
652
|
-
d("div", {
|
|
653
|
-
key: "border",
|
|
654
|
-
class: (e = this.classes) == null ? void 0 : e.value.border,
|
|
655
|
-
...$.hidden()
|
|
656
|
-
})
|
|
657
|
-
];
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
export {
|
|
661
|
-
x as Arrow,
|
|
662
|
-
G as ArrowDesign,
|
|
663
|
-
o as ArrowDirection,
|
|
664
|
-
Y as ArrowInclude,
|
|
665
|
-
D as defaultsArrow
|
|
1
|
+
import { t as e } from "./AriaStaticInclude-CS1hPGyK.js";
|
|
2
|
+
import { t } from "./defineProperty-hmGKPWdq.js";
|
|
3
|
+
import { t as n } from "./ArrowInclude-BM_RP5vO.js";
|
|
4
|
+
import { computed as r, h as i, nextTick as a, onMounted as o, onUnmounted as s, ref as c, watch as l } from "vue";
|
|
5
|
+
import { DesignConstructorAbstract as u, EventItem as d, EventRef as f, isDomRuntime as p, isFilled as m, isString as h, toNumber as g } from "@dxtmisha/functional";
|
|
6
|
+
//#region src/constructors/Arrow/ArrowElement.ts
|
|
7
|
+
var _ = class {
|
|
8
|
+
constructor(e, t) {
|
|
9
|
+
this.element = e, this.className = t;
|
|
10
|
+
}
|
|
11
|
+
is() {
|
|
12
|
+
return !!this.element.value;
|
|
13
|
+
}
|
|
14
|
+
getWidth() {
|
|
15
|
+
let e = this.getStyleArrowWidth();
|
|
16
|
+
return e ? Number(e.replace(/[^0-9]+/gi, "")) : 0;
|
|
17
|
+
}
|
|
18
|
+
getHeight() {
|
|
19
|
+
let e = this.getStyleArrowHeight();
|
|
20
|
+
return e ? Number(e.replace(/[^0-9]+/gi, "")) : 0;
|
|
21
|
+
}
|
|
22
|
+
getRect() {
|
|
23
|
+
var e;
|
|
24
|
+
return (e = this.element.value) == null ? void 0 : e.getBoundingClientRect();
|
|
25
|
+
}
|
|
26
|
+
getRectBorder() {
|
|
27
|
+
var e, t;
|
|
28
|
+
return (e = (t = this.element.value) == null || (t = t.querySelector(`.${this.className}__border`)) == null ? void 0 : t.getBoundingClientRect()) == null ? void 0 : e;
|
|
29
|
+
}
|
|
30
|
+
getRectArrowLine() {
|
|
31
|
+
var e, t;
|
|
32
|
+
return (e = (t = this.element.value) == null || (t = t.querySelector(`.${this.className}__arrowLine`)) == null ? void 0 : t.getBoundingClientRect()) == null ? void 0 : e;
|
|
33
|
+
}
|
|
34
|
+
getNameArrowWidth() {
|
|
35
|
+
return `--${this.className}-arrowWidth`;
|
|
36
|
+
}
|
|
37
|
+
getNameArrowHeight() {
|
|
38
|
+
return `--${this.className}-arrowHeight`;
|
|
39
|
+
}
|
|
40
|
+
getStyleArrowWidth() {
|
|
41
|
+
if (this.is()) return getComputedStyle(this.element.value).getPropertyValue(this.getNameArrowWidth());
|
|
42
|
+
}
|
|
43
|
+
getStyleArrowHeight() {
|
|
44
|
+
if (this.is()) return getComputedStyle(this.element.value).getPropertyValue(this.getNameArrowHeight());
|
|
45
|
+
}
|
|
46
|
+
}, v = class {
|
|
47
|
+
constructor(e) {
|
|
48
|
+
t(this, "element", c()), this.props = e;
|
|
49
|
+
}
|
|
50
|
+
is() {
|
|
51
|
+
return this.element.value !== void 0;
|
|
52
|
+
}
|
|
53
|
+
getRect() {
|
|
54
|
+
var e;
|
|
55
|
+
return (e = this.element.value) == null ? void 0 : e.getBoundingClientRect();
|
|
56
|
+
}
|
|
57
|
+
update() {
|
|
58
|
+
this.element.value = this.initElement();
|
|
59
|
+
}
|
|
60
|
+
initElement() {
|
|
61
|
+
let e = this.props.elementTarget;
|
|
62
|
+
if (this.props.position === "auto" && m(e) && p()) {
|
|
63
|
+
if (h(e)) {
|
|
64
|
+
var t;
|
|
65
|
+
return (t = document.querySelector(e)) == null ? void 0 : t;
|
|
66
|
+
}
|
|
67
|
+
return e;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}, y = class {
|
|
71
|
+
constructor(e, n, i) {
|
|
72
|
+
t(this, "isBorder", r(() => this.borderWidth.value !== "0px")), t(this, "elementParent", r(() => {
|
|
73
|
+
var e;
|
|
74
|
+
return (e = this.element.value) == null ? void 0 : e.parentElement;
|
|
75
|
+
})), t(this, "background", r(() => {
|
|
76
|
+
var e, t;
|
|
77
|
+
return (e = (t = this.getStyles()) == null ? void 0 : t.backgroundColor) == null ? "transparent" : e;
|
|
78
|
+
})), t(this, "borderWidth", r(() => {
|
|
79
|
+
var e, t;
|
|
80
|
+
return (e = (t = this.getStyles()) == null ? void 0 : t.borderWidth) == null ? "0px" : e;
|
|
81
|
+
})), t(this, "borderColor", r(() => {
|
|
82
|
+
var e, t;
|
|
83
|
+
return (e = (t = this.getStyles()) == null ? void 0 : t.borderColor) == null ? "transparent" : e;
|
|
84
|
+
})), t(this, "borderRadius", r(() => {
|
|
85
|
+
var e, t;
|
|
86
|
+
return (e = (t = this.getStyles()) == null ? void 0 : t.borderRadius) == null ? "0px" : e;
|
|
87
|
+
})), t(this, "make", () => {
|
|
88
|
+
requestAnimationFrame(() => {
|
|
89
|
+
if (this.elementParent.value) {
|
|
90
|
+
let e = this.elementParent.value;
|
|
91
|
+
e.classList.add(`${this.className}__parent`), e.style.setProperty(`--${this.className}-sys-height`, String(this.elementItem.getHeight())), this.isBorder.value && (e.dataset.arrow = "border");
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}), this.element = e, this.className = n, this.elementItem = i, p() && l(e, this.make);
|
|
95
|
+
}
|
|
96
|
+
getBorderRadius() {
|
|
97
|
+
return g(this.borderRadius.value);
|
|
98
|
+
}
|
|
99
|
+
getStyles() {
|
|
100
|
+
let e = this.elementParent.value;
|
|
101
|
+
if (e) return getComputedStyle(e);
|
|
102
|
+
}
|
|
103
|
+
}, b = /* @__PURE__ */ function(e) {
|
|
104
|
+
return e.TOP = "top", e.BOTTOM = "bottom", e.LEFT = "left", e.RIGHT = "right", e.HIDE = "hide", e;
|
|
105
|
+
}({}), x = class {
|
|
106
|
+
constructor(e, n, r, i) {
|
|
107
|
+
t(this, "border", c()), t(this, "direction", c()), t(this, "shift", c()), t(this, "clipPath", c()), t(this, "update", () => {
|
|
108
|
+
this.border.value = this.initBorder(), this.direction.value = this.initDirection(), this.shift.value = this.initShift(), requestAnimationFrame(() => {
|
|
109
|
+
this.clipPath.value = this.initClipPath();
|
|
110
|
+
});
|
|
111
|
+
}), this.props = e, this.elementItem = n, this.elementTarget = r, this.parent = i;
|
|
112
|
+
}
|
|
113
|
+
isX() {
|
|
114
|
+
return this.direction.value === b.TOP || this.direction.value === b.BOTTOM;
|
|
115
|
+
}
|
|
116
|
+
getMinValue() {
|
|
117
|
+
return this.parent.getBorderRadius() + this.elementItem.getWidth() / 2;
|
|
118
|
+
}
|
|
119
|
+
initBorder() {
|
|
120
|
+
let e = this.elementItem.getRect(), t = this.elementTarget.getRect();
|
|
121
|
+
if (e && t) return {
|
|
122
|
+
top: Math.max(e.top, t.top),
|
|
123
|
+
bottom: Math.min(e.bottom, t.bottom),
|
|
124
|
+
left: Math.max(e.left, t.left),
|
|
125
|
+
right: Math.min(e.right, t.right)
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
initDirection() {
|
|
129
|
+
if (this.props.position !== "auto") return this.props.position;
|
|
130
|
+
let e = this.elementItem.getRect(), t = this.elementTarget.getRect();
|
|
131
|
+
if (this.border.value && e && t) {
|
|
132
|
+
if (t.top <= e.top && t.right > e.left && t.left < e.right) return b.TOP;
|
|
133
|
+
if (t.bottom >= e.bottom && t.right > e.left && t.left < e.right) return b.BOTTOM;
|
|
134
|
+
if (t.left <= e.left && t.bottom > e.top && t.top < e.bottom) return b.LEFT;
|
|
135
|
+
if (t.right >= e.right && t.bottom > e.top && t.top < e.bottom) return b.RIGHT;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
initShift() {
|
|
139
|
+
let e = this.border.value, t = this.elementItem.getRect();
|
|
140
|
+
if (e && t) {
|
|
141
|
+
let n = this.getMinValue(), r;
|
|
142
|
+
return r = this.isX() ? Math.min(t.width - n, e.left - t.left + (e.right - e.left) / 2) : Math.min(t.height - n, e.top - t.top + (e.bottom - e.top) / 2), `${Math.max(n, r)}px`;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
initClipPath() {
|
|
146
|
+
let e = this.elementItem.getRectBorder(), t = this.elementItem.getRectArrowLine();
|
|
147
|
+
if (e && t) {
|
|
148
|
+
let n = `M0,0 L0,${e.height} L${e.width},${e.height} L${e.width},0 Z`, r, i, a, o;
|
|
149
|
+
switch (this.direction.value) {
|
|
150
|
+
case b.TOP:
|
|
151
|
+
r = t.left - e.left, i = 0, a = r + t.width, o = t.height;
|
|
152
|
+
break;
|
|
153
|
+
case b.BOTTOM:
|
|
154
|
+
r = t.left - e.left, i = e.height - t.height, a = r + t.width, o = e.height;
|
|
155
|
+
break;
|
|
156
|
+
case b.LEFT:
|
|
157
|
+
r = 0, i = t.top - e.top, a = t.width, o = i + t.height;
|
|
158
|
+
break;
|
|
159
|
+
case b.RIGHT:
|
|
160
|
+
r = e.width - t.width, i = t.top - e.top, a = e.width, o = i + t.height;
|
|
161
|
+
break;
|
|
162
|
+
default: return;
|
|
163
|
+
}
|
|
164
|
+
return `path('${n} ${`M${r},${i} L${a},${i} L${a},${o} L${r},${o} Z`}')`;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}, S = class {
|
|
168
|
+
constructor(e, n, r, i, c, u) {
|
|
169
|
+
t(this, "eventItem", void 0), t(this, "eventTarget", void 0), t(this, "eventBody", void 0), t(this, "update", () => {
|
|
170
|
+
requestAnimationFrame(() => {
|
|
171
|
+
this.props.position === "auto" && this.elementTarget.update(), this.position.update();
|
|
172
|
+
});
|
|
173
|
+
}), t(this, "makeEvents", () => {
|
|
174
|
+
this.elementTarget.is() ? this.initEvents().startEvents() : this.stopEvents();
|
|
175
|
+
}), this.props = e, this.refs = n, this.element = r, this.elementTarget = i, this.parent = c, this.position = u, p() && (o(async () => {
|
|
176
|
+
await a(), l(this.elementTarget.element, this.makeEvents), l([...Object.values(this.refs)], this.update, { immediate: !0 });
|
|
177
|
+
}), s(() => {
|
|
178
|
+
this.stopEvents();
|
|
179
|
+
}));
|
|
180
|
+
}
|
|
181
|
+
startEvents() {
|
|
182
|
+
var e, t, n;
|
|
183
|
+
return (e = this.eventItem) == null || e.start(), (t = this.eventTarget) == null || t.start(), (n = this.eventBody) == null || n.start(), this;
|
|
184
|
+
}
|
|
185
|
+
stopEvents() {
|
|
186
|
+
var e, t, n;
|
|
187
|
+
return (e = this.eventItem) == null || e.stop(), (t = this.eventTarget) == null || t.stop(), (n = this.eventBody) == null || n.stop(), this;
|
|
188
|
+
}
|
|
189
|
+
initEvents() {
|
|
190
|
+
return this.eventItem || (this.eventItem = new f(this.element, void 0, "resize", this.update)), this.eventTarget || (this.eventTarget = new f(this.elementTarget.element, void 0, "resize", this.update)), this.eventBody || (this.eventBody = new d(window, ["scroll", "resize"], this.update)), this;
|
|
191
|
+
}
|
|
192
|
+
}, C = class {
|
|
193
|
+
constructor(e, n, i, a, o, s, c, l, u) {
|
|
194
|
+
t(this, "elementItem", void 0), t(this, "elementTarget", void 0), t(this, "parent", void 0), t(this, "position", void 0), t(this, "event", void 0), t(this, "direction", r(() => {
|
|
195
|
+
if (m(this.props.position)) {
|
|
196
|
+
let e = this.position.direction.value;
|
|
197
|
+
if (e) return e;
|
|
198
|
+
}
|
|
199
|
+
return b.HIDE;
|
|
200
|
+
})), t(this, "classes", r(() => ({ [`${this.className}--direction--${this.direction.value}`]: !!this.direction.value }))), t(this, "styles", r(() => {
|
|
201
|
+
let e = {
|
|
202
|
+
[`--${this.className}-sys-background`]: this.parent.background.value,
|
|
203
|
+
[`--${this.className}-sys-borderWidth`]: this.parent.borderWidth.value,
|
|
204
|
+
[`--${this.className}-sys-borderColor`]: this.parent.borderColor.value,
|
|
205
|
+
[`--${this.className}-sys-borderRadius`]: this.parent.borderRadius.value
|
|
206
|
+
};
|
|
207
|
+
return this.parent.isBorder.value && this.position.clipPath.value && (e[`--${this.className}-sys-clipPath`] = this.position.clipPath.value), this.elementTarget.is() && this.position.shift.value && (e[`--${this.className}-sys-shift`] = this.position.shift.value), e;
|
|
208
|
+
})), this.props = e, this.refs = n, this.element = i, this.classDesign = a, this.className = o, this.components = s, this.slots = c, this.emits = l;
|
|
209
|
+
let { ArrowElementConstructor: d = _, ArrowElementTargetConstructor: f = v, ArrowEventConstructor: p = S, ArrowParentConstructor: h = y, ArrowPositionConstructor: g = x } = u == null ? {} : u;
|
|
210
|
+
this.elementItem = new d(this.element, this.className), this.elementTarget = new f(this.props), this.parent = new h(this.element, this.className, this.elementItem), this.position = new g(this.props, this.elementItem, this.elementTarget, this.parent), this.event = new p(this.props, this.refs, this.element, this.elementTarget, this.parent, this.position);
|
|
211
|
+
}
|
|
212
|
+
}, w = { position: "auto" }, T = class extends u {
|
|
213
|
+
constructor(e, n, r, i = C) {
|
|
214
|
+
super(e, n, r), t(this, "item", void 0), t(this, "points", c("")), t(this, "getRePoints", () => {
|
|
215
|
+
let e = this.item.elementItem.getWidth(), t = this.item.elementItem.getHeight();
|
|
216
|
+
switch (this.item.direction.value) {
|
|
217
|
+
case b.BOTTOM: return `0, 0 ${e / 2}, ${t} ${e}, 0`;
|
|
218
|
+
case b.LEFT: return `${e}, 0 0, ${t / 2} ${e}, ${t}`;
|
|
219
|
+
case b.RIGHT: return `0, 0 ${e}, ${t / 2} 0, ${t}`;
|
|
220
|
+
default: return `0, ${t} ${e / 2}, 0 ${e}, ${t}`;
|
|
221
|
+
}
|
|
222
|
+
}), this.item = new i(this.props, this.refs, this.element, this.getDesign(), this.getName(), this.components, this.slots, this.emits), this.init(), l([this.classes], () => {
|
|
223
|
+
a().then(() => requestAnimationFrame(() => {
|
|
224
|
+
this.points.value = this.getRePoints();
|
|
225
|
+
}));
|
|
226
|
+
}, { immediate: !0 });
|
|
227
|
+
}
|
|
228
|
+
initExpose() {
|
|
229
|
+
return { update: this.item.position.update };
|
|
230
|
+
}
|
|
231
|
+
initClasses() {
|
|
232
|
+
return {
|
|
233
|
+
main: this.item.classes.value,
|
|
234
|
+
mask: this.getSubClass("mask"),
|
|
235
|
+
arrow: this.getSubClass("arrow"),
|
|
236
|
+
arrowLine: this.getSubClass("arrowLine"),
|
|
237
|
+
arrowArea: this.getSubClass("arrowArea"),
|
|
238
|
+
border: this.getSubClass("border"),
|
|
239
|
+
borderHidden: this.getSubClass("borderHidden")
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
initStyles() {
|
|
243
|
+
return { ...this.item.styles.value };
|
|
244
|
+
}
|
|
245
|
+
initRender() {
|
|
246
|
+
var t, n;
|
|
247
|
+
if (!p()) return;
|
|
248
|
+
let r = [...this.renderArrow()];
|
|
249
|
+
return this.item.parent.isBorder.value && r.push(...this.renderBorder()), i("div", {
|
|
250
|
+
ref: this.element,
|
|
251
|
+
class: (t = this.classes) == null ? void 0 : t.value.main,
|
|
252
|
+
style: (n = this.styles) == null ? void 0 : n.value,
|
|
253
|
+
...e.hidden()
|
|
254
|
+
}, r);
|
|
255
|
+
}
|
|
256
|
+
renderArrow() {
|
|
257
|
+
var e, t, n;
|
|
258
|
+
return [i("svg", {
|
|
259
|
+
key: "svg-arrow",
|
|
260
|
+
class: (e = this.classes) == null ? void 0 : e.value.arrowArea
|
|
261
|
+
}, [i("polygon", {
|
|
262
|
+
key: "arrow",
|
|
263
|
+
class: (t = this.classes) == null ? void 0 : t.value.arrow,
|
|
264
|
+
points: this.points.value
|
|
265
|
+
}), i("polyline", {
|
|
266
|
+
key: "arrow-line",
|
|
267
|
+
class: (n = this.classes) == null ? void 0 : n.value.arrowLine,
|
|
268
|
+
points: this.points.value
|
|
269
|
+
})])];
|
|
270
|
+
}
|
|
271
|
+
renderBorder() {
|
|
272
|
+
var e;
|
|
273
|
+
return [i("div", {
|
|
274
|
+
key: "border",
|
|
275
|
+
class: (e = this.classes) == null ? void 0 : e.value.border
|
|
276
|
+
})];
|
|
277
|
+
}
|
|
666
278
|
};
|
|
279
|
+
//#endregion
|
|
280
|
+
export { C as Arrow, T as ArrowDesign, b as ArrowDirection, _ as ArrowElement, v as ArrowElementTarget, S as ArrowEvent, n as ArrowInclude, y as ArrowParent, x as ArrowPosition, w as defaultsArrow };
|