@dxtmisha/constructor 0.39.7 → 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 -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 +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/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
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { t as e } from "./defineProperty-hmGKPWdq.js";
|
|
2
|
+
import { t } from "./ModelInclude-D8LkrhPp.js";
|
|
3
|
+
import { t as n } from "./FieldInputCheckInclude-czZ02ymY.js";
|
|
4
|
+
import { computed as r, ref as i } from "vue";
|
|
5
|
+
import { toBinds as a } from "@dxtmisha/functional";
|
|
6
|
+
//#region src/classes/Field/FieldPatternInclude.ts
|
|
7
|
+
var o = {
|
|
8
|
+
email: "[\\S]+@[\\S]{2,}\\.[\\w]{2,}",
|
|
9
|
+
password: "[0-9a-zA-Z\\-!@#$%^&*]+"
|
|
10
|
+
}, s = class {
|
|
11
|
+
constructor(t, n) {
|
|
12
|
+
e(this, "item", r(() => {
|
|
13
|
+
if (this.props.pattern) return this.props.pattern;
|
|
14
|
+
if (this.type) return o == null ? void 0 : o[this.type.item.value];
|
|
15
|
+
})), this.props = t, this.type = n;
|
|
16
|
+
}
|
|
17
|
+
}, c = class {
|
|
18
|
+
constructor(t, n) {
|
|
19
|
+
e(this, "item", r(() => {
|
|
20
|
+
if (this.props.inputMode) return this.props.inputMode;
|
|
21
|
+
switch (this.type.item.value) {
|
|
22
|
+
case "number":
|
|
23
|
+
case "datetime":
|
|
24
|
+
case "date":
|
|
25
|
+
case "year-month":
|
|
26
|
+
case "time":
|
|
27
|
+
case "hour-minute": return "numeric";
|
|
28
|
+
case "number-format":
|
|
29
|
+
case "currency": return "decimal";
|
|
30
|
+
case "tel": return "tel";
|
|
31
|
+
case "email": return "email";
|
|
32
|
+
default: return;
|
|
33
|
+
}
|
|
34
|
+
})), e(this, "autocomplete", r(() => {
|
|
35
|
+
if (this.props.autocomplete) return this.props.autocomplete;
|
|
36
|
+
switch (this.type.item.value) {
|
|
37
|
+
case "search": return "off";
|
|
38
|
+
case "email": return "email";
|
|
39
|
+
case "password": return "new-password";
|
|
40
|
+
case "tel": return "tel";
|
|
41
|
+
case "url": return "url";
|
|
42
|
+
}
|
|
43
|
+
})), this.props = t, this.type = n;
|
|
44
|
+
}
|
|
45
|
+
}, l = class {
|
|
46
|
+
constructor(t, n, i, a) {
|
|
47
|
+
e(this, "list", r(() => this.getData(this.getAttributes()))), e(this, "listForCheck", r(() => {
|
|
48
|
+
let e = this.list.value;
|
|
49
|
+
return this.props.min || this.props.max || this.props.step ? {
|
|
50
|
+
...e,
|
|
51
|
+
type: "number"
|
|
52
|
+
} : e;
|
|
53
|
+
})), e(this, "listForInput", r(() => this.getData(this.getInputAttributes()))), e(this, "listForCheckbox", r(() => ({
|
|
54
|
+
...this.getData(this.getInputAttributes()),
|
|
55
|
+
value: this.props.valueVariant
|
|
56
|
+
}))), this.props = t, this.type = n, this.pattern = i, this.inputMode = a;
|
|
57
|
+
}
|
|
58
|
+
getAttributes() {
|
|
59
|
+
return [
|
|
60
|
+
"type",
|
|
61
|
+
"name",
|
|
62
|
+
"required",
|
|
63
|
+
"multiple",
|
|
64
|
+
"step",
|
|
65
|
+
"min",
|
|
66
|
+
"max",
|
|
67
|
+
"minlength",
|
|
68
|
+
"maxlength",
|
|
69
|
+
"accept",
|
|
70
|
+
"pattern"
|
|
71
|
+
];
|
|
72
|
+
}
|
|
73
|
+
getInputAttributes() {
|
|
74
|
+
return [
|
|
75
|
+
...this.getAttributes(),
|
|
76
|
+
"list",
|
|
77
|
+
"placeholder",
|
|
78
|
+
"readonly",
|
|
79
|
+
"disabled",
|
|
80
|
+
"autofocus",
|
|
81
|
+
"tabindex",
|
|
82
|
+
"form",
|
|
83
|
+
"autocomplete",
|
|
84
|
+
"autocapitalize",
|
|
85
|
+
"inputMode",
|
|
86
|
+
"enterKeyHint",
|
|
87
|
+
"spellcheck",
|
|
88
|
+
"autocorrect"
|
|
89
|
+
];
|
|
90
|
+
}
|
|
91
|
+
getData(e) {
|
|
92
|
+
let t = {};
|
|
93
|
+
return e.forEach((e) => {
|
|
94
|
+
let n;
|
|
95
|
+
if (e in this.props) switch (e) {
|
|
96
|
+
case "type":
|
|
97
|
+
n = this.type ? this.type.item.value : this.props.type;
|
|
98
|
+
break;
|
|
99
|
+
case "pattern":
|
|
100
|
+
this.pattern && (n = this.pattern.item.value);
|
|
101
|
+
break;
|
|
102
|
+
case "inputMode":
|
|
103
|
+
this.inputMode && (n = this.inputMode.item.value);
|
|
104
|
+
break;
|
|
105
|
+
case "autocomplete":
|
|
106
|
+
this.inputMode && (n = this.inputMode.autocomplete.value);
|
|
107
|
+
break;
|
|
108
|
+
default: n = this.props[e];
|
|
109
|
+
}
|
|
110
|
+
n !== void 0 && (t[e] = n);
|
|
111
|
+
}), a(t, this.props.inputAttrs);
|
|
112
|
+
}
|
|
113
|
+
}, u = class {
|
|
114
|
+
constructor(t) {
|
|
115
|
+
e(this, "item", i(!1)), (t.value || t.modelValue) && (this.item.value = !0);
|
|
116
|
+
}
|
|
117
|
+
is() {
|
|
118
|
+
return !!this.item.value;
|
|
119
|
+
}
|
|
120
|
+
set(e) {
|
|
121
|
+
this.item.value = e;
|
|
122
|
+
}
|
|
123
|
+
to() {
|
|
124
|
+
this.item.value || this.set(!0);
|
|
125
|
+
}
|
|
126
|
+
}, d = class {
|
|
127
|
+
constructor(e) {
|
|
128
|
+
this.props = e;
|
|
129
|
+
}
|
|
130
|
+
get(e) {
|
|
131
|
+
let t = this.props.validationCode;
|
|
132
|
+
if (e && t && !e.valid) {
|
|
133
|
+
if (typeof t == "string") return t;
|
|
134
|
+
{
|
|
135
|
+
let n = this.getIndex(e);
|
|
136
|
+
if (n && n in t) return t[n];
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
getIndex(e) {
|
|
141
|
+
let t = Object.entries(e);
|
|
142
|
+
for (let [e, n] of t) if (e !== "valid" && n) return e;
|
|
143
|
+
}
|
|
144
|
+
}, f = class {
|
|
145
|
+
constructor(t, a, o, s, c, l) {
|
|
146
|
+
e(this, "validation", i()), e(this, "input", r(() => new n(this.attributes.listForCheck.value, void 0, this.code))), e(this, "item", r(() => {
|
|
147
|
+
var e, t;
|
|
148
|
+
return this.checkGlobal() || ((e = this.checkItem()) == null ? (t = this.match) == null ? void 0 : t.check() : e) || this.getValidationItemNone();
|
|
149
|
+
})), e(this, "message", r(() => {
|
|
150
|
+
if (this.props.validationMessage) return this.props.validationMessage;
|
|
151
|
+
if (!this.change || this.change.is()) {
|
|
152
|
+
var e, t;
|
|
153
|
+
let n = this.item.value;
|
|
154
|
+
return (e = (t = n.validityMessage) == null ? n.validationMessage : t) == null ? "" : e;
|
|
155
|
+
}
|
|
156
|
+
return "";
|
|
157
|
+
})), e(this, "checkValidity", () => !this.isError()), this.props = t, this.attributes = a, this.value = o, this.change = s, this.code = c, this.match = l;
|
|
158
|
+
}
|
|
159
|
+
isError() {
|
|
160
|
+
var e;
|
|
161
|
+
return !((e = this.item.value) != null && e.status);
|
|
162
|
+
}
|
|
163
|
+
set(e) {
|
|
164
|
+
return "status" in e && "validationMessage" in e && "value" in e ? this.validation.value = e : "target" in e && (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) && Number(e.target.minLength) > -1 ? this.validation.value = this.input.value.checkByInput(e.target) : this.validation.value = void 0, this;
|
|
165
|
+
}
|
|
166
|
+
getValidationItemNone() {
|
|
167
|
+
return {
|
|
168
|
+
group: n.getGroupDefault(),
|
|
169
|
+
status: !0,
|
|
170
|
+
value: void 0
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
checkGlobal() {
|
|
174
|
+
var e;
|
|
175
|
+
return this.props.validationMessage ? {
|
|
176
|
+
group: n.getGroupDefault(),
|
|
177
|
+
status: !1,
|
|
178
|
+
validationMessage: this.props.validationMessage,
|
|
179
|
+
value: this.value.item.value
|
|
180
|
+
} : (e = this.validation.value) == null ? void 0 : e;
|
|
181
|
+
}
|
|
182
|
+
checkItem() {
|
|
183
|
+
let e = this.value.getToArray();
|
|
184
|
+
for (let t of e) {
|
|
185
|
+
let e = this.checkByInput(t);
|
|
186
|
+
if (!e.status) return e;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
checkByInput(e) {
|
|
190
|
+
return this.input.value.check(e);
|
|
191
|
+
}
|
|
192
|
+
}, p = class {
|
|
193
|
+
constructor(n, r, i, a, o) {
|
|
194
|
+
e(this, "model", void 0), e(this, "onBlur", () => {
|
|
195
|
+
this.change.to();
|
|
196
|
+
}), e(this, "onInput", (e, t) => {
|
|
197
|
+
if (this.isEnabled()) {
|
|
198
|
+
let r = t == null ? e : t;
|
|
199
|
+
if (this.change.is() || t) {
|
|
200
|
+
var n;
|
|
201
|
+
(n = this.validation) == null || n.set(r);
|
|
202
|
+
}
|
|
203
|
+
this.value.setByEvent(r), this.on(e);
|
|
204
|
+
}
|
|
205
|
+
}), e(this, "onChange", (e) => {
|
|
206
|
+
if (this.isEnabled()) {
|
|
207
|
+
if (e) {
|
|
208
|
+
var t;
|
|
209
|
+
(t = this.validation) == null || t.set(e);
|
|
210
|
+
}
|
|
211
|
+
this.change.to(), this.on(e, "change");
|
|
212
|
+
}
|
|
213
|
+
}), e(this, "onSelect", (e, t) => {
|
|
214
|
+
this.isEnabled() && (this.value.setByEvent(t == null ? e : t), this.onAndChange(e));
|
|
215
|
+
}), e(this, "onChecked", (e) => {
|
|
216
|
+
this.isEnabled() && (this.value.setByChecked(e), this.onAndChange(e));
|
|
217
|
+
}), e(this, "onRadio", (e) => {
|
|
218
|
+
this.isEnabled() && (this.value.setByRadio(e), this.onAndChange(e));
|
|
219
|
+
}), e(this, "onClear", (e) => {
|
|
220
|
+
this.isEnabled() && (this.value.clear(), this.onAndChange(e));
|
|
221
|
+
}), e(this, "onValue", (e) => {
|
|
222
|
+
this.isEnabled() && (this.value.set(e), this.onAndChange());
|
|
223
|
+
}), e(this, "on", (e, t = "input") => {
|
|
224
|
+
var n, r;
|
|
225
|
+
t === "input" && this.model.emit(this.value.itemByFull.value);
|
|
226
|
+
let i = {
|
|
227
|
+
...this.getValidation(t),
|
|
228
|
+
...this.getData()
|
|
229
|
+
};
|
|
230
|
+
return (n = this.emits) == null || n.call(this, t, e, i), (r = this.emits) == null || r.call(this, `${t}Lite`, i), this;
|
|
231
|
+
}), this.props = n, this.change = r, this.value = i, this.validation = a, this.emits = o, this.model = new t("value", this.emits, this.value.itemByFull);
|
|
232
|
+
}
|
|
233
|
+
isEnabled() {
|
|
234
|
+
return this.props.disabled !== !0 && this.props.readonly !== !0;
|
|
235
|
+
}
|
|
236
|
+
isValue(e) {
|
|
237
|
+
return !!(e && ["input", "change"].indexOf(e) >= 0);
|
|
238
|
+
}
|
|
239
|
+
getData() {
|
|
240
|
+
return {
|
|
241
|
+
value: this.value.itemByFull.value,
|
|
242
|
+
valueInput: this.value.item.value,
|
|
243
|
+
detail: this.props.detail
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
getValidation(e) {
|
|
247
|
+
return this.isValue(e) ? this.validation ? this.validation.item.value : {
|
|
248
|
+
group: "check",
|
|
249
|
+
value: this.value.item.value
|
|
250
|
+
} : {};
|
|
251
|
+
}
|
|
252
|
+
onAndChange(e) {
|
|
253
|
+
return this.on(e).onChange(e), this;
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
//#endregion
|
|
257
|
+
export { l as a, u as i, f as n, c as o, d as r, s, p as t };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { t as e } from "./defineProperty-hmGKPWdq.js";
|
|
2
|
+
import { computed as t } from "vue";
|
|
3
|
+
import { eventStopPropagation as n, getRef as r, isEnter as i, toBind as a, toBinds as o } from "@dxtmisha/functional";
|
|
4
|
+
//#region src/constructors/Field/FieldInclude.ts
|
|
5
|
+
var s = class {
|
|
6
|
+
constructor(s, c, l, u, d, f, p, m, h, g, _) {
|
|
7
|
+
e(this, "binds", t(() => {
|
|
8
|
+
var e, t, n, i, a, s;
|
|
9
|
+
return o({
|
|
10
|
+
focus: this.props.focus,
|
|
11
|
+
selected: this.props.selected,
|
|
12
|
+
readonly: this.props.readonly,
|
|
13
|
+
disabled: this.props.disabled,
|
|
14
|
+
loading: this.props.loading,
|
|
15
|
+
forceShowMessage: this.props.forceShowMessage,
|
|
16
|
+
label: this.props.label,
|
|
17
|
+
prefix: this.props.prefix,
|
|
18
|
+
suffix: this.props.suffix,
|
|
19
|
+
caption: this.props.caption,
|
|
20
|
+
helperMessage: this.props.helperMessage,
|
|
21
|
+
required: this.props.required,
|
|
22
|
+
detail: this.props.detail,
|
|
23
|
+
cancel: this.props.cancel,
|
|
24
|
+
counterShow: this.props.counterShow,
|
|
25
|
+
icon: this.props.icon,
|
|
26
|
+
iconTurn: this.props.iconTurn,
|
|
27
|
+
iconHide: this.props.iconHide,
|
|
28
|
+
iconDir: this.props.iconDir,
|
|
29
|
+
iconPalette: this.props.iconPalette,
|
|
30
|
+
iconTrailing: this.props.iconTrailing,
|
|
31
|
+
iconTrailingTurnOnly: this.props.iconTrailingTurnOnly,
|
|
32
|
+
iconTrailingDirOnly: this.props.iconTrailingDirOnly,
|
|
33
|
+
iconTrailingPalette: this.props.iconTrailingPalette,
|
|
34
|
+
iconAttrs: this.props.iconAttrs,
|
|
35
|
+
align: this.props.align,
|
|
36
|
+
arrowCarousel: (e = (t = this.arrow) == null ? void 0 : t.isCarousel()) == null ? this.props.arrow === "carousel" : e,
|
|
37
|
+
arrowStepper: (n = (i = this.arrow) == null ? void 0 : i.isStepper()) == null ? this.props.arrow === "stepper" : n,
|
|
38
|
+
arrowAlign: (a = (s = this.arrow) == null ? void 0 : s.align()) == null ? this.props.arrowAlign : a,
|
|
39
|
+
isSkeleton: this.props.isSkeleton,
|
|
40
|
+
fieldLabelAttrs: this.props.fieldLabelAttrs,
|
|
41
|
+
fieldMessageAttrs: this.props.fieldMessageAttrs,
|
|
42
|
+
fieldCounterAttrs: this.props.fieldCounterAttrs,
|
|
43
|
+
onClick: this.on,
|
|
44
|
+
onKeydown: this.onKeydown
|
|
45
|
+
}, r(this.extra), this.props.fieldAttrs);
|
|
46
|
+
})), e(this, "valueBinds", t(() => {
|
|
47
|
+
var e, t;
|
|
48
|
+
return {
|
|
49
|
+
...this.binds.value,
|
|
50
|
+
isValue: this.value.is.value,
|
|
51
|
+
value: this.value.item.value,
|
|
52
|
+
cancelShow: this.value.boolean.value,
|
|
53
|
+
counter: this.value.length.value,
|
|
54
|
+
disabledPrevious: (e = this.arrow) == null ? void 0 : e.disabledPrevious.value,
|
|
55
|
+
disabledNext: (t = this.arrow) == null ? void 0 : t.disabledNext.value
|
|
56
|
+
};
|
|
57
|
+
})), e(this, "render", (e, t) => this.components ? this.components.render("field", a(this.valueBinds.value, t == null ? {} : t), e, this.index) : []), e(this, "on", (e, { type: t }) => {
|
|
58
|
+
var r, i;
|
|
59
|
+
if (e.target.closest("[data-element=\"scoreboard\"]") && ((r = (i = this.event) == null ? void 0 : i.isEnabled()) == null || r)) switch (t) {
|
|
60
|
+
case "icon":
|
|
61
|
+
var a;
|
|
62
|
+
(a = this.onIcon) == null || a.call(this), n(e);
|
|
63
|
+
break;
|
|
64
|
+
case "icon-trailing":
|
|
65
|
+
var o;
|
|
66
|
+
(o = this.onTrailing) == null || o.call(this), n(e);
|
|
67
|
+
break;
|
|
68
|
+
case "cancel":
|
|
69
|
+
var s;
|
|
70
|
+
(s = this.event) == null || s.onClear(e), n(e);
|
|
71
|
+
break;
|
|
72
|
+
case "next":
|
|
73
|
+
var c, l, u;
|
|
74
|
+
(c = this.onNext) == null || c.call(this), (l = this.arrow) == null || l.next(), (u = this.event) == null || u.on(e), n(e);
|
|
75
|
+
break;
|
|
76
|
+
case "previous":
|
|
77
|
+
var d, f, p;
|
|
78
|
+
(d = this.onPrevious) == null || d.call(this), (f = this.arrow) == null || f.previous(), (p = this.event) == null || p.on(e), n(e);
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
}), e(this, "onKeydown", (e, t) => {
|
|
82
|
+
i(e) && (this.on(e, t == null ? {} : t), e.preventDefault());
|
|
83
|
+
}), this.props = s, this.value = c, this.components = l, this.event = u, this.arrow = d, this.onIcon = f, this.onTrailing = p, this.onNext = m, this.onPrevious = h, this.extra = g, this.index = _;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
//#endregion
|
|
87
|
+
export { s as t };
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { t as e } from "./defineProperty-hmGKPWdq.js";
|
|
2
|
+
import { computed as t, ref as n, watch as r } from "vue";
|
|
3
|
+
import { anyToString as i, createElement as a, executeFunction as o, getRef as s, isArray as c, isFilled as l, isObject as u, isString as d, setValues as f, toArray as p, toNumber as m } from "@dxtmisha/functional";
|
|
4
|
+
//#region src/classes/Field/FieldVisibilityInclude.ts
|
|
5
|
+
var h = class {
|
|
6
|
+
constructor() {
|
|
7
|
+
e(this, "item", n(!1));
|
|
8
|
+
}
|
|
9
|
+
toggle() {
|
|
10
|
+
return this.item.value = !this.item.value, this;
|
|
11
|
+
}
|
|
12
|
+
}, g = class {
|
|
13
|
+
constructor(n, r) {
|
|
14
|
+
e(this, "item", t(() => {
|
|
15
|
+
var e;
|
|
16
|
+
let t = this.props.type;
|
|
17
|
+
return t === "password" && (e = this.visibility) != null && e.item.value || t == null ? "text" : t;
|
|
18
|
+
})), this.props = n, this.visibility = r;
|
|
19
|
+
}
|
|
20
|
+
get() {
|
|
21
|
+
return this.item.value;
|
|
22
|
+
}
|
|
23
|
+
}, _ = class {
|
|
24
|
+
constructor(e, t) {
|
|
25
|
+
this.props = e, this.element = t;
|
|
26
|
+
}
|
|
27
|
+
get() {
|
|
28
|
+
let e = this.element.value;
|
|
29
|
+
if (e) return "input" in e ? e.input : e;
|
|
30
|
+
}
|
|
31
|
+
getElement() {
|
|
32
|
+
return this.element;
|
|
33
|
+
}
|
|
34
|
+
findByName(e) {
|
|
35
|
+
var t;
|
|
36
|
+
if (e instanceof Element) return e;
|
|
37
|
+
let n = (t = this.get()) == null ? void 0 : t.form;
|
|
38
|
+
if (n) {
|
|
39
|
+
let t = n.querySelector(`[name="${e}"]`);
|
|
40
|
+
if (t) return t;
|
|
41
|
+
}
|
|
42
|
+
let r = document.querySelector(e);
|
|
43
|
+
if (r) return r;
|
|
44
|
+
}
|
|
45
|
+
clear() {
|
|
46
|
+
let e = this.element.value;
|
|
47
|
+
if (e && "clear" in e) {
|
|
48
|
+
var t;
|
|
49
|
+
(t = e.clear) == null || t.call(e);
|
|
50
|
+
}
|
|
51
|
+
return this;
|
|
52
|
+
}
|
|
53
|
+
}, v = class {
|
|
54
|
+
constructor(a, o, s, d) {
|
|
55
|
+
e(this, "item", n()), e(this, "isFull", n(!0)), e(this, "hasEdit", n(!1)), e(this, "is", t(() => this.hasEdit.value || this.boolean.value || !!this.props.placeholder)), e(this, "isValue", t(() => this.hasEdit.value || this.boolean.value)), e(this, "itemByFull", t(() => this.isFull.value ? this.item.value : void 0)), e(this, "number", t(() => this.boolean.value ? m(this.string.value) : 0)), e(this, "string", t(() => i(this.item.value))), e(this, "boolean", t(() => l(this.item.value))), e(this, "length", t(() => {
|
|
56
|
+
var e;
|
|
57
|
+
let t = this.item.value;
|
|
58
|
+
return c(t) ? t.length : u(t) ? Object.keys(t).length : (e = this.string.value.length) == null ? 0 : e;
|
|
59
|
+
})), e(this, "update", () => {
|
|
60
|
+
(this.isEdit(this.props.value) || this.isEdit(this.props.modelValue)) && this.setToOriginal();
|
|
61
|
+
}), this.props = a, this.refs = o, this.element = s, this.original = d, this.item.value = this.getOriginal(), r([o.value, o.modelValue], this.update);
|
|
62
|
+
}
|
|
63
|
+
get() {
|
|
64
|
+
return this.item.value;
|
|
65
|
+
}
|
|
66
|
+
getToArray() {
|
|
67
|
+
return p(this.item.value);
|
|
68
|
+
}
|
|
69
|
+
set(e) {
|
|
70
|
+
if (this.isDifference(e)) {
|
|
71
|
+
var t;
|
|
72
|
+
this.item.value = f(this.item.value, e, {
|
|
73
|
+
multiple: this.props.multiple,
|
|
74
|
+
maxlength: m(this.props.maxlength)
|
|
75
|
+
});
|
|
76
|
+
let r = (t = this.element) == null ? void 0 : t.getElement();
|
|
77
|
+
if (r && r.value && "setValue" in r.value) {
|
|
78
|
+
var n;
|
|
79
|
+
(n = r.value) == null || n.setValue(this.item.value);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return this;
|
|
83
|
+
}
|
|
84
|
+
setByEvent(e) {
|
|
85
|
+
switch (typeof e) {
|
|
86
|
+
case "object":
|
|
87
|
+
e && ("value" in e && e.value !== void 0 ? this.set(e.value) : "target" in e && this.setByTarget(e.target), "hasEdit" in e && this.setHasEdit(e.hasEdit), "isFull" in e && this.setFull(e.isFull));
|
|
88
|
+
break;
|
|
89
|
+
default:
|
|
90
|
+
this.set(e);
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
return this;
|
|
94
|
+
}
|
|
95
|
+
setByTarget(e) {
|
|
96
|
+
return this.set(this.isCheckbox(e) ? e.checked : e.value);
|
|
97
|
+
}
|
|
98
|
+
setByChecked(e) {
|
|
99
|
+
let t = e.target;
|
|
100
|
+
return this.set(t.checked);
|
|
101
|
+
}
|
|
102
|
+
setByRadio(e) {
|
|
103
|
+
let t = e.target, n = t.checked ? t.value : "";
|
|
104
|
+
return this.set(n);
|
|
105
|
+
}
|
|
106
|
+
setFull(e) {
|
|
107
|
+
this.isFull.value = e;
|
|
108
|
+
}
|
|
109
|
+
setHasEdit(e) {
|
|
110
|
+
this.hasEdit.value = e;
|
|
111
|
+
}
|
|
112
|
+
setToOriginal() {
|
|
113
|
+
return this.item.value = this.getOriginal(), this;
|
|
114
|
+
}
|
|
115
|
+
clear() {
|
|
116
|
+
var e;
|
|
117
|
+
return this.item.value = s(this.original), (e = this.element) == null || e.clear(), this.hasEdit.value = !1, this.isFull.value = !0, this;
|
|
118
|
+
}
|
|
119
|
+
isCheckbox(e) {
|
|
120
|
+
return e.type === "checkbox";
|
|
121
|
+
}
|
|
122
|
+
isDifference(e = this.getOriginal()) {
|
|
123
|
+
return this.string.value !== i(e);
|
|
124
|
+
}
|
|
125
|
+
getOriginal() {
|
|
126
|
+
return this.props.value || this.props.modelValue || s(this.original);
|
|
127
|
+
}
|
|
128
|
+
isEdit(e) {
|
|
129
|
+
return e !== void 0 && i(e) !== this.string.value;
|
|
130
|
+
}
|
|
131
|
+
}, y = class t {
|
|
132
|
+
constructor(n, r = t.getGroupDefault(), i) {
|
|
133
|
+
e(this, "input", void 0), this.pattern = n, this.group = r, this.code = i, this.input = a(void 0, "input", this.getAttributes());
|
|
134
|
+
}
|
|
135
|
+
check(e) {
|
|
136
|
+
let t = this.input;
|
|
137
|
+
return t ? (t.type === "checkbox" || t.type === "radio" ? t.checked = !!e : t.value = i(e), this.checkByInput(t)) : {
|
|
138
|
+
group: this.group,
|
|
139
|
+
status: !0,
|
|
140
|
+
value: e
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
checkByInput(e) {
|
|
144
|
+
var t;
|
|
145
|
+
return {
|
|
146
|
+
group: this.group,
|
|
147
|
+
input: e,
|
|
148
|
+
status: e.checkValidity(),
|
|
149
|
+
validationMessage: e.validationMessage,
|
|
150
|
+
validity: e.validity,
|
|
151
|
+
validityMessage: (t = this.code) == null ? void 0 : t.get(e.validity),
|
|
152
|
+
required: e.required,
|
|
153
|
+
pattern: this.pattern,
|
|
154
|
+
value: e.value
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
getAttributes() {
|
|
158
|
+
let e = this.pattern;
|
|
159
|
+
if (l(e)) {
|
|
160
|
+
let t = o(e);
|
|
161
|
+
if (l(t)) return d(t) ? { pattern: t } : t;
|
|
162
|
+
}
|
|
163
|
+
return {};
|
|
164
|
+
}
|
|
165
|
+
static getGroupDefault() {
|
|
166
|
+
return "check";
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
//#endregion
|
|
170
|
+
export { h as a, g as i, v as n, _ as r, y as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { t as e } from "./defineProperty-hmGKPWdq.js";
|
|
2
|
+
import { t } from "./FieldCounterInclude-l1o0Bm7V.js";
|
|
3
|
+
import { computed as n } from "vue";
|
|
4
|
+
import { getElementId as r, getRef as i, isFilled as a, toBinds as o } from "@dxtmisha/functional";
|
|
5
|
+
//#region src/constructors/FieldLabel/FieldLabelInclude.ts
|
|
6
|
+
var s = class {
|
|
7
|
+
constructor(s, c, l, u, d, f, p, m) {
|
|
8
|
+
e(this, "labelId", r()), e(this, "counterId", r()), e(this, "fieldCounter", void 0), e(this, "is", n(() => {
|
|
9
|
+
var e;
|
|
10
|
+
return a(this.props.label) || !!((e = this.isCounter) != null && e.value);
|
|
11
|
+
})), e(this, "id", n(() => {
|
|
12
|
+
var e;
|
|
13
|
+
return (e = this.isCounter) != null && e.value && this.props.counterShow ? this.counterId : "";
|
|
14
|
+
})), e(this, "binds", n(() => {
|
|
15
|
+
var e;
|
|
16
|
+
return o(i(this.extra), (e = this.isCounter) != null && e.value ? this.fieldCounter.bindsIntermediary.value : {}, {
|
|
17
|
+
for: i(this.forId),
|
|
18
|
+
label: this.props.label,
|
|
19
|
+
required: this.props.required,
|
|
20
|
+
labelId: this.labelId,
|
|
21
|
+
counterId: this.counterId
|
|
22
|
+
}, this.props.fieldLabelAttrs);
|
|
23
|
+
})), e(this, "render", () => this.components && this.is.value ? this.components.render("fieldLabel", { ...o(this.binds.value, { class: `${this.className}__fieldLabel` }) }, this.slots, this.index) : []), this.props = s, this.className = c, this.components = l, this.slots = u, this.forId = d, this.isCounter = f, this.extra = p, this.index = m, this.fieldCounter = new t(this.props, this.className);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { s as t };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { t as e } from "./defineProperty-hmGKPWdq.js";
|
|
2
|
+
import { t } from "./FieldInputCheckInclude-czZ02ymY.js";
|
|
3
|
+
import { computed as n } from "vue";
|
|
4
|
+
import { anyToString as r, isObject as i, toNumber as a } from "@dxtmisha/functional";
|
|
5
|
+
//#region src/classes/Field/FieldArrowInclude.ts
|
|
6
|
+
var o = class {
|
|
7
|
+
constructor(t, r, i) {
|
|
8
|
+
e(this, "is", n(() => !!(this.props.arrow && this.props.arrow !== "none"))), e(this, "disabledPrevious", n(() => !this.isPrevious(this.value.number.value))), e(this, "disabledNext", n(() => !this.isNext(this.value.number.value))), e(this, "step", n(() => {
|
|
9
|
+
var e, t;
|
|
10
|
+
return a((e = (t = this.props.arrowStep) == null ? this.props.step : t) == null ? 1 : e);
|
|
11
|
+
})), e(this, "min", n(() => {
|
|
12
|
+
var e;
|
|
13
|
+
return (e = a(this.props.min)) == null ? void 0 : e;
|
|
14
|
+
})), e(this, "max", n(() => a(this.props.max) || void 0)), this.props = t, this.value = r, this.type = i;
|
|
15
|
+
}
|
|
16
|
+
isCarousel() {
|
|
17
|
+
return this.get() === "carousel";
|
|
18
|
+
}
|
|
19
|
+
isStepper() {
|
|
20
|
+
return this.get() === "stepper";
|
|
21
|
+
}
|
|
22
|
+
isPrevious(e) {
|
|
23
|
+
let t = this.min.value;
|
|
24
|
+
return t === void 0 || e > t;
|
|
25
|
+
}
|
|
26
|
+
isNext(e) {
|
|
27
|
+
let t = this.max.value;
|
|
28
|
+
return t === void 0 || e < t;
|
|
29
|
+
}
|
|
30
|
+
get() {
|
|
31
|
+
switch (this.props.arrow) {
|
|
32
|
+
case "auto":
|
|
33
|
+
var e, t;
|
|
34
|
+
if (((e = this.type) == null ? void 0 : e.get()) === "number" || ((t = this.type) == null ? void 0 : t.get()) === "number-format") return "stepper";
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
return this.props.arrow;
|
|
38
|
+
}
|
|
39
|
+
align() {
|
|
40
|
+
return this.props.arrowAlign;
|
|
41
|
+
}
|
|
42
|
+
previous() {
|
|
43
|
+
let e = this.value.number.value - this.step.value;
|
|
44
|
+
return this.isPrevious(e) ? this.value.set(e.toString()) : this.toMin(), this;
|
|
45
|
+
}
|
|
46
|
+
next() {
|
|
47
|
+
let e = this.value.number.value + this.step.value;
|
|
48
|
+
return this.isNext(e) ? this.value.set(e.toString()) : this.toMax(), this;
|
|
49
|
+
}
|
|
50
|
+
toMin() {
|
|
51
|
+
if (!this.disabledPrevious.value) {
|
|
52
|
+
let e = this.min.value;
|
|
53
|
+
e !== void 0 && this.value.set(e.toString());
|
|
54
|
+
}
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
toMax() {
|
|
58
|
+
if (!this.disabledNext.value) {
|
|
59
|
+
let e = this.max.value;
|
|
60
|
+
e !== void 0 && this.value.set(e.toString());
|
|
61
|
+
}
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
}, s = class {
|
|
65
|
+
constructor(e, t, n, r) {
|
|
66
|
+
this.props = e, this.element = t, this.value = n, this.text = r;
|
|
67
|
+
}
|
|
68
|
+
is() {
|
|
69
|
+
return !!this.props.match;
|
|
70
|
+
}
|
|
71
|
+
getSelectors() {
|
|
72
|
+
if (this.is()) return i(this.props.match) ? this.props.match.name : this.props.match;
|
|
73
|
+
}
|
|
74
|
+
getValidationMessage() {
|
|
75
|
+
if (this.is()) {
|
|
76
|
+
var e;
|
|
77
|
+
if (i(this.props.match) && (e = this.props.match) != null && e.validationMessage) return this.props.match.validationMessage;
|
|
78
|
+
if (this.text) {
|
|
79
|
+
var t;
|
|
80
|
+
return (t = this.text.entriesMatch.value) == null ? "" : t;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return "";
|
|
84
|
+
}
|
|
85
|
+
check() {
|
|
86
|
+
let e = this.getSelectors();
|
|
87
|
+
if (e) {
|
|
88
|
+
let n = this.element.findByName(e);
|
|
89
|
+
if (n && r(n.value) !== this.value.string.value) return {
|
|
90
|
+
group: t.getGroupDefault(),
|
|
91
|
+
status: !1,
|
|
92
|
+
input: this.element.get(),
|
|
93
|
+
validationMessage: this.getValidationMessage(),
|
|
94
|
+
value: this.value.item.value
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
//#endregion
|
|
100
|
+
export { o as n, s as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { t as e } from "./defineProperty-hmGKPWdq.js";
|
|
2
|
+
import { t } from "./FieldCounterInclude-l1o0Bm7V.js";
|
|
3
|
+
import { computed as n } from "vue";
|
|
4
|
+
import { getElementId as r, getRef as i, isFilled as a, toBinds as o } from "@dxtmisha/functional";
|
|
5
|
+
//#region src/constructors/FieldMessage/FieldMessageInclude.ts
|
|
6
|
+
var s = class {
|
|
7
|
+
constructor(s, c, l, u, d, f, p) {
|
|
8
|
+
e(this, "helperId", r()), e(this, "validationId", r()), e(this, "counterId", r()), e(this, "fieldCounter", void 0), e(this, "isValidationMessage", n(() => a(this.validation.value))), e(this, "id", n(() => {
|
|
9
|
+
var e;
|
|
10
|
+
let t = [];
|
|
11
|
+
return this.props.helperMessage && t.push(this.helperId), this.props.validationMessage && t.push(this.validationId), (e = this.isCounter) != null && e.value && this.props.counterShow && t.push(this.counterId), t.join(" ");
|
|
12
|
+
})), e(this, "validation", n(() => a(this.props.validationMessage) ? this.props.validationMessage : i(this.validationMessage))), e(this, "binds", n(() => {
|
|
13
|
+
var e;
|
|
14
|
+
return o(i(this.extra), (e = this.isCounter) != null && e.value ? this.fieldCounter.bindsIntermediary.value : {}, {
|
|
15
|
+
disabled: this.props.disabled,
|
|
16
|
+
forceShow: this.props.forceShowMessage,
|
|
17
|
+
helperMessage: this.props.helperMessage,
|
|
18
|
+
validationMessage: this.validation.value,
|
|
19
|
+
helperId: this.helperId,
|
|
20
|
+
validationId: this.validationId,
|
|
21
|
+
counterId: this.counterId
|
|
22
|
+
}, this.props.fieldMessageAttrs);
|
|
23
|
+
})), e(this, "render", () => this.components ? this.components.render("fieldMessage", { ...o(this.binds.value, { class: `${this.className}__fieldMessage` }) }, void 0, this.index) : []), this.props = s, this.className = c, this.components = l, this.validationMessage = u, this.isCounter = d, this.extra = f, this.index = p, this.fieldCounter = new t(this.props, this.className);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { s as t };
|