@dxtmisha/constructor 0.39.7 → 0.52.1
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 -193
- package/dist/actionSheet.js +61 -137
- package/dist/actions.js +59 -192
- package/dist/anchor.js +134 -360
- package/dist/arrow.js +279 -664
- package/dist/badge.js +47 -140
- package/dist/bars.js +120 -365
- package/dist/block.js +2 -10
- package/dist/button.js +3 -62
- package/dist/cell.js +117 -281
- package/dist/checkbox.js +112 -0
- package/dist/chip.js +24 -81
- package/dist/chipGroup.js +48 -163
- package/dist/classes/CaptionInclude.d.ts +4 -4
- package/dist/classes/EventClickInclude.d.ts +17 -1
- package/dist/classes/Field/FieldAttributesInclude.d.ts +2 -0
- package/dist/classes/Field/FieldEventInclude.d.ts +6 -6
- package/dist/classes/Plugin/PluginCode.d.ts +0 -8
- package/dist/classes/ScrollToXInclude.d.ts +35 -0
- package/dist/constructors/Accordion/Accordion.d.ts +9 -1
- 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 -2
- package/dist/constructors/Actions/basicTypes.d.ts +3 -0
- package/dist/constructors/Actions/props.d.ts +4 -0
- package/dist/constructors/Actions/types.d.ts +2 -0
- package/dist/constructors/Anchor/Anchor.d.ts +17 -8
- 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 +10 -0
- package/dist/constructors/Anchor/types.d.ts +1 -0
- package/dist/constructors/Arrow/Arrow.d.ts +13 -6
- 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 +7 -3
- 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 +21 -10
- 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 +14 -0
- package/dist/constructors/Bars/types.d.ts +4 -0
- package/dist/constructors/Block/Block.d.ts +11 -5
- package/dist/constructors/Block/props.d.ts +3 -0
- package/dist/constructors/Button/Button.d.ts +17 -8
- 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 +2 -0
- package/dist/constructors/Button/types.d.ts +2 -2
- package/dist/constructors/Cell/Cell.d.ts +21 -10
- package/dist/constructors/Cell/CellDesign.d.ts +7 -5
- 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 +4 -2
- 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 -4
- 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 +29 -14
- 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 +12 -0
- package/dist/constructors/Field/types.d.ts +3 -0
- package/dist/constructors/FieldCounter/FieldCounter.d.ts +5 -2
- package/dist/constructors/FieldCounter/basicTypes.d.ts +8 -1
- package/dist/constructors/FieldCounter/props.d.ts +6 -0
- package/dist/constructors/FieldLabel/FieldLabel.d.ts +11 -5
- package/dist/constructors/FieldLabel/basicTypes.d.ts +4 -1
- package/dist/constructors/FieldLabel/props.d.ts +4 -0
- package/dist/constructors/FieldMessage/FieldMessage.d.ts +9 -4
- 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 +7 -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 +5 -0
- package/dist/constructors/Icon/types.d.ts +4 -2
- package/dist/constructors/Image/Image.d.ts +21 -12
- 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 +37 -18
- 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 +21 -12
- package/dist/constructors/List/ListControl.d.ts +12 -0
- 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 +31 -0
- package/dist/constructors/List/types.d.ts +5 -0
- package/dist/constructors/ListGroup/ListGroup.d.ts +5 -2
- 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 +34 -18
- package/dist/constructors/ListItem/basicTypes.d.ts +5 -0
- package/dist/constructors/ListItem/props.d.ts +13 -0
- package/dist/constructors/ListItem/types.d.ts +5 -2
- package/dist/constructors/ListMenu/ListMenu.d.ts +7 -3
- 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 -24
- 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 -10
- 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 +26 -0
- 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/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 +19 -9
- package/dist/constructors/MotionTransform/MotionTransformDesign.d.ts +3 -3
- 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 +18 -12
- package/dist/constructors/MotionTransform/types.d.ts +7 -5
- package/dist/constructors/Progress/Progress.d.ts +5 -1
- package/dist/constructors/Progress/basicTypes.d.ts +4 -0
- package/dist/constructors/Progress/props.d.ts +11 -0
- package/dist/constructors/Ripple/Ripple.d.ts +5 -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 -3
- 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 -12
- 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 -4
- package/dist/constructors/SelectValue/basicTypes.d.ts +3 -0
- package/dist/constructors/SelectValue/props.d.ts +8 -0
- 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 -3
- 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 +27 -16
- package/dist/constructors/Tooltip/{TooltipClasses.d.ts → TooltipClassesData.d.ts} +1 -1
- package/dist/constructors/Tooltip/TooltipEvent.d.ts +4 -4
- 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 +9 -0
- package/dist/constructors/Tooltip/types.d.ts +4 -0
- package/dist/constructors/Window/Window.d.ts +53 -26
- 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/WindowElement.d.ts +3 -3
- package/dist/constructors/Window/WindowEmit.d.ts +3 -3
- package/dist/constructors/Window/WindowFlash.d.ts +3 -3
- package/dist/constructors/Window/WindowHidden.d.ts +3 -3
- 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 +10 -0
- package/dist/constructors/Window/index.d.ts +21 -3
- package/dist/constructors/Window/props.d.ts +53 -27
- 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 -549
- package/dist/fieldCounter.js +77 -194
- package/dist/fieldLabel.js +63 -175
- package/dist/fieldMessage.js +82 -234
- 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 -227
- package/dist/image.js +648 -1345
- package/dist/input.js +82 -363
- 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 -1062
- package/dist/listGroup.js +61 -172
- package/dist/listItem.js +113 -318
- package/dist/listMenu.js +51 -123
- package/dist/mask.js +1015 -2488
- package/dist/menu.js +200 -537
- package/dist/modal.js +28 -72
- package/dist/motionAxis.js +319 -0
- package/dist/motionTransform.js +225 -633
- package/dist/page.js +11 -28
- package/dist/plugin.js +2 -4
- package/dist/progress.js +123 -302
- package/dist/ripple.js +55 -135
- package/dist/scrollbar.js +99 -237
- package/dist/section.js +11 -28
- package/dist/select.js +163 -423
- package/dist/selectValue.js +87 -247
- package/dist/skeleton.js +32 -80
- 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 -237
- package/dist/tooltip.js +236 -667
- package/dist/types/ariaTypes.d.ts +45 -25
- package/dist/types/descriptionTypes.d.ts +3 -0
- package/dist/types/eventClickTypes.d.ts +2 -0
- package/dist/types/fieldTypes.d.ts +29 -20
- package/dist/types/modelTypes.d.ts +30 -0
- package/dist/types/pluginTypes.d.ts +5 -1
- package/dist/types/roleTypes.d.ts +1 -0
- package/dist/types/textTypes.d.ts +18 -0
- package/dist/window.js +769 -2037
- package/package.json +56 -2
- 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/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/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/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/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/Window/properties.json +240 -0
- package/src/library/style.scss +13 -0
- package/dist/ActionsInclude-H5ZWeXJj.js +0 -64
- package/dist/AriaStaticInclude-CAURwJMb.js +0 -257
- package/dist/ArrowInclude-CcpT637l.js +0 -47
- package/dist/BarsInclude-BOEoY-O4.js +0 -74
- package/dist/BlockDesign-CwRNJi0I.js +0 -244
- package/dist/ButtonDesign-DgZNw44L.js +0 -198
- package/dist/CaptionInclude-NzS6EYYj.js +0 -70
- package/dist/DescriptionInclude-D4ane9aR.js +0 -55
- package/dist/EnabledInclude-Dk-rP4jp.js +0 -46
- package/dist/EventClickInclude-WHJqxZ1b.js +0 -103
- package/dist/FieldCounterInclude-D0oojGWY.js +0 -59
- package/dist/FieldEventInclude-DBRqmzpF.js +0 -718
- package/dist/FieldInclude-BKoBWZdj.js +0 -145
- package/dist/FieldInputCheckInclude-CjNYyGTb.js +0 -79
- package/dist/FieldLabelInclude-Bkxf6rRw.js +0 -71
- package/dist/FieldMatchInclude-GgyucDC_.js +0 -318
- package/dist/FieldMessageInclude-BJDnir34.js +0 -77
- package/dist/IconInclude-CLqwI29Q.js +0 -123
- package/dist/IconTrailingInclude-CdsOcDxv.js +0 -83
- package/dist/LabelHighlightInclude-CLmTvW_6.js +0 -75
- package/dist/LabelInclude-D-mLvjK5.js +0 -114
- package/dist/LabelNumberInclude-Cn0qDEgX.js +0 -46
- package/dist/ListGroupOpen-Bl_HIQoV.js +0 -43
- package/dist/MenuInclude-DfGCfr_I.js +0 -94
- package/dist/ModalDesignAbstract-D4A_a_rC.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-CBNCh_iN.js +0 -628
- package/dist/ProgressInclude-9MfZWtGP.js +0 -56
- package/dist/RippleInclude-Du5yIzX_.js +0 -21
- package/dist/SkeletonInclude-BIUzAO2s.js +0 -105
- package/dist/SuffixInclude-maZ7235l.js +0 -125
- package/dist/TabIndexInclude-xcSFV8yP.js +0 -177
- package/dist/TextInclude--GERRCGj.js +0 -146
- package/dist/TooltipInclude--QRSE83v.js +0 -76
- package/dist/TouchEventInclude-DctYCjt8.js +0 -186
- package/dist/WindowClassesInclude-B56usxgx.js +0 -213
- package/dist/WindowEsc-DTwn4Vsz.js +0 -72
- package/dist/WindowInclude-BWm4-0Gh.js +0 -121
- package/dist/getClassTagAStatic-BnVYlXHI.js +0 -4
package/dist/list.js
CHANGED
|
@@ -1,1063 +1,456 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
t.preventDefault(), this.go.next();
|
|
455
|
-
break;
|
|
456
|
-
case "Enter":
|
|
457
|
-
case "ArrowRight":
|
|
458
|
-
case " ":
|
|
459
|
-
case 13:
|
|
460
|
-
case 39:
|
|
461
|
-
t.preventDefault(), this.go.open();
|
|
462
|
-
break;
|
|
463
|
-
case "ArrowLeft":
|
|
464
|
-
case "Escape":
|
|
465
|
-
case "Esc":
|
|
466
|
-
case 27:
|
|
467
|
-
case 37:
|
|
468
|
-
t.preventDefault(), this.go.close();
|
|
469
|
-
break;
|
|
470
|
-
case "Home":
|
|
471
|
-
case 36:
|
|
472
|
-
t.preventDefault(), this.go.first();
|
|
473
|
-
break;
|
|
474
|
-
case "End":
|
|
475
|
-
case 35:
|
|
476
|
-
t.preventDefault(), this.go.last();
|
|
477
|
-
break;
|
|
478
|
-
case "Space":
|
|
479
|
-
case 32:
|
|
480
|
-
this.getActiveElement() || (t.preventDefault(), this.go.open());
|
|
481
|
-
break;
|
|
482
|
-
}
|
|
483
|
-
});
|
|
484
|
-
this.props = t, this.search = e, this.data = s, this.go = r, B(
|
|
485
|
-
this.isActive,
|
|
486
|
-
(a) => {
|
|
487
|
-
a ? this.start() : this.stop();
|
|
488
|
-
},
|
|
489
|
-
{ immediate: !0 }
|
|
490
|
-
), E(() => this.stop());
|
|
491
|
-
}
|
|
492
|
-
/**
|
|
493
|
-
* Checks if the event target is not an input.
|
|
494
|
-
*
|
|
495
|
-
* Проверяет, не является ли цель события input.
|
|
496
|
-
* @param target selected element/ выбранный элемент
|
|
497
|
-
*/
|
|
498
|
-
isNotInput(t) {
|
|
499
|
-
return ["INPUT", "TEXTAREA"].indexOf(t.nodeName) === -1 || !!this.getActiveElement();
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* Gets the currently active input element with menu control.
|
|
503
|
-
*
|
|
504
|
-
* Получает текущий активный элемент input с управлением меню.
|
|
505
|
-
* @returns active input element or undefined / активный элемент input или undefined
|
|
506
|
-
*/
|
|
507
|
-
getActiveElement() {
|
|
508
|
-
var t;
|
|
509
|
-
if (p()) {
|
|
510
|
-
const e = document.activeElement;
|
|
511
|
-
if (e && ((t = e.dataset) == null ? void 0 : t.menuControl) === "1")
|
|
512
|
-
return e;
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
/**
|
|
516
|
-
* Starts the event.
|
|
517
|
-
*
|
|
518
|
-
* Запускает событие.
|
|
519
|
-
*/
|
|
520
|
-
start() {
|
|
521
|
-
p() && (this.event || (this.event = new G(
|
|
522
|
-
document.body,
|
|
523
|
-
["keydown", "keypress"],
|
|
524
|
-
this.on
|
|
525
|
-
)), this.go.reset(), this.event.start());
|
|
526
|
-
}
|
|
527
|
-
/**
|
|
528
|
-
* Stops the event.
|
|
529
|
-
*
|
|
530
|
-
* Останавливает событие.
|
|
531
|
-
*/
|
|
532
|
-
stop() {
|
|
533
|
-
this.event && (this.event.stop(), this.event = void 0, this.go.stop());
|
|
534
|
-
}
|
|
535
|
-
/**
|
|
536
|
-
* Updates the search value based on keyboard input.
|
|
537
|
-
*
|
|
538
|
-
* Обновляет значение поиска на основе ввода с клавиатуры.
|
|
539
|
-
* @param event keyboard event / событие клавиатуры
|
|
540
|
-
*/
|
|
541
|
-
updateSearch(t) {
|
|
542
|
-
const e = this.getActiveElement();
|
|
543
|
-
e ? requestAnimationFrame(() => this.search.set(e.value)) : this.search.add(t.key);
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
let q = 1;
|
|
547
|
-
class X {
|
|
548
|
-
/**
|
|
549
|
-
* Constructor
|
|
550
|
-
* @param props input data/ входные данные
|
|
551
|
-
* @param refs input data in the form of reactive elements/ входные данные в виде реактивных элементов
|
|
552
|
-
* @param element input element/ элемент ввода
|
|
553
|
-
* @param classDesign design name/ название дизайна
|
|
554
|
-
* @param className class name/ название класса
|
|
555
|
-
* @param components object for working with components/ объект для работы с компонентами
|
|
556
|
-
* @param slots object for working with slots/ объект для работы со слотами
|
|
557
|
-
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
558
|
-
* @param ListSearchConstructor class for working with search/ класс для работы с поиском
|
|
559
|
-
* @param ListFocusConstructor class for working with focus/ класс для работы с фокусом
|
|
560
|
-
* @param ListDataRefConstructor class for working with data list/ класс для работы со списком данных
|
|
561
|
-
* @param ListGoConstructor class for working with navigation/ класс для работы с навигацией
|
|
562
|
-
* @param ListControlConstructor class for working with control/ класс для работы с управлением
|
|
563
|
-
* @param EventClickIncludeConstructor class for working with click event/ класс для работы с событием клика
|
|
564
|
-
* @param WindowClassesIncludeConstructor class for working with window classes/ класс для работы с классами окна
|
|
565
|
-
*/
|
|
566
|
-
constructor(t, e, s, r, a, n, g, d, f = R, v = V, I = T, y = $, b = U, k = N, x = H) {
|
|
567
|
-
i(this, "search");
|
|
568
|
-
i(this, "focus");
|
|
569
|
-
i(this, "data");
|
|
570
|
-
i(this, "event");
|
|
571
|
-
i(this, "go");
|
|
572
|
-
i(this, "control");
|
|
573
|
-
i(this, "windowClasses");
|
|
574
|
-
/** Unique list identifier/ Уникальный идентификатор списка */
|
|
575
|
-
i(this, "id", ++q);
|
|
576
|
-
/**
|
|
577
|
-
* Computed list data
|
|
578
|
-
*
|
|
579
|
-
* Вычисляемые данные списка
|
|
580
|
-
* */
|
|
581
|
-
i(this, "list", l(() => this.props.lite ? this.data.liteData.value : this.data.fullData.value));
|
|
582
|
-
/**
|
|
583
|
-
* Computed CSS classes for the cell component.
|
|
584
|
-
*
|
|
585
|
-
* Вычисляемые CSS классы для компонента ячейки.
|
|
586
|
-
*/
|
|
587
|
-
i(this, "classes", l(() => ({
|
|
588
|
-
[`${this.className}--highlightActive`]: !!this.props.filterMode && this.data.isHighlight()
|
|
589
|
-
})));
|
|
590
|
-
/**
|
|
591
|
-
* Computed binding properties for list items/
|
|
592
|
-
* Вычисляемые привязочные свойства для элементов списка
|
|
593
|
-
* */
|
|
594
|
-
i(this, "itemBinds", l(() => {
|
|
595
|
-
var t;
|
|
596
|
-
return {
|
|
597
|
-
tag: this.props.tag,
|
|
598
|
-
divider: this.props.divider,
|
|
599
|
-
onClick: this.event.onClick,
|
|
600
|
-
...(t = this.props.itemAttrs) != null ? t : {},
|
|
601
|
-
listId: this.id
|
|
602
|
-
};
|
|
603
|
-
}));
|
|
604
|
-
this.props = t, this.refs = e, this.element = s, this.classDesign = r, this.className = a, this.components = n, this.slots = g, this.emits = d, this.search = new f(this.props), this.focus = new v(this.props, this.element, this.id), this.data = new I(
|
|
605
|
-
M(this.props, "list"),
|
|
606
|
-
this.focus.focus,
|
|
607
|
-
this.search.highlight,
|
|
608
|
-
this.refs.highlightLengthStart,
|
|
609
|
-
this.refs.filterMode,
|
|
610
|
-
this.refs.selected,
|
|
611
|
-
this.refs.keyValue,
|
|
612
|
-
this.refs.keyLabel,
|
|
613
|
-
this.refs.liteThreshold,
|
|
614
|
-
void 0,
|
|
615
|
-
this.refs.max
|
|
616
|
-
), this.go = new y(this.props, this.focus, this.data, this.emits), this.control = new b(this.props, this.search, this.data, this.go), this.event = new k(void 0, void 0, d), this.windowClasses = new x(r), A(async () => {
|
|
617
|
-
await L(), this.go.preparationBySelected();
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
/**
|
|
621
|
-
* Returns information about the opening status of a group item.
|
|
622
|
-
*
|
|
623
|
-
* Возвращает информацию о статусе открытия группового элемента.
|
|
624
|
-
* @param item List item data/ данные элемента списка
|
|
625
|
-
*/
|
|
626
|
-
isOpenGroup(t) {
|
|
627
|
-
const e = this.data.getSubList(t);
|
|
628
|
-
return e.isSelected.value || e.isFocus() || e.isHighlight();
|
|
629
|
-
}
|
|
630
|
-
/**
|
|
631
|
-
* Gets binding properties for a list item
|
|
632
|
-
*
|
|
633
|
-
* Получает привязочные свойства для элемента списка
|
|
634
|
-
* @param item List item data/ данные элемента списка
|
|
635
|
-
*/
|
|
636
|
-
getItem(t) {
|
|
637
|
-
return u(
|
|
638
|
-
this.itemBinds.value,
|
|
639
|
-
t,
|
|
640
|
-
{
|
|
641
|
-
key: t.value,
|
|
642
|
-
role: this.props.roleItem
|
|
643
|
-
}
|
|
644
|
-
);
|
|
645
|
-
}
|
|
646
|
-
/**
|
|
647
|
-
* Gets binding properties for a group item in the list
|
|
648
|
-
*
|
|
649
|
-
* Получает привязочные свойства для группового элемента в списке
|
|
650
|
-
* @param item List item data/ данные элемента списка
|
|
651
|
-
*/
|
|
652
|
-
getItemGroup(t) {
|
|
653
|
-
return u(
|
|
654
|
-
this.itemBinds.value,
|
|
655
|
-
this.props.itemGroupAttrs,
|
|
656
|
-
t,
|
|
657
|
-
{
|
|
658
|
-
key: t.value,
|
|
659
|
-
class: `${this.className}__group`
|
|
660
|
-
}
|
|
661
|
-
);
|
|
662
|
-
}
|
|
663
|
-
/**
|
|
664
|
-
* Gets binding properties for a menu item in the list
|
|
665
|
-
*
|
|
666
|
-
* Получает привязочные свойства для элемента меню в списке
|
|
667
|
-
* @param item List item data/ данные элемента списка
|
|
668
|
-
*/
|
|
669
|
-
getItemMenu(t) {
|
|
670
|
-
return u(
|
|
671
|
-
this.itemBinds.value,
|
|
672
|
-
this.props.itemMenuAttrs,
|
|
673
|
-
t,
|
|
674
|
-
{
|
|
675
|
-
key: t.value,
|
|
676
|
-
class: `${this.className}__menu`
|
|
677
|
-
}
|
|
678
|
-
);
|
|
679
|
-
}
|
|
680
|
-
/**
|
|
681
|
-
* Gets binding properties for a group management item with down arrow
|
|
682
|
-
*
|
|
683
|
-
* Получает привязочные свойства для элемента управления группой со стрелкой вниз
|
|
684
|
-
* @param item List item data/ данные элемента списка
|
|
685
|
-
* @param props additional properties/ дополнительные свойства
|
|
686
|
-
*/
|
|
687
|
-
getItemManagementFormGroup(t, e) {
|
|
688
|
-
return this.getItemManagement(
|
|
689
|
-
{
|
|
690
|
-
...t,
|
|
691
|
-
...e,
|
|
692
|
-
filterMode: !1,
|
|
693
|
-
...c.haspopup("listbox")
|
|
694
|
-
},
|
|
695
|
-
e.open,
|
|
696
|
-
this.props.iconArrowDown
|
|
697
|
-
);
|
|
698
|
-
}
|
|
699
|
-
/**
|
|
700
|
-
* Gets binding properties for a menu management item with right arrow
|
|
701
|
-
*
|
|
702
|
-
* Получает привязочные свойства для элемента управления меню со стрелкой вправо
|
|
703
|
-
* @param item List item data/ данные элемента списка
|
|
704
|
-
* @param open Whether the menu is open/ открыто ли меню
|
|
705
|
-
*/
|
|
706
|
-
getItemManagementFormMenu(t, e) {
|
|
707
|
-
return this.getItemManagement(
|
|
708
|
-
{
|
|
709
|
-
...t,
|
|
710
|
-
filterMode: !1
|
|
711
|
-
},
|
|
712
|
-
e,
|
|
713
|
-
this.props.iconArrowRight
|
|
714
|
-
);
|
|
715
|
-
}
|
|
716
|
-
/**
|
|
717
|
-
* Returns a sublist for a group item.
|
|
718
|
-
*
|
|
719
|
-
* Возвращает подсписок для группового элемента.
|
|
720
|
-
* @param item List item data/ данные элемента списка
|
|
721
|
-
*/
|
|
722
|
-
getList(t) {
|
|
723
|
-
return this.data.getSubList(t).fullData.value;
|
|
724
|
-
}
|
|
725
|
-
/**
|
|
726
|
-
* Internal method to create management item binding properties
|
|
727
|
-
*
|
|
728
|
-
* Внутренний метод для создания привязочных свойств элемента управления
|
|
729
|
-
* @param item List item data/ данные элемента списка
|
|
730
|
-
* @param open Whether the item is open/ открыт ли элемент
|
|
731
|
-
* @param icon Icon to display/ иконка для отображения
|
|
732
|
-
*/
|
|
733
|
-
getItemManagement(t, e, s) {
|
|
734
|
-
return u(
|
|
735
|
-
this.itemBinds.value,
|
|
736
|
-
this.props.itemManagementAttrs,
|
|
737
|
-
t,
|
|
738
|
-
{
|
|
739
|
-
class: [
|
|
740
|
-
`${this.className}__management`,
|
|
741
|
-
this.windowClasses.get().static
|
|
742
|
-
],
|
|
743
|
-
focus: (t == null ? void 0 : t.index) === this.focus.focus.value,
|
|
744
|
-
selectedChild: this.isOpenGroup(t),
|
|
745
|
-
open: e,
|
|
746
|
-
iconTurn: e,
|
|
747
|
-
iconTrailing: s,
|
|
748
|
-
iconTrailingTurnOnly: !0,
|
|
749
|
-
"data-status": e ? "open" : "close"
|
|
750
|
-
}
|
|
751
|
-
);
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
const Y = {
|
|
755
|
-
keyLabel: "label",
|
|
756
|
-
keyValue: "value",
|
|
757
|
-
tag: "div",
|
|
758
|
-
role: "listbox",
|
|
759
|
-
// :default [!] System label / Системная метка
|
|
760
|
-
axis: "y"
|
|
761
|
-
};
|
|
762
|
-
class Z extends P {
|
|
763
|
-
/**
|
|
764
|
-
* Constructor
|
|
765
|
-
* @param name class name/ название класса
|
|
766
|
-
* @param props properties/ свойства
|
|
767
|
-
* @param options list of additional parameters/ список дополнительных параметров
|
|
768
|
-
* @param ItemConstructor class for working with the item/ класс для работы с элементом
|
|
769
|
-
*/
|
|
770
|
-
constructor(e, s, r, a = X) {
|
|
771
|
-
super(
|
|
772
|
-
e,
|
|
773
|
-
s,
|
|
774
|
-
r
|
|
775
|
-
);
|
|
776
|
-
i(this, "item");
|
|
777
|
-
/**
|
|
778
|
-
* Generates all elements from the list.
|
|
779
|
-
*
|
|
780
|
-
* Генерирует все элементы из списка.
|
|
781
|
-
*/
|
|
782
|
-
i(this, "renderData", () => this.renderDataByItem("item", this.item.list.value, !0));
|
|
783
|
-
/**
|
|
784
|
-
* Generates an element.
|
|
785
|
-
*
|
|
786
|
-
* Генерирует элемент.
|
|
787
|
-
* @param type type of list/ тип списка
|
|
788
|
-
* @param item selected element/ выбранный элемент
|
|
789
|
-
*/
|
|
790
|
-
i(this, "renderItem", (e, s) => this.components.renderOne(
|
|
791
|
-
"listItem",
|
|
792
|
-
this.getItemAttrs(e, s)
|
|
793
|
-
));
|
|
794
|
-
/**
|
|
795
|
-
* Generates a group element.
|
|
796
|
-
*
|
|
797
|
-
* Генерирует групповой элемент.
|
|
798
|
-
* @param item selected element/ выбранный элемент
|
|
799
|
-
* @param props data for working with the group/ данные для работы с группой
|
|
800
|
-
*/
|
|
801
|
-
i(this, "renderItemGroup", (e, s) => this.components.renderOne(
|
|
802
|
-
"listItem",
|
|
803
|
-
this.item.getItemManagementFormGroup(e, s)
|
|
804
|
-
));
|
|
805
|
-
/**
|
|
806
|
-
* Generates a menu element.
|
|
807
|
-
*
|
|
808
|
-
* Генерирует элемент меню.
|
|
809
|
-
* @param item selected element/ выбранный элемент
|
|
810
|
-
* @param props data for working with the menu/ данные для работы с меню
|
|
811
|
-
*/
|
|
812
|
-
i(this, "renderItemMenu", (e, s) => this.components.renderOne(
|
|
813
|
-
"listItem",
|
|
814
|
-
u(
|
|
815
|
-
this.item.getItemManagementFormMenu(e, !!s.open.value),
|
|
816
|
-
s.binds
|
|
817
|
-
)
|
|
818
|
-
));
|
|
819
|
-
/**
|
|
820
|
-
* Generates a break between elements.
|
|
821
|
-
*
|
|
822
|
-
* Генерирует разрыв между элементами.
|
|
823
|
-
* @param item selected element/ выбранный элемент
|
|
824
|
-
*/
|
|
825
|
-
i(this, "renderSpace", (e) => {
|
|
826
|
-
var s;
|
|
827
|
-
return o("div", {
|
|
828
|
-
key: e.value,
|
|
829
|
-
class: [
|
|
830
|
-
(s = this.classes) == null ? void 0 : s.value.space,
|
|
831
|
-
this.item.windowClasses.get().static
|
|
832
|
-
],
|
|
833
|
-
...c.role("separator")
|
|
834
|
-
});
|
|
835
|
-
});
|
|
836
|
-
/**
|
|
837
|
-
* Generates a dividing line.
|
|
838
|
-
*
|
|
839
|
-
* Генерирует линию разделения.
|
|
840
|
-
* @param item selected element/ выбранный элемент
|
|
841
|
-
*/
|
|
842
|
-
i(this, "renderLine", (e) => {
|
|
843
|
-
var s;
|
|
844
|
-
return o("div", {
|
|
845
|
-
key: e.value,
|
|
846
|
-
class: [
|
|
847
|
-
(s = this.classes) == null ? void 0 : s.value.line,
|
|
848
|
-
this.item.windowClasses.get().static
|
|
849
|
-
],
|
|
850
|
-
...c.role("separator")
|
|
851
|
-
});
|
|
852
|
-
});
|
|
853
|
-
/**
|
|
854
|
-
* Generates a subtitle.
|
|
855
|
-
*
|
|
856
|
-
* Генерирует подзаголовок.
|
|
857
|
-
* @param item selected element/ выбранный элемент
|
|
858
|
-
*/
|
|
859
|
-
i(this, "renderSubtitle", (e) => {
|
|
860
|
-
var s;
|
|
861
|
-
return o("div", {
|
|
862
|
-
key: e.value,
|
|
863
|
-
class: [
|
|
864
|
-
(s = this.classes) == null ? void 0 : s.value.subtitle,
|
|
865
|
-
this.item.windowClasses.get().static
|
|
866
|
-
],
|
|
867
|
-
...c.role("separator")
|
|
868
|
-
}, e.label);
|
|
869
|
-
});
|
|
870
|
-
/**
|
|
871
|
-
* Generates HTML code by the slot name or the value of the `label` field.
|
|
872
|
-
*
|
|
873
|
-
* Генерирует HTML-код по названию слота или значению поля `label`.
|
|
874
|
-
* @param item selected element/ выбранный элемент
|
|
875
|
-
*/
|
|
876
|
-
i(this, "renderHtml", (e) => {
|
|
877
|
-
var r;
|
|
878
|
-
const s = {
|
|
879
|
-
key: e.label && O(e.value) ? e.label : e.value,
|
|
880
|
-
class: [
|
|
881
|
-
(r = this.classes) == null ? void 0 : r.value.html,
|
|
882
|
-
this.item.windowClasses.get().static
|
|
883
|
-
]
|
|
884
|
-
};
|
|
885
|
-
return this.slots && e.value in this.slots ? o("div", s, this.initSlot(e.value)) : o("div", {
|
|
886
|
-
...s,
|
|
887
|
-
innerHTML: e.label
|
|
888
|
-
});
|
|
889
|
-
});
|
|
890
|
-
/**
|
|
891
|
-
* Generates a group of lists.
|
|
892
|
-
*
|
|
893
|
-
* Генерирует группу списков.
|
|
894
|
-
* @param item selected element/ выбранный элемент
|
|
895
|
-
*/
|
|
896
|
-
i(this, "renderGroup", (e) => this.components.renderOne(
|
|
897
|
-
"listGroup",
|
|
898
|
-
{
|
|
899
|
-
open: this.item.isOpenGroup(e),
|
|
900
|
-
divider: this.props.divider,
|
|
901
|
-
disabled: e.disabled
|
|
902
|
-
},
|
|
903
|
-
{
|
|
904
|
-
head: (s) => this.renderItemGroup(e, s),
|
|
905
|
-
list: () => this.renderDataByItem("group", this.item.getList(e))
|
|
906
|
-
}
|
|
907
|
-
));
|
|
908
|
-
/**
|
|
909
|
-
* Generates a menu of lists.
|
|
910
|
-
*
|
|
911
|
-
* Генерирует меню списков.
|
|
912
|
-
* @param item selected element/ выбранный элемент
|
|
913
|
-
* @param first is the first element/ является ли первым элементом
|
|
914
|
-
*/
|
|
915
|
-
i(this, "renderMenu", (e, s) => this.components.renderOne(
|
|
916
|
-
"listMenu",
|
|
917
|
-
{
|
|
918
|
-
divider: this.props.divider,
|
|
919
|
-
axis: s && this.props.axis === "x" ? "y" : "x",
|
|
920
|
-
disabled: e.disabled
|
|
921
|
-
},
|
|
922
|
-
{
|
|
923
|
-
head: (r) => this.renderItemMenu(e, r),
|
|
924
|
-
list: () => this.renderDataByItem("menu", this.item.getList(e))
|
|
925
|
-
}
|
|
926
|
-
));
|
|
927
|
-
this.item = new a(
|
|
928
|
-
this.props,
|
|
929
|
-
this.refs,
|
|
930
|
-
this.element,
|
|
931
|
-
this.getDesign(),
|
|
932
|
-
this.getName(),
|
|
933
|
-
this.components,
|
|
934
|
-
this.slots,
|
|
935
|
-
this.emits
|
|
936
|
-
), this.init();
|
|
937
|
-
}
|
|
938
|
-
/**
|
|
939
|
-
* Initialization of all the necessary properties for work
|
|
940
|
-
*
|
|
941
|
-
* Инициализация всех необходимых свойств для работы.
|
|
942
|
-
*/
|
|
943
|
-
initExpose() {
|
|
944
|
-
return {
|
|
945
|
-
isSelected: this.item.data.isSelected,
|
|
946
|
-
selectedList: this.item.data.selectedList,
|
|
947
|
-
selectedNames: this.item.data.selectedNames,
|
|
948
|
-
selectedValues: this.item.data.selectedValues
|
|
949
|
-
};
|
|
950
|
-
}
|
|
951
|
-
/**
|
|
952
|
-
* Improvement of the obtained list of classes.
|
|
953
|
-
*
|
|
954
|
-
* Доработка полученного списка классов.
|
|
955
|
-
*/
|
|
956
|
-
initClasses() {
|
|
957
|
-
return {
|
|
958
|
-
main: this.item.classes.value,
|
|
959
|
-
// :classes [!] System label / Системная метка
|
|
960
|
-
space: this.getSubClass("space"),
|
|
961
|
-
line: this.getSubClass("line"),
|
|
962
|
-
subtitle: this.getSubClass("subtitle"),
|
|
963
|
-
html: this.getSubClass("html"),
|
|
964
|
-
management: this.getSubClass("management"),
|
|
965
|
-
group: this.getSubClass("group"),
|
|
966
|
-
menu: this.getSubClass("menu"),
|
|
967
|
-
menuGroup: this.getSubClass("menuGroup")
|
|
968
|
-
};
|
|
969
|
-
}
|
|
970
|
-
/**
|
|
971
|
-
* Refinement of the received list of styles.
|
|
972
|
-
*
|
|
973
|
-
* Доработка полученного списка стилей.
|
|
974
|
-
*/
|
|
975
|
-
initStyles() {
|
|
976
|
-
return {};
|
|
977
|
-
}
|
|
978
|
-
/**
|
|
979
|
-
* A method for rendering.
|
|
980
|
-
*
|
|
981
|
-
* Метод для рендеринга.
|
|
982
|
-
*/
|
|
983
|
-
initRender() {
|
|
984
|
-
var e;
|
|
985
|
-
return o(
|
|
986
|
-
"div",
|
|
987
|
-
{
|
|
988
|
-
...this.getAttrs(),
|
|
989
|
-
ref: this.element,
|
|
990
|
-
class: (e = this.classes) == null ? void 0 : e.value.main,
|
|
991
|
-
...c.role(this.props.role)
|
|
992
|
-
},
|
|
993
|
-
this.renderData()
|
|
994
|
-
);
|
|
995
|
-
}
|
|
996
|
-
/**
|
|
997
|
-
* Generates all elements from the list.
|
|
998
|
-
*
|
|
999
|
-
* Генерирует все элементы из списка.
|
|
1000
|
-
* @param type type of list/ тип списка
|
|
1001
|
-
* @param data selected element/ выбранный элемент
|
|
1002
|
-
* @param first is the first element/ является ли первым элементом
|
|
1003
|
-
*/
|
|
1004
|
-
renderDataByItem(e, s, r = !1) {
|
|
1005
|
-
const a = [];
|
|
1006
|
-
return s.forEach((n) => {
|
|
1007
|
-
switch (n.type) {
|
|
1008
|
-
case "space":
|
|
1009
|
-
a.push(this.renderSpace(n));
|
|
1010
|
-
break;
|
|
1011
|
-
case "line":
|
|
1012
|
-
a.push(this.renderLine(n));
|
|
1013
|
-
break;
|
|
1014
|
-
case "subtitle":
|
|
1015
|
-
a.push(this.renderSubtitle(n));
|
|
1016
|
-
break;
|
|
1017
|
-
case "html":
|
|
1018
|
-
a.push(this.renderHtml(n));
|
|
1019
|
-
break;
|
|
1020
|
-
case "group":
|
|
1021
|
-
this.isHighlight(n) && a.push(this.renderGroup(n));
|
|
1022
|
-
break;
|
|
1023
|
-
case "menu":
|
|
1024
|
-
this.isHighlight(n) && a.push(this.renderMenu(n, r));
|
|
1025
|
-
break;
|
|
1026
|
-
default:
|
|
1027
|
-
a.push(this.renderItem(e, n));
|
|
1028
|
-
break;
|
|
1029
|
-
}
|
|
1030
|
-
}), a.push(o("div")), a;
|
|
1031
|
-
}
|
|
1032
|
-
/**
|
|
1033
|
-
* Determines if highlighting is required.
|
|
1034
|
-
*
|
|
1035
|
-
* Определяет, требуется ли выделение.
|
|
1036
|
-
* @param item selected element/ выбранный элемент
|
|
1037
|
-
*/
|
|
1038
|
-
isHighlight(e) {
|
|
1039
|
-
return this.props.filterMode ? this.item.data.getSubList(e).isHighlightActive() : !0;
|
|
1040
|
-
}
|
|
1041
|
-
/**
|
|
1042
|
-
* Returns binding properties for the item.
|
|
1043
|
-
*
|
|
1044
|
-
* Возвращает привязочные свойства для элемента.
|
|
1045
|
-
* @param type type of list/ тип списка
|
|
1046
|
-
* @param item selected element/ выбранный элемент
|
|
1047
|
-
*/
|
|
1048
|
-
getItemAttrs(e, s) {
|
|
1049
|
-
switch (e) {
|
|
1050
|
-
case "group":
|
|
1051
|
-
return this.item.getItemGroup(s);
|
|
1052
|
-
case "menu":
|
|
1053
|
-
return this.item.getItemMenu(s);
|
|
1054
|
-
default:
|
|
1055
|
-
return this.item.getItem(s);
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
|
-
export {
|
|
1060
|
-
X as List,
|
|
1061
|
-
Z as ListDesign,
|
|
1062
|
-
Y as defaultsList
|
|
1
|
+
import { t as e } from "./AriaStaticInclude-CS1hPGyK.js";
|
|
2
|
+
import { t } from "./defineProperty-hmGKPWdq.js";
|
|
3
|
+
import { t as n } from "./EventClickInclude-6I8kuFc9.js";
|
|
4
|
+
import { t as r } from "./WindowClassesInclude-zm-ITw5d.js";
|
|
5
|
+
import { computed as i, h as a, nextTick as o, onMounted as s, onUnmounted as c, ref as l, toRef as u, watch as d } from "vue";
|
|
6
|
+
import { DesignConstructorAbstract as f, EventItem as p, ListDataRef as m, goScroll as h, isDomRuntime as g, isFilled as _, isObject as v, isSelected as y, toBinds as b } from "@dxtmisha/functional";
|
|
7
|
+
//#region src/constructors/List/ListSearch.ts
|
|
8
|
+
var x = class {
|
|
9
|
+
constructor(e) {
|
|
10
|
+
t(this, "item", l()), t(this, "timeout", void 0), t(this, "highlight", i(() => {
|
|
11
|
+
var e;
|
|
12
|
+
return (e = this.item.value) == null ? this.props.highlight : e;
|
|
13
|
+
})), this.props = e;
|
|
14
|
+
}
|
|
15
|
+
add(e) {
|
|
16
|
+
this.addChar(e).makeReset();
|
|
17
|
+
}
|
|
18
|
+
set(e) {
|
|
19
|
+
let t = this.getValue(e);
|
|
20
|
+
this.item.value !== t && (this.item.value = t);
|
|
21
|
+
}
|
|
22
|
+
reset() {
|
|
23
|
+
return this.set(), this;
|
|
24
|
+
}
|
|
25
|
+
getValue(e) {
|
|
26
|
+
if (_(e)) return e.trim();
|
|
27
|
+
}
|
|
28
|
+
addChar(e) {
|
|
29
|
+
return this.item.value && this.timeout ? this.item.value += e : this.item.value = e, this;
|
|
30
|
+
}
|
|
31
|
+
makeReset() {
|
|
32
|
+
return this.timeout && clearTimeout(this.timeout), this.timeout = setTimeout(() => this.timeout = void 0, 2e3), this;
|
|
33
|
+
}
|
|
34
|
+
}, S = 24, C = class {
|
|
35
|
+
constructor(e, n, r) {
|
|
36
|
+
t(this, "item", l()), t(this, "focus", i(() => {
|
|
37
|
+
var e, t;
|
|
38
|
+
return (e = (t = this.item.value) == null ? void 0 : t.index) == null ? this.props.focus : e;
|
|
39
|
+
})), this.props = e, this.element = n, this.listId = r;
|
|
40
|
+
}
|
|
41
|
+
isElement(e) {
|
|
42
|
+
return !!this.getElement(e);
|
|
43
|
+
}
|
|
44
|
+
isItem() {
|
|
45
|
+
var e;
|
|
46
|
+
return ((e = this.item.value) == null ? void 0 : e.type) === "item";
|
|
47
|
+
}
|
|
48
|
+
isGroup() {
|
|
49
|
+
var e;
|
|
50
|
+
return ((e = this.item.value) == null ? void 0 : e.type) === "group";
|
|
51
|
+
}
|
|
52
|
+
isMenu() {
|
|
53
|
+
var e;
|
|
54
|
+
return ((e = this.item.value) == null ? void 0 : e.type) === "menu";
|
|
55
|
+
}
|
|
56
|
+
isOpen() {
|
|
57
|
+
let e = this.getElement();
|
|
58
|
+
return e && (this.isGroup() || this.isMenu()) ? e.dataset.status === "open" : !1;
|
|
59
|
+
}
|
|
60
|
+
get() {
|
|
61
|
+
return this.item.value;
|
|
62
|
+
}
|
|
63
|
+
getSelector(e) {
|
|
64
|
+
var t;
|
|
65
|
+
return `[data-list-id="${this.listId}"][data-value="${e == null ? (t = this.item.value) == null ? void 0 : t.index : e}"]`;
|
|
66
|
+
}
|
|
67
|
+
getElement(e) {
|
|
68
|
+
var t;
|
|
69
|
+
return (t = document.querySelector(this.getSelector(e))) == null ? void 0 : t;
|
|
70
|
+
}
|
|
71
|
+
set(e) {
|
|
72
|
+
return this.item.value !== e && (this.item.value = e, this.toFocus()), this;
|
|
73
|
+
}
|
|
74
|
+
reset() {
|
|
75
|
+
return this.set(void 0), this;
|
|
76
|
+
}
|
|
77
|
+
click() {
|
|
78
|
+
var e;
|
|
79
|
+
(e = this.getElement()) == null || e.click();
|
|
80
|
+
}
|
|
81
|
+
toElementFocus() {
|
|
82
|
+
return !!(this.item.value && this.getElement());
|
|
83
|
+
}
|
|
84
|
+
toElementSelected(e) {
|
|
85
|
+
return this.toElement(this.getElement(e)), this;
|
|
86
|
+
}
|
|
87
|
+
toElement(e) {
|
|
88
|
+
let t = "*[data-window-body]";
|
|
89
|
+
e && e.closest(t) && (h(t, e), this.toFocus());
|
|
90
|
+
}
|
|
91
|
+
toFocus(e = S) {
|
|
92
|
+
if (e > 0 && this.element.value && this.props.control) {
|
|
93
|
+
let n = this.getElement();
|
|
94
|
+
if (n) n.focus();
|
|
95
|
+
else {
|
|
96
|
+
var t;
|
|
97
|
+
(t = document.activeElement) == null || t.blur(), setTimeout(() => {
|
|
98
|
+
this.toFocus(e - 1);
|
|
99
|
+
}, 128);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}, w = class {
|
|
104
|
+
constructor(e, n, r, i) {
|
|
105
|
+
t(this, "index", -1), this.props = e, this.focus = n, this.data = r, this.emits = i;
|
|
106
|
+
}
|
|
107
|
+
set(e) {
|
|
108
|
+
return this.index === e ? !1 : (e < 0 ? this.reset() : this.setByIndex(e), !0);
|
|
109
|
+
}
|
|
110
|
+
preparation(e) {
|
|
111
|
+
let t = this.data.map.value, n = t.findIndex((t) => y(t.index, e));
|
|
112
|
+
this.reset(), n >= 0 && (this.index = n, t != null && t[n] && this.focus.toElementSelected(t[n].index));
|
|
113
|
+
}
|
|
114
|
+
preparationBySelected() {
|
|
115
|
+
this.props.selected && requestAnimationFrame(() => this.preparation(this.props.selected));
|
|
116
|
+
}
|
|
117
|
+
previous() {
|
|
118
|
+
this.isFirstByParent() || (this.setByIndex(this.index - 1), this.focus.toElementFocus() || this.previous());
|
|
119
|
+
}
|
|
120
|
+
next() {
|
|
121
|
+
this.isLastByParent() || (this.setByIndex(this.index + 1), this.focus.toElementFocus() || this.next());
|
|
122
|
+
}
|
|
123
|
+
first() {
|
|
124
|
+
let e = this.getParentId(), t = this.data.getFirstItemByParent(e);
|
|
125
|
+
t && (this.preparation(t.index), this.focus.set(t));
|
|
126
|
+
}
|
|
127
|
+
last() {
|
|
128
|
+
let e = this.getParentId(), t = this.data.getLastItemByParent(e);
|
|
129
|
+
t && (this.preparation(t.index), this.focus.set(t));
|
|
130
|
+
}
|
|
131
|
+
reset() {
|
|
132
|
+
this.index = -1, this.focus.reset();
|
|
133
|
+
}
|
|
134
|
+
open() {
|
|
135
|
+
this.focus.isItem() ? this.focus.click() : (this.focus.isGroup() || this.focus.isMenu()) && (this.focus.click(), this.nextByType());
|
|
136
|
+
}
|
|
137
|
+
close() {
|
|
138
|
+
let e = this.getMainItem();
|
|
139
|
+
if (e) {
|
|
140
|
+
e.click();
|
|
141
|
+
let t = this.data.getItemByIndex(e.dataset.value);
|
|
142
|
+
t && (this.set(t.key), this.focus.set(t.item));
|
|
143
|
+
} else {
|
|
144
|
+
var t;
|
|
145
|
+
(t = this.emits) == null || t.call(this, "close");
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
stop() {
|
|
149
|
+
this.focus.reset();
|
|
150
|
+
}
|
|
151
|
+
isFirstByParent() {
|
|
152
|
+
let e = this.getParentId();
|
|
153
|
+
if (e && this.focus.isElement()) {
|
|
154
|
+
var t, n;
|
|
155
|
+
return ((t = this.data.getFirstItemByParent(e)) == null ? void 0 : t.index) === ((n = this.focus.item.value) == null ? void 0 : n.index);
|
|
156
|
+
}
|
|
157
|
+
return !1;
|
|
158
|
+
}
|
|
159
|
+
isLastByParent() {
|
|
160
|
+
let e = this.getParentId();
|
|
161
|
+
if (e && this.focus.isElement()) {
|
|
162
|
+
var t, n;
|
|
163
|
+
return ((t = this.data.getLastItemByParent(e)) == null ? void 0 : t.index) === ((n = this.focus.item.value) == null ? void 0 : n.index);
|
|
164
|
+
}
|
|
165
|
+
return !1;
|
|
166
|
+
}
|
|
167
|
+
getMainItem() {
|
|
168
|
+
let e = this.getParentId();
|
|
169
|
+
if (e && !this.focus.isOpen()) return this.focus.getElement(e);
|
|
170
|
+
}
|
|
171
|
+
getParentId() {
|
|
172
|
+
var e;
|
|
173
|
+
return (e = this.focus.item.value) == null ? void 0 : e.parent;
|
|
174
|
+
}
|
|
175
|
+
setByIndex(e) {
|
|
176
|
+
let t = this.data.getLengthByMap();
|
|
177
|
+
e >= t ? this.index = 0 : e < 0 ? this.index = t - 1 : this.index = e;
|
|
178
|
+
let n = this.data.map.value[this.index];
|
|
179
|
+
n && (n.type === "item" || n.type === "group" || n.type === "menu") ? this.focus.set(n) : this.focus.reset();
|
|
180
|
+
}
|
|
181
|
+
nextByType() {
|
|
182
|
+
this.setByIndex(this.index + 1), !(this.focus.isItem() || this.focus.isGroup() || this.focus.isMenu()) && this.nextByType();
|
|
183
|
+
}
|
|
184
|
+
}, T = class {
|
|
185
|
+
constructor(e, n, r, a) {
|
|
186
|
+
t(this, "event", void 0), t(this, "isActive", i(() => !!this.props.control)), t(this, "onFocus", () => {
|
|
187
|
+
this.props.control || this.start();
|
|
188
|
+
}), t(this, "onBlur", () => {
|
|
189
|
+
this.props.control || this.stop();
|
|
190
|
+
}), t(this, "on", (e) => {
|
|
191
|
+
if (this.isNotInput(e.target) && this.data.getLength()) if (e.type === "keypress") this.updateSearch(e);
|
|
192
|
+
else switch (e.code || e.key || e.keyCode) {
|
|
193
|
+
case "Backspace":
|
|
194
|
+
case 8:
|
|
195
|
+
this.updateSearch(e);
|
|
196
|
+
break;
|
|
197
|
+
case "ArrowUp":
|
|
198
|
+
case 38:
|
|
199
|
+
e.preventDefault(), this.go.previous();
|
|
200
|
+
break;
|
|
201
|
+
case "ArrowDown":
|
|
202
|
+
case 40:
|
|
203
|
+
e.preventDefault(), this.go.next();
|
|
204
|
+
break;
|
|
205
|
+
case "Enter":
|
|
206
|
+
case "ArrowRight":
|
|
207
|
+
case " ":
|
|
208
|
+
case 13:
|
|
209
|
+
case 39:
|
|
210
|
+
e.preventDefault(), this.go.open();
|
|
211
|
+
break;
|
|
212
|
+
case "ArrowLeft":
|
|
213
|
+
case "Escape":
|
|
214
|
+
case "Esc":
|
|
215
|
+
case 27:
|
|
216
|
+
case 37:
|
|
217
|
+
e.preventDefault(), this.go.close();
|
|
218
|
+
break;
|
|
219
|
+
case "Home":
|
|
220
|
+
case 36:
|
|
221
|
+
e.preventDefault(), this.go.first();
|
|
222
|
+
break;
|
|
223
|
+
case "End":
|
|
224
|
+
case 35:
|
|
225
|
+
e.preventDefault(), this.go.last();
|
|
226
|
+
break;
|
|
227
|
+
case "Space":
|
|
228
|
+
case 32:
|
|
229
|
+
this.getActiveElement() || (e.preventDefault(), this.go.open());
|
|
230
|
+
break;
|
|
231
|
+
}
|
|
232
|
+
}), this.props = e, this.search = n, this.data = r, this.go = a, d(this.isActive, (e) => {
|
|
233
|
+
e ? this.start() : this.stop();
|
|
234
|
+
}, { immediate: !0 }), c(() => this.stop());
|
|
235
|
+
}
|
|
236
|
+
isNotInput(e) {
|
|
237
|
+
return ["INPUT", "TEXTAREA"].indexOf(e.nodeName) === -1 || !!this.getActiveElement();
|
|
238
|
+
}
|
|
239
|
+
getActiveElement() {
|
|
240
|
+
if (g()) {
|
|
241
|
+
var e;
|
|
242
|
+
let t = document.activeElement;
|
|
243
|
+
if (t && ((e = t.dataset) == null ? void 0 : e.menuControl) === "1") return t;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
start() {
|
|
247
|
+
g() && (this.event || (this.event = new p(document.body, ["keydown", "keypress"], this.on)), this.go.reset(), this.event.start());
|
|
248
|
+
}
|
|
249
|
+
stop() {
|
|
250
|
+
this.event && (this.event.stop(), this.event = void 0, this.go.stop());
|
|
251
|
+
}
|
|
252
|
+
updateSearch(e) {
|
|
253
|
+
let t = this.getActiveElement();
|
|
254
|
+
t ? requestAnimationFrame(() => this.search.set(t.value)) : this.search.add(e.key);
|
|
255
|
+
}
|
|
256
|
+
}, E = 1, D = class {
|
|
257
|
+
constructor(e, a, c, l, d, f, p, h, g) {
|
|
258
|
+
t(this, "search", void 0), t(this, "focus", void 0), t(this, "data", void 0), t(this, "event", void 0), t(this, "go", void 0), t(this, "control", void 0), t(this, "windowClasses", void 0), t(this, "id", ++E), t(this, "list", i(() => this.props.lite ? this.data.liteData.value : this.data.fullData.value)), t(this, "classes", i(() => ({ [`${this.className}--highlightActive`]: !!this.props.filterMode && this.data.isHighlight() }))), t(this, "itemBinds", i(() => {
|
|
259
|
+
var e;
|
|
260
|
+
return {
|
|
261
|
+
tag: this.props.tag,
|
|
262
|
+
divider: this.props.divider,
|
|
263
|
+
onClick: this.event.onClick,
|
|
264
|
+
...(e = this.props.itemAttrs) == null ? {} : e,
|
|
265
|
+
listId: this.id
|
|
266
|
+
};
|
|
267
|
+
})), this.props = e, this.refs = a, this.element = c, this.classDesign = l, this.className = d, this.components = f, this.slots = p, this.emits = h;
|
|
268
|
+
let { EventClickIncludeConstructor: _ = n, ListControlConstructor: v = T, ListDataRefConstructor: y = m, ListFocusConstructor: b = C, ListGoConstructor: S = w, ListSearchConstructor: D = x, WindowClassesIncludeConstructor: O = r } = g == null ? {} : g;
|
|
269
|
+
this.search = new D(this.props), this.focus = new b(this.props, this.element, this.id), this.data = new y(u(this.props, "list"), this.focus.focus, this.search.highlight, this.refs.highlightLengthStart, this.refs.filterMode, this.refs.selected, this.refs.keyValue, this.refs.keyLabel, this.refs.liteThreshold, void 0, this.refs.max), this.go = new S(this.props, this.focus, this.data, this.emits), this.control = new v(this.props, this.search, this.data, this.go), this.event = new _(void 0, void 0, h), this.windowClasses = new O(l), this.props.control && s(async () => {
|
|
270
|
+
await o(), this.go.preparationBySelected();
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
isOpenGroup(e) {
|
|
274
|
+
let t = this.data.getSubList(e);
|
|
275
|
+
return t.isSelected.value || t.isFocus() || t.isHighlight();
|
|
276
|
+
}
|
|
277
|
+
getItem(e) {
|
|
278
|
+
return b(this.itemBinds.value, e, {
|
|
279
|
+
key: e.value,
|
|
280
|
+
role: this.props.roleItem
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
getItemGroup(e) {
|
|
284
|
+
return b(this.itemBinds.value, this.props.itemGroupAttrs, e, {
|
|
285
|
+
key: e.value,
|
|
286
|
+
class: `${this.className}__group`
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
getItemMenu(e) {
|
|
290
|
+
return b(this.itemBinds.value, this.props.itemMenuAttrs, e, {
|
|
291
|
+
key: e.value,
|
|
292
|
+
class: `${this.className}__menu`
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
getItemManagementFormGroup(t, n) {
|
|
296
|
+
return this.getItemManagement({
|
|
297
|
+
...t,
|
|
298
|
+
...n,
|
|
299
|
+
filterMode: !1,
|
|
300
|
+
...e.haspopup("listbox")
|
|
301
|
+
}, n.open, this.props.iconArrowDown);
|
|
302
|
+
}
|
|
303
|
+
getItemManagementFormMenu(e, t) {
|
|
304
|
+
return this.getItemManagement({
|
|
305
|
+
...e,
|
|
306
|
+
filterMode: !1
|
|
307
|
+
}, t, this.props.iconArrowRight);
|
|
308
|
+
}
|
|
309
|
+
getList(e) {
|
|
310
|
+
return this.data.getSubList(e).fullData.value;
|
|
311
|
+
}
|
|
312
|
+
getItemManagement(e, t, n) {
|
|
313
|
+
return b(this.itemBinds.value, this.props.itemManagementAttrs, e, {
|
|
314
|
+
class: [`${this.className}__management`, this.windowClasses.get().static],
|
|
315
|
+
focus: (e == null ? void 0 : e.index) === this.focus.focus.value,
|
|
316
|
+
selectedChild: this.isOpenGroup(e),
|
|
317
|
+
open: t,
|
|
318
|
+
iconTurn: t,
|
|
319
|
+
iconTrailing: n,
|
|
320
|
+
iconTrailingTurnOnly: !0,
|
|
321
|
+
"data-status": t ? "open" : "close"
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
}, O = {
|
|
325
|
+
keyLabel: "label",
|
|
326
|
+
keyValue: "value",
|
|
327
|
+
tag: "div",
|
|
328
|
+
role: "listbox",
|
|
329
|
+
tabindex: 0,
|
|
330
|
+
axis: "y"
|
|
331
|
+
}, k = class extends f {
|
|
332
|
+
constructor(n, r, i, o = D) {
|
|
333
|
+
super(n, r, i), t(this, "item", void 0), t(this, "renderData", () => this.renderDataByItem("item", this.item.list.value, !0)), t(this, "renderItem", (e, t) => this.components.renderOne("listItem", this.getItemAttrs(e, t))), t(this, "renderItemGroup", (e, t) => this.components.renderOne("listItem", this.item.getItemManagementFormGroup(e, t))), t(this, "renderItemMenu", (e, t) => this.components.renderOne("listItem", b(this.item.getItemManagementFormMenu(e, !!t.open.value), t.binds))), t(this, "renderSpace", (t) => {
|
|
334
|
+
var n;
|
|
335
|
+
return a("div", {
|
|
336
|
+
key: t.value,
|
|
337
|
+
class: [(n = this.classes) == null ? void 0 : n.value.space, this.item.windowClasses.get().static],
|
|
338
|
+
...e.role("separator")
|
|
339
|
+
});
|
|
340
|
+
}), t(this, "renderLine", (t) => {
|
|
341
|
+
var n;
|
|
342
|
+
return a("div", {
|
|
343
|
+
key: t.value,
|
|
344
|
+
class: [(n = this.classes) == null ? void 0 : n.value.line, this.item.windowClasses.get().static],
|
|
345
|
+
...e.role("separator")
|
|
346
|
+
});
|
|
347
|
+
}), t(this, "renderSubtitle", (t) => {
|
|
348
|
+
var n;
|
|
349
|
+
return a("div", {
|
|
350
|
+
key: t.value,
|
|
351
|
+
class: [(n = this.classes) == null ? void 0 : n.value.subtitle, this.item.windowClasses.get().static],
|
|
352
|
+
...e.role("separator")
|
|
353
|
+
}, t.label);
|
|
354
|
+
}), t(this, "renderHtml", (e) => {
|
|
355
|
+
var t;
|
|
356
|
+
let n = {
|
|
357
|
+
key: e.label && v(e.value) ? e.label : e.value,
|
|
358
|
+
class: [(t = this.classes) == null ? void 0 : t.value.html, this.item.windowClasses.get().static]
|
|
359
|
+
};
|
|
360
|
+
return this.slots && e.value in this.slots ? a("div", n, this.initSlot(e.value)) : a("div", {
|
|
361
|
+
...n,
|
|
362
|
+
innerHTML: e.label
|
|
363
|
+
});
|
|
364
|
+
}), t(this, "renderGroup", (e) => this.components.renderOne("listGroup", {
|
|
365
|
+
open: this.item.isOpenGroup(e),
|
|
366
|
+
divider: this.props.divider,
|
|
367
|
+
disabled: e.disabled
|
|
368
|
+
}, {
|
|
369
|
+
head: (t) => this.renderItemGroup(e, t),
|
|
370
|
+
list: () => this.renderDataByItem("group", this.item.getList(e))
|
|
371
|
+
})), t(this, "renderMenu", (e, t) => this.components.renderOne("listMenu", {
|
|
372
|
+
divider: this.props.divider,
|
|
373
|
+
axis: t && this.props.axis === "x" ? "y" : "x",
|
|
374
|
+
disabled: e.disabled
|
|
375
|
+
}, {
|
|
376
|
+
head: (t) => this.renderItemMenu(e, t),
|
|
377
|
+
list: () => this.renderDataByItem("menu", this.item.getList(e))
|
|
378
|
+
})), this.item = new o(this.props, this.refs, this.element, this.getDesign(), this.getName(), this.components, this.slots, this.emits), this.init();
|
|
379
|
+
}
|
|
380
|
+
initExpose() {
|
|
381
|
+
return {
|
|
382
|
+
isSelected: this.item.data.isSelected,
|
|
383
|
+
selectedList: this.item.data.selectedList,
|
|
384
|
+
selectedNames: this.item.data.selectedNames,
|
|
385
|
+
selectedValues: this.item.data.selectedValues
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
initClasses() {
|
|
389
|
+
return {
|
|
390
|
+
main: this.item.classes.value,
|
|
391
|
+
space: this.getSubClass("space"),
|
|
392
|
+
line: this.getSubClass("line"),
|
|
393
|
+
subtitle: this.getSubClass("subtitle"),
|
|
394
|
+
html: this.getSubClass("html"),
|
|
395
|
+
management: this.getSubClass("management"),
|
|
396
|
+
group: this.getSubClass("group"),
|
|
397
|
+
menu: this.getSubClass("menu"),
|
|
398
|
+
menuGroup: this.getSubClass("menuGroup")
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
initStyles() {
|
|
402
|
+
return {};
|
|
403
|
+
}
|
|
404
|
+
initRender() {
|
|
405
|
+
var t;
|
|
406
|
+
return a("div", {
|
|
407
|
+
...this.getAttrs(),
|
|
408
|
+
ref: this.element,
|
|
409
|
+
class: (t = this.classes) == null ? void 0 : t.value.main,
|
|
410
|
+
...e.role(this.props.role),
|
|
411
|
+
tabindex: this.props.control ? void 0 : this.props.tabindex,
|
|
412
|
+
onFocus: this.item.control.onFocus,
|
|
413
|
+
onBlur: this.item.control.onBlur
|
|
414
|
+
}, this.renderData());
|
|
415
|
+
}
|
|
416
|
+
renderDataByItem(e, t, n = !1) {
|
|
417
|
+
let r = [];
|
|
418
|
+
return t.forEach((t) => {
|
|
419
|
+
switch (t.type) {
|
|
420
|
+
case "space":
|
|
421
|
+
r.push(this.renderSpace(t));
|
|
422
|
+
break;
|
|
423
|
+
case "line":
|
|
424
|
+
r.push(this.renderLine(t));
|
|
425
|
+
break;
|
|
426
|
+
case "subtitle":
|
|
427
|
+
r.push(this.renderSubtitle(t));
|
|
428
|
+
break;
|
|
429
|
+
case "html":
|
|
430
|
+
r.push(this.renderHtml(t));
|
|
431
|
+
break;
|
|
432
|
+
case "group":
|
|
433
|
+
this.isHighlight(t) && r.push(this.renderGroup(t));
|
|
434
|
+
break;
|
|
435
|
+
case "menu":
|
|
436
|
+
this.isHighlight(t) && r.push(this.renderMenu(t, n));
|
|
437
|
+
break;
|
|
438
|
+
default:
|
|
439
|
+
r.push(this.renderItem(e, t));
|
|
440
|
+
break;
|
|
441
|
+
}
|
|
442
|
+
}), r.push(a("div")), r;
|
|
443
|
+
}
|
|
444
|
+
isHighlight(e) {
|
|
445
|
+
return this.props.filterMode ? this.item.data.getSubList(e).isHighlightActive() : !0;
|
|
446
|
+
}
|
|
447
|
+
getItemAttrs(e, t) {
|
|
448
|
+
switch (e) {
|
|
449
|
+
case "group": return this.item.getItemGroup(t);
|
|
450
|
+
case "menu": return this.item.getItemMenu(t);
|
|
451
|
+
default: return this.item.getItem(t);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
1063
454
|
};
|
|
455
|
+
//#endregion
|
|
456
|
+
export { D as List, T as ListControl, k as ListDesign, C as ListFocus, w as ListGo, x as ListSearch, O as defaultsList };
|